1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 06:52:34 +02:00

Renamed to Renderwüre, fixed HPPness and inclusion protection things, etc

This commit is contained in:
Timmy Sjöstedt 2013-07-02 08:40:43 +02:00
parent c214f07c2b
commit fb2eac2ef3
20 changed files with 65 additions and 35 deletions

View File

@ -1,5 +1,5 @@
#include <renderware/BinaryStream.hpp>
#include <renderware/TextureArchive.hpp>
#include <renderwure/BinaryStream.hpp>
#include <renderwure/TextureArchive.hpp>
#include <SFML/Graphics.hpp>

View File

@ -1,4 +1,4 @@
#include <renderware/BinaryStream.hpp>
#include <renderwure/BinaryStream.hpp>
#include <cstring>
#include <iostream>

View File

@ -1,6 +1,7 @@
#include "engine/GTAData.h"
#include "loaders/LoaderIPL.h"
#include <loaders/LoaderDFF.h>
#include <renderwure/engine/GTAData.hpp>
#include <renderwure/loaders/LoaderIPL.hpp>
#include <renderwure/loaders/LoaderDFF.hpp>
#include <iostream>
#include <fstream>
#include <bits/algorithmfwd.h>

View File

@ -1,5 +1,5 @@
#include "engine/GTAEngine.h"
#include "loaders/LoaderIPL.h"
#include <renderwure/engine/GTAEngine.hpp>
#include <renderwure/loaders/LoaderIPL.hpp>
GTAEngine::GTAEngine(const std::string& path)
: gameData(path)

View File

@ -1,4 +1,5 @@
#include "loaders/LoaderCOL.h"
#include <renderwure/loaders/LoaderCOL.hpp>
#include <string>
#include <fstream>

View File

@ -1,4 +1,4 @@
#include "loaders/LoaderDFF.h"
#include <renderwure/loaders/LoaderDFF.hpp>
#include <iostream>

View File

@ -1,4 +1,5 @@
#include "loaders/LoaderIMG.h"
#include <renderwure/loaders/LoaderIMG.hpp>
#include <cstring>
LoaderIMG::LoaderIMG()

View File

@ -1,4 +1,4 @@
#include "loaders/LoaderIPL.h"
#include <renderwure/loaders/LoaderIPL.hpp>
#include <fstream>
#include <string>

View File

@ -1,4 +1,4 @@
#include <renderware/TextureArchive.hpp>
#include <renderwure/TextureArchive.hpp>
#include <cstring>
#include <iostream>

View File

@ -1,4 +1,4 @@
#include "loaders/TextureLoader.h"
#include <renderwure/loaders/TextureLoader.hpp>
#include <fstream>
#include <iostream>

View File

@ -1,4 +1,6 @@
#pragma once
#ifndef _BINARYSTREAM_HPP_
#define _BINARYSTREAM_HPP_
#include <string>
#include <memory>
@ -37,4 +39,6 @@ public:
static std::string sectionIdString(uint32_t id);
};
}
}
#endif

View File

@ -1,6 +1,8 @@
#pragma once
#ifndef _TEXTUREARCHIVE_HPP_
#define _TEXTUREARCHIVE_HPP_
#include <renderware/BinaryStream.hpp>
#include <renderwure/BinaryStream.hpp>
#include <vector>
@ -43,4 +45,6 @@ public:
static std::unique_ptr<TextureArchive> create(BinaryStream &binaryStream);
};
}
}
#endif

View File

@ -1,11 +1,14 @@
#ifndef _GTADATA_H_
#define _GTADATA_H_
#pragma once
#ifndef _GTADATA_HPP_
#define _GTADATA_HPP_
#include <renderwure/loaders/LoaderIMG.hpp>
#include <renderwure/loaders/TextureLoader.hpp>
#include <renderwure/loaders/LoaderDFF.hpp>
#include <string>
#include <map>
#include <memory>
#include <loaders/LoaderIMG.h>
#include <loaders/TextureLoader.h>
#include <loaders/LoaderDFF.h>
/**
* Handles loading and management of the Game's DAT

View File

@ -1,10 +1,14 @@
#ifndef _GTAENGINE_H_
#define _GTAENGINE_H_
#include "GTAData.h"
#include <loaders/LoaderIPL.h>
#include <vector>
#pragma once
#ifndef _GTAENGINE_HPP_
#define _GTAENGINE_HPP_
#include <renderwure/engine/GTAData.hpp>
#include <renderwure/loaders/LoaderIPL.hpp>
#include <glm/glm.hpp>
#include <vector>
/**
* @class GTAEngine
* Provides a simple interface to the framework's internals

View File

@ -1,5 +1,7 @@
#ifndef _LOADERCOL_H_
#define _LOADERCOL_H_
#pragma once
#ifndef _LOADERCOL_HPP_
#define _LOADERCOL_HPP_
#include <string>
#include <vector>
#include <glm/glm.hpp>

View File

@ -1,4 +1,6 @@
#pragma once
#ifndef _LOADERDFF_HPP_
#define _LOADERDFF_HPP_
#define GLEW_STATIC
#include <GL/glew.h>
@ -55,3 +57,5 @@ private:
public:
std::unique_ptr<Model> loadFromMemory(char *data);
};
#endif

View File

@ -1,5 +1,6 @@
#ifndef LoaderIMG_h__
#define LoaderIMG_h__
#pragma once
#ifndef _LOADERIMG_HPP_
#define _LOADERIMG_HPP_
#include <iostream>
#include <vector>

View File

@ -1,5 +1,6 @@
#ifndef LoaderIPL_h__
#define LoaderIPL_h__
#pragma once
#ifndef _LOADERIPL_HPP_
#define _LOADERIPL_HPP_
#include <iostream>
#include <vector>

View File

@ -1,4 +1,6 @@
#pragma once
#ifndef _TEXTURELOADER_HPP_
#define _TEXTURELOADER_HPP_
#define GLEW_STATIC
#include <GL/glew.h>
@ -17,3 +19,5 @@ public:
std::map<std::string, GLuint> textures;
};
#endif

View File

@ -1,8 +1,8 @@
#define GLEW_STATIC
#include <GL/glew.h>
#include <engine/GTAEngine.h>
#include <loaders/LoaderDFF.h>
#include <renderwure/engine/GTAEngine.hpp>
#include <renderwure/loaders/LoaderDFF.hpp>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>