Skip to content

A Wonkey 2D/3D game engine starter project using SDL2 and ANGLE statically linked into a standalone executable.

Notifications You must be signed in to change notification settings

seyhajin/wonkey-game-engine-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wonkey 2d/3d game engine starter

A Wonkey 2d/3D game engine starter project using SDL2 and ANGLE statically linked to a standalone executable.

hello.png

For the moment, tested only on MacOS 12.

Features

  • Standalone executable
  • Multi-platform targets
  • Agnostic graphics renderer using OpenGLES 3 API, thanks to ANGLE
    • Linux : OpenGL
    • MacOS : Metal
    • Windows : D3D11
    • Emscripten (Web) : WebGL2
  • Self-contained and few dependencies with Wonkey modules: only use libc and std modules

Install

⚠️ Prerequisite tools installed : git, cmake, ninja

Cloning this repo:

git clone http://github.com/seyhajin/wonkey-game-engine-starter

Install all dependencies:

Sequence of installation scripts :

install = setup -> sync -> build -> copy
  • setup: cloning all dependencies into deps/ directory
  • sync: ⚠️ This may take a long time, the first time to syncying all dependencies
  • build: building all dependencies into static libraries
  • copy: copying headers and libraries into native/ directory

NOTE: You must launch all scripts from root project directory.

Linux and MacOS

$ cd wonkey-game-engine-starter
$ ./scripts/install.sh

Windows

> cd wonkey-game-engine-starter
> scripts\install.bat

Examples

There are Wonkey and C/C++ versions of hello sample in src/ directory.

Wonkey

Open src/hello.wx and run it. :)

C/C++

⚠️ Prerequisite C/C++ compilers installed

Building

Execute from root project directory.

Linux
$ TODO
MacOS
$ clang++ -std=c++14 ./src/hello.cc -o ./src/hello -I./native/include -L./native/lib/macos -DANGLE_EXPORT= -DANGLE_STATIC=1 -DANGLE_UTIL_EXPORT= -DEGLAPI= -DGL_APICALL= -DGL_API= -DKHRONOS_STATIC -lEGL_static -lSDL2 -lm -liconv -pthread -framework Foundation -framework IOKit -framework CoreFoundation -framework CoreGraphics -framework Metal -framework IOSurface -framework QuartzCore -framework Cocoa -framework GameController -framework CoreAudio -framework AudioToolbox -framework CoreHaptics -framework ForceFeedback -framework Carbon -framework AVFoundation
Windows
> TODO

Dependencies

TODO

random ideas, no specific order.

  • Checking out dependencies from defined commit hash
    • Accordingly update dependency sources patches
    • Accordingly update dependency Wonkey 'extern' translations
  • Prebuilded static libraries: EGL, SDL
    • Desktop targets
      • Linux
      • MacOS
      • Windows
    • Web target
      • Emscripten
    • Mobile targets (maybe in the future)
      • Android
      • iOS
  • Build hello sample on all platform targets
  • Update gradually GLES API to 3.1 and 3.2
  • Add more Wonkey GLES examples
  • Create an easy-to-use game engine like Blitz3D

About

A Wonkey 2D/3D game engine starter project using SDL2 and ANGLE statically linked into a standalone executable.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages