25#include "eos/core/Image.hpp"
26#include "eos/core/Mesh.hpp"
28#include "eos/render/VertexShader.hpp"
29#include "eos/render/FragmentShader.hpp"
53 const Eigen::Matrix4f& projection_matrix,
int viewport_width,
int viewport_height,
54 bool enable_backface_culling =
false,
bool enable_near_clipping =
true,
55 bool enable_far_clipping =
true)
59 software_renderer.enable_backface_culling = enable_backface_culling;
60 software_renderer.enable_near_clipping = enable_near_clipping;
61 software_renderer.rasterizer.enable_far_clipping = enable_far_clipping;
63 return software_renderer.
render(mesh, model_view_matrix, projection_matrix);
85 const Eigen::Matrix4f& projection_matrix,
int viewport_width,
int viewport_height,
86 Texture texture,
bool enable_backface_culling =
false,
bool enable_near_clipping =
true,
87 bool enable_far_clipping =
true)
91 software_renderer.enable_backface_culling = enable_backface_culling;
92 software_renderer.enable_near_clipping = enable_near_clipping;
93 software_renderer.rasterizer.enable_far_clipping = enable_far_clipping;
95 return software_renderer.
render(mesh, model_view_matrix, projection_matrix, texture);
This file implements a software renderer, in the spirit of OpenGL conventions and vertex and fragment...
Class to represent images.
Definition: Image.hpp:44
X.
Definition: SoftwareRenderer.hpp:71
core::Image4u render(const core::Mesh &mesh, const Eigen::Matrix4< T > &model_view_matrix, const Eigen::Matrix4< T > &projection_matrix, const cpp17::optional< Texture > &texture=cpp17::nullopt)
Todo.
Definition: SoftwareRenderer.hpp:98
Represents a texture for rendering.
Definition: Texture.hpp:64
core::Image4u render(const core::Mesh &mesh, const Eigen::Matrix4f &model_view_matrix, const Eigen::Matrix4f &projection_matrix, int viewport_width, int viewport_height, bool enable_backface_culling=false, bool enable_near_clipping=true, bool enable_far_clipping=true)
Definition: render.hpp:52
Namespace containing all of eos's 3D model fitting functionality.
This class represents a 3D mesh consisting of vertices, vertex colour information and texture coordin...
Definition: Mesh.hpp:45