source: trunk/src/lol/gpu/rendercontext.h @ 2816

Last change on this file since 2816 was 2816, checked in by lolbot, 7 years ago

fixed 542 files out of 2754:

  • removed 0 CR characters
  • removed 0 trailing whitespaces
  • replaced 0 tabs with spaces
  • fixed 542 svn:eol-style properties
  • Property svn:eol-style set to LF
File size: 1012 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://www.wtfpl.net/ for more details.
9//
10
11//
12// The RenderContext class
13// -----------------------
14//
15
16#if !defined __LOL_RENDERCONTEXT_H__
17#define __LOL_RENDERCONTEXT_H__
18
19namespace lol
20{
21
22class RenderContextData;
23
24class RenderContext
25{
26public:
27    RenderContext();
28    ~RenderContext();
29
30    void SetViewport(ibox2 viewport);
31    void SetClearColor(vec4 color);
32    void SetClearDepth(float depth);
33    void SetAlphaFunc(AlphaFunc func, float alpha);
34    void SetBlendFunc(BlendFunc src, BlendFunc dst);
35    void SetDepthFunc(DepthFunc func);
36    void SetCullMode(CullMode mode);
37    void SetPolygonMode(PolygonMode mode);
38
39private:
40    RenderContextData *m_data;
41};
42
43} /* namespace lol */
44
45#endif // __LOL_RENDERCONTEXT_H__
46
Note: See TracBrowser for help on using the repository browser.