blip
0.1
|
The native rendering context. More...
#include <RenderingContext.hpp>
Public Member Functions | |
~RenderingContext () | |
Destructor. More... | |
void | makeCurrent () |
Bind this rendering context to the native window. More... | |
void | swapBuffers () |
Post the EGL surface to the native window. More... | |
bool | copyBuffer (Pixmap *pixmap) |
Copy the EGL surface color buffer to a Pixmap. More... | |
int | getScreenWidth () const |
Get the width of the screen, in pixels. More... | |
int | getScreenHeight () const |
Get the height of the screen, in pixels. More... | |
const Size & | getScreenSize () const |
Get the size of the screen, in pixels. More... | |
int | getGLVersionMajor () const |
Get the OpenGL ES major version number. More... | |
int | getGLVersionMinor () const |
Get the OpenGL ES minor version number. More... | |
bool | isValid () const |
Test if this rendering context is valid. More... | |
The native rendering context.
An instance of this class is automatically initialized by NativeActivity once the activity's native window has been created, and automatically destroyed when the native window is destroyed. This instance may be obtained by calling NativeActivity::getRenderingContext().
~RenderingContext | ( | ) |
Destructor.
bool copyBuffer | ( | Pixmap * | pixmap | ) |
Copy the EGL surface color buffer to a Pixmap.
This is a wrapper around eglCopyBuffers()
.
|
inline |
Get the OpenGL ES major version number.
|
inline |
Get the OpenGL ES minor version number.
|
inline |
Get the height of the screen, in pixels.
|
inline |
Get the size of the screen, in pixels.
|
inline |
Get the width of the screen, in pixels.
|
inline |
Test if this rendering context is valid.
void makeCurrent | ( | ) |
Bind this rendering context to the native window.
This is simply a wrapper around eglMakeCurrent()
.
void swapBuffers | ( | ) |
Post the EGL surface to the native window.
This is simply a wrapper around eglSwapBuffers()
.