arsa  2.7
Public Member Functions | Protected Attributes | List of all members
irr::video::IRenderTarget Class Referenceabstract

Interface of a Render Target. More...

#include <IRenderTarget.h>

Inheritance diagram for irr::video::IRenderTarget:
irr::IReferenceCounted

Public Member Functions

 IRenderTarget ()
 constructor More...
 
const core::array< ITexture * > & getTexture () const
 Returns an array of previously set textures. More...
 
ITexturegetDepthStencil () const
 Returns a of previously set depth / depth-stencil texture. More...
 
virtual void setTexture (const core::array< ITexture * > &texture, ITexture *depthStencil, const core::array< E_CUBE_SURFACE > &cubeSurfaces=core::array< E_CUBE_SURFACE >())=0
 Set multiple textures. More...
 
void setTexture (ITexture *texture, ITexture *depthStencil)
 Set one texture. More...
 
void setTexture (ITexture *texture, ITexture *depthStencil, E_CUBE_SURFACE cubeSurface)
 Set one cube surface texture. More...
 
E_DRIVER_TYPE getDriverType () const
 Get driver type of render target. More...
 
- Public Member Functions inherited from irr::IReferenceCounted
 IReferenceCounted ()
 Constructor. More...
 
virtual ~IReferenceCounted ()
 Destructor. More...
 
void grab () const
 Grabs the object. Increments the reference counter by one. More...
 
bool drop () const
 Drops the object. Decrements the reference counter by one. More...
 
s32 getReferenceCount () const
 Get the reference count. More...
 
const c8getDebugName () const
 Returns the debug name of the object. More...
 

Protected Attributes

core::array< ITexture * > Texture
 Textures assigned to render target. More...
 
ITextureDepthStencil
 Depth or packed depth-stencil texture assigned to render target. More...
 
core::array< E_CUBE_SURFACECubeSurfaces
 Active surface of cube textures. More...
 
E_DRIVER_TYPE DriverType
 Driver type of render target. More...
 

Additional Inherited Members

- Protected Member Functions inherited from irr::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object. More...
 

Detailed Description

Interface of a Render Target.

Definition at line 30 of file IRenderTarget.h.

Constructor & Destructor Documentation

◆ IRenderTarget()

irr::video::IRenderTarget::IRenderTarget ( )
inline

constructor

Definition at line 35 of file IRenderTarget.h.

36  {
37  }
E_DRIVER_TYPE DriverType
Driver type of render target.
Definition: IRenderTarget.h:99
Null driver, useful for applications to run the engine without visualization.
Definition: EDriverTypes.h:21
ITexture * DepthStencil
Depth or packed depth-stencil texture assigned to render target.
Definition: IRenderTarget.h:93

Member Function Documentation

◆ getDepthStencil()

ITexture* irr::video::IRenderTarget::getDepthStencil ( ) const
inline

Returns a of previously set depth / depth-stencil texture.

Definition at line 46 of file IRenderTarget.h.

47  {
48  return DepthStencil;
49  }
ITexture * DepthStencil
Depth or packed depth-stencil texture assigned to render target.
Definition: IRenderTarget.h:93

◆ getDriverType()

E_DRIVER_TYPE irr::video::IRenderTarget::getDriverType ( ) const
inline

Get driver type of render target.

Definition at line 82 of file IRenderTarget.h.

83  {
84  return DriverType;
85  }
E_DRIVER_TYPE DriverType
Driver type of render target.
Definition: IRenderTarget.h:99

◆ getTexture()

const core::array<ITexture*>& irr::video::IRenderTarget::getTexture ( ) const
inline

Returns an array of previously set textures.

Definition at line 40 of file IRenderTarget.h.

41  {
42  return Texture;
43  }
core::array< ITexture * > Texture
Textures assigned to render target.
Definition: IRenderTarget.h:90

◆ setTexture() [1/3]

virtual void irr::video::IRenderTarget::setTexture ( const core::array< ITexture * > &  texture,
ITexture depthStencil,
const core::array< E_CUBE_SURFACE > &  cubeSurfaces = core::arrayE_CUBE_SURFACE >() 
)
pure virtual

Set multiple textures.

Set multiple textures for the render target.

Parameters
textureArray of texture objects. These textures are used for a color outputs.
depthStencilDepth or packed depth-stencil texture. This texture is used as depth or depth-stencil buffer.
cubeSurfacesWhen rendering to cube textures, set the surface to be used for each texture. Can be empty otherwise.

◆ setTexture() [2/3]

void irr::video::IRenderTarget::setTexture ( ITexture texture,
ITexture depthStencil 
)
inline

Set one texture.

Definition at line 61 of file IRenderTarget.h.

62  {
63  core::array<ITexture*> textureArray(1);
64  textureArray.push_back(texture);
65 
66  setTexture(textureArray, depthStencil);
67  }
GLenum GLenum GLuint texture
virtual void setTexture(const core::array< ITexture * > &texture, ITexture *depthStencil, const core::array< E_CUBE_SURFACE > &cubeSurfaces=core::array< E_CUBE_SURFACE >())=0
Set multiple textures.

◆ setTexture() [3/3]

void irr::video::IRenderTarget::setTexture ( ITexture texture,
ITexture depthStencil,
E_CUBE_SURFACE  cubeSurface 
)
inline

Set one cube surface texture.

Definition at line 70 of file IRenderTarget.h.

71  {
72  core::array<ITexture*> textureArray(1);
73  textureArray.push_back(texture);
74 
75  core::array<E_CUBE_SURFACE> cubeSurfaces(1);
76  cubeSurfaces.push_back(cubeSurface);
77 
78  setTexture(textureArray, depthStencil, cubeSurfaces);
79  }
GLenum GLenum GLuint texture
virtual void setTexture(const core::array< ITexture * > &texture, ITexture *depthStencil, const core::array< E_CUBE_SURFACE > &cubeSurfaces=core::array< E_CUBE_SURFACE >())=0
Set multiple textures.

Member Data Documentation

◆ CubeSurfaces

core::array<E_CUBE_SURFACE> irr::video::IRenderTarget::CubeSurfaces
protected

Active surface of cube textures.

Definition at line 96 of file IRenderTarget.h.

◆ DepthStencil

ITexture* irr::video::IRenderTarget::DepthStencil
protected

Depth or packed depth-stencil texture assigned to render target.

Definition at line 93 of file IRenderTarget.h.

◆ DriverType

E_DRIVER_TYPE irr::video::IRenderTarget::DriverType
protected

Driver type of render target.

Definition at line 99 of file IRenderTarget.h.

◆ Texture

core::array<ITexture*> irr::video::IRenderTarget::Texture
protected

Textures assigned to render target.

Definition at line 90 of file IRenderTarget.h.


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