Nintendo 64 Fast3D renderer
Implementation of a Fast3D renderer for games built originally for the Nintendo 64 platform.
For rendering, OpenGL is supported.
For windowing, SDL (generic) is supported.
Usage
See gfx_pc.h. You will also need a copy of PR/gbi.h, found in libultra.
First call gfx_init(struct GfxWindowManagerAPI *wapi, struct GfxRenderingAPI *rapi, const char *game_name, bool start_in_fullscreen) and supply the desired backends at program start.
Some callbacks can be set on wapi. See gfx_window_manager_api.h for more info.
Each game main loop iteration should look like this:
When you are ready to start the main loop, call wapi->main_loop(one_iteration_func).
For the best experience, please change the Vtx and Mtx structures to use floats instead of fixed point arithmetic (GBI_FLOATS).
License
See LICENSE.txt. Redistributions are allowed only in source form, not in binary form.