45 行
791 B

  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. // The LolFx class
  12. // ---------------
  13. //
  14. #if defined HAVE_CONFIG_H
  15. # include "config.h"
  16. #endif
  17. #include <lol/main.h>
  18. #include "gpu/lolfx-compiler.h"
  19. namespace lol
  20. {
  21. LolFx::LolFx()
  22. : m_blend(false),
  23. m_alphatest(false),
  24. m_cullface(false),
  25. m_depthtest(false),
  26. m_depthmask(false),
  27. m_shader(0)
  28. {
  29. ;
  30. }
  31. bool LolFx::Compile(char const *command)
  32. {
  33. LolFxCompiler lc(*this);
  34. return lc.ParseString(command);
  35. }
  36. } /* namespace lol */