In Windows, all is OK.
In Linux irrlicht - log display the following text:
It turned out that this is due to create a device:Irrlicht Engine version 1.7.2
Linux 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 06:07:29 UTC 2010 i686
Creating X window...
Visual chosen: : 209
X Error: BadWindow (invalid Window parameter)
From call : X_CreateWindow
X Error: BadWindow (invalid Window parameter)
From call : X_GetWindowAttributes
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_CreateGC
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_CreateGC
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_GetGeometry
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_GetGeometry
X Error: BadWindow (invalid Window parameter)
From call : X_GetProperty
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_CreatePixmap
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_CreatePixmap
Using renderer: OpenGL 2.1
Software Rasterizer: Mesa Project
OpenGL driver version is 1.2 or better.
GLSL version: 1.2
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_CreateGC
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_PolyFillRectangle
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_PolyFillRectangle
X Error: BadPixmap (invalid Pixmap parameter)
From call : X_CreateCursor
X Error: BadGC (invalid GC parameter)
From call : X_FreeGC
X Error: BadPixmap (invalid Pixmap parameter)
From call : X_FreePixmap
X Error: BadPixmap (invalid Pixmap parameter)
From call : X_FreePixmap
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_GetGeometry
X Error: BadDrawable (invalid Pixmap or Window parameter)
From call : X_GetGeometry
X Error: BadCursor (invalid Cursor parameter)
From call : X_ChangeWindowAttributes
Code: Select all
SIrrlichtCreationParameters params;
params.DriverType = EDT_OPENGL;
params.WindowId = reinterpret_cast<void*>(winId());
params.WindowSize.Width = width();
params.WindowSize.Height = height();
device = createDeviceEx(params);
Code: Select all
params.WindowId = reinterpret_cast<void*>(winId());
But irrlicht - window is not created in my widget.
Problem with winId() in Linux?
Best regard
Digan