CVidCell Class
Overview
Note
The CVidCell class handles image sprite animations
The structure used for this class is CVidCell
Quick Reference
Quick Ref |
void CVidCell::CVidCell(CResRef cNewResRef) |
void CVidCell::CVidCell() |
void CVidCell::~CVidCell() |
void CVidCell::AddRangeAffect(unsigned short nAffectType, unsigned short nRangeId, unsigned long rgbAffectColor, unsigned char pulsePeriod) |
void CVidCell::AddResPaletteAffect(unsigned short nAffectType, unsigned long rgbAffectColor, unsigned char pulsePeriod) |
void CVidCell::Blt8To32(unsigned long* surface, int surfacePitch, CPoint& destOffset, CRect& destClip, unsigned long dwFlags, CPoint& sourceOffset, bool isAlphaMap) |
void CVidCell::DeleteRangeAffects(unsigned short nRangeId) |
void CVidCell::DeleteResPaletteAffect() |
virtual int CVidCell::FrameAdvance() |
int CVidCell::FrameSet(unsigned short nFrame) |
int CVidCell::FXRender3d(int nRefPtX, int nRefPtY, CRect& rFXRect, CRect& rClip, unsigned long dwFlags, int bAlphaValues) |
int CVidCell::FXRender3d(int nRefPtX, int nRefPtY, CRect& rFXRect, unsigned long dwFlags, int nTransVal, int bAlphaValues) |
int CVidCell::GetCurrentCenterPoint(CPoint& ptReference) |
int CVidCell::GetCurrentFrameSize(CSize& frameSize) |
virtual int CVidCell::GetFrame() |
int CVidCell::GetFrameSize(short nSequence, short nFrame, CSize& frameSize) |
unsigned short CVidCell::GetNumberSequences() |
unsigned char CVidCell::GetSequenceLength(unsigned short nSequence) |
int CVidCell::IsEndOfSequence() |
int CVidCell::IsEndOfTwitchSequence() |
void CVidCell::RealizePalette(unsigned long dwFlags) |
virtual int CVidCell::Render(int x, int y, CRect& rClipping, CVidPoly* pClipPoly, int nPolys, unsigned long dwFlags, int nTransVal) |
virtual int CVidCell::Render(unsigned long* pSurface, long lPitch, int nRefPtX, int nRefPtY, CRect& rClip, unsigned long dwFlags, CPoint& ptSource) |
int CVidCell::Render3d(int x, int y, CRect& rClipping, CRect& rScale, CVidPoly* pClipPoly, int nPolys, unsigned long dwFlags, int nTransVal) |
int CVidCell::Render3d(int nRefPtX, int nRefPtY, CRect& rClip, unsigned long dwFlags) |
int CVidCell::Render3d(int x, int y, CRect& rClipping, CVidPoly* pClipPoly, int nPolys, unsigned long dwFlags, int nTransVal) |
int CVidCell::RenderPVR(int x, int y, CRect& rClip, unsigned long dwFlags, int nTransVal) |
virtual void __cdecl CVidCell::RenderTexture(int x, int y, CRect& rFxRect, CSize dataPitch, CRect& rClip, CRect& rScale, unsigned long dwFlags) |
virtual void __cdecl CVidCell::RenderTexture(int x, int y, CRect& rFxRect, CSize dataPitch, CRect& rClip, unsigned long dwFlags) |
int CVidCell::SequenceSet(unsigned short nSequence) |
void CVidCell::SetPalette(CVidPalette& cPalette) |
void CVidCell::SetPalette(RGBQUAD* pRgbQuad, int nPaletteEntries, unsigned short nType) |
virtual void CVidCell::StoreBackground(int srcx, int srcy, CRect& srcClip, CRect& rStorage, unsigned char bNumbered) |
void CVidCell::SuppressTint(short nRange) |
void CVidCell::UnsuppressTint(short nRange) |
Constructors
Name |
Description |
Constructs a |
|
Destroys a |
CVidCell::CVidCell
Constructs a CVidCell object
void CVidCell::CVidCell(CResRef cNewResRef);
Parameters
CResRef cNewResRef -
Remarks
Constructs a CVidCell object
CVidCell::CVidCell
Constructs a CVidCell object
void CVidCell::CVidCell();
Remarks
Constructs a CVidCell object
CVidCell::~CVidCell
Destroys the CVidCell object
virtual void CVidCell::~CVidCell();
Remarks
Destroys the CVidCell object
Methods
Name |
Description |
CVidCell::AddRangeAffect
void CVidCell::AddRangeAffect(
unsigned short nAffectType,
unsigned short nRangeId,
unsigned long rgbAffectColor,
unsigned char pulsePeriod);
Parameters
unsigned shortnAffectType -unsigned shortnRangeId -unsigned longrgbAffectColor -unsigned charpulsePeriod -
Remarks
CVidCell::AddResPaletteAffect
void CVidCell::AddResPaletteAffect(
unsigned short nAffectType,
unsigned long rgbAffectColor,
unsigned char pulsePeriod);
Parameters
unsigned shortnAffectType -unsigned longrgbAffectColor -unsigned charpulsePeriod -
Remarks
CVidCell::Blt8To32
void CVidCell::Blt8To32(
unsigned long* surface,
int surfacePitch,
CPoint& destOffset,
CRect& destClip,
unsigned long dwFlags,
CPoint& sourceOffset,
bool isAlphaMap);
Parameters
unsigned long* surface -intsurfacePitch -CPoint& destOffset -
CRect& destClip -
unsigned longdwFlags -CPoint& sourceOffset -
boolisAlphaMap -
Remarks
CVidCell::DeleteRangeAffects
void CVidCell::DeleteRangeAffects(unsigned short nRangeId);
Parameters
unsigned shortnRangeId -
Remarks
CVidCell::DeleteResPaletteAffect
void CVidCell::DeleteResPaletteAffect();
Remarks
CVidCell::FrameAdvance
virtual int CVidCell::FrameAdvance();
Return Value
Returns int
Remarks
CVidCell::FrameSet
int CVidCell::FrameSet(unsigned short nFrame);
Parameters
unsigned shortnFrame -
Return Value
Returns int
Remarks
CVidCell::FXRender3d
int CVidCell::FXRender3d(
int nRefPtX,
int nRefPtY,
CRect& rFXRect,
CRect& rClip,
unsigned long dwFlags,
int bAlphaValues);
Parameters
intnRefPtX -intnRefPtY -CRect& rFXRect -
CRect& rClip -
unsigned longdwFlags -intbAlphaValues -
Return Value
Returns int
Remarks
CVidCell::FXRender3d
int CVidCell::FXRender3d(
int nRefPtX,
int nRefPtY,
CRect& rFXRect,
unsigned long dwFlags,
int nTransVal,
int bAlphaValues);
Parameters
intnRefPtX -intnRefPtY -CRect& rFXRect -
unsigned longdwFlags -intnTransVal -intbAlphaValues -
Return Value
Returns int
Remarks
CVidCell::GetCurrentCenterPoint
int CVidCell::GetCurrentCenterPoint(CPoint& ptReference);
Parameters
CPoint& ptReference -
Return Value
Returns int
Remarks
CVidCell::GetCurrentFrameSize
int CVidCell::GetCurrentFrameSize(CSize& frameSize);
Parameters
CSize& frameSize -
Return Value
Returns int
Remarks
CVidCell::GetFrame
virtual int CVidCell::GetFrame();
Return Value
Returns int
Remarks
CVidCell::GetFrameSize
int CVidCell::GetFrameSize(
short nSequence,
short nFrame,
CSize& frameSize);
Parameters
shortnSequence -shortnFrame -CSize& frameSize -
Return Value
Returns int
Remarks
CVidCell::GetNumberSequences
unsigned short CVidCell::GetNumberSequences();
Return Value
Returns unsigned short
Remarks
CVidCell::GetSequenceLength
unsigned char CVidCell::GetSequenceLength(unsigned short nSequence);
Parameters
unsigned shortnSequence -
Return Value
Returns unsigned char
Remarks
CVidCell::IsEndOfSequence
int CVidCell::IsEndOfSequence();
Return Value
Returns int
Remarks
CVidCell::IsEndOfTwitchSequence
int CVidCell::IsEndOfTwitchSequence();
Return Value
Returns int
Remarks
CVidCell::RealizePalette
void CVidCell::RealizePalette(unsigned long dwFlags);
Parameters
unsigned longdwFlags -
Remarks
CVidCell::Render
virtual int CVidCell::Render(
int x,
int y,
CRect& rClipping,
CVidPoly* pClipPoly,
int nPolys,
unsigned long dwFlags,
int nTransVal);
Parameters
intx -inty -CRect& rClipping -
CVidPoly* pClipPoly -
intnPolys -unsigned longdwFlags -intnTransVal -
Return Value
Returns int
Remarks
CVidCell::Render
virtual int CVidCell::Render(
unsigned long* pSurface,
long lPitch,
int nRefPtX,
int nRefPtY,
CRect& rClip,
unsigned long dwFlags,
CPoint& ptSource);
Parameters
unsigned long* pSurface -longlPitch -intnRefPtX -intnRefPtY -CRect& rClip -
unsigned longdwFlags -CPoint& ptSource -
Return Value
Returns int
Remarks
CVidCell::Render3d
int CVidCell::Render3d(
int x,
int y,
CRect& rClipping,
CRect& rScale,
CVidPoly* pClipPoly,
int nPolys,
unsigned long dwFlags,
int nTransVal);
Parameters
intx -inty -CRect& rClipping -
CRect& rScale -
CVidPoly* pClipPoly -
intnPolys -unsigned longdwFlags -intnTransVal -
Return Value
Returns int
Remarks
CVidCell::Render3d
int CVidCell::Render3d(
int nRefPtX,
int nRefPtY,
CRect& rClip,
unsigned long dwFlags);
Parameters
intnRefPtX -intnRefPtY -CRect& rClip -
unsigned longdwFlags -
Return Value
Returns int
Remarks
CVidCell::Render3d
int CVidCell::Render3d(
int x,
int y,
CRect& rClipping,
CVidPoly* pClipPoly,
int nPolys,
unsigned long dwFlags,
int nTransVal);
Parameters
intx -inty -CRect& rClipping -
CVidPoly* pClipPoly -
intnPolys -unsigned longdwFlags -intnTransVal -
Return Value
Returns int
Remarks
CVidCell::RenderPVR
int CVidCell::RenderPVR(
int x,
int y,
CRect& rClip,
unsigned long dwFlags,
int nTransVal);
Parameters
intx -inty -CRect& rClip -
unsigned longdwFlags -intnTransVal -
Return Value
Returns int
Remarks
CVidCell::RenderTexture
virtual void __cdecl CVidCell::RenderTexture(
int x,
int y,
CRect& rFxRect,
CSize dataPitch,
CRect& rClip,
CRect& rScale,
unsigned long dwFlags);
Parameters
intx -inty -CRect& rFxRect -
CSize dataPitch -
CRect& rClip -
CRect& rScale -
unsigned longdwFlags -
Remarks
CVidCell::RenderTexture
virtual void __cdecl CVidCell::RenderTexture(
int x,
int y,
CRect& rFxRect,
CSize dataPitch,
CRect& rClip,
unsigned long dwFlags);
Parameters
Remarks
CVidCell::SequenceSet
int CVidCell::SequenceSet(unsigned short nSequence);
Parameters
unsigned shortnSequence -
Return Value
Returns int
Remarks
CVidCell::SetPalette
void CVidCell::SetPalette(CVidPalette& cPalette);
Parameters
CVidPalette& cPalette -
Remarks
CVidCell::SetPalette
void CVidCell::SetPalette(
RGBQUAD* pRgbQuad,
int nPaletteEntries,
unsigned short nType);
Parameters
RGBQUAD* pRgbQuad -
intnPaletteEntries -unsigned shortnType -
Remarks
CVidCell::StoreBackground
virtual void CVidCell::StoreBackground(
int srcx,
int srcy,
CRect& srcClip,
CRect& rStorage,
unsigned char bNumbered);
Parameters
Return Value
Returns
Remarks
CVidCell::SuppressTint
void CVidCell::SuppressTint(short nRange);
Parameters
shortnRange -
Remarks
CVidCell::UnsuppressTint
void CVidCell::UnsuppressTint(short nRange);
Parameters
shortnRange -
Remarks
Operators
Name |
Description |
CVidCell::operator=
CVidCell& CVidCell::operator=(CVidCell& __that);
Parameters
CVidCell& __that -
Return Value
Returns CVidCell&
Remarks