C# Class XLibrary.GLUtils

Mostra file Open project: swax/CodePerspective Class Usage Examples

Public Methods

Method Description
BlendColors ( Color src, Color &tgt ) : void
DrawCube ( VertexBuffer vbo, Color color, float x, float z, float width, float length, float bottom, float height ) : void
SafeBegin ( BeginMode mode, System.Action code ) : void
SafeBlend ( System.Action code ) : void
SafeDisable ( EnableCap cap, System.Action code ) : void
SafeEnable ( EnableCap cap, System.Action code ) : void
SafeGLEnableClientStates ( ArrayCap caps, System.Action code ) : void
SafeSaveMatrix ( System.Action code ) : void

Method Details

BlendColors() public static method

public static BlendColors ( Color src, Color &tgt ) : void
src Color
tgt Color
return void

DrawCube() public static method

public static DrawCube ( VertexBuffer vbo, Color color, float x, float z, float width, float length, float bottom, float height ) : void
vbo VertexBuffer
color Color
x float
z float
width float
length float
bottom float
height float
return void

SafeBegin() public static method

public static SafeBegin ( BeginMode mode, System.Action code ) : void
mode BeginMode
code System.Action
return void

SafeBlend() public static method

public static SafeBlend ( System.Action code ) : void
code System.Action
return void

SafeDisable() public static method

public static SafeDisable ( EnableCap cap, System.Action code ) : void
cap EnableCap
code System.Action
return void

SafeEnable() public static method

public static SafeEnable ( EnableCap cap, System.Action code ) : void
cap EnableCap
code System.Action
return void

SafeGLEnableClientStates() public static method

public static SafeGLEnableClientStates ( ArrayCap caps, System.Action code ) : void
caps ArrayCap
code System.Action
return void

SafeSaveMatrix() public static method

public static SafeSaveMatrix ( System.Action code ) : void
code System.Action
return void