1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

rwlib: rw/defines.hpp -> rw/debug.hpp

This commit is contained in:
Anonymous Maarten 2018-06-21 16:49:05 +02:00
parent 0b8407b618
commit 36149cf38e
40 changed files with 44 additions and 44 deletions

View File

@ -2,7 +2,7 @@
#include <cstring>
#include <fstream>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
namespace RW {

View File

@ -4,7 +4,7 @@
#include <cstring>
#include <memory>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "BinaryStream.hpp"

View File

@ -7,7 +7,7 @@
#include "ai/AIGraphNode.hpp"
#include "data/PathData.hpp"
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <rw/types.hpp>
AIGraph::~AIGraph() {

View File

@ -11,7 +11,7 @@
#include <LinearMath/btScalar.h>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "data/WeaponData.hpp"
#include "engine/Animator.hpp"

View File

@ -8,7 +8,7 @@ extern "C" {
#include <libavutil/avutil.h>
}
//ab
#include <rw/defines.hpp>
#include <rw/debug.hpp>
// Rename some functions for older libavcodec/ffmpeg versions (e.g. Ubuntu Trusty)
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,28,1)

View File

@ -9,7 +9,7 @@
#include <vector>
#define time_unit std::chrono::microseconds
#include <rw/defines.hpp>
#include <rw/debug.hpp>
namespace perf {

View File

@ -3,7 +3,7 @@
#include <algorithm>
#include <vector>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <rw/forward.hpp>
// The default animations for every cycle

View File

@ -4,7 +4,7 @@
#include <cstddef>
#include <fstream>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "engine/GameWorld.hpp"
#include "objects/GameObject.hpp"

View File

@ -11,7 +11,7 @@
#include <vector>
#include <data/Clump.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <rw/forward.hpp>
#include <data/CollisionModel.hpp>

View File

@ -3,7 +3,7 @@
#include <map>
#include <vector>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <rw/forward.hpp>
struct AnimationBone;

View File

@ -13,7 +13,7 @@
#include <boost/algorithm/string/predicate.hpp>
#include <data/Clump.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <rw/types.hpp>
#include "core/Logger.hpp"

View File

@ -14,7 +14,7 @@
#include <glm/glm.hpp>
#include <platform/FileIndex.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <rw/forward.hpp>
#include <data/AnimGroup.hpp>

View File

@ -1,9 +1,9 @@
#ifndef _RWENGINE_Garage_HPP_
#define _RWENGINE_Garage_HPP_
#ifndef _RWENGINE_GARAGE_HPP_
#define _RWENGINE_GARAGE_HPP_
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
class PlayerController;
@ -109,4 +109,4 @@ public:
void tick(float dt);
};
#endif
#endif

View File

@ -1,6 +1,6 @@
#include "engine/Payphone.hpp"
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "ai/PlayerController.hpp"

View File

@ -12,7 +12,7 @@
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "data/ZoneData.hpp"
#include "engine/GameData.hpp"

View File

@ -1,6 +1,6 @@
#include "engine/ScreenText.hpp"
#include <rw/defines.hpp>
#include <rw/debug.hpp>
void ScreenText::tick(float dt) {
int millis = dt * 1000;

View File

@ -6,7 +6,7 @@
#include <iterator>
#include <sstream>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <data/ModelData.hpp>
#include <data/WeaponData.hpp>

View File

@ -7,7 +7,7 @@
#include <glm/glm.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "data/CutsceneData.hpp"
#include "platform/FileHandle.hpp"

View File

@ -9,7 +9,7 @@
#include <BulletDynamics/Character/btKinematicCharacterController.h>
#include <btBulletDynamicsCommon.h>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "ai/CharacterController.hpp"
#include "ai/PlayerController.hpp"

View File

@ -7,7 +7,7 @@
#include <glm/gtc/quaternion.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <rw/forward.hpp>
#include <data/ModelData.hpp>

View File

@ -4,7 +4,7 @@
#include <cstdint>
#include <glm/glm.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <objects/GameObject.hpp>

View File

@ -9,7 +9,7 @@
#include <gl/DrawBuffer.hpp>
#include <gl/GeometryBuffer.hpp>
#include <gl/gl_core_3_3.h>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "render/GameRenderer.hpp"

View File

@ -7,7 +7,7 @@
#include <glm/gtc/type_ptr.hpp>
#include <gl/DrawBuffer.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
namespace {
constexpr GLuint kUBOIndexScene = 1;

View File

@ -4,7 +4,7 @@
#include <glm/glm.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <rw/types.hpp>
#include "engine/GameData.hpp"

View File

@ -1,7 +1,7 @@
#ifndef _RWENGINE_SCRIPTFUNCTIONS_HPP_
#define _RWENGINE_SCRIPTFUNCTIONS_HPP_
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <ai/AIGraphNode.hpp>
#include <data/GameTexts.hpp>

View File

@ -9,7 +9,7 @@
#include <glm/glm.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "engine/Garage.hpp"

View File

@ -6,7 +6,7 @@
#include <SDL.h>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "GitSHA1.h"

View File

@ -1,7 +1,7 @@
#include "GameConfig.hpp"
#include <algorithm>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <rw/filesystem.hpp>
#include <boost/property_tree/ini_parser.hpp>

View File

@ -8,7 +8,7 @@
#include <glm/glm.hpp>
#include <render/GameRenderer.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
/**
* Default values for menus that should match the look and feel of the original

View File

@ -3,7 +3,7 @@
#include "game.hpp"
#include <engine/SaveGame.hpp>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include "RWGame.hpp"
MenuState::MenuState(RWGame* game) : State(game) {

View File

@ -20,7 +20,7 @@ SET(RWLIB_SOURCES
source/rw/filesystem.hpp
source/rw/forward.hpp
source/rw/types.hpp
source/rw/defines.hpp
source/rw/debug.hpp
source/platform/FileHandle.hpp
source/platform/FileIndex.hpp

View File

@ -14,7 +14,7 @@
#include "gl/gl_core_3_3.h"
#include "loaders/RWBinaryStream.hpp"
#include "platform/FileHandle.hpp"
#include "rw/defines.hpp"
#include "rw/debug.hpp"
enum DFFChunks {
CHUNK_STRUCT = 0x0001,

View File

@ -3,7 +3,7 @@
#include <boost/algorithm/string/predicate.hpp>
#include <cstdio>
#include "rw/defines.hpp"
#include "rw/debug.hpp"
LoaderIMG::LoaderIMG() : m_version(GTAIIIVC), m_assetCount(0) {
}

View File

@ -4,7 +4,7 @@
#include <cstdio>
#include <string>
#include "rw/defines.hpp"
#include "rw/debug.hpp"
LoaderSDT::LoaderSDT() : m_version(GTAIIIVC), m_assetCount(0) {
}

View File

@ -10,7 +10,7 @@
#include "gl/gl_core_3_3.h"
#include "loaders/RWBinaryStream.hpp"
#include "platform/FileHandle.hpp"
#include "rw/defines.hpp"
#include "rw/debug.hpp"
GLuint gErrorTextureData[] = {0xFFFF00FF, 0xFF000000, 0xFF000000, 0xFFFF00FF};
GLuint gDebugTextureData[] = {0xFF0000FF, 0xFF00FF00};

View File

@ -6,7 +6,7 @@
#include <cstddef>
#include "rw/defines.hpp"
#include "rw/debug.hpp"
#include "rw/bit_cast.cpp"
/**

View File

@ -4,7 +4,7 @@
//Based on https://gist.github.com/socantre/3472964
#include <cstring> // memcpy
#include <type_traits> // is_trivially_copyable
#include "rw/defines.hpp" // RW_ASSERT
#include "rw/debug.hpp" // RW_ASSERT
template <class Dest, class Source>
inline Dest bit_cast(Source const &source) {

View File

@ -1,5 +1,5 @@
#ifndef _LIBRW_DEFINES_HPP_
#define _LIBRW_DEFINES_HPP_
#ifndef _LIBRW_DEBUG_HPP_
#define _LIBRW_DEBUG_HPP_
#if RW_DEBUG
#include <cstdlib>

View File

@ -5,7 +5,7 @@
#include <glm/glm.hpp>
#include <map>
#include <memory>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <string>
#define RW_USING(feature) 1 == feature

View File

@ -8,7 +8,7 @@
#include <fstream>
#include <map>
#include <rw/defines.hpp>
#include <rw/debug.hpp>
#include <rw/filesystem.hpp>
namespace pt = boost::property_tree;