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"
|
2018-12-16 01:57:11 +00:00
|
|
|
#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;
|
2018-12-16 01:57:11 +00:00
|
|
|
model_t *model;
|
2014-03-15 16:59:03 +00:00
|
|
|
void *grpatch;
|
2015-07-26 19:14:47 +00:00
|
|
|
void *blendgrpatch;
|
2014-03-15 16:59:03 +00:00
|
|
|
boolean notfound;
|
|
|
|
INT32 skin;
|
2016-11-03 21:06:23 +00:00
|
|
|
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);
|
2019-12-13 01:53:19 +00:00
|
|
|
boolean HWR_DrawModel(gr_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_
|