|
eos 1.4.0
|
Todo. More...
#include <Rasterizer.hpp>
Public Member Functions | |
| Rasterizer (int viewport_width, int viewport_height) | |
| template<typename T > | |
| void | raster_triangle (const detail::Vertex< T > &point_a, const detail::Vertex< T > &point_b, const detail::Vertex< T > &point_c, const cpp17::optional< Texture > &texture) |
| Todo. | |
| void | clear_buffers () |
| Resets the colour and depth buffers. | |
Public Attributes | |
| bool | enable_depth_test = true |
| bool | perspective_correct_barycentric_weights = true |
| bool | enable_far_clipping = true |
| int | viewport_width |
| int | viewport_height |
| eos::core::Image4u | colorbuffer |
| eos::core::Image1d | depthbuffer |
Todo.
X.
| FragmentShaderType | X. |
|
inline |
Resets the colour and depth buffers.
Sets the colour buffer to all white with zeros for the alpha channel, and the depth buffer to std::numeric_limits<double>::max().
If multiple images are rendered/rasterised, then this function can be called before rendering a new image, to clear the colour and depth buffers.
|
inline |
Todo.
X
| [in] | vertex | X. @ return X. |