replace context offset with Camera2D
This commit is contained in:
parent
2026f8ac8d
commit
af7d6dee00
11 changed files with 132 additions and 70 deletions
30
kubo_camera.h
Normal file
30
kubo_camera.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copyright Luka Jankovic 2025
|
||||
*
|
||||
* This file is part of Kubo.
|
||||
*
|
||||
* Kubo is free software: you can redistribute it and/or modify it under the
|
||||
* terms of the GNU General Public License as published by the Free Software
|
||||
* Foundation, either version 3 of the License, or (at your option) any later
|
||||
* version.
|
||||
*
|
||||
* Kubo is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* Kubo. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef KUBO_CAMERA_H
|
||||
#define KUBO_CAMERA_H
|
||||
|
||||
#include <raylib.h>
|
||||
#include <raymath.h>
|
||||
|
||||
void kubo_camera_zoom(Camera2D *camera);
|
||||
void kubo_camera_pan(Camera2D *camera);
|
||||
void kubo_camera_shift(Camera2D *camera, Vector2 delta);
|
||||
void kubo_camera_reset(Camera2D *camera);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue