mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Clean up RenderingServer and its bindings
* Rewrote bindings for RenderingServer. * They are now all up to date. * Several unused methods and deprecated features were cleaned up.
This commit is contained in:
parent
5710adda72
commit
37776b2867
34 changed files with 3020 additions and 900 deletions
|
@ -42,26 +42,6 @@
|
|||
|
||||
int RenderingServerDefault::changes = 0;
|
||||
|
||||
/* BLACK BARS */
|
||||
|
||||
void RenderingServerDefault::black_bars_set_margins(int p_left, int p_top, int p_right, int p_bottom) {
|
||||
black_margin[SIDE_LEFT] = p_left;
|
||||
black_margin[SIDE_TOP] = p_top;
|
||||
black_margin[SIDE_RIGHT] = p_right;
|
||||
black_margin[SIDE_BOTTOM] = p_bottom;
|
||||
}
|
||||
|
||||
void RenderingServerDefault::black_bars_set_images(RID p_left, RID p_top, RID p_right, RID p_bottom) {
|
||||
black_image[SIDE_LEFT] = p_left;
|
||||
black_image[SIDE_TOP] = p_top;
|
||||
black_image[SIDE_RIGHT] = p_right;
|
||||
black_image[SIDE_BOTTOM] = p_bottom;
|
||||
}
|
||||
|
||||
void RenderingServerDefault::_draw_margins() {
|
||||
RSG::canvas_render->draw_window_margins(black_margin, black_image);
|
||||
};
|
||||
|
||||
/* FREE */
|
||||
|
||||
void RenderingServerDefault::_free(RID p_rid) {
|
||||
|
@ -114,7 +94,6 @@ void RenderingServerDefault::_draw(bool p_swap_buffers, double frame_step) {
|
|||
RSG::viewport->draw_viewports();
|
||||
RSG::canvas_render->update();
|
||||
|
||||
_draw_margins();
|
||||
RSG::rasterizer->end_frame(p_swap_buffers);
|
||||
|
||||
RSG::canvas->update_visibility_notifiers();
|
||||
|
@ -410,11 +389,6 @@ RenderingServerDefault::RenderingServerDefault(bool p_create_thread) :
|
|||
sr->set_scene_render(RSG::rasterizer->get_scene());
|
||||
|
||||
frame_profile_frame = 0;
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
black_margin[i] = 0;
|
||||
black_image[i] = RID();
|
||||
}
|
||||
}
|
||||
|
||||
RenderingServerDefault::~RenderingServerDefault() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue