PageRenderTime 39ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/project/src/com/jeffboody/GearsES2eclair/GearsES2eclairAbout.java

https://gitlab.com/kreg79221/gears2
Java | 212 lines | 185 code | 5 blank | 22 comment | 0 complexity | 8464a53e7319c082ddb0f40679d49045 MD5 | raw file
  1. /*
  2. * Copyright (c) 2009-2011 Jeff Boody
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included
  12. * in all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. * THE SOFTWARE.
  21. *
  22. */
  23. package com.jeffboody.GearsES2eclair;
  24. import android.app.Activity;
  25. import android.os.Bundle;
  26. import android.webkit.WebView;
  27. import android.view.Window;
  28. public class GearsES2eclairAbout extends Activity
  29. {
  30. @Override
  31. public void onCreate(Bundle savedInstanceState)
  32. {
  33. super.onCreate(savedInstanceState);
  34. requestWindowFeature(Window.FEATURE_NO_TITLE);
  35. WebView wv = new WebView(this);
  36. String text = "<html>" +
  37. "<h2>About Gears for Android</h2>" +
  38. "<p>" +
  39. " Gears for Android is a heavily modified port of the famous \"gears\" demo to Android." +
  40. "</p>" +
  41. "<p>" +
  42. " The Gears demo is an open source project intended to help developers learn how to create " +
  43. " OpenGL ES programs on Android. The Gears demo was originally written by Brian Paul as " +
  44. " part of the Mesa3D project. My implementation includes variations for Java/OpenGL ES 1.x, " +
  45. " Java/C/OpenGL ES 1.x and Java/C/OpenGL ES 2.0. I have also added several features not " +
  46. " found in the original implementation including touch screen support, VBOs and an " +
  47. " on-screen FPS counter." +
  48. "</p>" +
  49. "<p>" +
  50. " The FPS (frames-per-second) counter is often used as a benchmark metric for graphics " +
  51. " programs. On Android the frame rate is limited by v-sync (typically 60 FPS) which is " +
  52. " the fastest rate that a display can refresh the screen. Since Gears is capable of " +
  53. " rendering much faster than v-sync on most devices it provides limited benchmarking " +
  54. " value." +
  55. "</p>" +
  56. "<h2>Source Code</h2>" +
  57. "<p>" +
  58. " Source code is available at <a href=\"https://github.com/jeffboody/gears2\">Github</a>." +
  59. "</p>" +
  60. "<h2>Release Notes</h2>" +
  61. "<p>20150227" +
  62. " <ul>" +
  63. " <li>Fixed IllegalArgumentException for multitouch</li>" +
  64. " </ul>" +
  65. "</p>" +
  66. "<p>20140902" +
  67. " <ul>" +
  68. " <li>Fixed Java signing issue</li>" +
  69. " </ul>" +
  70. "</p>" +
  71. "<p>20140823" +
  72. " <ul>" +
  73. " <li>Fixed memory corruption</li>" +
  74. " </ul>" +
  75. "</p>" +
  76. "<p>20131113" +
  77. " <ul>" +
  78. " <li>Added quaternions for natural rotations and rolling</li>" +
  79. " <li>Miscelaneous cleanup</li>" +
  80. " <li>Added ports for SDL and LOAX environments</li>" +
  81. " </ul>" +
  82. "</p>" +
  83. "<p>20110501" +
  84. " <ul>" +
  85. " <li>For Android 2.0 (eclair)</li>" +
  86. " <li>Fix lighting bug observed when zooming</li>" +
  87. " <li>Replaced simclist library</li>" +
  88. " <li>Compile in thumb mode</li>" +
  89. " <li>Simplified a3d GL wrapper</li>" +
  90. " <li>Updated Gears icon (again)</li>" +
  91. " <li>Uploaded source to github</li>" +
  92. " </ul>" +
  93. "</p>" +
  94. "<p>20101218" +
  95. " <ul>" +
  96. " <li>For Android 2.0 (eclair)</li>" +
  97. " <li>Workaround for rendering corruption on Nexus S and Galaxy S</li>" +
  98. " <li>Updated Gears icon</li>" +
  99. " </ul>" +
  100. "</p>" +
  101. "<p>20101113" +
  102. " <ul>" +
  103. " <li>For Android 2.0 (eclair)</li>" +
  104. " <li>Reimplemented in OpenGL ES 2.0</li>" +
  105. " <li>Based on 20100905 release</li>" +
  106. " </ul>" +
  107. "</p>" +
  108. "<p>20100905" +
  109. " <ul>" +
  110. " <li>For Android 2.0 (eclair)</li>" +
  111. " <li>Reimplemented in C with NDK</li>" +
  112. " <li>Included better FPS counter font</li>" +
  113. " <li>Added GLES performance analysis logging</li>" +
  114. " </ul>" +
  115. "</p>" +
  116. "<p>20100211" +
  117. " <ul>" +
  118. " <li>For Android 2.0 (eclair)</li>" +
  119. " <li>Multitouch zoom support</li>" +
  120. " <li>Fullscreen support</li>" +
  121. " <li>Faster orientation changes</li>" +
  122. " <li>Render gears with VBOs</li>" +
  123. " <li>Disable blending when not required</li>" +
  124. " </ul>" +
  125. "</p>" +
  126. "<p>20091229" +
  127. " <ul>" +
  128. " <li>For Android 1.6 or Android 2.0 (donut or eclair)</li>" +
  129. " <li>Fixed EGL config selection for Droid</li>" +
  130. " <li>I would like to thank David Van de Ven for help debugging/testing on the Droid</li>" +
  131. " </ul>" +
  132. "</p>" +
  133. "<p>20091010" +
  134. " <ul>" +
  135. " <li>For Android 1.6 (donut)</li>" +
  136. " <li>Touchscreen performance patched by Greg Copeland with additional suggestions by Alexander Mikhnin</li>" +
  137. " <li>Rewrote texture loader</li>" +
  138. " <li>Changed data passed into gl*Pointer functions to be allocateDirect</li>" +
  139. " <li>Changed various data to be nativeOrder</li>" +
  140. " <li>Added directions for running Traceview</li>" +
  141. " </ul>" +
  142. "</p>" +
  143. "<p>20090621" +
  144. " <ul>" +
  145. " <li>For Android 1.5 (cupcake)</li>" +
  146. " <li>Fixed performance bug (allocating variables on heap causing gc to run)</li>" +
  147. " </ul>" +
  148. "</p>" +
  149. "<p>20090620" +
  150. " <ul>" +
  151. " <li>For Android 1.5 (cupcake)</li>" +
  152. " <li>Added on-screen fps counter at 1 second interval</li>" +
  153. " <li>Removed logcat fps counter</li>" +
  154. " <li>Fixed a bug handling EGL_CONTEXT_LOST event</li>" +
  155. " <li>Updated About screen to use WebView</li>" +
  156. " <li>Updated Gears icon</li>" +
  157. " </ul>" +
  158. "</p>" +
  159. "<p>20090502" +
  160. " <ul>" +
  161. " <li>For Android 1.1 (pre-cupcake)</li>" +
  162. " <li>3D hardware accelerated rendering is implemented using OpenGL ES 1.0</li>" +
  163. " <li>Demo may be run on either an Android device such as the T-Mobile G1 or on the emulator that is included with the Android SDK</li>" +
  164. " <li>Available from the Android market</li>" +
  165. " <li>Touchscreen may be used to rotate camera</li>" +
  166. " <li>fps is written to logcat</li>" +
  167. " <li>Achieves 60 fps on the T-Mobile G1 (performance is limited by display, not GPU)</li>" +
  168. " <li>Performance may drop while using the touchscreen (known problem with the Android SDK)</li>" +
  169. " </ul>" +
  170. "</p>" +
  171. "<h2>Feedback</h2>" +
  172. "<p>" +
  173. " Send questions or comments to Jeff Boody at jeffboody@gmail.com" +
  174. "</p>" +
  175. "<h2>License</h2>" +
  176. "<p>" +
  177. " Copyright (c) 2009-2011 Jeff Boody<br/>" +
  178. "<br/>" +
  179. " Gears for Android is a heavily modified port of the famous \"gears\" demo. " +
  180. " As such, it is a derived work subject to the license requirements (below) " +
  181. " of the original work.<br/>" +
  182. " <br/>" +
  183. " Copyright (c) 1999-2001 Brian Paul All Rights Reserved.<br/>" +
  184. " <br/>" +
  185. " Permission is hereby granted, free of charge, to any person obtaining a " +
  186. " copy of this software and associated documentation files (the \"Software\"), " +
  187. " to deal in the Software without restriction, including without limitation " +
  188. " the rights to use, copy, modify, merge, publish, distribute, sublicense, " +
  189. " and/or sell copies of the Software, and to permit persons to whom the " +
  190. " Software is furnished to do so, subject to the following conditions:<br/>" +
  191. " <br/>" +
  192. " The above copyright notice and this permission notice shall be included " +
  193. " in all copies or substantial portions of the Software.<br/>" +
  194. " <br/>" +
  195. " THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR " +
  196. " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, " +
  197. " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE " +
  198. " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER " +
  199. " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, " +
  200. " OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN " +
  201. " THE SOFTWARE." +
  202. "</p>" +
  203. "</body></html>";
  204. wv.loadData(text, "text/html", "utf-8");
  205. setContentView(wv);
  206. }
  207. }