Simple game engine with complete export to scripting language
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

27 行
623 B

  1. #ifndef BLUECORE_TEXTURE_IMAGE_H
  2. #define BLUECORE_TEXTURE_IMAGE_H
  3. #include "TextureManager.h"
  4. #include "RenderDevice.h"
  5. namespace BlueCore
  6. {
  7. class TextureImage : public Referenced
  8. {
  9. ref_ptr<Texture> _Texture;
  10. ref_ptr<RenderDevice> _Device;
  11. float _Vertices[3 * 4];
  12. float _TexCoords[2 * 4];
  13. unsigned int _Width, _Height;
  14. public:
  15. TextureImage (RenderDevice* device, Texture *texture, float ax, float ay, float bx, float by );
  16. ~TextureImage();
  17. void draw (float x, float y, int halign = 0, int valign = 0, float r = 0.0 );
  18. unsigned int getWidth();
  19. unsigned int getHeight();
  20. };
  21. }
  22. #endif /*IMAGE_H_*/