Isometric tiles now render the entire screen. Off screen tiles will not be rendered.

This commit is contained in:
Justin Marshall
2020-07-02 21:10:52 -07:00
parent a1687554cc
commit e2fcb059ec
4 changed files with 110 additions and 31 deletions
+8
View File
@@ -25,6 +25,14 @@ void GL_ResetClipRect(void) {
}
void GL_RenderImage(Image_t* image, int x, int y, int width, int height, int colorRemap, int shapeId) {
if(x < 0 || y < 0) {
return;
}
if(x >= ScreenWidth || y >= ScreenHeight) {
return;
}
ImVec2 mi(x, y);
ImVec2 ma(x + width, y + height);