Working on fixing stb

This commit is contained in:
2021-09-30 11:44:58 -07:00
parent fd6b9e5c84
commit 7ce46d3e44
7 changed files with 18 additions and 24 deletions

View File

@ -3,10 +3,8 @@
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
project(${GAME_NAME} VERSION ${GAME_VERSION})
file(GLOB_RECURSE SOURCES ${CMAKE_SOURCE_DIR}/*.c)
file(GLOB_RECURSE HEADERS ${CMAKE_SOURCE_DIR}/*.h)
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.c)
file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
add_executable(${PROJECT_NAME} ${HEADERS} ${SOURCES})
target_link_libraries(${PROJECT_NAME} src glfw)
target_link_libraries(${PROJECT_NAME} src glfw glad_gl_core_33)

View File

@ -27,7 +27,8 @@ int32_t main() {
// Load GLAD
glfwMakeContextCurrent(window);
glfwSwapInterval(0);
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
gladLoadGL((GLADloadfunc)glfwGetProcAddress);
// gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
// Setup window listeners
glfwSetWindowSizeCallback(window, &glfwOnResize);

View File

@ -4,10 +4,12 @@
// https://opensource.org/licenses/MIT
#pragma once
#include <src/libs.h>
#include "src/display/render.h"
#include "src/game/game.h"
#include "src/input/input.h"
#include <glad/gl.h>
#include <GLFW/glfw3.h>
#include <libs.h>
#include <display/render.h>
#include <game/game.h>
#include <input/input.h>
#define WINDOW_WIDTH_DEFAULT 1280
#define WINDOW_HEIGHT_DEFAULT WINDOW_WIDTH_DEFAULT/16*9