drawing on Canvas(GL gl)

Put your problem here if it does not fit any of the other categories.

drawing on Canvas(GL gl)

Postby timosha-cat » Thu Apr 29, 2010 7:17 pm

Hello.

Canvas can be made from GL interface. Attempting to draw on that canvas like this:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. void tryToDrawByCanvas()
  3.  
  4.         {
  5.  
  6.                 Canvas canvas = new Canvas(mGL);
  7.  
  8.                
  9.  
  10.                 Paint p = new Paint();
  11.  
  12.                 p.setColor(0xFFFF0000);
  13.  
  14.                
  15.  
  16.                 canvas.drawLine(0, 0, canvas.getWidth(), canvas.getHeight(), p);
  17.  
  18.         canvas.drawLine(0, canvas.getHeight(), canvas.getWidth(), 0, p);
  19.  
  20.         }
  21.  
  22.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


results

E/libEGL (15928): called unimplemented OpenGL ES API
E/libEGL (15928): called unimplemented OpenGL ES API

where tryToDrawByCanvas() is function of fine working
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. extends GLSurfaceView implements Renderer
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
class,
and get called in
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public void onDrawFrame(GL10 gl)
Parsed in 0.034 seconds, using GeSHi 1.0.8.4


Whats going on? Anybody tried something similar?
timosha-cat
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Apr 29, 2010 7:03 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 24 guests