[C++] Storing the new RendererContext object globally...

Date : Sat, 17 Mar 2007 21:06:09 -0700
To : xsi(at)Softimage.COM
From : "Steven Caron" <carons(at)gmail.com>
Subject : [C++] Storing the new RendererContext object globally...
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


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.