C# Class Microsoft.Xna.Framework.Graphics.GraphicsExtensions

Show file Open project: procfxgen/MGShaderEditor Class Usage Examples

Public Methods

Method Description
GetBlendEquationMode ( this function ) : BlendEquationMode
GetBlendFactorDest ( this blend ) : BlendingFactorDest
GetBlendFactorSrc ( this blend ) : BlendingFactorSrc
GetBoundTexture2D ( ) : int
GetDepthFunction ( this compare ) : DepthFunction
GetFrameLatency ( this interval ) : int
GetSize ( this surfaceFormat ) : int
OpenGL11 ( CullMode cull ) : OpenTK.Graphics.OpenGL.All
OpenGLColorPointerType ( this elementFormat ) : OpenTK.Graphics.ES20.All
OpenGLNormalPointerType ( this elementFormat ) : OpenTK.Graphics.ES20.All
OpenGLNumberOfElements ( this elementFormat ) : int
OpenGLTexCoordPointerType ( this elementFormat ) : OpenTK.Graphics.ES20.All
OpenGLVertexAttribNormalized ( this element ) : bool
OpenGLVertexAttribPointerType ( this elementFormat ) : VertexAttribPointerType
OpenGLVertexPointerType ( this elementFormat ) : OpenTK.Graphics.ES20.All

Private Methods

Method Description
CheckGLError ( ) : void
GetColorFormat ( this format ) : ColorFormat

Convert a SurfaceFormat to an OpenTK.Graphics.ColorFormat. This is used for setting up the backbuffer format of the OpenGL context.

GetGLFormat ( this format, GraphicsDevice graphicsDevice, PixelInternalFormat &glInternalFormat, PixelFormat &glFormat, PixelType &glType ) : void
GetSwapInterval ( this interval ) : int

Converts PresentInterval to OpenGL swap interval.

LogGLError ( string location ) : void

Method Details

GetBlendEquationMode() public static method

public static GetBlendEquationMode ( this function ) : BlendEquationMode
function this
return BlendEquationMode

GetBlendFactorDest() public static method

public static GetBlendFactorDest ( this blend ) : BlendingFactorDest
blend this
return BlendingFactorDest

GetBlendFactorSrc() public static method

public static GetBlendFactorSrc ( this blend ) : BlendingFactorSrc
blend this
return BlendingFactorSrc

GetBoundTexture2D() public static method

public static GetBoundTexture2D ( ) : int
return int

GetDepthFunction() public static method

public static GetDepthFunction ( this compare ) : DepthFunction
compare this
return DepthFunction

GetFrameLatency() public static method

public static GetFrameLatency ( this interval ) : int
interval this
return int

GetSize() public static method

public static GetSize ( this surfaceFormat ) : int
surfaceFormat this
return int

OpenGL11() public static method

public static OpenGL11 ( CullMode cull ) : OpenTK.Graphics.OpenGL.All
cull CullMode
return OpenTK.Graphics.OpenGL.All

OpenGLColorPointerType() public static method

public static OpenGLColorPointerType ( this elementFormat ) : OpenTK.Graphics.ES20.All
elementFormat this
return OpenTK.Graphics.ES20.All

OpenGLNormalPointerType() public static method

public static OpenGLNormalPointerType ( this elementFormat ) : OpenTK.Graphics.ES20.All
elementFormat this
return OpenTK.Graphics.ES20.All

OpenGLNumberOfElements() public static method

public static OpenGLNumberOfElements ( this elementFormat ) : int
elementFormat this
return int

OpenGLTexCoordPointerType() public static method

public static OpenGLTexCoordPointerType ( this elementFormat ) : OpenTK.Graphics.ES20.All
elementFormat this
return OpenTK.Graphics.ES20.All

OpenGLVertexAttribNormalized() public static method

public static OpenGLVertexAttribNormalized ( this element ) : bool
element this
return bool

OpenGLVertexAttribPointerType() public static method

public static OpenGLVertexAttribPointerType ( this elementFormat ) : VertexAttribPointerType
elementFormat this
return VertexAttribPointerType

OpenGLVertexPointerType() public static method

public static OpenGLVertexPointerType ( this elementFormat ) : OpenTK.Graphics.ES20.All
elementFormat this
return OpenTK.Graphics.ES20.All