HoverRace  2.0
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HoverRace::VideoServices::Viewport3D Class Reference

#include <Viewport3D.h>

+ Inheritance diagram for HoverRace::VideoServices::Viewport3D:

Classes

struct  BackColumn
 

Public Member Functions

MR_DllDeclare Viewport3D ()
 
MR_DllDeclare ~Viewport3D ()
 
MR_DllDeclare void ClearZ ()
 
MR_DllDeclare BOOL ComputePositionMatrix (PositionMatrix &pMatrix, const MR_3DCoordinate &pPosition, MR_Angle pOrientation, MR_Int32 pMaxObjRay)
 
MR_DllDeclare void DrawWFLine (const MR_3DCoordinate &pP0, const MR_3DCoordinate &pP1, MR_UInt8 pColor)
 
MR_DllDeclare void RenderAlternateWallSurface (const MR_3DCoordinate &pUpperLeft, const MR_3DCoordinate &pLowerRight, MR_Int32 pLen, const Bitmap *pBitmap, const Bitmap *pBitmap2, int pSerialLen, int pSerialStart)
 
MR_DllDeclare void RenderBackground (const MR_UInt8 *pBitmap)
 
MR_DllDeclare void RenderHorizontalSurface (int lNbVertex, const MR_2DCoordinate *pVertexList, MR_Int32 pLevel, BOOL lTop, const Bitmap *pBitmap)
 
MR_DllDeclare void RenderPatch (const Patch &pPatch, const PositionMatrix &pMatrix, const Bitmap *pBitmap)
 
MR_DllDeclare void RenderPatch (const Patch &pPatch, const PositionMatrix &pMatrix, MR_UInt8 pColor)
 
MR_DllDeclare void RenderWallSurface (const MR_3DCoordinate &pUpperLeft, const MR_3DCoordinate &pLowerRight, MR_Int32 pLen, const Bitmap *pBitmap)
 
MR_DllDeclare void Setup (VideoBuffer *pBuffer, int pX0, int pY0, int pSizeX, int pSizeY, MR_Angle pApperture, int pMetrics=eNone)
 
MR_DllDeclare void SetupCameraPosition (const MR_3DCoordinate &pPosition, MR_Angle pOrientation, int pScroll)
 
- Public Member Functions inherited from HoverRace::VideoServices::Viewport2D
MR_DllDeclare Viewport2D ()
 
MR_DllDeclare ~Viewport2D ()
 
MR_DllDeclare void Clear (MR_UInt8 pColor=0)
 
MR_DllDeclare void DrawHorizontalLine (int pY, int pX0, int pX1, MR_UInt8 pColor)
 
MR_DllDeclare void DrawHorizontalMeter (int pX0, int pXLen, int pY0, int pYHeight, int pXM, MR_UInt8 pColor, MR_UInt8 pBackColor)
 
MR_DllDeclare void DrawLine (int pX0, int pY0, int pX1, int pY1, MR_UInt8 pColor)
 
MR_DllDeclare void DrawPoint (int pX, int pY, MR_UInt8 pColor)
 
MR_UInt8GetBuffer ()
 
int GetLineLen () const
 
MR_DllDeclare int GetXRes () const
 
MR_DllDeclare int GetYRes () const
 
MR_DllDeclare void Setup (VideoBuffer *pBuffer, int pX0, int pY0, int pSizeX, int pSizeY, int pMetrics=eNone)
 

Protected Member Functions

void ApplyPositionMatrix (const PositionMatrix &pMatrix, const MR_3DCoordinate &pSrc, MR_3DCoordinate &pDest) const
 
void ApplyRotationMatrix (const MR_3DCoordinate &pSrc, MR_3DCoordinate &pDest) const
 
void ApplyRotationMatrix (const MR_2DCoordinate &pSrc, MR_2DCoordinate &pDest) const
 
void ComputeBackgroundConst ()
 
void ComputeRotationMatrix ()
 
MR_DllDeclare void OnMetricsChange (int pMetrics)
 

Protected Attributes

BackColumnmBackgroundConst
 
MR_UInt8 ** mBufferLine
 
MR_Int32 mHVarPerDInc_16384
 
MR_Angle mOrientation
 
MR_Int32 mPlanDist
 
MR_Int32 mPlanHW
 
MR_Int32 mPlanHW_PlanDist_2_XRes_16384
 
MR_Int32 mPlanVW
 
MR_3DCoordinate mPosition
 
MR_Int32 mRotationMatrix [3][3]
 
int mScroll
 
MR_Angle mVAngle
 
MR_Int32 mVVarPerDInc_16384
 
MR_Int32 mXRes_PlanDist
 
MR_Int32 mXRes_PlanDist_2PlanHW_4096
 
MR_Int32 mYRes_PlanDist
 
MR_UInt16mZBuffer
 
MR_UInt16 ** mZBufferLine
 
int mZLineLen
 
- Protected Attributes inherited from HoverRace::VideoServices::Viewport2D
MR_UInt8mBuffer
 
int mLineLen
 
VideoBuffermVideoBuffer
 
int mXPitch
 
int mXRes
 
int mYPitch
 
int mYRes
 

Additional Inherited Members

- Protected Types inherited from HoverRace::VideoServices::Viewport2D
enum  {
  eNone = 0, eBuffer = 1, eXSize = 2, eYSize = 4,
  eXPitch = 8, eYPitch = 16
}
 

Constructor & Destructor Documentation

HoverRace::VideoServices::Viewport3D::Viewport3D ( )
HoverRace::VideoServices::Viewport3D::~Viewport3D ( )

Member Function Documentation

void HoverRace::VideoServices::Viewport3D::ApplyPositionMatrix ( const PositionMatrix pMatrix,
const MR_3DCoordinate pSrc,
MR_3DCoordinate pDest 
) const
protected
void HoverRace::VideoServices::Viewport3D::ApplyRotationMatrix ( const MR_3DCoordinate pSrc,
MR_3DCoordinate pDest 
) const
protected
void HoverRace::VideoServices::Viewport3D::ApplyRotationMatrix ( const MR_2DCoordinate pSrc,
MR_2DCoordinate pDest 
) const
protected
void HoverRace::VideoServices::Viewport3D::ClearZ ( )
void HoverRace::VideoServices::Viewport3D::ComputeBackgroundConst ( )
protected
BOOL HoverRace::VideoServices::Viewport3D::ComputePositionMatrix ( PositionMatrix pMatrix,
const MR_3DCoordinate pPosition,
MR_Angle  pOrientation,
MR_Int32  pMaxObjRay 
)
void HoverRace::VideoServices::Viewport3D::ComputeRotationMatrix ( )
protected
void HoverRace::VideoServices::Viewport3D::DrawWFLine ( const MR_3DCoordinate pP0,
const MR_3DCoordinate pP1,
MR_UInt8  pColor 
)
void HoverRace::VideoServices::Viewport3D::OnMetricsChange ( int  pMetrics)
protectedvirtual
void HoverRace::VideoServices::Viewport3D::RenderAlternateWallSurface ( const MR_3DCoordinate pUpperLeft,
const MR_3DCoordinate pLowerRight,
MR_Int32  pLen,
const Bitmap pBitmap,
const Bitmap pBitmap2,
int  pSerialLen,
int  pSerialStart 
)
void HoverRace::VideoServices::Viewport3D::RenderBackground ( const MR_UInt8 pBitmap)
void HoverRace::VideoServices::Viewport3D::RenderHorizontalSurface ( int  lNbVertex,
const MR_2DCoordinate pVertexList,
MR_Int32  pLevel,
BOOL  lTop,
const Bitmap pBitmap 
)
void HoverRace::VideoServices::Viewport3D::RenderPatch ( const Patch pPatch,
const PositionMatrix pMatrix,
const Bitmap pBitmap 
)
MR_DllDeclare void HoverRace::VideoServices::Viewport3D::RenderPatch ( const Patch pPatch,
const PositionMatrix pMatrix,
MR_UInt8  pColor 
)
void HoverRace::VideoServices::Viewport3D::RenderWallSurface ( const MR_3DCoordinate pUpperLeft,
const MR_3DCoordinate pLowerRight,
MR_Int32  pLen,
const Bitmap pBitmap 
)
void HoverRace::VideoServices::Viewport3D::Setup ( VideoBuffer pBuffer,
int  pX0,
int  pY0,
int  pSizeX,
int  pSizeY,
MR_Angle  pApperture,
int  pMetrics = eNone 
)
void HoverRace::VideoServices::Viewport3D::SetupCameraPosition ( const MR_3DCoordinate pPosition,
MR_Angle  pOrientation,
int  pScroll 
)

Member Data Documentation

BackColumn* HoverRace::VideoServices::Viewport3D::mBackgroundConst
protected
MR_UInt8** HoverRace::VideoServices::Viewport3D::mBufferLine
protected
MR_Int32 HoverRace::VideoServices::Viewport3D::mHVarPerDInc_16384
protected
MR_Angle HoverRace::VideoServices::Viewport3D::mOrientation
protected
MR_Int32 HoverRace::VideoServices::Viewport3D::mPlanDist
protected
MR_Int32 HoverRace::VideoServices::Viewport3D::mPlanHW
protected
MR_Int32 HoverRace::VideoServices::Viewport3D::mPlanHW_PlanDist_2_XRes_16384
protected
MR_Int32 HoverRace::VideoServices::Viewport3D::mPlanVW
protected
MR_3DCoordinate HoverRace::VideoServices::Viewport3D::mPosition
protected
MR_Int32 HoverRace::VideoServices::Viewport3D::mRotationMatrix[3][3]
protected
int HoverRace::VideoServices::Viewport3D::mScroll
protected
MR_Angle HoverRace::VideoServices::Viewport3D::mVAngle
protected
MR_Int32 HoverRace::VideoServices::Viewport3D::mVVarPerDInc_16384
protected
MR_Int32 HoverRace::VideoServices::Viewport3D::mXRes_PlanDist
protected
MR_Int32 HoverRace::VideoServices::Viewport3D::mXRes_PlanDist_2PlanHW_4096
protected
MR_Int32 HoverRace::VideoServices::Viewport3D::mYRes_PlanDist
protected
MR_UInt16* HoverRace::VideoServices::Viewport3D::mZBuffer
protected
MR_UInt16** HoverRace::VideoServices::Viewport3D::mZBufferLine
protected
int HoverRace::VideoServices::Viewport3D::mZLineLen
protected

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