diff options
Diffstat (limited to 'src/events')
-rw-r--r-- | src/events/render.hpp | 34 | ||||
-rw-r--r-- | src/events/world.hpp | 12 |
2 files changed, 33 insertions, 13 deletions
diff --git a/src/events/render.hpp b/src/events/render.hpp index bcecac6..a3eb7d6 100644 --- a/src/events/render.hpp +++ b/src/events/render.hpp @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2019 Belle-Isle, Andrew <drumsetmonkey@gmail.com> + * + * 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 <http://www.gnu.org/licenses/>. + */ + #ifndef EVENTS_RENDER_HPP_ #define EVENTS_RENDER_HPP_ @@ -8,9 +25,24 @@ struct NewRenderEvent GLuint normal; unsigned int vertex; - NewRenderEvent(GLuint _vbo, GLuint _tex, GLuint _normal, unsigned int _vertex) : + NewRenderEvent(GLuint _vbo, GLuint _tex, + GLuint _normal, unsigned int _vertex) : vbo(_vbo), tex(_tex), normal(_normal), vertex(_vertex) {} }; +struct WorldMeshUpdateEvent +{ + GLuint worldVBO; + GLuint worldTexture; + GLuint worldNormal; + unsigned int numVertex; + + WorldMeshUpdateEvent(GLuint v, GLuint t, + GLuint n, unsigned int p) : + worldVBO(v), worldTexture(t), worldNormal(n), numVertex(p) {} + + WorldMeshUpdateEvent() {}; +}; + #endif // EVENTS_RENDER_HPP_ diff --git a/src/events/world.hpp b/src/events/world.hpp index e5969c0..e6f6d79 100644 --- a/src/events/world.hpp +++ b/src/events/world.hpp @@ -28,16 +28,4 @@ struct WorldChangeEvent newWorld(w) {} }; -struct WorldMeshUpdateEvent -{ - GLuint worldVBO; - unsigned int numVertex; - GLuint worldTexture; - GLuint worldNormal; - - WorldMeshUpdateEvent(GLuint v, unsigned int p, - GLuint t, GLuint n) : - worldVBO(v), numVertex(p), worldTexture(t), worldNormal(n) {} -}; - #endif//EVENTS_WORLD_HPP |