#include <video_basic.h>
Public Member Functions | |
NGT_Surface () | |
void | draw (SDL_Surface *surf) |
Draws the surface into the specified (*surf) SDL Surface. | |
void | free () |
Frees memory used by the object. | |
int | LoadIMG (char *filename) |
Load an image specified by the 'filename' argument. | |
Public Attributes | |
int | x |
'x' coordinate of the surface. | |
int | y |
'y' coordinate of the surface. | |
SDL_Surface * | surface |
The base surface of the class. |
This class provides basic functions and objects to manage and draw surfaces.
Definition at line 21 of file video_basic.h.
|
Definition at line 33 of file video_basic.h. |
|
Draws the surface into the specified (*surf) SDL Surface.
Definition at line 13 of file video_basic.cpp. Referenced by NGT_Font::draw(). |
|
Frees memory used by the object.
Definition at line 37 of file video_basic.h. References surface. Referenced by NGT_Font::draw(). |
|
Load an image specified by the 'filename' argument.
Definition at line 23 of file video_basic.cpp. References surface. |
|
The base surface of the class.
Definition at line 28 of file video_basic.h. Referenced by NGT_Font::draw(), draw(), free(), and LoadIMG(). |
|
'x' coordinate of the surface.
Definition at line 24 of file video_basic.h. Referenced by NGT_Font::draw(), and draw(). |
|
'y' coordinate of the surface.
Definition at line 26 of file video_basic.h. Referenced by NGT_Font::draw(), and draw(). |