Adding main characteristics
This commit is contained in:
parent
029acbbbb3
commit
4b5ec33d74
14 changed files with 124 additions and 8 deletions
1
src/billy_sheet.cpp
Normal file
1
src/billy_sheet.cpp
Normal file
|
@ -0,0 +1 @@
|
|||
#include "billy_sheet.hpp"
|
5
src/characteristic/adresse.cpp
Normal file
5
src/characteristic/adresse.cpp
Normal file
|
@ -0,0 +1,5 @@
|
|||
//
|
||||
// Created by postaron on 10/01/2022.
|
||||
//
|
||||
|
||||
#include "characteristic/adresse.hpp"
|
5
src/characteristic/chance.cpp
Normal file
5
src/characteristic/chance.cpp
Normal file
|
@ -0,0 +1,5 @@
|
|||
//
|
||||
// Created by postaron on 10/01/2022.
|
||||
//
|
||||
|
||||
#include "characteristic/chance.hpp"
|
1
src/characteristic/endurance.cpp
Normal file
1
src/characteristic/endurance.cpp
Normal file
|
@ -0,0 +1 @@
|
|||
#include "characteristic/endurance.hpp"
|
|
@ -7,11 +7,13 @@
|
|||
#include "window.hpp"
|
||||
|
||||
gui::Gui::Gui(gui::GuiData &data) : data(data), font("font/DejaVuSans.ttf") {
|
||||
SPDLOG_DEBUG("Creating GUI");
|
||||
ImGui::CreateContext();
|
||||
ImGui::StyleColorsDark();
|
||||
ImGui::GetIO().Fonts->AddFontFromFileTTF(font.c_str(), 18.0f);
|
||||
ImGui_ImplGlfw_InitForOpenGL(data.get_window().get_window().get(), true);
|
||||
initialized = ImGui_ImplOpenGL3_Init();
|
||||
SPDLOG_DEBUG("Initialized: {}", initialized);
|
||||
}
|
||||
|
||||
gui::Gui::~Gui() noexcept {
|
||||
|
|
|
@ -7,12 +7,10 @@
|
|||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
spdlog::set_default_logger(spdlog::stdout_color_st("console"));
|
||||
SPDLOG_DEBUG("Creating Window");
|
||||
|
||||
gui::Window window;
|
||||
gui::GuiData gui_data(window);
|
||||
|
||||
try {
|
||||
gui::Window window;
|
||||
gui::GuiData gui_data(window);
|
||||
gui::Gui gui(gui_data);
|
||||
|
||||
while (!window.should_close()) {
|
||||
|
|
|
@ -11,6 +11,7 @@ static void framebufferCallback([[maybe_unused]] GLFWwindow *glfWwindow, int wid
|
|||
}
|
||||
|
||||
gui::Window::Window() {
|
||||
SPDLOG_DEBUG("Creating Window");
|
||||
glfwSetErrorCallback(glfwErrorCallback);
|
||||
if (glfwInit() == GLFW_FALSE) {
|
||||
SPDLOG_CRITICAL("GLFW init failed.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue