#include <render_system.h>
Public Member Functions | |
int | getGlslVersion () |
int | getGlVersion () |
bool | isStereoSupported () |
Ogre::RenderWindow * | makeRenderWindow (intptr_t window_id, unsigned int width, unsigned int height, double pixel_ratio=1.0) |
void | prepareOverlays (Ogre::SceneManager *scene_manager) |
Ogre::Root * | root () |
Static Public Member Functions | |
static void | disableAntiAliasing () |
static void | forceGlVersion (int version) |
static void | forceNoStereo () |
static RenderSystem * | get () |
Private Member Functions | |
void | detectGlVersion () |
void | loadOgrePlugins () |
RenderSystem () | |
void | setupDummyWindowId () |
void | setupRenderSystem () |
void | setupResources () |
Ogre::RenderWindow * | tryMakeRenderWindow (const std::string &name, unsigned int width, unsigned int height, const Ogre::NameValuePairList *params, int max_attempts) |
Private Attributes | |
unsigned long | dummy_window_id_ |
int | gl_version_ |
int | glsl_version_ |
Ogre::OverlaySystem * | ogre_overlay_system_ |
Ogre::Root * | ogre_root_ |
bool | stereo_supported_ |
Static Private Attributes | |
static int | force_gl_version_ = 0 |
static bool | force_no_stereo_ = false |
static RenderSystem * | instance_ = 0 |
static bool | use_anti_aliasing_ = true |
Definition at line 44 of file render_system.h.
rviz::RenderSystem::RenderSystem | ( | ) | [private] |
Definition at line 101 of file render_system.cpp.
void rviz::RenderSystem::detectGlVersion | ( | ) | [private] |
Definition at line 167 of file render_system.cpp.
void rviz::RenderSystem::disableAntiAliasing | ( | ) | [static] |
Definition at line 89 of file render_system.cpp.
void rviz::RenderSystem::forceGlVersion | ( | int | version | ) | [static] |
Definition at line 83 of file render_system.cpp.
void rviz::RenderSystem::forceNoStereo | ( | ) | [static] |
Definition at line 95 of file render_system.cpp.
RenderSystem * rviz::RenderSystem::get | ( | ) | [static] |
Definition at line 74 of file render_system.cpp.
int rviz::RenderSystem::getGlslVersion | ( | ) | [inline] |
Definition at line 61 of file render_system.h.
int rviz::RenderSystem::getGlVersion | ( | ) | [inline] |
Definition at line 58 of file render_system.h.
bool rviz::RenderSystem::isStereoSupported | ( | ) | [inline] |
Definition at line 73 of file render_system.h.
void rviz::RenderSystem::loadOgrePlugins | ( | ) | [private] |
Definition at line 156 of file render_system.cpp.
Ogre::RenderWindow * rviz::RenderSystem::makeRenderWindow | ( | intptr_t | window_id, |
unsigned int | width, | ||
unsigned int | height, | ||
double | pixel_ratio = 1.0 |
||
) |
Definition at line 347 of file render_system.cpp.
void rviz::RenderSystem::prepareOverlays | ( | Ogre::SceneManager * | scene_manager | ) |
Definition at line 123 of file render_system.cpp.
Ogre::Root* rviz::RenderSystem::root | ( | ) | [inline] |
Definition at line 51 of file render_system.h.
void rviz::RenderSystem::setupDummyWindowId | ( | ) | [private] |
Definition at line 131 of file render_system.cpp.
void rviz::RenderSystem::setupRenderSystem | ( | ) | [private] |
We used to allow the user to set the RTT mode to PBuffer, FBO, or Copy. Copy is slow, and there doesn't seem to be a good reason to use it PBuffer limits the size of the renderable area of the RTT to the size of the first window created. FBO seem to be the only good option
Definition at line 214 of file render_system.cpp.
void rviz::RenderSystem::setupResources | ( | ) | [private] |
Definition at line 260 of file render_system.cpp.
Ogre::RenderWindow * rviz::RenderSystem::tryMakeRenderWindow | ( | const std::string & | name, |
unsigned int | width, | ||
unsigned int | height, | ||
const Ogre::NameValuePairList * | params, | ||
int | max_attempts | ||
) | [private] |
Definition at line 443 of file render_system.cpp.
unsigned long rviz::RenderSystem::dummy_window_id_ [private] |
Definition at line 95 of file render_system.h.
int rviz::RenderSystem::force_gl_version_ = 0 [static, private] |
Definition at line 103 of file render_system.h.
bool rviz::RenderSystem::force_no_stereo_ = false [static, private] |
Definition at line 105 of file render_system.h.
int rviz::RenderSystem::gl_version_ [private] |
Definition at line 100 of file render_system.h.
int rviz::RenderSystem::glsl_version_ [private] |
Definition at line 101 of file render_system.h.
RenderSystem * rviz::RenderSystem::instance_ = 0 [static, private] |
Definition at line 92 of file render_system.h.
Ogre::OverlaySystem* rviz::RenderSystem::ogre_overlay_system_ [private] |
Definition at line 98 of file render_system.h.
Ogre::Root* rviz::RenderSystem::ogre_root_ [private] |
Definition at line 97 of file render_system.h.
bool rviz::RenderSystem::stereo_supported_ [private] |
Definition at line 104 of file render_system.h.
bool rviz::RenderSystem::use_anti_aliasing_ = true [static, private] |
Definition at line 102 of file render_system.h.