diff options
author | quou <quou@disroot.org> | 2024-12-30 12:18:26 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-30 12:18:26 +1100 |
commit | 112680014408ab946ad56001dfe53a7035f82d2c (patch) | |
tree | 1362f53f9c992f52140958416d1c318a59fdc01a /pipeline.cpp | |
parent | b27cc55aa631c52dae4a1a9c8c6888fc063fe022 (diff) |
Update scissor and viewport functions to take ints instead
Diffstat (limited to 'pipeline.cpp')
-rw-r--r-- | pipeline.cpp | 16 |
1 files changed, 8 insertions, 8 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; |