xolatilization/xctree.h
2025-04-14 19:49:49 +02:00

33 lines
1.2 KiB
C

/// _
/// __ _____| |_ _ __ ___ ___
/// \ \/ / __| __| '__/ _ \/ _ \
/// > < (__| |_| | | __/ __/
/// /_/\_\___|\__|_| \___|\___|
///
/// Copyright (c) 1997 - Ognjen 'xolatile' Milan Robovic
///
/// xolatile@chud.cyou - xctree - Whitespace insignificant INI/CFG-like script parser.
///
/// This program is free software, free as in freedom and as in free beer, 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 any later version if you wish...
///
/// This program is distributed in the hope that it will be useful, but it is probably not, and without any warranty, without even the implied
/// warranty of merchantability or fitness for a particular purpose, because it is pointless. Please see the GNU (Geenoo) General Public License
/// for more details, if you dare, it is a lot of text that nobody wants to read...
typedef struct {
bool division;
float scale;
vector_3 * * vertex;
vector_3 * origin;
vector_3 * offset;
struct octree_node * children [8];
} octree_node;
typedef struct {
uint count;
uint limit;
octree_node * * array;
} octree_structure;