|
Post by rayman on Aug 10, 2017 11:57:25 GMT -8
hi @all gd3lib works well ... except for the following ... all graphics commands with Vertex2ii don't work with a y-coordinate greater than 511 working examples: GD.Begin(BITMAPS); GD.Vertex2ii(10, 511, AAA_HANDLE);
GD.Begin(RECTS); GD.Vertex2ii(10, 10); GD.Vertex2ii(100, 100);
GD.Begin(RECTS); GD.Vertex2f(10*16, 600*16); <-- works because Vertex2f is used here, don't work with Vertex2ii !!! GD.Vertex2f(100*16, 100*16);
not working examples: GD.Begin(BITMAPS); GD.Vertex2ii(10, 600, AAA_HANDLE);
GD.Begin(RECTS); GD.Vertex2ii(100, 610); GD.Vertex2ii(100, 100);
GD.Begin(RECTS); GD.Vertex2ii(10, 600); GD.Vertex2ii(100, 100); it is possible to fix this ? possibly convert Vertex2ii-call automatically to Vertex2f with VertexTranslateX/VertexTranslateY
|
|
|
Post by jblazeg on Dec 21, 2017 3:37:26 GMT -8
I have got the same problem. Is there a solution?
|
|
|
Post by jblazeg on Dec 21, 2017 3:40:52 GMT -8
could it be that solution?
GD.BitmapHandle(handle); GD.Vertex2f(16 * x, 16 * y);
|
|
|
Post by rayman on Dec 21, 2017 3:59:17 GMT -8
could it be that solution? GD.BitmapHandle(handle); GD.Vertex2f(16 * x, 16 * y); no
|
|
|
Post by rayman on Dec 21, 2017 4:00:37 GMT -8
GD.Begin(BITMAPS); if ( x <= 511 ) { GD.Vertex2ii(x, y, bitmap); } else { GD.VertexTranslateX(16*(x-511)); GD.Vertex2ii(x-(x-511), y, bitmap); GD.VertexTranslateX(0); }
|
|
|
Post by jblazeg on Dec 21, 2017 4:08:32 GMT -8
nice one. I will test that. Thanks!
|
|