#include <BALL/VIEW/RENDERING/glRenderWindow.h>
|
| GLRenderWindow () |
|
| GLRenderWindow (QWidget *parent_widget, const char *name=NULL, Qt::WFlags w_flags=0) |
|
| GLRenderWindow (const GLRenderWindow &window, QWidget *parent_widget, const char *name=NULL, Qt::WFlags w_flags=0) |
|
virtual | ~GLRenderWindow () |
|
virtual bool | init () |
|
virtual bool | resize (const unsigned int width, const unsigned int height) |
|
virtual void | refresh () |
|
virtual void | renderText (int x, int y, const String &text, const ColorRGBA &color, Size size=16) |
|
virtual void | renderText (float x, float y, float z, const String &text, const ColorRGBA &color, Size size=16) |
|
void | lockGLContext () |
| Lock the context for the current thread and make it active. More...
|
|
void | unlockGLContext () |
| Unlock the context for the current thread and make it active. More...
|
|
void | ignoreEvents (bool ignore) |
| Force the window to ignore paint events. More...
|
|
void | setDownsamplingFactor (float dsfactor) |
| Set the window's downsampling factor. This is a speed up factor. More...
|
|
void | setStereoDelta (float delta) |
| Set the stereo delta for raytracing in pixels. More...
|
|
void | setupStereo (float eye_separation, float focal_length) |
|
float | getDownsamplingFactor () const |
| Get the window's downsampling factor. More...
|
|
| TRenderWindow () |
|
virtual | ~TRenderWindow () |
|
virtual FrameBufferPtr | getBuffer () throw (BALL::Exception::NoBufferAvailable) |
|
virtual FrameBufferFormat | getFormat () const |
|
virtual void | releaseBuffer (FrameBufferPtr buffer) |
|
virtual void | prepareRendering () |
|
virtual bool | doNotResize () const |
|
virtual void | setDoNotResize (bool do_not_resize) |
|
virtual | ~RenderTarget () |
|
Model of the RenderWindow which uses OpenGL to render its buffer to the screen
Definition at line 37 of file glRenderWindow.h.
BALL::VIEW::GLRenderWindow::GLRenderWindow |
( |
| ) |
|
BALL::VIEW::GLRenderWindow::GLRenderWindow |
( |
QWidget * |
parent_widget, |
|
|
const char * |
name = NULL , |
|
|
Qt::WFlags |
w_flags = 0 |
|
) |
| |
BALL::VIEW::GLRenderWindow::GLRenderWindow |
( |
const GLRenderWindow & |
window, |
|
|
QWidget * |
parent_widget, |
|
|
const char * |
name = NULL , |
|
|
Qt::WFlags |
w_flags = 0 |
|
) |
| |
virtual BALL::VIEW::GLRenderWindow::~GLRenderWindow |
( |
| ) |
|
|
virtual |
void BALL::VIEW::GLRenderWindow::checkGL |
( |
| ) |
|
|
protected |
void BALL::VIEW::GLRenderWindow::createTexture |
( |
const unsigned int |
winWidth, |
|
|
const unsigned int |
winHeight |
|
) |
| |
|
protected |
virtual void BALL::VIEW::GLRenderWindow::customEvent |
( |
QEvent * |
evt | ) |
|
|
protectedvirtual |
This function handles custom Qt Events.
The main use of this function is notification of a fresh buffer to display from a separate renderer thread.
void BALL::VIEW::GLRenderWindow::deleteTexture |
( |
| ) |
|
|
protected |
bool BALL::VIEW::GLRenderWindow::errorInGL |
( |
GLenum & |
error | ) |
|
|
protected |
float BALL::VIEW::GLRenderWindow::getDownsamplingFactor |
( |
| ) |
const |
|
inline |
String BALL::VIEW::GLRenderWindow::getGLErrorString |
( |
GLenum |
error | ) |
|
|
protected |
void BALL::VIEW::GLRenderWindow::ignoreEvents |
( |
bool |
ignore | ) |
|
|
inline |
virtual bool BALL::VIEW::GLRenderWindow::init |
( |
| ) |
|
|
virtual |
void BALL::VIEW::GLRenderWindow::lockGLContext |
( |
| ) |
|
Lock the context for the current thread and make it active.
void BALL::VIEW::GLRenderWindow::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
protected |
virtual void BALL::VIEW::GLRenderWindow::refresh |
( |
| ) |
|
|
virtual |
Request that the image is actually displayed on the screen or other device the window encapsulated. You should implement this method in subclass. This is different from RenderTarget releaseBuffer. ReleaseBuffer only informs the window that a buffer is ready, but does not imply the buffer is actually displayed somewhere. This is done by refresh. On the other hand, refresh called inbetween getBuffer and releaseBuffer has no effect.
Reimplemented from BALL::VIEW::TRenderWindow< taPixelDatatype >.
virtual void BALL::VIEW::GLRenderWindow::renderText |
( |
int |
x, |
|
|
int |
y, |
|
|
const String & |
text, |
|
|
const ColorRGBA & |
color, |
|
|
Size |
size = 16 |
|
) |
| |
|
virtual |
virtual bool BALL::VIEW::GLRenderWindow::resize |
( |
const unsigned int |
width, |
|
|
const unsigned int |
height |
|
) |
| |
|
virtual |
Request new window size. Returns false if such a size cannot be supplied This call must be made before the window buffer is handed out to be rendered. This precondition is being checked automatically, see getBuffer
Reimplemented from BALL::VIEW::TRenderWindow< taPixelDatatype >.
void BALL::VIEW::GLRenderWindow::setDownsamplingFactor |
( |
float |
dsfactor | ) |
|
|
inline |
Set the window's downsampling factor. This is a speed up factor.
Definition at line 69 of file glRenderWindow.h.
void BALL::VIEW::GLRenderWindow::setStereoDelta |
( |
float |
delta | ) |
|
|
inline |
Set the stereo delta for raytracing in pixels.
Definition at line 73 of file glRenderWindow.h.
void BALL::VIEW::GLRenderWindow::setupStereo |
( |
float |
, |
|
|
float |
|
|
) |
| |
|
virtual |
Sets this render target as a part of a stereo setup.
eye_separation denotes the distance along the right vector used by this "eye".
Reimplemented from BALL::VIEW::RenderTarget.
void BALL::VIEW::GLRenderWindow::unlockGLContext |
( |
| ) |
|
Unlock the context for the current thread and make it active.
Mutex BALL::VIEW::GLRenderWindow::contex_mutex_ |
|
mutableprotected |
float BALL::VIEW::GLRenderWindow::down_sampling_factor_ |
|
protected |
GLenum BALL::VIEW::GLRenderWindow::FB_INTERNAL_TEXTURE_FORMAT |
|
protected |
GLenum BALL::VIEW::GLRenderWindow::FB_TEXTURE_DATATYPE |
|
protected |
GLenum BALL::VIEW::GLRenderWindow::FB_TEXTURE_FORMAT |
|
protected |
GLenum BALL::VIEW::GLRenderWindow::FB_TEXTURE_TARGET |
|
protected |
QGLFormat BALL::VIEW::GLRenderWindow::gl_format_ |
|
staticprotected |
bool BALL::VIEW::GLRenderWindow::ignore_events_ |
|
protected |
GLuint BALL::VIEW::GLRenderWindow::m_screenTexID |
|
protected |
float BALL::VIEW::GLRenderWindow::stereo_delta_ |