BitmapFactory in openGL?

All your problems with Audio, Video and Images.

BitmapFactory in openGL?

Postby zardos » Thu Sep 17, 2009 10:36 pm

Hi, i'v been trying to find out how to translate this code into openGL, how do i draw a simple bitmap at specified cordinates?

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.  
  3.  public void onDraw(Canvas canvas) {
  4.  
  5.             Bitmap _scratch = BitmapFactory.decodeResource(getResources(), R.drawable.t1);
  6.  
  7.             canvas.drawColor(Color.BLACK);
  8.  
  9.             canvas.drawBitmap(_scratch, 10, 10, null);
  10.  
  11.         }
  12.  
  13.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


//Robin
zardos
Freshman
Freshman
 
Posts: 5
Joined: Thu Sep 17, 2009 10:30 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 17 guests