Reorganized project again.
This commit is contained in:
parent
54b9e82789
commit
3acb78f247
210
CMakeLists.txt
210
CMakeLists.txt
@ -83,138 +83,138 @@ set(EHS_SOURCES
|
||||
include/ShdPtr.h
|
||||
include/WkPtr.h
|
||||
|
||||
src/Database/DVar.cpp include/Database/DVar.h
|
||||
src/database/DVar.cpp include/database/DVar.h
|
||||
|
||||
src/System/CPU.cpp include/System/CPU.h
|
||||
src/System/Thread.cpp include/System/Thread.h
|
||||
src/System/BaseMutex.cpp include/System/BaseMutex.h
|
||||
src/System/BaseSemaphore.cpp include/System/BaseSemaphore.h
|
||||
src/System/BaseSystem.cpp include/System/BaseSystem.h
|
||||
src/System/BaseOpen.cpp include/System/BaseOpen.h
|
||||
include/System/Architecture.h
|
||||
include/System/Mutex.h
|
||||
include/System/Open.h
|
||||
include/System/OS.h
|
||||
include/System/Semaphore.h
|
||||
include/System/System.h
|
||||
src/system/CPU.cpp include/system/CPU.h
|
||||
src/system/Thread.cpp include/system/Thread.h
|
||||
src/system/BaseMutex.cpp include/system/BaseMutex.h
|
||||
src/system/BaseSemaphore.cpp include/system/BaseSemaphore.h
|
||||
src/system/BaseSystem.cpp include/system/BaseSystem.h
|
||||
src/system/BaseOpen.cpp include/system/BaseOpen.h
|
||||
include/system/Architecture.h
|
||||
include/system/Mutex.h
|
||||
include/system/Open.h
|
||||
include/system/OS.h
|
||||
include/system/Semaphore.h
|
||||
include/system/System.h
|
||||
|
||||
src/Json/Json.cpp include/Json/Json.h
|
||||
src/Json/JsonBase.cpp include/Json/JsonBase.h
|
||||
src/Json/JsonNum.cpp include/Json/JsonNum.h
|
||||
src/Json/JsonBool.cpp include/Json/JsonBool.h
|
||||
src/Json/JsonStr.cpp include/Json/JsonStr.h
|
||||
src/Json/JsonObj.cpp include/Json/JsonObj.h
|
||||
src/Json/JsonArray.cpp include/Json/JsonArray.h
|
||||
src/Json/JsonVar.cpp include/Json/JsonVar.h
|
||||
src/json/Json.cpp include/json/Json.h
|
||||
src/json/JsonBase.cpp include/json/JsonBase.h
|
||||
src/json/JsonNum.cpp include/json/JsonNum.h
|
||||
src/json/JsonBool.cpp include/json/JsonBool.h
|
||||
src/json/JsonStr.cpp include/json/JsonStr.h
|
||||
src/json/JsonObj.cpp include/json/JsonObj.h
|
||||
src/json/JsonArray.cpp include/json/JsonArray.h
|
||||
src/json/JsonVar.cpp include/json/JsonVar.h
|
||||
|
||||
src/IO/Console.cpp include/IO/Console.h
|
||||
src/IO/RIFF_Chunk.cpp include/IO/RIFF_Chunk.h
|
||||
src/IO/RIFF.cpp include/IO/RIFF.h
|
||||
src/IO/BaseWindow.cpp include/IO/BaseWindow.h
|
||||
src/IO/BaseFile.cpp include/IO/BaseFile.h
|
||||
src/IO/Glyph.cpp include/IO/Glyph.h
|
||||
src/IO/FontAtlas.cpp include/IO/FontAtlas.h
|
||||
src/IO/BaseFileMonitor.cpp include/IO/BaseFileMonitor.h
|
||||
include/IO/COM.h
|
||||
include/IO/File.h
|
||||
include/IO/FileMonitor.h
|
||||
include/IO/Window.h
|
||||
src/io/Console.cpp include/io/Console.h
|
||||
src/io/RIFF_Chunk.cpp include/io/RIFF_Chunk.h
|
||||
src/io/RIFF.cpp include/io/RIFF.h
|
||||
src/io/BaseWindow.cpp include/io/BaseWindow.h
|
||||
src/io/BaseFile.cpp include/io/BaseFile.h
|
||||
src/io/Glyph.cpp include/io/Glyph.h
|
||||
src/io/FontAtlas.cpp include/io/FontAtlas.h
|
||||
src/io/BaseFileMonitor.cpp include/io/BaseFileMonitor.h
|
||||
include/io/COM.h
|
||||
include/io/File.h
|
||||
include/io/FileMonitor.h
|
||||
include/io/Window.h
|
||||
|
||||
src/IO/Socket/Request.cpp include/IO/Socket/Request.h
|
||||
src/IO/Socket/Response.cpp include/IO/Socket/Response.h
|
||||
src/IO/Socket/DNS.cpp include/IO/Socket/DNS.h
|
||||
src/IO/Socket/BaseUDP.cpp include/IO/Socket/BaseUDP.h
|
||||
src/IO/Socket/BaseTCP.cpp include/IO/Socket/BaseTCP.h
|
||||
src/IO/Socket/Comms.cpp include/IO/Socket/Comms.h
|
||||
src/IO/Socket/CommsSystem.cpp include/IO/Socket/CommsSystem.h
|
||||
src/IO/Socket/Operation.cpp include/IO/Socket/Operation.h
|
||||
src/IO/Socket/Fragments.cpp include/IO/Socket/Fragments.h
|
||||
src/IO/Socket/Endpoint.cpp include/IO/Socket/Endpoint.h
|
||||
src/IO/Socket/SSL.cpp include/IO/Socket/SSL.h
|
||||
src/io/socket/Request.cpp include/io/socket/Request.h
|
||||
src/io/socket/Response.cpp include/io/socket/Response.h
|
||||
src/io/socket/DNS.cpp include/io/socket/DNS.h
|
||||
src/io/socket/BaseUDP.cpp include/io/socket/BaseUDP.h
|
||||
src/io/socket/BaseTCP.cpp include/io/socket/BaseTCP.h
|
||||
src/io/socket/Comms.cpp include/io/socket/Comms.h
|
||||
src/io/socket/CommsSystem.cpp include/io/socket/CommsSystem.h
|
||||
src/io/socket/Operation.cpp include/io/socket/Operation.h
|
||||
src/io/socket/Fragments.cpp include/io/socket/Fragments.h
|
||||
src/io/socket/Endpoint.cpp include/io/socket/Endpoint.h
|
||||
src/io/socket/SSL.cpp include/io/socket/SSL.h
|
||||
|
||||
src/IO/Socket/RestAPIs/Twitch.cpp include/IO/Socket/RestAPIs/Twitch.h
|
||||
src/IO/Socket/RestAPIs/TwitchChat.cpp include/IO/Socket/RestAPIs/TwitchChat.h
|
||||
src/IO/Socket/RestAPIs/Spotify.cpp include/IO/Socket/RestAPIs/Spotify.h
|
||||
include/IO/Socket/Socket.h
|
||||
include/IO/Socket/TCP.h
|
||||
include/IO/Socket/UDP.h
|
||||
include/IO/Socket/Utils.h
|
||||
src/io/socket/rest/Twitch.cpp include/io/socket/rest/Twitch.h
|
||||
src/io/socket/rest/TwitchChat.cpp include/io/socket/rest/TwitchChat.h
|
||||
src/io/socket/rest/Spotify.cpp include/io/socket/rest/Spotify.h
|
||||
include/io/socket/Socket.h
|
||||
include/io/socket/TCP.h
|
||||
include/io/socket/UDP.h
|
||||
include/io/socket/Utils.h
|
||||
|
||||
src/IO/Audio/Audio.cpp include/IO/Audio/Audio.h
|
||||
src/IO/Audio/BaseAudioDevice.cpp include/IO/Audio/BaseAudioDevice.h
|
||||
src/IO/Audio/AudioCodec.cpp include/IO/Audio/AudioCodec.h
|
||||
include/IO/Audio/AudioDevice.h
|
||||
src/io/audio/Audio.cpp include/io/audio/Audio.h
|
||||
src/io/audio/BaseAudioDevice.cpp include/io/audio/BaseAudioDevice.h
|
||||
src/io/audio/AudioCodec.cpp include/io/audio/AudioCodec.h
|
||||
include/io/audio/AudioDevice.h
|
||||
|
||||
src/IO/Img/PNG.cpp include/IO/Img/PNG.h
|
||||
src/IO/Img/Img.cpp include/IO/Img/Img.h
|
||||
src/IO/Img/PNG_Chunk.cpp include/IO/Img/PNG_Chunk.h
|
||||
src/IO/Img/ImgCodec.cpp include/IO/Img/ImgCodec.h
|
||||
src/io/img/PNG.cpp include/io/img/PNG.h
|
||||
src/io/img/Img.cpp include/io/img/Img.h
|
||||
src/io/img/PNG_Chunk.cpp include/io/img/PNG_Chunk.h
|
||||
src/io/img/ImgCodec.cpp include/io/img/ImgCodec.h
|
||||
|
||||
include/IO/Model/Vertex.h
|
||||
src/IO/Model/Mesh.cpp include/IO/Model/Mesh.h
|
||||
src/IO/Model/Bone.cpp include/IO/Model/Bone.h
|
||||
src/IO/Model/Model.cpp include/IO/Model/Model.h
|
||||
src/IO/Model/Animation.cpp include/IO/Model/Animation.h
|
||||
src/IO/Model/AnimBone.cpp include/IO/Model/AnimBone.h
|
||||
src/IO/Model/KeyFrame.cpp include/IO/Model/KeyFrame.h
|
||||
src/IO/Model/PropertyChange.cpp include/IO/Model/PropertyChange.h
|
||||
include/io/model/Vertex.h
|
||||
src/io/model/Mesh.cpp include/io/model/Mesh.h
|
||||
src/io/model/Bone.cpp include/io/model/Bone.h
|
||||
src/io/model/Model.cpp include/io/model/Model.h
|
||||
src/io/model/Animation.cpp include/io/model/Animation.h
|
||||
src/io/model/AnimBone.cpp include/io/model/AnimBone.h
|
||||
src/io/model/KeyFrame.cpp include/io/model/KeyFrame.h
|
||||
src/io/model/PropertyChange.cpp include/io/model/PropertyChange.h
|
||||
|
||||
src/IO/HID/ButtonState.cpp include/IO/HID/ButtonState.h
|
||||
src/IO/HID/Button.cpp include/IO/HID/Button.h
|
||||
src/IO/HID/Mouse.cpp include/IO/HID/Mouse.h
|
||||
src/IO/HID/Keyboard.cpp include/IO/HID/Keyboard.h
|
||||
src/IO/HID/HID.cpp include/IO/HID/HID.h
|
||||
src/IO/HID/InputHandler.cpp include/IO/HID/InputHandler.h
|
||||
src/IO/HID/Input.cpp include/IO/HID/Input.h
|
||||
src/io/hid/ButtonState.cpp include/io/hid/ButtonState.h
|
||||
src/io/hid/Button.cpp include/io/hid/Button.h
|
||||
src/io/hid/Mouse.cpp include/io/hid/Mouse.h
|
||||
src/io/hid/Keyboard.cpp include/io/hid/Keyboard.h
|
||||
src/io/hid/HID.cpp include/io/hid/HID.h
|
||||
src/io/hid/InputHandler.cpp include/io/hid/InputHandler.h
|
||||
src/io/hid/Input.cpp include/io/hid/Input.h
|
||||
)
|
||||
|
||||
if (IS_OS_WINDOWS)
|
||||
list(APPEND EHS_SOURCES
|
||||
src/IO/Socket/UDP_W32.cpp include/IO/Socket/UDP_W32.h
|
||||
src/IO/Socket/TCP_W32.cpp include/IO/Socket/TCP_W32.h
|
||||
src/System/Semaphore_W32.cpp include/System/Semaphore_W32.h
|
||||
src/System/System_W32.cpp include/System/System_W32.h
|
||||
src/System/Mutex_W32.cpp include/System/Mutex_W32.h
|
||||
src/System/Open_W32.cpp include/System/Open_W32.h
|
||||
src/IO/Audio/AudioDevice_W32.cpp include/IO/Audio/AudioDevice_W32.h
|
||||
src/IO/MsgBox.cpp include/IO/MsgBox.h
|
||||
src/IO/File_W32.cpp include/IO/File_W32.h
|
||||
src/IO/FileMonitor_W32.cpp include/IO/FileMonitor_W32.h
|
||||
src/IO/Window_W32.cpp include/IO/Window_W32.h
|
||||
src/IO/COM.cpp include/IO/COM.h
|
||||
src/System/CPU_MSVC_AMD64.asm src/HRNG_MSVC.asm src/Math_MSVC_AMD64.asm
|
||||
src/io/socket/UDP_W32.cpp include/io/socket/UDP_W32.h
|
||||
src/io/socket/TCP_W32.cpp include/io/socket/TCP_W32.h
|
||||
src/system/Semaphore_W32.cpp include/system/Semaphore_W32.h
|
||||
src/system/System_W32.cpp include/system/System_W32.h
|
||||
src/system/Mutex_W32.cpp include/system/Mutex_W32.h
|
||||
src/system/Open_W32.cpp include/system/Open_W32.h
|
||||
src/io/audio/audioDevice_W32.cpp include/io/audio/audioDevice_W32.h
|
||||
src/io/MsgBox.cpp include/io/MsgBox.h
|
||||
src/io/File_W32.cpp include/io/File_W32.h
|
||||
src/io/FileMonitor_W32.cpp include/io/FileMonitor_W32.h
|
||||
src/io/Window_W32.cpp include/io/Window_W32.h
|
||||
src/io/COM.cpp include/io/COM.h
|
||||
src/system/CPU_MSVC_AMD64.asm src/HRNG_MSVC.asm src/Math_MSVC_AMD64.asm
|
||||
)
|
||||
elseif (IS_OS_LINUX)
|
||||
list(APPEND EHS_SOURCES
|
||||
src/IO/Socket/UDP_BSD.cpp include/IO/Socket/UDP_BSD.h
|
||||
src/IO/Socket/TCP_BSD.cpp include/IO/Socket/TCP_BSD.h
|
||||
src/System/Semaphore_P.cpp include/System/Semaphore_P.h
|
||||
src/System/System_LNX.cpp include/System/System_LNX.h
|
||||
src/System/Open_UNX.cpp include/System/Open_UNX.h
|
||||
src/IO/File_UNX.cpp include/IO/File_UNX.h
|
||||
src/IO/FileMonitor_UNX.cpp include/IO/FileMonitor_UNX.h
|
||||
src/System/Mutex_PT.cpp include/System/Mutex_PT.h
|
||||
src/IO/Audio/AudioDevice_ALSA.cpp include/IO/Audio/AudioDevice_ALSA.h
|
||||
src/System/FileSystem.cpp include/System/FileSystem.h
|
||||
src/System/User.cpp include/System/User.h
|
||||
src/io/socket/UDP_BSD.cpp include/io/socket/UDP_BSD.h
|
||||
src/io/socket/TCP_BSD.cpp include/io/socket/TCP_BSD.h
|
||||
src/system/Semaphore_P.cpp include/system/Semaphore_P.h
|
||||
src/system/System_LNX.cpp include/system/System_LNX.h
|
||||
src/system/Open_UNX.cpp include/system/Open_UNX.h
|
||||
src/io/File_UNX.cpp include/io/File_UNX.h
|
||||
src/io/FileMonitor_UNX.cpp include/io/FileMonitor_UNX.h
|
||||
src/system/Mutex_PT.cpp include/system/Mutex_PT.h
|
||||
src/io/audio/AudioDevice_ALSA.cpp include/io/audio/AudioDevice_ALSA.h
|
||||
src/system/FileSystem.cpp include/system/FileSystem.h
|
||||
src/system/User.cpp include/system/User.h
|
||||
)
|
||||
|
||||
set(LINUX_WINDOW_SYSTEM "Wayland" CACHE STRING "Linux Window System")
|
||||
|
||||
if (LINUX_WINDOW_SYSTEM STREQUAL "Wayland")
|
||||
add_compile_definitions(LWE_WS_WAYLAND)
|
||||
list(APPEND EHS_SOURCES src/IO/xdg-shell-protocol.c include/IO/xdg-shell-client-protocol.h src/IO/Window_Way.cpp include/IO/Window_Way.h)
|
||||
add_compile_definitions(EHS_WS_WAYLAND)
|
||||
list(APPEND EHS_SOURCES src/io/xdg-shell-protocol.c include/io/xdg-shell-client-protocol.h src/io/Window_Way.cpp include/io/Window_Way.h)
|
||||
message("Building for Wayland.")
|
||||
elseif (LINUX_WINDOW_SYSTEM STREQUAL "XCB")
|
||||
add_compile_definitions(LWE_WS_XCB)
|
||||
list(APPEND EHS_SOURCES src/IO/Window_XCB.cpp include/IO/Window_XCB.h)
|
||||
add_compile_definitions(EHS_WS_XCB)
|
||||
list(APPEND EHS_SOURCES src/io/Window_XCB.cpp include/io/Window_XCB.h)
|
||||
message("Building for XCB.")
|
||||
endif ()
|
||||
|
||||
if (IS_ARCH_AMD64)
|
||||
list(APPEND EHS_SOURCES src/System/CPU_GCC_AMD64.asm src/HRNG_GCC.asm src/Math_GCC_AMD64.asm)
|
||||
list(APPEND EHS_SOURCES src/system/CPU_GCC_AMD64.asm src/HRNG_GCC.asm src/Math_GCC_AMD64.asm)
|
||||
elseif (IS_ARCH_ARM64)
|
||||
list(APPEND EHS_SOURCES src/System/CPU_ARM64.cpp src/HRNG_ARM64.cpp src/Math_GCC_ARM64.s)
|
||||
list(APPEND EHS_SOURCES src/system/CPU_ARM64.cpp src/HRNG_ARM64.cpp src/Math_GCC_ARM64.s)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
@ -259,7 +259,7 @@ if (IS_ARCH_AMD64)
|
||||
if (IS_OS_WINDOWS)
|
||||
target_link_libraries(StrToHash ws2_32 avrt LWE)
|
||||
elseif (IS_OS_LINUX)
|
||||
#add_compile_definitions(LWE_WOOTING)
|
||||
#add_compile_definitions(EHS_WOOTING)
|
||||
|
||||
target_link_libraries(StrToHash z xcb xcb-cursor xcb-xfixes xcb-xinput wayland-client z asound EHS)
|
||||
endif ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "EHS.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class Anchor : UInt_8
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <initializer_list>
|
||||
#include <algorithm>
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
/// A helper class for C-style arrays.
|
||||
/// @tparam T Array data type to use.
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "Str.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Base64
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "Array.h"
|
||||
#include "Log.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class BaseObj
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "Types.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Color3
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "Types.h"
|
||||
#include "Color3.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Color4
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "Serializer.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Data
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "EHS.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class DataType : UInt_8
|
||||
{
|
||||
|
@ -1,17 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(NDEBUG)
|
||||
#define LWE_RELEASE
|
||||
#define EHS_RELEASE
|
||||
#else
|
||||
#define LWE_DEBUG
|
||||
#define EHS_DEBUG
|
||||
#endif
|
||||
|
||||
#include "Types.h"
|
||||
#include "System/OS.h"
|
||||
#include "system/OS.h"
|
||||
#include "Version.h"
|
||||
#include "Str.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class MemoryPattern
|
||||
{
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "Serializer.h"
|
||||
#include "Str.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Encryption
|
||||
{
|
||||
|
@ -3,10 +3,10 @@
|
||||
#include "EHS.h"
|
||||
#include "Vector.h"
|
||||
#include "BaseObj.h"
|
||||
#include "System/Mutex.h"
|
||||
#include "System/Thread.h"
|
||||
#include "system/Mutex.h"
|
||||
#include "system/Thread.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class GarbageCollector
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "Types.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class HRNG
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename V>
|
||||
class HashNode
|
||||
|
@ -1,51 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef LWE_IPV4_HEADER
|
||||
#define LWE_IPV4_HEADER 60
|
||||
#endif
|
||||
|
||||
#ifndef LWE_IPV6_HEADER
|
||||
#define LWE_IPV6_HEADER 40
|
||||
#endif
|
||||
|
||||
#ifndef LWE_UDP_HEADER
|
||||
#define LWE_UDP_HEADER 8
|
||||
#endif
|
||||
|
||||
#ifndef LWE_IPV4_UDP_PAYLOAD
|
||||
#define LWE_IPV4_UDP_PAYLOAD (LWE_UINT_16_MAX - LWE_IPV4_HEADER - LWE_UDP_HEADER)
|
||||
#endif
|
||||
|
||||
#ifndef LWE_IPV6_UDP_PAYLOAD
|
||||
#define LWE_IPV6_UDP_PAYLOAD (LWE_UINT_16_MAX - LWE_IPV6_HEADER - LWE_UDP_HEADER)
|
||||
#endif
|
||||
|
||||
namespace lwe
|
||||
{
|
||||
enum class AddrType
|
||||
{
|
||||
IPV6,
|
||||
IPV4
|
||||
};
|
||||
|
||||
enum class ContentType
|
||||
{
|
||||
APP_MULTIPART_FORMDATA,
|
||||
APP_FORMURLENCODED,
|
||||
APP_JAVASCRIPT,
|
||||
APP_JSON,
|
||||
APP_XML,
|
||||
TEXT_PLAIN,
|
||||
TEXT_HTML,
|
||||
TEXT_XML,
|
||||
NONE
|
||||
};
|
||||
|
||||
#if defined(LWE_OS_WINDOWS)
|
||||
typedef UInt_64 Socket;
|
||||
#define LWE_INVALID_SOCKET LWE_UINT_64_MAX
|
||||
#elif defined(LWE_OS_LINUX)
|
||||
typedef SInt_32 Socket;
|
||||
#define LWE_INVALID_SOCKET (SInt_32)0xffffffff
|
||||
#endif
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
/// Test
|
||||
template<typename T>
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "Log.h"
|
||||
#include "Link.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T, typename N = UInt_64>
|
||||
class LinkedList
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "UTF.h"
|
||||
#include "Str.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
/// A helper class for holding error information and handling them.
|
||||
/// @tparam T The character data type to use.
|
||||
@ -99,18 +99,18 @@ namespace lwe
|
||||
};
|
||||
}
|
||||
|
||||
#ifndef LWE_LOG_INT
|
||||
#ifdef LWE_DEBUG
|
||||
#define LWE_LOG_INT(type, code, msg) Log::Raise({{type, GetAcronym_8(), LWE_FILE, LWE_FUNC, Str_8::FromNum((UInt_32)LWE_LINE)}, code, msg})
|
||||
#ifndef EHS_LOG_INT
|
||||
#ifdef EHS_DEBUG
|
||||
#define EHS_LOG_INT(type, code, msg) Log::Raise({{type, GetAcronym_8(), EHS_FILE, EHS_FUNC, Str_8::FromNum((UInt_32)EHS_LINE)}, code, msg})
|
||||
#else
|
||||
#define LWE_LOG_INT(type, code, msg) Log::Raise({{type, GetAcronym_8(), LWE_FUNC}, code, msg})
|
||||
#define EHS_LOG_INT(type, code, msg) Log::Raise({{type, GetAcronym_8(), EHS_FUNC}, code, msg})
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef LWE_LOG
|
||||
#ifdef LWE_DEBUG
|
||||
#define LWE_LOG(type, code, msg) lwe::Log::Raise({{type, lwe::GetAppName_8(), LWE_FILE, LWE_FUNC, lwe::Str_8::FromNum((lwe::UInt_32)LWE_LINE)}, code, msg})
|
||||
#ifndef EHS_LOG
|
||||
#ifdef EHS_DEBUG
|
||||
#define EHS_LOG(type, code, msg) lwe::Log::Raise({{type, lwe::GetAppName_8(), EHS_FILE, EHS_FUNC, lwe::Str_8::FromNum((lwe::UInt_32)EHS_LINE)}, code, msg})
|
||||
#else
|
||||
#define LWE_LOG(type, code, msg) lwe::Log::Raise({{type, lwe::GetAppName_8(), LWE_FUNC}, code, msg})
|
||||
#define EHS_LOG(type, code, msg) lwe::Log::Raise({{type, lwe::GetAppName_8(), EHS_FUNC}, code, msg})
|
||||
#endif
|
||||
#endif
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "Vec2.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T = float>
|
||||
class Mat2
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "Vec3.h"
|
||||
#include "Mat2.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T = float>
|
||||
class Mat3
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "Vec4.h"
|
||||
#include "Vec3.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template <typename T = float>
|
||||
class Mat4
|
||||
|
@ -1,10 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "System/CPU.h"
|
||||
#include "system/CPU.h"
|
||||
|
||||
#define LWE_LOW_WORD(x) *((int*)&x) + 1
|
||||
#define EHS_LOW_WORD(x) *((int*)&x) + 1
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Math
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "EHS.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T>
|
||||
class PRNG
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "DataType.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
struct PtrData
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "Mat4.h"
|
||||
#include "Vec3.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T>
|
||||
class Quat
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename N>
|
||||
class Range
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "Vec3.h"
|
||||
#include "Vec4.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T>
|
||||
class Rect
|
||||
@ -130,7 +130,7 @@ namespace lwe
|
||||
case 3:
|
||||
return h;
|
||||
default:
|
||||
LWE_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Rectangle.");
|
||||
EHS_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Rectangle.");
|
||||
return x;
|
||||
}
|
||||
}
|
||||
@ -148,7 +148,7 @@ namespace lwe
|
||||
case 3:
|
||||
return h;
|
||||
default:
|
||||
LWE_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Rectangle.");
|
||||
EHS_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Rectangle.");
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "Log.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
/// This container is useful for sorting arrays efficiently.
|
||||
template<typename T, typename N = UInt_64>
|
||||
@ -87,7 +87,7 @@ namespace lwe
|
||||
{
|
||||
if (index >= size)
|
||||
{
|
||||
LWE_LOG_INT("Warning", 0, "Cannot insert value at " + Str_8::FromNum(index) + " because it is outside of array range of " + size + ".");
|
||||
EHS_LOG_INT("Warning", 0, "Cannot insert value at " + Str_8::FromNum(index) + " because it is outside of array range of " + size + ".");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "Mat3.h"
|
||||
#include "Mat4.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename N = UInt_64>
|
||||
class Serializer
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "PtrData.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T>
|
||||
class ShdPtr
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class SearchPattern
|
||||
{
|
||||
@ -250,7 +250,7 @@ namespace lwe
|
||||
return operator+=(FromNum(num));
|
||||
}
|
||||
|
||||
#ifdef LWE_OS_WINDOWS
|
||||
#ifdef EHS_OS_WINDOWS
|
||||
/// Concatenates with the given number.
|
||||
/// @param [in] num The given number to concatenate.
|
||||
/// @returns The result.
|
||||
@ -390,7 +390,7 @@ namespace lwe
|
||||
return operator+(FromNum(num));
|
||||
}
|
||||
|
||||
#ifdef LWE_OS_WINDOWS
|
||||
#ifdef EHS_OS_WINDOWS
|
||||
/// Concatenates with the given number.
|
||||
/// @param [in] str The given number to Concatenate.
|
||||
/// @returns The result.
|
||||
@ -1543,7 +1543,7 @@ namespace lwe
|
||||
return r.GetReverse();
|
||||
}
|
||||
|
||||
#ifdef LWE_OS_WINDOWS
|
||||
#ifdef EHS_OS_WINDOWS
|
||||
/// Converts the given number into a string.
|
||||
/// @returns The result.
|
||||
static Str<T, N> FromNum(const DWORD num)
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
#include "EHS.h"
|
||||
#include "BaseObj.h"
|
||||
#include "System/Thread.h"
|
||||
#include "System/Semaphore.h"
|
||||
#include "system/Thread.h"
|
||||
#include "system/Semaphore.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
typedef void (*TaskCb)(Serializer<UInt_64>*);
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "Str.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Type
|
||||
{
|
||||
|
@ -1,33 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include "System/OS.h"
|
||||
#include "system/OS.h"
|
||||
|
||||
#define LWE_MAX_PATH 0x104
|
||||
#define LWE_UINT_8_MAX 0xFF
|
||||
#define LWE_SINT_8_MAX 0x7F
|
||||
#define LWE_SINT_8_MIN 0x80
|
||||
#define LWE_UINT_16_MAX 0xFFFF
|
||||
#define LWE_SINT_16_MAX 0x7FFF
|
||||
#define LWE_SINT_16_MIN 0x8000
|
||||
#define LWE_UINT_24_MAX 0xFFFFFF
|
||||
#define LWE_SINT_24_MAX 0x7FFFFF
|
||||
#define LWE_SINT_24_MIN 0x800000
|
||||
#define LWE_UINT_32_MAX 0xFFFFFFFF
|
||||
#define LWE_SINT_32_MAX 0x7FFFFFFF
|
||||
#define LWE_SINT_32_MIN 0x80000000
|
||||
#define LWE_UINT_64_MAX 0xFFFFFFFFFFFFFFFF
|
||||
#define LWE_SINT_64_MAX 0x7FFFFFFFFFFFFFFF
|
||||
#define LWE_SINT_64_MIN 0x8000000000000000
|
||||
#define LWE_FLOAT_MAX 3.40282e+038f
|
||||
#define LWE_FLOAT_MIN 1.17549e-038f
|
||||
#define LWE_DOUBLE_MAX 1.79769e+308
|
||||
#define LWE_DOUBLE_MIN 2.22507e-308
|
||||
#define LWE_LDOUBLE_MAX 1.79769e+308
|
||||
#define LWE_LDOUBLE_MIN 2.22507e-308
|
||||
#define EHS_MAX_PATH 0x104
|
||||
#define EHS_UINT_8_MAX 0xFF
|
||||
#define EHS_SINT_8_MAX 0x7F
|
||||
#define EHS_SINT_8_MIN 0x80
|
||||
#define EHS_UINT_16_MAX 0xFFFF
|
||||
#define EHS_SINT_16_MAX 0x7FFF
|
||||
#define EHS_SINT_16_MIN 0x8000
|
||||
#define EHS_UINT_24_MAX 0xFFFFFF
|
||||
#define EHS_SINT_24_MAX 0x7FFFFF
|
||||
#define EHS_SINT_24_MIN 0x800000
|
||||
#define EHS_UINT_32_MAX 0xFFFFFFFF
|
||||
#define EHS_SINT_32_MAX 0x7FFFFFFF
|
||||
#define EHS_SINT_32_MIN 0x80000000
|
||||
#define EHS_UINT_64_MAX 0xFFFFFFFFFFFFFFFF
|
||||
#define EHS_SINT_64_MAX 0x7FFFFFFFFFFFFFFF
|
||||
#define EHS_SINT_64_MIN 0x8000000000000000
|
||||
#define EHS_FLOAT_MAX 3.40282e+038f
|
||||
#define EHS_FLOAT_MIN 1.17549e-038f
|
||||
#define EHS_DOUBLE_MAX 1.79769e+308
|
||||
#define EHS_DOUBLE_MIN 2.22507e-308
|
||||
#define EHS_LDOUBLE_MAX 1.79769e+308
|
||||
#define EHS_LDOUBLE_MIN 2.22507e-308
|
||||
|
||||
#define LWE_INFINITE LWE_UINT_32_MAX
|
||||
#define EHS_INFINITE EHS_UINT_32_MAX
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
typedef unsigned char Byte;
|
||||
typedef char Char_8;
|
||||
@ -43,11 +43,11 @@ namespace lwe
|
||||
typedef signed int SInt_32;
|
||||
typedef int Int_32;
|
||||
|
||||
#if defined(LWE_OS_WINDOWS)
|
||||
#if defined(EHS_OS_WINDOWS)
|
||||
typedef unsigned long long UInt_64;
|
||||
typedef signed long long SInt_64;
|
||||
typedef long long Int_64;
|
||||
#elif defined(LWE_OS_LINUX)
|
||||
#elif defined(EHS_OS_LINUX)
|
||||
typedef unsigned long UInt_64;
|
||||
typedef signed long SInt_64;
|
||||
typedef long Int_64;
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "Str.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class URI
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "Str.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class CharEncoding
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T>
|
||||
class UniPtr
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "Types.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Util
|
||||
{
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "Math.h"
|
||||
#include "Log.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T = float>
|
||||
class Vec2
|
||||
@ -229,7 +229,7 @@ namespace lwe
|
||||
case 1:
|
||||
return y;
|
||||
default:
|
||||
LWE_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 3.");
|
||||
EHS_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 3.");
|
||||
return x;
|
||||
}
|
||||
}
|
||||
@ -243,7 +243,7 @@ namespace lwe
|
||||
case 1:
|
||||
return y;
|
||||
default:
|
||||
LWE_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 3.");
|
||||
EHS_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 3.");
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "Vec2.h"
|
||||
#include "Log.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T>
|
||||
class Vec3
|
||||
@ -266,7 +266,7 @@ namespace lwe
|
||||
case 2:
|
||||
return z;
|
||||
default:
|
||||
LWE_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 3.");
|
||||
EHS_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 3.");
|
||||
return x;
|
||||
}
|
||||
}
|
||||
@ -282,7 +282,7 @@ namespace lwe
|
||||
case 2:
|
||||
return z;
|
||||
default:
|
||||
LWE_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 3.");
|
||||
EHS_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 3.");
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "Vec3.h"
|
||||
#include "Log.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T>
|
||||
class Vec4
|
||||
@ -279,7 +279,7 @@ namespace lwe
|
||||
case 3:
|
||||
return w;
|
||||
default:
|
||||
LWE_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 4.");
|
||||
EHS_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 4.");
|
||||
return x;
|
||||
}
|
||||
}
|
||||
@ -297,7 +297,7 @@ namespace lwe
|
||||
case 3:
|
||||
return w;
|
||||
default:
|
||||
LWE_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 4.");
|
||||
EHS_LOG_INT("Error", 0, "Index of, \"" + Str_8::FromNum(index) + "\" is out of range for a Vector 4.");
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "Util.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
/// An array with extra memory pre-allocated for fast pushes.
|
||||
/// @tparam T Array data type to use.
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "Types.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
/// A helper class for storing version major, minor and patch.
|
||||
class Version
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "ShdPtr.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T>
|
||||
class WkPtr
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "BaseObj.h"
|
||||
#include "Str.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class DType : UInt_8
|
||||
{
|
@ -6,7 +6,7 @@
|
||||
#include "Array.h"
|
||||
#include "Serializer.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class Mode
|
||||
{
|
@ -3,13 +3,13 @@
|
||||
#include "EHS.h"
|
||||
#include "Str.h"
|
||||
|
||||
#define LWE_FE_NONE 0x00
|
||||
#define LWE_FE_MODIFIED 0x01
|
||||
#define LWE_FE_DELETED 0x02
|
||||
#define LWE_FE_MOVED 0x04
|
||||
#define LWE_FE_OPENED 0x08
|
||||
#define EHS_FE_NONE 0x00
|
||||
#define EHS_FE_MODIFIED 0x01
|
||||
#define EHS_FE_DELETED 0x02
|
||||
#define EHS_FE_MOVED 0x04
|
||||
#define EHS_FE_OPENED 0x08
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class BaseFileMonitor
|
||||
{
|
@ -4,9 +4,9 @@
|
||||
#include "Str.h"
|
||||
#include "Vec2.h"
|
||||
#include "Rect.h"
|
||||
#include "HID/Input.h"
|
||||
#include "hid/Input.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class WindowState : UInt_8
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "EHS.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class Parity : UInt_8
|
||||
{
|
@ -4,11 +4,11 @@
|
||||
#include "UTF.h"
|
||||
#include "Array.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
#if defined(LWE_OS_WINDOWS)
|
||||
#if defined(EHS_OS_WINDOWS)
|
||||
typedef void* ConsoleHdl;
|
||||
#elif defined(LWE_OS_LINUX)
|
||||
#elif defined(EHS_OS_LINUX)
|
||||
typedef int ConsoleHdl;
|
||||
#endif
|
||||
|
||||
@ -18,7 +18,7 @@ namespace lwe
|
||||
static ConsoleHdl hdlOut;
|
||||
static ConsoleHdl hdlIn;
|
||||
|
||||
#if defined(LWE_OS_WINDOWS)
|
||||
#if defined(EHS_OS_WINDOWS)
|
||||
static bool isConsole;
|
||||
#endif
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
#include "EHS.h"
|
||||
|
||||
#if defined(LWE_OS_WINDOWS)
|
||||
#if defined(EHS_OS_WINDOWS)
|
||||
#include "File_W32.h"
|
||||
#elif defined(LWE_OS_LINUX)
|
||||
#elif defined(EHS_OS_LINUX)
|
||||
#include "File_UNX.h"
|
||||
#endif
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(LWE_OS_WINDOWS)
|
||||
#if defined(EHS_OS_WINDOWS)
|
||||
#include "FileMonitor_W32.h"
|
||||
#elif defined(LWE_OS_LINUX)
|
||||
#elif defined(EHS_OS_LINUX)
|
||||
#include "FileMonitor_UNX.h"
|
||||
#endif
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "BaseFileMonitor.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class FileMonitor : public BaseFileMonitor
|
||||
{
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "BaseFileMonitor.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class FileMonitor final : public BaseFileMonitor
|
||||
{
|
@ -8,7 +8,7 @@
|
||||
#include "Serializer.h"
|
||||
#include "BaseFile.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class File : public BaseFile
|
||||
{
|
@ -8,7 +8,7 @@
|
||||
#include "Serializer.h"
|
||||
#include "BaseFile.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class File : public BaseFile
|
||||
{
|
@ -5,10 +5,10 @@
|
||||
|
||||
#include "Glyph.h"
|
||||
#include "Anchor.h"
|
||||
#include "Img/Img.h"
|
||||
#include "Model/Mesh.h"
|
||||
#include "img/Img.h"
|
||||
#include "model/Mesh.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class FontAtlas : public Img
|
||||
{
|
@ -5,7 +5,7 @@
|
||||
#include "Rect.h"
|
||||
#include "Serializer.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Glyph
|
||||
{
|
@ -6,7 +6,7 @@
|
||||
#include "Serializer.h"
|
||||
#include "RIFF_Chunk.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class RIFF
|
||||
{
|
@ -4,7 +4,7 @@
|
||||
#include "Str.h"
|
||||
#include "Serializer.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class RIFF_Chunk
|
||||
{
|
@ -2,12 +2,12 @@
|
||||
|
||||
#include "EHS.h"
|
||||
|
||||
#if defined(LWE_OS_WINDOWS)
|
||||
#if defined(EHS_OS_WINDOWS)
|
||||
#include "Window_W32.h"
|
||||
#elif defined(LWE_OS_LINUX)
|
||||
#if defined(LWE_WS_XCB)
|
||||
#elif defined(EHS_OS_LINUX)
|
||||
#if defined(EHS_WS_XCB)
|
||||
#include "Window_XCB.h"
|
||||
#elif defined(LWE_WS_WAYLAND)
|
||||
#elif defined(EHS_WS_WAYLAND)
|
||||
#include "Window_Way.h"
|
||||
#endif
|
||||
#endif
|
@ -12,7 +12,7 @@
|
||||
#define WM_HIDE_CURSOR (WM_APP + 3)
|
||||
#define WM_SHOW_CURSOR (WM_APP + 4)
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Window : public BaseWindow
|
||||
{
|
@ -5,7 +5,7 @@
|
||||
#include <wayland-client.h>
|
||||
#include "xdg-shell-client-protocol.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Window : public BaseWindow
|
||||
{
|
@ -6,7 +6,7 @@
|
||||
#include <xcb/xcb.h>
|
||||
#include <xcb/xinput.h>
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Window : public BaseWindow
|
||||
{
|
@ -8,7 +8,7 @@
|
||||
#include "Array.h"
|
||||
#include "AudioCodec.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Audio : public Resource
|
||||
{
|
@ -2,9 +2,9 @@
|
||||
|
||||
#include "EHS.h"
|
||||
#include "Str.h"
|
||||
#include "IO/File.h"
|
||||
#include "io/File.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Audio;
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
#include "EHS.h"
|
||||
|
||||
#if defined(LWE_OS_WINDOWS)
|
||||
#if defined(EHS_OS_WINDOWS)
|
||||
#include "AudioDevice_W32.h"
|
||||
#elif defined(LWE_OS_LINUX)
|
||||
#elif defined(EHS_OS_LINUX)
|
||||
#include "AudioDevice_ALSA.h"
|
||||
#endif
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class AudioDevice : public BaseAudioDevice
|
||||
{
|
@ -10,7 +10,7 @@
|
||||
|
||||
struct IMMDevice;
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class AudioDevice : public BaseAudioDevice
|
||||
{
|
@ -6,7 +6,7 @@
|
||||
#include "Array.h"
|
||||
#include "DataType.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class AudioDeviceType
|
||||
{
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "Str.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Button
|
||||
{
|
@ -3,7 +3,7 @@
|
||||
#include "EHS.h"
|
||||
#include "Button.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class State
|
||||
{
|
@ -3,9 +3,9 @@
|
||||
#include "Array.h"
|
||||
#include "ButtonState.h"
|
||||
|
||||
#define LWE_HID_UNKNOWN 0
|
||||
#define EHS_HID_UNKNOWN 0
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class HID
|
||||
{
|
@ -4,7 +4,7 @@
|
||||
#include "Serializer.h"
|
||||
#include "InputHandler.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Input
|
||||
{
|
@ -3,7 +3,7 @@
|
||||
#include "Array.h"
|
||||
#include "HID.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class InputHandler
|
||||
{
|
@ -4,9 +4,9 @@
|
||||
#include "Button.h"
|
||||
#include "HID.h"
|
||||
|
||||
#define LWE_HID_KEYBOARD 0x02
|
||||
#define EHS_HID_KEYBOARD 0x02
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Keyboard : public HID
|
||||
{
|
@ -5,9 +5,9 @@
|
||||
#include "Button.h"
|
||||
#include "HID.h"
|
||||
|
||||
#define LWE_HID_MOUSE 0x01
|
||||
#define EHS_HID_MOUSE 0x01
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Mouse : public HID
|
||||
{
|
@ -4,7 +4,7 @@
|
||||
#include "Str.h"
|
||||
#include "ImgCodec.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class Resampling : UInt_8
|
||||
{
|
@ -2,9 +2,9 @@
|
||||
|
||||
#include "EHS.h"
|
||||
#include "Str.h"
|
||||
#include "IO/File.h"
|
||||
#include "io/File.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Img;
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "PNG_Chunk.h"
|
||||
#include "Img.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class PNG
|
||||
{
|
@ -4,7 +4,7 @@
|
||||
#include "Str.h"
|
||||
#include "Serializer.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class PNG_Chunk
|
||||
{
|
@ -4,7 +4,7 @@
|
||||
#include "Array.h"
|
||||
#include "KeyFrame.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class AnimBone
|
||||
{
|
@ -5,7 +5,7 @@
|
||||
#include "Array.h"
|
||||
#include "AnimBone.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Animation
|
||||
{
|
@ -4,7 +4,7 @@
|
||||
#include "Quat.h"
|
||||
#include "Mat4.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Bone
|
||||
{
|
@ -7,7 +7,7 @@
|
||||
#include "Mat4.h"
|
||||
#include "PropertyChange.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class KeyFrame
|
||||
{
|
@ -4,7 +4,7 @@
|
||||
#include "Array.h"
|
||||
#include "Vertex.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
const Array<Vertex_f> portraitGuiVerts({
|
||||
{{0.0f, 0.0f, 1.0f}, {0.0f, 0.0f, -1.0f}, {0.0f, 0.0f}},
|
@ -2,12 +2,12 @@
|
||||
|
||||
#include "EHS.h"
|
||||
#include "Array.h"
|
||||
#include "IO/File.h"
|
||||
#include "io/File.h"
|
||||
#include "Mesh.h"
|
||||
#include "Bone.h"
|
||||
#include "Animation.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class ModelEncoding : UInt_8
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "EHS.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class ChangeType : UInt_8
|
||||
{
|
@ -5,7 +5,7 @@
|
||||
#include "Vec2.h"
|
||||
#include "Color4.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
template<typename T = float>
|
||||
class Vertex
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "Socket.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class BaseTCP
|
||||
{
|
@ -4,7 +4,7 @@
|
||||
#include "Str.h"
|
||||
#include "Socket.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class BaseUDP
|
||||
{
|
@ -11,7 +11,7 @@
|
||||
|
||||
#include "Utils.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class CommsSystem;
|
||||
class Endpoint;
|
@ -5,7 +5,7 @@
|
||||
#include "Array.h"
|
||||
#include "Serializer.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Endpoint;
|
||||
class Operation;
|
@ -4,7 +4,7 @@
|
||||
#include "Str.h"
|
||||
#include "Socket.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class DNS
|
||||
{
|
@ -5,12 +5,12 @@
|
||||
#include "BaseObj.h"
|
||||
#include "Vector.h"
|
||||
#include "Serializer.h"
|
||||
#include "IO/Socket/Socket.h"
|
||||
#include "io/socket/Socket.h"
|
||||
|
||||
#include "Utils.h"
|
||||
#include "Fragments.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Comms;
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "Utils.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Fragments
|
||||
{
|
@ -4,7 +4,7 @@
|
||||
#include "Str.h"
|
||||
#include "Serializer.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class CommsSystem;
|
||||
class Comms;
|
@ -3,10 +3,10 @@
|
||||
#include "EHS.h"
|
||||
#include "Vector.h"
|
||||
#include "Str.h"
|
||||
#include "Json/Json.h"
|
||||
#include "json/Json.h"
|
||||
#include "Socket.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
enum class Verb
|
||||
{
|
@ -3,10 +3,10 @@
|
||||
#include "EHS.h"
|
||||
#include "Vector.h"
|
||||
#include "Str.h"
|
||||
#include "Json/Json.h"
|
||||
#include "json/Json.h"
|
||||
#include "Socket.h"
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
class Response
|
||||
{
|
@ -9,7 +9,7 @@
|
||||
typedef struct ssl_ctx_st SSL_CTX;
|
||||
typedef struct ssl_st SSL;
|
||||
|
||||
namespace lwe
|
||||
namespace ehs
|
||||
{
|
||||
/// A class for handling the HTTP(S) TCP socket layer.
|
||||
class SSL : public TCP
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user