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

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

gpu: add full support for alpha test in GL and D3D.

File size: 934 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 SetClearColor(vec4 color);
31    void SetClearDepth(float depth);
32    void SetAlphaFunc(AlphaFunc func, float alpha);
33    void SetBlendFunc(BlendFunc src, BlendFunc dst);
34    void SetDepthFunc(DepthFunc func);
35    void SetFaceCulling(CullMode mode);
36
37private:
38    RenderContextData *m_data;
39};
40
41} /* namespace lol */
42
43#endif // __LOL_RENDERCONTEXT_H__
44
Note: See TracBrowser for help on using the repository browser.