C# 클래스 NewTOAPIA.GL.GLSLShader

상속: IDisposable
파일 보기 프로젝트 열기: Wiladams/NewTOAPIA

공개 메소드들

메소드 설명
Compile ( ) : bool
CreateFromFile ( string filename ) : GLSLShader
Dispose ( ) : void
GLSLShader ( GLSLShaderProgram prg, int shaderID ) : System

This constructor is used when you're trying to put a wrapper around an already existing shader object. You have the context, and you have the shaderID. This is enough information to do useful things with the shader.

GLSLShader ( GraphicsInterface gi, string shaderSourceCode, ShaderType sType ) : System

메소드 상세

Compile() 공개 메소드

public Compile ( ) : bool
리턴 bool

CreateFromFile() 공개 정적인 메소드

public static CreateFromFile ( string filename ) : GLSLShader
filename string
리턴 GLSLShader

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GLSLShader() 공개 메소드

This constructor is used when you're trying to put a wrapper around an already existing shader object. You have the context, and you have the shaderID. This is enough information to do useful things with the shader.
public GLSLShader ( GLSLShaderProgram prg, int shaderID ) : System
prg GLSLShaderProgram
shaderID int
리턴 System

GLSLShader() 공개 메소드

public GLSLShader ( GraphicsInterface gi, string shaderSourceCode, ShaderType sType ) : System
gi GraphicsInterface
shaderSourceCode string
sType ShaderType
리턴 System