Urho3D
Public Member Functions | Private Attributes | Friends
Urho3D::RenderSurface Class Reference

Color or depth-stencil surface that can be rendered into. More...

#include <D3D9RenderSurface.h>

Inheritance diagram for Urho3D::RenderSurface:
Urho3D::RefCounted

List of all members.

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.
TextureGetParentTexture () 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.
ViewportGetViewport () const
 Return auxiliary view rendering viewport.
RenderSurfaceGetLinkedRenderTarget () const
 Return linked color rendertarget.
RenderSurfaceGetLinkedDepthStencil () const
 Return linked depth-stencil surface.
- Public Member Functions inherited from Urho3D::RefCounted
 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.
RefCountRefCountPtr ()
 Return pointer to the reference count structure.

Private Attributes

TextureparentTexture_
 Parent texture.
void * surface_
 Direct3D surface.
SharedPtr< Viewportviewport_
 Viewport.
WeakPtr< RenderSurfacelinkedRenderTarget_
 Linked color buffer.
WeakPtr< RenderSurfacelinkedDepthStencil_
 Linked depth buffer.

Friends

class Texture2D
class TextureCube

Detailed Description

Color or depth-stencil surface that can be rendered into.


The documentation for this class was generated from the following files: