Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

cchaine/processing-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

processing-cpp

processing-cpp is a port in C++ of the Processing library originally written in Java

This port was made by Clément Chaine.

capture d ecran 2018-11-01 a 21 35 10

Install

git clone https://github.com/cchaine/processing-cpp.git
cd processing-cpp
cmake .
make install

Getting started

To start using the processing-cpp library, you need to create a Sketch class that inherits from the PSketch class

#ifndef SKETCH_H
#define SKETCH_H

#include "psketch.h"

class Sketch : public PSketch {
public:
    Sketch();
    void setup();
    void draw();
    void keyEvent(int key, int action);
};

#endif
#include "sketch.h"

int main() {
    Sketch * s = new Sketch();
    s->run();
    delete(s);
}

About

A port of the Processing Library in C++ using OpenGL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published