GithubHelp home page GithubHelp logo

lokilandon / ejecta-x Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aogilvie/ejecta-x

0.0 0.0 0.0 44.98 MB

A Fast, Open Source JavaScript, Canvas & Audio Implementation

Makefile 0.13% C 84.18% C++ 15.28% JavaScript 0.25% Batchfile 0.01% Shell 0.01% Java 0.13% GLSL 0.02%

ejecta-x's Introduction

Ejecta-X

Ejecta is a fast, open source JavaScript, Canvas & Audio implementation for cross-platform. Think of it as a Browser that can only display a Canvas element.

More info & Documentation: http://impactjs.com/ejecta

Ejecta is published under the MIT Open Source License.

How to use

###Setup and Install for Android:

  1. Install Android NDK first.
  2. Install Android SDK then Eclipse and ADT OR, Android Studio
  3. cd <your project dir> then run /path/to/your/android-ndk-r9/ndk-build to compile libejecta.so and libJavaScriptCore.so
  4. Open in your favourite IDE and build.

Note for Windows users:-

Current branches no longer work on Windows after the OpenGLES update. Please use the older release https://github.com/aogilvie/Ejecta-X/releases/tag/v0.9.9-original

Sample

For an example application in the sample folder, name Ejecta-X.apk.

For XHR, remember to add <uses-permission android:name="android.permission.INTERNET"/> to the Android Manifest.

Native Events

Register for Java Events

Set an event listener on your activity as follows;

((EjectaGLSurfaceView)mGLView).setEjectaEventListener(new EjectaRenderer.EjectaEventListener() {
    @Override
    public void onCanvasCreated() {
        
	}
});

Native APIs

loadJavaScriptFile(String filename)

Will load a JavaScript file into Ejecta-X. File should be relative from assets/build/<filename>.

For example to load a file at assets/build/loadme.js would be;

((EjectaGLSurfaceView)mGLView).loadJavaScriptFile("loadme.js")

Commit to Ejecta-X

Workflow

Any kind of help is welcomed!

We work from develop branch and PR into develop branch. Stable versions are pushed from develop to master and then tagged.

Where to start?

Just pick an enchancement (feature) issue or a bug issue from the open issues list. Thanks for your help!

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.