Texture.pkg 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. $#include "Graphics/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 SetAnisotropy(unsigned level);
  8. void SetBorderColor(const Color& color);
  9. void SetSRGB(bool enable);
  10. void SetBackupTexture(Texture* texture);
  11. void SetMipsToSkip(int quality, int toSkip);
  12. unsigned GetFormat() const;
  13. bool IsCompressed() const;
  14. unsigned GetLevels() const;
  15. int GetWidth() const;
  16. int GetHeight() const;
  17. TextureFilterMode GetFilterMode() const;
  18. TextureAddressMode GetAddressMode(TextureCoordinate coord) const;
  19. unsigned GetAnisotropy() const;
  20. const Color& GetBorderColor() const;
  21. bool GetSRGB() const;
  22. int GetMultiSample() const;
  23. bool GetAutoResolve() const;
  24. bool IsResolveDirty() const;
  25. bool GetLevelsDirty() const;
  26. Texture* GetBackupTexture() const;
  27. int GetMipsToSkip(int quality) const;
  28. int GetLevelWidth(unsigned level) const;
  29. int GetLevelHeight(unsigned level) const;
  30. TextureUsage GetUsage() const;
  31. unsigned GetDataSize(int width, int height) const;
  32. unsigned GetRowDataSize(int width) const;
  33. unsigned GetComponents() const;
  34. tolua_readonly tolua_property__get_set unsigned format;
  35. tolua_readonly tolua_property__is_set bool compressed;
  36. tolua_readonly tolua_property__get_set unsigned levels;
  37. tolua_readonly tolua_property__get_set int width;
  38. tolua_readonly tolua_property__get_set int height;
  39. tolua_readonly tolua_property__get_set unsigned components;
  40. tolua_property__get_set TextureFilterMode filterMode;
  41. tolua_property__get_set unsigned anisotropy;
  42. tolua_property__get_set Color& borderColor;
  43. tolua_property__get_set bool sRGB;
  44. tolua_readonly tolua_property__get_set int multiSample;
  45. tolua_readonly tolua_property__get_set bool autoResolve;
  46. tolua_readonly tolua_property__is_set bool resolveDirty;
  47. tolua_readonly tolua_property__get_set bool levelsDirty;
  48. tolua_property__get_set Texture* backupTexture;
  49. tolua_readonly tolua_property__get_set TextureUsage usage;
  50. };