ported the University CGI demo from WINDOWS + GLUT + GLEW + GLU + OpenGL 4 to LINUX WAYLAND + EGL + GLES 2 with minimal cuts

This commit is contained in:
beno
2025-07-03 01:26:25 +02:00
commit 6c125fb35e
85 changed files with 91688 additions and 0 deletions

31
FIXES Normal file
View File

@@ -0,0 +1,31 @@
resource text files from WIN all had CRLF
add space the delete it and save
GLES2 vs GL4
the GLSL files all needed
#version 300 es
instead of
#version 330 core
also for the vertex shaders
/*this will affect all the float guys (float, vecN, matN )*/
precision mediump float;
gl_FragCoord is still a varible in gles2 ( 300 es ) , while with gl4 (330 core) needs to be declared
commented out from declarations ( gl compiler fails on redeclarations )
automatic casting of variables is not supported
added some .0 to integers in float expressions
also some cast through constructors ( i.e float(intVar) )
InstancesLoader
changed
string root = path.substr(0, path.find_last_of("\\") + 1);
to
string root = path.substr(0, path.find_last_of("/") + 1);
Main
disabled curve path drawing until rewrite using vertexbuffers ( currently using glBegin / glEnd which are not part of OpenglES 2 )