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:"<