X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fselect.h;h=4a158fd41d86994e629d507ccd15ba2f8a693741;hb=7e8f20bf007190a80b919a13aee8fa1bfa9dc509;hp=89805881a8959048643e162b254db5d9c03250ae;hpb=02a51890a3d97a0e937fbb11071cf7c41cc00aa9;p=xonotic%2Fnetradiant.git diff --git a/radiant/select.h b/radiant/select.h index 89805881..4a158fd4 100644 --- a/radiant/select.h +++ b/radiant/select.h @@ -24,87 +24,67 @@ #include "math/vector.h" -void Select_GetBounds(Vector3 &mins, Vector3 &maxs); - -void Select_GetMid(Vector3 &mid); +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); +void Select_SetShader( const char* shader ); class TextureProjection; - -void Select_SetTexdef(const TextureProjection &projection); +void Select_SetTexdef( const TextureProjection& projection ); class ContentsFlagsValue; +void Select_SetFlags( const ContentsFlagsValue& flags ); -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 FindReplaceTextures(const char *pFind, const char *pReplace, bool bSelected); +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 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; +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) - { - } + 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(); +const select_workzone_t& Select_getWorkZone(); #endif