SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::render::IRasterizer Class Referenceabstract

Represents the rasterizer stage of the graphics pipeline. More...

#include <Rasterizer.h>

Inheritance diagram for spark::render::IRasterizer:
spark::render::Rasterizer spark::render::vk::VulkanRasterizer

Public Member Functions

virtual PolygonMode polygonMode () const noexcept=0
 Gets the polygon mode of the rasterizer state.
 
virtual CullMode cullMode () const noexcept=0
 Gets the cull mode of the rasterizer state.
 
virtual CullOrder cullOrder () const noexcept=0
 Gets the cull order of the rasterizer state.
 
virtual float lineWidth () const noexcept=0
 Gets the line width of the rasterizer state.
 
virtual const DepthStencilStatedepthStencilState () const noexcept=0
 Gets the depth/stencil state of the rasterizer.
 

Detailed Description

Represents the rasterizer stage of the graphics pipeline.

Member Function Documentation

◆ cullMode()

virtual CullMode spark::render::IRasterizer::cullMode ( ) const
nodiscardpure virtualnoexcept

Gets the cull mode of the rasterizer state.

Returns
The CullMode of the rasterizer state.

Implemented in spark::render::Rasterizer.

◆ cullOrder()

virtual CullOrder spark::render::IRasterizer::cullOrder ( ) const
nodiscardpure virtualnoexcept

Gets the cull order of the rasterizer state.

Returns
The CullOrder of the rasterizer state.

Implemented in spark::render::Rasterizer.

◆ depthStencilState()

virtual const DepthStencilState & spark::render::IRasterizer::depthStencilState ( ) const
nodiscardpure virtualnoexcept

Gets the depth/stencil state of the rasterizer.

Returns
The DepthStencilState of the rasterizer.

Implemented in spark::render::Rasterizer.

◆ lineWidth()

virtual float spark::render::IRasterizer::lineWidth ( ) const
nodiscardpure virtualnoexcept

Gets the line width of the rasterizer state.

Returns
A float value representing the line width of the rasterizer state.
Note
This value is only simulated in Vulkan. Instead of this, use a custom shader.

Implemented in spark::render::Rasterizer.

◆ polygonMode()

virtual PolygonMode spark::render::IRasterizer::polygonMode ( ) const
nodiscardpure virtualnoexcept

Gets the polygon mode of the rasterizer state.

Returns
The PolygonMode of the rasterizer state.

Implemented in spark::render::Rasterizer.