mirror of
https://github.com/Relintai/sfw.git
synced 2025-03-11 23:39:09 +01:00
Added Camera2D::set_size_to_render_target() helper method.
This commit is contained in:
parent
b04effdfe3
commit
510b3c6203
@ -47,7 +47,9 @@ void Camera2D::make_current() {
|
||||
current_camera = this;
|
||||
}
|
||||
|
||||
|
||||
void Camera2D::set_size_to_render_target() {
|
||||
size = RenderState::render_rect.size;
|
||||
}
|
||||
|
||||
Camera2D::Camera2D() {
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ public:
|
||||
|
||||
void make_current();
|
||||
|
||||
|
||||
void set_size_to_render_target();
|
||||
|
||||
//void push_transform(const Transform2D &transform);
|
||||
//void pop_transform();
|
||||
|
Loading…
Reference in New Issue
Block a user