mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
e0fe3c8dec
vulkan: fixed msaa vulkan: fixed some validation errors input: fixed bug with mwheel etc failing to register screenshot_360: default to vid width/height instead of assuming a megascreeny images: reworked Image_ResampleTexture to handle image formats in a more generic way console: toggle command now accepts two args to toggle the cvar between skyrooms: fixed a couple of bugs. x11-egl: should actually work now wayland: fixed up some omissions. still needs more work but should at least be somewhat tolerable now. server: be a little more friendly towards ktx server: added sv_use_dns cvar, to report reverse-dns instead of ip addresses. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5491 fc73d0e0-1445-4013-8a0c-d673dee63da5
38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
#ifndef __GL_VIDEGL_H__
|
|
#define __GL_VIDEGL_H__
|
|
|
|
#include "quakedef.h"
|
|
#define NativeWindowType EGLNativeWindowType //for old egl versions
|
|
#include <EGL/egl.h>
|
|
#ifndef _WIN32
|
|
#include <dlfcn.h>
|
|
#endif
|
|
|
|
#ifndef EGL_PLATFORM_X11_KHR
|
|
#define EGL_PLATFORM_X11_KHR 0x31D5 //EGL_KHR_platform_x11
|
|
#define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6 //an attrib
|
|
#endif
|
|
|
|
#ifndef EGL_PLATFORM_WAYLAND_KHR
|
|
#define EGL_PLATFORM_WAYLAND_KHR 0x31D8 //EGL_KHR_platform_wayland
|
|
#endif
|
|
|
|
#ifndef EGL_PLATFORM_WIN32
|
|
#define EGL_PLATFORM_WIN32 0 //no meaningful value.
|
|
#endif
|
|
|
|
void *EGL_Proc(char *f);
|
|
void EGL_UnloadLibrary(void);
|
|
qboolean EGL_LoadLibrary(char *driver);
|
|
void EGL_Shutdown(void);
|
|
void EGL_SwapBuffers (void);
|
|
|
|
qboolean EGL_InitDisplay (rendererstate_t *info, int eglplat, void *ndpy, EGLNativeDisplayType dpyid, EGLConfig *outconfig);
|
|
qboolean EGL_InitWindow (rendererstate_t *info, int eglplat, void *nwindow, EGLNativeWindowType windowid, EGLConfig cfg);
|
|
//qboolean EGL_Init (rendererstate_t *info, unsigned char *palette, int eglplatform, void *nwindow, void *ndpy, EGLNativeWindowType owindow, EGLNativeDisplayType odpy);
|
|
|
|
//once you've created an egl display and got an egl config, some windowing systems require querying said egl config to create the window properly.
|
|
extern EGLDisplay egldpy;
|
|
extern EGLBoolean (EGLAPIENTRY *qeglGetConfigAttrib)(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
|
|
|
|
#endif
|