2 Copyright 2011-2015, The AROS Development Team. All rights reserved.
6 #include "hostgl_ctx_manager.h"
7 #include "hostgl_types.h"
8 #include <proto/exec.h>
10 /*****************************************************************************
23 Gets value of selected parameter
27 pname - enum value of parameter
29 params - pointer to integer where the value is to be put
41 *****************************************************************************/
43 struct hostgl_context
*_ctx
= (struct hostgl_context
*)ctx
;
53 HostGL_UpdateGlobalGLXContext();
55 dpy
= HostGL_GetGlobalX11Display();
60 GLXCALL(glXGetFBConfigAttrib
, dpy
, _ctx
->framebuffer
->fbconfigs
[0], GLX_RED_SIZE
, params
);
63 GLXCALL(glXGetFBConfigAttrib
, dpy
, _ctx
->framebuffer
->fbconfigs
[0], GLX_GREEN_SIZE
, params
);
66 GLXCALL(glXGetFBConfigAttrib
, dpy
, _ctx
->framebuffer
->fbconfigs
[0], GLX_BLUE_SIZE
, params
);
69 GLXCALL(glXGetFBConfigAttrib
, dpy
, _ctx
->framebuffer
->fbconfigs
[0], GLX_ALPHA_SIZE
, params
);
75 GLXCALL(glXGetFBConfigAttrib
, dpy
, _ctx
->framebuffer
->fbconfigs
[0], GLX_DEPTH_SIZE
, params
);
78 GLXCALL(glXGetFBConfigAttrib
, dpy
, _ctx
->framebuffer
->fbconfigs
[0], GLX_STENCIL_SIZE
, params
);
80 case GL_ACCUM_RED_BITS
:
81 GLXCALL(glXGetFBConfigAttrib
, dpy
, _ctx
->framebuffer
->fbconfigs
[0], GLX_ACCUM_RED_SIZE
, params
);
83 case GL_ACCUM_GREEN_BITS
:
84 GLXCALL(glXGetFBConfigAttrib
, dpy
, _ctx
->framebuffer
->fbconfigs
[0], GLX_ACCUM_GREEN_SIZE
, params
);
86 case GL_ACCUM_BLUE_BITS
:
87 GLXCALL(glXGetFBConfigAttrib
, dpy
, _ctx
->framebuffer
->fbconfigs
[0], GLX_ACCUM_BLUE_SIZE
, params
);
89 case GL_ACCUM_ALPHA_BITS
:
90 GLXCALL(glXGetFBConfigAttrib
, dpy
, _ctx
->framebuffer
->fbconfigs
[0], GLX_ACCUM_ALPHA_SIZE
, params
);