Skip to content
Snippets Groups Projects
Select Git revision
  • 56223c9e80157c48f216e2ee68b7435fb6543f25
  • next default protected
  • expose-touching-sectorlist-to-lua
  • expose-texture-width-and-height
  • mobj-hit-floor-hook
  • wad-start-and-end-from-srb2classic
  • fix-emerald-hunt
  • woof-midi-port
  • fix-1425
  • expose-path-traverse
  • can-hurt-self-score-fix
  • post-mobj-thinker
  • hms-useragent
  • gitlab-ci
  • nightshoopsanity
  • fullscreen-toggle
  • next-test
  • bbox
  • cmake-enable-cxx
  • master
  • more-use-afters-frees
  • 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
  • SRB2_release_2.1.19
  • SRB2_release_2.1.18
  • td-release-v1.0.0
41 results

m_bbox.h

Blame
  • Forked from STJr / SRB2
    421 commits behind the upstream repository.
    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-2023 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