layout
This commit is contained in:
@@ -277,12 +277,15 @@ GLSL;
|
||||
if e.key == {
|
||||
case .escape: running = false;
|
||||
}
|
||||
}
|
||||
case .window_exposed: (e) {
|
||||
|
||||
}
|
||||
case .key_down: (e) {
|
||||
k : u32 = xx e.key;
|
||||
print("ts={} wid={} sc={} key={}\n",
|
||||
e.timestamp, e.window_id, e.scancode, k);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -290,7 +293,7 @@ GLSL;
|
||||
ticks := SDL_GetTicks();
|
||||
ms : f32 = xx ticks;
|
||||
angle := ms * 0.001;
|
||||
|
||||
|
||||
// Build matrices
|
||||
proj : Matrix44 = ---;
|
||||
mat4_perspective(proj, PI / 4.0, 800.0 / 600.0, 0.1, 100.0);
|
||||
|
||||
Reference in New Issue
Block a user