summaryrefslogtreecommitdiff
path: root/servers/rendering/rendering_server_raster.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-10-30 09:37:43 -0300
committerGitHub <noreply@github.com>2020-10-30 09:37:43 -0300
commit704d06d00f7891f4d124a86d2ceadb8605d1908f (patch)
tree77dfee623c94a689ae396320dd5d79a464352ae6 /servers/rendering/rendering_server_raster.h
parentdebb67918e8644b975a929c0bdeff7922364f314 (diff)
parent0e6664539d2644e630df111426b637dc8ff7a271 (diff)
Merge pull request #43194 from reduz/pixel-snap-refactor
Refactor pixel snapping.
Diffstat (limited to 'servers/rendering/rendering_server_raster.h')
-rw-r--r--servers/rendering/rendering_server_raster.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/rendering_server_raster.h b/servers/rendering/rendering_server_raster.h
index 1c222a48c4..a89d4db1f8 100644
--- a/servers/rendering/rendering_server_raster.h
+++ b/servers/rendering/rendering_server_raster.h
@@ -528,6 +528,8 @@ public:
BIND2(viewport_remove_canvas, RID, RID)
BIND3(viewport_set_canvas_transform, RID, RID, const Transform2D &)
BIND2(viewport_set_transparent_background, RID, bool)
+ BIND2(viewport_set_snap_2d_transforms_to_pixel, RID, bool)
+ BIND2(viewport_set_snap_2d_vertices_to_pixel, RID, bool)
BIND2(viewport_set_default_canvas_item_texture_filter, RID, CanvasItemTextureFilter)
BIND2(viewport_set_default_canvas_item_texture_repeat, RID, CanvasItemTextureRepeat)