Texture2D.pkg 753 B

1234567891011121314151617181920212223242526272829
  1. $#include "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. RenderSurface* GetRenderSurface() const;
  9. tolua_readonly tolua_property__get_set RenderSurface* renderSurface;
  10. };
  11. ${
  12. #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_Texture2D_new00
  13. static int tolua_GraphicsLuaAPI_Texture2D_new00(lua_State* tolua_S)
  14. {
  15. return ToluaNewObject<Texture2D>(tolua_S);
  16. }
  17. #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_Texture2D_new00_local
  18. static int tolua_GraphicsLuaAPI_Texture2D_new00_local(lua_State* tolua_S)
  19. {
  20. return ToluaNewObjectGC<Texture2D>(tolua_S);
  21. }
  22. $}