Bruce <3's wxWidgets

Bruce <3's wxWidgets

Post just about everything that isn't directly related to Spring here!

Moderator: Moderators

User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Bruce <3's wxWidgets

Post by Das Bruce »

Oh man this shit is so good.

Code: Select all

imPreview->LoadFile(wxT("heightmap.bmp"), wxBITMAP_TYPE_BMP, -1);
That's all it takes to load a bitmap. Ridiculous!

So fuck you win32api.
And fuck you MFC.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Bruce <3's wxWidgets

Post by AF »

QT ftw
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Bruce <3's wxWidgets

Post by Das Bruce »

Why?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Bruce <3's wxWidgets

Post by Beherith »

Superb, for mapconvgui?
Just please dont forget the trickyness that is .raw heightmaps. A lot of use use them now, they are 16bit,1 channel intel byte order raws with no header. Thus you have to read tex dimensions to get heightmap dimensions applicable to the raw file. Or just ignore preview of raws, anyone who uses raw probably doesnt need the quick preview of it :)
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Bruce <3's wxWidgets

Post by Pxtl »

Das Bruce wrote:Oh man this shit is so good.

Code: Select all

imPreview->LoadFile(wxT("heightmap.bmp"), wxBITMAP_TYPE_BMP, -1);
That's all it takes to load a bitmap. Ridiculous!

So fuck you win32api.
And fuck you MFC.
Beings spoiled by C#, how bad is it with Win32api and MFC?
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Bruce <3's wxWidgets

Post by Licho »

Same with correct libs.
In C# its like Image.LoadFromFile("path");
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Bruce <3's wxWidgets

Post by Tribulex »

in brainfuck its a serious of impossible to read morse code.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Bruce <3's wxWidgets

Post by Das Bruce »

Beherith wrote:Superb, for mapconvgui?
Just please dont forget the trickyness that is .raw heightmaps. A lot of use use them now, they are 16bit,1 channel intel byte order raws with no header. Thus you have to read tex dimensions to get heightmap dimensions applicable to the raw file. Or just ignore preview of raws, anyone who uses raw probably doesnt need the quick preview of it :)
Well, for a frontend atm, functionally it works although I may need to add some more tickboxes, I can never remember which files are necessary and which are not. It was actually first just going to use the texture, heightmap was used for testing how it works because I wasn't really paying attention and I'm having a bit of trouble with that, documentation is good but not great.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Bruce <3's wxWidgets

Post by Peet »

java Swing is better :regret:
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Bruce <3's wxWidgets

Post by aegis »

Peet wrote:java
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Bruce <3's wxWidgets

Post by Peet »

aegis wrote:
Peet wrote:sarcasm
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Bruce <3's wxWidgets

Post by Das Bruce »

Do any mappers use win9X?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Bruce <3's wxWidgets

Post by Beherith »

unlikely, its safe to assume win2k/xp as a minimum. Dont think spring even runs on win9x.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Bruce <3's wxWidgets

Post by Das Bruce »

That's reassuring, I wasn't particularly worried, it's just I'd have to write my own class to deal with bitmaps over 64x64 otherwise, and fuck that.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: Bruce <3's wxWidgets

Post by koshi »

Seeing the screenshot in the other thread I'd suggest adding a proper resource file so it'll use the right windows style

Code: Select all

#include <wx/msw/wx.rc>
NAME_OF_YOUR_APP ICON "pathto/some.ico"
I could also provide a simple cmake based buildsystem if you want, or any other wx related help for that matter if you need it.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Bruce <3's wxWidgets

Post by Das Bruce »

Seeing the screenshot in the other thread I'd suggest adding a proper resource file so it'll use the right windows style
Ok, I'll try doing that.
I could also provide a simple cmake based buildsystem if you want,
I'm not really sure what you mean, F9 seems to work adequately at the moment, is that for building on other os's?
or any other wx related help for that matter if you need it.
Thanks, I'm trying to learn as much as I can myself, it's good practice for reading documentation which I've always been crap at, but I'll likely call on you at some point.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: Bruce <3's wxWidgets

Post by koshi »

Das Bruce wrote:I'm not really sure what you mean, F9 seems to work adequately at the moment, is that for building on other os's?
and other IDEs, yes. CMake can generate a number of Ide project files (VS, codeblocks, eclipse,...) as well as plain unix/mingw makefiles.
Could be used as a replacement or alongside whatever you're using now. Either way it's prolly something for later.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Bruce <3's wxWidgets

Post by Das Bruce »

Aye, much.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Bruce <3's wxWidgets

Post by Das Bruce »

Koshi, I can currently set a tooltip for each item in a wxRadioBox but there doesn't appear to be a way to set it for the entire radiobox. This would be preferable since you could easily click an item and move on before the tip pops up.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: Bruce <3's wxWidgets

Post by koshi »

yeah this is not possible without much trickery since only wxWindow derived class get automatic tooltips iirc
Post Reply

Return to “Off Topic Discussion”