Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::GraphicsAPI::ClearColor Union Reference

#include <Formats.hpp>

Public Member Functions

 ClearColor (float *v)
 
 ClearColor (int32_t *v)
 
 ClearColor (uint32_t *v)
 
 ClearColor (float r, float g, float b, float a)
 
 ClearColor (int32_t r, int32_t g, int32_t b, int32_t a)
 
 ClearColor (uint32_t r, uint32_t g, uint32_t b, uint32_t a)
 
 ClearColor (const ClearColor &other)
 
ClearColoroperator= (const ClearColor &other)
 

Public Attributes

float float32 [4]
 
int32_t int32 [4]
 
uint32_t uint32 [4]
 

Detailed Description

Values to clear an attachment with. Use the unions with the correct data type that represents the attachment, and use each of the 4 members of the array to represent red, green, blue, and alpha respectively.


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