Skip to content

Commit

Permalink
glutIgnoreKeyRepeat の実装
Browse files Browse the repository at this point in the history
  • Loading branch information
yoya committed May 29, 2011
1 parent 812e66a commit fc1a1bd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions php_opengl/glut/php_glut.c
Expand Up @@ -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}
};
Expand Down Expand Up @@ -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));
}
// }}}

1 change: 1 addition & 0 deletions php_opengl/glut/php_glut.h
Expand Up @@ -137,6 +137,7 @@ PHP_FUNCTION(glutsolidcone);
PHP_FUNCTION(glutwirecone);
PHP_FUNCTION(glutsolidsphere);
PHP_FUNCTION(glutwiresphere);
PHP_FUNCTION(glutIgnoreKeyRepeat);

/* Prototypes */

Expand Down

0 comments on commit fc1a1bd

Please sign in to comment.