| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | #ifndef MUJOCO_SRC_RENDER_RENDER_CONTEXT_H_ |
| | #define MUJOCO_SRC_RENDER_RENDER_CONTEXT_H_ |
| |
|
| | #include <mujoco/mjdata.h> |
| | #include <mujoco/mjexport.h> |
| | #include <mujoco/mjmodel.h> |
| | #include <mujoco/mjrender.h> |
| |
|
| | #if defined(__cplusplus) |
| | extern "C" { |
| | #endif |
| |
|
| | |
| | enum { |
| | mjrSPHERE = 0, |
| | mjrSPHERETOP, |
| | mjrSPHEREBOTTOM, |
| | mjrCYLINDER, |
| | mjrCYLINDEROPEN, |
| | mjrHAZE, |
| | mjrBOX, |
| | mjrCONE, |
| | mjrNUM |
| | }; |
| |
|
| |
|
| | |
| | MJAPI void mjr_defaultContext(mjrContext* con); |
| |
|
| | |
| | MJAPI void mjr_makeContext(const mjModel* m, mjrContext* con, int fontscale); |
| |
|
| | |
| | MJAPI void mjr_changeFont(int fontscale, mjrContext* con); |
| |
|
| | |
| | MJAPI void mjr_addAux(int index, int width, int height, int samples, mjrContext* con); |
| |
|
| | |
| | MJAPI void mjr_freeContext(mjrContext* con); |
| |
|
| | |
| | MJAPI void mjr_resizeOffscreen(int offwidth, int offheight, mjrContext* con); |
| |
|
| | |
| | MJAPI void mjr_uploadTexture(const mjModel* m, const mjrContext* con, int texid); |
| |
|
| | |
| | MJAPI void mjr_uploadMesh(const mjModel* m, const mjrContext* con, int meshid); |
| |
|
| | |
| | MJAPI void mjr_uploadHField(const mjModel* m, const mjrContext* con, int hfieldid); |
| |
|
| | #if defined(__cplusplus) |
| | } |
| | #endif |
| |
|
| | #endif |
| |
|