Dreikblack Posted April 9, 2024 Posted April 9, 2024 Quote #include "UltraEngine.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { //Get the displays auto displays = GetDisplays(); //Create window auto window = CreateWindow("Ultra Engine", 0, 0, 800, 600, displays[0]); //Create user interface auto ui = CreateInterface(window); //Create a pixmap auto pixmap = LoadPixmap("spaceshipBH7.dds"); pixmap = pixmap->Resize(128, 128); //Show the pixmap ui->root->SetPixmap(pixmap); while (true) { const Event ev = WaitEvent(); switch (ev.id) { case EVENT_WINDOWCLOSE: return 0; break; } } return 0; } spaceshipBH7.zip Quote Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Solution Josh Posted April 10, 2024 Solution Posted April 10, 2024 I added some code that automatically decompresses the pixmap to another format, resizes it, and compresses it again. 1 Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.