Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

49 rindas
887 B

  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://sam.zoy.org/projects/COPYING.WTFPL for more details.
  9. //
  10. //
  11. // The LolFx class
  12. // ---------------
  13. //
  14. #if !defined __GPU_LOLFX_H__
  15. #define __GPU_LOLFX_H__
  16. #include "gpu/shader.h"
  17. namespace lol
  18. {
  19. class LolFx
  20. {
  21. friend class LolFxParser;
  22. public:
  23. LolFx();
  24. bool Compile(char const *command);
  25. private:
  26. /* Simple GL / DX render states */
  27. bool m_blend;
  28. bool m_alphatest;
  29. bool m_cullface;
  30. bool m_depthtest;
  31. bool m_depthmask;
  32. /* Our shaders -- FIXME: should be split if possible */
  33. Shader *m_shader;
  34. };
  35. } /* namespace lol */
  36. #endif /* __GPU_LOLFX_H__ */