RayTracer 1.0
Ray tracing is a technique used to generate realistic digital images by simulating the inverse path of light. Our goal is to create a program able to generate an image from a file describing the scene.
 
Loading...
Searching...
No Matches
Display::Pixel Class Reference

#include <Display.hpp>

Public Member Functions

 Pixel ()
 
 Pixel (int rr, int gg, int bb)
 

Public Attributes

int r
 
int g
 
int b
 

Detailed Description

Definition at line 21 of file Display.hpp.

Constructor & Destructor Documentation

◆ Pixel() [1/2]

Display::Pixel::Pixel ( )
inline

Definition at line 24 of file Display.hpp.

24: r(0), g(0), b(0) {}

References b, g, and r.

◆ Pixel() [2/2]

Display::Pixel::Pixel ( int rr,
int gg,
int bb )
inline

Definition at line 25 of file Display.hpp.

25: r(rr), g(gg), b(bb) {}

References b, g, and r.

Member Data Documentation

◆ b

int Display::Pixel::b

Definition at line 23 of file Display.hpp.

◆ g

int Display::Pixel::g

Definition at line 23 of file Display.hpp.

◆ r

int Display::Pixel::r

Definition at line 23 of file Display.hpp.


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