- Summary
- Directories and Files
- Building wic
- Using wic in your project
- Licensing and Distribution
- Credits
Wic is a 2D game engine for Mac OSX written in C and distributed as a standalone static library. I am building Wic with the following design goals in mind:
- simplicity
- extensibility
- robust and easy error reporting
- detailed documentation
- library-wide consistency
- flexibility in memory management
You can download files, read documentation, and submit bug reports at wic's github repository.
Enjoy!
- license.md -- License.
- readme.md -- Readme.
- Makefile -- Makefile.
- deps/ -- Dependency files.
- lib/ -- Dependency libraries.
- include/ -- Dependency header files.
- doc/ -- Doxygen documentation.
- include/ -- Header files.
- lib/ -- Dependency libraries.
- src/ -- Source files.
- bin/ -- Libraries [created on build].
- debug/ -- Debug library (debug/libwic.a) [created on build].
- release/ -- Release library (release/libwic.a) [created on build].
- obj/ -- Object files [created on build].
- debug/ -- Debug objects [created on build].
- release/ -- Release objects [created on build].
Wic uses the standard "make" to build. No configure script is included, mostly because the makefile is so small and easy to modify. It should build on any system with gcc, make, and binutils installed. From wic's root directory, the following make commands can be executed:
- $ make -- Builds wic as a static library.
- $ make all -- Functions identically to "$ make".
- $ make release -- Functions identically to "$ make".
- $ make debug -- Builds wic as a static library with debug symbols.
- $ make doxygen -- Generates wic's doxygen documentation.
- $ make clean -- Removes all library and object files.
First, you'll need to include wic's header files.
- Copy include/ and deps/ into your project.
- In your project, delete deps/lib to save space. You won't be needing it.
- Add include/ and deps/include as include paths. In gcc, this can be done with "-I include/ -I deps/include", assuming include/ and deps/ are in your working directory.
Second, you'll need to link in the appropriate libraries and frameworks.
- From wic's root directory, run $make.
- Copy libwic.a from lib/release/ into your project.
- Link libwic.a to your project. In gcc, this is done with "-lwic" assuming that libwic.a is in your working directory.
- You'll also need to link in the Cocoa, Quartz, IOKit, and OpenGL frameworks. In gcc, this can be done with "-framework Cocoa -framework Quartz -framework IOKit -framework OpenGL".
Lastly, you'll need to include "wic_lib.h" in all the code you write. Then you should be good to go!
Wic is distributed under the GNU Lesser General Public License, Version 3. You must include license.md in all projects which use the entirety or sections of wic.
Portions of this software are copyright © 2013 The FreeType Project. All rights reserved. Website.
Portions of this software use GLFW. Copyright © 2002-2006 Marcus Geelnard and Copyright © 2006-2011 Camilla Berglund. Website.
Portions of this software use the Simple OpenGL Image Library, which is in the public domain. Website.