source: trunk/src/gpu/lolfx.h @ 2183

Last change on this file since 2183 was 2183, checked in by sam, 7 years ago

build: fix the WTFPL site URL in all code comments.

  • Property svn:keywords set to Id
File size: 867 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2012 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 LolFx class
13// ---------------
14//
15
16#if !defined __GPU_LOLFX_H__
17#define __GPU_LOLFX_H__
18
19#include "gpu/shader.h"
20
21namespace lol
22{
23
24class LolFx
25{
26    friend class LolFxParser;
27
28public:
29    LolFx();
30
31    bool Compile(char const *command);
32
33private:
34    /* Simple GL / DX render states */
35    bool m_blend;
36    bool m_alphatest;
37    bool m_cullface;
38    bool m_depthtest;
39    bool m_depthmask;
40
41    /* Our shaders -- FIXME: should be split if possible */
42    Shader *m_shader;
43};
44
45} /* namespace lol */
46
47#endif /* __GPU_LOLFX_H__ */
48
Note: See TracBrowser for help on using the repository browser.