DebugRender

DebugRender
Functions

 dr_drawline( Position pos0, Position pos1, Integer r, Integer g, Integer b, StackVar svar )
 

绘制线条。如果不传入名称,则使用TerrainLine。【功能:绘制线条】

  Source: [E:\P4Share\engine\source\runtime\presentation\public\presentation\lua\lualibs\scenario\LuaLibTerrainDebug.cpp] (47) 

 dr_terraincircle( Position pos, Real radius, Real r, Real g, Real b, Integer divs, String frame )
 

在地形上绘制圆形。【功能:地形圆形绘制】

  Source: [E:\P4Share\engine\source\runtime\presentation\public\presentation\lua\lualibs\scenario\LuaLibTerrainDebug.cpp] (19) 

 dr_terraincirclewithlifetime( Position pos, Real radius, Real r, Real g, Real b, Integer divs, String frame, Real lifetime )
 

在地形上绘制带生命周期的圆形。【功能:地形圆形绘制(带生命周期)】

  Source: [E:\P4Share\engine\source\runtime\presentation\public\presentation\lua\lualibs\scenario\LuaLibTerrainDebug.cpp] (33) 

 dr_terrainrect( Position pos, Real w, Real h, Real r, Real g, Real b, Real rads )
 

在地形上绘制矩形。【功能:地形矩形绘制】

  Source: [E:\P4Share\engine\source\runtime\presentation\public\presentation\lua\lualibs\scenario\LuaLibTerrainDebug.cpp] (40)