| 12345678910111213141516171819202122232425262728 |
- #pragma once
- #include "Model3D.h"
- namespace Framework
- {
- class Textur;
- class GraphicsApi;
- //! A 3D model that can be used to display a texture in three-dimensional space
- class TexturModel : public Model3D
- {
- public:
- //! Constructor
- DLLEXPORT TexturModel(GraphicsApi* zApi);
- DLLEXPORT TexturModel(GraphicsApi* zApi, const char* uniqueName);
- //! Sets the texture to be displayed
- //! \param t The texture
- DLLEXPORT void setTextur(Textur* t);
- //! Sets the size in which the texture is displayed
- //! \param gr A vector containing width and height for x and y
- DLLEXPORT void setSize(Vec2<float> gr);
- //! Sets the size in which the texture is displayed
- //! \param b The width in which the texture is displayed
- //! \param h The height in which the texture is displayed
- DLLEXPORT void setSize(float b, float h);
- };
- } // namespace Framework
|