KudanAR - Android  1.6.0
ARTextureOES Class Reference

Inherits ARTexture.

Inherited by ARVideoTexture.

Public Member Functions

void setSurfaceTexture (SurfaceTexture surfaceTexture)
 
SurfaceTexture getSurfaceTexture ()
 
 ARTextureOES (int textureID)
 
 ARTextureOES ()
 
void bindTexture (int unit)
 
void prepareRenderer (int unit)
 
- Public Member Functions inherited from ARTexture
 ARTexture ()
 
void finalize ()
 
void createTexture ()
 
void loadData ()
 
int getTextureID ()
 
void setTextureID (int textureID)
 
int getWidth ()
 
int getHeight ()
 

Protected Attributes

SurfaceTexture mSurfaceTexture
 
- Protected Attributes inherited from ARTexture
long mNativeMem
 
int mTextureID
 

Detailed Description

A class representing OpenGL ES textures which are updated from an image stream.

Constructor & Destructor Documentation

◆ ARTextureOES() [1/2]

ARTextureOES.ARTextureOES ( int  textureID)

Initialises ARTextureOES with texture unit.

Parameters
textureIDTexture unit.

◆ ARTextureOES() [2/2]

ARTextureOES.ARTextureOES ( )

Initialises empty ARTextureOES.

Member Function Documentation

◆ bindTexture()

void ARTextureOES.bindTexture ( int  unit)

Binds the texture in OpenGL.

Parameters
unitTexture unit

Reimplemented from ARTexture.

◆ getSurfaceTexture()

SurfaceTexture ARTextureOES.getSurfaceTexture ( )

Returns ARTextureOES's surface texture.

Returns
SurfaceTexture.

◆ prepareRenderer()

void ARTextureOES.prepareRenderer ( int  unit)

Prepares renderer to render ARTextureOES.

Parameters
unitTexture unit.

Reimplemented from ARTexture.

Reimplemented in ARVideoTexture.

◆ setSurfaceTexture()

void ARTextureOES.setSurfaceTexture ( SurfaceTexture  surfaceTexture)

Sets ARTextureOES's surface texture.

Returns
SurfaceTexture.

The documentation for this class was generated from the following file: