NVIDIA Index example code nvidia_logo_transpbg.gif Up
Opengl_appdata Class Reference

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_bufferget_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...
 

Detailed Description

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.

Constructor & Destructor Documentation

 Opengl_appdata()

Opengl_appdata::Opengl_appdata ( )

Constructor.

Definition at line 92 of file opengl_appdata.cpp.

 ~Opengl_appdata()

Opengl_appdata::~Opengl_appdata ( )
virtual

Destructor.

Definition at line 20 of file opengl_appdata.cpp.

Member Function Documentation

 get_camera_tag()

mi::neuraylib::Tag Opengl_appdata::get_camera_tag ( ) const

get camera tag

Definition at line 150 of file opengl_appdata.cpp.

 get_current_iindex_canvas_ptr()

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.

 get_frame_index()

mi::Sint32 Opengl_appdata::get_frame_index ( ) const

get frame index

Definition at line 132 of file opengl_appdata.cpp.

 get_opengl_application_buffer_ptr()

Opengl_application_buffer * Opengl_appdata::get_opengl_application_buffer_ptr ( )

get opengl application buffer pointer

Returns
opengl application buffer. may 0.

Definition at line 82 of file opengl_appdata.cpp.

 inc_frame_index()

void Opengl_appdata::inc_frame_index ( )

increment frame index

Definition at line 138 of file opengl_appdata.cpp.

 initialize()

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.

 is_dump_buffer()

bool Opengl_appdata::is_dump_buffer ( ) const

dump internal buffer frag

Definition at line 156 of file opengl_appdata.cpp.

 is_use_gl_canvas()

bool Opengl_appdata::is_use_gl_canvas ( ) const

use opengl canvas flag

Definition at line 162 of file opengl_appdata.cpp.

 resize_all_buffer()

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.

 set_camera_tag()

void Opengl_appdata::set_camera_tag ( mi::neuraylib::Tag  cam_tag)

set camera tag

Definition at line 144 of file opengl_appdata.cpp.

Member Data Documentation

 m_main_memory_canvas

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.

 m_opengl_canvas

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.


The documentation for this class was generated from the following files: