php-glfw
php-glfw copied to clipboard
OpenGL 4.6 Support
This Branch serves as a starting point for OpenGL 4.6 Support.
I initially went with 4.1 because I wanted to keep MacOS fully compatible.
Before this can be merged, some mechanisms need to be integrated to properly check for compatibility. Also a lot of functions are not properly mapped / ported on this branch which has to be fixed before we even consider merging this to master.
Building this on Mac currently fails for me with two errors:
[...]
phpglfw_functions.c:4166:66: error: incompatible integer to pointer conversion passing 'zend_long' (aka 'long long') to parameter of type 'const void *' [-Wint-conversion]
4166 | glVertexAttribPointer(index, size, type, normalized, stride, offset);
| ^~~~~~
[...]
phpglfw_functions.c:6157:26: error: incompatible integer to pointer conversion passing 'zend_long' (aka 'long long') to parameter of type 'GLsync' (aka 'struct __GLsync *') [-Wint-conversion]
6157 | RETURN_BOOL(glIsSync(sync));
| ^~~~
[...]
Specs:
- M1 MacBook Pro, 16-inch, 2021
- macOS 15.0.1
- PHP 8.3.12
Full logs:
Hey @Yogarine sorry, for reacting to this lately. MacOS does unfortunately not support OpenGL4.6.
This branch will only support Linux and Windows.