[osg-users] A simple question from an learner.
Glenn Waldron
gwaldron at gmail.com
Thu Aug 2 07:38:17 PDT 2007
On 8/2/07, ijustfu <ijustfu at 163.com> wrote:
>
> Dear Robert.
> I build a simple OSG program with visual studio2005.net. I use c++
> language , and select "window forms application", then get the following
> codes:
>
> ... (snip)
>
After adding osgViewerd.lib and osgDBd.lib into project, compile it but fund
> so many warnings and errors.
Binjli,
I have integrated OSG (1.2) with managed C++ on quite a few projects, and it
works well. You do not generally need to do anything special with regards to
managed/unmanaged; calling into OSG falls into the "IJW" category (It Just
Works, in Microsoft parlance).
However in a WinForms app, you do need to integrate into the windows event
loop architecture. You need to create a windows control and attach OSG's
rendering surface to that control via the Windows HWND. Finally, you need to
figure out how to call the osgViewer's main loop.
But first things first, can you share some of the warnings and errors you
are getting?
--
Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : 703-652-4791
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070802/deb2b58b/attachment.html
More information about the osg-users
mailing list