C# Class CNCMaps.Engine.Rendering.VxlRenderer

Inheritance: IDisposable
Show file Open project: zzattack/ccmaps-net

Public Methods

Method Description
Dispose ( ) : void
GetBounds ( GameObject obj, CNCMaps.FileFormats.VxlFile vxl, CNCMaps.FileFormats.HvaFile hva, CNCMaps.Engine.Rendering.DrawProperties props ) : Rectangle
Initialize ( ) : void
Render ( CNCMaps.FileFormats.VxlFile vxl, CNCMaps.FileFormats.HvaFile hva, GameObject obj, CNCMaps.Engine.Rendering.DrawProperties props ) : CNCMaps.Engine.Rendering.DrawingSurface
RenderVoxel ( Vector3 v ) : void

Private Methods

Method Description
CreateContext ( ) : bool
CreateGameWindow ( ) : bool
CreateMesaContext ( ) : bool
DrawAxes ( ) : void
ExtractRotationVector ( float mtx ) : Vector3
MatrixVectorMultiply ( float mtx, float vec ) : float[]
SetupFramebuffer ( ) : bool
ToOpenGL ( Matrix4 source ) : float[]

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetBounds() public static method

public static GetBounds ( GameObject obj, CNCMaps.FileFormats.VxlFile vxl, CNCMaps.FileFormats.HvaFile hva, CNCMaps.Engine.Rendering.DrawProperties props ) : Rectangle
obj CNCMaps.Engine.Map.GameObject
vxl CNCMaps.FileFormats.VxlFile
hva CNCMaps.FileFormats.HvaFile
props CNCMaps.Engine.Rendering.DrawProperties
return Rectangle

Initialize() public method

public Initialize ( ) : void
return void

Render() public method

public Render ( CNCMaps.FileFormats.VxlFile vxl, CNCMaps.FileFormats.HvaFile hva, GameObject obj, CNCMaps.Engine.Rendering.DrawProperties props ) : CNCMaps.Engine.Rendering.DrawingSurface
vxl CNCMaps.FileFormats.VxlFile
hva CNCMaps.FileFormats.HvaFile
obj CNCMaps.Engine.Map.GameObject
props CNCMaps.Engine.Rendering.DrawProperties
return CNCMaps.Engine.Rendering.DrawingSurface

RenderVoxel() public method

public RenderVoxel ( Vector3 v ) : void
v Vector3
return void