2019-10-28 18:28:42 +00:00
|
|
|
// SONIC ROBO BLAST 2
|
|
|
|
//-----------------------------------------------------------------------------
|
2020-08-15 23:48:28 +00:00
|
|
|
// Copyright (C) 2020 by Jaime "Lactozilla" Passos.
|
2019-10-28 18:28:42 +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.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
/// \file r_patch.h
|
|
|
|
/// \brief Patch generation.
|
|
|
|
|
|
|
|
#ifndef __R_PATCH__
|
|
|
|
#define __R_PATCH__
|
|
|
|
|
|
|
|
#include "r_defs.h"
|
|
|
|
#include "doomdef.h"
|
|
|
|
|
2020-08-08 08:16:47 +00:00
|
|
|
// Patch functions
|
|
|
|
patch_t *Patch_Create(softwarepatch_t *source, size_t srcsize, void *dest);
|
|
|
|
void Patch_Free(patch_t *patch);
|
|
|
|
|
|
|
|
#ifdef HWRENDER
|
|
|
|
void *Patch_AllocateHardwarePatch(patch_t *patch);
|
|
|
|
void *Patch_CreateGL(patch_t *patch);
|
|
|
|
#endif
|
|
|
|
|
2019-10-28 18:28:42 +00:00
|
|
|
#endif // __R_PATCH__
|