Hash :
d89c027e
Author :
Date :
2022-08-22T11:40:40
Add unimplemented GLX entry points to desktop GL Test: Run glxgears and hit unimplemented in ANGLE Bug: angleproject:7533 Change-Id: Ic7ed7506b6d0c5ef5022ae6899cbd6c4d351b178 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3852631 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Eddie Hatfield <eddiehatfield@google.com> Reviewed-by: Cody Northrop <cnorthrop@google.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
//
// Copyright 2022 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// entry_points_glx.h: Declares the exported GLX functions.
#ifndef LIBGL_GLX_H_
#define LIBGL_GLX_H_
#include <export.h>
#include "angle_gl.h"
#include "GLX/glxext.h"
extern "C" {
ANGLE_EXPORT const char *GL_APIENTRY glXQueryServerString(Display *dpy, int name);
ANGLE_EXPORT GLXFBConfig *GL_APIENTRY glXChooseFBConfig(Display *dpy,
int screen,
const int *attrib_list,
int *nelements);
ANGLE_EXPORT XVisualInfo GL_APIENTRY *glXChooseVisual(Display *dpy, int screen, int *attrib_list);
ANGLE_EXPORT void GL_APIENTRY glXCopyContext(Display *dpy,
GLXContext src,
GLXContext dst,
unsigned long mask);
ANGLE_EXPORT GLXContext GL_APIENTRY glXCreateContext(Display *dpy,
XVisualInfo *vis,
GLXContext shareList,
bool direct);
ANGLE_EXPORT GLXPixmap GL_APIENTRY glXCreateGLXPixmap(Display *dpy,
XVisualInfo *vis,
Pixmap pixmap);
ANGLE_EXPORT GLXContext GL_APIENTRY glXCreateNewContext(Display *dpy,
GLXFBConfig config,
int render_type,
GLXContext share_list,
bool direct);
ANGLE_EXPORT GLXPbuffer GL_APIENTRY glXCreatePbuffer(Display *dpy,
GLXFBConfig config,
const int *attrib_list);
ANGLE_EXPORT GLXPixmap GL_APIENTRY glXCreatePixmap(Display *dpy,
GLXFBConfig config,
Pixmap pixmap,
const int *attrib_list);
ANGLE_EXPORT GLXWindow GL_APIENTRY glXCreateWindow(Display *dpy,
GLXFBConfig config,
Window win,
const int *attrib_list);
ANGLE_EXPORT void GL_APIENTRY glXDestroyContext(Display *dpy, GLXContext ctx);
ANGLE_EXPORT void GL_APIENTRY glXDestroyGLXPixmap(Display *dpy, GLXPixmap pix);
ANGLE_EXPORT void GL_APIENTRY glXDestroyPbuffer(Display *dpy, GLXPbuffer pbuf);
ANGLE_EXPORT void GL_APIENTRY glXDestroyPixmap(Display *dpy, GLXPixmap pixmap);
ANGLE_EXPORT void GL_APIENTRY glXDestroyWindow(Display *dpy, GLXWindow win);
ANGLE_EXPORT const char *GL_APIENTRY glXGetClientString(Display *dpy, int name);
ANGLE_EXPORT int GL_APIENTRY glXGetConfig(Display *dpy, XVisualInfo *vis, int attrib, int *value);
ANGLE_EXPORT GLXContext GL_APIENTRY glXGetCurrentContext();
ANGLE_EXPORT Display *GL_APIENTRY glXGetCurrentDisplay();
ANGLE_EXPORT GLXDrawable GL_APIENTRY glXGetCurrentDrawable();
ANGLE_EXPORT GLXDrawable GL_APIENTRY glXGetCurrentReadDrawable();
ANGLE_EXPORT int GL_APIENTRY glXGetFBConfigAttrib(Display *dpy,
GLXFBConfig config,
int attribute,
int *value);
ANGLE_EXPORT GLXFBConfig *GL_APIENTRY glXGetFBConfigs(Display *dpy, int screen, int *nelements);
ANGLE_EXPORT __GLXextFuncPtr GL_APIENTRY glXGetProcAddress(const GLubyte *procName);
ANGLE_EXPORT void GL_APIENTRY glXGetSelectedEvent(Display *dpy,
GLXDrawable draw,
unsigned long *event_mask);
ANGLE_EXPORT XVisualInfo *GL_APIENTRY glXGetVisualFromFBConfig(Display *dpy, GLXFBConfig config);
ANGLE_EXPORT bool GL_APIENTRY glXIsDirect(Display *dpy, GLXContext ctx);
ANGLE_EXPORT bool GL_APIENTRY glXMakeContextCurrent(Display *dpy,
GLXDrawable draw,
GLXDrawable read,
GLXContext ctx);
ANGLE_EXPORT bool GL_APIENTRY glXMakeCurrent(Display *dpy, GLXDrawable drawable, GLXContext ctx);
ANGLE_EXPORT int GL_APIENTRY glXQueryContext(Display *dpy,
GLXContext ctx,
int attribute,
int *value);
ANGLE_EXPORT int GL_APIENTRY glXQueryDrawable(Display *dpy,
GLXDrawable draw,
int attribute,
unsigned int *value);
ANGLE_EXPORT bool GL_APIENTRY glXQueryExtension(Display *dpy, int *errorBase, int *eventBase);
ANGLE_EXPORT const char *GL_APIENTRY glXQueryExtensionsString(Display *dpy, int screen);
ANGLE_EXPORT bool GL_APIENTRY glXQueryVersion(Display *dpy, int *major, int *minor);
ANGLE_EXPORT void GL_APIENTRY glXSelectEvent(Display *dpy,
GLXDrawable draw,
unsigned long event_mask);
ANGLE_EXPORT void GL_APIENTRY glXSwapBuffers(Display *dpy, GLXDrawable drawable);
ANGLE_EXPORT void GL_APIENTRY glXUseXFont(Font font, int first, int count, int listBase);
ANGLE_EXPORT void GL_APIENTRY glXWaitGL();
ANGLE_EXPORT void GL_APIENTRY glXWaitX();
} // extern "C"
#endif // LIBGL_GLX_H_