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

#include <CeresEngine/Graphics/GraphicsCommandBuffer.hpp>

Public Member Functions

 GraphicsCommand ()=default
 
 GraphicsCommand (const GraphicsState &graphicsState, TextureGraphicsCommand &&command)
 
 GraphicsCommand (const GraphicsState &graphicsState, ShapeGraphicsCommand &&command)
 
 GraphicsCommand (const GraphicsState &graphicsState, TextGraphicsCommand &&command)
 
 GraphicsCommand (const GraphicsState &graphicsState, ClearGraphicsCommand &&command)
 
 GraphicsCommand (const GraphicsState &graphicsState, RawGraphicsCommand &&command)
 
 GraphicsCommand (const GraphicsCommand &)=default
 
GraphicsCommandoperator= (const GraphicsCommand &)=default
 
 GraphicsCommand (GraphicsCommand &&) noexcept=default
 
GraphicsCommandoperator= (GraphicsCommand &&) noexcept=default
 
 ~GraphicsCommand ()=default
 
template<typename Allocator >
 GraphicsCommand (std::allocator_arg_t, const Allocator &allocator)
 
template<typename Allocator >
 GraphicsCommand (std::allocator_arg_t, const Allocator &allocator, const GraphicsState &graphicsState, TextureGraphicsCommand &&command)
 
template<typename Allocator >
 GraphicsCommand (std::allocator_arg_t, const Allocator &allocator, const GraphicsState &graphicsState, ShapeGraphicsCommand &&command)
 
template<typename Allocator >
 GraphicsCommand (std::allocator_arg_t, const Allocator &allocator, const GraphicsState &graphicsState, TextGraphicsCommand &&command)
 
template<typename Allocator >
 GraphicsCommand (std::allocator_arg_t, const Allocator &allocator, const GraphicsState &graphicsState, ClearGraphicsCommand &&command)
 
template<typename Allocator >
 GraphicsCommand (std::allocator_arg_t, const Allocator &allocator, const GraphicsState &graphicsState, RawGraphicsCommand &&command)
 
template<typename Allocator >
 GraphicsCommand (std::allocator_arg_t, const Allocator &allocator, const GraphicsCommand &other)
 
 GraphicsCommand (const GraphicsCommand &other, AnyAllocatorReference allocator)
 
template<typename T >
bool is () const noexcept
 
template<typename T >
Tas ()
 
template<typename T >
const Tas () const
 
template<typename Visitor >
decltype(autovisit (Visitor &&visitor) const
 

Public Attributes

GraphicsState graphicsState
 Describes the rendering state the moment the command was recorded.
 

Private Types

using Variant = Variant< std::monostate, TextureGraphicsCommand, ShapeGraphicsCommand, TextGraphicsCommand, ClearGraphicsCommand, RawGraphicsCommand >
 

Private Attributes

Variant mData
 

Friends

class GraphicsCommandBuffer
 

Member Typedef Documentation

◆ Variant

Constructor & Destructor Documentation

◆ GraphicsCommand() [1/16]

CeresEngine::GraphicsCommand::GraphicsCommand ( )
default

◆ GraphicsCommand() [2/16]

CeresEngine::GraphicsCommand::GraphicsCommand ( const GraphicsState graphicsState,
TextureGraphicsCommand &&  command 
)
inlineexplicit

◆ GraphicsCommand() [3/16]

CeresEngine::GraphicsCommand::GraphicsCommand ( const GraphicsState graphicsState,
ShapeGraphicsCommand &&  command 
)
inlineexplicit

◆ GraphicsCommand() [4/16]

CeresEngine::GraphicsCommand::GraphicsCommand ( const GraphicsState graphicsState,
TextGraphicsCommand &&  command 
)
inlineexplicit

◆ GraphicsCommand() [5/16]

CeresEngine::GraphicsCommand::GraphicsCommand ( const GraphicsState graphicsState,
ClearGraphicsCommand &&  command 
)
inlineexplicit

◆ GraphicsCommand() [6/16]

CeresEngine::GraphicsCommand::GraphicsCommand ( const GraphicsState graphicsState,
RawGraphicsCommand &&  command 
)
inlineexplicit

◆ GraphicsCommand() [7/16]

CeresEngine::GraphicsCommand::GraphicsCommand ( const GraphicsCommand )
default

◆ GraphicsCommand() [8/16]

CeresEngine::GraphicsCommand::GraphicsCommand ( GraphicsCommand &&  )
defaultnoexcept

◆ ~GraphicsCommand()

CeresEngine::GraphicsCommand::~GraphicsCommand ( )
default

◆ GraphicsCommand() [9/16]

template<typename Allocator >
CeresEngine::GraphicsCommand::GraphicsCommand ( std::allocator_arg_t  ,
const Allocator &  allocator 
)
inlineexplicit

◆ GraphicsCommand() [10/16]

template<typename Allocator >
CeresEngine::GraphicsCommand::GraphicsCommand ( std::allocator_arg_t  ,
const Allocator &  allocator,
const GraphicsState graphicsState,
TextureGraphicsCommand &&  command 
)
inlineexplicit

◆ GraphicsCommand() [11/16]

template<typename Allocator >
CeresEngine::GraphicsCommand::GraphicsCommand ( std::allocator_arg_t  ,
const Allocator &  allocator,
const GraphicsState graphicsState,
ShapeGraphicsCommand &&  command 
)
inlineexplicit

◆ GraphicsCommand() [12/16]

template<typename Allocator >
CeresEngine::GraphicsCommand::GraphicsCommand ( std::allocator_arg_t  ,
const Allocator &  allocator,
const GraphicsState graphicsState,
TextGraphicsCommand &&  command 
)
inlineexplicit

◆ GraphicsCommand() [13/16]

template<typename Allocator >
CeresEngine::GraphicsCommand::GraphicsCommand ( std::allocator_arg_t  ,
const Allocator &  allocator,
const GraphicsState graphicsState,
ClearGraphicsCommand &&  command 
)
inlineexplicit

◆ GraphicsCommand() [14/16]

template<typename Allocator >
CeresEngine::GraphicsCommand::GraphicsCommand ( std::allocator_arg_t  ,
const Allocator &  allocator,
const GraphicsState graphicsState,
RawGraphicsCommand &&  command 
)
inlineexplicit

◆ GraphicsCommand() [15/16]

template<typename Allocator >
CeresEngine::GraphicsCommand::GraphicsCommand ( std::allocator_arg_t  ,
const Allocator &  allocator,
const GraphicsCommand other 
)
inline

◆ GraphicsCommand() [16/16]

CeresEngine::GraphicsCommand::GraphicsCommand ( const GraphicsCommand other,
AnyAllocatorReference  allocator 
)
inline

Member Function Documentation

◆ as() [1/2]

template<typename T >
T & CeresEngine::GraphicsCommand::as ( )
inline

◆ as() [2/2]

template<typename T >
const T & CeresEngine::GraphicsCommand::as ( ) const
inline

◆ is()

template<typename T >
bool CeresEngine::GraphicsCommand::is ( ) const
inlinenoexcept

◆ operator=() [1/2]

GraphicsCommand & CeresEngine::GraphicsCommand::operator= ( const GraphicsCommand )
default

◆ operator=() [2/2]

GraphicsCommand & CeresEngine::GraphicsCommand::operator= ( GraphicsCommand &&  )
defaultnoexcept

◆ visit()

template<typename Visitor >
decltype(auto) CeresEngine::GraphicsCommand::visit ( Visitor &&  visitor) const
inline

Friends And Related Symbol Documentation

◆ GraphicsCommandBuffer

Member Data Documentation

◆ graphicsState

GraphicsState CeresEngine::GraphicsCommand::graphicsState

Describes the rendering state the moment the command was recorded.

◆ mData

Variant CeresEngine::GraphicsCommand::mData
private

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