Renderer. More...
Collaboration diagram for cpe::render_engine:Public Member Functions | |
| render_engine (image_zbuffer &im, const scene &scene_parameter, const shading &shading_parameter) | |
| render engine contains an image (reference), parameter of the scene and parameter of shading More... | |
| void | render (const vertex &v0, const vertex &v1, const vertex &v2) |
| render a triangle on the screen More... | |
| void | render (const mesh &m) |
| render a mesh on the screen More... | |
Private Attributes | |
| image_zbuffer & | internal_image |
| internal storage of the image More... | |
| scene | internal_scene |
| internal storage of the scene More... | |
| shading | internal_shading |
| internal storage of the shading More... | |
Renderer.
| cpe::render_engine::render_engine | ( | image_zbuffer & | im, |
| const scene & | scene_parameter, | ||
| const shading & | shading_parameter | ||
| ) |
render engine contains an image (reference), parameter of the scene and parameter of shading
render a triangle on the screen
Referenced by render().
| void cpe::render_engine::render | ( | const mesh & | m | ) |
render a mesh on the screen
References cpe::mesh::color(), cpe::mesh::connectivity(), cpe::mesh::normal(), cpe::mesh::number_of_triangle(), render(), and cpe::mesh::vertex().
Here is the call graph for this function:
|
private |
internal storage of the image
|
private |
internal storage of the scene
|
private |
internal storage of the shading