This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Complex Polygon in PocketFrog


Complex Polygon in PocketFrog

Postby J.-V. » Mar 16, 2005 @ 6:19pm

J.-V.
 


Postby Kzinti » Mar 16, 2005 @ 6:42pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby J.-V. » Mar 16, 2005 @ 11:34pm

I can't split polygons.
I want to draw complex polygon as CDC function Polygon.
for example, using this points, function must draw 2 separate squares:
points[0].x = 10;
points[0].y = 10;
points[1].x = 110;
points[1].y = 10;
points[2].x = 110;
points[2].y = 110;
points[3].x = 10;
points[3].y = 110;
points[4].x = 10;
points[4].y = 10;

points[5].x = 120;
points[5].y = 120;
points[6].x = 220;
points[6].y = 120;
points[7].x = 220;
points[7].y = 220;
points[8].x = 120;
points[8].y = 220;
points[9].x = 120;
points[9].y = 120;

and using this - frame (20 pix width)
points[0].x = 0;
points[0].y = 0;
points[1].x = 100;
points[1].y = 0;
points[2].x = 100;
points[2].y = 100;
points[3].x = 0;
points[3].y = 100;
points[4].x = 0;
points[4].y = 0;

points[5].x = 20;
points[5].y = 20;
points[6].x = 80;
points[6].y = 20;
points[7].x = 80;
points[7].y = 80;
points[8].x = 20;
points[8].y = 80;
points[9].x = 20;
points[9].y = 20;
J.-V.
 


Postby Conan » Mar 17, 2005 @ 8:29am

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby Andy » Mar 17, 2005 @ 9:08am

Andy
<font color=red size=3>Troll++</font>
 
Posts: 1288
Joined: Nov 1, 2003 @ 7:36am


Postby J.-V. » Mar 17, 2005 @ 9:47am

J.-V.
 


Postby J.-V. » Mar 17, 2005 @ 6:14pm

J.-V.
 


Postby Guest » Mar 18, 2005 @ 11:10am

Guest
 


Postby fast_rx » Mar 18, 2005 @ 3:38pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Yuriy » Jul 29, 2005 @ 8:44am

Yuriy
 


Postby fast_rx » Jul 29, 2005 @ 9:16pm

Thanks for the code - especially the surface texture one.

For everyone else that hasn't tried it yet, I'll attach a pic.

The texture is repeated to fill the entire poly - which may be desirable or not...

Anyway, I may run a benchmark to see just how much faster it is.
Attachments

[The extension jpg has been deactivated and can no longer be displayed.]

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Pejo Software - Per » Aug 2, 2005 @ 8:34am

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby fast_rx » Aug 2, 2005 @ 2:22pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Unable to draw semi-off screen poly

Postby jaluna » Jan 21, 2009 @ 12:00pm

Hi all,

I have tested this function because I need to render complex polygons, however it don't work when some vertex of polygon are off screen.

For example, try to draw this rectangle

P1.x = 50; P1.y = -50;
P2.x = 100; P2.y = -50;
P3.x = 100; P3.y = 50;
P4.x = 50; P4.y = 50;

I have expected that this function render the part inside the screen but nothing is rendered. However, the original function FillPoly (that does not work with complex polygons) produce the expected result.

Image

There are a bufix for this function?

Thanks!
jaluna
pm Member
 
Posts: 3
Joined: Nov 16, 2008 @ 7:30pm


Postby Kzinti » Jan 21, 2009 @ 6:42pm

Congrats, you just resurrected a 4.5 years old thread. Most of the people (if not all) on this thread don't visit here anymore.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Next

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron