summaryrefslogtreecommitdiffstats
path: root/opengl
Commit message (Collapse)AuthorAgeFilesLines
* a simple test app for grallocMathias Agopian2009-10-016-0/+556
|
* 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.
* Check for failure to create EGL surfaces and contexts.Jack Palevich2009-09-251-4/+12
|
* Use EGLUtils to simplify choosing a configuration.Jack Palevich2009-09-251-55/+36
| | | | Doesn't actually select anything, possibly due to device driver errors.
* Merge change 26911 into eclairAndroid (Google) Code Review2009-09-241-3/+1
|\ | | | | | | | | * changes: OpenGL ES doesn't allow glColorPointer with a size parameter other than 4
| * OpenGL ES doesn't allow glColorPointer with a size parameter other than 4Mathias Agopian2009-09-241-3/+1
| |
* | Fix broken Javadoc link for GLSurfaceView.EGLWindowSurfaceFactory.Jack Palevich2009-09-241-1/+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.
* Publish minor additions to GLSurfaceView API.Jack Palevich2009-09-241-4/+0
| | | | | Clients can now modify the way that the EGL context and the EGL window surface are created and destroyed.
* Create samples showing how to call OpenGL from JNI libraries.Jack Palevich2009-09-2316-2/+958
|
* Allow GLSurfaceView clients to customize EGL Surfaces and Contexts.Jack Palevich2009-09-211-94/+184
| | | | This API is hidden for now, will expose once it's been tested more.
* Fix GLSurfaceView to sync surfaceDestroyed with GL rendering threadJack Palevich2009-09-211-1/+26
| | | | | | Until now we had a race condition where the GL rendering thread could continue rendering a frame after we have returned from the SurfaceHolder.Callback.surfaceDestroyed notification.
* 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-202-17/+19
| | | | | | 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
* Surface::GPU and Surface::HARDWARE are now deprecated; they will be set ↵Mathias Agopian2009-08-131-1/+0
| | | | | | automatically if needed. this also ripples into the window manager API by making some constant there deprecated as well.
* 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
|