File tree 1 file changed +11
-1
lines changed
juno-api/src/main/java/org/meteordev/juno/api/commands
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public interface RenderPass {
18
18
19
19
/**
20
20
* Binds a pipeline for subsequent commands.
21
- * This command clears all currently bound images and set uniform data.
21
+ * This command clears all currently bound images, set uniform data and scissor window .
22
22
* @param pipeline the pipeline to bind.
23
23
*/
24
24
void bindPipeline (GraphicsPipeline pipeline );
@@ -38,6 +38,16 @@ public interface RenderPass {
38
38
*/
39
39
void setUniforms (ByteBuffer data , int slot );
40
40
41
+ /**
42
+ * Sets the current scissor region to the specified coordinates. All pixels outside this region won't be rendered.
43
+ * To disable scissor you have to set it to the same size as the image you are rendering into.
44
+ * @param x the x coordinate starting in the lower-left corner.
45
+ * @param y the y coordinate starting in the lower-left corner.
46
+ * @param width the width of the region.
47
+ * @param height the height of the region.
48
+ */
49
+ void setScissor (int x , int y , int width , int height );
50
+
41
51
/**
42
52
* Submits a draw call. Needs a pipeline to be bound and any resources it needs (images and uniforms).
43
53
* @param indexBuffer the index buffer to use.
You can’t perform that action at this time.
0 commit comments