-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraphics.h
More file actions
35 lines (27 loc) · 968 Bytes
/
Copy pathGraphics.h
File metadata and controls
35 lines (27 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#ifndef H_GRAPHICS
#define H_GRAPHICS
#include <raylib.h>
#include <raymath.h>
#include "Animation.h"
#include "Constants.h"
#include "Helpers.h"
/// @brief Initialize the zoom animation.
/// @param EasingFunction The easing function to use.
void InitZoomAnimation(double (*EasingFunction)(double t));
/// @brief Initialize the drag animation.
/// @param EasingFunction The easing function to use.
void InitDragAnimation(double (*EasingFunction)(double t));
/// @brief Initialize the pan animation.
/// @param EasingFunction The easing function to use.
void InitPanAnimation(double (*EasingFunction)(double t));
/// @brief Handles updating the camera zoom.
/// @param C The camera to zoom.
void UpdateZoom(Camera2D* C);
/// @brief Handles updating the camera dragging.
/// @param C The camera to drag.
void UpdateDrag(Camera2D* C);
/// @brief Handles updating the camera panning.
/// @param C The camera to pan.
void UpdatePan(Camera2D* C);
#endif