Working on fixing stb
This commit is contained in:
@ -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)
|
@ -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);
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user