OpenGL related application data. More...
#include <opengl_appdata.h>
Public Member Functions | |
Opengl_appdata () | |
Constructor. More... | |
virtual | ~Opengl_appdata () |
Destructor. More... | |
void | initialize (nv::index::app::IApplication_layer *app_layer, const mi::math::Vector< mi::Uint32, 2 > &canvas_resolution, bool use_gl_canvas, bool dump_internal_buffer) |
allocate and initialize off-screen context and opengl application buffer More... | |
Opengl_application_buffer * | get_opengl_application_buffer_ptr () |
get opengl application buffer pointer More... | |
void | resize_all_buffer (const mi::math::Vector< mi::Uint32, 2 > &canvas_resolution) |
resize all buffers More... | |
mi::Sint32 | get_frame_index () const |
get frame index More... | |
void | inc_frame_index () |
increment frame index More... | |
void | set_camera_tag (mi::neuraylib::Tag cam_tag) |
set camera tag More... | |
mi::neuraylib::Tag | get_camera_tag () const |
get camera tag More... | |
bool | is_dump_buffer () const |
dump internal buffer frag More... | |
bool | is_use_gl_canvas () const |
use opengl canvas flag More... | |
nv::index::app::canvas_infrastructure::IIndex_canvas * | get_current_iindex_canvas_ptr () |
get current canvas More... | |
Public Attributes | |
mi::base::Handle< nv::index::app::canvas_infrastructure::IIndex_opengl_canvas > | m_opengl_canvas |
opengl canvas More... | |
mi::base::Handle< nv::index::app::canvas_infrastructure::IIndex_main_memory_canvas > | m_main_memory_canvas |
main memory canvas More... | |
OpenGL related application data.
But this is not depends on OpenGL library. This keeps truck the IndeX viewer's OpenGL related function state.
Definition at line 27 of file opengl_appdata.h.
Opengl_appdata::Opengl_appdata | ( | ) |
Constructor.
Definition at line 92 of file opengl_appdata.cpp.
|
virtual |
Destructor.
Definition at line 20 of file opengl_appdata.cpp.
mi::neuraylib::Tag Opengl_appdata::get_camera_tag | ( | ) | const |
get camera tag
Definition at line 150 of file opengl_appdata.cpp.
nv::index::app::canvas_infrastructure::IIndex_canvas * Opengl_appdata::get_current_iindex_canvas_ptr | ( | ) |
get current canvas
Definition at line 168 of file opengl_appdata.cpp.
mi::Sint32 Opengl_appdata::get_frame_index | ( | ) | const |
get frame index
Definition at line 132 of file opengl_appdata.cpp.
Opengl_application_buffer * Opengl_appdata::get_opengl_application_buffer_ptr | ( | ) |
get opengl application buffer pointer
Definition at line 82 of file opengl_appdata.cpp.
void Opengl_appdata::inc_frame_index | ( | ) |
increment frame index
Definition at line 138 of file opengl_appdata.cpp.
void Opengl_appdata::initialize | ( | nv::index::app::IApplication_layer * | app_layer, |
const mi::math::Vector< mi::Uint32, 2 > & | canvas_resolution, | ||
bool | use_gl_canvas, | ||
bool | dump_internal_buffer | ||
) |
allocate and initialize off-screen context and opengl application buffer
Definition at line 31 of file opengl_appdata.cpp.
bool Opengl_appdata::is_dump_buffer | ( | ) | const |
dump internal buffer frag
Definition at line 156 of file opengl_appdata.cpp.
bool Opengl_appdata::is_use_gl_canvas | ( | ) | const |
use opengl canvas flag
Definition at line 162 of file opengl_appdata.cpp.
void Opengl_appdata::resize_all_buffer | ( | const mi::math::Vector< mi::Uint32, 2 > & | canvas_resolution | ) |
resize all buffers
Definition at line 104 of file opengl_appdata.cpp.
void Opengl_appdata::set_camera_tag | ( | mi::neuraylib::Tag | cam_tag | ) |
set camera tag
Definition at line 144 of file opengl_appdata.cpp.
mi::base::Handle<nv::index::app::canvas_infrastructure::IIndex_main_memory_canvas> Opengl_appdata::m_main_memory_canvas |
main memory canvas
Definition at line 70 of file opengl_appdata.h.
mi::base::Handle<nv::index::app::canvas_infrastructure::IIndex_opengl_canvas> Opengl_appdata::m_opengl_canvas |
opengl canvas
Definition at line 68 of file opengl_appdata.h.