|
AnyCAD Rapid API 2026
Help you to create a better world!
|
立方体贴图纹理类 更多...
Public 成员函数 | |
| TextureCube (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| TextureCube () | |
| 默认构造函数 | |
| TextureCube (TextureDesc desc, uint width, uint height) | |
| 构造函数 | |
| uint | GetWidth () |
| void | SetWidth (uint val) |
| uint | GetHeight () |
| void | SetHeight (uint val) |
Public 成员函数 继承自 AnyCAD.Foundation.Texture | |
| Texture (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| Texture () | |
| 默认构造函数 | |
| Texture (TextureDesc desc) | |
| 构造函数 | |
| string | GetName () |
| void | SetName (string val) |
| TextureDesc | GetDesc () |
| void | SetDesc (TextureDesc val) |
| UniformSet | GetUniforms () |
| uint | GetUpdateVersion () |
| EnumEncoding | GetEncoding () |
| void | SetEncoding (EnumEncoding val) |
| EnumMapping | GetMapping () |
| void | SetMapping (EnumMapping val) |
| EnumTextureTarget | GetTextureType () |
| 获取纹理类型 | |
| void | SetUniform (string name, bool 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, Vector4 val) |
| void | SetUniform (string name, Matrix3 val) |
| void | SetUniform (string name, Matrix4 val) |
| void | SetUniform (string name, Matrix2 val) |
| void | SetUniformBool (string name, bool 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) |
| virtual bool | IsValid () |
| 检查纹理是否有效 | |
| void | RequestUpdate () |
| 请求更新 | |
Public 成员函数 继承自 AnyCAD.Foundation.GfxObject | |
| GfxObject (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| uint | GetUuid () |
静态 Public 成员函数 | |
| static new TextureCube | Cast (GfxObject obj) |
静态 Public 成员函数 继承自 AnyCAD.Foundation.Texture | |
| static Texture | Cast (GfxObject obj) |
立方体贴图纹理类
由6个面组成的环境贴图,用于天空盒、反射、折射等效果。 每个面对应立方体的一个方向(+X, -X, +Y, -Y, +Z, -Z)。
| AnyCAD.Foundation.TextureCube.TextureCube | ( | TextureDesc | desc, |
| uint | width, | ||
| uint | height ) |
构造函数
| desc | 纹理描述对象 |
| width | 每个面的宽度 |
| height | 每个面的高度 |