View3D.pkg 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. $#include "View3D.h"
  2. class View3D : public Window
  3. {
  4. View3D();
  5. ~View3D();
  6. // The default value of ownScene change to false in Lua
  7. void SetView(Scene* scene, Camera* camera, bool ownScene = false);
  8. void SetFormat(unsigned format);
  9. void SetAutoUpdate(bool enable);
  10. void QueueUpdate();
  11. unsigned GetFormat() const;
  12. bool GetAutoUpdate() const;
  13. Scene* GetScene() const;
  14. Node* GetCameraNode() const;
  15. Texture2D* GetRenderTexture() const;
  16. Texture2D* GetDepthTexture() const;
  17. Viewport* GetViewport() const;
  18. tolua_property__get_set unsigned format;
  19. tolua_property__get_set bool autoUpdate;
  20. };
  21. ${
  22. #define TOLUA_DISABLE_tolua_UILuaAPI_View3D_new00
  23. static int tolua_UILuaAPI_View3D_new00(lua_State* tolua_S)
  24. {
  25. return ToluaNewObject<View3D>(tolua_S);
  26. }
  27. #define TOLUA_DISABLE_tolua_UILuaAPI_View3D_new00_local
  28. static int tolua_UILuaAPI_View3D_new00_local(lua_State* tolua_S)
  29. {
  30. return ToluaNewObjectGC<View3D>(tolua_S);
  31. }
  32. $}