examples: fix compilation
parent
2cf8a53eac
commit
5acc437367
|
@ -14,7 +14,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
app := &App{
|
mut app := &App{
|
||||||
width: 800
|
width: 800
|
||||||
height: 400
|
height: 400
|
||||||
pass_action: gfx.create_clear_pass(0.1, 0.1, 0.1, 1.0)
|
pass_action: gfx.create_clear_pass(0.1, 0.1, 0.1, 1.0)
|
||||||
|
|
|
@ -46,13 +46,15 @@ pub fn (s System) draw() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (mut s System) reset() {
|
pub fn (mut s System) reset() {
|
||||||
for p in s.pool {
|
for i in 0..s.pool.len {
|
||||||
|
mut p := s.pool[i]
|
||||||
p.reset()
|
p.reset()
|
||||||
p.life_time = 0
|
p.life_time = 0
|
||||||
}
|
}
|
||||||
for p_ in s.bin {
|
for i in 0..s.bin.len {
|
||||||
p_.reset()
|
mut p := s.pool[i]
|
||||||
p_.life_time = 0
|
p.reset()
|
||||||
|
p.life_time = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue