So I am playing with the new Renderer API and am having trouble storing the RendererContext globally and accessing it in another .cpp file. I first declare this variable in an .h file to be included in other .cpp files. In one of the required callbacks I attempt to define this variable by passing it the context object that is being passed into the callback. I then attempt to use that variable in my other .cpp file. What I end up getting is external linking errors. I have attached my project and am hoping someone could look at the code and share some insight as to why I can't get this to work. I have a feeling it is a problem with my understanding of the 'extern' keyword, I am probably not using it correctly hence my linking errors.
Thanks
Steven
Attachment:
cornwall.rar
Description: Binary data