AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Foundation.Texture2D类 参考

The 2D texture 更多...

类 AnyCAD.Foundation.Texture2D 继承关系图:
AnyCAD.Foundation.Texture AnyCAD.Foundation.GfxObject AnyCAD.Foundation.ImageTexture2D

Public 成员函数

 Texture2D (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 Texture2D (TextureDesc desc)
 
uint GetWidth ()
 
void SetWidth (uint val)
 
uint GetHeight ()
 
void SetHeight (uint val)
 
Vector2 GetOffset ()
 
void SetOffset (Vector2 val)
 
float GetAngle ()
 
void SetAngle (float val)
 
Vector2 GetRepeat ()
 
void SetRepeat (Vector2 val)
 
Vector2 GetCenter ()
 
void SetCenter (Vector2 val)
 
bool GetGenerateMipmap ()
 
void SetGenerateMipmap (bool val)
 
void UpdateTransform ()
 
void Resize (uint width, uint height)
 
- Public 成员函数 继承自 AnyCAD.Foundation.Texture
 Texture (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 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 Texture2D Cast (GfxObject obj)
 
- 静态 Public 成员函数 继承自 AnyCAD.Foundation.Texture
static Texture Cast (GfxObject obj)
 

详细描述

The 2D texture

Group: Rendering