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
CA-Framework
Commits
05e9f5d8
Commit
05e9f5d8
authored
Feb 19, 2025
by
Swampert-zhi
Browse files
add exercise_0
parent
709773ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
0_dummy/DummySim.cpp
View file @
05e9f5d8
...
...
@@ -40,6 +40,7 @@ void DummySim::updateRenderGeometry() {
bool
DummySim
::
advance
()
{
// do next step of some color animation
// update the color
int
speed
=
60
;
int
decColor
=
(
m_step
/
speed
)
%
3
;
int
incColor
=
(
decColor
+
1
)
%
3
;
...
...
@@ -49,6 +50,9 @@ bool DummySim::advance() {
m_C
(
i
,
incColor
)
=
(
m_C
(
i
,
incColor
)
*
speed
+
1
)
/
speed
;
}
// TODO: update m_V (and m_F maybe) here
// advance step
m_step
++
;
return
false
;
...
...
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