OpenGL window surface

This commit is contained in:
Gregory Wells
2025-07-10 08:40:38 -04:00
parent 255a8e36e9
commit f8bae555cf
3 changed files with 47 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
#include "opengl_loader.h"
#include "instance/opengl_instance.h"
#include "surface/opengl_surface.h"
gnInstanceFunctions loadOpenGLInstanceFunctions() {
return (gnInstanceFunctions){
@@ -9,6 +10,11 @@ gnInstanceFunctions loadOpenGLInstanceFunctions() {
// ._gnQueueCanPresentToSurface = metalCanQueuePresentToSurface,
// ._gnCreateOutputDevice = createMetalOutputDevice,
// ._gnDestroyOutputDevice = destroyMetalOutputDevice,
#ifdef GN_PLATFORM_LINUX
#ifdef GN_WINDOW_X11
._gnCreateX11WindowSurface = createGLXContext,
#endif
#endif
// ._gnCreateMacOSWindowSurface = createMetalSurface,
// ._gnDestroyWindowSurface = destroyMetalWindowSurface,
// ._gnGetSurfaceDetails = getMetalSurfaceDetails