C# Class TerrainDisplay.RendererBase

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Show file Open project: WCell/WCell-Terrain

Protected Properties

Property Type Description
_cachedIndices int[]
_cachedVertices TerrainDisplay.VertexPositionNormalColored[]
_renderCached bool

Private Properties

Property Type Description

Public Methods

Method Description
Draw ( GameTime gameTime ) : void
RendererBase ( Microsoft.Xna.Framework.Game game ) : Microsoft.Xna.Framework

Protected Methods

Method Description
BuildVerticiesAndIndicies ( ) : void

Method Details

BuildVerticiesAndIndicies() protected abstract method

protected abstract BuildVerticiesAndIndicies ( ) : void
return void

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

RendererBase() public method

public RendererBase ( Microsoft.Xna.Framework.Game game ) : Microsoft.Xna.Framework
game Microsoft.Xna.Framework.Game
return Microsoft.Xna.Framework

Property Details

_cachedIndices protected property

protected int[] _cachedIndices
return int[]

_cachedVertices protected property

protected VertexPositionNormalColored[],TerrainDisplay _cachedVertices
return TerrainDisplay.VertexPositionNormalColored[]

_renderCached protected property

Boolean variable representing if all the rendering data has been cached.
protected bool _renderCached
return bool