TextureId Class¶
This type is an EasyAR Sense API in C#: TextureId . Some descriptions may not apply to Unity environment on this page.
Some parts of the Sense API may have already been wrapped into Unity components, and directly usages may not be necessary.
Description¶
TextureId encapsulates a texture object in rendering API.
For OpenGL/OpenGLES, getInt and fromInt shall be used. For Direct3D, getPointer and fromPointer shall be used.
Methods¶
getInt¶
- C#
public virtual int getInt()
Gets ID of an OpenGL/OpenGLES texture object.
getPointer¶
- C#
public virtual IntPtr getPointer()
Gets pointer of a Direct3D texture object.
fromInt¶
- C#
public static TextureId fromInt(int value)
Creates from ID of an OpenGL/OpenGLES texture object.
fromPointer¶
- C#
public static TextureId fromPointer(IntPtr ptr)
Creates from pointer of a Direct3D texture object.