eos 1.4.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
eos::render::Rasterizer< FragmentShaderType > Class Template Reference

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
 

Detailed Description

template<typename FragmentShaderType>
class eos::render::Rasterizer< FragmentShaderType >

Todo.

X.

Template Parameters
FragmentShaderTypeX.

Member Function Documentation

◆ clear_buffers()

template<typename FragmentShaderType >
void eos::render::Rasterizer< FragmentShaderType >::clear_buffers ( )
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.

◆ raster_triangle()

template<typename FragmentShaderType >
template<typename T >
void eos::render::Rasterizer< FragmentShaderType >::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 
)
inline

Todo.

X

Parameters
[in]vertexX. @ return X.

The documentation for this class was generated from the following file: