initial commit

This commit is contained in:
2025-02-02 15:40:14 -06:00
parent bf8f92b885
commit ca683b50e7
3 changed files with 74 additions and 0 deletions

7
README.md Normal file
View File

@@ -0,0 +1,7 @@
# X-001 - Engine
Some kind of cross platform desktop app using c++ imgui and vulkan
## Goal:
>- further understand the tools used to build this app

9
src/engine.cpp Executable file
View File

@@ -0,0 +1,9 @@
#include "application.h"
int main() {
App app;
app.run();
}

58
src/engine.h Executable file
View File

@@ -0,0 +1,58 @@
#pragma once
//macros
#ifdef SHDR_PATH
#define STRINGIZE(x) #x
#define STRINGIZE_VALUE_OF(x) STRINGIZE(x)
#endif
#include <iostream>
#include <stdio.h> // printf, fprintf
#include <stdlib.h> // abort
#include <vector>
#include <optional>
#include <set>
#include <cstdint> // Necessary for uint32_t
#include <limits> // Necessary for std::numeric_limits
#include <algorithm> // Necessary for std::clamp
#include <fstream>
#include <array>
#include <chrono>
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <vulkan/vulkan.h>
#include <SDL.h>
#include <SDL_video.h>
#include <SDL_vulkan.h>
#include "imgui.h"
#include "imconfig.h"
#include "imgui_internal.h"
#include "imgui_impl_sdl2.h"
#include "imgui_impl_vulkan.h"
//Forward declarations
class App;
class MouseButtonEvent;
class MouseMovedEvent;
class MouseScrolledEvent;
class KeyEvent;
class KeyTypedEvent;
class WindowEvent;
class Layer;