27 Commits
Author SHA1 Message Date
Eric Anholt c7a91844de Don't forget to install the wgl headers.
Fixes #26
2014-05-13 12:36:43 -07:00
Eric Anholt 568533441f Move __stdcall into the parens for function pointer definitions.
MSVC 2010 appears to require that it be located there.
2014-04-10 13:37:47 -07:00
Eric Anholt e7d3088d71 win32: Add support for wglUseFontBitmaps().
Fixes #10.
2014-03-27 15:33:21 -07:00
Fredrik Höglund e20b3ce6c7 Fix EGLDisplay parameters in epoxy functions
EGLDisplay is typedefed as a pointer.
2014-02-12 00:56:57 +01:00
Eric Anholt 67a1ad4f6c Add limited support for the KHRONOS_* defines from khrplatform.h.
The only way these get used is when you choose to include epoxy/gl.h
but EGL/egl.h.  I'm not sure that's something I want to actually
support, but piglit happened to do so, and this gets things working.

There's not as much support here as in real khrplatform.h, but then
there's no EGL for windows.  And seriously, compilers support 64-bit
and float types, why would you even build this complexity?
2014-02-06 14:50:22 -08:00
Eric Anholt f10bff9bc0 Avoid polluting the compiler's namespace with our own stuff.
We can't completely avoid it, since gl's headers use these defines for
their header guards, and we really do need to stop the system GL
headers from doing anything.

Fixes #14
2014-01-22 01:00:56 -08:00
Eric Anholt 9bc909f5a7 win32: Convert the API to being based on function pointers, like Linux.
For performance, I want to be able to make single-context (well,
single-pixel-format-and-device) apps be able to directly call GL
functions through function pointers.  Bake that into the ABI now so I
can get a release out the door and fix this up later.

This also fixes the lack of __stdcall annotation on the
PFNWHATEVERPROC typedefs.
2013-12-17 15:08:02 -08:00
Eric Anholt 3ae4726cdb win32: Expose the dispatch table reset funtion in the public API.
Fixes #2.
2013-12-17 14:34:02 -08:00
Eric Anholt 8022cda75d Don't forget to tell our users that the epoxy GL functions are __dllimport.
This lets the compiler generate faster function calls (call through
function pointer, instead of call into a linker-generated stub func
containing jump to function pointer).
2013-12-17 12:10:34 -08:00
Eric Anholt 972989b4ce Fix copyrights on the Makefile.ams.
When initially writing the Makefiles, I started from a Makefile.am
that had ajax's copyright instead of an Intel one.  The only line I
can see that's left from the original Makefile.am is "pkgconfigdir" in
the root Makefile.am.
2013-12-16 09:20:25 -08:00
Eric Anholt 21f4346af0 Update header comments about how the implementation works. 2013-12-16 09:18:58 -08:00
Eric Anholt fa7aa87bc0 Drop the inconsistent use of #pragma once.
Apparently it's not totally portable, and the #ifdefs work fine (and
equivalently to the pragma, on some compilers).
2013-12-16 09:14:31 -08:00
Eric Anholt 982e39f188 Move the #defines into the main generated header.
I initially thought I was going to have two sets of defines you chose
from using #include, but that never ended up being necessary.
2013-12-15 20:16:01 -08:00
Eric Anholt 46e036419c Include epoxy/gl.h from epoxy/glx.h.
This gives us consistency with GL/glx.h's include of GL/gl.h.
2013-12-12 13:00:01 -08:00
Eric Anholt 1d746bfeb2 Add dispatch generation for wgl.
This is very poorly tested at this point, but survives a simple testcase.
2013-12-10 14:13:22 -08:00
Eric Anholt 0d7d26537d Conditionalize building GLX and EGL tests and headers.
Note that the generated code is still generated, they just aren't
built and installed.  The goal with that is that someone could take
the built .c and .h files and drop it into their own project, if they
want to avoid shared libs.
2013-12-06 15:50:01 -08:00
Eric Anholt 43acf7b021 Fix make distcheck.
Well, not quite.  One of the regression tests is failing with
GLXBadFBConfig in that build.  Not sure why.
2013-12-06 11:50:00 -08:00
Eric Anholt 08101c5145 Add some more defines that are present in normal gl.h 2013-12-06 11:38:41 -08:00
Eric Anholt 0270c80008 Add support for EGL.
This totally replaces the getprocaddress and dlsym code, which was
basically just stubs up until now.  The is_glx/is_egl() is also
dropped -- they weren't doing anything, and the only false answer they
could give is if the dlopen were to fail.
2013-12-05 12:38:15 -08:00
Eric Anholt 111c54992b Drop the installed _common.h headers.
I was thinking at one point that part of the build was going to
require not including the #defines from the generated code, but would
want these prototypes.  It turns out that's not the case (and if it
is, I'll just wrap the #defines in an ifdef).
2013-12-05 11:12:23 -08:00
Eric Anholt 2ba8d853b4 Add some more gl.h definitions that might be used by applications.
These in particular get used by software that was doing
GetProcAddress, and we want to be able to just drop in our gl.h
instead.
2013-12-04 23:10:13 -08:00
Eric Anholt 725b8cfc81 Add C++ guards. 2013-12-04 23:07:13 -08:00
Eric Anholt de70a2a0ab Fix a similar bug to HEAD~2, this time in epoxy_has_glx_extension(). 2013-12-04 19:22:13 -08:00
Eric Anholt 0f67bf3f11 Fix bug in public entrypoint for epoxy_glx_version()
Unfortunately, for GLX 1.4+ entrypoints (just glxGetProcAddress
currently) or extensions, if there isn't a context bound then we don't
have a dpy and screen available to provide useful debug messages.  Oh
well.
2013-12-04 19:18:31 -08:00
Eric Anholt 689abf4d4d Fix including system glx.h after our glx.h 2013-12-04 16:19:20 -08:00
Eric Anholt ed938dc4c5 Make a few more public functions actually public. 2013-11-14 11:11:33 -08:00
Eric Anholt a909eb4a22 Add the generator and build infrastructure.
Not actually working yet, but it's a snapshot to start from.
2013-10-16 11:43:11 -07:00