Class TextureId
- Espaço de nomes
- easyar
TextureId encapsula o objeto de textura na API gráfica. Onde, OpenGL/OpenGLES deve usar getInt e fromInt, e Direct3D deve usar getPointer e fromPointer.
TextureId
Métodos
getInt
Obter o ID do objeto de textura OpenGL/OpenGLES.
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()
Retorna
| Tipo | Descrição |
|---|---|
| Int32 |
getPointer
Obter o ponteiro do objeto de textura Direct3D.
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()
Retorna
| Tipo | Descrição |
|---|---|
| IntPtr |
fromInt
Criar a partir do ID do objeto de textura OpenGL/OpenGLES.
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)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| value | Int32 |
Retorna
| Tipo | Descrição |
|---|---|
| TextureId |
fromPointer
Criar a partir do ponteiro do objeto de textura Direct3D.
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)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| ptr | IntPtr |
Retorna
| Tipo | Descrição |
|---|---|
| TextureId |