source: trunk/src/lol/gpu/lolfx.h @ 2354

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

base: move headers around and promote gpu/ to lol/gpu/.

  • Property svn:keywords set to Id
File size: 883 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 LolFx class
13// ---------------
14//
15
16#if !defined __LOL_GPU_LOLFX_H__
17#define __LOL_GPU_LOLFX_H__
18
19#include <lol/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 /* __LOL_GPU_LOLFX_H__ */
48
Note: See TracBrowser for help on using the repository browser.