summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
Diffstat (limited to 'servers')
-rw-r--r--servers/audio_server.cpp4
-rw-r--r--servers/visual/rasterizer.h5
-rw-r--r--servers/visual/shader_types.cpp2
-rw-r--r--servers/visual/visual_server_canvas.cpp3
-rw-r--r--servers/visual/visual_server_raster.cpp3
-rw-r--r--servers/visual/visual_server_raster.h2
-rw-r--r--servers/visual_server.h2
7 files changed, 16 insertions, 5 deletions
diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp
index 1b1ed45862..f3bba4ae90 100644
--- a/servers/audio_server.cpp
+++ b/servers/audio_server.cpp
@@ -761,6 +761,10 @@ void AudioServer::finish() {
}
buses.clear();
+
+ if (AudioDriver::get_singleton()) {
+ AudioDriver::get_singleton()->finish();
+ }
}
void AudioServer::update() {
}
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h
index 3a8126f300..ff679bc15f 100644
--- a/servers/visual/rasterizer.h
+++ b/servers/visual/rasterizer.h
@@ -441,7 +441,7 @@ public:
virtual void particles_set_explosiveness_ratio(RID p_particles, float p_ratio) = 0;
virtual void particles_set_randomness_ratio(RID p_particles, float p_ratio) = 0;
virtual void particles_set_custom_aabb(RID p_particles, const Rect3 &p_aabb) = 0;
- virtual void particles_set_gravity(RID p_particles, const Vector3 &p_gravity) = 0;
+ virtual void particles_set_speed_scale(RID p_particles, float p_scale) = 0;
virtual void particles_set_use_local_coordinates(RID p_particles, bool p_enable) = 0;
virtual void particles_set_process_material(RID p_particles, RID p_material) = 0;
virtual void particles_set_fixed_fps(RID p_particles, int p_fps) = 0;
@@ -886,6 +886,7 @@ public:
};
virtual void canvas_begin() = 0;
+ virtual void canvas_end() = 0;
virtual void canvas_render_items(Item *p_item_list, int p_z, const Color &p_modulate, Light *p_light) = 0;
virtual void canvas_debug_viewport_shadows(Light *p_lights_with_shadow) = 0;
@@ -930,6 +931,8 @@ public:
virtual RasterizerCanvas *get_canvas() = 0;
virtual RasterizerScene *get_scene() = 0;
+ virtual void set_boot_image(const Image &p_image, const Color &p_color, bool p_scale) = 0;
+
virtual void initialize() = 0;
virtual void begin_frame() = 0;
virtual void set_current_render_target(RID p_render_target) = 0;
diff --git a/servers/visual/shader_types.cpp b/servers/visual/shader_types.cpp
index cbde41427c..8d72ee3f34 100644
--- a/servers/visual/shader_types.cpp
+++ b/servers/visual/shader_types.cpp
@@ -203,8 +203,6 @@ ShaderTypes::ShaderTypes() {
shader_modes[VS::SHADER_PARTICLES].functions["vertex"]["DELTA"] = ShaderLanguage::TYPE_FLOAT;
shader_modes[VS::SHADER_PARTICLES].functions["vertex"]["NUMBER"] = ShaderLanguage::TYPE_UINT;
shader_modes[VS::SHADER_PARTICLES].functions["vertex"]["INDEX"] = ShaderLanguage::TYPE_INT;
- shader_modes[VS::SHADER_PARTICLES].functions["vertex"]["SEED"] = ShaderLanguage::TYPE_UINT;
- shader_modes[VS::SHADER_PARTICLES].functions["vertex"]["GRAVITY"] = ShaderLanguage::TYPE_VEC3;
shader_modes[VS::SHADER_PARTICLES].functions["vertex"]["EMISSION_TRANSFORM"] = ShaderLanguage::TYPE_MAT4;
shader_modes[VS::SHADER_PARTICLES].modes.insert("billboard");
diff --git a/servers/visual/visual_server_canvas.cpp b/servers/visual/visual_server_canvas.cpp
index ecd1b24826..3a83ba887d 100644
--- a/servers/visual/visual_server_canvas.cpp
+++ b/servers/visual/visual_server_canvas.cpp
@@ -231,6 +231,9 @@ void VisualServerCanvas::render_canvas(Canvas *p_canvas, const Transform2D &p_tr
}
}
}
+
+ VSG::canvas_render->canvas_end();
+
}
RID VisualServerCanvas::canvas_create() {
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp
index 93a2b67088..5ba975d193 100644
--- a/servers/visual/visual_server_raster.cpp
+++ b/servers/visual/visual_server_raster.cpp
@@ -122,6 +122,9 @@ int VisualServerRaster::get_render_info(RenderInfo p_info) {
/* TESTING */
void VisualServerRaster::set_boot_image(const Image &p_image, const Color &p_color, bool p_scale) {
+
+ redraw_request();
+ VSG::rasterizer->set_boot_image(p_image, p_color, p_scale);
}
void VisualServerRaster::set_default_clear_color(const Color &p_color) {
}
diff --git a/servers/visual/visual_server_raster.h b/servers/visual/visual_server_raster.h
index 11f6d58f95..7de497d529 100644
--- a/servers/visual/visual_server_raster.h
+++ b/servers/visual/visual_server_raster.h
@@ -852,7 +852,7 @@ public:
BIND2(particles_set_explosiveness_ratio, RID, float)
BIND2(particles_set_randomness_ratio, RID, float)
BIND2(particles_set_custom_aabb, RID, const Rect3 &)
- BIND2(particles_set_gravity, RID, const Vector3 &)
+ BIND2(particles_set_speed_scale, RID, float)
BIND2(particles_set_use_local_coordinates, RID, bool)
BIND2(particles_set_process_material, RID, RID)
BIND2(particles_set_fixed_fps, RID, int)
diff --git a/servers/visual_server.h b/servers/visual_server.h
index 04afc6dfaf..7accc7d904 100644
--- a/servers/visual_server.h
+++ b/servers/visual_server.h
@@ -480,7 +480,7 @@ public:
virtual void particles_set_explosiveness_ratio(RID p_particles, float p_ratio) = 0;
virtual void particles_set_randomness_ratio(RID p_particles, float p_ratio) = 0;
virtual void particles_set_custom_aabb(RID p_particles, const Rect3 &p_aabb) = 0;
- virtual void particles_set_gravity(RID p_particles, const Vector3 &p_gravity) = 0;
+ virtual void particles_set_speed_scale(RID p_particles, float p_scale) = 0;
virtual void particles_set_use_local_coordinates(RID p_particles, bool p_enable) = 0;
virtual void particles_set_process_material(RID p_particles, RID p_material) = 0;
virtual void particles_set_fixed_fps(RID p_particles, int p_fps) = 0;