summaryrefslogtreecommitdiffstats
path: root/opengl
Commit message (Collapse)AuthorAgeFilesLines
* Add a simple test of OpenGL ES 1.x.Jack Palevich2009-09-302-0/+374
|
* Merge change I8018f091 into eclairAndroid (Google) Code Review2009-09-304-64/+76
|\ | | | | | | | | * changes: Add very simple input path. Fix end-of-line issues.
| * Add very simple input path. Fix end-of-line issues.Jack Palevich2009-09-304-64/+76
| |
* | Don't ask for pbuffer support, because we don't use any pbuffers.Jack Palevich2009-09-281-1/+1
| |
* | Print out EGL configuration info for the config we've chosen.Jack Palevich2009-09-281-53/+57
| | | | | | | | | | Don't ask for PBuffer support, since we don't actually use pbuffers, and some drivers might not support them.
* | Print out all available EGL configurations.Jack Palevich2009-09-281-8/+82
| |
* | fix [2147737] Pixel Flinger needs to set EGL_RENDERABLE_TYPE to ↵Mathias Agopian2009-09-271-1/+2
|/ | | | | | EGL_OPENGL_ES_BIT Also set max swap interval to 1, which is the only supported value currently.
* egl: temporarily also include eglTerminate->eglInitialize hack for 8kDima Zavin2009-09-261-0/+4
| | | | | Change-Id: Id5c51e54e733b24e5d5d5de0dcca84ac53afd3a9 Signed-off-by: Dima Zavin <dima@android.com>
* Fix build.Jack Palevich2009-09-251-1/+1
|
* Tighten up sample code.Jack Palevich2009-09-253-22/+25
| | | | - Still fails to work; don't know why.
* Use EGLUtils to simplify choosing a configuration.Jack Palevich2009-09-251-55/+36
| | | | Doesn't actually select anything, possibly due to device driver errors.
* OpenGL ES doesn't allow glColorPointer with a size parameter other than 4Mathias Agopian2009-09-241-3/+1
|
* Make tritex test run with latest OpenGL driver.Jack Palevich2009-09-242-12/+16
| | | | | | | | Use EGLUtils::selectConfigForNativeWindow to select a legitimate configuration. (Before now we had been selecting an incorrect configuration, but the older drivers let us get away with it.) Converted the source to C++ so we can call selectConfigForNativeWindow.
* Create samples showing how to call OpenGL from JNI libraries.Jack Palevich2009-09-2315-0/+956
|
* log an error when loading an existing GL driver failsMathias Agopian2009-09-201-5/+14
|
* Draw a green triangle using OpenGL 2.0 APIs.Jack Palevich2009-09-181-112/+235
|
* Add additional error checking, exit early if errors occur.Jack Palevich2009-09-171-18/+59
|
* Add EGL call error checking.Jack Palevich2009-09-161-4/+52
|
* AGL's glCompressedTexImage2D now checks the imageSize parameter.Jack Palevich2009-09-101-5/+55
| | | | | | This parameter indicates how many bytes of the image data are valid. Previously this parameter was ignored.
* Simple app to create a gl2 context and dump the strings.Jason Sams2009-09-012-0/+104
|
* Calculate specular lighting correctlyMartin Storsjo2009-08-251-3/+8
| | | | | | Since the lighting calculations are done in object space, the vector from the object to the viewer also needs to be transformed to object space.
* If FLAGS_2D_PROJECTION is set, the MVP matrices need updating when changing ↵Martin Storsjo2009-08-251-0/+2
| | | | the viewport.
* fix a bug recently introduced where EGL couldn't be initialized again after ↵Mathias Agopian2009-08-242-76/+120
| | | | it had been terminated once
* first step for fixing [2066786] EGL object lifetime management doesn't ↵Mathias Agopian2009-08-211-71/+243
| | | | | | | | | | | | | | | | respect the EGL spec this change fixes the lifetime mgt of EGLSurface, EGLContext and EGLImageKHR in the EGL wrapper. EGLDisplay is still somewhat bogus and libagl's EGL is still incorrect. The idea of the change is that EGL objects are put in a list when created and removed when destroyed. Before each use, we first verify if the object is in the list and if so a reference is taken and kept for the scope of the whole EGL API being called, if not, an error is returned. Upon object destruction, the object is simply marked as "terminated" (this is not protected by a lock because it doesn't really matter). This flag is only used to deny access to the object by other APIs while it's still valid (for instance current or being used by another function in another thread). A reference is also removed and the object can then actually be destroyed when going out of scope.
* fix a bug in ComponentSizeChooser where it could pick a software EGLConfig ↵Mathias Agopian2009-08-201-2/+2
| | | | | | instead of a better h/w one. We now just try to honor the stencil / depth buffer "at least", while doing a "shortest distance" on the colors.
* better error handling in EGLMathias Agopian2009-08-201-12/+46
|
* fix bug [2021677] egl driver unloaded after eglTerminate() is calledMathias Agopian2009-08-173-105/+100
| | | | | | | | | | refactored the code so that: - EGL APIs that can be called before or after eglInitialize() will work by loading the drivers first - make eglGetDisplay() a lot more efficient - make sure that EGL drivers are loaded in a thread-safe way - don't unload the drivers upon calling eglTerminate(), they're now never unloaded, since there is no safe way to do it (some thread could be running) - updated our EGL version to 1.4 - return better error codes if errors happen during initialization
* Better error handling in EGL extensionsMathias Agopian2009-08-121-11/+9
|
* second take, hopefully this time it doesn't break one of the builds: ↵Mathias Agopian2009-08-111-0/+4
| | | | "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
* Merge change 20893Android (Google) Code Review2009-08-111-2/+5
|\ | | | | | | | | * changes: show that we need to glClear to be fast(er)
| * show that we need to glClear to be fast(er)Mathias Agopian2009-08-111-2/+5
| |
* | Merge change 20892Android (Google) Code Review2009-08-111-4/+0
|\ \ | |/ |/| | | | | * changes: Revert "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
| * Revert "SurfaceFlinger will now allocate buffers based on the usage ↵Fred Quintana2009-08-111-4/+0
| | | | | | | | | | | | specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything." This reverts commit 8b76a0ac6fbf07254629ed1ea86af014d5abe050.
* | option to use drawtexture at compile timeMathias Agopian2009-08-111-8/+12
| |
* | fix and extend the filter test a bitMathias Agopian2009-08-111-4/+46
|/
* SurfaceFlinger will now allocate buffers based on the usage specified by the ↵Mathias Agopian2009-08-111-0/+4
| | | | | | | clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything. This change makes SurfaceHolder.setType(GPU) obsolete (it's now ignored). Added an API to android_native_window_t to allow extending the functionality without ever breaking binary compatibility. This is used to implement the new set_usage() API. This API needs to be called by software renderers because the default is to use usage flags suitable for h/w.
* workaround a bug in the SGX driver that would prevent eglGetConfig to work ↵Mathias Agopian2009-08-107-16/+25
| | | | properly
* add support for RGBX_8888Mathias Agopian2009-08-071-0/+2
|
* minor code clean-upMathias Agopian2009-08-071-85/+101
|
* update most gl tests to use EGLUtilsMathias Agopian2009-08-069-152/+88
|
* added two EGL helpers for selecting a config matching a certain pixelformat ↵Mathias Agopian2009-08-061-31/+11
| | | | or native window type
* added a gl swapinterval testMathias Agopian2009-08-053-5/+178
|
* opengl testsMathias Agopian2009-08-054-7/+231
|
* log opengl-call-with-no-context only once per thread, instead of for each ↵Mathias Agopian2009-07-311-2/+9
| | | | function call
* be more robust when errors occur upon EGL surface creation (ie: don't crash)Mathias Agopian2009-07-311-9/+18
|
* fixed some issues with the software renderer when surfaces are made current.Mathias Agopian2009-07-301-19/+31
| | | | | | | | | | there was several issues: - when a surface was made non-current, the last frame wasn't shown and the buffer could stay locked - when a surface was made current the 2nd time, it would not dequeue a new buffer now, queue/dequeue are done when the surface is made current. for this to work, a new query() hook had to be added on android_native_window_t, it allows to retrieve some attributes of a window (currently only width and height).
* GLESv2 couldn't be loaded due to wrong path specificationMathias Agopian2009-07-291-1/+1
|
* Merge commit 'goog/readonly-korg-master' into merge_korg_masterJean-Baptiste Queru2009-07-161-1/+1
|\ | | | | | | | | | | * commit 'goog/readonly-korg-master': Fixed Android issue #400, where the Intent documentation was inaccurate in a number of places, undoubtedly causing untold grief to innumerable masses. Bug Fixed for libagl.
| * Bug Fixed for libagl.Shin-ichiro KAWASAKI2009-07-071-1/+1
| |
| * Automated import from //branches/cupcake/...@142481,142481Jack Palevich2009-03-242-21/+38
| |