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

Last change on this file since 2768 was 2768, checked in by sam, 8 years ago

gpu: framebuffers now use the g_render object to restore viewport data.

File size: 972 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 SetFaceCulling(CullMode mode);
37
38private:
39    RenderContextData *m_data;
40};
41
42} /* namespace lol */
43
44#endif // __LOL_RENDERCONTEXT_H__
45
Note: See TracBrowser for help on using the repository browser.