You forgot GL_TEXTURE_WRAP_T. :=)

On Jul 21, 2:30 am, kalyan simhan <kalyansim...@gmail.com> wrote:
> thanks for the reply.. but it still does not work..
> the bitmap still repeats...i did this..
>
>         gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER,
>                  GL10.GL_NEAREST);
>         gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,
>                 GL10.GL_CLAMP_TO_EDGE);
>
>         gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE,
>                 GL10.GL_REPLACE);
>
>         InputStream is = mContext.getResources()
>                 .openRawResource(R.drawable.map);
>         Bitmap bitmap = null;
>         try {
>             bitmap = BitmapFactory.decodeStream(is);
>         } finally {
>             try {
>                 is.close();
>             } catch (IOException e) {
>                 // Ignore.
>             }
>         }
>         GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
>
> Am i doing it the right way?
> Kindly help!
> Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to