BrainStronk / TinyEngine

A tiny game engine written in C.
Creative Commons Zero v1.0 Universal
32 stars 1 forks source link

Renderer abstraction #13

Open strangezakary opened 4 years ago

strangezakary commented 4 years ago

To make porting easier, applications will not be directly calling graphics api functions when you call DrawRect/DrawLine/Etc. Instead these functions (and their parameters) will be pushed into a stack-like command buffer and executed in the order received. At the end of the frame the platform layer will go through all of the command that the application pushed and call the associating D3D/OGL/Vulkan calls.