Skip to content
Snippets Groups Projects
Select Git revision
  • cad1f57b1e4d063e581853d40272f3272d39be34
  • next default protected
  • personal-amalgamate
  • ogl-palette-update
  • rphys-update
  • overlay-fpcam
  • inputviewer-toggle
  • master
  • ogl-pal
  • trace
  • uncapped
  • personal
  • palette
  • shadernmus
  • missing-gcc-flags
  • g_findmap-lua
  • pictureformats
  • sprite-fof-plane-sorting-question-mark
  • opengl-skydome-fixes
  • patch-cache-refactor
  • video-refactor
  • 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
  • SRB2_release_2.1.17
  • SRB2_release_2.1.16a
  • SRB2_release_2.1.16
  • SRB2_release_2.1.15
41 results

lua_mobjlib.c

Blame
  • Forked from STJr / SRB2
    Source project has a limited visibility.
    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-2014 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