gl.library: introduce new OpenGL ABI
[AROS.git] / workbench / libs / mesa / src / gallium / state_trackers / arosmesa / arosmesagetcurrentcontext.c
blobee14239d9a783ee014b281b7f75cc81fde9d8d3c
1 /*
2 Copyright 2009-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "arosmesa_funcs.h"
7 #include <proto/exec.h>
9 AROSMesaContext AROSMesaGetCurrentContext();
11 /*****************************************************************************
13 NAME */
15 AROS_LH0(AROSMesaContext, AROSMesaGetCurrentContext,
17 /* SYNOPSIS */
19 /* LOCATION */
20 struct Library *, MesaBase, 10, Mesa)
22 /* FUNCTION
23 Returns the currently selected GL rendering context.
25 INPUTS
27 RESULT
28 The GL rendering context which is currently active.
30 BUGS
32 INTERNALS
34 HISTORY
36 *****************************************************************************/
38 AROS_LIBFUNC_INIT
40 return AROSMesaGetCurrentContext();
42 AROS_LIBFUNC_EXIT
45 AROSMesaContext AROSMesaGetCurrentContext()
47 GET_CURRENT_CONTEXT(ctx);
49 return (AROSMesaContext)ctx;