![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
A surface description. More...
#include <Surface.h>
Public Member Functions | |
Surface () | |
Initializator. More... | |
Surface (const Surface ©) | |
Initializator. More... | |
Surface & | operator= (const Surface ©) |
Assignment operation. More... | |
~Surface () | |
Destructor. More... | |
Public Attributes | |
std::vector< unsigned char > | pixels |
The list of pixels in the surface. More... | |
int | width |
The surface width. More... | |
int | height |
The surface height. More... | |
A surface description.
A surface is a plane of pixels. Each pixels doesn't have it's own coordinates, but are sequentially added and their coordinates can be calculated knowing the surface width.
Surface::Surface | ( | ) |
Initializator.
Initializes an empty surface.
Surface::Surface | ( | const Surface & | copy | ) |
Initializator.
It copies another surface.
Surface::~Surface | ( | ) |
Destructor.
Assignment operation.
It copies another surface.
int Surface::height |
The surface height.
std::vector<unsigned char> Surface::pixels |
The list of pixels in the surface.
int Surface::width |
The surface width.