_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Attributes | List of all members
Mng Class Reference

#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. More...
 
GLuint texture_name
 Height of the texture. More...
 

Constructor & Destructor Documentation

Mng::Mng ( )
Mng::~Mng ( )

Member Function Documentation

void Mng::Draw ( int  x,
int  y 
)

Display a MNG

Parameters
xX coordinate
yY coordinate
int Mng::Load ( const std::string &  name)

Load a MNG

Parameters
nameName of the MNG file
void Mng::Reset ( )

Reset a MNG

Member Data Documentation

unsigned char* Mng::buffer
FILE* Mng::fd
mng_handle Mng::handle
int Mng::iteration
std::string Mng::name
SDL_Surface* Mng::surface
GLfloat Mng::texture_height

Width of the texture.

GLuint Mng::texture_name

Height of the texture.

GLfloat Mng::texture_width
unsigned long Mng::ticks

The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.