Code: Select all
imPreview->LoadFile(wxT("heightmap.bmp"), wxBITMAP_TYPE_BMP, -1);
So fuck you win32api.
And fuck you MFC.
Moderator: Moderators
Code: Select all
imPreview->LoadFile(wxT("heightmap.bmp"), wxBITMAP_TYPE_BMP, -1);
Beings spoiled by C#, how bad is it with Win32api and MFC?Das Bruce wrote:Oh man this shit is so good.That's all it takes to load a bitmap. Ridiculous!Code: Select all
imPreview->LoadFile(wxT("heightmap.bmp"), wxBITMAP_TYPE_BMP, -1);
So fuck you win32api.
And fuck you MFC.
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.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 :)
aegis wrote:Peet wrote:sarcasm
Code: Select all
#include <wx/msw/wx.rc>
NAME_OF_YOUR_APP ICON "pathto/some.ico"
Ok, I'll try doing that.Seeing the screenshot in the other thread I'd suggest adding a proper resource file so it'll use the right windows style
I'm not really sure what you mean, F9 seems to work adequately at the moment, is that for building on other os's?I could also provide a simple cmake based buildsystem if you want,
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.or any other wx related help for that matter if you need it.
and other IDEs, yes. CMake can generate a number of Ide project files (VS, codeblocks, eclipse,...) as well as plain unix/mingw makefiles.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?