Kart-Public/src/hardware/hw_md2.h

47 lines
1.1 KiB
C
Raw Normal View History

2019-03-18 01:27:50 +00:00
// SONIC ROBO BLAST 2
2014-03-15 16:59:03 +00:00
//-----------------------------------------------------------------------------
2019-03-18 01:27:50 +00:00
// Copyright (C) 1993-1996 by id Software, Inc.
2014-03-15 16:59:03 +00:00
// Copyright (C) 1998-2000 by DooM Legacy Team.
2019-03-18 01:27:50 +00:00
// Copyright (C) 1999-2019 by Sonic Team Junior.
2014-03-15 16:59:03 +00:00
//
2019-03-18 01:27:50 +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
//-----------------------------------------------------------------------------
/// \file
/// \brief MD2 Handling
/// Inspired from md2.h by Mete Ciragan (mete@swissquake.ch)
#ifndef _HW_MD2_H_
#define _HW_MD2_H_
#include "hw_glob.h"
2019-03-18 21:34:20 +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;
2019-03-18 21:34:20 +00:00
model_t *model;
2014-03-15 16:59:03 +00:00
void *grpatch;
void *blendgrpatch;
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];
void HWR_InitMD2(void);
void HWR_DrawMD2(gr_vissprite_t *spr);
void HWR_AddPlayerMD2(INT32 skin);
void HWR_AddSpriteMD2(size_t spritenum);
#endif // _HW_MD2_H_