Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

39 righe
860 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright © 2010—2019 Sam Hocevar <sam@hocevar.net>
  5. //
  6. // Lol Engine is free software. It comes without any warranty, to
  7. // the extent permitted by applicable law. You can redistribute it
  8. // and/or modify it under the terms of the Do What the Fuck You Want
  9. // to Public License, Version 2, as published by the WTFPL Task Force.
  10. // See http://www.wtfpl.net/ for more details.
  11. //
  12. #pragma once
  13. //
  14. // The Primitive class
  15. // -------------------
  16. //
  17. namespace lol
  18. {
  19. class PrimitiveMesh : public PrimitiveRenderer
  20. {
  21. friend class Scene;
  22. public:
  23. PrimitiveMesh(std::shared_ptr<SubMesh> submesh, mat4 const &matrix);
  24. virtual ~PrimitiveMesh();
  25. virtual void Render(Scene& scene, std::shared_ptr<PrimitiveSource> primitive);
  26. private:
  27. std::shared_ptr<SubMesh> m_submesh;
  28. mat4 m_matrix;
  29. };
  30. } /* namespace lol */