Texture2DArray.pkg 1006 B

123456789101112131415161718192021222324252627282930313233
  1. $#include "Graphics/Texture2DArray.h"
  2. enum TextureUsage{};
  3. class Texture2DArray : public Texture
  4. {
  5. Texture2DArray();
  6. ~Texture2DArray();
  7. void SetLayers(unsigned layers);
  8. bool SetSize(unsigned layers, int width, int height, unsigned format, TextureUsage usage = TEXTURE_STATIC);
  9. bool SetData(unsigned layer, Image* image, bool useAlpha = false);
  10. unsigned GetLayers() const;
  11. RenderSurface* GetRenderSurface() const;
  12. tolua_property__get_set unsigned layers;
  13. tolua_readonly tolua_property__get_set RenderSurface* renderSurface;
  14. };
  15. ${
  16. #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_Texture2DArray_new00
  17. static int tolua_GraphicsLuaAPI_Texture2DArray_new00(lua_State* tolua_S)
  18. {
  19. return ToluaNewObject<Texture2DArray>(tolua_S);
  20. }
  21. #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_Texture2DArray_new00_local
  22. static int tolua_GraphicsLuaAPI_Texture2DArray_new00_local(lua_State* tolua_S)
  23. {
  24. return ToluaNewObjectGC<Texture2DArray>(tolua_S);
  25. }
  26. $}