I know that one can easily display messages and whatnot with the orx console, despite that I'd like to disable the console window and only show the main build .exe . I'm using visual studio and codelite if thats of any reference. Any help would be appreciated, and thanks :laugh: .
Comments
While it's a default behavior on linux/osx, you'll have to do some work for windows. Of course, it's different with mingw/gcc and visual studio, would be too simple otherwise!
With mingw/gcc: add the -mwindows parameter to the linker command line, that should do the trick.
With visual studio: right click on the project->properties->Linker->System and set the SubSystem field to Windows.
When the SubSystem is set to Windows, your main() function won't get called, instead a WinMain() function will get called (whose prototype is defined here).
From it, instead of calling orx_Execute(argc, argv, Init, Run, Exit) you'll need to call orx_WinExecute(Init, Run, Exit).
Then will come the fun to embed your own icon for the executable.
But I believe there's already a thread that has been started by sonicbhoc on that topic.
I'll just wait for Iarwain to add an orx way to do it... I don't feel like fooling around with GLFW.
Well, unfortunately the process is widly different on all the platforms and happens outside of orx most of the time.
What could be generalized in orx would be the option of changing the top left icon of a running game window for windows only. Doesn't sound all that great, heh?
That being said, we could add tutorials on the wiki for all the different platforms. I know that faistoiplaisir successfully did it for Android and I know how to do it for windows, os x and iOS, so that could be a start. For now, I'll try focusing on coding the command system though (the timeline module is already in and working).
Looks like when I get to making my first personal project, I'll have to check out how GLFW does that window icon... thing.
I think the first line will make the default icon and the glfw line will make the small icon in the top left corner of the window. You can add more lines to add more icons to chose from when you make an shortcut.
But it is windows only.
I'm asking as orx will use that to define the working directory and the main config file name.