Skip to content

florian-dehe/light2d-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Light2D Engine

Lightweight 2D C++ Engine based on OpenGL

Description

This project aims at creating a little, lightweight OpenGL engine in C++.

Dependencies

Light2D is using GLFW, GLEW, GLM. Make sure you have these ones. Installation instructions are found below, under the "Build" section.

Build

This project is using CMake. See the targets below :

Targets

Targets Description
light2d The library itself.
light2D-example An example project for light2d (Builds also light2d).
docs Builds the docs if you have Doxygen installed.
all (default) All the targets excluding docs.
clean Clean the build files.

If you don't know how to build with CMake, look at following instructions according to your system :

Dependencies

Linux (Debian Buster)

Installation command for GLFW, GLEW and GLM is : sudo apt install libglfw3-dev libglew-dev libglm-dev.

The -dev packages also install runtime libraries.

Windows MSYS2

Installation command for x86_64 systems : pacman -S mingw-w64-x86_64-glfw mingw-w64-x86_64-glew mingw-w64-x86_64-glm.

If you want to build for i686 systems, please go to MSYS2 packages website.

Generating build files with CMake :

You may want to build in a separate folder (in the MSYS2 (or MinGW64) shell on Windows) :

$ cd [light2d-folder]
$ mkdir build && cd build
$ cmake ..

You can also use Ninja, if you have it installed (available in MSYS2 packages): cmake .. -G Ninja

Building with your favorite build system :

Then build using Make (in the MSYS2 (or MinGW64) shell on Windows) :

$ make [target]

... or Ninja :

$ ninja [target]

Author

The author is Florian DEHE.

About

Lightweight 2D C++ Engine based on OpenGL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published