-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselect.h
72 lines (60 loc) · 2.2 KB
/
select.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// select.h
typedef enum
{
sel_brush,
sel_vertex,
sel_edge
} select_t;
typedef struct
{
brush_t *brush;
face_t *face;
float dist;
qboolean selected;
} trace_t;
#define SF_SELECTED_ONLY 1
#define SF_ENTITIES_FIRST 2
#define SF_SINGLEFACE 4
#define SF_CYCLE 8
trace_t Test_Ray (vec3_t origin, vec3_t dir, int flags);
void Select_GetBounds (vec3_t mins, vec3_t maxs);
void Select_GetTrueMid (vec3_t mid);
void Select_GetMid (vec3_t mid);
void Select_Brush (brush_t *b, qboolean complete);
void Select_Ray (vec3_t origin, vec3_t dir, int flags);
void Select_Delete (void);
void Select_Deselect (qboolean deselect_faces);
// sikk---> Multiple Face Selection
qboolean Select_IsFaceSelected (face_t *face);
void Select_DeselectFaces ();
// <---sikk
void Select_Clone (void);
void Select_Move (vec3_t delta);
void Select_SetTexture (texdef_t *texdef);
void Select_FlipAxis (int axis);
void Select_RotateAxis (int axis, float deg);
void Select_CompleteTall (void);
void Select_PartialTall (void);
void Select_Touching (void);
void Select_Inside (void);
void Select_Invert (void);
void Select_Hide (void);
void Select_ShowAllHidden (void);
void Select_FitTexture(int height, int width);
void Clamp(float *f, int clamp);
void ProjectOnPlane(vec3_t normal,float dist,vec3_t ez, vec3_t p);
void Back(vec3_t dir, vec3_t p);
void ComputeScale(vec3_t rex, vec3_t rey, vec3_t p, face_t *f);
void ComputeAbsolute(face_t *f, vec3_t p1, vec3_t p2, vec3_t p3);
void AbsoluteToLocal(plane_t normal2, face_t *f, vec3_t p1, vec3_t p2, vec3_t p3);
void RotateFaceTexture(face_t* f, int axis, float deg);
void RotateTextures(int axis, float deg, vec3_t origin);
// returns true if pFind is in pList
qboolean OnEntityList (entity_t *pFind, entity_t *pList[MAX_MAP_ENTITIES], int nSize);
// <---sikk
// sikk - Multiple Face Selection: returns true if pFind is in pList
qboolean OnBrushList (brush_t *pFind, brush_t *pList[MAX_MAP_BRUSHES], int nSize);
// updating workzone to a given brush (depends on current view)
void UpdateWorkzone_ForBrush( brush_t *b );
void FindReplaceTextures (char *find, char *replace, qboolean selected, qboolean force);
void GroupSelectNextBrush (void);