Commit graph

58 commits

Author SHA1 Message Date
Scott Nations
8dda434953 Now using glsloptimizer to parse and rewrite shaders.
Major enhancements to the state web server.
Added state-based shader instancing to avoid recompiles.
Fixed issue #113 - Possible bug with REGAL_STATISTICS
Corrected handling of GL_POINT_SIZE_MAX state in RegalState.
Refreshed apitrace, civetweb, libpng, and GLEW from upstream.
2014-03-27 10:14:36 -05:00
Scott Nations
fa2f167e39 Replaced mongoose code with civetweb (https://github.com/bel2125/civetweb)
Refreshed apitrace, GLEW, and FreeGLUT
2014-01-31 10:51:06 -06:00
Scott Nations
07a4ea3d8c GL_REGAL_proc_address extension adding glGetProcAddressREGAL
refresh GLEW and use glGetProcAddressREGAL in GLEW_REGAL mode
improved support of NV_path_rendering entry points
fix for glewinfo when using Regal on OSX
fix Linux build of RegalGLU and RegalGLUT
tiger example works on Linux and OSX now
2014-01-20 15:02:39 -06:00
Scott Nations
7864ed22f0 Resolve compilation error for Android NDK r9b clang toolchain.
refresh GLEW and apitrace
2014-01-08 17:21:52 -06:00
Nigel Stewart
b6bc25405b Add Emu::Quads emulation layer - work in progress, not enabled yet
Fixups for Regal::ContextInfo context limit query, GL error checking added
Modularized Mac OS X projects - iOS to follow
Add doc/config for example JSON configurations
GL Core context check for GL 3.2 onwards only
Do not strip googletest static library
Need to query provoking vertex convention for Quads emulation purposes
Default to 1024 for maxLength in Regal::Marker
For minimal footprint, optional REGAL_ENUM_TO_STRING at build-time
Respect REGAL_LOG_POINTERS and REGAL_LOG_THREAD in a few more places
2013-10-14 10:23:10 -05:00
Nigel Stewart
5157da1820 Emscripten now working for dreamtorus.
Initial scaffolding for GLX emulation on EGL/WGL/CGL.
Ppca refinements.
Add GL_NV_blend_equation_advanced and GL_NV_blend_equation_advanced_coherent support.
RegalX11.cpp added for fake X11 purposes for GLX emulation.
GLEW refresh.
Fixups for REGAL_SYS_EMSCRIPTEN_STATIC mode.
2013-08-23 09:49:09 -05:00
Nigel Stewart
89dfc6fce8 Touch-ups, mostly for emscripten. 2013-08-15 14:08:33 -05:00
Vladimir Vukicevic
ff09ad3190 Fix emscripten config; make dreamtorus work 2013-08-12 16:15:29 -04:00
Nigel Stewart
b79468111a Initial integration of apitrace as Regal dispatch layer
http://apitrace.github.io/
Update current context only when MakeCurrent call succeeds
Check parsed ES version number
2013-07-21 23:51:29 -05:00
Nigel Stewart
20b5c5379d Extend RegalPlugin to provide name based lookup.
Regal.h touch-ups for harmonizing with apitrace.
API database support for maps of per-platform types.
2013-07-06 00:17:05 -05:00
Nigel Stewart
1c72872ed1 Enable GL_CLAMP on ES2.0/3.0 and core GL contexts by remapping to equivalent GL_CLAMP_TO_EDGE
Add emulation support for glInterleavedArrays().
Add emulation support for DSA VertexArray*OffsetEXT routines.
RegalUtil.h namespace macros moved to RegalNamespace.h
2013-06-20 12:26:56 -05:00
Nigel Stewart
f649ec6e0e Android build fixups - not linking snappy and apitrace yet. 2013-06-06 09:50:51 -05:00
Nigel Stewart
0c089bf5bc DispatcherGlobal added for global (GLX/WGL/EGL) API dispatch layering.
Work-in-progress: apitrace dispatch layer for Regal, not enabled yet.
Added All.sln for VC10 purposes.
2013-06-05 23:06:03 -05:00
Nigel Stewart
1f4c135d78 Add google snappy compression library sources, for apitrace purposes.
GLX: __GLXextFuncPtr
Code dispatch refinements.
Fixups for iOS XCode projects.
2013-05-22 18:42:49 -05:00
Nigel Stewart
425835f81a Remove stale dreamtorus VC project. 2013-05-21 11:11:59 -05:00
Nigel Stewart
c54aa8b3a2 Initial implementation of on-disk texture caching.
Refinements for Android ndk-build.
2013-03-15 17:21:00 -05:00
Nigel Stewart
990380a9a7 Merge branch nacl_updates of https://github.com/sbc100/regal
Move zlib, libpng, GLU and GLUT source lists into build/foo.inc for Makefile build.
Move NACL_SDK_ROOT logic into config/Makefile.nacl
Makefile revamp - put libs in lib/$(SYSTEM) and binaries in bin/$(SYSTEM)
Add clobber target for wiping out all temps, libs and binaries
Fixups for core and compat profiles.
2013-03-14 14:10:07 -05:00
Nigel Stewart
23dfaeec15 RegalDispatchCode for direct C code output - initial implementation.
RegalSo optimizations.
Merged GLX/EGL and GL/GLES entry-point loading for Linux.  x86, x86_64 and ARM.
GLenum to string conversion refinements, prefer non-extension, ARB, KHR and so on.
GL spec database entries for maxSize of input parameters.  (vs output size)
2012-12-16 11:16:12 -06:00
Nigel Stewart
ef137d3953 Logging refinements
REGAL_SYS_FOO variables are always defined. (0 or 1)
Initialization refinement for EGL - EmuInit.py added.
Regal::Config support for EGL and GLX at runtime.
Complete list of extensions in Regal::ContextInfo
REGAL_LOG_ONCE for logging warnings and errors once only
Sampler object emulation refinements.
2012-12-12 08:17:22 -06:00
Nigel Stewart
067e24bf16 Initial implementation of sampler object emulation.
Further logging refinements.
Redbook example programs.
2012-12-07 19:21:24 -06:00
Sam Clegg
219b9d4130 move httpd out of top level dir 2012-11-16 16:18:06 -08:00
Sam Clegg
77a1eb00bb Add nmf generation to Makefile
Also, fix file suffix for nacl builds.
2012-11-16 16:15:39 -08:00
Sam Clegg
dca8cf4326 regenerate nmf file 2012-11-15 16:32:05 -08:00
Sam Clegg
deb56f19ab fix nacl example build 2012-11-15 16:32:00 -08:00
Nigel Stewart
41f45efe3f Added OpenGL ES extensions from http://www.khronos.org/registry/gles/
GLEW refresh.
Android dreamtorus icon and refinements.
Initial Api.py for OpenGL state in gl.py database.
2012-10-25 08:46:57 -05:00
Nigel Stewart
a01812e6c7 Add VC 10 projects for libs and examples. 2012-10-04 21:22:52 -05:00
Nigel Stewart
b734791038 Refactor Regal::Dispatcher into a linked-list of dispatch tables.
Add md5sum library.
Add GL_GREMEDY_frame_terminator support.
2012-09-24 08:31:59 -05:00
Nigel Stewart
0dcf2f035e Add support for REGAL_LOG_FILE environment variable.
Add REGAL_LOG for enable/disable logging.
Bugfix for RegalDispatch stepping.
2012-09-14 09:13:24 -05:00
Nigel Stewart
0d97a732d7 Resolve some VC10 build warnings. 2012-08-31 08:38:07 -05:00
Nigel Stewart
fc34980099 Implement REGAL_FORCE_ES2_PROFILE compile/environment variable for forcing ES2 mode.
Readme updates.
Resolve gcc and VC10 compilation warnings.
Merge git://github.com/greggman/regal.git iff-link-issue branch.
2012-08-30 08:20:30 -05:00
Nigel Stewart
f542d0b6ac Modularize Export.py into scrpts/regal/...
Refresh mongoose sources from github
Resolves MS compiler warnings by casting double to float for remapping.
Regal.h refinements
Initial GLX enum support for RegalToken.h
2012-08-28 07:38:34 -05:00
Nigel Stewart
acbbdbc920 Annotate gl.py with enableCap for ES 2.0 allowed glEnable caps.
Do checking in RegalDispatchEmu.cpp to avoid invalid glEnable/glDisable calls.
Tag ES 2.0 defines with .esVersions = [ 2.0 ]
Support per-function re-mapping to ES2.0 API - for example glClearDepth -> glClearDepthf
NaCL dreamtorus added.
2012-08-27 08:12:09 -05:00
Nigel Stewart
227bf34aa4 Improved REGAL_STATIC_EGL support.
Merged git://github.com/greggman/regal.git ifdef-stuff branch.
Add src/regal/RegalSystem.h to match REGAL_SYS_FOO for Regal.h.
2012-08-25 23:14:55 -05:00
Nigel Stewart
1bd8eaea10 Add EGL static dispatch initialisation for ES2/EGL static linking purposes.
Re-do ES2 dispatch table initialization.
eglMakeCurrent calls RegalMakeCurrent.
Avoid crashing if Regal::GetProcAddress points to Regal entry point. (oops!)
README.rst updates - REGAL_NO_TLS, etc.
Rename GL_REGAL_enable GL_LOADER_REGAL to GL_DRIVER_REGAL

Compile-time support for REGAL_DRIVER.
Add support for compile-time REGAL_EMULATION=0 to compile-out emulation support.
Add support for REGAL_EMULATION environment variable - replaces REGAL_NO_EMULATION.
2012-08-24 13:49:40 -05:00
Nigel Stewart
2cee20d23f Initial implementation of GL_REGAL_enable.
GLUT dreamtorus keyboard hooks for toggling dispatch layers, one by one.
NaCL build fixups.
2012-08-22 10:55:21 -05:00
johnmccutchan
e9abdf0866 Remove use of libGLU in nacl example. Add fixed function texture example. 2012-08-20 10:41:37 -07:00
johnmccutchan
dd749a251b Merge branch 'master' of https://github.com/p3/regal 2012-08-20 07:49:56 -07:00
johnmccutchan
f0ce5e0907 Demo cleanups 2012-08-20 07:49:22 -07:00
Nigel Stewart
049cc60b25 Merge NaCL branch: https://github.com/johnmccutchan/regal
Initial GL_REGAL_enable infrastructure for runtime glEnable/glDisable control of Regal features such as error and debug checking.
Add support for REGAL_NO_TLS compile flag.
GLEW refresh.
Public domain license for dreamtorus example code.
2012-08-15 23:46:33 -05:00
johnmccutchan
8c77685cea Update Regal demo to use new RegalMakeCurrent interface 2012-08-15 11:09:55 -07:00
johnmccutchan
bd63c77afb Merge branch 'master' of https://github.com/p3/regal 2012-08-14 15:29:47 -07:00
Nigel Stewart
d77c077a9f NaCL variant of RegalMakeCurrent.
Extend GL_REGAL_log extension to support callback function for output.
Consolidate glBegin/glEnd state tracking into RegalContext.
glBegin/glEnd indentation for logging.
GLEW refresh for GL_REGAL_log.
2012-08-13 12:48:06 -05:00
johnmccutchan
bde235b86f Call RegalMakeCurrent only after setting the RegalNaCL state 2012-08-09 11:42:13 -07:00
johnmccutchan
84a3863fd2 Move _naclGetProcAddress implementation into libRegal 2012-08-09 10:08:33 -07:00
johnmccutchan
c531499dae Merge remote-tracking branch 'regal-upstream-origin/master' 2012-08-09 07:21:34 -07:00
johnmccutchan
9ded169b76 More methods wrapped and a couple new demos 2012-08-09 07:20:18 -07:00
Nigel Stewart
4a5959d3a0 Merge NaCL changes with modifications from git://github.com/johnmccutchan/regal.git
Cleanup minimal win32 dreamtorus example code.
GL_KTX_buffer_region functions do not have EXT suffix.
Workaround for gdi32 SetPixelFormat without opengl32.dll loaded.
2012-08-08 09:22:52 -05:00
johnmccutchan
2425a767f0 Add NaCL example 2012-08-07 11:23:41 -07:00
johnmccutchan
8fa358a015 Initial cut of NaCL build configuration 2012-08-06 09:19:39 -07:00
Nigel Stewart
30b994ac14 Add code generation scripts. (make export)
Add GL, GLX, WGL, CGL, EGL API databases for code generation purposes.
Reduce the order dependence of code generation.
Android build refinements.
2012-08-01 23:53:54 -05:00