Hello,
I ran into a few issues where Forge clashes with my own types when integrated with my own engine, for instance math types, renderer, etc...
For now my solution is to create a dummy IRenderer.h with the same types and functions enclosed in a namespace and implement functions in a source file casting everything back, eg.:
void initRenderer(const char *app_name, const RendererDesc *p_settings, Renderer **pRenderer) { ::initRenderer(app_name, (const ::RendererDesc *)p_settings, (::Renderer **)pRenderer); }
Would be nice if everything was in a Forge namespace, or at least had a prefix such as Fg :)
Cheers and thank you for your work !
Hello,
I ran into a few issues where Forge clashes with my own types when integrated with my own engine, for instance math types, renderer, etc...
For now my solution is to create a dummy IRenderer.h with the same types and functions enclosed in a namespace and implement functions in a source file casting everything back, eg.:
void initRenderer(const char *app_name, const RendererDesc *p_settings, Renderer **pRenderer) { ::initRenderer(app_name, (const ::RendererDesc *)p_settings, (::Renderer **)pRenderer); }Would be nice if everything was in a Forge namespace, or at least had a prefix such as Fg :)
Cheers and thank you for your work !