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

Last change on this file since 2828 was 2828, checked in by benlitz, 7 years ago

gpu: getters in RenderContext class

  • Property svn:eol-style set to LF
File size: 1.3 KB
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
39    ibox2 GetViewport();
40    vec4 GetClearColor();
41    float GetClearDepth();
42    AlphaFunc GetAlphaFunc();
43    float GetAlphaValue();
44    BlendFunc GetBlendFuncSrc();
45    BlendFunc GetBlendFuncDst();
46    DepthFunc GetDepthFunc();
47    CullMode GetCullMode();
48    PolygonMode GetPolygonMode();
49
50private:
51    RenderContextData *m_data;
52};
53
54} /* namespace lol */
55
56#endif // __LOL_RENDERCONTEXT_H__
57
Note: See TracBrowser for help on using the repository browser.