Texture.pkg 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. $#include "Texture.h"
  2. class Texture : public Resource
  3. {
  4. void SetNumLevels(unsigned levels);
  5. void SetFilterMode(TextureFilterMode filter);
  6. void SetAddressMode(TextureCoordinate coord, TextureAddressMode address);
  7. void SetBorderColor(const Color& color);
  8. void SetSRGB(bool enable);
  9. void SetBackupTexture(Texture* texture);
  10. unsigned GetFormat() const;
  11. bool IsCompressed() const;
  12. unsigned GetLevels() const;
  13. int GetWidth() const;
  14. int GetHeight() const;
  15. TextureFilterMode GetFilterMode() const;
  16. TextureAddressMode GetAddressMode(TextureCoordinate coord) const;
  17. const Color& GetBorderColor() const;
  18. bool GetSRGB() const;
  19. Texture* GetBackupTexture() const;
  20. int GetLevelWidth(unsigned level) const;
  21. int GetLevelHeight(unsigned level) const;
  22. TextureUsage GetUsage() const;
  23. unsigned GetDataSize(int width, int height) const;
  24. unsigned GetRowDataSize(int width) const;
  25. tolua_readonly tolua_property__get_set unsigned format;
  26. tolua_readonly tolua_property__is_set bool compressed;
  27. tolua_readonly tolua_property__get_set unsigned levels;
  28. tolua_readonly tolua_property__get_set int width;
  29. tolua_readonly tolua_property__get_set int height;
  30. tolua_property__get_set TextureFilterMode filterMode;
  31. tolua_property__get_set Color& borderColor;
  32. tolua_property__get_set bool sRGB;
  33. tolua_property__get_set Texture* backupTexture;
  34. tolua_readonly tolua_property__get_set TextureUsage usage;
  35. };