projects
/
vg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fluff
[vg.git]
/
vg.h
diff --git
a/vg.h
b/vg.h
index 5cae23e045981fc934f9083a3e6018c4cd4655fc..132f338275933833d2a0545e6c1dfd3cb5376b9f 100644
(file)
--- a/
vg.h
+++ b/
vg.h
@@
-26,17
+26,17
@@
|IMP| | |.------------- vg_start(void) ---------------'
| | | |
| | | v
|IMP| | |.------------- vg_start(void) ---------------'
| | | |
| | | v
-|IMP| | vg_update(void)
+|IMP| | vg_
pre_
update(void)
| | | |
| | | .-----+.
| | | |
| | | .-----+.
-| | | | |
+| | | | |
called 0x to 8x
| | | | v
| | | | v
-|IMP| | '- vg_
update_fixed
(void)
+|IMP| | '- vg_
fixed_update
(void)
| | | |
| | | .-'
| | | |
| | | v
| | | |
| | | .-'
| | | |
| | | v
-|IMP| | vg_
update_post
(void)
+|IMP| | vg_
post_update
(void)
| | | |
| | | v
|IMP| | vg_render(void)
| | | |
| | | v
|IMP| | vg_render(void)
@@
-89,9
+89,9
@@
VG_STATIC void vg_launch_opt(void);
VG_STATIC void vg_start(void);
VG_STATIC void vg_framebuffer_resize(int w, int h);
VG_STATIC void vg_start(void);
VG_STATIC void vg_framebuffer_resize(int w, int h);
-VG_STATIC void vg_update(void);
-VG_STATIC void vg_
update_fixed
(void);
-VG_STATIC void vg_
update_post
(void);
+VG_STATIC void vg_
pre_
update(void);
+VG_STATIC void vg_
fixed_update
(void);
+VG_STATIC void vg_
post_update
(void);
VG_STATIC void vg_render(void);
VG_STATIC void vg_gui(void);
VG_STATIC void vg_render(void);
VG_STATIC void vg_gui(void);
@@
-391,7
+391,7
@@
VG_STATIC void _vg_gameloop_update(void)
vg_profile_begin( &vg_prof_update );
vg.engine_stage = k_engine_stage_update;
vg_profile_begin( &vg_prof_update );
vg.engine_stage = k_engine_stage_update;
- vg_update();
+ vg_
pre_
update();
/* Fixed update loop */
vg.engine_stage = k_engine_stage_update_fixed;
/* Fixed update loop */
vg.engine_stage = k_engine_stage_update_fixed;
@@
-401,11
+401,9
@@
VG_STATIC void _vg_gameloop_update(void)
vg.time_fixed_accumulator += vg.time_delta;
while( vg.time_fixed_accumulator >= VG_TIMESTEP_FIXED ){
vg.time_fixed_accumulator += vg.time_delta;
while( vg.time_fixed_accumulator >= VG_TIMESTEP_FIXED ){
- vg_
update_fixed
();
+ vg_
fixed_update
();
vg_lines.allow_input = 0;
vg_lines.allow_input = 0;
-
vg.time_fixed_accumulator -= VG_TIMESTEP_FIXED;
vg.time_fixed_accumulator -= VG_TIMESTEP_FIXED;
- //vg.accumulator = VG_MAX( 0.0, vg.accumulator );
vg.fixed_iterations ++;
if( vg.fixed_iterations == 8 ){
vg.fixed_iterations ++;
if( vg.fixed_iterations == 8 ){
@@
-416,7
+414,7
@@
VG_STATIC void _vg_gameloop_update(void)
vg.time_fixed_extrapolate = vg.time_fixed_accumulator / VG_TIMESTEP_FIXED;
vg.engine_stage = k_engine_stage_update;
vg.time_fixed_extrapolate = vg.time_fixed_accumulator / VG_TIMESTEP_FIXED;
vg.engine_stage = k_engine_stage_update;
- vg_
update_post
();
+ vg_
post_update
();
vg_profile_end( &vg_prof_update );
}
vg_profile_end( &vg_prof_update );
}