TinyRaytracer 0.1
A simple C++ raytracer
Loading...
Searching...
No Matches
Public Attributes | List of all members
pixel_t Union Reference

#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
 
}; 
 

Detailed Description

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


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