torque Torque Game Engine Documentation
TGE Version 1.5.2

TerrainRender Struct Reference

#include <terrRender.h>


Static Public Member Functions

static void init ()
static void shutdown ()
static void allocRenderEdges (U32 edgeCount, EdgeParent **dest, bool renderEdge)
static void subdivideChunkEdge (ChunkScanEdge *e, Point2I pos, bool chunkEdge)
static void processCurrentBlock (SceneState *state, EdgeParent *topEdge, EdgeParent *rightEdge, EdgeParent *bottomEdge, EdgeParent *leftEdge)
static ChunkCornerPointallocInitialPoint (Point3F pos)
static ChunkCornerPointallocPoint (Point2I pos)
static void emitTerrChunk (SquareStackNode *n, F32 squareDistance, U32 lightMask, bool farClip, bool useDetails, bool useBumps)
static void renderChunkOutline (EmitChunk *chunk)
static void renderChunkCommander (EmitChunk *chunk)
static void fixEdge (ChunkEdge *edge, S32 x, S32 y, S32 dx, S32 dy)
static U32 constructPoint (S32 x, S32 y)
static U32 interpPoint (U32 p1, U32 p2, S32 x, S32 y, F32 growFactor)
static void addEdge (ChunkEdge *edge)
static void clip (U32 triFanStart)
static F32 getScreenError ()
static void setScreenError (F32 error)
static void flushCache ()
static void flushCacheRect (RectI rect)
static void allocTerrTexture (Point2I pos, U32 level, U32 mipLevel, bool vis, F32 distance)
static void freeTerrTexture (AllocatedTexture *texture)
static void buildBlendMap (AllocatedTexture *texture)
static U32 TestSquareLights (GridSquare *sq, S32 level, Point2I pos, U32 lightMask)
static S32 TestSquareVisibility (Point3F &min, Point3F &max, S32 clipMask, F32 expand)
static void subdivideEdge (S32 edge, Point2I pos)
static F32 getSquareDistance (const Point3F &minPoint, const Point3F &maxPoint, F32 *zDiff)
static void renderGLBumps (Point2F bumpTextureOffset, U32 hazeName)
static void buildLightArray ()
static void buildClippingPlanes (bool flipClipPlanes)
static void buildDetailTable ()
static void renderXFCache ()
static void renderBlock (TerrainBlock *, SceneState *state)

Static Public Attributes

static MatrixF mCameraToObject
static AllocatedTexture mTextureFrameListHead
static AllocatedTexture mTextureFrameListTail
static AllocatedTexture mTextureFreeListHead
static AllocatedTexture mTextureFreeListTail
static AllocatedTexture mTextureFreeBigListHead
static AllocatedTexture mTextureFreeBigListTail
static U32 mTextureSlopSize
static Vector< TextureHandle > mTextureFreeList
static S32 mTextureMinSquareSize
static SceneStatemSceneState
static AllocatedTexturemCurrentTexture
static TerrainBlockmCurrentBlock
static S32 mSquareSize
static F32 mScreenSize
static U32 mFrameIndex
static U32 mNumClipPlanes
static AllocatedTexturemTextureGrid [AllocatedTextureCount]
static AllocatedTexture ** mTextureGridPtr [5]
static Point2F mBlockPos
static Point2I mBlockOffset
static Point2I mTerrainOffset
static PlaneF mClipPlane [MaxClipPlanes]
static Point3F mCamPos
static TextureHandle * mGrainyTexture
static U32 mDynamicLightCount
static bool mEnableTerrainDetails
static bool mEnableTerrainEmbossBumps
static bool mEnableTerrainDynLights
static F32 mPixelError
static TerrLightInfo mTerrainLights [MaxTerrainLights]
static F32 mScreenError
static F32 mMinSquareSize
static F32 mFarDistance
static S32 mDynamicTextureCount
static S32 mStaticTextureCount
static bool mRenderingCommander
static ColorF mFogColor
static bool mRenderOutline
static U32 mMaterialCount
static GBitmapmBlendBitmap


Member Function Documentation

static void TerrainRender::init (  )  [static]

static void TerrainRender::shutdown (  )  [static]

static void TerrainRender::allocRenderEdges ( U32  edgeCount,
EdgeParent **  dest,
bool  renderEdge 
) [static]

static void TerrainRender::subdivideChunkEdge ( ChunkScanEdge e,
Point2I  pos,
bool  chunkEdge 
) [static]

static void TerrainRender::processCurrentBlock ( SceneState state,
EdgeParent topEdge,
EdgeParent rightEdge,
EdgeParent bottomEdge,
EdgeParent leftEdge 
) [static]

static ChunkCornerPoint* TerrainRender::allocInitialPoint ( Point3F  pos  )  [static]

static ChunkCornerPoint* TerrainRender::allocPoint ( Point2I  pos  )  [static]

static void TerrainRender::emitTerrChunk ( SquareStackNode n,
F32  squareDistance,
U32  lightMask,
bool  farClip,
bool  useDetails,
bool  useBumps 
) [static]

static void TerrainRender::renderChunkOutline ( EmitChunk chunk  )  [static]

static void TerrainRender::renderChunkCommander ( EmitChunk chunk  )  [static]

static void TerrainRender::fixEdge ( ChunkEdge edge,
S32  x,
S32  y,
S32  dx,
S32  dy 
) [static]

static U32 TerrainRender::constructPoint ( S32  x,
S32  y 
) [static]

static U32 TerrainRender::interpPoint ( U32  p1,
U32  p2,
S32  x,
S32  y,
F32  growFactor 
) [static]

static void TerrainRender::addEdge ( ChunkEdge edge  )  [static]

static void TerrainRender::clip ( U32  triFanStart  )  [static]

static F32 TerrainRender::getScreenError (  )  [inline, static]

static void TerrainRender::setScreenError ( F32  error  )  [inline, static]

static void TerrainRender::flushCache (  )  [static]

static void TerrainRender::flushCacheRect ( RectI  rect  )  [static]

static void TerrainRender::allocTerrTexture ( Point2I  pos,
U32  level,
U32  mipLevel,
bool  vis,
F32  distance 
) [static]

static void TerrainRender::freeTerrTexture ( AllocatedTexture texture  )  [static]

static void TerrainRender::buildBlendMap ( AllocatedTexture texture  )  [static]

static U32 TerrainRender::TestSquareLights ( GridSquare sq,
S32  level,
Point2I  pos,
U32  lightMask 
) [static]

static S32 TerrainRender::TestSquareVisibility ( Point3F min,
Point3F max,
S32  clipMask,
F32  expand 
) [static]

static void TerrainRender::subdivideEdge ( S32  edge,
Point2I  pos 
) [static]

static F32 TerrainRender::getSquareDistance ( const Point3F minPoint,
const Point3F maxPoint,
F32 zDiff 
) [static]

static void TerrainRender::renderGLBumps ( Point2F  bumpTextureOffset,
U32  hazeName 
) [static]

static void TerrainRender::buildLightArray (  )  [static]

static void TerrainRender::buildClippingPlanes ( bool  flipClipPlanes  )  [static]

static void TerrainRender::buildDetailTable (  )  [static]

static void TerrainRender::renderXFCache (  )  [static]

static void TerrainRender::renderBlock ( TerrainBlock ,
SceneState state 
) [static]


Field Documentation

Vector<TextureHandle> TerrainRender::mTextureFreeList [static]

AllocatedTexture* TerrainRender::mTextureGrid[AllocatedTextureCount] [static]

PlaneF TerrainRender::mClipPlane[MaxClipPlanes] [static]

TextureHandle* TerrainRender::mGrainyTexture [static]

TerrLightInfo TerrainRender::mTerrainLights[MaxTerrainLights] [static]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen