Clone of mesa.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

opengles.html 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  5. <title>OpenGL ES</title>
  6. <link rel="stylesheet" type="text/css" href="mesa.css">
  7. </head>
  8. <body>
  9. <div class="header">
  10. <h1>The Mesa 3D Graphics Library</h1>
  11. </div>
  12. <iframe src="contents.html"></iframe>
  13. <div class="content">
  14. <h1>OpenGL ES</h1>
  15. <p>Mesa implements OpenGL ES 1.1 and OpenGL ES 2.0. More informations about
  16. OpenGL ES can be found at <a href="http://www.khronos.org/opengles/">
  17. http://www.khronos.org/opengles/</a>.</p>
  18. <p>OpenGL ES depends on a working EGL implementation. Please refer to
  19. <a href="egl.html">Mesa EGL</a> for more information about EGL.</p>
  20. <h2>Build the Libraries</h2>
  21. <ol>
  22. <li>Run <code>configure</code> with <code>--enable-gles1 --enable-gles2</code> and enable the Gallium driver for your hardware.</li>
  23. <li>Build and install Mesa as usual.</li>
  24. </ol>
  25. Alternatively, if XCB-DRI2 is installed on the system, one can use
  26. <code>egl_dri2</code> EGL driver with OpenGL|ES-enabled DRI drivers
  27. <ol>
  28. <li>Run <code>configure</code> with <code>--enable-gles1 --enable-gles2</code>.</li>
  29. <li>Build and install Mesa as usual.</li>
  30. </ol>
  31. <p>Both methods will install libGLESv1_CM, libGLESv2, libEGL, and one or more
  32. EGL drivers for your hardware.</p>
  33. <h2>Run the Demos</h2>
  34. <p>There are some demos in <code>mesa/demos</code> repository.</p>
  35. <h2>Developers</h2>
  36. <h3>Dispatch Table</h3>
  37. <p>OpenGL ES has an additional indirection when dispatching fucntions</p>
  38. <pre>
  39. Mesa: glFoo() --&gt; _mesa_Foo()
  40. OpenGL ES: glFoo() --&gt; _es_Foo() --&gt; _mesa_Foo()
  41. </pre>
  42. <p>The indirection serves several purposes</p>
  43. <ul>
  44. <li>When a function is in Mesa and the type matches, it checks the arguments and calls the Mesa function.</li>
  45. <li>When a function is in Mesa but the type mismatches, it checks and converts the arguments before calling the Mesa function.</li>
  46. <li>When a function is not available in Mesa, or accepts arguments that are not available in OpenGL, it provides its own implementation.</li>
  47. </ul>
  48. <p>Other than the last case, OpenGL ES uses <code>APIspec.xml</code> to generate functions to check and/or converts the arguments.</p>
  49. </div>
  50. </body>
  51. </html>