Robotran C Documentation
open_gl_c_int.h
Go to the documentation of this file.
1 
6 #if (defined OPEN_GL) && (!defined SEPARATE_OPEN_GL) && (!defined PROCESS_OPEN_GL)
7 
8 #ifndef _OPEN_GL_C_INT_H_
9 #define _OPEN_GL_C_INT_H_
10 
11 #include "realtime_ext.h"
12 
13 #if defined(__APPLE__) || defined(__MACH__)
14  #define APPLE_VISU
15 #endif
16 
17 #ifdef UNIX // choose one of the following options:
18  // comment this line to remove multi-processing on Unix (Linux-Mac OS) systems
19  #define OPEN_GL_PROCESS_UNIX
20 
21  // comment this line to remove multi-thread on Unix (Linux-Mac OS) systems
22  //#define OPEN_GL_THREAD_UNIX
23 #endif
24 
25 // comment this line to remove multi-processing on Windows systems
26 // Remark (ST): When an error in open_gl process occurs, comment the line #define below
27 // It allows to see the console with the error printed, even if open_gl process exited
28 #ifdef WIN32
29  #define OPEN_GL_PROCESS_WIN
30 #endif
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 // function prototypes
37 int init_open_gl(Realtime_visu *visu, MbsData *mbs_data, int nb_models, int *nb_q, double **q_vec, char **mbs_file, int start_viewpoint);
38 int free_open_gl(void *visu_class);
39 int update_open_gl(Simu_realtime *realtime);
40 int break_open_gl(Simu_realtime *realtime);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif
47 #endif
MbsWorldOgl.hh
MbsWorld3D.hh
MbsWorld3D class.
_MBS_ERR_MOD_SPEC_13
#define _MBS_ERR_MOD_SPEC_13
Generic error number Module specific errors range from -10 to -19 please read the error message a...
Definition: mbs_errors_names.h:174
realtime_ext.h
Real-time constraints header for external modules.
Simu_realtime::ext
Realtime_extern * ext
external variables
Definition: realtime.h:143
open_gl_c_int.h
interface to call C++ functions from C code
OpenGLMbs::shader_multisample
void shader_multisample(const char *mbs_filename, int &shader_flag, int &multi_samp)
mbs_message.h
MbsData
Definition: mbs_data.h:149
Simu_realtime
real-time structure
Definition: realtime.h:99
MbsData::build_path
char * build_path
Path to the build folder.
Definition: mbs_data.h:311
Realtime_extern::mbs_data
MbsData * mbs_data
Robotran main structure.
Definition: realtime.h:36
shader_multisample.hh
extract shader flag and multisampling from .mbs
user_realtime.h
mbs_errors_names.h