we are trying do draw a polygon into a memory context, but when the number
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 also
assume that the draw buffer grows dynamically when using memory contexts. We
use Photon 1.13.
We tried to use PmMemSetMaxBufSize(), but the linker reported an unresolved
external.
So the question is: What is the maximum number of vertices PgDrawPolygon()
can accept?
we are trying do draw a polygon into a memory context, but when the number
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 also
assume that the draw buffer grows dynamically when using memory contexts.
We
use Photon 1.13.
We tried to use PmMemSetMaxBufSize(), but the linker reported an
unresolved
external.
So the question is: What is the maximum number of vertices PgDrawPolygon()
can accept?
TIA
Peter
Try to increase the draw buffer size. Use PgSetDrawBufferSize(Size)
function.
The default size is 1K as I recall… Try more than that.
we are trying do draw a polygon into a memory context, but when the
number
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
also
assume that the draw buffer grows dynamically when using memory
contexts.
We
use Photon 1.13.
We tried to use PmMemSetMaxBufSize(), but the linker reported an
unresolved
external.
So the question is: What is the maximum number of vertices
PgDrawPolygon()
can accept?
TIA
Peter
Try to increase the draw buffer size. Use PgSetDrawBufferSize(Size)
function.
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
automatically.
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.