Public Member Functions | Public Attributes | List of all members
b2Color Struct Reference

Color for debug drawing. Each value has the range [0,1]. More...

#include <b2_draw.h>

Public Member Functions

 b2Color ()
 
 b2Color (float rIn, float gIn, float bIn, float aIn=1.0f)
 
void Set (float rIn, float gIn, float bIn, float aIn=1.0f)
 

Public Attributes

float a
 
float b
 
float g
 
float r
 

Detailed Description

Color for debug drawing. Each value has the range [0,1].

Definition at line 30 of file b2_draw.h.

Constructor & Destructor Documentation

◆ b2Color() [1/2]

b2Color::b2Color ( )
inline

Definition at line 32 of file b2_draw.h.

◆ b2Color() [2/2]

b2Color::b2Color ( float  rIn,
float  gIn,
float  bIn,
float  aIn = 1.0f 
)
inline

Definition at line 33 of file b2_draw.h.

Member Function Documentation

◆ Set()

void b2Color::Set ( float  rIn,
float  gIn,
float  bIn,
float  aIn = 1.0f 
)
inline

Definition at line 38 of file b2_draw.h.

Member Data Documentation

◆ a

float b2Color::a

Definition at line 43 of file b2_draw.h.

◆ b

float b2Color::b

Definition at line 43 of file b2_draw.h.

◆ g

float b2Color::g

Definition at line 43 of file b2_draw.h.

◆ r

float b2Color::r

Definition at line 43 of file b2_draw.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22