4 * Copyright (C) 2009 Mathias Gottschlag
6 * This file is part of OpenStranded
8 * OpenStranded is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
13 * OpenStranded is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with OpenStranded. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef STRANDED_HORDE3DEXTENSIONS_H
23 #define STRANDED_HORDE3DEXTENSIONS_H
25 #include <horde3d/Horde3D.h>
31 void installExtensions();
32 // Island scene node: simple terrain, with edges extended horizontally
33 static const int SNT_IslandNode
= 300;
34 struct IslandNodeParams
47 NodeHandle
addIslandNode(NodeHandle parent
, const char *name
, int sizeX
, int sizeZ
, ResHandle materialRes
);
49 void setSize(NodeHandle island
, int sizeX
, int sizeZ
);
51 float *getData(NodeHandle island
);
52 void invalidate(NodeHandle island
, int x
, int z
, int sizeX
, int sizeZ
);