Added OpenGL module with some additions to the project generator.

This commit is contained in:
Daniel Buckmaster 2014-11-28 19:03:25 +11:00
parent c08413ffde
commit aa9ded00d6
3 changed files with 64 additions and 0 deletions

View file

@ -240,6 +240,18 @@ class T3D_Generator
array_push( self::$project_cur->defines, $d."=".$v );
}
static function isDefined( $d )
{
foreach( self::$project_cur->defines as $v )
{
if( $v === $d )
return true;
else if( strpos( $v, $d . "=" ) === 0 )
return true;
}
return false;
}
static function disableProjectWarning( $warning )
{
array_push( self::$project_cur->disabledWarnings, $warning );