CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GraphicsState Struct Referencefinal

A structure that represents a snapshot of the graphics context state. More...

#include <CeresEngine/Graphics/GraphicsCommandBuffer.hpp>

Public Attributes

AffineTransform transform
 A 2D transformation matrix that transforms a point from the view coordinate space into the window coordinate space.
 
Optional< GraphicsClipStateclipState
 Describes how and where the renderer should clip draw commands from views.
 

Friends

bool operator== (const GraphicsState &lhs, const GraphicsState &rhs) noexcept
 Compares the GraphicsState for equality.
 
bool operator!= (const GraphicsState &lhs, const GraphicsState &rhs) noexcept
 Compares the GraphicsState for inequality.
 

Detailed Description

A structure that represents a snapshot of the graphics context state.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const GraphicsState lhs,
const GraphicsState rhs 
)
friend

Compares the GraphicsState for inequality.

See also
operator==

◆ operator==

bool operator== ( const GraphicsState lhs,
const GraphicsState rhs 
)
friend

Compares the GraphicsState for equality.

Two states are considered equal if they both yield the same result when rendering.

Member Data Documentation

◆ clipState

Optional<GraphicsClipState> CeresEngine::GraphicsState::clipState

Describes how and where the renderer should clip draw commands from views.

If empty, no clipping should be performed.

◆ transform

AffineTransform CeresEngine::GraphicsState::transform

A 2D transformation matrix that transforms a point from the view coordinate space into the window coordinate space.

It might also include additional transforms added by the user.


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