TargetHandle Class Reference
 
 
 
TargetHandle Class Reference

This reference page is linked to from the following overview topics: Low-level Device API.


#include <TargetHandle.h>

Inheritance diagram for TargetHandle:
BaseRasterHandle SmartHandle Noncopyable MaxHeapOperators PresentableTargetHandle

Class Description

Application can use this class either as a render target or convert it to texture and assign to model.

Public Member Functions

GraphicsDriverAPI  TargetHandle ()
GraphicsDriverAPI  TargetHandle (const TargetHandle &from)
GraphicsDriverAPI TargetHandle operator= (const TargetHandle &from)
virtual GraphicsDriverAPI  ~TargetHandle ()
virtual GraphicsDriverAPI bool  Initialize (size_t width, size_t height)
  Initialize the instance of target.

Constructor & Destructor Documentation

GraphicsDriverAPI TargetHandle ( )
GraphicsDriverAPI TargetHandle ( const TargetHandle from )
virtual GraphicsDriverAPI ~TargetHandle ( ) [virtual]

Member Function Documentation

GraphicsDriverAPI TargetHandle& operator= ( const TargetHandle from )
virtual GraphicsDriverAPI bool Initialize ( size_t  width,
size_t  height 
) [virtual]

Initialize the instance of target.

The target format is fixed to A8R8G8B8 A TargetHandle should be initialized before it's used

Parameters:
[in] width the width of target.
[in] height the height of target.
[in] format member of the TextureFormat enumerated type, describing the pixel format of the target.