TextureId Class¶
Description¶
TextureId封装图形API中的纹理对象。
其中,OpenGL/OpenGLES应使用getInt和fromInt,Direct3D应使用getPointer和fromPointer。
getInt¶
获得OpenGL/OpenGLES纹理对象的ID。
- C
int easyar_TextureId_getInt(easyar_TextureId * This)
- C++17
int getInt()
- C++03
int getInt()
- Java
public int getInt()
- Kotlin
fun getInt(): Int
- Objective-C
- (int)getInt
- Swift
public func getInt() -> Int32
- C#
public virtual int getInt()
getPointer¶
获得Direct3D纹理对象的指针。
- C
void * easyar_TextureId_getPointer(easyar_TextureId * This)
- C++17
void * getPointer()
- C++03
void * getPointer()
- Java
public long getPointer()
- Kotlin
fun getPointer(): Long
- Objective-C
- (void *)getPointer
- Swift
public func getPointer() -> OpaquePointer?
- C#
public virtual IntPtr getPointer()
fromInt¶
从OpenGL/OpenGLES纹理对象的ID创建。
- C
void easyar_TextureId_fromInt(int _value, easyar_TextureId * * Return)
- C++17
static std::shared_ptr<TextureId> fromInt(int _value)
- C++03
static void fromInt(int _value, TextureId * * Return)
- Java
public static @Nonnull TextureId fromInt(int value)
- Kotlin
companion object fun fromInt(value: Int): TextureId
- Objective-C
+ (easyar_TextureId *)fromInt:(int)_value
- Swift
public static func fromInt(_ value: Int32) -> TextureId
- C#
public static TextureId fromInt(int @value)
fromPointer¶
从Direct3D纹理对象的指针创建。
- C
void easyar_TextureId_fromPointer(void * ptr, easyar_TextureId * * Return)
- C++17
static std::shared_ptr<TextureId> fromPointer(void * ptr)
- C++03
static void fromPointer(void * ptr, TextureId * * Return)
- Java
public static @Nonnull TextureId fromPointer(long ptr)
- Kotlin
companion object fun fromPointer(ptr: Long): TextureId
- Objective-C
+ (easyar_TextureId *)fromPointer:(void *)ptr
- Swift
public static func fromPointer(_ ptr: OpaquePointer?) -> TextureId
- C#
public static TextureId fromPointer(IntPtr ptr)