| 1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include "Model3D.h"
- namespace Framework
- {
- class Textur;
- class GraphicsApi;
- enum CubeSeite
- {
- VORNE,
- HINTEN,
- RECHTS,
- LINKS,
- OBEN,
- UNTEN
- };
- //! A model of a cube
- class Cube : public Model3D
- {
- public:
- //! Constructor
- //! \param size The size of the cube
- DLLEXPORT Cube(float size, GraphicsApi* zApi);
- //! Sets the texture of the cube so that it is the same on all sides
- //! \param textur The texture
- DLLEXPORT void setTextur(Textur* textur);
- //! Sets the texture of a specific side of the cube
- //! \param textur The texture
- //! \param s The side to set
- DLLEXPORT void setTextur(Textur* textur, CubeSeite s);
- };
- } // namespace Framework
|