From ddcec9cb6426caa46e71d6ec4d024b9e7071dd1a Mon Sep 17 00:00:00 2001 From: ZtRXR Date: Sat, 29 Jun 2024 00:05:41 +0800 Subject: [PATCH] update --- src/test_window.cpp | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/src/test_window.cpp b/src/test_window.cpp index 7137909..69fa79e 100644 --- a/src/test_window.cpp +++ b/src/test_window.cpp @@ -4,6 +4,10 @@ #include #include +static int CreateShader(const std::string& vertexShader, const std::string& fragmentShader){ + unsigned int program = glCreateProgram(); + unsigned int vs = glCreateShader(GL_VERTEX_SHADER); +} int tests::glfw_window(unsigned width,unsigned height, std::string title) { @@ -28,17 +32,35 @@ int tests::glfw_window(unsigned width,unsigned height, std::string title) std::cout<<"-- OPEN_GL_VERSION: "<