OpenInventor and CEGUI

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
kajoka
Just popping in
Just popping in
Posts: 1
Joined: Fri Oct 07, 2005 13:29

OpenInventor and CEGUI

Postby kajoka » Mon Oct 10, 2005 07:52

Hello,

I want to use CEGUI with OpenInventor.
But my first tries were not the best.
Can anybody tell me, what I have to do to integrate CEGUI in the Inventor-Scenegraph?
Here is the examplecode where I have to integrate CEGUI.
Thanks a lot in advance.
Kai


#include "stdafx.h"

#include <Inventor/Win/SoWin.h>
#include <Inventor/Win/viewers/SoWinExaminerViewer.h>

#include <Inventor/nodes/SoSelection.h>

int _tmain(int argc, _TCHAR* argv[])
{
HWND window = SoWin::init(argv[0]);

SoWinExaminerViewer *examinerViewer = new SoWinExaminerViewer(window);

// root wird erzeugt
SoSelection *root = new SoSelection();
root->setName("root");
root->ref();

examinerViewer->setSceneGraph(root);
examinerViewer->setViewing(FALSE);
examinerViewer->setFeedbackVisibility(TRUE);
examinerViewer->setFullScreen(FALSE);
examinerViewer->setDecoration(TRUE);
examinerViewer->show();
SoWin::show(window);

SoWin::mainLoop();

delete examinerViewer;

return 0;
}

Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 3 guests