lilith3d::MD2Resource Class Reference

#include <md2.h>

Inheritance diagram for lilith3d::MD2Resource:

lilith3d::AnimatedResource List of all members.

Detailed Description

An MD2 resource is a simple AnimateResource loaded from a quake MD2 file. While very "old school" even in 2006, there are lots of MD2 models, and it is an easy format to work with.


Public Member Functions

bool Load (const std::string &filename, int type)
void SetTexture (const Texture *tex, int type)
 Set the skin texture to either the sprite or the weapon.
void SetMelee (bool _melee)
 Resources are assumed to be shooters, but call this if it has a melee weapon.
bool Melee () const
 Return true if this resource uses melee attacks, else it is a shooter.
bool Ranged () const
 Return true if this resource uses range attacks.


Member Function Documentation

bool lilith3d::MD2Resource::Load ( const std::string &  filename,
int  type 
)

Load a mesh - normally used to load a weapon mesh.

Parameters:
filename Name of the MD2 file to load
type SPRITE or WEAPON


The documentation for this class was generated from the following file:
Generated on Fri Mar 23 19:36:27 2007 for Lilith3D by  doxygen 1.5.1-p1