Implementation of MbsWorldRenderer class that render a MbsWorld3D using Open GL.
More...
#include <OglWorldRenderer.hh>
Implementation of MbsWorldRenderer class that render a MbsWorld3D using Open GL.
◆ OglWorldRenderer()
Constructor.
Construct a new OglWorldRender.
- Parameters
-
[in] | world_3d | the MbsWorld3D that must be rendered by this new object |
[in] | shader_flag | the shader option (for lights, shades, ...) |
◆ AddDepthTexture()
void AddDepthTexture |
( |
int |
new_depth_x_width, |
|
|
int |
new_depth_y_width |
|
) |
| |
|
virtual |
add a depth texture
- Parameters
-
[in] | new_depth_x_width | X width of the shadow map depth textures (in pixels) |
[in] | new_depth_y_width | Y width of the shadow map depth textures (in pixels) |
Implements MbsWorldRenderer.
◆ AddViewPointRenderer()
◆ GetDepthTexture()
GLuint GetDepthTexture |
( |
int |
i | ) |
const |
|
inline |
◆ GetDepthXWidth()
int GetDepthXWidth |
( |
int |
i | ) |
const |
|
inline |
get the depth texture width along the X axis (in pixels)
◆ GetDepthYWidth()
int GetDepthYWidth |
( |
int |
i | ) |
const |
|
inline |
get the depth texture width along the Y axis (in pixels)
◆ GetFrameBuffer()
GLuint GetFrameBuffer |
( |
int |
i | ) |
const |
|
inline |
◆ GetNbDepthTextures()
int GetNbDepthTextures |
( |
| ) |
const |
|
inline |
get the number of depth textures
◆ getNewShapeRenderer()
◆ Init()
Execute the necessary code to initialize the renderer Here: initialize Open GL context.
Initialize the renderer.
Performs the initilization steps of Open GL
Implements MbsWorldRenderer.
◆ SetBackgroundColor()
void SetBackgroundColor |
( |
glm::vec3 const & |
col | ) |
|
|
virtual |
Set the backgroun of the Open GL view to the specified color.
- Parameters
-
[in] | col | the new color for the background |
Implements MbsWorldRenderer.
◆ SetShader()
◆ Update()
void Update |
( |
std::vector< MbsShape3D * > |
model_list | ) |
|
|
virtual |
Execute the necessary code to render this world: Update the append filter and output the vtu file for current time step.
Update the 3D view.
Call the renderer of the MbsShape3D in the MbsWorld3D associated to this renderer.
Implements MbsWorldRenderer.
◆ background_color
glm::vec3 background_color |
|
protected |
◆ depth_x_width
std::vector<int> depth_x_width |
|
private |
X width of the shadow map depth textures (in pixels)
◆ depth_y_width
std::vector<int> depth_y_width |
|
private |
X width of the shadow map depth textures (in pixels)
◆ depthTexture
std::vector<GLuint> depthTexture |
|
private |
◆ fragment_file
std::string fragment_file |
|
protected |
◆ frameBuffer
std::vector<GLuint> frameBuffer |
|
private |
◆ is_init
◆ main_frag_sh
main fragment shader path
◆ main_vert_sh
◆ shader_flag
◆ vertex_file
◆ vp_renderer_vec
Viewpoint renderer vector: contain all the view point renderers.
◆ world_3d
The documentation for this class was generated from the following files: