AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
ImageTexture2D类 参考
类 ImageTexture2D 继承关系图:
Texture2D Texture GfxObject

Public 成员函数

 ImageTexture2D (Image img, TextureDesc desc)
 
Image GetSource ()
 
void AsyncLoad (String url)
 
boolean SetSource (Image image)
 
boolean IsValid ()
 
- Public 成员函数 继承自 Texture2D
 Texture2D (TextureDesc desc)
 
long GetWidth ()
 
void SetWidth (long val)
 
long GetHeight ()
 
void SetHeight (long 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)
 
boolean GetGenerateMipmap ()
 
void SetGenerateMipmap (boolean val)
 
void UpdateTransform ()
 
void Resize (long width, long height)
 
- Public 成员函数 继承自 Texture
 Texture (TextureDesc desc)
 
String GetName ()
 
void SetName (String val)
 
TextureDesc GetDesc ()
 
void SetDesc (TextureDesc val)
 
UniformSet GetUniforms ()
 
long GetUpdateVersion ()
 
EnumEncoding GetEncoding ()
 
void SetEncoding (EnumEncoding val)
 
EnumMapping GetMapping ()
 
void SetMapping (EnumMapping val)
 
EnumTextureTarget GetTextureType ()
 
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, 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 RequestUpdate ()
 
- Public 成员函数 继承自 GfxObject
long GetUuid ()
 

静态 Public 成员函数

static ImageTexture2D Create (String fileName)
 
- 静态 Public 成员函数 继承自 Texture2D
static Texture2D Cast (GfxObject obj)
 

成员函数说明

◆ IsValid()

boolean ImageTexture2D.IsValid ( )

重载 Texture .