GithubHelp home page GithubHelp logo

rsta2 / libgraphics Goto Github PK

View Code? Open in Web Editor NEW
17.0 8.0 4.0 207 KB

Accelerated graphics support library for Circle

License: GNU General Public License v3.0

Makefile 1.90% C++ 97.49% Shell 0.61%

libgraphics's Introduction

libgraphics

Accelerated graphics support library for Circle

Status

Far from complete

Features

  • Unified rendering context initialization for OpenVG and OpenGL ES
  • Text display and font handling for OpenVG
  • Unified graphics thread handling

Getting

Normally you need a git client to get the libgraphics source code. Go to the directory where you want to place libgraphics on your hard disk and enter:

git clone https://github.com/rsta2/libgraphics.git libgraphics
cd libgraphics
git submodule update --init

This will place the source code in the subdirectory libgraphics/ and clones the submodule circle into the libgraphics/circle/ subdirectory.

Building

libgraphics uses the Circle bare metal build environment for the Raspberry Pi. You need an appropriate compiler toolchain for ARM processors to build it. Have a look at the Circle README.md file (in circle/) for further information on this (section Building). The build information herein is for Linux hosts only. For building on other hosts you have to adapt some script files.

When the toolchain is installed on your computer you can build libgraphics using the following commands:

./configure 2 arm-none-eabi-
./makeall clean
./makeall

The configure command writes a Config.mk file for Circle. "2" is the major revision number of your Raspberry Pi (1, 2 or 3). The second (optional) parameter is the prefix of the commands of your toolchain and can be preceded with a path. Do not forget the dash at the end of the prefix!

If the build was successful, you find the library file of libgraphics in the lib/ subdirectory with the name libgraphics.a.

Samples

If you want to try one of the provided sample programs, now go its subdirectory in sample/ and do:

make clean
make

The built kernel image can be installed as described in the main Circle README.md file.

libgraphics's People

Contributors

rsta2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.