From bce8d0687f44def4b0171cd84bf1441fc4390e58 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Sun, 15 Sep 2019 03:18:26 -0400 Subject: Added event subsection of code --- src/events/world.hpp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/events/world.hpp (limited to 'src/events/world.hpp') diff --git a/src/events/world.hpp b/src/events/world.hpp new file mode 100644 index 0000000..41b9569 --- /dev/null +++ b/src/events/world.hpp @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2019 Belle-Isle, Andrew + * + * This program 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. + * + * This program 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 this program. If not, see . + */ + +#ifndef EVENTS_WORLD_HPP_ +#define EVENTS_WORLD_HPP_ + +#include "world.hpp" + +struct WorldChangeEvent +{ + World* newWorld; + + WorldChangeEvent(World* w) : + newWorld(w) {} +}; + +struct WorldMeshUpdateEvent +{ + GLuint worldVBO; + + WorldMeshUpdateEvent(GLuint v) : + worldVBO(v) {} +}; + +#endif//EVENTS_WORLD_HPP -- cgit v1.2.3