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

mrfrenik 704f418e66 revert 5 лет назад
examples 3f4d033053 platform frame buffer size for high dpi displays 5 лет назад
generator 489f0e8576 First Commit 5 лет назад
include 3f4d033053 platform frame buffer size for high dpi displays 5 лет назад
proc 704f418e66 revert 5 лет назад
source 3f4d033053 platform frame buffer size for high dpi displays 5 лет назад
third_party b2e9a8e241 Audio update 5 лет назад
.gitignore b7368672b9 - Simple Texture example added 5 лет назад
LICENSE 489f0e8576 First Commit 5 лет назад
README.md 8c91b105e6 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:

  • You'll need to have Visual Studio 2015 or greater.
  • 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

osx:

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

linux:

  • From terminal, run bash ./proc/osx/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. This will be addressed in the future to allow for

      previous opengl versions. 

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:
    • run proc\win\compile_win_cl.bat
    • 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