Skip to content
Snippets Groups Projects
Select Git revision
  • a050df102256ef30b74b36dd6b1d2fa36558ca62
  • next default protected
  • fix-software-renderer-plane-overflow
  • 2214-pre3
  • just-in-case
  • fix-opengl-parameter-crash
  • 2214-pre2
  • 2214-pre1
  • delfile2
  • cleanupmusic
  • gametype-refactor-1
  • custom-map-names
  • extra-textures
  • clipmidtex
  • optimize-storewallrange
  • increase-maxconditionsets
  • acs
  • softcode-info
  • lua-gfx-2
  • better-player-states
  • lua-debug-library
  • SRB2_release_2.2.13
  • SRB2_release_2.2.12
  • SRB2_release_2.2.11
  • SRB2_release_2.2.10
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
41 results

r_picformats.c

Blame
  • Forked from STJr / SRB2
    Source project has a limited visibility.
    r_patch.h 1.35 KiB
    // SONIC ROBO BLAST 2
    //-----------------------------------------------------------------------------
    // Copyright (C) 2020-2023 by Jaime "Lactozilla" Passos.
    //
    // 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 "r_picformats.h"
    #include "doomdef.h"
    
    // Patch functions
    patch_t *Patch_Create(softwarepatch_t *source, size_t srcsize, void *dest);
    void Patch_Free(patch_t *patch);
    
    #define Patch_FreeTag(tagnum) Patch_FreeTags(tagnum, tagnum)
    void Patch_FreeTags(INT32 lowtag, INT32 hightag);
    
    void Patch_GenerateFlat(patch_t *patch, pictureflags_t flags);
    
    #ifdef HWRENDER
    void *Patch_AllocateHardwarePatch(patch_t *patch);
    void *Patch_CreateGL(patch_t *patch);
    #endif
    
    #ifdef ROTSPRITE
    void Patch_Rotate(patch_t *patch, INT32 angle, INT32 xpivot, INT32 ypivot, boolean flip);
    patch_t *Patch_GetRotated(patch_t *patch, INT32 angle, boolean flip);
    patch_t *Patch_GetRotatedSprite(
    	spriteframe_t *sprite,
    	size_t frame, size_t spriteangle,
    	boolean flip, boolean adjustfeet,
    	void *info, INT32 rotationangle);
    INT32 R_GetRollAngle(angle_t rollangle);
    #endif
    
    #endif // __R_PATCH__