Class TextureId
- Spazio dei nomi
- easyar
TextureId incapsula l'oggetto texture nelle API grafiche. Per OpenGL/OpenGLES, utilizzare getInt e fromInt; per Direct3D, utilizzare getPointer e fromPointer.
TextureId
Metodi
getInt
Ottiene l'ID dell'oggetto texture 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()
Valore restituito
| Tipo | Descrizione |
|---|---|
| Int32 |
getPointer
Ottiene il puntatore all'oggetto texture 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()
Valore restituito
| Tipo | Descrizione |
|---|---|
| IntPtr |
fromInt
Crea da un ID di oggetto texture 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)
Parametri
| Nome | Tipo | Descrizione |
|---|---|---|
| value | Int32 |
Valore restituito
| Tipo | Descrizione |
|---|---|
| TextureId |
fromPointer
Crea da un puntatore a un oggetto texture 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)
Parametri
| Nome | Tipo | Descrizione |
|---|---|---|
| ptr | IntPtr |
Valore restituito
| Tipo | Descrizione |
|---|---|
| TextureId |