Skip to content

yymm/electron_ffi_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electron_ffi_example

Electron(旧:Atom-Shell)勉強会 #1のLTの資料です。

LTのスライド

Screenshot

Overview

C言語で書いたdelaunay三角形分割のアルゴリズムを、node-ffiを介して使用しています。

具体的には、JS側で作成したランダムな点列(構造体の配列)をCで書いたライブラリの関数に渡して、その点に対して得られるドロネー三角形群を参照渡しの引数で受け取って描画しています。

詳しくは、electron_ffi_example/app.coffeeを見るといいです。

for dev

nodejs関係

$ nvm install iojs-v1.6.3
$ npm install
$ npm install -g gulp electron-prebuilt
(アプリの起動)
$ electron index.js

c関係

$ cd native
$ make
($ make test)
($ make clean)

About

exmaple of electron using node-ffi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published