Urho3D
|
Color or depth-stencil surface that can be rendered into. More...
#include <D3D9RenderSurface.h>
Public Member Functions | |
RenderSurface (Texture *parentTexture) | |
Construct with parent texture. | |
~RenderSurface () | |
Destruct. | |
void | SetViewport (Viewport *viewport) |
Set viewport for auxiliary view rendering. | |
void | SetLinkedRenderTarget (RenderSurface *renderTarget) |
Set linked color rendertarget. | |
void | SetLinkedDepthStencil (RenderSurface *depthStencil) |
Set linked depth-stencil surface. | |
void | Release () |
Release surface. | |
Texture * | GetParentTexture () const |
Return parent texture. | |
void * | GetSurface () const |
Return Direct3D surface. | |
int | GetWidth () const |
Return width. | |
int | GetHeight () const |
Return height. | |
TextureUsage | GetUsage () const |
Return usage. | |
Viewport * | GetViewport () const |
Return auxiliary view rendering viewport. | |
RenderSurface * | GetLinkedRenderTarget () const |
Return linked color rendertarget. | |
RenderSurface * | GetLinkedDepthStencil () const |
Return linked depth-stencil surface. | |
![]() | |
RefCounted () | |
Construct. Allocate the reference count structure and set an initial self weak reference. | |
virtual | ~RefCounted () |
Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist. | |
void | AddRef () |
Increment reference count. Can also be called outside of a SharedPtr for traditional reference counting. | |
void | ReleaseRef () |
Decrement reference count and delete self if no more references. Can also be called outside of a SharedPtr for traditional reference counting. | |
int | Refs () const |
Return reference count. | |
int | WeakRefs () const |
Return weak reference count. | |
RefCount * | RefCountPtr () |
Return pointer to the reference count structure. |
Private Attributes | |
Texture * | parentTexture_ |
Parent texture. | |
void * | surface_ |
Direct3D surface. | |
SharedPtr< Viewport > | viewport_ |
Viewport. | |
WeakPtr< RenderSurface > | linkedRenderTarget_ |
Linked color buffer. | |
WeakPtr< RenderSurface > | linkedDepthStencil_ |
Linked depth buffer. |
Friends | |
class | Texture2D |
class | TextureCube |
Color or depth-stencil surface that can be rendered into.