nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gamnit: intro dynamic resolution support
[nit.git]
/
lib
/
gamnit
/
depth
/
depth.nit
diff --git
a/lib/gamnit/depth/depth.nit
b/lib/gamnit/depth/depth.nit
index
a9a446a
..
f18f2eb
100644
(file)
--- a/
lib/gamnit/depth/depth.nit
+++ b/
lib/gamnit/depth/depth.nit
@@
-45,6
+45,8
@@
redef class App
# Draw all elements of `actors` and then call `frame_core_flat`
protected fun frame_core_depth(display: GamnitDisplay)
do
# Draw all elements of `actors` and then call `frame_core_flat`
protected fun frame_core_depth(display: GamnitDisplay)
do
+ frame_core_dynamic_resolution_before display
+
# Update cameras on both our programs
versatile_program.use
versatile_program.mvp.uniform world_camera.mvp_matrix
# Update cameras on both our programs
versatile_program.use
versatile_program.mvp.uniform world_camera.mvp_matrix
@@
-71,6
+73,8
@@
redef class App
frame_core_ui_sprites display
perfs["gamnit depth ui_sprites"].add frame_core_depth_clock.lapse
frame_core_ui_sprites display
perfs["gamnit depth ui_sprites"].add frame_core_depth_clock.lapse
+
+ frame_core_dynamic_resolution_after display
end
private var frame_core_depth_clock = new Clock
end
private var frame_core_depth_clock = new Clock