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

#include <CeresEngine/Graphics/GraphicsCommandBuffer.hpp>

Public Member Functions

 TextureGraphicsCommand ()=default
 
 TextureGraphicsCommand (const TextureGraphicsCommand &)=default
 
TextureGraphicsCommandoperator= (const TextureGraphicsCommand &)=default
 
 TextureGraphicsCommand (TextureGraphicsCommand &&) noexcept=default
 
TextureGraphicsCommandoperator= (TextureGraphicsCommand &&) noexcept=default
 
 ~TextureGraphicsCommand ()=default
 
template<typename Allocator >
 TextureGraphicsCommand (std::allocator_arg_t, const Allocator &allocator)
 
 TextureGraphicsCommand (AnyAllocatorReference allocator)
 
template<typename Allocator >
 TextureGraphicsCommand (std::allocator_arg_t, const Allocator &allocator, const TextureGraphicsCommand &other)
 
 TextureGraphicsCommand (const TextureGraphicsCommand &other, AnyAllocatorReference allocator)
 

Public Attributes

TexturePtr texture
 The texture to be copied into the view render area.
 
Rect2 source = {0.0, 0.0, 1.0, 1.0}
 The area of the source texture to be blit.
 
Rect2 target = {0.0, 0.0, 1.0, 1.0}
 The area of the target texture to be blit over.
 
Color tintColor = Color::white
 A tint color to be applied to the blit texture.
 

Constructor & Destructor Documentation

◆ TextureGraphicsCommand() [1/7]

CeresEngine::TextureGraphicsCommand::TextureGraphicsCommand ( )
default

◆ TextureGraphicsCommand() [2/7]

CeresEngine::TextureGraphicsCommand::TextureGraphicsCommand ( const TextureGraphicsCommand )
default

◆ TextureGraphicsCommand() [3/7]

CeresEngine::TextureGraphicsCommand::TextureGraphicsCommand ( TextureGraphicsCommand &&  )
defaultnoexcept

◆ ~TextureGraphicsCommand()

CeresEngine::TextureGraphicsCommand::~TextureGraphicsCommand ( )
default

◆ TextureGraphicsCommand() [4/7]

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

◆ TextureGraphicsCommand() [5/7]

CeresEngine::TextureGraphicsCommand::TextureGraphicsCommand ( AnyAllocatorReference  allocator)
inlineexplicit

◆ TextureGraphicsCommand() [6/7]

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

◆ TextureGraphicsCommand() [7/7]

CeresEngine::TextureGraphicsCommand::TextureGraphicsCommand ( const TextureGraphicsCommand other,
AnyAllocatorReference  allocator 
)
inlineexplicit

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ source

Rect2 CeresEngine::TextureGraphicsCommand::source = {0.0, 0.0, 1.0, 1.0}

The area of the source texture to be blit.

This will be used when constructing the UV coordinates for to sample the texture with.

◆ target

Rect2 CeresEngine::TextureGraphicsCommand::target = {0.0, 0.0, 1.0, 1.0}

The area of the target texture to be blit over.

This will be used to determine the viewport area to be rendered.

◆ texture

TexturePtr CeresEngine::TextureGraphicsCommand::texture

The texture to be copied into the view render area.

◆ tintColor

Color CeresEngine::TextureGraphicsCommand::tintColor = Color::white

A tint color to be applied to the blit texture.

By default, white which means no tint.


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