PHPOpenGL 0.0.3 をリリースしました


↓このアニメーションが落ちなくなったので、0.0.3 としてリリースしました。

glutTimerFunc を何度か呼ぶと落ちていたので、その修正です。(詳しくは後述)
安定したので、これでようやく機能追加に踏み切れます。

sourceforce.jp forum

Hi, all.

I've fixed to glutTimerFunc, and release php.exe file with extention dll.
- http://diary.awm.jp/~yoya/data/2012/02/04/php53opengl-0.0.3.zip

The source code is here. 
- https://github.com/yoya/phpopengl
--  https://github.com/yoya/phpopengl/zipball/v0.0.3

You can compile this one on Linux, MacOSX and Windows.

This version (v0.0.3) is stable but OpenGL v1.2 API only.
I'm trying to support more OpenGL function.

Thank you!

extention ... 恥ずかしいタイプミス ○rz

不具合修正

callback 関数を呼ぶ度に関数ひも付け hash に登録していて、そこまでは良いのですが、登録する度に add_ref していたのがマズかったようです。

callback 関数と実際に callback される関数は一対一なので、MINIT 辺りで紐付けるのが理想ですが、とりあえず hash には一度だけ登録するよう改修しました。