source: abuse/trunk/src/common.h @ 518

Last change on this file since 518 was 518, checked in by Sam Hocevar, 11 years ago

imlib: refactor dirty_rect clipping coordiantes so that the upper
bound is no longer inclusive. It will make things easier in the future.

  • Property svn:keywords set to Id
File size: 750 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5 *
6 *  This software was released into the Public Domain. As with most public
7 *  domain software, no warranty is made or implied by Crack dot Com or
8 *  Jonathan Clark.
9 */
10
11#ifndef __COMMON_H__
12#define __COMMON_H__
13
14//
15// Lol Engine
16//
17#include "lol/matrix.h"
18using namespace lol;
19
20//
21// Custom utility functions
22//
23static inline int Min(int a, int b) { return a < b ? a : b; }
24static inline int Max(int a, int b) { return a > b ? a : b; }
25static inline float Min(float a, float b) { return a < b ? a : b; }
26static inline float Max(float a, float b) { return a > b ? a : b; }
27
28#endif // __COMMON_H__
29
Note: See TracBrowser for help on using the repository browser.