Class TextureId
- Espace de noms
- easyar
TextureId encapsule les objets de texture dans les API graphiques. Pour OpenGL/OpenGLES, utilisez getInt et fromInt ; pour Direct3D, utilisez getPointer et fromPointer.
TextureId
Méthodes
getInt
Obtenir l'ID d'un objet 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()
Retours
| Type | Description |
|---|---|
| Int32 |
getPointer
Obtenir le pointeur de l'objet de 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()
Retours
| Type | Description |
|---|---|
| IntPtr |
fromInt
Créé à partir de l'ID d'un objet de 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)
Paramètres
| Nom | Type | Description |
|---|---|---|
| value | Int32 |
Retours
| Type | Description |
|---|---|
| TextureId |
fromPointer
Créer à partir du pointeur de l'objet de 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)
Paramètres
| Nom | Type | Description |
|---|---|---|
| ptr | IntPtr |
Retours
| Type | Description |
|---|---|
| TextureId |