Skip to content

jiamingwangnet/WontonEngine

Repository files navigation

WontonEngine

A game engine/framework to help develop games.

See EngineTest for example code.

Documentation coming soon.

Prebuilt binaries for Windows at the latest release

Build Instructions (for Windows only)

Prerequisites

  1. Clone and extract the files into your desired location.
  2. Clone and build SDL3 at https://github.com/libsdl-org/SDL
  3. Download GLM at https://sourceforge.net/projects/glm.mirror/

Using Visual Studio

  1. Start up Visual Studio and select "Open a local folder"
  2. Open up the project root directory (the directory with CMakeLists.txt)
  3. Edit the cache variables in CMakePresets.json for your desired build configuration
...
"cacheVariables": {
	"CMAKE_BUILD_TYPE": "Release/Debug",
	"SDL_LIB_PATH": "/My/Path/To/SDL3.lib",
	"SDL_DLL_PATH": "/My/Path/To/SDL3.dll",
	"SDL_INCLUDE_PATH": "/My/Path/To/SDL3/include",
	"GLM_INCLUDE_PATH": "/My/Path/To/GLM"
},
...
  1. Visual Studio should automatically configure after the file is saved
  2. Build and run the project

Using CMake GUI

  1. Start up CMake GUI
  2. Put in the project root directory in the "Where is the source code" text box
  3. Select the configuration (you may need to select twice for the cache variables to pop up)
  4. Set the cache variables
Name                      Value
SDL_LIB_PATH              /My/Path/To/SDL3.lib
SDL_DLL_PATH              /My/Path/To/SDL3.dll
SDL_INCLUDE_PATH          /My/Path/To/SDL3/include
GLM_INCLUDE_PATH          /My/Path/To/GLM
  1. Press "Configure" and then "Generate"
  2. Open command prompt and cd into the build directory (should be in the "Where to build the binaries" text box)
  3. Run nmake if using Nmake generator or ninja if using Ninja generator
    • Make sure both programs are in Path

About

A game engine/framework written in C++

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages