3 ms·
So, which APIs should be used nowadays?
by heinrichhartman 11y ago
So, which APIs should be used nowadays?
- ajuc 11y agoOpenGL is OK, but not the immediate mode, it's "at least one function call per vertex" and that just doesn't make sense with modern hardware. Basicaly it's only there for backward compatibility and because it's simple to learn basic 3d graphic concepts experimenting with it. OpenES and WebGL (both based on OpenGL) removed immediate mode altogether because of that. In modern OpenGL you should use you own shaders (and not the fixed pipeline), and push geometry to GPU using Vertex Buffer Objects (VBOs).
- pjmlp 11y agoThe problem is that modern hardware has followed the ideas from Amiga, NeXT and others and moved the graphics processing fully into the graphics card. So even with OpenGL, you should move all the graphics processing into the GPU. The CPU is only working as orchestrator between data sets. With geometry shaders you can even generate the data on the GPU itself.