Giter VIP home page Giter VIP logo

pingo's Introduction

pingo

Pingo is a low level 2D/3D software graphics library. It uses no dynamically allocated memory and provides a simple low level backend interface to implement for your platform. This library can easily be compiled for many different platforms since it has no dependencies except for a working C compiler, it has been tested on Windows, Linux x86, Linux ARM, ESP32, Arm Cortex M3 and even RISC V CPUs.

The cmake project contains targets that build examples that show 3D rendering on different platforms.

git clone [email protected]:fededevi/pingo.git
cd pingo
mkdir build && cd build
cmake .. && make

If you compile on Linux the default cmake project will build 3 example binaries:

  • linux_window -> An example that renders to an X11 window
  • linux_framebuffer -> An example that renders to a framebuffer device
  • linux_terminal -> An example that renders to the terminal

If you compile on Windows the default cmake project will build 2 example binaries:

  • win_window -> An example that renders to a Windows window
  • win_terminal -> An example that renders to the terminal

Some backends like the linux framebuffer require exact dimension and pixel format, see pixel.h and this line in the example's main.c:

int main(){
    Vec2i size = {300, 150};

An example with texture and per-triangle shading

Example

pingo's People

Contributors

fededevi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.