|
AGXDynamics
2.31.1.0
|
EglContext is a class that provides a different way to setup a graphics context for 3D rendering. More...
#include <EglContext.h>
Inheritance diagram for agxOSG::EglContext:Public Member Functions | |
| EglContext (osg::GraphicsContext::Traits *traits) | |
| virtual void | bindPBufferToTextureImplementation (GLenum buffer) |
| Bind the graphics context to associated texture implementation. More... | |
| virtual const char * | className () const |
| virtual void | closeImplementation () |
| Close the graphics context. More... | |
| virtual bool | isRealizedImplementation () const |
| Return true if the graphics context has been realised and is ready to use. More... | |
| virtual bool | isSameKindAs (const Object *object) const |
| virtual const char * | libraryName () const |
| virtual bool | makeContextCurrentImplementation (osg::GraphicsContext *readContext) |
| Make this graphics context current with specified read context implementation. More... | |
| virtual bool | makeCurrentImplementation () |
| Make this graphics context current. More... | |
| virtual bool | realizeImplementation () |
| Realise the GraphicsContext. More... | |
| virtual bool | releaseContextImplementation () |
| Release the graphics context. More... | |
| virtual void | swapBuffersImplementation () |
| Swap the front and back buffers. More... | |
| virtual bool | valid () const |
Protected Member Functions | |
| ~EglContext () | |
| EGLDisplay | getDisplayFromDevice (EGLDeviceEXT dev) |
| void | init () |
| void | queryDevices () |
Protected Attributes | |
| EGLContext | m_eglContext |
| EGLDeviceEXT * | m_eglDevices |
| EGLDisplay | m_eglDisplay |
| EGLSurface | m_eglSurface |
| bool | m_initialized |
| agx::Int32 | m_numDevices |
| bool | m_realized |
| bool | m_valid |
EglContext is a class that provides a different way to setup a graphics context for 3D rendering.
The main purpose is to simplify headless rendering in Linux without the need of running a X-server for context creation via GLX.
Using this class in Linux and to avoid problems it is required that:
Definition at line 50 of file EglContext.h.
| agxOSG::EglContext::EglContext | ( | osg::GraphicsContext::Traits * | traits | ) |
|
protected |
Bind the graphics context to associated texture implementation.
|
virtual |
|
virtual |
Close the graphics context.
|
protected |
|
protected |
|
virtual |
Return true if the graphics context has been realised and is ready to use.
|
virtual |
|
virtual |
|
virtual |
Make this graphics context current with specified read context implementation.
|
virtual |
Make this graphics context current.
|
protected |
|
virtual |
Realise the GraphicsContext.
|
virtual |
Release the graphics context.
|
virtual |
Swap the front and back buffers.
|
virtual |
|
protected |
Definition at line 96 of file EglContext.h.
|
protected |
Definition at line 98 of file EglContext.h.
|
protected |
Definition at line 95 of file EglContext.h.
|
protected |
Definition at line 94 of file EglContext.h.
|
protected |
Definition at line 103 of file EglContext.h.
|
protected |
Definition at line 100 of file EglContext.h.
|
protected |
Definition at line 104 of file EglContext.h.
|
protected |
Definition at line 102 of file EglContext.h.