RenderSurface.pkg 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. $#include "RenderSurface.h"
  2. class RenderSurface
  3. {
  4. RenderSurface(Texture* parentTexture);
  5. ~RenderSurface();
  6. void SetNumViewports(unsigned num);
  7. void SetViewport(unsigned index, Viewport* viewport);
  8. void SetUpdateMode(RenderSurfaceUpdateMode mode);
  9. void SetLinkedRenderTarget(RenderSurface* renderTarget);
  10. void SetLinkedDepthStencil(RenderSurface* depthStencil);
  11. void QueueUpdate();
  12. void Release();
  13. Texture* GetParentTexture() const;
  14. int GetWidth() const;
  15. int GetHeight() const;
  16. TextureUsage GetUsage() const;
  17. unsigned GetNumViewports() const;
  18. Viewport* GetViewport(unsigned index) const;
  19. RenderSurfaceUpdateMode GetUpdateMode() const;
  20. RenderSurface* GetLinkedRenderTarget() const;
  21. RenderSurface* GetLinkedDepthStencil() const;
  22. tolua_readonly tolua_property__get_set Texture* parentTexture;
  23. tolua_readonly tolua_property__get_set int width;
  24. tolua_readonly tolua_property__get_set int height;
  25. tolua_readonly tolua_property__get_set TextureUsage usage;
  26. tolua_property__get_set unsigned numViewports;
  27. tolua_property__get_set RenderSurfaceUpdateMode updateMode;
  28. tolua_property__get_set RenderSurface* linkedRenderTarget;
  29. tolua_property__get_set RenderSurface* linkedDepthStencil;
  30. };