To be brief here is what I want to do:
...and...
Why? Because this is a much more efficient way of manipulating and storing data for OpenGL. I can't comment on DirectX because I don't/won't use it and prefer OpenGL because it's xplatform (ala bmax) and much more, well, "direct" than DirectX.
If there already is an efficient way to do what I want then please tell me. Without it or if the solution is to resort to part-C then I may as well dump bmax altogether.
CTYPE vert FIELD x,yz EndType local verts:vert[] ' verts now designated a compact C-type array verts = verts[100] verts[0].x = ?? ...
...and...
CTYPE vert FIELD x,yz EndType local verts:vert[] b:TBank = CreateBank(100*sizeof(vert)) verts = vert ptr(b.BankBuf()) verts[0].x = ?? ...
Why? Because this is a much more efficient way of manipulating and storing data for OpenGL. I can't comment on DirectX because I don't/won't use it and prefer OpenGL because it's xplatform (ala bmax) and much more, well, "direct" than DirectX.
If there already is an efficient way to do what I want then please tell me. Without it or if the solution is to resort to part-C then I may as well dump bmax altogether.