2006-04-13 20:47:06 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 1996, 2003 - 3D Realms Entertainment
|
|
|
|
|
|
|
|
This file is part of Duke Nukem 3D version 1.5 - Atomic Edition
|
|
|
|
|
|
|
|
Duke Nukem 3D is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2014-07-20 08:55:56 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
Original Source: 1996 - Todd Replogle
|
|
|
|
Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
|
2012-03-12 04:47:04 +00:00
|
|
|
Modifications for JonoF's port by Jonathon Fowler (jf@jonof.id.au)
|
2006-04-13 20:47:06 +00:00
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// ANIMLIB.H
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2016-03-14 00:07:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#ifndef animlib_public_h_
|
|
|
|
#define animlib_public_h_
|
2014-11-26 04:39:23 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2006-04-13 20:47:06 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//****************************************************************************
|
|
|
|
//
|
|
|
|
// ANIM_LoadAnim ()
|
|
|
|
//
|
|
|
|
// Setup internal anim data structure
|
|
|
|
//
|
|
|
|
//****************************************************************************
|
|
|
|
|
2016-01-11 05:05:38 +00:00
|
|
|
int32_t ANIM_LoadAnim(uint8_t *buffer, int32_t length);
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
//****************************************************************************
|
|
|
|
//
|
|
|
|
// ANIM_FreeAnim ()
|
|
|
|
//
|
|
|
|
// Free up internal anim data structure
|
|
|
|
//
|
|
|
|
//****************************************************************************
|
|
|
|
|
2010-03-17 07:40:13 +00:00
|
|
|
void ANIM_FreeAnim(void);
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
//****************************************************************************
|
|
|
|
//
|
|
|
|
// ANIM_NumFrames ()
|
|
|
|
//
|
|
|
|
// returns the number of frames in the current anim
|
|
|
|
//
|
|
|
|
//****************************************************************************
|
|
|
|
|
2010-03-17 07:40:13 +00:00
|
|
|
int32_t ANIM_NumFrames(void);
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
//****************************************************************************
|
|
|
|
//
|
|
|
|
// ANIM_DrawFrame ()
|
|
|
|
//
|
|
|
|
// Draw the frame to a returned buffer
|
|
|
|
//
|
|
|
|
//****************************************************************************
|
|
|
|
|
2010-03-17 07:40:13 +00:00
|
|
|
uint8_t * ANIM_DrawFrame(int32_t framenumber);
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
//****************************************************************************
|
|
|
|
//
|
|
|
|
// ANIM_GetPalette ()
|
|
|
|
//
|
|
|
|
// return the palette of the anim
|
|
|
|
//****************************************************************************
|
|
|
|
|
2010-03-17 07:40:13 +00:00
|
|
|
uint8_t * ANIM_GetPalette(void);
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-11-26 04:39:23 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2006-04-13 20:47:06 +00:00
|
|
|
#endif
|
|
|
|
#endif
|