Re: [android-developers] Re: Cant find the solution for this GLSurfaceView error
hi lance, please can u suggest me some good links or books regarding drawing cylinder & some polygons. thanks, satish On Wed, Feb 3, 2010 at 3:13 PM, Lance Nanek wrote: > The buffer needs to be direct so that it isn't moved around in memory. > You can do this by creating it using ByteBuffer.allocateDirect. You > can see examples in demos: > > http://developer.android.com/intl/de/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleRenderer.html > > On Feb 3, 4:04 am, satish bhoyar wrote: > > Hi all, > > > > I have a code for GLSurfaceView which runs fine with sdk 1.5. I am trying > to > > use it in the sdk 2.0 I am getting following error - > > > "*Application called a GL11 Pointer method with an Indirect Buffer*" > > > > This is the line at which the error is coming, > > *gl.glVertexPointer(3, GL10.GL_FLOAT, 0, slicesBuffers[i]); > > > > *Please anybody explains me why this error comes & how to solve it? > > > > or any other suggestion is also good for me. > > > > Thanks, > > SaT > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Cant find the solution for this GLSurfaceView error
Oh thanks .. got it On Wed, Feb 3, 2010 at 3:13 PM, Lance Nanek wrote: > The buffer needs to be direct so that it isn't moved around in memory. > You can do this by creating it using ByteBuffer.allocateDirect. You > can see examples in demos: > > http://developer.android.com/intl/de/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleRenderer.html > > On Feb 3, 4:04 am, satish bhoyar wrote: > > Hi all, > > > > I have a code for GLSurfaceView which runs fine with sdk 1.5. I am trying > to > > use it in the sdk 2.0 I am getting following error - > > > "*Application called a GL11 Pointer method with an Indirect Buffer*" > > > > This is the line at which the error is coming, > > *gl.glVertexPointer(3, GL10.GL_FLOAT, 0, slicesBuffers[i]); > > > > *Please anybody explains me why this error comes & how to solve it? > > > > or any other suggestion is also good for me. > > > > Thanks, > > SaT > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Cant find the solution for this GLSurfaceView error
The buffer needs to be direct so that it isn't moved around in memory. You can do this by creating it using ByteBuffer.allocateDirect. You can see examples in demos: http://developer.android.com/intl/de/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleRenderer.html On Feb 3, 4:04 am, satish bhoyar wrote: > Hi all, > > I have a code for GLSurfaceView which runs fine with sdk 1.5. I am trying to > use it in the sdk 2.0 I am getting following error - > > "*Application called a GL11 Pointer method with an Indirect Buffer*" > > This is the line at which the error is coming, > *gl.glVertexPointer(3, GL10.GL_FLOAT, 0, slicesBuffers[i]); > > *Please anybody explains me why this error comes & how to solve it? > > or any other suggestion is also good for me. > > Thanks, > SaT -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en