aap / librw

A re-implementation of the RenderWare Graphics engine
MIT License
547 stars 89 forks source link

DX11 Port? #122

Open robante15 opened 11 months ago

robante15 commented 11 months ago

How difficult would it be to port to DX11 and possibly DX12? Would it be necessary to rebuild most of the code? Where could one start, or what could be done about it?

aap commented 11 months ago

It would be some work of course. The src directory has subdirectories for the different platforms. What you have to implement is stuff like context/window creation, rasters (this is annoying), instancing and rendering geometry. The d3d and gl3 subdirectories should give you a good idea of what you have to do.