Class OpenGLView
An OpenGL view.
Inheritance
System.Object
OpenGLView
Implements
GLSurfaceView.IRenderer
Namespace: FM.LiveSwitch.Android
Assembly: FM.LiveSwitch.Android.dll
Syntax
public class OpenGLView : GLSurfaceView, GLSurfaceView.IRenderer
Constructors
OpenGLView(Context)
Initializes a new instance of the OpenGLView class.
Declaration
public OpenGLView(Context context)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The context. |
OpenGLView(Context, LayoutScale)
Initializes a new instance of the OpenGLView class.
Declaration
public OpenGLView(Context context, LayoutScale scale)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The context. |
LayoutScale | scale | The scaling algorithm to use. |
Properties
Scale
Gets the scale.
Declaration
public LayoutScale Scale { get; }
Property Value
Type | Description |
---|---|
LayoutScale |
Methods
OnDrawFrame(IGL10)
Implementation of onDrawFrame. Do not call directly.
Declaration
public void OnDrawFrame(IGL10 gl)
Parameters
Type | Name | Description |
---|---|---|
IGL10 | gl | The GL context. |
OnSurfaceChanged(IGL10, Int32, Int32)
Implementation of onSurfaceChanged. Do not call directly.
Declaration
public void OnSurfaceChanged(IGL10 gl, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
IGL10 | gl | The GL context. |
System.Int32 | width | The width. |
System.Int32 | height | The height. |
OnSurfaceCreated(IGL10, Javax.Microedition.Khronos.Egl.EGLConfig)
Implementation of onSurfaceCreated. Do not call directly.
Declaration
public void OnSurfaceCreated(IGL10 gl, Javax.Microedition.Khronos.Egl.EGLConfig config)
Parameters
Type | Name | Description |
---|---|---|
IGL10 | gl | The GL context. |
Javax.Microedition.Khronos.Egl.EGLConfig | config | The configuration. |
Render(VideoBuffer)
Renders the specified buffer.
Declaration
public void Render(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |
Implements
GLSurfaceView.IRenderer