Point Sprite
↑これを PHP に移植してみた。
- https://github.com/yoya/phpopengl
- https://github.com/yoya/phpopengl/tree/master/samples/tokoi/sprite1
メモリ溢れ
でも、少し経つと落ちます。
yoya@gw:~/git/phpopengl/php_opengl/sprite1$ php main.php freeglut (1): Unable to create direct context rendering for window 'main.php' This may hurt performance. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24 bytes) in /home/yoya/git/phpopengl/php_opengl/sprite1/main.php on line 108
課題
- glPointParameterfv 未対応です。頑張ります。
- テクスチャが機能していない。ような?
- efree 忘れがありそうなのでチェック。