summaryrefslogtreecommitdiffstats
path: root/opengl/tools/glgen/gen
Commit message (Collapse)AuthorAgeFilesLines
* opengl: Add GLES31 and GLES31Ext class templatesJesse Hall2014-05-201-2/+4
| | | | | Bug: 15028495 Change-Id: I276d04f029d441e092428fad72f09ca15e1d233a
* Fix wrapper equals()Andy McFadden2013-06-211-6/+8
| | | | | | | | | | | | | Make it faster and correcter. Also, fixed the "gen" script to update the static/egl/*.java files as part of doing an update. Altered the "git" lines to change directories before invoking git -- necessary because we're now split between frameworks/base and frameworks/native. Bug 9204146 Change-Id: Ie60504b1932349e6f2c9d3868dee6a645ef2b36e
* Generate new EGLExt classJesse Hall2013-05-021-1/+2
| | | | | | | | Initially populated with EGL_ANDROID_presentation_time (moved from the EGL14 class) and the ES-relevant parts of EGL_KHR_create_context. Bug: 8678160 Change-Id: Ifed2ee3da264ca701ae1f4b309a0758f7fcc3acc
* Generate GLES30 class, just a clone of GLES20 for nowJesse Hall2013-04-101-2/+3
| | | | | Bug: 8566953 Change-Id: I6fad880344b9c247de4018711ea7cb6eb1a609d6
* Make gen more readable, use UNIX-style line endingsJesse Hall2013-04-101-2/+18
| | | | Change-Id: I6f4a1afa19f84d89278e9447f14a124476106fef
* add some missing parameter validation in GLES java bindingsMathias Agopian2013-02-251-2/+2
| | | | | | | | | | | | | | | | | - added support for comments in checks.spec - added most missing checks - added and commented with // special-cased functions - added and commented with # functions that are still missing validation checks - moved glGet* to a special case and updated all the "pnames" from the khronos spec - changed ifcheck to default to 1 value. this allows us to simplify the checks.spec file and handle unknown pnames automatically (they'll be validated against 1 value, if it happens to need more, the call will go through but the validation will not happen). - refactored the cpp headers in to a common header + GLES version specific header Bug: 7402895 Change-Id: Ib5c68ca0ca416407b4cfa36e3a21901b2d6263ab
* update glgen to take into account recent changesMathias Agopian2013-02-221-1/+1
| | | | | | | | | | | - it looks like UserId has been renamed to UserHandle in the framework. - also for some reason I don't understand glgen didn't seem to be up to date with respect to the generated bindings in the tree. It's like the bindings were generated with a more recent version of glgen (maybe it was never checked in). So we fix that here. Change-Id: Ie49522ebf67fcab9213246b4d93500e37a3cbc05
* improve glgen tool to support EGL1.4Thomas Tafertshofer2012-07-101-9/+37
| | | | | | | | - added EGL1.4 bindings generation - fixed bugs in GLES bindings Bug: 6709865 Change-Id: I04ac63f652e1968a51eb833f47e00336ea449980
* Kill the global references in the OpenGL wrappers.Elliott Hughes2011-04-111-1/+1
| | | | | | | | | | | | | | | Just use jniThrowException instead. Note that it would be trivial to throw seemingly more appropriate exceptions (NullPointerException and OutOfMemoryException in particular), but I'm only attempting to preserve existing behavior here. I also found shadowing bugs in some of the special-case functions, which would previously always have leaked memory. This also moves an accidental change to a generated file (ActivityThread -> AppGlobals) into the generator, so it won't be overwritten in future. Change-Id: Iab570310b568cb406c60dd0e2b8211f8a36ae590
* Add a Java API for OpenGL ES 2.0.Jack Palevich2009-11-191-2/+2
| | | | | | Currently this API is hidden. Add a test program.
* Allow pre-Donut apps to use indirect Buffers in GL11 Pointer methods.Jack Palevich2009-06-151-0/+17
| | | | | | | | Apps targeting Donut and newer will throw an exception. We use a heuristic to determine whether an app is pre-Donut or not: We take the address space's __progname, and use that as the application's package name. For simple applications this is correct.
* Add an Android-specific static OpenGL ES 1.1 Java API.Jack Palevich2009-04-161-77/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds four new public classes that expose a static OpenGL ES 1.1 API: android.opengl.GLES10 android.opengl.GLES10Ext android.opengl.GLES11 android.opengl.GLES11Ext Benefits: + The static API is slightly faster (1% to 4%) than the existing Interface based JSR239 API. + The static API is similar to the C API, which should make it easier to import C-based example code. + The static API provides a clear path for adding new OpenGL ES 1.1 extensions and OpenGL ES 2.0 APIs, neither of which currently have a JSR standard. Example: import static android.opengl.GLES10.*; ... glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); Note that it is possible to mix-and-match calls to both the static and JSR239 APIs. This works because neither API maintains state. They both call through to the same underlying C OpenGL ES APIs. Implementation details: This change enhances the "glgen" "gen" script to generate both the original JSR239 and new static OpenGL ES APIs. The contents of the generated JSR239 classes remained the same as before, so there is no need to check in new versions of the generated JSR239 classes. As part of this work the gen script was updated to be somewhat more robust, and to work with git instead of perforce. The script prints out commands to git add the generated files, but leaves it up to the script runner to actually execute those commands.
* Improve glgenJack Palevich2009-04-141-2/+9
| | | | | | | | | | | | | | | | | | | | | + gen script is really a bash script rather than a sh script, so declare that to be true. (For example, it uses pushd, which is a part of bash, but not a part of sh. Not sure how this worked until now. Possibly gen was only run in environments where /bin/sh was really bash. + Check the results of the java compile of the code generator, and abort the script if the compile fails. + Turn on the bash shell option that guards against using uninitialized variables in the script. + Remove the generated class files. Refactor JniCodeEmitter into two classes: a general-purpose JniCodeEmitter and a specific Jsr239CodeEmitter. The hope is to use JniCodeEmitter as a base for emitting static OpenGL ES bindings.
* AI 144282: Tweak this tool to work with the current directory structure.Jack Palevich2009-04-021-3/+14
| | | | | | | Also leave the "generated" directory around if it contains files that need to be checked in. Automated import of CL 144282
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+99
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-99/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+99