initial commit
This commit is contained in:
7
README.md
Normal file
7
README.md
Normal 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
9
src/engine.cpp
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#include "application.h"
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
|
||||||
|
App app;
|
||||||
|
|
||||||
|
app.run();
|
||||||
|
|
||||||
|
}
|
||||||
58
src/engine.h
Executable file
58
src/engine.h
Executable 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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user