Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Why doesn't my 2d polygon get filled?

Why doesn't my 2d polygon get filled?

Problems with Canvas, OpenGL, etc...

Why doesn't my 2d polygon get filled?

Postby MobileVisuals » Wed Oct 06, 2010 1:24 pm

I can draw polygons with canvas.drawVertices, but I can not fill them. I have set Paint.Style.FILL on the paint object,but the polygon doesn't get filled. Why doesn't the polygon get filled? This is my code:

mLinePaint2 = new Paint();
mLinePaint2.setARGB(255, 255, 0, 0);
mLinePaint2.setStyle(Paint.Style.FILL);

canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts.length, verts, 0, null, 0, null, 0, null, 0, 0, mLinePaint2);
MobileVisuals
Junior Developer
Junior Developer
 
Posts: 20
Joined: Sun Sep 26, 2010 3:19 pm

Top

Re: Why doesn't my 2d polygon get filled?

Postby MobileVisuals » Mon Nov 08, 2010 3:18 pm

I found out that I should use the path class for this instead.
MobileVisuals
Junior Developer
Junior Developer
 
Posts: 20
Joined: Sun Sep 26, 2010 3:19 pm

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests