Cube.h 822 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include "Model3D.h"
  3. namespace Framework
  4. {
  5. class Texture;
  6. class GraphicsApi;
  7. enum CubeSeite
  8. {
  9. VORNE,
  10. HINTEN,
  11. RECHTS,
  12. LINKS,
  13. OBEN,
  14. UNTEN
  15. };
  16. //! A model of a cube
  17. class Cube : public Model3D
  18. {
  19. public:
  20. //! Constructor
  21. //! \param size The size of the cube
  22. DLLEXPORT Cube(float size, GraphicsApi* zApi);
  23. //! Sets the texture of the cube so that it is the same on all sides
  24. //! \param textur The texture
  25. DLLEXPORT void setTexture(Texture* textur);
  26. //! Sets the texture of a specific side of the cube
  27. //! \param textur The texture
  28. //! \param s The side to set
  29. DLLEXPORT void setTexture(Texture* textur, CubeSeite s);
  30. };
  31. } // namespace Framework