* bobToolz::Vis Viewer repair (shows current vis cluster brush drawsurfaces in green and rest visible ones in other colours for Q3 and Wolf/QL .bsp):

don't crash on bsp w/o vis
		don't crash with origin in the void (includes inside of structural brush)(do reset)
		grab point to analyse from camera position with nothing selected; grab from any objects selection too
		fix rendering issues
		read surfaces written by q3map2 correctly + faster rendering code
		print number of loaded drawsurfaces to console for evaluation of optimization done
		fix a couple of of leaks and crashes after new/delete
This commit is contained in:
Garux
2019-03-07 00:50:25 +03:00
parent af720a7f32
commit 4382b5f6d9
10 changed files with 149 additions and 149 deletions

View File

@@ -109,6 +109,10 @@ Vector3 XYWindow_windowToWorld( const WindowVector& position ){
return result;
}
Vector3 Camera_getOrigin(){
return Camera_getOrigin( *g_pParentWnd->GetCamWnd() );
}
class RadiantCoreAPI
{
_QERFuncTable_1 m_radiantcore;
@@ -149,6 +153,9 @@ RadiantCoreAPI(){
m_radiantcore.XYWindowMouseDown_disconnect = XYWindowMouseDown_disconnect;
m_radiantcore.XYWindow_getViewType = XYWindow_getViewType;
m_radiantcore.XYWindow_windowToWorld = XYWindow_windowToWorld;
m_radiantcore.Camera_getOrigin = Camera_getOrigin;
m_radiantcore.TextureBrowser_getSelectedShader = TextureBrowser_GetSelectedShader;
m_radiantcore.m_pfnMessageBox = &gtk_MessageBox;