Irrlicht and GTK+

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
fullmetalcoder
Posts: 7
Joined: Thu Sep 29, 2005 7:48 am
Location: froggy rule !!!!!!!!

Irrlicht and GTK+

Post by fullmetalcoder »

anyone knowing how to use Irrlicht 0.12.0 inside a GTK 2.x widget???
Work 'n roll is not my way of life, I chose happiness and freedom !!!

config:
AMD Athlon 1.4GHz, GeForce 2 MX 400, 512Mo SDRAM, Win ME.
please don't laugh, I didn't chose my PC ;-(
hybrid

Post by hybrid »

I guess that GTK also just uses simple window pointers, so just create the GTK window and pass the window pointer (native window!) to createDevice. Should work under windows, may work under Linux. Niko integrated this for Linux in the last release but I've never read about it being used.
Kochol
Posts: 5
Joined: Tue Oct 18, 2005 7:23 pm

Post by Kochol »

Hi all.
This code can run on windows.

Code: Select all

#include <gdk/gdkwin32.h>

...

HWND hwnd = (HWND)gdk_win32_drawable_get_handle(GTK_WIDGET (View)->window);
kornerr
Posts: 245
Joined: Thu Jul 06, 2006 9:57 am
Location: Russia, Siberia, Kemerovo
Contact:

Post by kornerr »

There's nothing yet still to make them both work, unfortunately.
Open Source all the way, baby ;)
OSRPG
Post Reply