V-Gears 0
Free Final Fantasy VII engine.
Surface.h File Reference
#include <Ogre.h>
Include dependency graph for Surface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Surface
 A surface description. More...
 

Functions

SurfaceCreateSurface (const int width, const int height)
 Creates an empty surface. More...
 
void CopyToSurface (Surface *dest, const int x_d, const int y_d, Surface *src)
 Copies one surface into another. More...
 
SurfaceCreateSubSurface (const int x, const int y, const int width, const int height, Surface *surface)
 Creates a partial surface from a surface. More...
 
SurfaceCreateSurfaceFrom (const int width, const int height, unsigned char *pixels)
 Creates a surface from a list of pixels. More...
 

Function Documentation

◆ CopyToSurface()

void CopyToSurface ( Surface dest,
const int  x_d,
const int  y_d,
Surface src 
)

Copies one surface into another.

It can copy just sections of surfaces, but always from the top left corner.

Parameters
[out]destThe target surface.
[in]x_dNumber of columns to copy.
[in]y_dNumber of rows to copy.
[in]srcThe source surface.

◆ CreateSubSurface()

Surface * CreateSubSurface ( const int  x,
const int  y,
const int  width,
const int  height,
Surface surface 
)

Creates a partial surface from a surface.

Parameters
[in]xStarting column to copy from the original surface.
[in]yStarting row to copy from the original surface.
[in]widthNumber of columns to copy.
[in]heightNumber of rows to copy.
[in]surfaceThe original surface.
Returns
the resulting subsurface.

◆ CreateSurface()

Surface * CreateSurface ( const int  width,
const int  height 
)

Creates an empty surface.

Parameters
[in]widthThe width for the new surface.
[in]heightThe height for the new surface.

◆ CreateSurfaceFrom()

Surface * CreateSurfaceFrom ( const int  width,
const int  height,
unsigned char *  pixels 
)

Creates a surface from a list of pixels.

Parameters
[in]widthThe width of the surface.
[in]heightThe height of the surface.
[in]pixelsThe list of pixels for the new surface. If there are not enough pixels to cover the entire surface, the rest of pixels will be NULL.
Returns
The new surface.