Coder Social home page Coder Social logo

nodejs-nge2's Introduction

nodejs-nge2

libnge2的nodejs绑定。

正在重度编写中

目前已经完成:

  • 基本图元的绘制,
  • (键盘、鼠标)输入部分,
  • 图片的载入与绘制,
  • 声音的载入与播放控制,
  • 字体的载入与绘制。

基本绘画

例子1

显示图片

例子2

显示字体(点阵式和truetype皆可)

例子3

具体计划请查看 TODO

编译

使用cmake作为编译系统,如不会使用cmake,请先自行学习其使用方法。

已编译好的WIN32包可在ge.tt下载。(nodejs-nge2-xxxxxxx.7z,xxxxxx即为相应git commit的哈希码)

nodejs

因编译扩展需要nodejs,所以为了方便大家使用,特地编译了一份带有头文件和库文件的nodejs版本,在windows上可以直接使用此版本,nodejs.7z

目前nodejs的社区对于windows上的扩展构建并不是十分重视,我个人因习惯使用cmake作为构建系统,自己写了一份用于构建nodejs扩展的cmake文件,nodejs.cmake,且同时支持我提供的nodejs二进制版本和官方的源码版本。

由NODE_ROOT变量指示node所在的根目录,此变量可在环境变量中指定或直接手动指定,同时提供一定程度的自动探测。

当使用由我所提供的二进制版本时,在CmakeLists.txt里使用prepare_nodejs(BIN_VERSION)即可,并且可以根据node的可执行文件直接推断NODE_ROOT变量。

官方的源码版本只支持由Release配置编译出来的库文件位置,使用prepare_nodejs()即可。

在linux下也可正常使用此cmake脚本。

依赖

你可以直接下载打包好的依赖包:

解压到项目根目录或自行准备以下依赖:

nodejs-nge2's People

Contributors

nomadalex avatar

Stargazers

Ye Feng avatar  avatar LGD avatar rongyi avatar cnx avatar xeodou avatar  avatar XueFei avatar Belleve avatar

Watchers

Belleve avatar  avatar James Cloos 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.