Texture.pkg 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. void SetMipsToSkip(int quality, int mips);
  11. unsigned GetFormat() const;
  12. bool IsCompressed() const;
  13. unsigned GetLevels() const;
  14. int GetWidth() const;
  15. int GetHeight() const;
  16. TextureFilterMode GetFilterMode() const;
  17. TextureAddressMode GetAddressMode(TextureCoordinate coord) const;
  18. const Color& GetBorderColor() const;
  19. bool GetSRGB() const;
  20. Texture* GetBackupTexture() const;
  21. int GetMipsToSkip(int quality) const;
  22. int GetLevelWidth(unsigned level) const;
  23. int GetLevelHeight(unsigned level) const;
  24. TextureUsage GetUsage() const;
  25. unsigned GetDataSize(int width, int height) const;
  26. unsigned GetRowDataSize(int width) const;
  27. tolua_readonly tolua_property__get_set unsigned format;
  28. tolua_readonly tolua_property__is_set bool compressed;
  29. tolua_readonly tolua_property__get_set unsigned levels;
  30. tolua_readonly tolua_property__get_set int width;
  31. tolua_readonly tolua_property__get_set int height;
  32. tolua_property__get_set TextureFilterMode filterMode;
  33. tolua_property__get_set Color& borderColor;
  34. tolua_property__get_set bool sRGB;
  35. tolua_property__get_set Texture* backupTexture;
  36. tolua_readonly tolua_property__get_set TextureUsage usage;
  37. };