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.
 
 
 

56 rindas
1.0 KiB

  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 Scene class
  12. // ---------------
  13. //
  14. #if !defined __LOL_SCENE_H__
  15. #define __LOL_SCENE_H__
  16. #include <stdint.h>
  17. #include "tileset.h"
  18. namespace lol
  19. {
  20. class SceneData;
  21. class Scene
  22. {
  23. public:
  24. Scene();
  25. ~Scene();
  26. static Scene *GetDefault();
  27. void SetViewMatrix(mat4 const &m);
  28. void SetProjMatrix(mat4 const &m);
  29. mat4 const &GetViewMatrix(void);
  30. mat4 const &GetProjMatrix(void);
  31. void Reset();
  32. void Render();
  33. /* FIXME: this should be deprecated -- it doesn't really match
  34. * the architecture we want to build */
  35. void AddTile(TileSet *tileset, int id, vec3 pos, int o, vec2 scale);
  36. private:
  37. SceneData *data;
  38. };
  39. } /* namespace lol */
  40. #endif // __LOL_SCENE_H__