C# Class Axiom.RenderSystems.OpenGLES.GLESRenderSystem

Inheritance: Axiom.Graphics.RenderSystem
Show file Open project: WolfgangSt/axiom Class Usage Examples

Private Properties

Property Type Description
ActivateGLClientTextureUnit bool
ActivateGLTextureUnit bool
CheckCaps void
ConvertCompareFunction All
ConvertStencilOP All
GetBlendMode All
GetCurrentAnisotropy int
GetTextureAddressingMode All
MakeGLMatrix void
SetGLLight void
SetGLLightPositionDirection void
SetLights void
SetRenderTarget void
SwitchContext void
_oneTimeContextInitialization void

Public Methods

Method Description
ApplyObliqueDepthProjection ( Matrix4 &projMatrix, Plane plane, bool forGpuProgram ) : void
BeginFrame ( ) : void
BeginGeometryCount ( ) : void
BindGpuProgram ( Axiom.Graphics.GpuProgram program ) : void

BindGpuProgramParameters ( GpuProgramType type, GpuProgramParameters parms ) : void

ClearFrameBuffer ( FrameBufferType buffers, ColorEx color, float depth, int stencil ) : void
ConvertColor ( int color ) : ColorEx
ConvertColor ( ColorEx color ) : int
ConvertProjectionMatrix ( Matrix4 matrix, bool forGpuProgram ) : Matrix4
CreateHardwareOcclusionQuery ( ) : HardwareOcclusionQuery
CreateMultiRenderTarget ( string name ) : Axiom.Graphics.MultiRenderTarget

CreateRenderWindow ( string name, int width, int height, bool isFullscreen, Collections miscParams ) : Axiom.Graphics.RenderWindow

DestroyRenderTarget ( string name ) : void
DestroyRenderTexture ( string name ) : void
DestroyRenderWindow ( string name ) : void

DetachRenderTarget ( RenderTarget target ) : RenderTarget
DisableTextureUnit ( int stage ) : void
DisableTextureUnitsFrom ( int texUnit ) : void
EnableClipPlane ( ushort index, bool enable ) : void
EndFrame ( ) : void
Equals ( object obj ) : bool
GLESRenderSystem ( ) : System

Default ctor.

GetHashCode ( ) : int
InitRenderTargets ( ) : void
Initialize ( bool autoCreateWindow, string windowTitle ) : Axiom.Graphics.RenderWindow

MakeOrthoMatrix ( float fov, float aspectRatio, float near, float far, bool forGpuPrograms ) : Matrix4
MakeProjectionMatrix ( float fov, float aspectRatio, float near, float far, bool forGpuProgram ) : Matrix4
MakeProjectionMatrix ( float left, float right, float bottom, float top, float nearPlane, float farPlane, bool forGpuProgram ) : Matrix4
RemoveRenderTargets ( ) : void
Render ( RenderOperation op ) : void

SetAlphaRejectSettings ( CompareFunction func, int value, bool alphaToCoverage ) : void
SetClipPlane ( ushort index, float A, float B, float C, float D ) : void
SetColorBufferWriteEnabled ( bool red, bool green, bool blue, bool alpha ) : void
SetConfigOption ( string name, string value ) : void

SetDepthBias ( float constantBias, float slopeScaleBias ) : void
SetDepthBufferParams ( bool depthTest, bool depthWrite, CompareFunction depthFunction ) : void
SetFog ( Graphics mode, ColorEx color, float density, float start, float end ) : void
SetGLColorMask ( bool red, bool green, bool blue, bool alpha ) : void
SetGLDepthMask ( bool flag ) : void
SetGLLightf ( All light, All name, float param ) : void
SetGLLightfv ( All light, All name, float param ) : void
SetGLMaterialfv ( All face, All name, float param ) : void
SetGLMatrixMode ( All mode ) : void
SetGLPointParamf ( All name, float param ) : void
SetGLPointParamfv ( All name, float param ) : void
SetGLTexEnvf ( All target, All name, float param ) : void
SetGLTexEnvfv ( All target, All name, float param ) : void
SetGLTexEnvi ( All target, All name, int param ) : void
SetPointParameters ( float size, bool attenuationEnabled, float constant, float linear, float quadratic, float minSize, float maxSize ) : void

SetSceneBlending ( SceneBlendFactor src, SceneBlendFactor dest ) : void

SetScissorTest ( bool enable, int left, int top, int right, int bottom ) : void
SetSeparateSceneBlending ( SceneBlendFactor sourceFactor, SceneBlendFactor destFactor, SceneBlendFactor sourceFactorAlpha, SceneBlendFactor destFactorAlpha ) : void
SetStencilBufferParams ( CompareFunction function, int refValue, int mask, StencilOperation stencilFailOp, StencilOperation depthFailOp, StencilOperation passOp, bool twoSidedOperation ) : void
SetSurfaceParams ( ColorEx ambient, ColorEx diffuse, ColorEx specular, ColorEx emissive, float shininess, TrackVertexColor tracking ) : void

SetTexture ( int stage, bool enabled, Texture texture ) : void

SetTextureAddressingMode ( int stage, TextureAddressing texAddressingMode ) : void

SetTextureBlendMode ( int stage, LayerBlendModeEx bm ) : void

SetTextureBorderColor ( int stage, ColorEx borderColor ) : void

SetTextureCoordCalculation ( int stage, TexCoordCalcMethod method, Frustum frustum ) : void
SetTextureCoordSet ( int stage, int index ) : void

SetTextureLayerAnisotropy ( int unit, int maxAnisotropy ) : void
SetTextureMatrix ( int stage, Matrix4 xform ) : void

SetTextureUnitFiltering ( int unit, FilterType ftype, FilterOptions fo ) : void
SetViewport ( Viewport viewport ) : void
SetWorldMatrices ( Matrix4 matrices, ushort count ) : void
Shutdown ( ) : void

UnbindGpuProgram ( GpuProgramType type ) : void

UnregisterContext ( GLESContext context ) : void

UseLights ( Core lightList, int limit ) : void
VBOBufferOffset ( int i ) : IntPtr
ValidateConfiguration ( ) : string

Protected Methods

Method Description
InitializeContext ( RenderTarget primary ) : void

Private Methods

Method Description
ActivateGLClientTextureUnit ( int unit ) : bool
ActivateGLTextureUnit ( int unit ) : bool

CheckCaps ( RenderTarget primary ) : void

ConvertCompareFunction ( CompareFunction func ) : All
ConvertStencilOP ( StencilOperation op, bool invert ) : All
GetBlendMode ( SceneBlendFactor blend ) : All

GetCurrentAnisotropy ( int unit ) : int
GetTextureAddressingMode ( TextureAddressing tam ) : All

MakeGLMatrix ( float &glMatrix, Matrix4 m ) : void

SetGLLight ( int index, Light l ) : void

SetGLLightPositionDirection ( Light lt, All lightindex ) : void

SetLights ( ) : void

SetRenderTarget ( RenderTarget target ) : void
SwitchContext ( GLESContext context ) : void

_oneTimeContextInitialization ( ) : void

Method Details

ApplyObliqueDepthProjection() public method

public ApplyObliqueDepthProjection ( Matrix4 &projMatrix, Plane plane, bool forGpuProgram ) : void
projMatrix Axiom.Math.Matrix4
plane Axiom.Math.Plane
forGpuProgram bool
return void

BeginFrame() public method

public BeginFrame ( ) : void
return void

BeginGeometryCount() public method

public BeginGeometryCount ( ) : void
return void

BindGpuProgram() public method

public BindGpuProgram ( Axiom.Graphics.GpuProgram program ) : void
program Axiom.Graphics.GpuProgram
return void

BindGpuProgramParameters() public method

public BindGpuProgramParameters ( GpuProgramType type, GpuProgramParameters parms ) : void
type GpuProgramType
parms Axiom.Graphics.GpuProgramParameters
return void

ClearFrameBuffer() public method

public ClearFrameBuffer ( FrameBufferType buffers, ColorEx color, float depth, int stencil ) : void
buffers FrameBufferType
color Axiom.Core.ColorEx
depth float
stencil int
return void

ConvertColor() public method

public ConvertColor ( int color ) : ColorEx
color int
return Axiom.Core.ColorEx

ConvertColor() public method

public ConvertColor ( ColorEx color ) : int
color Axiom.Core.ColorEx
return int

ConvertProjectionMatrix() public method

public ConvertProjectionMatrix ( Matrix4 matrix, bool forGpuProgram ) : Matrix4
matrix Axiom.Math.Matrix4
forGpuProgram bool
return Axiom.Math.Matrix4

CreateHardwareOcclusionQuery() public method

public CreateHardwareOcclusionQuery ( ) : HardwareOcclusionQuery
return Axiom.Graphics.HardwareOcclusionQuery

CreateMultiRenderTarget() public method

public CreateMultiRenderTarget ( string name ) : Axiom.Graphics.MultiRenderTarget
name string
return Axiom.Graphics.MultiRenderTarget

CreateRenderWindow() public method

public CreateRenderWindow ( string name, int width, int height, bool isFullscreen, Collections miscParams ) : Axiom.Graphics.RenderWindow
name string
width int
height int
isFullscreen bool
miscParams Collections
return Axiom.Graphics.RenderWindow

DestroyRenderTarget() public method

public DestroyRenderTarget ( string name ) : void
name string
return void

DestroyRenderTexture() public method

public DestroyRenderTexture ( string name ) : void
name string
return void

DestroyRenderWindow() public method

public DestroyRenderWindow ( string name ) : void
name string
return void

DetachRenderTarget() public method

public DetachRenderTarget ( RenderTarget target ) : RenderTarget
target Axiom.Graphics.RenderTarget
return Axiom.Graphics.RenderTarget

DisableTextureUnit() public method

public DisableTextureUnit ( int stage ) : void
stage int
return void

DisableTextureUnitsFrom() public method

public DisableTextureUnitsFrom ( int texUnit ) : void
texUnit int
return void

EnableClipPlane() public method

public EnableClipPlane ( ushort index, bool enable ) : void
index ushort
enable bool
return void

EndFrame() public method

public EndFrame ( ) : void
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GLESRenderSystem() public method

Default ctor.
public GLESRenderSystem ( ) : System
return System

GetHashCode() public method

public GetHashCode ( ) : int
return int

InitRenderTargets() public method

public InitRenderTargets ( ) : void
return void

Initialize() public method

public Initialize ( bool autoCreateWindow, string windowTitle ) : Axiom.Graphics.RenderWindow
autoCreateWindow bool
windowTitle string
return Axiom.Graphics.RenderWindow

InitializeContext() protected method

protected InitializeContext ( RenderTarget primary ) : void
primary Axiom.Graphics.RenderTarget
return void

MakeOrthoMatrix() public method

public MakeOrthoMatrix ( float fov, float aspectRatio, float near, float far, bool forGpuPrograms ) : Matrix4
fov float
aspectRatio float
near float
far float
forGpuPrograms bool
return Axiom.Math.Matrix4

MakeProjectionMatrix() public method

public MakeProjectionMatrix ( float fov, float aspectRatio, float near, float far, bool forGpuProgram ) : Matrix4
fov float
aspectRatio float
near float
far float
forGpuProgram bool
return Axiom.Math.Matrix4

MakeProjectionMatrix() public method

public MakeProjectionMatrix ( float left, float right, float bottom, float top, float nearPlane, float farPlane, bool forGpuProgram ) : Matrix4
left float
right float
bottom float
top float
nearPlane float
farPlane float
forGpuProgram bool
return Axiom.Math.Matrix4

RemoveRenderTargets() public method

public RemoveRenderTargets ( ) : void
return void

Render() public method

public Render ( RenderOperation op ) : void
op RenderOperation
return void

SetAlphaRejectSettings() public method

public SetAlphaRejectSettings ( CompareFunction func, int value, bool alphaToCoverage ) : void
func CompareFunction
value int
alphaToCoverage bool
return void

SetClipPlane() public method

public SetClipPlane ( ushort index, float A, float B, float C, float D ) : void
index ushort
A float
B float
C float
D float
return void

SetColorBufferWriteEnabled() public method

public SetColorBufferWriteEnabled ( bool red, bool green, bool blue, bool alpha ) : void
red bool
green bool
blue bool
alpha bool
return void

SetConfigOption() public method

public SetConfigOption ( string name, string value ) : void
name string
value string
return void

SetDepthBias() public method

public SetDepthBias ( float constantBias, float slopeScaleBias ) : void
constantBias float
slopeScaleBias float
return void

SetDepthBufferParams() public method

public SetDepthBufferParams ( bool depthTest, bool depthWrite, CompareFunction depthFunction ) : void
depthTest bool
depthWrite bool
depthFunction CompareFunction
return void

SetFog() public method

public SetFog ( Graphics mode, ColorEx color, float density, float start, float end ) : void
mode Graphics
color ColorEx
density float
start float
end float
return void

SetGLColorMask() public method

public SetGLColorMask ( bool red, bool green, bool blue, bool alpha ) : void
red bool
green bool
blue bool
alpha bool
return void

SetGLDepthMask() public method

public SetGLDepthMask ( bool flag ) : void
flag bool
return void

SetGLLightf() public method

public SetGLLightf ( All light, All name, float param ) : void
light All
name All
param float
return void

SetGLLightfv() public method

public SetGLLightfv ( All light, All name, float param ) : void
light All
name All
param float
return void

SetGLMaterialfv() public method

public SetGLMaterialfv ( All face, All name, float param ) : void
face All
name All
param float
return void

SetGLMatrixMode() public method

public SetGLMatrixMode ( All mode ) : void
mode All
return void

SetGLPointParamf() public method

public SetGLPointParamf ( All name, float param ) : void
name All
param float
return void

SetGLPointParamfv() public method

public SetGLPointParamfv ( All name, float param ) : void
name All
param float
return void

SetGLTexEnvf() public method

public SetGLTexEnvf ( All target, All name, float param ) : void
target All
name All
param float
return void

SetGLTexEnvfv() public method

public SetGLTexEnvfv ( All target, All name, float param ) : void
target All
name All
param float
return void

SetGLTexEnvi() public method

public SetGLTexEnvi ( All target, All name, int param ) : void
target All
name All
param int
return void

SetPointParameters() public method

public SetPointParameters ( float size, bool attenuationEnabled, float constant, float linear, float quadratic, float minSize, float maxSize ) : void
size float
attenuationEnabled bool
constant float
linear float
quadratic float
minSize float
maxSize float
return void

SetSceneBlending() public method

public SetSceneBlending ( SceneBlendFactor src, SceneBlendFactor dest ) : void
src SceneBlendFactor
dest SceneBlendFactor
return void

SetScissorTest() public method

public SetScissorTest ( bool enable, int left, int top, int right, int bottom ) : void
enable bool
left int
top int
right int
bottom int
return void

SetSeparateSceneBlending() public method

public SetSeparateSceneBlending ( SceneBlendFactor sourceFactor, SceneBlendFactor destFactor, SceneBlendFactor sourceFactorAlpha, SceneBlendFactor destFactorAlpha ) : void
sourceFactor SceneBlendFactor
destFactor SceneBlendFactor
sourceFactorAlpha SceneBlendFactor
destFactorAlpha SceneBlendFactor
return void

SetStencilBufferParams() public method

public SetStencilBufferParams ( CompareFunction function, int refValue, int mask, StencilOperation stencilFailOp, StencilOperation depthFailOp, StencilOperation passOp, bool twoSidedOperation ) : void
function CompareFunction
refValue int
mask int
stencilFailOp StencilOperation
depthFailOp StencilOperation
passOp StencilOperation
twoSidedOperation bool
return void

SetSurfaceParams() public method

public SetSurfaceParams ( ColorEx ambient, ColorEx diffuse, ColorEx specular, ColorEx emissive, float shininess, TrackVertexColor tracking ) : void
ambient ColorEx
diffuse ColorEx
specular ColorEx
emissive ColorEx
shininess float
tracking TrackVertexColor
return void

SetTexture() public method

public SetTexture ( int stage, bool enabled, Texture texture ) : void
stage int
enabled bool
texture Texture
return void

SetTextureAddressingMode() public method

public SetTextureAddressingMode ( int stage, TextureAddressing texAddressingMode ) : void
stage int
texAddressingMode TextureAddressing
return void

SetTextureBlendMode() public method

public SetTextureBlendMode ( int stage, LayerBlendModeEx bm ) : void
stage int
bm LayerBlendModeEx
return void

SetTextureBorderColor() public method

public SetTextureBorderColor ( int stage, ColorEx borderColor ) : void
stage int
borderColor ColorEx
return void

SetTextureCoordCalculation() public method

public SetTextureCoordCalculation ( int stage, TexCoordCalcMethod method, Frustum frustum ) : void
stage int
method TexCoordCalcMethod
frustum Frustum
return void

SetTextureCoordSet() public method

public SetTextureCoordSet ( int stage, int index ) : void
stage int
index int
return void

SetTextureLayerAnisotropy() public method

public SetTextureLayerAnisotropy ( int unit, int maxAnisotropy ) : void
unit int
maxAnisotropy int
return void

SetTextureMatrix() public method

public SetTextureMatrix ( int stage, Matrix4 xform ) : void
stage int
xform Matrix4
return void

SetTextureUnitFiltering() public method

public SetTextureUnitFiltering ( int unit, FilterType ftype, FilterOptions fo ) : void
unit int
ftype FilterType
fo FilterOptions
return void

SetViewport() public method

public SetViewport ( Viewport viewport ) : void
viewport Viewport
return void

SetWorldMatrices() public method

public SetWorldMatrices ( Matrix4 matrices, ushort count ) : void
matrices Matrix4
count ushort
return void

Shutdown() public method

public Shutdown ( ) : void
return void

UnbindGpuProgram() public method

public UnbindGpuProgram ( GpuProgramType type ) : void
type GpuProgramType
return void

UnregisterContext() public method

public UnregisterContext ( GLESContext context ) : void
context GLESContext
return void

UseLights() public method

public UseLights ( Core lightList, int limit ) : void
lightList Core
limit int
return void

VBOBufferOffset() public static method

public static VBOBufferOffset ( int i ) : IntPtr
i int
return IntPtr

ValidateConfiguration() public method

public ValidateConfiguration ( ) : string
return string