Skip to content

Commit 212966a

Browse files
committed
Fixed some compile errors with projects
1 parent 02ce482 commit 212966a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

blib/math/Rectangle.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ namespace blib
5959
void moveBy(const glm::vec2 &offset);
6060
inline void setWidth(float width) { bottomright.x = topleft.x + width; };
6161
inline void setHeight(float height) { bottomright.y = topleft.y + height; };
62+
inline void setSize(const glm::vec2 &size) { bottomright = topleft + size; };
6263
};
6364
}
6465
}

0 commit comments

Comments
 (0)