|
AnyCAD Rapid API 2026
Help you to create a better world!
|
纹理基类 更多...
Public 成员函数 | |
| 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 Texture | Cast (GfxObject obj) |
纹理基类
所有纹理类型的抽象基类,提供统一的纹理管理和Uniform接口。 支持纹理参数配置、编码方式和映射类型设置。
| AnyCAD.Foundation.Texture.Texture | ( | TextureDesc | desc | ) |
构造函数
| desc | 纹理描述对象 |
| EnumTextureTarget AnyCAD.Foundation.Texture.GetTextureType | ( | ) |
获取纹理类型
|
virtual |
| void AnyCAD.Foundation.Texture.RequestUpdate | ( | ) |
请求更新
递增更新版本号,通知渲染系统纹理已改变