Class TextureId
- Namespace
- easyar
TextureId encapsulates the texture object in the graphics API. Among them, OpenGL/OpenGLES should use getInt and fromInt, Direct3D should use getPointer and fromPointer.
TextureId
Methods
getInt
Get the ID of the OpenGL/OpenGLES texture object.
int easyar_TextureId_getInt(easyar_TextureId * This)
int getInt()
public int getInt()
fun getInt(): Int
- (int)getInt
public func getInt() -> Int32
public virtual int getInt()
Returns
- Int32
getPointer
Get the pointer of the Direct3D texture object.
void * easyar_TextureId_getPointer(easyar_TextureId * This)
void * getPointer()
public long getPointer()
fun getPointer(): Long
- (void *)getPointer
public func getPointer() -> OpaquePointer?
public virtual IntPtr getPointer()
Returns
- IntPtr
fromInt
Create from the ID of the OpenGL/OpenGLES texture object.
void easyar_TextureId_fromInt(int _value, easyar_TextureId * * Return)
static std::shared_ptr<TextureId> fromInt(int _value)
public static @Nonnull TextureId fromInt(int value)
companion object fun fromInt(value: Int): TextureId
+ (easyar_TextureId *)fromInt:(int)_value
public static func fromInt(_ value: Int32) -> TextureId
public static TextureId fromInt(int @value)
Parameters
valueInt32
Returns
fromPointer
Create from the pointer of the Direct3D texture object.
void easyar_TextureId_fromPointer(void * ptr, easyar_TextureId * * Return)
static std::shared_ptr<TextureId> fromPointer(void * ptr)
public static @Nonnull TextureId fromPointer(long ptr)
companion object fun fromPointer(ptr: Long): TextureId
+ (easyar_TextureId *)fromPointer:(void *)ptr
public static func fromPointer(_ ptr: OpaquePointer?) -> TextureId
public static TextureId fromPointer(IntPtr ptr)
Parameters
ptrIntPtr