Search found 7 matches

by livphi
Mon Oct 07, 2024 3:07 pm
Forum: Open Discussion and Dev Announcements
Topic: Borderless window and mouse clipping when not fullscreen
Replies: 11
Views: 3553

Re: Borderless window and mouse clipping when not fullscreen

I don't see a patch file attached to https://sourceforge.net/p/irrlicht/patches/232/ . Do you still have it, aehparta? This would be a great feature. On Linux you can press a button to make the Irrlicht window fullscreen borderless, on both X11 and Wayland. This is what I do with Minetest and my WIP...
by livphi
Sat Apr 27, 2024 11:57 pm
Forum: Open Discussion and Dev Announcements
Topic: CustomPresenter for embedding Irrlicht in GTK etc
Replies: 11
Views: 3739

Re: CustomPresenter for embedding Irrlicht in GTK etc

The thing I don't like is that Qt uses utf-16 (widechar) strings. I know irrlicht also does for its GUI. It would be nice if you could use Irrlicht with the utf-8 strings GTK uses for its GUI, so pretty much everything would be char (utf-8). See: https://utf8everywhere.org/ I understand Irrlicht and...
by livphi
Fri Apr 26, 2024 12:37 am
Forum: Open Discussion and Dev Announcements
Topic: CustomPresenter for embedding Irrlicht in GTK etc
Replies: 11
Views: 3739

Re: CustomPresenter for embedding Irrlicht in GTK etc

Actually, to be honest, I used the latest version of Irrlicht from the repo, which is why there is an IImage::getData() method. But thanks for posting the diffs - They should help anyone still using the stable release of Irrlicht. Ah, I see now, sorry for the confusion. https://sourceforge.net/p/ir...
by livphi
Fri Apr 26, 2024 12:10 am
Forum: Open Discussion and Dev Announcements
Topic: CustomPresenter for embedding Irrlicht in GTK etc
Replies: 11
Views: 3739

Re: CustomPresenter for embedding Irrlicht in GTK etc

Of course :) I was also able to port it to gtkmm-4.0, and I made a few modifications. I figured out how to update the Irrlicht widget every frame using a tick callback, and I added a few more buttons. Here is the source: main.cpp /* * main.cpp * * Created on: Jan 21, 2023 * Author: Nicolaus Anderson...
by livphi
Thu Apr 18, 2024 4:53 pm
Forum: Open Discussion and Dev Announcements
Topic: CustomPresenter for embedding Irrlicht in GTK etc
Replies: 11
Views: 3739

Re: CustomPresenter for embedding Irrlicht in GTK etc

Updated diffs! source/Irrlicht/Makefile (unchanged) 67a68 > CUSTOMPRESDEVICE = CIrrDeviceCustomPresenter.o 74c75 < $(BZIP2OBJ) $(EXTRAOBJ) --- > $(BZIP2OBJ) $(CUSTOMPRESDEVICE) $(EXTRAOBJ) source/Irrlicht/Irrlicht.cpp (unchanged) 40a41,44 > #ifdef _IRR_COMPILE_WITH_CUSTOM_PRESENTER_DEVICE_ > #inclu...
by livphi
Thu Apr 18, 2024 3:48 pm
Forum: Open Discussion and Dev Announcements
Topic: CustomPresenter for embedding Irrlicht in GTK etc
Replies: 11
Views: 3739

Re: CustomPresenter for embedding Irrlicht in GTK etc

Update, I got it to work with irrlicht 1.8.5 and gtkmm-3.0, by replacing the nonexistent getData() function with the lock() function, in irr::video::IImage. my_pixbuf = my_pixbuf->create_from_data( (const guint8*) my_videoBuffer->lock(), Gdk::COLORSPACE_RGB, true, 8, surfaceSize.Width, surfaceSize.H...
by livphi
Tue Apr 16, 2024 10:39 pm
Forum: Open Discussion and Dev Announcements
Topic: CustomPresenter for embedding Irrlicht in GTK etc
Replies: 11
Views: 3739

Compiler Errors

This code seems like it would work to me :) but I haven't gotten it to compile the main.cpp file. I'm trying to run Irrlicht and use gtk for the gui. I tried compiling this with irrlicht 1.8 and gtkmm-3.0. After removing the IRR_OVERRIDE undefined macros, with the main.cpp file left to compile, my c...