HDK
|
A simple class that allows for concurrent writes to pixels in an image, background initialization of the image, and PPM file output. More...
#include <RayTracer.h>
Classes | |
struct | RGBA |
Floating-point RGBA components in the range [0, 1]. More... | |
Public Member Functions | |
Film (size_t width, size_t height) | |
Film (size_t width, size_t height, const RGBA &bg) | |
const RGBA & | pixel (size_t w, size_t h) const |
RGBA & | pixel (size_t w, size_t h) |
void | fill (const RGBA &rgb=RGBA(0)) |
void | checkerboard (const RGBA &c1=RGBA(0.3f), const RGBA &c2=RGBA(0.6f), size_t size=32) |
template<typename Type = unsigned char> | |
std::unique_ptr< Type[]> | convertToBitBuffer (const bool alpha=true) const |
void | savePPM (const std::string &fileName) |
size_t | width () const |
size_t | height () const |
size_t | numPixels () const |
const RGBA * | pixels () const |
A simple class that allows for concurrent writes to pixels in an image, background initialization of the image, and PPM file output.
Definition at line 225 of file RayTracer.h.
|
inline |
Definition at line 264 of file RayTracer.h.
|
inline |
Definition at line 268 of file RayTracer.h.
|
inline |
Definition at line 289 of file RayTracer.h.
|
inline |
Definition at line 300 of file RayTracer.h.
Definition at line 288 of file RayTracer.h.
|
inline |
Definition at line 337 of file RayTracer.h.
|
inline |
Definition at line 338 of file RayTracer.h.
Definition at line 274 of file RayTracer.h.
|
inline |
Definition at line 281 of file RayTracer.h.
Definition at line 339 of file RayTracer.h.
|
inline |
Definition at line 318 of file RayTracer.h.
|
inline |
Definition at line 336 of file RayTracer.h.