“Vaxon” <Vaxon77@hotmail.com> schrieb im Newsbeitrag
Peter Stöckigt <> email@example.com> > ÐÉÛÅÔ ×
ÓÏÏÂÝÅÎÉÉ:b59u7k$t13$> firstname.lastname@example.org> …
we are trying do draw a polygon into a memory context, but when the
of points exceeds roughly 1000, it doesn’t work correctly. Also
PgDrawPolygon(…) sometimes returns an error in this case.
We know already that the polygon has to fit into the draw buffer. We
assume that the draw buffer grows dynamically when using memory
use Photon 1.13.
We tried to use PmMemSetMaxBufSize(), but the linker reported an
So the question is: What is the maximum number of vertices
Try to increase the draw buffer size. Use PgSetDrawBufferSize(Size)
The default size is 1K as I recall… Try more than that.
Sorry, I didn’t mention that we already used PgSetDrawBufferSize( 16KByte ).
It doesn’t help.
We debugged the program with wd and found out that the draw buffer is indeed
increased in size
In the meantime we use our own algorithm to draw filled polygons using
PgDrawLine(). This works
so far, but it is a pity that we cant’ use, probably accelerated, functions
provided by the OS.
Nevertheless, thanks for replying.