RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields
Hydrax::Image::Pixel Struct Reference

Pixel structure. More...

#include <Image.h>

Public Member Functions

 Pixel ()
 Default constructor. More...
 
 Pixel (const float &v)
 Constructor. More...
 
 Pixel (const float &r, const float &g, const float &b)
 Constructor. More...
 
 Pixel (const float &r, const float &g, const float &b, const float &a)
 Constructor. More...
 

Data Fields

float red
 Pixel values (RGBA) More...
 
float green
 
float blue
 
float alpha
 

Detailed Description

Pixel structure.

Definition at line 68 of file Image.h.

Constructor & Destructor Documentation

◆ Pixel() [1/4]

Hydrax::Image::Pixel::Pixel ( )
inline

Default constructor.

Definition at line 72 of file Image.h.

◆ Pixel() [2/4]

Hydrax::Image::Pixel::Pixel ( const float &  v)
inline

Constructor.

Parameters
vRGBA Value

Definition at line 83 of file Image.h.

◆ Pixel() [3/4]

Hydrax::Image::Pixel::Pixel ( const float &  r,
const float &  g,
const float &  b 
)
inline

Constructor.

Parameters
rRed value
gGreen value
bBlue value
Remarks
Alpha component = 0

Definition at line 97 of file Image.h.

◆ Pixel() [4/4]

Hydrax::Image::Pixel::Pixel ( const float &  r,
const float &  g,
const float &  b,
const float &  a 
)
inline

Constructor.

Parameters
rRed value
gGreen value
bBlue value
aAlpha value

Definition at line 113 of file Image.h.

Field Documentation

◆ alpha

float Hydrax::Image::Pixel::alpha

Definition at line 128 of file Image.h.

◆ blue

float Hydrax::Image::Pixel::blue

Definition at line 127 of file Image.h.

◆ green

float Hydrax::Image::Pixel::green

Definition at line 126 of file Image.h.

◆ red

float Hydrax::Image::Pixel::red

Pixel values (RGBA)

Definition at line 125 of file Image.h.


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