SRB2/src/hardware/hw_md2.h

50 lines
1.3 KiB
C
Raw Normal View History

2020-01-23 23:12:15 +00:00
// SONIC ROBO BLAST 2
2014-03-15 16:59:03 +00:00
//-----------------------------------------------------------------------------
// Copyright (C) 1998-2000 by DooM Legacy Team.
2020-01-23 23:12:15 +00:00
// Copyright (C) 1999-2020 by Sonic Team Junior.
2014-03-15 16:59:03 +00:00
//
2020-01-23 23:12:15 +00:00
// This program is free software distributed under the
// terms of the GNU General Public License, version 2.
// See the 'LICENSE' file for more details.
2014-03-15 16:59:03 +00:00
//-----------------------------------------------------------------------------
2020-01-23 23:12:15 +00:00
/// \file hw_md2.h
/// \brief 3D Model Handling
2014-03-15 16:59:03 +00:00
/// Inspired from md2.h by Mete Ciragan (mete@swissquake.ch)
#ifndef _HW_MD2_H_
#define _HW_MD2_H_
#include "hw_glob.h"
#include "hw_model.h"
2014-03-15 16:59:03 +00:00
#if defined(_MSC_VER)
#pragma pack()
#endif
typedef struct
{
char filename[32];
float scale;
float offset;
model_t *model;
2014-03-15 16:59:03 +00:00
void *grpatch;
boolean notexturefile; // true if texture file was not found
void *blendgrpatch;
boolean noblendfile; // true if blend texture file was not found
2014-03-15 16:59:03 +00:00
boolean notfound;
INT32 skin;
boolean error;
2014-03-15 16:59:03 +00:00
} md2_t;
extern md2_t md2_models[NUMSPRITES];
extern md2_t md2_playermodels[MAXSKINS];
2019-11-05 13:28:19 +00:00
void HWR_InitModels(void);
void HWR_AddPlayerModel(INT32 skin);
void HWR_AddSpriteModel(size_t spritenum);
2020-07-06 04:15:08 +00:00
boolean HWR_DrawModel(gl_vissprite_t *spr);
2014-03-15 16:59:03 +00:00
2020-02-15 15:40:41 +00:00
#define PLAYERMODELPREFIX "PLAYER"
2020-02-12 02:54:39 +00:00
2014-03-15 16:59:03 +00:00
#endif // _HW_MD2_H_