Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
sortingrenderer.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#if defined(_MSC_VER)
20#pragma once
21#endif
22
23#ifndef SORTING_RENDERER_H
24#define SORTING_RENDERER_H
25
26#include "always.h"
27
29class SphereClass;
30
32{
33 static bool _EnableTriangleDraw;
34
35 static void Flush_Sorting_Pool();
36 static void Insert_To_Sorting_Pool(SortingNodeStruct* state);
37
38public:
39 static void Insert_Triangles(
40 const SphereClass& bounding_sphere,
41 unsigned short start_index,
42 unsigned short polygon_count,
43 unsigned short min_vertex_index,
44 unsigned short vertex_count);
45
46 static void Insert_Triangles(
47 unsigned short start_index,
48 unsigned short polygon_count,
49 unsigned short min_vertex_index,
50 unsigned short vertex_count);
51
52 static void Insert_VolumeParticle(
53 const SphereClass& bounding_sphere,
54 unsigned short start_index,
55 unsigned short polygon_count,
56 unsigned short min_vertex_index,
57 unsigned short vertex_count,
58 unsigned short layerCount);
59
60 static void Flush();
61 static void Deinit();
62
63 static void SetMinVertexBufferSize( unsigned val );
64
65 static void _Enable_Triangle_Draw(bool enable) { _EnableTriangleDraw=enable; }
66 static bool _Is_Triangle_Draw_Enabled() { return _EnableTriangleDraw; }
67};
68
69#endif
70
static bool _Is_Triangle_Draw_Enabled()
static void Insert_Triangles(const SphereClass &bounding_sphere, unsigned short start_index, unsigned short polygon_count, unsigned short min_vertex_index, unsigned short vertex_count)
static void Insert_VolumeParticle(const SphereClass &bounding_sphere, unsigned short start_index, unsigned short polygon_count, unsigned short min_vertex_index, unsigned short vertex_count, unsigned short layerCount)
static void SetMinVertexBufferSize(unsigned val)
static void _Enable_Triangle_Draw(bool enable)