From abef6da56913f1c55528103e60a50451a39628b1 Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sun, 16 Jun 2024 10:35:45 +0300 Subject: initial commit --- src/SelectionBox.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/SelectionBox.h (limited to 'src/SelectionBox.h') diff --git a/src/SelectionBox.h b/src/SelectionBox.h new file mode 100644 index 0000000..2f68f3c --- /dev/null +++ b/src/SelectionBox.h @@ -0,0 +1,16 @@ +#ifndef CC_SELECTIONBOX_H +#define CC_SELECTIONBOX_H +#include "Vectors.h" +#include "PackedCol.h" +/* Describes a selection box, and contains methods related to the selection box. + Copyright 2014-2023 ClassiCube | Licensed under BSD-3 +*/ +struct IGameComponent; +extern struct IGameComponent Selections_Component; + +void Selections_Render(void); +/* Adds or replaces the selection box with the given ID */ +CC_API void Selections_Add(cc_uint8 id, const IVec3* p1, const IVec3* p2, PackedCol color); +/* Removes the selection box with the givne ID */ +CC_API void Selections_Remove(cc_uint8 id); +#endif -- cgit 1.4.1-2-gfad0