Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mirrage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
GameDevWeek
D
Dependencies
Cpp
mirrage
Commits
a2e167aa
Commit
a2e167aa
authored
Sep 21, 2019
by
Florian Oetke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended particle system to allow emitter reset
parent
3e190fff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/mirrage/renderer/include/mirrage/renderer/particle_system.hpp
...age/renderer/include/mirrage/renderer/particle_system.hpp
+8
-0
No files found.
src/mirrage/renderer/include/mirrage/renderer/particle_system.hpp
View file @
a2e167aa
...
...
@@ -274,6 +274,14 @@ namespace mirrage::renderer {
void
active
(
bool
b
)
noexcept
{
_active
=
b
;
}
auto
active
()
const
noexcept
{
return
_active
;
}
void
reset_time
()
{
_time_accumulator
=
0
;
_spawn_idx
=
0
;
_spawn_entry_timer
=
0
;
_particles_to_spawn
=
0
;
_last_timestep
=
0
;
}
void
position
(
glm
::
vec3
p
)
noexcept
{
_position
=
p
;
}
auto
position
()
const
noexcept
{
return
_position
;
}
...
...
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