View3D.pkg 970 B

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