#include <SDLFrameBuffer.h>
Inherits FrameBuffer.
This encapsulation of a FrameBuffer is built on SDL.
◆ SDLFrameBuffer()
| SDLFrameBuffer::SDLFrameBuffer |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Explicit Value Constructor.
- Parameters
-
◆ ~SDLFrameBuffer()
| SDLFrameBuffer::~SDLFrameBuffer |
( |
| ) |
|
◆ clear()
| void SDLFrameBuffer::clear |
( |
const Color & |
color | ) |
|
|
virtual |
◆ getHeight()
| int SDLFrameBuffer::getHeight |
( |
| ) |
const |
|
virtual |
◆ getWidth()
| int SDLFrameBuffer::getWidth |
( |
| ) |
const |
|
virtual |
◆ setKeyboardHandler()
| void SDLFrameBuffer::setKeyboardHandler |
( |
void(*)(const SDL_Event &event) |
handler | ) |
|
|
virtual |
Set the keyboard handler to use.
NOTE: While this method must be public (because of the design of SDL) it is not part of the FrameBuffer API.
- Parameters
-
| handler | The keyboard handler |
◆ setPixel()
| void SDLFrameBuffer::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 SDLFrameBuffer::show |
( |
| ) |
|
|
virtual |
◆ keepRunning
| bool SDLFrameBuffer::keepRunning |
|
private |
◆ keyboardHandler
| void(* SDLFrameBuffer::keyboardHandler) (const SDL_Event &event) |
|
private |
The keyboard handler.
- Parameters
-
| event | The event to handle. |
◆ renderer
| SDL_Renderer* SDLFrameBuffer::renderer |
|
private |
◆ window
| SDL_Window* SDLFrameBuffer::window |
|
private |
The documentation for this class was generated from the following files: