mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Added OpenGL module with some additions to the project generator.
This commit is contained in:
parent
c08413ffde
commit
aa9ded00d6
3 changed files with 64 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue