#include <PPMFrameBuffer.h>
Inherits FrameBuffer.
This encapsulation of a FrameBuffer writes a PPM file.
◆ PPMFrameBuffer()
PPMFrameBuffer::PPMFrameBuffer |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Explicit Value Constructor.
- Parameters
-
◆ ~PPMFrameBuffer()
PPMFrameBuffer::~PPMFrameBuffer |
( |
| ) |
|
◆ clear()
void PPMFrameBuffer::clear |
( |
const Color & |
color | ) |
|
|
virtual |
◆ getHeight()
int PPMFrameBuffer::getHeight |
( |
| ) |
const |
|
virtual |
◆ getWidth()
int PPMFrameBuffer::getWidth |
( |
| ) |
const |
|
virtual |
◆ setPixel()
void PPMFrameBuffer::setPixel |
( |
int |
x, |
|
|
int |
y, |
|
|
const Color & |
color |
|
) |
| |
|
virtual |
Set a particular pixel to a particular color.
- Parameters
-
x | The horizontal coordinate of the pixel |
y | The vertical coordinate of the pixel |
color | The Color |
Implements FrameBuffer.
◆ show()
void PPMFrameBuffer::show |
( |
| ) |
|
|
virtual |
◆ pixel
Color** PPMFrameBuffer::pixel |
|
private |
The array of arrays of Color objects.
The documentation for this class was generated from the following files: