osmesa_context.h
Go to the documentation of this file.
1 //========================================================================
2 // GLFW 3.3 OSMesa - www.glfw.org
3 //------------------------------------------------------------------------
4 // Copyright (c) 2016 Google Inc.
5 // Copyright (c) 2006-2016 Camilla Löwy <elmindreda@glfw.org>
6 //
7 // This software is provided 'as-is', without any express or implied
8 // warranty. In no event will the authors be held liable for any damages
9 // arising from the use of this software.
10 //
11 // Permission is granted to anyone to use this software for any purpose,
12 // including commercial applications, and to alter it and redistribute it
13 // freely, subject to the following restrictions:
14 //
15 // 1. The origin of this software must not be misrepresented; you must not
16 // claim that you wrote the original software. If you use this software
17 // in a product, an acknowledgment in the product documentation would
18 // be appreciated but is not required.
19 //
20 // 2. Altered source versions must be plainly marked as such, and must not
21 // be misrepresented as being the original software.
22 //
23 // 3. This notice may not be removed or altered from any source
24 // distribution.
25 //
26 //========================================================================
27 
28 #define OSMESA_RGBA 0x1908
29 #define OSMESA_FORMAT 0x22
30 #define OSMESA_DEPTH_BITS 0x30
31 #define OSMESA_STENCIL_BITS 0x31
32 #define OSMESA_ACCUM_BITS 0x32
33 #define OSMESA_PROFILE 0x33
34 #define OSMESA_CORE_PROFILE 0x34
35 #define OSMESA_COMPAT_PROFILE 0x35
36 #define OSMESA_CONTEXT_MAJOR_VERSION 0x36
37 #define OSMESA_CONTEXT_MINOR_VERSION 0x37
38 
39 typedef void* OSMesaContext;
40 typedef void (*OSMESAproc)(void);
41 
45 typedef int (GLAPIENTRY * PFN_OSMesaMakeCurrent)(OSMesaContext,void*,int,int,int);
46 typedef int (GLAPIENTRY * PFN_OSMesaGetColorBuffer)(OSMesaContext,int*,int*,int*,void**);
47 typedef int (GLAPIENTRY * PFN_OSMesaGetDepthBuffer)(OSMesaContext,int*,int*,int*,void**);
49 #define OSMesaCreateContextExt _glfw.osmesa.CreateContextExt
50 #define OSMesaCreateContextAttribs _glfw.osmesa.CreateContextAttribs
51 #define OSMesaDestroyContext _glfw.osmesa.DestroyContext
52 #define OSMesaMakeCurrent _glfw.osmesa.MakeCurrent
53 #define OSMesaGetColorBuffer _glfw.osmesa.GetColorBuffer
54 #define OSMesaGetDepthBuffer _glfw.osmesa.GetDepthBuffer
55 #define OSMesaGetProcAddress _glfw.osmesa.GetProcAddress
56 
57 #define _GLFW_OSMESA_CONTEXT_STATE _GLFWcontextOSMesa osmesa
58 #define _GLFW_OSMESA_LIBRARY_CONTEXT_STATE _GLFWlibraryOSMesa osmesa
59 
60 
61 // OSMesa-specific per-context data
62 //
63 typedef struct _GLFWcontextOSMesa
64 {
66  int width;
67  int height;
68  void* buffer;
69 
71 
72 // OSMesa-specific global data
73 //
74 typedef struct _GLFWlibraryOSMesa
75 {
76  void* handle;
77 
85 
87 
88 
90 void _glfwTerminateOSMesa(void);
92  const _GLFWctxconfig* ctxconfig,
93  const _GLFWfbconfig* fbconfig);
94 
GLint
int GLint
Definition: gl.h:986
_GLFWcontextOSMesa::buffer
void * buffer
Definition: osmesa_context.h:68
_GLFWlibraryOSMesa::GetColorBuffer
PFN_OSMesaGetColorBuffer GetColorBuffer
Definition: osmesa_context.h:82
GLenum
unsigned int GLenum
Definition: gl.h:978
OSMESAproc
void(* OSMESAproc)(void)
Definition: osmesa_context.h:40
PFN_OSMesaGetColorBuffer
int(GLAPIENTRY * PFN_OSMesaGetColorBuffer)(OSMesaContext, int *, int *, int *, void **)
Definition: osmesa_context.h:46
_GLFWcontextOSMesa::handle
OSMesaContext handle
Definition: osmesa_context.h:65
_GLFWlibraryOSMesa
Definition: osmesa_context.h:74
PFN_OSMesaCreateContextAttribs
OSMesaContext(GLAPIENTRY * PFN_OSMesaCreateContextAttribs)(const int *, OSMesaContext)
Definition: osmesa_context.h:43
_GLFWcontextOSMesa::width
int width
Definition: osmesa_context.h:66
_GLFWcontextOSMesa
struct _GLFWcontextOSMesa _GLFWcontextOSMesa
PFN_OSMesaGetDepthBuffer
int(GLAPIENTRY * PFN_OSMesaGetDepthBuffer)(OSMesaContext, int *, int *, int *, void **)
Definition: osmesa_context.h:47
_GLFWlibraryOSMesa::GetProcAddress
PFN_OSMesaGetProcAddress GetProcAddress
Definition: osmesa_context.h:84
_GLFWwindow
Definition: internal.h:366
GLFWglproc
void(* GLFWglproc)(void)
Client API function pointer type.
Definition: glfw3.h:1099
_GLFWctxconfig
Definition: internal.h:286
void
typedef void(GLAD_API_PTR *GLDEBUGPROC)(GLenum source
_glfwTerminateOSMesa
void _glfwTerminateOSMesa(void)
Definition: osmesa_context.c:180
_glfwCreateContextOSMesa
GLFWbool _glfwCreateContextOSMesa(_GLFWwindow *window, const _GLFWctxconfig *ctxconfig, const _GLFWfbconfig *fbconfig)
Definition: osmesa_context.c:196
_GLFWlibraryOSMesa
struct _GLFWlibraryOSMesa _GLFWlibraryOSMesa
_GLFWlibraryOSMesa::CreateContextExt
PFN_OSMesaCreateContextExt CreateContextExt
Definition: osmesa_context.h:78
PFN_OSMesaDestroyContext
void(GLAPIENTRY * PFN_OSMesaDestroyContext)(OSMesaContext)
Definition: osmesa_context.h:44
_GLFWcontextOSMesa
Definition: osmesa_context.h:63
_GLFWlibraryOSMesa::handle
void * handle
Definition: osmesa_context.h:76
OSMesaContext
void * OSMesaContext
Definition: osmesa_context.h:39
_GLFWfbconfig
Definition: internal.h:312
_GLFWcontextOSMesa::height
int height
Definition: osmesa_context.h:67
GLAPIENTRY
#define GLAPIENTRY
Definition: gl.h:138
_GLFWlibraryOSMesa::DestroyContext
PFN_OSMesaDestroyContext DestroyContext
Definition: osmesa_context.h:80
_GLFWlibraryOSMesa::GetDepthBuffer
PFN_OSMesaGetDepthBuffer GetDepthBuffer
Definition: osmesa_context.h:83
PFN_OSMesaCreateContextExt
OSMesaContext(GLAPIENTRY * PFN_OSMesaCreateContextExt)(GLenum, GLint, GLint, GLint, OSMesaContext)
Definition: osmesa_context.h:42
GLFWbool
int GLFWbool
Definition: internal.h:62
_GLFWlibraryOSMesa::CreateContextAttribs
PFN_OSMesaCreateContextAttribs CreateContextAttribs
Definition: osmesa_context.h:79
_GLFWlibraryOSMesa::MakeCurrent
PFN_OSMesaMakeCurrent MakeCurrent
Definition: osmesa_context.h:81
PFN_OSMesaMakeCurrent
int(GLAPIENTRY * PFN_OSMesaMakeCurrent)(OSMesaContext, void *, int, int, int)
Definition: osmesa_context.h:45
_glfwInitOSMesa
GLFWbool _glfwInitOSMesa(void)
Definition: osmesa_context.c:111
PFN_OSMesaGetProcAddress
GLFWglproc(GLAPIENTRY * PFN_OSMesaGetProcAddress)(const char *)
Definition: osmesa_context.h:48


mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:08