fix function to take the hook param
[AROS.git] / workbench / libs / gl / OpenGL_ABI
blob5f0db73b58472e838c0a489ec488dc7c2d67ce06
1 Description of OpenGL ABI for AROS
3 1. Library
5 Library shall be named gl.library. The initial version of the library is 20.
6 The library base variable shall be called GLBase.
8 2. Vector table
10 Library exposes OpenGL 1.3 + ARB_multitexture extension in its vector table.
11 Native API (glA) is exposed in first 30 free LVOs. The exact placement of each
12 function can be referenced in the included gl.conf.
14 All exposed library functions shall use stack call calling convention.
16 3. Library base
18 Implementation should assume that the library base WILL NOT be passed to the
19 library functions during the call. This is due to a fact that extension
20 functions retrieved via glAGetProcAddress will not follow the standard AROS
21 shared library function calling ABI. They will be called via function pointer
22 according to C calling convention.