summaryrefslogtreecommitdiff
path: root/src/gpu/gpu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gpu.cc')
-rw-r--r--src/gpu/gpu.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc
index fe71d3e..9776eac 100644
--- a/src/gpu/gpu.cc
+++ b/src/gpu/gpu.cc
@@ -371,7 +371,8 @@ void gpu_init(PlatformState* platform_state) {
InitShaderComposer();
- g_main_sequence.init(g_gpu_context, platform_state->width, platform_state->height);
+ g_main_sequence.init(g_gpu_context, platform_state->width,
+ platform_state->height);
LoadTimeline(g_main_sequence, g_gpu_context);
}
@@ -394,9 +395,11 @@ void gpu_simulate_until(float time) {
g_main_sequence.simulate_until(time, 1.0f / 60.0f);
}
-void gpu_add_custom_effect(Effect* effect, float start_time, float end_time, int priority) {
+void gpu_add_custom_effect(Effect* effect, float start_time, float end_time,
+ int priority) {
auto seq = std::make_shared<Sequence>();
- seq->add_effect(std::shared_ptr<Effect>(effect), start_time, end_time, priority);
+ seq->add_effect(std::shared_ptr<Effect>(effect), start_time, end_time,
+ priority);
seq->init(&g_main_sequence);
g_main_sequence.add_sequence(seq, 0.0f, priority);
}