TexturModel.h 963 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "Model3D.h"
  3. namespace Framework
  4. {
  5. class Textur;
  6. class GraphicsApi;
  7. //! A 3D model that can be used to display a texture in three-dimensional space
  8. class TexturModel : public Model3D
  9. {
  10. public:
  11. //! Constructor
  12. DLLEXPORT TexturModel(GraphicsApi* zApi);
  13. DLLEXPORT TexturModel(GraphicsApi* zApi, const char* uniqueName);
  14. //! Sets the texture to be displayed
  15. //! \param t The texture
  16. DLLEXPORT void setTextur(Textur* t);
  17. //! Sets the size in which the texture is displayed
  18. //! \param gr A vector containing width and height for x and y
  19. DLLEXPORT void setSize(Vec2<float> gr);
  20. //! Sets the size in which the texture is displayed
  21. //! \param b The width in which the texture is displayed
  22. //! \param h The height in which the texture is displayed
  23. DLLEXPORT void setSize(float b, float h);
  24. };
  25. } // namespace Framework