Jump to content

[SOLVED] Simple Project for End Release?


photo

Recommended Posts

Posted

Hi , i've looked simple sample

#include <Unigine.h>

 

/*

*/

using namespace Unigine;

 

/*

*/

int main(int argc,char **argv) {

 

Engine *engine = Engine::init(UNIGINE_VERSION,argc,argv);

 

engine->main();

 

//engine->runConsole("");

//Engine::main();

 

Engine::shutdown();

 

return 0;

}

 

How can i access to HWND of Main Window ?

I want to change icon of window also , how ?

 

Another thing is ,

how to encrypt World folder step by step and release as end user product?

 

I didnt see any documentation explaining it...

Its very important please help...

Posted

And , how to close console and another things for end user release?

Posted

Check Unigine Scratch project (UnigineSDK/scratch folder), it may answer some of your questions. Read about it in the docs here.

 

The pipeline for customizing the icon, as well as archiving and encrypting your app is as follows:

1. Create the rc file where the icon is specified. (See the attachment with Heaven project, you can take and customize it for your app).

2. In main.cpp specify a password as the last argument for Unigine::Engine::init function.

3. Modify SConscript, if necessary (name of the rc file, etc.)

4. Build your project via SCons.

5. If you are going to archive your project, you need to specify the same password, as in init function.

 

You can also change your app window icon and title right from scripts. Go to the system script (UnigineSDK/data/core/unigine.cpp) and set them via engine.app.setIcon() and engine.app.setTitle(). For example, to change the icon you can use:

 

engine.app.setIcon(new Image("my_icon.png"));

Path is specified relative to the UnigineSDK/data folder.

Heaven.zip

×
×
  • Create New...