kadir.basol Posted November 16, 2011 Posted November 16, 2011 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...
kadir.basol Posted November 17, 2011 Author Posted November 17, 2011 And , how to close console and another things for end user release?
manguste Posted November 21, 2011 Posted November 21, 2011 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
manguste Posted November 21, 2011 Posted November 21, 2011 To lock the console, use engine.console.setLock(1). It is better to call this function from the system script.
Recommended Posts