V-Gears 0
Free Final Fantasy VII engine.
Surface Struct Reference

A surface description. More...

#include <Surface.h>

Public Member Functions

 Surface ()
 Initializator. More...
 
 Surface (const Surface &copy)
 Initializator. More...
 
Surfaceoperator= (const Surface &copy)
 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Surface() [1/2]

Surface::Surface ( )

Initializator.

Initializes an empty surface.

◆ Surface() [2/2]

Surface::Surface ( const Surface copy)

Initializator.

It copies another surface.

◆ ~Surface()

Surface::~Surface ( )

Destructor.

Member Function Documentation

◆ operator=()

Surface & Surface::operator= ( const Surface copy)

Assignment operation.

It copies another surface.

Member Data Documentation

◆ height

int Surface::height

The surface height.

◆ pixels

std::vector<unsigned char> Surface::pixels

The list of pixels in the surface.

◆ width

int Surface::width

The surface width.


The documentation for this struct was generated from the following files: