Main Page | Namespace List | Class List | File List | Class Members | File Members

NGT_Surface Class Reference

NGT Surface class. More...

#include <video_basic.h>

List of all members.

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.


Detailed Description

NGT Surface class.

This class provides basic functions and objects to manage and draw surfaces.

Definition at line 21 of file video_basic.h.


Constructor & Destructor Documentation

NGT_Surface::NGT_Surface  )  [inline]
 

Definition at line 33 of file video_basic.h.


Member Function Documentation

void NGT_Surface::draw SDL_Surface *  surf  ) 
 

Draws the surface into the specified (*surf) SDL Surface.

Definition at line 13 of file video_basic.cpp.

References surface, x, and y.

Referenced by NGT_Font::draw().

void NGT_Surface::free  )  [inline]
 

Frees memory used by the object.

Definition at line 37 of file video_basic.h.

References surface.

Referenced by NGT_Font::draw().

int NGT_Surface::LoadIMG char *  filename  ) 
 

Load an image specified by the 'filename' argument.

Definition at line 23 of file video_basic.cpp.

References surface.


Member Data Documentation

SDL_Surface* NGT_Surface::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().

int NGT_Surface::x
 

'x' coordinate of the surface.

Definition at line 24 of file video_basic.h.

Referenced by NGT_Font::draw(), and draw().

int NGT_Surface::y
 

'y' coordinate of the surface.

Definition at line 26 of file video_basic.h.

Referenced by NGT_Font::draw(), and draw().


The documentation for this class was generated from the following files:
Generated on Sat Feb 4 10:15:16 2006 for Neopntec Gaming Toolkit - API reference by  doxygen 1.4.4