fm.liveswitch.android.OpenGLView Class Reference

Classes

enum  ATTRIB
 
enum  UNIFORM
 

Public Member Functions

LayoutScale getScale ()
 
 OpenGLView (Context context)
 Initializes a new instance of the OpenGLView class. More...
 
 OpenGLView (Context context, LayoutScale scale)
 Initializes a new instance of the OpenGLView class. More...
 
void onSurfaceChanged (GL10 gl, int width, int height)
 Implementation of onSurfaceChanged. Do not call directly. More...
 
void onSurfaceCreated (GL10 gl, EGLConfig config)
 Implementation of onSurfaceCreated. Do not call directly. More...
 
final void onDrawFrame (GL10 gl)
 Implementation of onDrawFrame. Do not call directly. More...
 
void render (VideoBuffer buffer)
 

Constructor & Destructor Documentation

◆ OpenGLView() [1/2]

fm.liveswitch.android.OpenGLView.OpenGLView ( Context  context)

Initializes a new instance of the OpenGLView class.

Parameters
contextThe context.
scaleThe scaling algorithm to use.

◆ OpenGLView() [2/2]

fm.liveswitch.android.OpenGLView.OpenGLView ( Context  context,
LayoutScale  scale 
)

Initializes a new instance of the OpenGLView class.

Parameters
contextThe context.
scaleThe scaling algorithm to use.

Member Function Documentation

◆ getScale()

LayoutScale fm.liveswitch.android.OpenGLView.getScale ( )

◆ onDrawFrame()

final void fm.liveswitch.android.OpenGLView.onDrawFrame ( GL10  gl)

Implementation of onDrawFrame. Do not call directly.

Parameters
glThe GL context.

◆ onSurfaceChanged()

void fm.liveswitch.android.OpenGLView.onSurfaceChanged ( GL10  gl,
int  width,
int  height 
)

Implementation of onSurfaceChanged. Do not call directly.

Parameters
glThe GL context.
widthThe width.
heightThe height.

◆ onSurfaceCreated()

void fm.liveswitch.android.OpenGLView.onSurfaceCreated ( GL10  gl,
EGLConfig  config 
)

Implementation of onSurfaceCreated. Do not call directly.

Parameters
glThe GL context.
configThe configuration.

◆ render()

void fm.liveswitch.android.OpenGLView.render ( VideoBuffer  buffer)