lanox2d / lanox2d

A lightweight and fast 2D vector graphics engine

Home Page:https://lanox2d.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A lightweight and fast 2D vector graphics engine

Introduction (中文)

Lanox2D is a lightweight and fast 2D vector graphics engine.

Note

This project is still in the internal development process, we will not provide any technical support.

Build

Prepare

We need to install the Xmake cross-platform build tool first.

Platform

Host Platform

By default, Windows/Linux/macOS platforms only require one-click compilation, and Xmake will select the optimal rendering device and window.

$ xmake

Android

Compile the library and generate the apk package of the Example project.

$ xmake apk_build

Of course, we can also directly use Android Studio to open the internal project to directly compile and run.

iOS

Compile the library and generate the ipa package of the Example project.

$ xmake ipa_build

Of course, we can also directly use Xcode to open the internal project to directly compile and run.

Rendering device

Currently, we support the following rendering devices:

  • opengl
  • vulkan
  • metal
  • bitmap
  • skia

OpenGL

On Linux, we use OpenGL as the default rendering device by default, but on other platforms, if we also want to use OpenGL, we can manually configure the switch.

$ xmake f --window=glfw [--device=opengl]
$ xmake

Usually, we only need to switch to the glfw window, and xmake will use OpenGL by default.

We can also switch to use Glut as a window.

$ xmake f --window=glut
$ xmake

Vulkan

$ xmake f --device=vulkan --window=glfw
$ xmake

Metal

On macOS/iOS, we will use Metal as the rendering device by default.

Render window

We can switch the following window types through the xmake f --window=xxx configuration.

  • glfw
  • glut
  • sdl
  • fbdev
  • android
  • mach

Contacts

About

A lightweight and fast 2D vector graphics engine

https://lanox2d.com

License:Apache License 2.0


Languages

Language:C 89.7%Language:GAP 3.7%Language:Objective-C 3.1%Language:Java 1.3%Language:C++ 1.1%Language:Lua 0.9%Language:GLSL 0.2%Language:Metal 0.1%