AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
RawShader (String uniqueName, String vs, String fs) | |
String | GetName () |
long | GetUniqueId () |
UniformSet | GetUniforms () |
String | GetVertexShader () |
String | GetFragmentShader () |
boolean | GetStatic () |
void | SetStatic (boolean val) |
void | SetUniform (String name, boolean val) |
void | SetUniform (String name, int val) |
void | SetUniform (String name, EnumTextureUnit val) |
void | SetUniform (String name, float val) |
void | SetUniform (String name, Vector2 val) |
void | SetUniform (String name, Vector3 val) |
void | SetUniform (String name, Vector3d val) |
void | SetUniform (String name, Vector4 val) |
void | SetUniform (String name, Matrix3 val) |
void | SetUniform (String name, Matrix4 val) |
void | SetUniform (String name, Matrix2 val) |
void | SetUniformBool (String name, boolean val) |
void | SetUniformInt (String name, int val) |
void | SetUniformTextureUnit (String name, EnumTextureUnit val) |
void | SetUniformFloat (String name, float val) |
void | SetUniformVec2 (String name, Vector2 val) |
void | SetUniformVec3 (String name, Vector3 val) |
void | SetUniformVec4 (String name, Vector4 val) |
void | SetUniformMat2 (String name, Matrix2 val) |
void | SetUniformMat3 (String name, Matrix3 val) |
void | SetUniformMat4 (String name, Matrix4 val) |
void | BindUniformBlock (String blockname, String bindingPoint) |
boolean | HasBindingPoint (String bindingPoint) |
void | Dump (String outdir) |
<> 完整的Shader.
RawShader.RawShader | ( | String | uniqueName, |
String | vs, | ||
String | fs ) |
构造函数
uniqueName | 唯一的名称 |
vs | 顶点着色程序 |
fs | 片段着色程序 |