TinyRaytracer 0.1
A simple C++ raytracer
|
#include <libpng.h>
Public Attributes | |
uint8_t | p [4] |
struct { | |
uint8_t r | |
uint8_t g | |
uint8_t b | |
uint8_t a | |
}; | |
struct { | |
uint8_t red | |
uint8_t green | |
uint8_t blue | |
uint8_t alpha | |
}; | |
A miminal use of libpng for UIUC's CS418 class.
See uselibpng.c for implementation notes RGBA pixel with several ways of looking at it:
pixel.p[0] is the first (red) channel of the pixel pixel.red is the red (first) channel of the pixel pixel.r is the red (first) channel of the pixel