summaryrefslogtreecommitdiffstats
path: root/third_party/gles2_book
Commit message (Collapse)AuthorAgeFilesLines
* Moved the logic of maintaining the current context to gles2 helper library.alokp@chromium.org2010-12-212-4/+0
| | | | | | Review URL: http://codereview.chromium.org/5927002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69838 0039d316-1c4b-4281-b951-d872f2087c98
* Added EGL based GLContext.apatrick@chromium.org2010-06-091-1/+1
| | | | | | | | | | | | | | Python script to generate code to dynamically bind to GL functions (native GL, OSMesa, EGL or mock GL for unit tests). This replaces GLEW because GLEW doesn't bind to the GLES dialect of GL. Moved the mock GL code into app/gfx/gl. Updated the GPU code and AcceleratedSurface to use the new GL bindings. TEST=trybots BUG=none Review URL: http://codereview.chromium.org/2134006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49332 0039d316-1c4b-4281-b951-d872f2087c98
* Uncommented out precision statements now that glsl translator is enabled. ↵alokp@chromium.org2010-05-207-14/+7
| | | | | | | | | This also fixes Pepper3D ui-test. BUG=44603 Review URL: http://codereview.chromium.org/2105012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47793 0039d316-1c4b-4281-b951-d872f2087c98
* Pass tools/licenses.py for third_party/gles_book and third_party/glew.alokp@chromium.org2010-03-262-3/+8
| | | | | | | | BUG=39242 Review URL: http://codereview.chromium.org/1340005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42802 0039d316-1c4b-4281-b951-d872f2087c98
* Changes necessary to compile gpu demos on linux. It is not functional yet ↵alokp@chromium.org2010-02-036-188/+8
| | | | | | | | | just compiling. BUG=26099 Review URL: http://codereview.chromium.org/552240 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37977 0039d316-1c4b-4281-b951-d872f2087c98
* Commented out precision from shaders. These examples were done on my new ↵alokp@chromium.org2010-01-164-5/+9
| | | | | | | | desktop with latest nvidia drivers which does not complain about precision. But it does not compile on most other drivers. Review URL: http://codereview.chromium.org/551057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36462 0039d316-1c4b-4281-b951-d872f2087c98
* Added stencil-test demo.alokp@chromium.org2010-01-153-47/+63
| | | | | | | | | PS: I have not moved the repeated code to the base class for this demo because this is the last one I intend to submit before starting to port the demos to pepper. I will refactor all the demos to eliminate repeating code in light of pepper framework. BUG=26099 TEST=Run stencil_test executable. You should see four different-colored quads. Review URL: http://codereview.chromium.org/545092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36410 0039d316-1c4b-4281-b951-d872f2087c98
* Added texture wrap demo.alokp@chromium.org2010-01-153-53/+70
| | | | | | | | BUG=26099 TEST=Run texture_wrap executable. You should see three quads, each with a different texture wrapping mode. Review URL: http://codereview.chromium.org/552012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36394 0039d316-1c4b-4281-b951-d872f2087c98
* Modified stencil test example to use VBOs instead of client-side vertex arrays.alokp@chromium.org2010-01-151-38/+57
| | | | | | | BUG=26099 Review URL: http://codereview.chromium.org/550058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36388 0039d316-1c4b-4281-b951-d872f2087c98
* Added cubemap demo.alokp@chromium.org2010-01-153-50/+67
| | | | | | | BUG=26099 Review URL: http://codereview.chromium.org/549063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36356 0039d316-1c4b-4281-b951-d872f2087c98
* Modified texture wrap example to use VBOs instead of client-side vertex arrays.alokp@chromium.org2010-01-141-19/+40
| | | | | | | BUG=26099 Review URL: http://codereview.chromium.org/545065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36279 0039d316-1c4b-4281-b951-d872f2087c98
* Added simple texture demo.alokp@chromium.org2010-01-143-63/+101
| | | | | | | | BUG=26099 TEST=Run simple_texture_2d executable. You should see a square with checker-board pattern. Review URL: http://codereview.chromium.org/543063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36267 0039d316-1c4b-4281-b951-d872f2087c98
* Modified texture cubemap example to use VBOs instead of client-side vertex ↵alokp@chromium.org2010-01-141-14/+31
| | | | | | | | | | arrays. BUG=26099 TEST-none Review URL: http://codereview.chromium.org/552001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36266 0039d316-1c4b-4281-b951-d872f2087c98
* SwapBuffer is now synchronous. No need for glFlush.alokp@chromium.org2010-01-142-7/+0
| | | | | | Review URL: http://codereview.chromium.org/536053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36241 0039d316-1c4b-4281-b951-d872f2087c98
* Added mip-mapping demo.alokp@chromium.org2010-01-143-71/+110
| | | | | | | | BUG=26099 TEST=Run mip_map_2d executable. You should see two quads with checker-board pattern. The left will exhibit aliasing but right one will be anti-aliased. Review URL: http://codereview.chromium.org/542067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36209 0039d316-1c4b-4281-b951-d872f2087c98
* Added simple vertex shader demo. I had to make the following modifications ↵alokp@chromium.org2010-01-134-31/+33
| | | | | | | | | | | | to third-party code: - Changed client-side vertex array to VBO - Used GL_UNSIGNED_SHORT instead of GL_UNSIGNED_INT in glDrawElements because GL_UNSIGNED_INT is not supported for by OpenGL ES 2.0 for indices BUG=26099 TEST=Run simple_vertex_shader executable, you should see a rotating cube. Review URL: http://codereview.chromium.org/543015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36127 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed gles_book_examples.gyp to gles2_book.gyp and hooked eveything back ↵alokp@chromium.org2010-01-091-0/+0
| | | | | | | | together. TBR=apatrick git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35876 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed gles_book_examples to gles2_book to make it shorter and more ↵alokp@chromium.org2010-01-0966-0/+16879
correct. I still need to rename gles_book_examples.gyp to gles2_book.gyp. I will do it in another CL as svn does not like changes in renamed directories. TBR=apatrick Review URL: http://codereview.chromium.org/543002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35875 0039d316-1c4b-4281-b951-d872f2087c98