* native surfaceparm noob support (no -custinfoparms needed) * -noob in bsp phase: assign surfaceparm noob to all map surfaces * surfaceparm ob: skip assigning surfaceparm noob with -noob on that * farplane modes: radius+radius, origin2origin, exact (add r/o/e to the number to enable), < 0 works too * samples+filter - enabled again, makes sense * -vertexscale * fixed -novertex, (0..1) sets * quick q3map_novertexlight (?) * fixed _clone _ins _instance (_clonename) * -nolm - no lightmaps * ent keys aliases:_sa - shadeangle;_ss - samplesize * -shift N -shift X Y Z: shift whole map to some coords * more fogs (256) (ingame appearence lots of ones might be bugged due to engine arrangement, needs testing) * q3map_remapshader remaps anything fine, on all stages (effect is: postrenaming shader when things are have been done) * fixed 'unknown argument 1' at -lightanglehl * -nocmdline writting to worldspawn Radiant: binds... * wasd camera binds, c - deSelect, z - delete * ExpandSelectionToEntities - shift+e * make detail - alt+d * arbitrary rotation - shifr+r * arbitrary scale - ctrl+shift+s misc... * fit width, fit height butts in surf inspector (for trims) (saves scales ratio) add old TODO with ideas
93 lines
2.6 KiB
C++
93 lines
2.6 KiB
C++
/*
|
|
Copyright (C) 1999-2006 Id Software, Inc. and contributors.
|
|
For a list of contributors, see the accompanying CONTRIBUTORS file.
|
|
|
|
This file is part of GtkRadiant.
|
|
|
|
GtkRadiant is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
GtkRadiant is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with GtkRadiant; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#if !defined( INCLUDED_SELECT_H )
|
|
#define INCLUDED_SELECT_H
|
|
|
|
#include "math/vector.h"
|
|
|
|
void Select_GetBounds( Vector3& mins, Vector3& maxs );
|
|
void Select_GetMid( Vector3& mid );
|
|
|
|
void Select_Delete();
|
|
void Select_Invert();
|
|
void Select_Inside();
|
|
void Select_Touching();
|
|
void Scene_ExpandSelectionToEntities();
|
|
|
|
void Selection_Flipx();
|
|
void Selection_Flipy();
|
|
void Selection_Flipz();
|
|
void Selection_Rotatex();
|
|
void Selection_Rotatey();
|
|
void Selection_Rotatez();
|
|
|
|
|
|
void Selection_MoveDown();
|
|
void Selection_MoveUp();
|
|
|
|
void Select_AllOfType();
|
|
|
|
void DoRotateDlg();
|
|
void DoScaleDlg();
|
|
|
|
|
|
void Select_SetShader( const char* shader );
|
|
|
|
class TextureProjection;
|
|
void Select_SetTexdef( const TextureProjection& projection );
|
|
|
|
class ContentsFlagsValue;
|
|
void Select_SetFlags( const ContentsFlagsValue& flags );
|
|
|
|
void Select_RotateTexture( float amt );
|
|
void Select_ScaleTexture( float x, float y );
|
|
void Select_ShiftTexture( float x, float y );
|
|
void Select_FitTexture( float horizontal = 1, float vertical = 1 );
|
|
void Select_FitTextureW( float horizontal = 1, float vertical = 1 );
|
|
void Select_FitTextureH( float horizontal = 1, float vertical = 1 );
|
|
void FindReplaceTextures( const char* pFind, const char* pReplace, bool bSelected );
|
|
|
|
void HideSelected();
|
|
void Select_ShowAllHidden();
|
|
|
|
// updating workzone to a given brush (depends on current view)
|
|
|
|
void Selection_construct();
|
|
void Selection_destroy();
|
|
|
|
|
|
struct select_workzone_t
|
|
{
|
|
// defines the boundaries of the current work area
|
|
// is used to guess brushes and drop points third coordinate when creating from 2D view
|
|
Vector3 d_work_min, d_work_max;
|
|
|
|
select_workzone_t() :
|
|
d_work_min( -64.0f,-64.0f,-64.0f ),
|
|
d_work_max( 64.0f, 64.0f, 64.0f ){
|
|
}
|
|
};
|
|
|
|
const select_workzone_t& Select_getWorkZone();
|
|
|
|
#endif
|