cgv
|
implements offscreen rendering More...
#include <gl_vr_display.h>
Public Member Functions | |
gl_vr_display (unsigned _width, unsigned _height, unsigned _nr_multi_samples) | |
construct | |
virtual | ~gl_vr_display () |
declare virtual destructor | |
const std::string & | get_last_error () const |
return last error of vr_kit | |
int | get_width () const |
return width in pixel of view | |
int | get_height () const |
return height in pixel of view | |
virtual void | set_size (int new_width, int new_height) |
allow to set a different size | |
virtual bool | init_fbos (EyeSelection es=ES_BOTH) |
initialize render targets and framebuffer objects in current opengl context | |
virtual bool | blit_fbo (int eye, int x, int y, int w, int h) |
initialize render targets and framebuffer objects in current opengl context | |
virtual bool | fbos_initialized (EyeSelection es=ES_BOTH) const |
check whether fbos have been initialized | |
virtual void | destruct_fbos (EyeSelection es=ES_BOTH) |
destruct render targets and framebuffer objects in current opengl context | |
virtual void | enable_fbo (int eye) |
enable the framebuffer object of given eye (0..left, 1..right) | |
virtual void | disable_fbo (int eye) |
disable the framebuffer object of given eye | |
virtual void | bind_texture (int eye) |
bind texture of given eye to current texture unit | |
Protected Attributes | |
unsigned | width |
pixel dimensions of render targets | |
unsigned | multi_depth_buffer_id [2] |
ids of gl render objects | |
std::string | last_error |
store last error message | |
implements offscreen rendering
vr_kit derives from gl_vr_display to provide offscreen rendering vor openvr driver as well as for the vr_emulated_kit of the vr_emulator. Implements the init_fbos(), enable_fbos(), disable_fbos(), destruct_fbos() and blit_fbo() functions with opengl and glew only.