Giter Site home page Giter Site logo

binuinbaraj / pxcore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pxscene/pxcore2

0.0 0.0 0.0 528.35 MB

Portable framebuffer library and related projects

License: Other

C++ 80.26% C 8.34% Objective-C++ 2.45% Shell 4.49% JavaScript 1.37% Python 0.37% HTML 0.01% CMake 2.38% Batchfile 0.24% PowerShell 0.05% Dockerfile 0.03% GLSL 0.01%

pxcore's Introduction

codecov coverity

pxCore

pxCore is a small open source library that provides a portable framebuffer and windowing abstraction for C++. This library is intended to hide the complexity of writing rasterization code on multiple platforms and allows you to easily write the following sorts of things in a portable way:

  • 2d and 3d rasterizers
  • Transition Libraries
  • Filter Routines
  • Image Processing

In its design, a few principles were followed:

  • Be Small – A simple windowed application can be built (on Windows) in as little as 8k.
  • Be Simple – The framebuffer abstraction supports 32bpp framebuffers and is intended to be minimal yet complete.
  • Don’t tightly couple the framebuffer and windowing functionality. Some other framebuffer libraries (eg. PixelToaster) don’t separate out the framebuffer abstraction from the windowing abstraction. By loosely coupling the two abstractions, this library becomes much more valuable. The framebuffer functionality can be used and integrated with other windowing toolkits easily, making YOUR code more reusable.
  • Platform native surface construction
  • Policy free resizing support – No policy is baked into the window resizing support so that applications completely control their own resizing behavior.
  • Portable Keyboard, Mouse and Window events
  • Support for portable performance timers
  • Basic Animation Support - Support for a basic animation timer event (frames per second) is built into the windowing abstraction, making it easy to write applications that animate their contents.
  • pxCore has been ported to Windows, pocketpc (arm4), linux(x11), and OSX.

The most popular usage of pxCore is pxscene. pxscene is an application engine that exposes a scene graph API to a Javascript engine. It gives JavaScript applications access to the pxscene API for visual elements that can be used for composition. pxscene is written on top of pxCore.

pxscene:

  • supports rich animation and alpha masking primitives
  • exposes a DOM-like programming model
  • supports promises for asynchronous behaviors
  • uses W3C event bubbling semantics

pxscene source code is in pxCore/examples/pxScene2d. Instructions for building pxscene are here: Building pxscene Instructions for debugging pxscene JavaScript applications using VSCode are here: Debugging applications

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.