|
You can now create your application. In the Application Wizard,
set Application type to Console application, check
the Empty project box and click Finish.
In the Solution Explorer, go to Properties from the
popup menu of your project.
Click on Configuration Properties / Linker / System and set
the SubSystem parameter to
Windows (/SUBSYSTEM:WINDOWS).
Click on Configuration Properties / Linker / Input, and add
the following to the Additional Dependencies field:
freesg.lib
ag_gui.lib
ag_core.lib
SDL.lib
SDLmain.lib
opengl32.lib
freetype.lib
If you are using the nofreetype flavor of the Agar SDK, remove the
freetype.lib line.
Add a new C++ file to Source Files in the Solution Explorer,
such as main.cpp.
The application should now compile and run properly.
See the ./demos directory of the FreeSG source for some example
applications.
Note: If you want your application to be portable to other operating
systems and other development environments, consider the
BSDBuild
utility. It can even generate project files for you.
|