Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
b71ca11f
Unverified
Commit
b71ca11f
authored
Apr 26, 2021
by
svsalem
Committed by
GitHub
Apr 26, 2021
Browse files
universal scale
parent
b325f724
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gui/widgets.h
View file @
b71ca11f
...
@@ -30,6 +30,7 @@ enum class Widget_IDs : Scene_ID {
...
@@ -30,6 +30,7 @@ enum class Widget_IDs : Scene_ID {
x_scl
,
x_scl
,
y_scl
,
y_scl
,
z_scl
,
z_scl
,
xyz_scl
,
count
count
};
};
static
const
int
n_Widget_IDs
=
(
int
)
Widget_IDs
::
count
;
static
const
int
n_Widget_IDs
=
(
int
)
Widget_IDs
::
count
;
...
@@ -149,20 +150,21 @@ private:
...
@@ -149,20 +150,21 @@ private:
void
generate_lines
(
Vec3
pos
);
void
generate_lines
(
Vec3
pos
);
bool
to_axis
(
Vec3
obj_pos
,
Vec3
cam_pos
,
Vec3
dir
,
Vec3
&
hit
);
bool
to_axis
(
Vec3
obj_pos
,
Vec3
cam_pos
,
Vec3
dir
,
Vec3
&
hit
);
bool
to_plane
(
Vec3
obj_pos
,
Vec3
cam_pos
,
Vec3
dir
,
Vec3
norm
,
Vec3
&
hit
);
bool
to_plane
(
Vec3
obj_pos
,
Vec3
cam_pos
,
Vec3
dir
,
Vec3
norm
,
Vec3
&
hit
);
bool
to_axis3
(
Vec3
obj_pos
,
Vec3
cam_pos
,
Vec3
dir
,
Vec3
&
hit
);
// interface data
// interface data
Axis
axis
=
Axis
::
X
;
Axis
axis
=
Axis
::
X
;
Vec3
drag_start
,
drag_end
;
Vec3
drag_start
,
drag_end
;
Vec2
bevel_start
,
bevel_end
;
Vec2
bevel_start
,
bevel_end
;
bool
dragging
=
false
,
drag_plane
=
false
;
bool
dragging
=
false
,
drag_plane
=
false
;
bool
start_dragging
=
false
;
bool
start_dragging
=
false
;
bool
univ_scl
=
false
;
// render data
// render data
GL
::
Lines
lines
;
GL
::
Lines
lines
;
Scene_Object
x_mov
,
y_mov
,
z_mov
;
Scene_Object
x_mov
,
y_mov
,
z_mov
;
Scene_Object
xy_mov
,
yz_mov
,
xz_mov
;
Scene_Object
xy_mov
,
yz_mov
,
xz_mov
;
Scene_Object
x_rot
,
y_rot
,
z_rot
;
Scene_Object
x_rot
,
y_rot
,
z_rot
;
Scene_Object
x_scl
,
z_scl
,
y_scl
;
Scene_Object
x_scl
,
z_scl
,
y_scl
;
Scene_Object
xyz_scl
;
};
};
}
// namespace Gui
}
// namespace Gui
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment