project for a (works on my devices) demo

This commit is contained in:
beno
2026-03-13 02:28:59 +01:00
parent a00ae79ab5
commit dc39a56e91
36 changed files with 3892 additions and 61 deletions

View File

@@ -0,0 +1,36 @@
#pragma once
#include <GLES2/gl2.h>
/* fails at link time,
resorting to eglGetProcAddress
#define GL_GLEXT_PROTOTYPES 1
*/
#include <GLES2/gl2ext.h>
/* aarch64-linux-gnu/include/math.h already defines it */
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327950288
#endif
/* GLES2 provides it as an extension */
#ifndef GL_DEPTH24_STENCIL8
#define GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_OES
#endif
#ifndef GL_DEPTH_STENCIL_ATTACHMENT
#define GL_DEPTH_STENCIL_ATTACHMENT GL_DEPTH_STENCIL_OES
#endif
#ifndef GL_DRAW_FRAMEBUFFER
#define GL_DRAW_FRAMEBUFFER GL_DRAW_BUFFER0_EXT
#endif
void glGenVertexArrays( GLuint n, GLuint *arrays_ptr);
void glBindVertexArray( GLuint array_ptr);
void glDrawBuffers( GLsizei n,GLenum *buffers_ptr);
void GLES_3_1_compatibility_init();