diff options
-rw-r--r-- | pipeline.cpp | 16 | ||||
-rw-r--r-- | video.hpp | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/pipeline.cpp b/pipeline.cpp index 2dc8ce9..79bfc1d 100644 --- a/pipeline.cpp +++ b/pipeline.cpp @@ -136,10 +136,10 @@ void Pipeline_Builder::begin() { } void Pipeline_Builder::viewport( - float x, - float y, - float w, - float h + int x, + int y, + int w, + int h ) { pip->viewport[0] = x; pip->viewport[1] = y; @@ -148,10 +148,10 @@ void Pipeline_Builder::viewport( } void Pipeline_Builder::scissor( - float x, - float y, - float w, - float h + int x, + int y, + int w, + int h ) { pip->scissor[0] = x; pip->scissor[1] = y; @@ -295,8 +295,8 @@ struct Pipeline_Builder { void validate_rp(); void begin(); - void viewport(float x, float y, float w, float h); - void scissor(float x, float y, float w, float h); + void viewport(int x, int y, int w, int h); + void scissor(int x, int y, int w, int h); void depth(bool test, bool write, Depth_Mode mode); void blend(Blend_Mode mode, Blend_Factor src, Blend_Factor dst); void blend( |