summary refs log tree commit diff
path: root/src/SelectionBox.h
blob: 2f68f3c4452b7c660991d530c71d824646b3964b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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