#2d-graphics #creation #context #shapes #opengl #vertex #object

egaku2d_core

Simple 2D graphics library without context creation code

14 releases

0.6.0 Dec 15, 2020
0.5.1 Jan 25, 2020
0.4.1 Jan 19, 2020
0.3.1 Jan 18, 2020
0.1.3 Jan 10, 2020

#25 in #vertex

Download history 61/week @ 2024-07-26 9/week @ 2024-08-02 11/week @ 2024-09-20 4/week @ 2024-09-27

62 downloads per month
Used in egaku2d

MIT/Apache

62KB
1.5K SLoC

Overview

A library that lets you draw various simple 2d geometry primitives and sprites fast using Vertex buffer objects with a safe api. Uses the builder pattern for a convinient api. The main design goal is to be able to draw thousands of shapes efficiently. Uses glutin and opengl es 3.0.

Screenshot

screenshot

Example

See the github example, or see the crate documentation.

Demo

Demo sprites are provided courtesy of:


lib.rs:

Overview

This crate provides the opengl internals without the opengl context creation functionality. So this crate does not depend on glutin.

Dependencies

~0.5–1.2MB
~26K SLoC