You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
726 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. #pragma once
  11. //
  12. // The Primitive class
  13. // -------------------
  14. //
  15. namespace lol
  16. {
  17. class PrimitiveMesh : public PrimitiveRenderer
  18. {
  19. friend class Scene;
  20. public:
  21. PrimitiveMesh(SubMesh *submesh, mat4 const &matrix);
  22. virtual ~PrimitiveMesh();
  23. virtual void Render(Scene& scene, PrimitiveSource* primitive);
  24. private:
  25. SubMesh *m_submesh;
  26. mat4 m_matrix;
  27. };
  28. } /* namespace lol */