From 98cf7a322976a6abb0da8973588bd059e8b57d83 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sun, 1 Sep 2024 17:45:50 +0800 Subject: [PATCH] update --- src/c1/{main.cpp => threePoints.cpp} | 21 +++++++++++++++++---- xmake.lua | 4 ++-- 2 files changed, 19 insertions(+), 6 deletions(-) rename src/c1/{main.cpp => threePoints.cpp} (75%) diff --git a/src/c1/main.cpp b/src/c1/threePoints.cpp similarity index 75% rename from src/c1/main.cpp rename to src/c1/threePoints.cpp index 5bdfe4a..45372bf 100644 --- a/src/c1/main.cpp +++ b/src/c1/threePoints.cpp @@ -1,12 +1,18 @@ -#include -#include -#include #include #include +#include #include #include #include +void render(){ + glBegin(GL_POINTS); + glVertex3f(0.0f,0.5f,0.0f); + glVertex3f(-0.5,-0.5,0.0f); + glVertex3f(0.5f,-0.5f,0.0f); + glEnd(); +} + int main(){ // 初始化GLFW if(glfwInit()==0){ @@ -28,10 +34,17 @@ int main(){ std::cout<<"OpenGL version:"<