#include <md2.h>
Inheritance diagram for lilith3d::MD2Resource:

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. | |
| bool lilith3d::MD2Resource::Load | ( | const std::string & | filename, | |
| int | type | |||
| ) |
Load a mesh - normally used to load a weapon mesh.
| filename | Name of the MD2 file to load | |
| type | SPRITE or WEAPON |
1.5.1-p1