2010-11-19 16:55:55 +01:00
|
|
|
/* The MIT License
|
|
|
|
*
|
|
|
|
* Copyright (c) 2010 OTClient, https://github.com/edubart/otclient
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2010-11-21 22:48:58 +01:00
|
|
|
|
2010-11-25 00:36:15 +01:00
|
|
|
#ifndef PREREQUISITES_H
|
|
|
|
#define PREREQUISITES_H
|
2010-11-18 23:13:35 +01:00
|
|
|
|
2011-02-08 23:48:26 +01:00
|
|
|
// easy typing
|
2010-11-25 00:36:15 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
typedef unsigned char uchar;
|
|
|
|
typedef unsigned short ushort;
|
|
|
|
typedef unsigned int uint;
|
|
|
|
typedef unsigned long ulong;
|
2011-04-09 01:24:51 +02:00
|
|
|
typedef uint64_t uint64;
|
2010-11-25 00:36:15 +01:00
|
|
|
typedef uint32_t uint32;
|
|
|
|
typedef uint16_t uint16;
|
|
|
|
typedef uint8_t uint8;
|
|
|
|
typedef int32_t int32;
|
|
|
|
typedef int16_t int16;
|
|
|
|
typedef int8_t int8;
|
|
|
|
|
2011-02-08 23:48:26 +01:00
|
|
|
// C headers
|
2010-11-25 00:36:15 +01:00
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <cstring>
|
2011-02-08 23:48:26 +01:00
|
|
|
#include <cassert>
|
|
|
|
#include <ctime>
|
2010-11-25 00:36:15 +01:00
|
|
|
#include <cmath>
|
2011-02-08 23:48:26 +01:00
|
|
|
#include <csignal>
|
|
|
|
|
|
|
|
// STL headers
|
2010-11-25 00:36:15 +01:00
|
|
|
#include <iostream>
|
2011-02-08 23:48:26 +01:00
|
|
|
#include <fstream>
|
2010-11-25 00:36:15 +01:00
|
|
|
#include <sstream>
|
2011-02-08 23:48:26 +01:00
|
|
|
#include <algorithm>
|
2010-11-25 00:36:15 +01:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2011-05-19 19:11:05 +02:00
|
|
|
#include <stack>
|
2010-11-25 00:36:15 +01:00
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
#include <list>
|
2011-04-17 21:14:24 +02:00
|
|
|
#include <queue>
|
2011-05-01 20:47:35 +02:00
|
|
|
#include <iterator>
|
2011-02-08 23:48:26 +01:00
|
|
|
|
2011-05-15 18:39:14 +02:00
|
|
|
// OpenGL
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <GL/glu.h>
|
|
|
|
#include <GL/glext.h>
|
|
|
|
|
2011-04-02 23:02:39 +02:00
|
|
|
// boost utilities
|
2011-02-08 23:48:26 +01:00
|
|
|
#include <boost/algorithm/string.hpp>
|
2011-04-06 21:46:58 +02:00
|
|
|
#include <boost/foreach.hpp>
|
2011-04-11 23:11:22 +02:00
|
|
|
#include <boost/bind.hpp>
|
2011-04-11 23:22:01 +02:00
|
|
|
#include <boost/function.hpp>
|
|
|
|
#include <boost/shared_ptr.hpp>
|
2011-04-17 21:14:24 +02:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
2011-04-11 23:22:01 +02:00
|
|
|
#include <boost/enable_shared_from_this.hpp>
|
2011-04-22 00:44:30 +02:00
|
|
|
#include <boost/signals.hpp>
|
2011-04-06 21:46:58 +02:00
|
|
|
#define foreach BOOST_FOREACH
|
2011-02-08 23:48:26 +01:00
|
|
|
|
2011-04-22 20:48:02 +02:00
|
|
|
typedef boost::function<void()> SimpleCallback;
|
2011-04-11 23:11:22 +02:00
|
|
|
|
2011-05-12 00:16:11 +02:00
|
|
|
// constants
|
|
|
|
#include <constants.h>
|
2011-04-07 02:58:36 +02:00
|
|
|
|
2011-04-10 17:37:15 +02:00
|
|
|
// common utilities
|
2011-04-17 21:14:24 +02:00
|
|
|
#include <util/util.h>
|
|
|
|
#include <util/logger.h>
|
|
|
|
#include <util/color.h>
|
|
|
|
#include <util/point.h>
|
|
|
|
#include <util/size.h>
|
|
|
|
#include <util/rect.h>
|
2011-05-12 00:16:11 +02:00
|
|
|
#include <util/yaml.h>
|
2010-11-18 23:13:35 +01:00
|
|
|
|
2011-04-02 23:02:39 +02:00
|
|
|
#endif // PREREQUISITES_H
|