Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>SurfaceView</strong></p> <blockquote> <p>A GLSurfaceView is a SurfaceView that you can render into with OpenGL. Choosing between them is simple:</p> <p>If you're familiar with OpenGL and need what it provides, use a GLSurfaceView. Otherwise, use a SurfaceView. OpenGL is low-level. If you're not already familiar with it, it's an undertaking to learn. If you only need 2D drawing, SurfaceView uses the high-level, reasonably high-performance Canvas. It's very easy to work with.</p> <p>Unless you have a strong reason to use a GLSurfaceView, you should use a regular SurfaceView. I would suggest that if you don't already know that you need GL, then you probably don't.</p> </blockquote> <p><strong>OpenGL</strong></p> <blockquote> <p>OpenGL would be able to handle the rotations and scaling easily.</p> <p>Honestly, you would probably need to learn a lot of OpenGL to do this, specifically related to the topics of:</p> <p>Geometry Lighting (or just disabling it) Picking (selecting geometry to draw on it) Pixel Maps Texture Mapping Mipmapping Also, learning OpenGL for this might be overkill, and you would have to be pretty good at it to make it efficient.</p> <p>Instead, I would recommend using the graphic components of a game library built on top of openGL, such as:</p> <p><a href="http://cocos2d.org/" rel="nofollow noreferrer">Cocos2d</a></p> <p><a href="http://code.google.com/p/libgdx/" rel="nofollow noreferrer">libgdx</a> </p> <p><a href="https://stackoverflow.com/questions/4227759/android-game-engine-for-2d-and-3d-games">Any of the engines listed here</a></p> </blockquote> <p><strong>Source</strong></p> <p><a href="https://stackoverflow.com/questions/11029829/difference-between-surfaceview-and-glsurfaceview-in-android">Difference between SurfaceView and GLSurfaceView in Android</a></p> <p><a href="https://stackoverflow.com/questions/6308521/android-canvas-vs-opengl">Android: Canvas vs OpenGL</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload