examples: fix compilation
parent
2cf8a53eac
commit
5acc437367
|
@ -14,7 +14,7 @@ const (
|
|||
)
|
||||
|
||||
fn main() {
|
||||
app := &App{
|
||||
mut app := &App{
|
||||
width: 800
|
||||
height: 400
|
||||
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() {
|
||||
for p in s.pool {
|
||||
for i in 0..s.pool.len {
|
||||
mut p := s.pool[i]
|
||||
p.reset()
|
||||
p.life_time = 0
|
||||
}
|
||||
for p_ in s.bin {
|
||||
p_.reset()
|
||||
p_.life_time = 0
|
||||
for i in 0..s.bin.len {
|
||||
mut p := s.pool[i]
|
||||
p.reset()
|
||||
p.life_time = 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue