C# Class JustTheBasics.ShaderProgram

显示文件 Open project: HeroOfTheWinds/CS-350-410-431-Group-Project

Public Properties

Property Type Description
AttributeCount int
Attributes AttributeInfo>.Dictionary
Buffers uint>.Dictionary
FShaderID int
ProgramID int
UniformCount int
Uniforms UniformInfo>.Dictionary
VShaderID int

Public Methods

Method Description
DisableVertexAttribArrays ( ) : void
EnableVertexAttribArrays ( ) : void
GenBuffers ( ) : void
GetAttribute ( string name ) : int
GetBuffer ( string name ) : uint
GetUniform ( string name ) : int
Link ( ) : void
LoadShaderFromFile ( String filename, ShaderType type ) : void
LoadShaderFromString ( String code, ShaderType type ) : void
ShaderProgram ( ) : System
ShaderProgram ( String vshader, String fshader, bool fromFile = false ) : System

Private Methods

Method Description
loadShader ( String code, ShaderType type, int &address ) : void

Method Details

DisableVertexAttribArrays() public method

public DisableVertexAttribArrays ( ) : void
return void

EnableVertexAttribArrays() public method

public EnableVertexAttribArrays ( ) : void
return void

GenBuffers() public method

public GenBuffers ( ) : void
return void

GetAttribute() public method

public GetAttribute ( string name ) : int
name string
return int

GetBuffer() public method

public GetBuffer ( string name ) : uint
name string
return uint

GetUniform() public method

public GetUniform ( string name ) : int
name string
return int

Link() public method

public Link ( ) : void
return void

LoadShaderFromFile() public method

public LoadShaderFromFile ( String filename, ShaderType type ) : void
filename String
type ShaderType
return void

LoadShaderFromString() public method

public LoadShaderFromString ( String code, ShaderType type ) : void
code String
type ShaderType
return void

ShaderProgram() public method

public ShaderProgram ( ) : System
return System

ShaderProgram() public method

public ShaderProgram ( String vshader, String fshader, bool fromFile = false ) : System
vshader String
fshader String
fromFile bool
return System

Property Details

AttributeCount public_oe property

public int AttributeCount
return int

Attributes public_oe property

public Dictionary Attributes
return AttributeInfo>.Dictionary

Buffers public_oe property

public Dictionary Buffers
return uint>.Dictionary

FShaderID public_oe property

public int FShaderID
return int

ProgramID public_oe property

public int ProgramID
return int

UniformCount public_oe property

public int UniformCount
return int

Uniforms public_oe property

public Dictionary Uniforms
return UniformInfo>.Dictionary

VShaderID public_oe property

public int VShaderID
return int