OpenGL ES problem: Trouble loading a bitmap texture (comes out blue)

by Jon Colverson » Thu, 05 Mar 2009 03:34:30 GMT


Sponsored Links
 I don't understand why you're trying to copy the texture from a Bitmap
into an IntBuffer before setting it. Why not use GLUtils.texImage2D to
load the Bitmap directly?

--
Jon

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. simple demo multiple alarms

Hi, i like to create multiple alarms, but i does not work. how to set
and how to request in my receiver what alarm intent came activated

in my alarm.java i call this function like: setalarm(5); setalarm(10)
(it works but only remember the last)


 public void setalarm(int delay)
    {
         Intent intent = new Intent(alarm.this, alarmreceiver.class);
         PendingIntent sender = PendingIntent.getBroadcast(alarm.this,
0, intent, 0);
         intent.setData((Uri.parse("custom://"+delay)));  << i heared
about this would make individual alarms.. but does not work

         Calendar calendar = Calendar.getInstance();
         calendar.setTimeInMillis(System.currentTimeMillis());
         calendar.add(Calendar.SECOND, delay);

         intent.putExtra("avr", ""+delay);   //i tried to set my data
here to read later, but also does not work


         AlarmManager am = (AlarmManager)getSystemService
(ALARM_SERVICE);
         am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),
sender);

         //Toast.makeText(this, "Alarm set", Toast.LENGTH_LONG).show
();

    }

---- my alarmreceiver.java

public class alarmreceiver extends BroadcastReceiver
{
        NotificationManager mNM;
        @Override
 public void onReceive(Context context, Intent intent)
 {
                Uri ursistr = intent.getData();
                String intentstr = intent.getStringExtra("avr");  //does not 
get the
saved intentextra?!

        Toast.makeText(context, "GOT IT :"+intentstr+" "+ursistr,
Toast.LENGTH_SHORT).show();

 }

greets
chris


--~--~---------~--~----~------------~-------~--~----~

2. Why doesn't w.requestFeature(Window.FEATURE_RIGHT_ICON);work?

Hi all,
I just want to set an icon in the right of titlebar, so I use:
        Window  w = getWindow();
        w.requestFeature(Window.FEATURE_RIGHT_ICON);
        setContentView(R.layout.main);
        w.setFeatureDrawableResource(Window.FEATURE_RIGHT_ICON,
                        R.drawable.icon);
but it doesn't work, the icon is still at left. Did I miss something?
Pls help me, thx!
--~--~---------~--~----~------------~-------~--~----~

3. What is the toolchain for S3C2440

4. Where is the bluetooth MAC address saved?

5. Porting 1.0 to 1.5, Street view intent (also broken in Google Maps)

6. How how can we keep Overlay Surface unchanged when switch from Portrait to Landscape mode

7. Android Design Awards (Suggestion)