arsa
2.7
|
#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::ITexture * | GetRenderToTexture () const |
virtual irr::video::ITexture * | GetSurface () const |
Public Attributes | |
float | m_XOffset |
The current X position in pixels. More... | |
float | m_YOffset |
The current Y position in pixels. More... | |
CDXSurface * | m_pSurface |
CDX_Color | m_Color |
//////////////////////////////////////////////////////////////////////////////// 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.
CDXLayer::CDXLayer | ( | void | ) |
|
virtual |
|
virtual |
|
virtual |
|
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.
|
inlinevirtual |
Definition at line 39 of file cdxlayer.h.
|
inlinevirtual |
Definition at line 45 of file cdxlayer.h.
|
inlinevirtual |
Definition at line 46 of file cdxlayer.h.
|
inlinevirtual |
Definition at line 44 of file cdxlayer.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Definition at line 35 of file cdxlayer.h.
Definition at line 38 of file cdxlayer.h.
Definition at line 37 of file cdxlayer.h.
|
virtual |
|
virtual |
CDX_Color CDXLayer::m_Color |
Definition at line 54 of file cdxlayer.h.
CDXSurface* CDXLayer::m_pSurface |
Definition at line 53 of file cdxlayer.h.
float CDXLayer::m_XOffset |
The current X position in pixels.
Definition at line 50 of file cdxlayer.h.
float CDXLayer::m_YOffset |
The current Y position in pixels.
Definition at line 52 of file cdxlayer.h.