-
Notifications
You must be signed in to change notification settings - Fork 15
/
ExtraConfig.h
50 lines (40 loc) · 1.81 KB
/
ExtraConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef EXTRACONFIG_H_INCLUDED
#define EXTRACONFIG_H_INCLUDED
// Uncomment to enable this function
// #define IS_ENGINE_USE_RENDER_TEXTURE ///< This feature coming soon !
/*
* 1) Uncomment this line (definition of the Preporcessor which is below) to use the engine's main render loop.
* 2) But if you want to use a basic SFML render loop comment out this line.
* It activates the "basicSFMLmain()" function which launches an SFML window.
* Very useful if you already have an existing project and want to integrate it into the engine.
* The "basicSFMLmain()" function is implemented in the "basicSFMLmain.cpp" file (found in the "cpp" directory).
* It is in this file that you can associate your code with that of the engine.
*/
#define IS_ENGINE_USE_MAIN_LOOP ///< Allows to use the engine's main render loop
// Uncomment to enable SDM function
#define IS_ENGINE_USE_SDM ///< Allows to use Step and Draw Manager
#define SND_FILE_EXTENSION ".wav"
// Uncomment to enable this function
#define IS_ENGINE_OPTIMIZE_PERF ///< Allows to activate the optimization in certain parts of the engine
// Uncomment to enable SHOW LOG function
#define IS_ENGINE_USE_SHOWLOG ///< Allows to show log in console
#if defined(__ANDROID__)
// Uncomment this line (definition of the Preporcessor which is below) to use Admob
// If you enable Admob you need to uncomment line in CMakeLists
// and Gradle files to link the Firebase library on your project
// #define IS_ENGINE_USE_ADMOB ///< Allows to use Admob Manager
#endif // defined
#include <string>
#include <fstream>
#include <cstdio>
#include <iostream>
#include "../../isEngine/system/islibconnect/isLibConnect.h"
namespace is
{
inline bool fileExist(std::string const &fileName)
{
std::ifstream file(fileName.c_str());
return !file.fail();
}
}
#endif // EXTRACONFIG_H_INCLUDED