Texture2D.pkg 810 B

123456789101112131415161718192021222324252627282930
  1. $#include "Graphics/Texture2D.h"
  2. enum TextureUsage{};
  3. class Texture2D : public Texture
  4. {
  5. Texture2D();
  6. ~Texture2D();
  7. bool SetSize(int width, int height, unsigned format, TextureUsage usage = TEXTURE_STATIC);
  8. bool SetData(Image* image, bool useAlpha = false);
  9. RenderSurface* GetRenderSurface() const;
  10. tolua_readonly tolua_property__get_set RenderSurface* renderSurface;
  11. };
  12. ${
  13. #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_Texture2D_new00
  14. static int tolua_GraphicsLuaAPI_Texture2D_new00(lua_State* tolua_S)
  15. {
  16. return ToluaNewObject<Texture2D>(tolua_S);
  17. }
  18. #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_Texture2D_new00_local
  19. static int tolua_GraphicsLuaAPI_Texture2D_new00_local(lua_State* tolua_S)
  20. {
  21. return ToluaNewObjectGC<Texture2D>(tolua_S);
  22. }
  23. $}