C# Class PixelFarm.DrawingGL.SimpleRectTextureShader

Inheritance: ShaderBase
Show file Open project: prepare/HTML-Renderer Class Usage Examples

Protected Properties

Property Type Description
a_position OpenTK.Graphics.ES20.ShaderVtxAttrib3f
a_texCoord OpenTK.Graphics.ES20.ShaderVtxAttrib2f
indices ushort[]
s_texture OpenTK.Graphics.ES20.ShaderUniformVar1
u_matrix OpenTK.Graphics.ES20.ShaderUniformMatrix4

Public Methods

Method Description
Render ( GLBitmap bmp, float left, float top, float w, float h ) : void
Render ( int textureId, float left, float top, float w, float h ) : void
RenderSubImage ( GLBitmap bmp, float srcDestList, float scale ) : void
RenderSubImage ( GLBitmap bmp, float srcLeft, float srcTop, float srcW, float srcH, float targetLeft, float targetTop ) : void
RenderSubImage ( GLBitmap bmp, float srcLeft, float srcTop, float srcW, float srcH, float targetLeft, float targetTop, float scale ) : void
SimpleRectTextureShader ( CanvasToShaderSharedResource canvasShareResource ) : OpenTK.Graphics.ES20

Protected Methods

Method Description
BuildProgram ( string vs, string fs ) : bool
CheckViewMatrix ( ) : void
OnProgramBuilt ( ) : void
OnSetVarsBeforeRenderer ( ) : void

Method Details

BuildProgram() protected method

protected BuildProgram ( string vs, string fs ) : bool
vs string
fs string
return bool

CheckViewMatrix() protected method

protected CheckViewMatrix ( ) : void
return void

OnProgramBuilt() protected method

protected OnProgramBuilt ( ) : void
return void

OnSetVarsBeforeRenderer() protected method

protected OnSetVarsBeforeRenderer ( ) : void
return void

Render() public method

public Render ( GLBitmap bmp, float left, float top, float w, float h ) : void
bmp GLBitmap
left float
top float
w float
h float
return void

Render() public method

public Render ( int textureId, float left, float top, float w, float h ) : void
textureId int
left float
top float
w float
h float
return void

RenderSubImage() public method

public RenderSubImage ( GLBitmap bmp, float srcDestList, float scale ) : void
bmp GLBitmap
srcDestList float
scale float
return void

RenderSubImage() public method

public RenderSubImage ( GLBitmap bmp, float srcLeft, float srcTop, float srcW, float srcH, float targetLeft, float targetTop ) : void
bmp GLBitmap
srcLeft float
srcTop float
srcW float
srcH float
targetLeft float
targetTop float
return void

RenderSubImage() public method

public RenderSubImage ( GLBitmap bmp, float srcLeft, float srcTop, float srcW, float srcH, float targetLeft, float targetTop, float scale ) : void
bmp GLBitmap
srcLeft float
srcTop float
srcW float
srcH float
targetLeft float
targetTop float
scale float
return void

SimpleRectTextureShader() public method

public SimpleRectTextureShader ( CanvasToShaderSharedResource canvasShareResource ) : OpenTK.Graphics.ES20
canvasShareResource CanvasToShaderSharedResource
return OpenTK.Graphics.ES20

Property Details

a_position protected property

protected ShaderVtxAttrib3f,OpenTK.Graphics.ES20 a_position
return OpenTK.Graphics.ES20.ShaderVtxAttrib3f

a_texCoord protected property

protected ShaderVtxAttrib2f,OpenTK.Graphics.ES20 a_texCoord
return OpenTK.Graphics.ES20.ShaderVtxAttrib2f

indices protected static property

protected static ushort[] indices
return ushort[]

s_texture protected property

protected ShaderUniformVar1,OpenTK.Graphics.ES20 s_texture
return OpenTK.Graphics.ES20.ShaderUniformVar1

u_matrix protected property

protected ShaderUniformMatrix4,OpenTK.Graphics.ES20 u_matrix
return OpenTK.Graphics.ES20.ShaderUniformMatrix4