![]() |
Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
|
Interface of a Render Target. More...
#include <duckcpp/core/engine/IRenderTarget.hpp>


Public Member Functions | |
| IRenderTarget () | |
| constructor | |
| const dcpp::nub::array< ITexture * > & | getTexture () const |
| Returns an array of previously set textures. | |
| ITexture * | getDepthStencil () const |
| Returns a of previously set depth / depth-stencil texture. | |
| const dcpp::nub::array< E_CUBE_SURFACE > & | getCubeSurfaces () const |
| Returns an array of active surface for cube textures. | |
| void | setTexture (const dcpp::nub::array< ITexture * > &texture, ITexture *depthStencil, const dcpp::nub::array< E_CUBE_SURFACE > &cubeSurfaces=dcpp::nub::array< E_CUBE_SURFACE >()) |
| Set multiple textures. | |
| void | setTexture (ITexture *texture, ITexture *depthStencil) |
| void | setTexture (ITexture *texture, ITexture *depthStencil, E_CUBE_SURFACE cubeSurface) |
| Set one cube surface texture. | |
| E_DRIVER_TYPE | getDriverType () const |
| Get driver type of render target. | |
Public Member Functions inherited from dcpp::IReferenceCounted | |
| IReferenceCounted () | |
| Constructor. | |
| virtual | ~IReferenceCounted () |
| Destructor. | |
| void | grab () const |
| Grabs the object. Increments the reference counter by one. | |
| bool | drop () const |
| Drops the object. Decrements the reference counter by one. | |
| dcpp::int32_kt | getReferenceCount () const |
| Get the reference count. | |
| const dcpp::char_kt * | getDebugName () const |
| Returns the debug name of the object. | |
Protected Member Functions | |
| virtual void | setTextures (ITexture *const *textures, dcpp::uint32_kt numTextures, ITexture *depthStencil, const E_CUBE_SURFACE *cubeSurfaces=0, dcpp::uint32_kt numCubeSurfaces=0)=0 |
| Set multiple textures. | |
Protected Member Functions inherited from dcpp::IReferenceCounted | |
| void | setDebugName (const dcpp::char_kt *newName) |
| Sets the debug name of the object. | |
Protected Attributes | |
| dcpp::nub::array< ITexture * > | Textures |
| Textures assigned to render target. | |
| ITexture * | DepthStencil |
| Depth or packed depth-stencil texture assigned to render target. | |
| dcpp::nub::array< E_CUBE_SURFACE > | CubeSurfaces |
| Active surface of cube textures. | |
| E_DRIVER_TYPE | DriverType |
| Driver type of render target. | |
Interface of a Render Target.
|
inline |
Set multiple textures.
Set multiple textures for the render target.
| texture | Array of texture objects. These textures are used for a color outputs. |
| depthStencil | Depth or packed depth-stencil texture. This texture is used as depth or depth-stencil buffer. You can pass getDepthStencil() if you don't want to change it. |
| cubeSurfaces | When rendering to cube textures, set the surface to be used for each texture. Can be empty otherwise. |
Sets one texture + depthStencil You can pass getDepthStencil() for depthStencil if you don't want to change that one