$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

Mng Class Reference

#include <video.h>

List of all members.


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.

Constructor & Destructor Documentation

Mng::Mng (  ) 

Mng::~Mng (  ) 


Member Function Documentation

int Mng::Load ( const std::string &  name  ) 

Load a MNG

Parameters:
name Name of the MNG file

void Mng::Reset (  ) 

Reset a MNG

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

Display a MNG

Parameters:
x X coordinate
y Y coordinate


Member Data Documentation

std::string Mng::name

FILE* Mng::fd

mng_handle Mng::handle

SDL_Surface* Mng::surface

unsigned char* Mng::buffer

unsigned long Mng::ticks

Width of the texture.

Height of the texture.


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