$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <video.h>
Public Member Functions | |
mng.cpp - The mng graphic file loader. | |
Mng () | |
~Mng () | |
int | Load (const std::string &name) |
void | Reset () |
void | Draw (int x, int y) |
Public Attributes | |
std::string | name |
FILE * | fd |
mng_handle | handle |
SDL_Surface * | surface |
unsigned char * | buffer |
unsigned long | ticks |
int | iteration |
GLfloat | texture_width |
GLfloat | texture_height |
Width of the texture. | |
GLuint | texture_name |
Height of the texture. |
Mng::Mng | ( | ) |
Mng::~Mng | ( | ) |
int Mng::Load | ( | const std::string & | name | ) |
Load a MNG
name | Name of the MNG file |
void Mng::Reset | ( | ) |
Reset a MNG
void Mng::Draw | ( | int | x, | |
int | y | |||
) |
Display a MNG
x | X coordinate | |
y | Y coordinate |
std::string Mng::name |
FILE* Mng::fd |
mng_handle Mng::handle |
SDL_Surface* Mng::surface |
unsigned char* Mng::buffer |
unsigned long Mng::ticks |
int Mng::iteration |
GLfloat Mng::texture_width |
GLfloat Mng::texture_height |
Width of the texture.
GLuint Mng::texture_name |
Height of the texture.