From fc1a1bdff6515f445b7a5d8015826a02313fa4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=88=E3=82=84?= Date: Mon, 30 May 2011 01:04:44 +0900 Subject: [PATCH] =?UTF-8?q?glutIgnoreKeyRepeat=20=E3=81=AE=E5=AE=9F?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- php_opengl/glut/php_glut.c | 11 +++++++++++ php_opengl/glut/php_glut.h | 1 + 2 files changed, 12 insertions(+) diff --git a/php_opengl/glut/php_glut.c b/php_opengl/glut/php_glut.c index c72ccf5..dfb1604 100644 --- a/php_opengl/glut/php_glut.c +++ b/php_opengl/glut/php_glut.c @@ -131,6 +131,7 @@ function_entry glut_functions[] = { PHP_FE(glutwireicosahedron,NULL) PHP_FE(glutsolidteapot,NULL) PHP_FE(glutwireteapot,NULL) + PHP_FE(glutIgnoreKeyRepeat,NULL) {NULL, NULL, NULL} }; @@ -1718,3 +1719,13 @@ PHP_FUNCTION(glutwireteapot) } // }}} +// {{{ void glutIgnoreKeyRepeat(long ignore) +PHP_FUNCTION(glutIgnoreKeyRepeat) +{ + zval *ignore; + ONE_PARAM(ignore); + convert_to_long(ignore); + glutIgnoreKeyRepeat(Z_LVAL_P(ignore)); +} +// }}} + diff --git a/php_opengl/glut/php_glut.h b/php_opengl/glut/php_glut.h index e32c7bb..62c369c 100644 --- a/php_opengl/glut/php_glut.h +++ b/php_opengl/glut/php_glut.h @@ -137,6 +137,7 @@ PHP_FUNCTION(glutsolidcone); PHP_FUNCTION(glutwirecone); PHP_FUNCTION(glutsolidsphere); PHP_FUNCTION(glutwiresphere); +PHP_FUNCTION(glutIgnoreKeyRepeat); /* Prototypes */