Original Post
I''m writing a cross-API renderer, using Direct3D and OpenGL. One of the features that I am adding is an immediate mode type interface, bassed on the "Implementing Immediate Mode for DirectX" article, at least for the directX side of things. For the OpenGL renderer, I don''t know what would be better for this interface. Either
1) Routing the methods straight into the OpenGL functions (my iVertex3f would just call glVertex3f)
Or
2) Putting the incoming immediate mode calls into a set of arrays, similarly to the way the above article does it for DirectX, but in the smoother, creamier OpenGL flavour.
Thoughts?