Question about this:
I saw that if a poly-list gets created (TBGL_BeginPoly), the Colors (TBGL_COLOR) has to be set before the Vertex-Position is passed.
Is it the same way with Normals?
Are the TBGL_Normal-values that appear before TBGL_Vertex set to all following vertices until a new TBGL_Normal is given? Even if the list is done and the next list gets created? Is it the same way with TBGL_TexCoord2D? Are they re-used as long as no other value is passed?
EDIT: In the meantime I found out- it is that way, vertex positions last and everything is fine. Everything gets repeated until some new setting gets applied.
-done-
Last edited by ReneMiner; 02-11-2012 at 17:42.
I think there are missing some Forum-sections as beta-testing and support
TBGL is based on OpenGL, which works like state machine - you set something, and it is applied till you change it to something else.
So yes, even the normals work this way.
TBGL recently introduced new functionalities going around the state oriented design, which is not always the best solution for modular code.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Bookmarks