opengl_x11

Playing with OpenGL
git clone git://bsandro.tech/opengl_x11
Log | Files | Refs | README | LICENSE

commit 175a629e9c96b4d79e6e9693386ccc9a95665e88
parent ad95809dbab825b09804b2a1ceceb1ad09ba0e3d
Author: bsandro <email@bsandro.tech>
Date:   Sun, 19 Oct 2025 14:38:50 +0300

tesselation

Diffstat:
Mmain2.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/main2.c b/main2.c @@ -149,7 +149,7 @@ int main(int argc, char *argv[]) { glXMakeCurrent(dpy, win, ctx); //GLdouble vertices_poly[][3] = { {-2,3,0}, {-2,0,0}, {2,0,0}, { 2,3,0}, {-1,2,0}, {-1,1,0}, {1,1,0}, { 1,2,0} }; - //GLdouble vertices_poly[][3] = { {-0.5,0.9,0}, {0,-0.5,0}, {0.5,0.9,0}, {0,0.3,0} }; + //GLdouble vertices_poly[][3] = { {-1,2,0}, {0,0,0}, {1,2,0}, {0,1.5,0} }; /*GLdouble vertices_poly[][3] = { { -0.7, -0.5, 0.0 }, { -0.3, 0.3, 0.0 }, @@ -198,7 +198,8 @@ int main(int argc, char *argv[]) { } } - // doesn't work for tesselation + // this scaling doesn't work for tesselation !!! + /*glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(-10, 10, -10, 10, -1.5, 1.5);