arsa  2.7
Public Member Functions | Public Attributes | List of all members
CDXLayer Class Reference

#include <cdxlayer.h>

Public Member Functions

 CDXLayer (void)
 
virtual ~CDXLayer (void)
 
virtual int Create (char *szFilename)
 
virtual void ScrollUp (float Offset)
 
virtual void ScrollDown (float Offset)
 
virtual void ScrollLeft (float Offset)
 
virtual void ScrollRight (float Offset)
 
virtual void MoveTo (float XOffset, float YOffset)
 
virtual void SetColor (const CDX_Color &color)
 
virtual int Draw (CDXSurface *lpDDS=0)
 
virtual void SetOrder (irr::u32 order)
 
virtual void SetMeshId (irr::u32 id)
 
virtual irr::u32 GetOrder () const
 
virtual void SetTexture (irr::video::ITexture *tex)
 
virtual void SetPos (int x, int y)
 
virtual void EnableRenderToTexture (bool active)
 !!!becareful enable rendertarget after done then alway restore 0 render target with clear depth and color buffer!!! More...
 
virtual bool IsRenderToTexture () const
 
virtual irr::video::ITextureGetRenderToTexture () const
 
virtual irr::video::ITextureGetSurface () const
 

Public Attributes

float m_XOffset
 The current X position in pixels. More...
 
float m_YOffset
 The current Y position in pixels. More...
 
CDXSurfacem_pSurface
 
CDX_Color m_Color
 

Detailed Description

//////////////////////////////////////////////////////////////////////////////// CDXLayer is derived from CDXSurface and is very similar in most respects. However, a CDXLayer has the added ability to smoothly scroll the surface in all directions. This effect is often seen in platform games where the background is a scrolling bitmap and the foreground a scrolling tile map, giving a good feeling of depth. A CDXLayer would also be perfect for a pinball game since DirectX places no restrictions on the height of bitmaps in video memory. ////////////////////////////////////////////////////////////////////////////////

Definition at line 22 of file cdxlayer.h.

Constructor & Destructor Documentation

◆ CDXLayer()

CDXLayer::CDXLayer ( void  )

◆ ~CDXLayer()

virtual CDXLayer::~CDXLayer ( void  )
virtual

Member Function Documentation

◆ Create()

virtual int CDXLayer::Create ( char *  szFilename)
virtual

◆ Draw()

virtual int CDXLayer::Draw ( CDXSurface lpDDS = 0)
virtual

◆ EnableRenderToTexture()

virtual void CDXLayer::EnableRenderToTexture ( bool  active)
inlinevirtual

!!!becareful enable rendertarget after done then alway restore 0 render target with clear depth and color buffer!!!

Definition at line 43 of file cdxlayer.h.

43 { m_RTT_Enable = active; }

◆ GetOrder()

virtual irr::u32 CDXLayer::GetOrder ( ) const
inlinevirtual

Definition at line 39 of file cdxlayer.h.

39 { return m_Order; }

◆ GetRenderToTexture()

virtual irr::video::ITexture* CDXLayer::GetRenderToTexture ( ) const
inlinevirtual

Definition at line 45 of file cdxlayer.h.

45 { return m_pRttSurface; } // only enable render to texture

◆ GetSurface()

virtual irr::video::ITexture* CDXLayer::GetSurface ( ) const
inlinevirtual

Definition at line 46 of file cdxlayer.h.

46 { return m_pSurface; }
CDXSurface * m_pSurface
Definition: cdxlayer.h:53

◆ IsRenderToTexture()

virtual bool CDXLayer::IsRenderToTexture ( ) const
inlinevirtual

Definition at line 44 of file cdxlayer.h.

44 { return m_RTT_Enable; }

◆ MoveTo()

virtual void CDXLayer::MoveTo ( float  XOffset,
float  YOffset 
)
virtual

◆ ScrollDown()

virtual void CDXLayer::ScrollDown ( float  Offset)
virtual

◆ ScrollLeft()

virtual void CDXLayer::ScrollLeft ( float  Offset)
virtual

◆ ScrollRight()

virtual void CDXLayer::ScrollRight ( float  Offset)
virtual

◆ ScrollUp()

virtual void CDXLayer::ScrollUp ( float  Offset)
virtual

◆ SetColor()

virtual void CDXLayer::SetColor ( const CDX_Color color)
inlinevirtual

Definition at line 35 of file cdxlayer.h.

35 { m_Color = color; }
CDX_Color m_Color
Definition: cdxlayer.h:54
GLuint color

◆ SetMeshId()

virtual void CDXLayer::SetMeshId ( irr::u32  id)
inlinevirtual

Definition at line 38 of file cdxlayer.h.

38 { m_MbId = id; }
GLuint id

◆ SetOrder()

virtual void CDXLayer::SetOrder ( irr::u32  order)
inlinevirtual

Definition at line 37 of file cdxlayer.h.

37 { m_Order = order; }
GLfixed GLfixed GLint GLint order

◆ SetPos()

virtual void CDXLayer::SetPos ( int  x,
int  y 
)
virtual

◆ SetTexture()

virtual void CDXLayer::SetTexture ( irr::video::ITexture tex)
virtual

Member Data Documentation

◆ m_Color

CDX_Color CDXLayer::m_Color

Definition at line 54 of file cdxlayer.h.

◆ m_pSurface

CDXSurface* CDXLayer::m_pSurface

Definition at line 53 of file cdxlayer.h.

◆ m_XOffset

float CDXLayer::m_XOffset

The current X position in pixels.

Definition at line 50 of file cdxlayer.h.

◆ m_YOffset

float CDXLayer::m_YOffset

The current Y position in pixels.

Definition at line 52 of file cdxlayer.h.


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