|
Dura2D
v0.1.0
An educational 2D game physics library
|
#include <d2Draw.h>
Public Member Functions | |
| d2Color ()=default | |
| d2Color (float rIn, float gIn, float bIn, float aIn=1.0f) | |
| void | Set (float rIn, float gIn, float bIn, float aIn=1.0f) |
| d2Color | operator* (const float &f) const |
| d2Color & | operator*= (const float &f) |
| d2Color | operator/ (const float &f) const |
| d2Color & | operator/= (const float &f) |
Public Attributes | |
| float | r {} |
| float | g {} |
| float | b {} |
| float | a {1.0f} |
Color for debug drawing. Each value is in the range [0,1].
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| float d2Color::a {1.0f} |
| float d2Color::b {} |
| float d2Color::g {} |
| float d2Color::r {} |