Compare commits
1 Commits
linux
...
sqc_51-fin
Author | SHA1 | Date | |
---|---|---|---|
|
8b3baa9063 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -373,8 +373,3 @@ FodyWeavers.xsd
|
|||||||
/x64/Release/SQCSim2023.exe
|
/x64/Release/SQCSim2023.exe
|
||||||
/x64/Debug/SQCSim2023.exe
|
/x64/Debug/SQCSim2023.exe
|
||||||
/x64/Debug/SQCSim2021.pdb
|
/x64/Debug/SQCSim2021.pdb
|
||||||
/SQCSim-srv/cmake/*
|
|
||||||
!/SQCSim-srv/cmake/CMakeLists.txt
|
|
||||||
/SQCSim2021/cmake/*
|
|
||||||
!/SQCSim2021/cmake/CMakeLists.txt
|
|
||||||
/SQCSim2021/SQCSim-client
|
|
||||||
|
BIN
Debug/glew32.dll
BIN
Debug/glew32.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -22,7 +22,7 @@
|
|||||||
#define FRAMES_DELETE_CHUNKS 1
|
#define FRAMES_DELETE_CHUNKS 1
|
||||||
|
|
||||||
#define THREADS_GENERATE_CHUNKS 8
|
#define THREADS_GENERATE_CHUNKS 8
|
||||||
#define THREADS_UPDATE_CHUNKS 3
|
#define THREADS_UPDATE_CHUNKS 6
|
||||||
#define THREADS_DELETE_CHUNKS 3
|
#define THREADS_DELETE_CHUNKS 3
|
||||||
|
|
||||||
#define VIEW_DISTANCE 512 // Si les chunks arr<72>tent de s'afficher pendant une game et qu'il y a un access violation quand tu quitte, il faut augmenter ce chiffre.
|
#define VIEW_DISTANCE 512 // Si les chunks arr<72>tent de s'afficher pendant une game et qu'il y a un access violation quand tu quitte, il faut augmenter ce chiffre.
|
||||||
@@ -53,7 +53,6 @@ typedef uint64_t Timestamp;
|
|||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <cstring>
|
|
||||||
|
|
||||||
#define SOCKET int
|
#define SOCKET int
|
||||||
#define INVALID_SOCKET -1
|
#define INVALID_SOCKET -1
|
||||||
|
@@ -130,7 +130,7 @@ void World::GetScope(unsigned int& x, unsigned int& y) {
|
|||||||
y = m_center[1];
|
y = m_center[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
void World::Update(Bullet* bullets[MAX_BULLETS], const Vector3f& player_pos, BlockInfo* blockinfo[BTYPE_LAST]) {
|
void World::Update(Bullet* bullets[MAX_BULLETS], Vector3f& player_pos, BlockInfo* blockinfo[BTYPE_LAST]) {
|
||||||
UpdateWorld(player_pos, blockinfo);
|
UpdateWorld(player_pos, blockinfo);
|
||||||
//TransposeWorld(player_pos, bullets);
|
//TransposeWorld(player_pos, bullets);
|
||||||
}
|
}
|
||||||
@@ -407,4 +407,4 @@ void World::UpdateWorld(const Vector3f& player, BlockInfo* blockinfo[BTYPE_LAST]
|
|||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
int World::GettbDeleted() const { return m_tbDeleted.size(); }
|
int World::GettbDeleted() const { return m_tbDeleted.size(); }
|
@@ -30,7 +30,7 @@ public:
|
|||||||
BlockType BlockAt(float x, float y, float z, BlockType defaultBlockType = BTYPE_AIR) const;
|
BlockType BlockAt(float x, float y, float z, BlockType defaultBlockType = BTYPE_AIR) const;
|
||||||
BlockType BlockAt(const Vector3f& pos, BlockType defaultBlockType = BTYPE_AIR) const;
|
BlockType BlockAt(const Vector3f& pos, BlockType defaultBlockType = BTYPE_AIR) const;
|
||||||
|
|
||||||
void Update(Bullet* bullets[MAX_BULLETS], const Vector3f& player_pos, BlockInfo* blockinfo[BTYPE_LAST]);
|
void Update(Bullet* bullets[MAX_BULLETS], Vector3f& player_pos, BlockInfo* blockinfo[BTYPE_LAST]);
|
||||||
|
|
||||||
void GetScope(unsigned int& x, unsigned int& y);
|
void GetScope(unsigned int& x, unsigned int& y);
|
||||||
|
|
||||||
|
@@ -1,30 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.18.4)
|
|
||||||
|
|
||||||
project(SQCSim-Server VERSION 0.1)
|
|
||||||
|
|
||||||
add_compile_options("-Wno-narrowing")
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
|
||||||
set(CMAKE_STANDARD_REQUIRED True)
|
|
||||||
|
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "../out")
|
|
||||||
|
|
||||||
set(SQCSIM_COMMON_DIR "../../SQCSim-common/")
|
|
||||||
|
|
||||||
add_library(SQCSim-common
|
|
||||||
"${SQCSIM_COMMON_DIR}blockinfo.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}bullet.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}chunk.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}netprotocol.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}opensimplex.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}player.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}transformation.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}world.cpp"
|
|
||||||
)
|
|
||||||
|
|
||||||
add_executable(SQCSim-server
|
|
||||||
"../connection.cpp"
|
|
||||||
"../server.cpp"
|
|
||||||
"../main.cpp"
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(SQCSim-server PUBLIC SQCSim-common)
|
|
@@ -14,4 +14,4 @@
|
|||||||
typedef unsigned char LogDest;
|
typedef unsigned char LogDest;
|
||||||
enum LOG_DEST { CONSOLE, LOGFILE, LOG_LAST };
|
enum LOG_DEST { CONSOLE, LOGFILE, LOG_LAST };
|
||||||
|
|
||||||
#endif
|
#endif
|
@@ -85,7 +85,7 @@ int Server::Ready() {
|
|||||||
|
|
||||||
while (!readystart) {
|
while (!readystart) {
|
||||||
sockaddr_in sockad;
|
sockaddr_in sockad;
|
||||||
unsigned int addrlen = sizeof(sockad);
|
int addrlen = sizeof(sockad);
|
||||||
SOCKET sock = accept(m_sock_tcp, (sockaddr*)&sockad, &addrlen);
|
SOCKET sock = accept(m_sock_tcp, (sockaddr*)&sockad, &addrlen);
|
||||||
|
|
||||||
if (sock < 0)
|
if (sock < 0)
|
||||||
@@ -140,7 +140,7 @@ void Server::Run() {
|
|||||||
Log("Partie en cours...", false, false);
|
Log("Partie en cours...", false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline std::string Server::LogTimestamp() {
|
inline std::string Server::Timestamp() {
|
||||||
time_t rawtime;
|
time_t rawtime;
|
||||||
struct tm timeinfo;
|
struct tm timeinfo;
|
||||||
char buffer[80];
|
char buffer[80];
|
||||||
@@ -162,11 +162,11 @@ inline std::string Server::LogTimestamp() {
|
|||||||
void Server::Log(std::string str, bool is_error = false, bool is_fatal = false) {
|
void Server::Log(std::string str, bool is_error = false, bool is_fatal = false) {
|
||||||
switch (m_log) {
|
switch (m_log) {
|
||||||
case LOG_DEST::LOGFILE:
|
case LOG_DEST::LOGFILE:
|
||||||
m_logfile << LogTimestamp() << (is_fatal ? "FATAL " : "") << (is_error ? "ERROR " : "") << str << std::endl;
|
m_logfile << Timestamp() << (is_fatal ? "FATAL " : "") << (is_error ? "ERROR " : "") << str << std::endl;
|
||||||
break;
|
break;
|
||||||
case LOG_DEST::CONSOLE:
|
case LOG_DEST::CONSOLE:
|
||||||
default:
|
default:
|
||||||
std::cout << LogTimestamp() << (is_fatal ? "FATAL " : "") << (is_error ? "ERROR " : "") << str << std::endl;
|
std::cout << Timestamp() << (is_fatal ? "FATAL " : "") << (is_error ? "ERROR " : "") << str << std::endl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@ private:
|
|||||||
|
|
||||||
World* m_world = nullptr;
|
World* m_world = nullptr;
|
||||||
|
|
||||||
std::string LogTimestamp();
|
std::string Timestamp();
|
||||||
void Log(std::string str, bool is_error, bool is_fatal);
|
void Log(std::string str, bool is_error, bool is_fatal);
|
||||||
void buildIdList(size_t size);
|
void buildIdList(size_t size);
|
||||||
|
|
||||||
|
@@ -105,8 +105,8 @@
|
|||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
<IncludePath>external\irrKlang-1.6.0\include;external\glew210\include;external\devil178\include;external\sfml251\include;$(IncludePath)</IncludePath>
|
<IncludePath>external\irrKlang-1.6.0\include;external\glew210\include;external\devil180\include;external\sfml251-32\include;$(IncludePath)</IncludePath>
|
||||||
<LibraryPath>external\glew210\lib;external\sfml251\lib;external\devil178\lib;external\irrKlang-1.6.0\lib\Win32-visualStudio;$(LibraryPath)</LibraryPath>
|
<LibraryPath>external\glew210\lib\Release\Win32;external\sfml251-32\lib;external\devil180\lib\x86\Release;external\irrKlang-1.6.0\lib\Win32-visualStudio;$(LibraryPath)</LibraryPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
@@ -115,8 +115,8 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
<IncludePath>external\devil180\include;external\irrKlang-1.6.0\include;external\sfml251\include;external\glew210\include;$(IncludePath)</IncludePath>
|
<IncludePath>external\devil180\include;external\irrKlang-1.6.0\include;external\sfml251-32\include;external\glew210\include;$(IncludePath)</IncludePath>
|
||||||
<LibraryPath>external\sfml251\lib;external\devil180\lib\x86\Release;external\glew210\lib\Release\Win32;$(LibraryPath);external\irrKlang-1.6.0\lib\Win32-visualStudio</LibraryPath>
|
<LibraryPath>external\sfml251-32\lib;external\devil180\lib\x86\Release;external\glew210\lib\Release\Win32;$(LibraryPath);external\irrKlang-1.6.0\lib\Win32-visualStudio</LibraryPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
@@ -1,14 +1,8 @@
|
|||||||
#ifndef AUDIO_H__
|
#ifndef AUDIO_H__
|
||||||
#define AUDIO_H__
|
#define AUDIO_H__
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#include <irrKlang.h>
|
#include <irrKlang.h>
|
||||||
#include <ik_ISoundSource.h>
|
#include <ik_ISoundSource.h>
|
||||||
#else
|
|
||||||
#include "./external/irrKlang-64bit-1.6.0/include/irrKlang.h"
|
|
||||||
#include "./external/irrKlang-64bit-1.6.0/include/ik_ISoundSource.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../SQCSim-common/vector3.h"
|
#include "../SQCSim-common/vector3.h"
|
||||||
#include "define.h"
|
#include "define.h"
|
||||||
|
|
||||||
@@ -35,4 +29,4 @@ public:
|
|||||||
void PauseEngine();
|
void PauseEngine();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // AUDIO_H__
|
#endif // AUDIO_H__
|
@@ -1,68 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.18.4)
|
|
||||||
|
|
||||||
project(SQCSim-Client VERSION 0.8)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
|
||||||
set(CMAKE_STANDARD_REQUIRED True)
|
|
||||||
|
|
||||||
set(CMAKE_BUILD_DIRECTORY "./build")
|
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "../")
|
|
||||||
|
|
||||||
set(SQCSIM_COMMON_DIR "../../SQCSim-common/")
|
|
||||||
set(SQCSIM_EXTERN_DIR "../external/")
|
|
||||||
|
|
||||||
find_package(SFML COMPONENTS system window graphics REQUIRED)
|
|
||||||
find_package(DevIL REQUIRED)
|
|
||||||
find_package(OpenGL REQUIRED)
|
|
||||||
find_package(GLEW REQUIRED)
|
|
||||||
|
|
||||||
find_library(IRRKLANG_LIBRARY
|
|
||||||
NAMES libIrrKlang.so
|
|
||||||
PATHS "${SQCSIM_EXTERN_DIR}/irrKlang-64bit-1.6.0/lib/linux-gcc-64/")
|
|
||||||
|
|
||||||
include_directories(
|
|
||||||
${SQCSIM_EXTERN_DIR}/irrKlang-64bit-1.6.0/include/
|
|
||||||
${SFML_INCLUDE_DIRS}
|
|
||||||
${IL_INCLUDE_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
add_library(SQCSim-common
|
|
||||||
"${SQCSIM_COMMON_DIR}blockinfo.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}bullet.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}chunk.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}netprotocol.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}opensimplex.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}player.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}transformation.cpp"
|
|
||||||
"${SQCSIM_COMMON_DIR}world.cpp"
|
|
||||||
)
|
|
||||||
|
|
||||||
add_executable(SQCSim-client
|
|
||||||
"../audio.cpp"
|
|
||||||
"../connector.cpp"
|
|
||||||
"../engine.cpp"
|
|
||||||
"../mesh.cpp"
|
|
||||||
"../openglcontext.cpp"
|
|
||||||
"../shader.cpp"
|
|
||||||
"../skybox.cpp"
|
|
||||||
"../texture.cpp"
|
|
||||||
"../textureatlas.cpp"
|
|
||||||
"../tool.cpp"
|
|
||||||
"../vertexbuffer.cpp"
|
|
||||||
"../worldrenderer.cpp"
|
|
||||||
"../main.cpp"
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(SQCSim-client PUBLIC SQCSim-common
|
|
||||||
${IRRKLANG_LIBRARY}
|
|
||||||
sfml-system
|
|
||||||
sfml-window
|
|
||||||
sfml-graphics
|
|
||||||
GL
|
|
||||||
GLU
|
|
||||||
GLEW
|
|
||||||
${IL_LIBRARIES}
|
|
||||||
${ILU_LIBRARIES}
|
|
||||||
)
|
|
||||||
|
|
@@ -1,21 +1,19 @@
|
|||||||
#ifndef CLI_DEFINE_H__
|
#ifndef CLI_DEFINE_H__
|
||||||
#define CLI_DEFINE_H__
|
#define CLI_DEFINE_H__
|
||||||
|
|
||||||
|
//#define SFML_STATIC true
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <GL/glew.h>
|
|
||||||
#include <SFML/Window.hpp>
|
#include <SFML/Window.hpp>
|
||||||
#include <SFML/Graphics.hpp>
|
#include <SFML/Graphics.hpp>
|
||||||
#include "../SQCSim-common/define.h"
|
#include "../SQCSim-common/define.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#include <GL/glew.h>
|
||||||
#include <gl/GL.h>
|
#include <gl/GL.h>
|
||||||
#include <gl/GLU.h>
|
#include <gl/GLU.h>
|
||||||
#else
|
|
||||||
#include <GL/gl.h>
|
|
||||||
#include <GL/glu.h>
|
|
||||||
#include <climits>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define NETWORK_TEST false
|
#define NETWORK_TEST false
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
|
|
58
SQCSim2021/external/sfml251-32/doc/html/AlResource_8hpp_source.html
vendored
Normal file
58
SQCSim2021/external/sfml251-32/doc/html/AlResource_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
56
SQCSim2021/external/sfml251-32/doc/html/Audio_2Export_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/Audio_2Export_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
56
SQCSim2021/external/sfml251-32/doc/html/Audio_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/Audio_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
77
SQCSim2021/external/sfml251-32/doc/html/BlendMode_8hpp_source.html
vendored
Normal file
77
SQCSim2021/external/sfml251-32/doc/html/BlendMode_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
60
SQCSim2021/external/sfml251-32/doc/html/CircleShape_8hpp_source.html
vendored
Normal file
60
SQCSim2021/external/sfml251-32/doc/html/CircleShape_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
59
SQCSim2021/external/sfml251-32/doc/html/Clipboard_8hpp_source.html
vendored
Normal file
59
SQCSim2021/external/sfml251-32/doc/html/Clipboard_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
59
SQCSim2021/external/sfml251-32/doc/html/Clock_8hpp_source.html
vendored
Normal file
59
SQCSim2021/external/sfml251-32/doc/html/Clock_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
71
SQCSim2021/external/sfml251-32/doc/html/Color_8hpp_source.html
vendored
Normal file
71
SQCSim2021/external/sfml251-32/doc/html/Color_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
57
SQCSim2021/external/sfml251-32/doc/html/Config_8hpp_source.html
vendored
Normal file
57
SQCSim2021/external/sfml251-32/doc/html/Config_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
70
SQCSim2021/external/sfml251-32/doc/html/ContextSettings_8hpp_source.html
vendored
Normal file
70
SQCSim2021/external/sfml251-32/doc/html/ContextSettings_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
61
SQCSim2021/external/sfml251-32/doc/html/Context_8hpp_source.html
vendored
Normal file
61
SQCSim2021/external/sfml251-32/doc/html/Context_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
60
SQCSim2021/external/sfml251-32/doc/html/ConvexShape_8hpp_source.html
vendored
Normal file
60
SQCSim2021/external/sfml251-32/doc/html/ConvexShape_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
74
SQCSim2021/external/sfml251-32/doc/html/Cursor_8hpp_source.html
vendored
Normal file
74
SQCSim2021/external/sfml251-32/doc/html/Cursor_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
61
SQCSim2021/external/sfml251-32/doc/html/Drawable_8hpp_source.html
vendored
Normal file
61
SQCSim2021/external/sfml251-32/doc/html/Drawable_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
58
SQCSim2021/external/sfml251-32/doc/html/Err_8hpp_source.html
vendored
Normal file
58
SQCSim2021/external/sfml251-32/doc/html/Err_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
146
SQCSim2021/external/sfml251-32/doc/html/Event_8hpp_source.html
vendored
Normal file
146
SQCSim2021/external/sfml251-32/doc/html/Event_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
60
SQCSim2021/external/sfml251-32/doc/html/FileInputStream_8hpp_source.html
vendored
Normal file
60
SQCSim2021/external/sfml251-32/doc/html/FileInputStream_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
63
SQCSim2021/external/sfml251-32/doc/html/Font_8hpp_source.html
vendored
Normal file
63
SQCSim2021/external/sfml251-32/doc/html/Font_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
70
SQCSim2021/external/sfml251-32/doc/html/Ftp_8hpp_source.html
vendored
Normal file
70
SQCSim2021/external/sfml251-32/doc/html/Ftp_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
60
SQCSim2021/external/sfml251-32/doc/html/GlResource_8hpp_source.html
vendored
Normal file
60
SQCSim2021/external/sfml251-32/doc/html/GlResource_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
70
SQCSim2021/external/sfml251-32/doc/html/Glsl_8hpp_source.html
vendored
Normal file
70
SQCSim2021/external/sfml251-32/doc/html/Glsl_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
63
SQCSim2021/external/sfml251-32/doc/html/Glyph_8hpp_source.html
vendored
Normal file
63
SQCSim2021/external/sfml251-32/doc/html/Glyph_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
98
SQCSim2021/external/sfml251-32/doc/html/GpuPreference_8hpp.html
vendored
Normal file
98
SQCSim2021/external/sfml251-32/doc/html/GpuPreference_8hpp.html
vendored
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>SFML - Simple and Fast Multimedia Library</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;"/>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
|
||||||
|
<link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" />
|
||||||
|
<script type="text/javascript" src="jquery.js"></script>
|
||||||
|
<script type="text/javascript" src="dynsections.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="banner-container">
|
||||||
|
<div id="banner">
|
||||||
|
<span id="sfml">SFML 2.5.1</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="content">
|
||||||
|
<!-- Generated by Doxygen 1.8.14 -->
|
||||||
|
<div id="navrow1" class="tabs">
|
||||||
|
<ul class="tablist">
|
||||||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||||
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||||
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
||||||
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||||
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
||||||
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div id="navrow2" class="tabs2">
|
||||||
|
<ul class="tablist">
|
||||||
|
<li><a href="files.html"><span>File List</span></a></li>
|
||||||
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div id="nav-path" class="navpath">
|
||||||
|
<ul>
|
||||||
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_c0a853e81d6f1c1f0a3eb7a27dc24256.html">SFML</a></li> </ul>
|
||||||
|
</div>
|
||||||
|
</div><!-- top -->
|
||||||
|
<div class="header">
|
||||||
|
<div class="summary">
|
||||||
|
<a href="#define-members">Macros</a> </div>
|
||||||
|
<div class="headertitle">
|
||||||
|
<div class="title">GpuPreference.hpp File Reference</div> </div>
|
||||||
|
</div><!--header-->
|
||||||
|
<div class="contents">
|
||||||
|
|
||||||
|
<p>Headers.
|
||||||
|
<a href="#details">More...</a></p>
|
||||||
|
<div class="textblock"><code>#include <SFML/Config.hpp></code><br />
|
||||||
|
</div>
|
||||||
|
<p><a href="GpuPreference_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||||
|
<table class="memberdecls">
|
||||||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
||||||
|
Macros</h2></td></tr>
|
||||||
|
<tr class="memitem:ab0233c2d867cbd561036ed2440a4fec0"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="GpuPreference_8hpp.html#ab0233c2d867cbd561036ed2440a4fec0">SFML_DEFINE_DISCRETE_GPU_PREFERENCE</a></td></tr>
|
||||||
|
<tr class="memdesc:ab0233c2d867cbd561036ed2440a4fec0"><td class="mdescLeft"> </td><td class="mdescRight">A macro to encourage usage of the discrete GPU. <a href="#ab0233c2d867cbd561036ed2440a4fec0">More...</a><br /></td></tr>
|
||||||
|
<tr class="separator:ab0233c2d867cbd561036ed2440a4fec0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||||
|
</table>
|
||||||
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||||
|
<div class="textblock"><p>Headers. </p>
|
||||||
|
<p>File containing SFML_DEFINE_DISCRETE_GPU_PREFERENCE </p>
|
||||||
|
|
||||||
|
<p class="definition">Definition in file <a class="el" href="GpuPreference_8hpp_source.html">GpuPreference.hpp</a>.</p>
|
||||||
|
</div><h2 class="groupheader">Macro Definition Documentation</h2>
|
||||||
|
<a id="ab0233c2d867cbd561036ed2440a4fec0"></a>
|
||||||
|
<h2 class="memtitle"><span class="permalink"><a href="#ab0233c2d867cbd561036ed2440a4fec0">◆ </a></span>SFML_DEFINE_DISCRETE_GPU_PREFERENCE</h2>
|
||||||
|
|
||||||
|
<div class="memitem">
|
||||||
|
<div class="memproto">
|
||||||
|
<table class="memname">
|
||||||
|
<tr>
|
||||||
|
<td class="memname">#define SFML_DEFINE_DISCRETE_GPU_PREFERENCE</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div><div class="memdoc">
|
||||||
|
|
||||||
|
<p>A macro to encourage usage of the discrete GPU. </p>
|
||||||
|
<p>In order to inform the Nvidia/AMD driver that an SFML application could benefit from using the more powerful discrete GPU, special symbols have to be publicly exported from the final executable.</p>
|
||||||
|
<p>SFML defines a helper macro to easily do this.</p>
|
||||||
|
<p>Place SFML_DEFINE_DISCRETE_GPU_PREFERENCE in the global scope of a source file that will be linked into the final executable. Typically it is best to place it where the main function is also defined. </p>
|
||||||
|
|
||||||
|
<p class="definition">Definition at line <a class="el" href="GpuPreference_8hpp_source.html#l00069">69</a> of file <a class="el" href="GpuPreference_8hpp_source.html">GpuPreference.hpp</a>.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- contents -->
|
||||||
|
</div>
|
||||||
|
<div id="footer-container">
|
||||||
|
<div id="footer">
|
||||||
|
SFML is licensed under the terms and conditions of the <a href="https://www.sfml-dev.org/license.php">zlib/png license</a>.<br>
|
||||||
|
Copyright © Laurent Gomila ::
|
||||||
|
Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen</a> ::
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
56
SQCSim2021/external/sfml251-32/doc/html/GpuPreference_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/GpuPreference_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
56
SQCSim2021/external/sfml251-32/doc/html/Graphics_2Export_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/Graphics_2Export_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
56
SQCSim2021/external/sfml251-32/doc/html/Graphics_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/Graphics_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
71
SQCSim2021/external/sfml251-32/doc/html/Http_8hpp_source.html
vendored
Normal file
71
SQCSim2021/external/sfml251-32/doc/html/Http_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
62
SQCSim2021/external/sfml251-32/doc/html/Image_8hpp_source.html
vendored
Normal file
62
SQCSim2021/external/sfml251-32/doc/html/Image_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
62
SQCSim2021/external/sfml251-32/doc/html/InputSoundFile_8hpp_source.html
vendored
Normal file
62
SQCSim2021/external/sfml251-32/doc/html/InputSoundFile_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
59
SQCSim2021/external/sfml251-32/doc/html/InputStream_8hpp_source.html
vendored
Normal file
59
SQCSim2021/external/sfml251-32/doc/html/InputStream_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
64
SQCSim2021/external/sfml251-32/doc/html/IpAddress_8hpp_source.html
vendored
Normal file
64
SQCSim2021/external/sfml251-32/doc/html/IpAddress_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
71
SQCSim2021/external/sfml251-32/doc/html/Joystick_8hpp_source.html
vendored
Normal file
71
SQCSim2021/external/sfml251-32/doc/html/Joystick_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
160
SQCSim2021/external/sfml251-32/doc/html/Keyboard_8hpp_source.html
vendored
Normal file
160
SQCSim2021/external/sfml251-32/doc/html/Keyboard_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
59
SQCSim2021/external/sfml251-32/doc/html/Listener_8hpp_source.html
vendored
Normal file
59
SQCSim2021/external/sfml251-32/doc/html/Listener_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
60
SQCSim2021/external/sfml251-32/doc/html/Lock_8hpp_source.html
vendored
Normal file
60
SQCSim2021/external/sfml251-32/doc/html/Lock_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
56
SQCSim2021/external/sfml251-32/doc/html/Main_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/Main_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
59
SQCSim2021/external/sfml251-32/doc/html/MemoryInputStream_8hpp_source.html
vendored
Normal file
59
SQCSim2021/external/sfml251-32/doc/html/MemoryInputStream_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
68
SQCSim2021/external/sfml251-32/doc/html/Mouse_8hpp_source.html
vendored
Normal file
68
SQCSim2021/external/sfml251-32/doc/html/Mouse_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
69
SQCSim2021/external/sfml251-32/doc/html/Music_8hpp_source.html
vendored
Normal file
69
SQCSim2021/external/sfml251-32/doc/html/Music_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
59
SQCSim2021/external/sfml251-32/doc/html/Mutex_8hpp_source.html
vendored
Normal file
59
SQCSim2021/external/sfml251-32/doc/html/Mutex_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
58
SQCSim2021/external/sfml251-32/doc/html/NativeActivity_8hpp_source.html
vendored
Normal file
58
SQCSim2021/external/sfml251-32/doc/html/NativeActivity_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
56
SQCSim2021/external/sfml251-32/doc/html/Network_2Export_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/Network_2Export_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
56
SQCSim2021/external/sfml251-32/doc/html/Network_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/Network_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
60
SQCSim2021/external/sfml251-32/doc/html/NonCopyable_8hpp_source.html
vendored
Normal file
60
SQCSim2021/external/sfml251-32/doc/html/NonCopyable_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
56
SQCSim2021/external/sfml251-32/doc/html/OpenGL_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/OpenGL_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
60
SQCSim2021/external/sfml251-32/doc/html/OutputSoundFile_8hpp_source.html
vendored
Normal file
60
SQCSim2021/external/sfml251-32/doc/html/OutputSoundFile_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
61
SQCSim2021/external/sfml251-32/doc/html/Packet_8hpp_source.html
vendored
Normal file
61
SQCSim2021/external/sfml251-32/doc/html/Packet_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
68
SQCSim2021/external/sfml251-32/doc/html/PrimitiveType_8hpp_source.html
vendored
Normal file
68
SQCSim2021/external/sfml251-32/doc/html/PrimitiveType_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
66
SQCSim2021/external/sfml251-32/doc/html/Rect_8hpp_source.html
vendored
Normal file
66
SQCSim2021/external/sfml251-32/doc/html/Rect_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
60
SQCSim2021/external/sfml251-32/doc/html/RectangleShape_8hpp_source.html
vendored
Normal file
60
SQCSim2021/external/sfml251-32/doc/html/RectangleShape_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
67
SQCSim2021/external/sfml251-32/doc/html/RenderStates_8hpp_source.html
vendored
Normal file
67
SQCSim2021/external/sfml251-32/doc/html/RenderStates_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
73
SQCSim2021/external/sfml251-32/doc/html/RenderTarget_8hpp_source.html
vendored
Normal file
73
SQCSim2021/external/sfml251-32/doc/html/RenderTarget_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
62
SQCSim2021/external/sfml251-32/doc/html/RenderTexture_8hpp_source.html
vendored
Normal file
62
SQCSim2021/external/sfml251-32/doc/html/RenderTexture_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
67
SQCSim2021/external/sfml251-32/doc/html/RenderWindow_8hpp_source.html
vendored
Normal file
67
SQCSim2021/external/sfml251-32/doc/html/RenderWindow_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
66
SQCSim2021/external/sfml251-32/doc/html/Sensor_8hpp_source.html
vendored
Normal file
66
SQCSim2021/external/sfml251-32/doc/html/Sensor_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
76
SQCSim2021/external/sfml251-32/doc/html/Shader_8hpp_source.html
vendored
Normal file
76
SQCSim2021/external/sfml251-32/doc/html/Shader_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
67
SQCSim2021/external/sfml251-32/doc/html/Shape_8hpp_source.html
vendored
Normal file
67
SQCSim2021/external/sfml251-32/doc/html/Shape_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
58
SQCSim2021/external/sfml251-32/doc/html/Sleep_8hpp_source.html
vendored
Normal file
58
SQCSim2021/external/sfml251-32/doc/html/Sleep_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
57
SQCSim2021/external/sfml251-32/doc/html/SocketHandle_8hpp_source.html
vendored
Normal file
57
SQCSim2021/external/sfml251-32/doc/html/SocketHandle_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
61
SQCSim2021/external/sfml251-32/doc/html/SocketSelector_8hpp_source.html
vendored
Normal file
61
SQCSim2021/external/sfml251-32/doc/html/SocketSelector_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
67
SQCSim2021/external/sfml251-32/doc/html/Socket_8hpp_source.html
vendored
Normal file
67
SQCSim2021/external/sfml251-32/doc/html/Socket_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
60
SQCSim2021/external/sfml251-32/doc/html/SoundBufferRecorder_8hpp_source.html
vendored
Normal file
60
SQCSim2021/external/sfml251-32/doc/html/SoundBufferRecorder_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
63
SQCSim2021/external/sfml251-32/doc/html/SoundBuffer_8hpp_source.html
vendored
Normal file
63
SQCSim2021/external/sfml251-32/doc/html/SoundBuffer_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
61
SQCSim2021/external/sfml251-32/doc/html/SoundFileFactory_8hpp_source.html
vendored
Normal file
61
SQCSim2021/external/sfml251-32/doc/html/SoundFileFactory_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
64
SQCSim2021/external/sfml251-32/doc/html/SoundFileReader_8hpp_source.html
vendored
Normal file
64
SQCSim2021/external/sfml251-32/doc/html/SoundFileReader_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
59
SQCSim2021/external/sfml251-32/doc/html/SoundFileWriter_8hpp_source.html
vendored
Normal file
59
SQCSim2021/external/sfml251-32/doc/html/SoundFileWriter_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
61
SQCSim2021/external/sfml251-32/doc/html/SoundRecorder_8hpp_source.html
vendored
Normal file
61
SQCSim2021/external/sfml251-32/doc/html/SoundRecorder_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
64
SQCSim2021/external/sfml251-32/doc/html/SoundSource_8hpp_source.html
vendored
Normal file
64
SQCSim2021/external/sfml251-32/doc/html/SoundSource_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
63
SQCSim2021/external/sfml251-32/doc/html/SoundStream_8hpp_source.html
vendored
Normal file
63
SQCSim2021/external/sfml251-32/doc/html/SoundStream_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
62
SQCSim2021/external/sfml251-32/doc/html/Sound_8hpp_source.html
vendored
Normal file
62
SQCSim2021/external/sfml251-32/doc/html/Sound_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
66
SQCSim2021/external/sfml251-32/doc/html/Sprite_8hpp_source.html
vendored
Normal file
66
SQCSim2021/external/sfml251-32/doc/html/Sprite_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
61
SQCSim2021/external/sfml251-32/doc/html/String_8hpp_source.html
vendored
Normal file
61
SQCSim2021/external/sfml251-32/doc/html/String_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
56
SQCSim2021/external/sfml251-32/doc/html/System_2Export_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/System_2Export_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
56
SQCSim2021/external/sfml251-32/doc/html/System_8hpp_source.html
vendored
Normal file
56
SQCSim2021/external/sfml251-32/doc/html/System_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
63
SQCSim2021/external/sfml251-32/doc/html/TcpListener_8hpp_source.html
vendored
Normal file
63
SQCSim2021/external/sfml251-32/doc/html/TcpListener_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
65
SQCSim2021/external/sfml251-32/doc/html/TcpSocket_8hpp_source.html
vendored
Normal file
65
SQCSim2021/external/sfml251-32/doc/html/TcpSocket_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
69
SQCSim2021/external/sfml251-32/doc/html/Text_8hpp_source.html
vendored
Normal file
69
SQCSim2021/external/sfml251-32/doc/html/Text_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
69
SQCSim2021/external/sfml251-32/doc/html/Texture_8hpp_source.html
vendored
Normal file
69
SQCSim2021/external/sfml251-32/doc/html/Texture_8hpp_source.html
vendored
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user