# Drawing problem of PgDrawPolygon (over 1000 points)

When the number of points of a polygon is over 1000, the polygon isn’t
drawed.
Is there a limitation of PgDrawPolygon() about the number of points of a
polygon?

## Returns: 0 Successful completion -1 The draw buffer is too small to hold the current draw state, the draw command, and the data. Increase the size of the draw buffer or decrease the number of points. \

I can’t solve the problem by increasing the size of the draw buffer
(PgSetDrawBufferSize).
Is drawing a polygon with over 1000 points possible?

Thanks

# –

Yong-Jin Choi
Senior Research Engineer,
Information Technology Lab,
LG Electronics Institute of Technology
16 Woomyeon-Dong, Seocho-Gu, Seoul 137-724, Korea

Mobile: +82-10-6500-4728
Phone: +82-2-526-4115
FAX: +82-2-526-4104

# E-mail:yjchoi9@lge.com

I had the same problem with PtPolygon in Photon1.14 and my solution wath to
draw too many Polygons.

“omni” <yjchoi9@lge.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:dg2jfu\$8e2\$1@inn.qnx.com

When the number of points of a polygon is over 1000, the polygon isn’t
drawed.
Is there a limitation of PgDrawPolygon() about the number of points of a
polygon?

## Returns: 0 Successful completion -1 The draw buffer is too small to hold the current draw state, the draw command, and the data. Increase the size of the draw buffer or decrease the number of points. \

I can’t solve the problem by increasing the size of the draw buffer
(PgSetDrawBufferSize).
Is drawing a polygon with over 1000 points possible?

Thanks

# –

Yong-Jin Choi
Senior Research Engineer,
Information Technology Lab,
LG Electronics Institute of Technology
16 Woomyeon-Dong, Seocho-Gu, Seoul 137-724, Korea

Mobile: +82-10-6500-4728
Phone: +82-2-526-4115
FAX: +82-2-526-4104