Ive just started using Juce for a project I have in mind. Its my first attempt at C++, but I have a wealth of other programming experience. I understand OO, classes, pointers, references, etc so I thought I would give it a go, since Juce provides a lot of what I will need, which will make the task much easier.
Ive started building the app from the ground up. Right now I dont have much more than an empty main window, but before I try and tackle menu bars and the like, Im trying to sort out the Splash screen.
I’d like to grab the splash screen image from a resource in vs2010 rather than from a file. I dont want to have the image on disk as part of the application and would rather it be embedded in the application itself, where its safe and sound. The problem is, how do I then reference it and load it into the ImageCache? I assume I would use ImageCache::getFromMemory() but Im having trouble figuring how to get the data I need to pass into the method, in order to have it load the image from a resource. I guess it would be handy if ImageCache could load resources directly but I havnt seen anything obvious in the API docs.
Ive seen examples on the net reading the image data with LoadBitmap() and I could probably get the size once I have it loaded, but this is Windows specific. Is there a portable way to achieve this? A windows only solution is fine, but I thought since Im using a multi-platform framework, I should make my code as portable as I can.
Im using Juce 2.0, and the image is a PNG stored as a bitmap resource in my project.
Any help, examples, or pointers of where to look, would be much appreciated. Thanks.