CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ShaderCompiler::ConsoleManip Namespace Reference

Classes

struct  ColorFlags
 Output stream color flags enumeration. More...
 
class  ScopedColor
 Helper class for scoped color stack operations. More...
 

Functions

void enable (bool enable)
 Enables or disables console manipulation. By default enabled.
 
bool isEnabled ()
 Returns true if console manipulation is enabled.
 
void pushColor (long front, std::ostream &stream=std::cout)
 Pushes the specified front color flags onto the stack.
 
void pushColor (long front, long back, std::ostream &stream=std::cout)
 Pushes the specified front and back color flags onto the stack.
 
void popColor (std::ostream &stream=std::cout)
 Pops the previous front and back color flags from the stack.
 

Function Documentation

◆ enable()

void CeresEngine::ShaderCompiler::ConsoleManip::enable ( bool  enable)

Enables or disables console manipulation. By default enabled.

◆ isEnabled()

bool CeresEngine::ShaderCompiler::ConsoleManip::isEnabled ( )

Returns true if console manipulation is enabled.

◆ popColor()

void CeresEngine::ShaderCompiler::ConsoleManip::popColor ( std::ostream &  stream = std::cout)

Pops the previous front and back color flags from the stack.

◆ pushColor() [1/2]

void CeresEngine::ShaderCompiler::ConsoleManip::pushColor ( long  front,
long  back,
std::ostream &  stream = std::cout 
)

Pushes the specified front and back color flags onto the stack.

Parameters
[in]frontSpecifies the flags for the front color. This can be a bitwise OR combination of the flags declared in 'ColorFlags'.
[in]backSpecifies the flags for the background color. This can be a bitwise OR combination of the flags declared in 'ColorFlags'.
[in,out]streamSpecifies the output stream whose front color is to be changed. This output stream is only required for Linux and MacOS, since the colors are specified by the streams itself.
See also
ColorFlags

◆ pushColor() [2/2]

void CeresEngine::ShaderCompiler::ConsoleManip::pushColor ( long  front,
std::ostream &  stream = std::cout 
)

Pushes the specified front color flags onto the stack.

Parameters
[in]frontSpecifies the flags for the front color. This can be a bitwise OR combination of the flags declared in 'ColorFlags'.
[in,out]streamSpecifies the output stream whose front color is to be changed. This output stream is only required for Linux and MacOS, since the colors are specified by the streams itself.
See also
ColorFlags