|
GD.vxf
Mar 15, 2020 18:23:35 GMT -8
Post by phoddie on Mar 15, 2020 18:23:35 GMT -8
Hello --
The GD.vxf field is a local cache of the the number of fractional bits set in the VERTEX_FORMAT, if I understand it correctly. It is initialized to 4 in GDClass::begin but does not appear to be updated elsewhere in the code. The GD.vxf field is used by the Bitmap and Poly classes.
Should it be updated in GDClass::VertexFormat? It looks like it may also be necessary in GDClass::cmd_dlstart, though I can't seem to find documentation to support that in the FT81x Series Programmer Guide.
Thank you.
-- Peter
|
|
|
GD.vxf
Mar 16, 2020 6:22:52 GMT -8
Post by jamesbowman on Mar 16, 2020 6:22:52 GMT -8
Hi Peter, Yes it should be set by GDClass::VertexFormat, and reset to 4 in GDClass::cmd_dlstart. If you're able to make a pull request in github for it would be really helpful, github.com/jamesbowman/gd2-lib/let me know if not and I'll get to this later in the week.
|
|
|
GD.vxf
Mar 16, 2020 13:51:00 GMT -8
Post by phoddie on Mar 16, 2020 13:51:00 GMT -8
James --
Thanks for the quick response.
I'll make the change and submit a PR.
- Peter
|
|