Vladimír Vondruš
d366e0e7a0
GL: exposed clip / cull distance APIs.
6 years ago
Vladimír Vondruš
0e50f0feea
GL: implement {EXT,ARB}_draw_buffers{2,_blend,_indexed}.
...
I also figured out a new, faster & less verbose way to handle multiple
code paths in some cases -- why didn't I think of that earlier?
6 years ago
Vladimír Vondruš
b01818c60b
external: fail when flextGL fails.
7 years ago
Vladimír Vondruš
6acfa6c7b6
external: expose a bunch of new GL extensions.
...
ARB_sample_locations and AMD_shader_explicit_vertex_parameter /
NV_fragment_shader_barycentric for barycentic coords in the vertex
shader. The ARB extension mentions GLES but doesn't have any assigned
number, so I'm treating it as desktop-only. There's a NV variant that
does have an ES extension number, but I don't really want to add it just
because that.
7 years ago
Vladimír Vondruš
20a3fedaa4
external: GLES EXT_disjoint_timer_query now exposes glGetInteger64vEXT().
...
Not sure what for, but whatever.
7 years ago
Vladimír Vondruš
a0fa21c9fb
external: expose the OVR_multiview, OVR_multiview2 extension entrypoints.
7 years ago
Vladimír Vondruš
60c18f93a1
GL: implement time queries for WebGL 2, and workarounds, and ...
...
There's a new firefox-fake-disjoint-timer-query-webgl2 workaround and a
half-page of text listing various caveats and issues you might run into.
Also exposing them in the OpenGLTester (although quite shitty at this
point).
7 years ago
Vladimír Vondruš
32ce1f1b43
external: include KHR/khrplatform.h absolutely.
...
Otherwise it requires custom buildsystem users to add
MagnumExternal/OpenGL to include paths, causes issues in Vcpkg and so
on.
7 years ago
Vladimír Vondruš
893d5d38bc
ASTC: the pain never ends (3D formats).
...
GL has an extension, but only for ES, not on desktop. Vulkan has
nothing yet (due to there being just ARM that implements it, no other
vendor), except those being listed in a KTX format specification.
7 years ago
Vladimír Vondruš
40b8815b9d
Added sRGB formats to PixelFormats + R and RG sRGB GL texture formats.
...
The extension support is a mess, as usual. This time the ES flavor
supports something that desktop doesn't and WebGL lack those altogether.
Yay.
7 years ago
Vladimír Vondruš
be65f85e88
GL: recognize KHR_texture_compression_astc_sliced_3d.
7 years ago
Vladimír Vondruš
87a446c7ba
GL: recognizing {EXT,ANGLE}_texture_compression_dxt{1,3,5} extensions.
...
This makes it possible to test S3TC code paths on SwiftShader as well.
7 years ago
Vladimír Vondruš
435f7a9f14
GL: remove redundant defines to slim the GL headers a bit.
...
What the hell, why does the ASTC HDR extension add *the exact same*
defines as the LDR one.
7 years ago
Vladimír Vondruš
9dfe6d1ab0
external: add helpers for updating flextgl-generated headers.
7 years ago
Vladimír Vondruš
8e57060f39
Support for PVRTC compressed pixel format.
7 years ago
Vladimír Vondruš
2b9772d86a
Added generic ASTC formats and the corresponding WebGL extensions.
7 years ago
Vladimír Vondruš
7cb0c4d57d
Added BC4, BC5, BC6H and BC7 compression formats.
...
Those are now also available under WebGL 1/2 and OpenGL ES 3.O (strangely
not OpenGL ES 2.0) under EXT_texture_compression_{rgtc,bptc}. The GL names
are extra weird-ass now that all other APIs use the BC names.
7 years ago
Vladimír Vondruš
e1ab3ccf6e
GL: this extension was listed, but actually never in headers.
7 years ago
Vladimír Vondruš
15f9ec3adf
Added {EXT_texture_compression,WEBGL_compressed_texture}_s3tc_srgb extensions.
...
And silently the definitions from EXT_texture_sRGB (core since GL 2.1) as
that's where definitions for sRGB S3TC formats are hiding on desktop.
7 years ago
Vladimír Vondruš
fad30db41d
GL: fix and add a comment so I don't mess this up again in the future.
7 years ago
Vladimír Vondruš
522db683a9
external: provide the GL_VERSION_* defines in our GL headers.
...
This fixes a conflicting definition of GLsizeiptr and GLintptr when
Magnum is combined with qopengl.h from Qt on Windows. Khronos has it as
`signed long int`, whereas qopengl.h as ptrdiff_t, which is just `int`.
7 years ago
Vladimír Vondruš
6e482549d2
external: don't even attempt to load ES3.1 and ES3.2 functions on iOS.
...
Probably a missed leftover from the times where the world was still
optimistic about OpenGL on Apple platforms.
7 years ago
Vladimír Vondruš
572b64bb5c
GL: drop support for EXT_direct_state_access.
7 years ago
erikwijmans
dd4bd88df2
Switch to using eglGetCurrentDisplay instead of querying for the defualt
7 years ago
Vladimír Vondruš
87e842934b
GL: new nv-egl-incorrect-gl11-function-pointers workaround.
...
This one explicitly loads GL 1.0 and 1.0 function pointers on EGL
contexts on NVidia drivers (Linux headless boxes), because somehow the
usual statically linked functions don't behave correctly.
7 years ago
Vladimír Vondruš
5923efbdee
external: pass GL::Context to flextGLInit().
...
To make it possible to put driver-specific workaround there.
7 years ago
Vladimír Vondruš
76fb88fa1a
external: update OpenGL headers.
...
Only a cleanup in the type definitions, which is actually nice. The
desktop GL version now requires the khrplatform.h header as well.
7 years ago
Vladimír Vondruš
2c473e14a8
external: properly update the iOS templates as well.
...
Forgotten in 26ae018d4f .
7 years ago
Vladimír Vondruš
e6b7aa12fa
Updated copyright year.
7 years ago
Steeve Morin
26ae018d4f
external: fix ES2 and ES3 include paths in iOS
...
Signed-off-by: Steeve Morin <steeve.morin@gmail.com>
8 years ago
Vladimír Vondruš
82fce786d8
Split the OpenGL layer out, pt 7: renamed magnum-info to magnum-gl-info.
...
The WITH_MAGNUMINFO CMake option is now WITH_GL_INFO. No backwards
compatibility is provided, sorry.
8 years ago
Vladimír Vondruš
fc1b167bff
Split the OpenGL layer out, pt 1: moving files to a new location.
...
Minimal updates (just the include guards) so Git is hopefully able to
detect the rename and track the history properly.
Everything except Magnum::GL doesn't compile now.
8 years ago
Vladimír Vondruš
dd6c97a9ae
external: license headers for this as well.
8 years ago
Vladimír Vondruš
311f44faec
doc: step-by-step checklists for core developers and maintainers.
8 years ago
Vladimír Vondruš
2f729f6965
external: updated OpenGL headers for 4.6, related modifications.
8 years ago
Vladimír Vondruš
1f87ab7288
external: updated OpenGL headers with ES 3.2 extensions.
8 years ago
Vladimír Vondruš
3c4ff61e3a
external: preserve OpenGL/OpenAL macros in the docs.
...
Or hide them from Doxygen so it doesn't expand them to the numeric
values.
8 years ago
Vladimír Vondruš
623fa97970
Updated copyright year.
8 years ago
Vladimír Vondruš
2145ae9b96
Dropped NaCl support.
9 years ago
Vladimír Vondruš
2384d5cccd
external: define also __gl3_h_ in the OpenGL headers.
...
Fixes bad interaction with Qt and system GL headers on macOS.
9 years ago
Vladimír Vondruš
12fa6961c8
Use CMake folders also for OBJECT libraries, executables and tests.
9 years ago
Vladimír Vondruš
7a16273e5d
Updated copyright year.
9 years ago
Vladimír Vondruš
ea7fce2e7b
OpenGL: fix the README links.
...
Markdown doesn't work this way.
10 years ago
Vladimír Vondruš
7bd41d2b93
Implemented support for desktop GLES on Windows.
...
Because the library still links to the old crappy opengl32.dll, we need
to load all symbols above OpenGL 1.1, not just those that are above
OpenGL ES 2.0/3.0.
10 years ago
Vladimír Vondruš
598b5fdc1b
external: remove extension functions that are not in GLES2.
...
Moreover iOS GLES2 header doesn't have these defined, breaking the
build.
10 years ago
Vladimír Vondruš
80dc656ccc
Recognize OES_fbo_render_mipmap ES2 and WebGL 1 extension.
10 years ago
Vladimír Vondruš
a5f2eece48
external: up-to-date generated GL header for NaCl.
10 years ago
Vladimír Vondruš
889171303e
Mark EXT_shader_framebuffer_fetch as semi-supported.
10 years ago
Vladimír Vondruš
d2f8821ce7
Implemented KHR_no_error.
10 years ago
Vladimír Vondruš
4ed4cf1b56
external: updated generated GL headers.
...
Just a single bugfix, hah.
10 years ago