Minib3d Extensibility

BlitzMax Forums/MiniB3D Module/Minib3d Extensibility

BLaBZ(Posted 2012) [#1]
I've modified minib3d to support shaders but it really got me thinking...

This would be much more viable if minib3d had events that I could use so I wouldn't have to modify minib3d, events such as

MB3D_GRAPHICS_INITIALIZE
- Load Shaders

MB3D_MESH_RENDER_PRE
- Set mesh shader
MB3D_MESH_RENDER_POST
- Clean up


MB3D_SCENE_RENDER_PRE
- Set FBO(s)
MB3D_SCENE_RENDER_POST
- Render FBO(s)

Then someone could just "include" a shader object file in there project and they'd have a new shader without modifying the core minib3d framework.

Thoughts?