alex66
Junior Member
Posts: 14
|
Post by alex66 on Apr 20, 2021 1:52:52 GMT -8
Hi, I'm using Dazzler 3 with 1280x720 HDMI display, and to place graphic primitives within screen need to pass values up to 20480 (1280*16) to Vertex2f. But maximum value accepted is 16384 (1024*16). Is any possibility to correct it?
|
|
|
Post by jamesbowman on Apr 20, 2021 13:40:41 GMT -8
Yes, you can set the global precision of Vertex2f to 3 bits instead of 4: GD.Clear(); GD.VertexFormat(3); ... GD.Vertex2f(8 * x, 8 * y); So for x=1280, that's 10240, which is inside the range. There's a more complete explanation in the README: github.com/jamesbowman/gd2-lib/blob/master/README.md
|
|
alex66
Junior Member
Posts: 14
|
Post by alex66 on Apr 21, 2021 6:02:33 GMT -8
It WORKS! Thank you so much.
|
|