My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::CGDIRenderTarget Class Reference

a gdi render target is a Gdiplus::Bitmap and Gdiplus::Graphics object. More...

#include <GDIEngine.h>

Inheritance diagram for ParaEngine::CGDIRenderTarget:
ParaEngine::intrusive_ptr_single_thread_base

Public Member Functions

 CGDIRenderTarget (int nImageSize=0)
 
void Init (int nImageSize)
 call this function to init render target to a new size
 
void Cleanup ()
 called to invalidate all interface
 
bool IsValid ()
 if interface is initialized and valid. More...
 
int GetRenderTargetSize ()
 get the render target size. More...
 
Gdiplus::Graphics * GetGraphics ()
 
Gdiplus::Bitmap * GetBitmapSurface ()
 

Public Attributes

Gdiplus::Bitmap * m_pBitmapSurface
 the current render target. More...
 
int m_nRenderTargetSize
 the current render target size, default to 256 pixels. More...
 
Gdiplus::Graphics * m_pGraphics
 the default graphics for the render target. More...
 
- Public Attributes inherited from ParaEngine::intrusive_ptr_single_thread_base
long m_ref_count
 

Additional Inherited Members

- Protected Member Functions inherited from ParaEngine::intrusive_ptr_single_thread_base
 intrusive_ptr_single_thread_base (const intrusive_ptr_single_thread_base &)
 
intrusive_ptr_single_thread_baseoperator= (const intrusive_ptr_single_thread_base &)
 

Detailed Description

a gdi render target is a Gdiplus::Bitmap and Gdiplus::Graphics object.

Constructor & Destructor Documentation

§ CGDIRenderTarget()

ParaEngine::CGDIRenderTarget::CGDIRenderTarget ( int  nImageSize = 0)
Parameters
nImageSizerender target size. if provided, it will be initialized.

Member Function Documentation

§ GetRenderTargetSize()

int ParaEngine::CGDIRenderTarget::GetRenderTargetSize ( )
inline

get the render target size.

§ IsValid()

bool ParaEngine::CGDIRenderTarget::IsValid ( )

if interface is initialized and valid.

Member Data Documentation

§ m_nRenderTargetSize

int ParaEngine::CGDIRenderTarget::m_nRenderTargetSize

the current render target size, default to 256 pixels.

§ m_pBitmapSurface

Gdiplus::Bitmap* ParaEngine::CGDIRenderTarget::m_pBitmapSurface

the current render target.

§ m_pGraphics

Gdiplus::Graphics* ParaEngine::CGDIRenderTarget::m_pGraphics

the default graphics for the render target.


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