C# Класс NewTOAPIA.GL.GLSLShader

Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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