Skip to content
Snippets Groups Projects
Select Git revision
  • db606d0111f627c8638b44c00e000a70cb1510cb
  • next default protected
  • movie
  • movie-netcode-fixes
  • fix-nil-key-unarchiving-error
  • next-test
  • classic-netcode-fixes
  • master protected
  • softcode-info
  • acs
  • clipmidtex
  • custom-map-names
  • nogravity-trampolines
  • 2214-pre4
  • 2214-pre3
  • just-in-case
  • fix-opengl-parameter-crash
  • 2214-pre2
  • 2214-pre1
  • delfile2
  • cleanupmusic
  • SRB2_release_2.2.15
  • 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
41 results

MSDfile

Blame
  • m_bbox.h 1.05 KiB
    // SONIC ROBO BLAST 2
    //-----------------------------------------------------------------------------
    // Copyright (C) 1993-1996 by id Software, Inc.
    // Copyright (C) 1998-2000 by DooM Legacy Team.
    // Copyright (C) 1999-2019 by Sonic Team Junior.
    //
    // 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  m_bbox.h
    /// \brief bounding boxes
    
    #ifndef __M_BBOX__
    #define __M_BBOX__
    
    #include "m_fixed.h"
    
    /**	\brief	Bounding box coordinate storage
    */
    
    enum
    {
    	BOXTOP, /// top side of bbox
    	BOXBOTTOM, /// bottom side of bbox
    	BOXLEFT, /// left side of bbox
    	BOXRIGHT /// right side of bbox
    }; /// bbox coordinates
    
    // Bounding box functions.
    void M_ClearBox(fixed_t *box);
    
    void M_AddToBox(fixed_t *box, fixed_t x, fixed_t y);
    boolean M_PointInBox(fixed_t *box, fixed_t x, fixed_t y);
    boolean M_CircleTouchBox(fixed_t *box, fixed_t circlex, fixed_t circley, fixed_t circleradius);
    
    #endif