mirror of
https://github.com/rwengine/openrw.git
synced 2025-01-31 12:01:38 +01:00
Renamed to Renderwüre, fixed HPPness and inclusion protection things, etc
This commit is contained in:
parent
c214f07c2b
commit
fb2eac2ef3
@ -1,5 +1,5 @@
|
|||||||
#include <renderware/BinaryStream.hpp>
|
#include <renderwure/BinaryStream.hpp>
|
||||||
#include <renderware/TextureArchive.hpp>
|
#include <renderwure/TextureArchive.hpp>
|
||||||
|
|
||||||
#include <SFML/Graphics.hpp>
|
#include <SFML/Graphics.hpp>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <renderware/BinaryStream.hpp>
|
#include <renderwure/BinaryStream.hpp>
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include "engine/GTAData.h"
|
#include <renderwure/engine/GTAData.hpp>
|
||||||
#include "loaders/LoaderIPL.h"
|
#include <renderwure/loaders/LoaderIPL.hpp>
|
||||||
#include <loaders/LoaderDFF.h>
|
#include <renderwure/loaders/LoaderDFF.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <bits/algorithmfwd.h>
|
#include <bits/algorithmfwd.h>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "engine/GTAEngine.h"
|
#include <renderwure/engine/GTAEngine.hpp>
|
||||||
#include "loaders/LoaderIPL.h"
|
#include <renderwure/loaders/LoaderIPL.hpp>
|
||||||
|
|
||||||
GTAEngine::GTAEngine(const std::string& path)
|
GTAEngine::GTAEngine(const std::string& path)
|
||||||
: gameData(path)
|
: gameData(path)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "loaders/LoaderCOL.h"
|
#include <renderwure/loaders/LoaderCOL.hpp>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "loaders/LoaderDFF.h"
|
#include <renderwure/loaders/LoaderDFF.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "loaders/LoaderIMG.h"
|
#include <renderwure/loaders/LoaderIMG.hpp>
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
LoaderIMG::LoaderIMG()
|
LoaderIMG::LoaderIMG()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "loaders/LoaderIPL.h"
|
#include <renderwure/loaders/LoaderIPL.hpp>
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <renderware/TextureArchive.hpp>
|
#include <renderwure/TextureArchive.hpp>
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "loaders/TextureLoader.h"
|
#include <renderwure/loaders/TextureLoader.hpp>
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#ifndef _BINARYSTREAM_HPP_
|
||||||
|
#define _BINARYSTREAM_HPP_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@ -37,4 +39,6 @@ public:
|
|||||||
static std::string sectionIdString(uint32_t id);
|
static std::string sectionIdString(uint32_t id);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
@ -1,6 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#ifndef _TEXTUREARCHIVE_HPP_
|
||||||
|
#define _TEXTUREARCHIVE_HPP_
|
||||||
|
|
||||||
#include <renderware/BinaryStream.hpp>
|
#include <renderwure/BinaryStream.hpp>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -43,4 +45,6 @@ public:
|
|||||||
static std::unique_ptr<TextureArchive> create(BinaryStream &binaryStream);
|
static std::unique_ptr<TextureArchive> create(BinaryStream &binaryStream);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
@ -1,11 +1,14 @@
|
|||||||
#ifndef _GTADATA_H_
|
#pragma once
|
||||||
#define _GTADATA_H_
|
#ifndef _GTADATA_HPP_
|
||||||
|
#define _GTADATA_HPP_
|
||||||
|
|
||||||
|
#include <renderwure/loaders/LoaderIMG.hpp>
|
||||||
|
#include <renderwure/loaders/TextureLoader.hpp>
|
||||||
|
#include <renderwure/loaders/LoaderDFF.hpp>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <loaders/LoaderIMG.h>
|
|
||||||
#include <loaders/TextureLoader.h>
|
|
||||||
#include <loaders/LoaderDFF.h>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles loading and management of the Game's DAT
|
* Handles loading and management of the Game's DAT
|
@ -1,10 +1,14 @@
|
|||||||
#ifndef _GTAENGINE_H_
|
#pragma once
|
||||||
#define _GTAENGINE_H_
|
#ifndef _GTAENGINE_HPP_
|
||||||
#include "GTAData.h"
|
#define _GTAENGINE_HPP_
|
||||||
#include <loaders/LoaderIPL.h>
|
|
||||||
#include <vector>
|
#include <renderwure/engine/GTAData.hpp>
|
||||||
|
#include <renderwure/loaders/LoaderIPL.hpp>
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class GTAEngine
|
* @class GTAEngine
|
||||||
* Provides a simple interface to the framework's internals
|
* Provides a simple interface to the framework's internals
|
@ -1,5 +1,7 @@
|
|||||||
#ifndef _LOADERCOL_H_
|
#pragma once
|
||||||
#define _LOADERCOL_H_
|
#ifndef _LOADERCOL_HPP_
|
||||||
|
#define _LOADERCOL_HPP_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
@ -1,4 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#ifndef _LOADERDFF_HPP_
|
||||||
|
#define _LOADERDFF_HPP_
|
||||||
|
|
||||||
#define GLEW_STATIC
|
#define GLEW_STATIC
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
@ -55,3 +57,5 @@ private:
|
|||||||
public:
|
public:
|
||||||
std::unique_ptr<Model> loadFromMemory(char *data);
|
std::unique_ptr<Model> loadFromMemory(char *data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -1,5 +1,6 @@
|
|||||||
#ifndef LoaderIMG_h__
|
#pragma once
|
||||||
#define LoaderIMG_h__
|
#ifndef _LOADERIMG_HPP_
|
||||||
|
#define _LOADERIMG_HPP_
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
@ -1,5 +1,6 @@
|
|||||||
#ifndef LoaderIPL_h__
|
#pragma once
|
||||||
#define LoaderIPL_h__
|
#ifndef _LOADERIPL_HPP_
|
||||||
|
#define _LOADERIPL_HPP_
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
@ -1,4 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#ifndef _TEXTURELOADER_HPP_
|
||||||
|
#define _TEXTURELOADER_HPP_
|
||||||
|
|
||||||
#define GLEW_STATIC
|
#define GLEW_STATIC
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
@ -17,3 +19,5 @@ public:
|
|||||||
|
|
||||||
std::map<std::string, GLuint> textures;
|
std::map<std::string, GLuint> textures;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -1,8 +1,8 @@
|
|||||||
#define GLEW_STATIC
|
#define GLEW_STATIC
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
|
|
||||||
#include <engine/GTAEngine.h>
|
#include <renderwure/engine/GTAEngine.hpp>
|
||||||
#include <loaders/LoaderDFF.h>
|
#include <renderwure/loaders/LoaderDFF.hpp>
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <glm/gtc/matrix_transform.hpp>
|
#include <glm/gtc/matrix_transform.hpp>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user