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 ChunkCornerPoint * | allocInitialPoint (Point3F pos) |
static ChunkCornerPoint * | allocPoint (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 SceneState * | mSceneState |
static AllocatedTexture * | mCurrentTexture |
static TerrainBlock * | mCurrentBlock |
static S32 | mSquareSize |
static F32 | mScreenSize |
static U32 | mFrameIndex |
static U32 | mNumClipPlanes |
static AllocatedTexture * | mTextureGrid [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 GBitmap * | mBlendBitmap |
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::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 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::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::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] |
Field Documentation
|