Have the original lighting system back and a little lightbulb model to show where the light is.

This commit is contained in:
Zed A. Shaw 2026-09-13 16:06:18 -04:00
parent 3231f747a9
commit a29494325b
143 changed files with 16360 additions and 9 deletions

View file

@ -0,0 +1,42 @@
#include <fuc2/run.hpp>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "dbc.hpp"
TEST_SET(shader_tests);
TEST_SET(model_tests);
TEST_SET(config_tests);
using namespace fuc2;
int main(int argc, char* argv[]) {
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
GLFWwindow* window = glfwCreateWindow(800, 600, "LearnOpenGL", NULL, NULL);
if (window == NULL)
{
dbc::log("Failed to create GLFW window");
glfwTerminate();
return -1;
}
glfwMakeContextCurrent(window);
// glad: load all OpenGL function pointers
// ---------------------------------------
if(!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress))
{
dbc::log("Failed to initialize GLAD");
return -1;
}
std::vector<fuc2::Set> tests{
shader_tests::TESTS,
model_tests::TESTS,
config_tests::TESTS,
};
return run_tests(tests, argc, argv);
}