RenderSurface.pkg 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. $#include "RenderSurface.h"
  2. /// %Color or depth-stencil surface that can be rendered into.
  3. class RenderSurface
  4. {
  5. public:
  6. void SetNumViewports(unsigned num);
  7. /// Set viewport.
  8. void SetViewport(unsigned index, Viewport* viewport);
  9. /// Set viewport update mode. Default is to update when visible.
  10. void SetUpdateMode(RenderSurfaceUpdateMode mode);
  11. /// Set linked color rendertarget.
  12. void SetLinkedRenderTarget(RenderSurface* renderTarget);
  13. /// Set linked depth-stencil surface.
  14. void SetLinkedDepthStencil(RenderSurface* depthStencil);
  15. /// Queue manual update of the viewport(s).
  16. void QueueUpdate();
  17. /// Release surface.
  18. void Release();
  19. /// Return parent texture.
  20. Texture* GetParentTexture() const;
  21. /// Return width.
  22. int GetWidth() const;
  23. /// Return height.
  24. int GetHeight() const;
  25. /// Return usage.
  26. TextureUsage GetUsage() const;
  27. /// Return linked color rendertarget.
  28. RenderSurface* GetLinkedRenderTarget() const;
  29. /// Return linked depth-stencil surface.
  30. RenderSurface* GetLinkedDepthStencil() const;
  31. };