-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.h
54 lines (43 loc) · 955 Bytes
/
gui.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once
#include <raylib.h>
#include "prim.h"
#include "rlimgui/imgui_impl_raylib.h"
#include "rlimgui/rlcimgui.h"
typedef enum {
CAMERA_VIEW_FRONT,
CAMERA_VIEW_BACK,
CAMERA_VIEW_RIGHT,
CAMERA_VIEW_LEFT,
CAMERA_VIEW_TOP,
CAMERA_VIEW_BOTTOM
} CameraView;
typedef struct {
Camera3D camera;
Vector3 target;
bool isPerspective;
CameraView currentView;
Vector2 previousMousePosition;
float orbitRadius;
} bdCameraSystem;
typedef struct {
char message[256];
float time_remaining;
bool active;
bool is_error;
} bdToast;
typedef struct {
const char* name;
const char* script;
} bdPresetScript;
void GuiSetup(bool dark);
void GuiBegin(void);
void GuiEnd(void);
void GuiShutdown(void);
void InitCamera();
void HandleViewSwitch();
void HandleCameraMovement();
void RenderViewport();
void DrawControlsWindow();
void DrawViewportWindow();
void ShowToast(const char* message, bool is_error);
void UpdateToasts(void);