Robotran C Documentation
Classes | Functions | Variables
OpenGLMbs Namespace Reference

Classes

class  DefaultShapeRenderer
 DefaultShapeRenderer class is a default implementation of DefaultShapeRenderer. It implements the function of MbsShapeRenderer but do nothing. More...
 
class  DefaultWindowManager
 DefaultWindowManager is a default implementation of MbsWindowManager that do nothing. It is useful in association with VtkWorldRenderer. More...
 
class  DefaultWorldRenderer
 Implementation of MbsWorldRenderer class that do nothing. More...
 
class  GlfwWindowManager
 Implements a MbsWindowManager using the GLFW library. It may be used in association with OglWorldRenderer. More...
 
class  MbsBox
 
class  MbsCone
 
class  MbsCylinder
 
class  MbsInline
 
class  MbsShapeRenderer
 MbsShapeRenderer is an abstract class that defines the property need to render a MbsShape3D. Three implementation are currently available: More...
 
class  MbsSphere
 
class  MbsViewPointRenderer
 abstract class for specifying code to render the 3D scene to an image from a specific viepoint. More...
 
class  MbsWindowManager
 MbsWindowManager is an abstract class that defines the functionalities of a window manager. More...
 
class  MbsWorldRenderer
 MbsWorldRenderer class defines the general properties of an object that renders a MbsWorld3D.Three implementation are currently available (but other can be written if needed): More...
 
class  MpegFrameCaptureOptions
 MpegFrameCaptureOptions: save screenshots as video in the mpeg format. More...
 
class  OglOffscreenVpRenderer
 implementation of a MbsViewPointRenderer using OpenGL to render offscreen. It re-uses code of OglViewPointRenderer More...
 
class  OglShapeRenderer
 OglShapeRenderer class is an implementation of MbsShapeRenderer that render a MbsShape3D using Open GL. More...
 
class  OglViewPointRenderer
 implementation of a MbsViewPointRenderer using OpenGL to render directly to the screen More...
 
class  OglWorldRenderer
 Implementation of MbsWorldRenderer class that render a MbsWorld3D using Open GL. More...
 
class  ShaderLight
 shader light class More...
 

Functions

void shader_multisample (const char *mbs_filename, int &shader_flag, int &multi_samp)
 
bool int_in_range (int x, int min, int max)
 check if integer is in range More...
 

Variables

GLdouble tmp_vert_box [3 *NB_VERTICES_INIT]
 
GLfloat tmp_coord_box [3 *NB_TRIANGLES_INIT]
 
GLdouble tmp_vert_cone [3 *NB_VERTICES_INIT]
 
GLfloat tmp_coord_cone [3 *NB_TRIANGLES_INIT]
 
GLdouble tmp_vert_cylinder [3 *NB_VERTICES_INIT]
 
GLfloat tmp_coord_cylinder [3 *NB_TRIANGLES_INIT]
 
GLdouble tmp_vert_sphere [3 *NB_VERTICES_INIT]
 
GLfloat tmp_coord_sphere [3 *NB_TRIANGLES_INIT]
 

Function Documentation

◆ int_in_range()

bool OpenGLMbs::int_in_range ( int  x,
int  min,
int  max 
)
inline

check if integer is in range

◆ shader_multisample()

void OpenGLMbs::shader_multisample ( const char *  mbs_filename,
int &  shader_flag,
int &  multi_samp 
)

Variable Documentation

◆ tmp_coord_box

GLfloat tmp_coord_box[3 *NB_TRIANGLES_INIT]
Initial value:
= {
5, 6, 1,
6, 7, 2,
7, 8, 3,
8, 5, 4,
1, 2, 4,
8, 7, 5,
6, 2, 1,
7, 3, 2,
8, 4, 3,
5, 1, 4,
2, 3, 4,
7, 6, 5
}

◆ tmp_coord_cone

GLfloat tmp_coord_cone[3 *NB_TRIANGLES_INIT]

◆ tmp_coord_cylinder

GLfloat tmp_coord_cylinder[3 *NB_TRIANGLES_INIT]

◆ tmp_coord_sphere

GLfloat tmp_coord_sphere[3 *NB_TRIANGLES_INIT]

◆ tmp_vert_box

GLdouble tmp_vert_box[3 *NB_VERTICES_INIT]
Initial value:
= {
-1.0, -1.0, 1.0,
-1.0, -1.0, -1.0,
1.0, -1.0, -1.0,
1.0, -1.0, 1.0,
-1.0, 1.0, 1.0,
-1.0, 1.0, -1.0,
1.0, 1.0, -1.0,
1.0, 1.0, 1.0
}

◆ tmp_vert_cone

GLdouble tmp_vert_cone[3 *NB_VERTICES_INIT]

◆ tmp_vert_cylinder

GLdouble tmp_vert_cylinder[3 *NB_VERTICES_INIT]

◆ tmp_vert_sphere

GLdouble tmp_vert_sphere[3 *NB_VERTICES_INIT]