My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::CPainterState Class Reference
Inheritance diagram for ParaEngine::CPainterState:
ParaEngine::CPaintEngineState ParaEngine::CPaintEngineGPUState

Public Member Functions

 CPainterState (const CPainterState *s)
 
void init (CPainter *p)
 
virtual void SetSpriteTransform (const Matrix4 *pMatrix=NULL)
 set the global transform to sprite object. More...
 
virtual void SetSpriteUseWorldMatrix (bool bEnable)
 set sprite use world matrix. More...
 
virtual bool IsSpriteUseWorldMatrix ()
 
QPen pen () const
 
QBrush brush () const
 
QPointF brushOrigin () const
 
QBrush backgroundBrush () const
 
QFont font () const
 
QMatrix matrix () const
 
QTransform transform () const
 
Color color ()
 get the current pen color multiplied by current opacity. More...
 
ClipOperation clipOperation () const
 
QRegion clipRegion () const
 
QPainterPath clipPath () const
 
bool isClipEnabled () const
 
CPainter::CompositionMode compositionMode () const
 
float opacity () const
 
void AddPendingAsset (int nCount=1)
 number of texture that is being loaded, but not available at the time of drawing. More...
 
void CalculateDeviceMatrix (Matrix4 *pOut, const Matrix4 *pIn=NULL)
 calculate device matrix based on given matrix More...
 
- Public Member Functions inherited from ParaEngine::CPaintEngineState
CPaintEngine::DirtyFlags state () const
 
CPainterpainter () const
 

Public Attributes

QPointF m_brushOrigin
 
QFont m_font
 
QPen m_pen
 
QBrush m_brush
 
QBrush m_bgBrush
 
QRegion m_clipRegion
 
QPainterPath m_clipPath
 
ClipOperation m_clipOperation
 
std::vector< CPainterClipInfom_clipInfo
 
QTransform worldMatrix
 
QTransform m_matrix
 
Matrix4 matComplete
 final complete transform
 
int m_viewportX
 
int m_viewportY
 
int m_viewportWidth
 
int m_viewportHeight
 
float m_fViewportLeft
 
float m_fViewportTop
 
float m_fUIScalingX
 
float m_fUIScalingY
 
float m_opacity
 
bool WxF: 1
 
bool VxF: 1
 
bool m_clipEnabled: 1
 
int m_nPendingAssetCount
 number of texture that is being loaded, but not available at the time of drawing. More...
 
CPainterm_painter
 
CPainter::CompositionMode m_composition_mode
 
uint32 changeFlags
 

Additional Inherited Members

- Protected Attributes inherited from ParaEngine::CPaintEngineState
uint32 dirtyFlags
 type of CPaintEngine::DirtyFlags
 

Member Function Documentation

§ AddPendingAsset()

void ParaEngine::CPainterState::AddPendingAsset ( int  nCount = 1)

number of texture that is being loaded, but not available at the time of drawing.

we generally make the paint device dirty if there is painted with at least one pending asset.

§ CalculateDeviceMatrix()

void ParaEngine::CPainterState::CalculateDeviceMatrix ( Matrix4 pOut,
const Matrix4 pIn = NULL 
)

calculate device matrix based on given matrix

Parameters
pInif NULL, it will be current transform.

§ color()

Color ParaEngine::CPainterState::color ( )

get the current pen color multiplied by current opacity.

§ SetSpriteTransform()

void ParaEngine::CPainterState::SetSpriteTransform ( const Matrix4 pMatrix = NULL)
virtual

set the global transform to sprite object.

Reimplemented in ParaEngine::CPaintEngineGPUState.

§ SetSpriteUseWorldMatrix()

virtual void ParaEngine::CPainterState::SetSpriteUseWorldMatrix ( bool  bEnable)
inlinevirtual

set sprite use world matrix.

Reimplemented in ParaEngine::CPaintEngineGPUState.

Member Data Documentation

§ m_nPendingAssetCount

int ParaEngine::CPainterState::m_nPendingAssetCount

number of texture that is being loaded, but not available at the time of drawing.

we generally make the paint device dirty if there is painted with at least one pending asset.


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