Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AG Computergrafik
Dino
Commits
258db839
Commit
258db839
authored
Oct 19, 2018
by
Alexander Maximilian Nilles
Browse files
Reintroduce F5 to reload shaders
parent
9b6ae7e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/05_simpleNodeEditor/Editor.cpp
View file @
258db839
...
...
@@ -1152,6 +1152,10 @@ void Editor::processInputsEditor()
void
Editor
::
processInputsMain
()
{
if
(
m_f5
.
pressed
(
*
m_window
))
{
dino
::
Program
::
reloadAll
();
}
if
(
m_ctrlO
.
pressed
(
*
m_window
))
{
if
(
glfwGetKey
(
*
m_window
,
GLFW_KEY_LEFT_SHIFT
)
==
GLFW_PRESS
)
...
...
examples/05_simpleNodeEditor/Editor.hpp
View file @
258db839
...
...
@@ -133,6 +133,7 @@ private:
KeyboardButton
m_ctrlN
=
KeyboardButton
(
GLFW_KEY_N
,
GLFW_KEY_LEFT_CONTROL
);
KeyboardButton
m_shiftTabEditor
=
KeyboardButton
(
GLFW_KEY_LEFT_SHIFT
,
GLFW_KEY_TAB
);
KeyboardButton
m_shiftTabMain
=
KeyboardButton
(
GLFW_KEY_LEFT_SHIFT
,
GLFW_KEY_TAB
);
KeyboardButton
m_f5
=
KeyboardButton
(
GLFW_KEY_F5
,
GLFW_KEY_F5
);
bool
m_mouseBtnDown
[
2
]
=
{
false
,
false
};
};
}
// namespace dino
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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