C99, header-only framework for games and multimedia applications

#c #c99 #library #gamedev #framework #library #header-only #headeronly #header #single-file #singlefile #gameengine #engine #graphics #3d #2d

John Jackson 9c7af4d12b Update gs_platform.c 5 лет назад
examples 1ac624edf9 fixed compilation issue with immediate rendering 5 лет назад
generator ad9845c9d1 Updated format 5 лет назад
include e039b77d00 audio data source cache update 5 лет назад
proc 8880369107 - updated proc scripts to compile optimized 5 лет назад
source 9c7af4d12b Update gs_platform.c 5 лет назад
third_party e4a2347b6f - Common defines, updated exampled, MinGW64 5 лет назад
.gitignore e1c6f4127d - byte buffer 5 лет назад
LICENSE 489f0e8576 First Commit 5 лет назад
README.md b94029017d Update README.md 5 лет назад

README.md

gunslinger

A simple c99 framework for multimedia applications

Building

NOTE(john): For all platforms, make certain you are in the root directory for gunslinger when attempting to build.

windows (MSVC):

  • You'll need to have Visual Studio 2015/2017. (Note: Currently 2019 is having compile issues that are being tracked down).
  • From start menu, search for "x64 Native Tool Command Prompt for {Insert your Version Here}"
  • Navigate to where you have gunslinger repo placed
  • In the root directory for gunslinger, run proc\win\compile_win_cl.bat
  • This will build the library and place it in gunslinger\bin

windows (mingw):

  • You'll need to have mingw64 installed and the mingw\bin directory in your environment path.
  • From the root directory for gunslinger, open bash.
  • Run bash ./proc/win/compile_win_mingw.sh
  • This will build the library and place it in gunslinger/bin

osx (GCC):

  • From terminal, run bash ./proc/osx/compile_osx_gcc.sh
  • This will build the library and place it in gunslinger/bin

linux (GCC):

  • From terminal, run bash ./proc/linux/compile_linux_gcc.sh
  • This will build the library and place it in gunslinger/bin

Examples

NOTE(john): Currently all examples require at least OpenGL v3.3 to run.

There are multiple examples provided to show how to get up and running. For each of these examples:

  • First, build the gunslinger library following the above instructions for your platform.
  • cd into the directory for your example
  • windows (msvc):
    • Run proc\win\compile_win_cl.bat
    • The executable will be placed in bin\{example_name}
    • Run the executable
  • windows (mingw):
    • From bash terminal, run bash ./proc/win/compile_win_mingw.sh
    • The executable will be placed in bin{example_name}
    • Run the executable
  • mac:
    • Run bash ./proc/osx/compile_osx_gcc.sh
    • The exectuable will be placed in bin/{example_name}
    • Run the executable
  • linux:
    • Run bash ./proc/linux/compile_linux_gcc.sh
    • The exectuable will be placed in bin/{example_name}
    • Run the executable