Results 1 to 2 of 2

Thread: OpenGL ES Cylinder for Android...

  1. #1
    Newbie
    Join Date
    Jul 2013
    Posts
    1

    OpenGL ES Cylinder for Android...

    There seems to be a lot of code on developer.android.com that shows how to render a triangle. I am trying to render a cylinder. Is there code available somewhere that outlines how to draw a cylinder for OpenGL ES for the Android?

  2. #2
    Member
    Join Date
    Jun 2012
    Location
    Texas
    Posts
    61
    Quote Originally Posted by esepich View Post
    There seems to be a lot of code on developer.android.com that shows how to render a triangle. I am trying to render a cylinder. Is there code available somewhere that outlines how to draw a cylinder for OpenGL ES for the Android?
    I recommend you take a look at the implementation of gluCylinder() in this library:

    http://code.google.com/p/glues/

    This is C++, but it should be fairly easy to convert portions of it to Java using the OpenGL ES wrapper classes (android.opengl.GLES11).

    Regards, Clay

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •