gmod_src: GetRenderTarget can be used to CREATE render targe..

Revision 761
GetRenderTarget can be used to CREATE render targets

  • Draws ‘creating’ screen when it creates the RT - which can take up to 10 seconds (this is a Source engine thing)
    Added GetRenderTargetEx( name, width, height, sizemode, depthmode, textureflags, rtflags )
    Added enums for above:
    DEFINE_LUA_ENUM( RT_SIZE_NO_CHANGE );
    DEFINE_LUA_ENUM( RT_SIZE_DEFAULT );
    DEFINE_LUA_ENUM( RT_SIZE_PICMIP );
    DEFINE_LUA_ENUM( RT_SIZE_HDR );
    DEFINE_LUA_ENUM( RT_SIZE_FULL_FRAME_BUFFER );
    DEFINE_LUA_ENUM( RT_SIZE_OFFSCREEN );
    DEFINE_LUA_ENUM( RT_SIZE_FULL_FRAME_BUFFER_ROUNDED_UP );

     	DEFINE_LUA_ENUM( MATERIAL_RT_DEPTH_SHARED );
     	DEFINE_LUA_ENUM( MATERIAL_RT_DEPTH_SEPARATE );
     	DEFINE_LUA_ENUM( MATERIAL_RT_DEPTH_NONE );
     	DEFINE_LUA_ENUM( MATERIAL_RT_DEPTH_ONLY );
    
     	DEFINE_LUA_ENUM( CREATERENDERTARGETFLAGS_HDR );
     	DEFINE_LUA_ENUM( CREATERENDERTARGETFLAGS_AUTOMIPMAP );
     	DEFINE_LUA_ENUM( CREATERENDERTARGETFLAGS_UNFILTERABLE_OK );
    

Changed Files:
[ul]
[li]trunk/src_garrysmod/game/client/client_gmod.vpc [/li][li]trunk/src_garrysmod/garrysmod/Library/cl_gl_render.cpp [/li][li]trunk/src_garrysmod/garrysmod/LuaGameEnums.cpp [/li][li]trunk/src_garrysmod/garrysmod/g_lua/CLuaInterface.cpp [/li][li]trunk/src_garrysmod/garrysmod/g_lua/ILuaInterface.h [/li][li]trunk/src_garrysmod/garrysmod/garrysmod.cpp[/li][/ul]
Added Files:
[ul]
[li]trunk/src_garrysmod/garrysmod/DrawCreateRenderTarget.cpp[/li][/ul]

Committed By Garry Newman