Fixes
This commit is contained in:
10
Src/Common/CMakeLists.txt
Normal file
10
Src/Common/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
set(SRC_FILES
|
||||
"imp/cpp/Common.cpp"
|
||||
)
|
||||
|
||||
add_library(Common STATIC ${SRC_FILES})
|
||||
|
||||
target_include_directories(Common PUBLIC inc)
|
||||
target_include_directories(Common PRIVATE imp/hpp)
|
||||
|
||||
target_link_libraries(Common PUBLIC IACore SDL3::SDL3 glm::glm pugixml::pugixml)
|
||||
0
Src/Common/imp/cpp/Common.cpp
Normal file
0
Src/Common/imp/cpp/Common.cpp
Normal file
48
Src/Common/inc/Common/Base.hpp
Normal file
48
Src/Common/inc/Common/Base.hpp
Normal file
@ -0,0 +1,48 @@
|
||||
// IAEngine: 2D Game Engine by IA
|
||||
// Copyright (C) 2025 IASoft (PVT) LTD (oss@iasoft.dev)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <IACore/Exception.hpp>
|
||||
#include <IACore/Logger.hpp>
|
||||
#include <IACore/Map.hpp>
|
||||
#include <IACore/Memory.hpp>
|
||||
#include <IACore/String.hpp>
|
||||
#include <IACore/Vector.hpp>
|
||||
|
||||
#include <glm/ext/matrix_clip_space.hpp>
|
||||
#include <glm/ext/matrix_transform.hpp>
|
||||
#include <glm/ext/scalar_constants.hpp>
|
||||
#include <glm/mat4x4.hpp>
|
||||
#include <glm/vec2.hpp>
|
||||
#include <glm/vec3.hpp>
|
||||
#include <glm/vec4.hpp>
|
||||
|
||||
namespace ia::iae
|
||||
{
|
||||
STATIC CONSTEXPR IA_VERSION_TYPE ENGINE_VERSION = IA_MAKE_VERSION(1, 0, 0);
|
||||
|
||||
using Handle = INT64;
|
||||
STATIC CONSTEXPR Handle INVALID_HANDLE = -1;
|
||||
|
||||
using Vec2 = glm::vec2;
|
||||
using Vec3 = glm::vec3;
|
||||
using Vec4 = glm::vec4;
|
||||
using IVec2 = glm::ivec2;
|
||||
using IVec3 = glm::ivec3;
|
||||
using IVec4 = glm::ivec4;
|
||||
using Mat4 = glm::mat4;
|
||||
} // namespace ia::iae
|
||||
Reference in New Issue
Block a user