C# Class OpenRA.Mods.Common.Graphics.VoxelRenderable

Show file Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method Description
AsDecoration ( ) : IRenderable
OffsetBy ( WVec vec ) : IRenderable
PrepareRender ( WorldRenderer wr ) : IFinalizedRenderable
VoxelRenderable ( IEnumerable voxels, WPos pos, int zOffset, WRot camera, float scale, WRot lightSource, float lightAmbientColor, float lightDiffuseColor, OpenRA.Graphics.PaletteReference color, OpenRA.Graphics.PaletteReference normals, OpenRA.Graphics.PaletteReference shadow ) : System
WithPalette ( OpenRA.Graphics.PaletteReference newPalette ) : IRenderable
WithZOffset ( int newOffset ) : IRenderable

Method Details

AsDecoration() public method

public AsDecoration ( ) : IRenderable
return IRenderable

OffsetBy() public method

public OffsetBy ( WVec vec ) : IRenderable
vec WVec
return IRenderable

PrepareRender() public method

public PrepareRender ( WorldRenderer wr ) : IFinalizedRenderable
wr OpenRA.Graphics.WorldRenderer
return IFinalizedRenderable

VoxelRenderable() public method

public VoxelRenderable ( IEnumerable voxels, WPos pos, int zOffset, WRot camera, float scale, WRot lightSource, float lightAmbientColor, float lightDiffuseColor, OpenRA.Graphics.PaletteReference color, OpenRA.Graphics.PaletteReference normals, OpenRA.Graphics.PaletteReference shadow ) : System
voxels IEnumerable
pos WPos
zOffset int
camera WRot
scale float
lightSource WRot
lightAmbientColor float
lightDiffuseColor float
color OpenRA.Graphics.PaletteReference
normals OpenRA.Graphics.PaletteReference
shadow OpenRA.Graphics.PaletteReference
return System

WithPalette() public method

public WithPalette ( OpenRA.Graphics.PaletteReference newPalette ) : IRenderable
newPalette OpenRA.Graphics.PaletteReference
return IRenderable

WithZOffset() public method

public WithZOffset ( int newOffset ) : IRenderable
newOffset int
return IRenderable