| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 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 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/Main/debuggraph.h $ |
| 21 | * $Revision: 2 $ |
| 22 | * $Date: 4/04/99 8:15p $ |
| 23 | * $Author: Jeff $ |
| 24 | * |
| 25 | * Debug graph visual log |
| 26 | * |
| 27 | * $Log: /DescentIII/Main/debuggraph.h $ |
| 28 | * |
| 29 | * 2 4/04/99 8:15p Jeff |
| 30 | * added debug graph stuff |
| 31 | * |
| 32 | * $NoKeywords: $ |
| 33 | */ |
| 34 | |
| 35 | #ifndef __DEBUGGRAPH_H_ |
| 36 | #define __DEBUGGRAPH_H_ |
| 37 | #include "grdefs.h" |
| 38 | |
| 39 | #define DGF_MULTIPLAYER 0x01 // used in multiplayer |
| 40 | #define DGF_SINGLEPLAYER 0x02 // used in single player |
| 41 | |
| 42 | int DebugGraph_Add(float min, float max, const char *name, int flags = DGF_MULTIPLAYER | DGF_SINGLEPLAYER); |
| 43 | int DebugGraph_Add(int min, int max, const char *name, int flags = DGF_MULTIPLAYER | DGF_SINGLEPLAYER); |
| 44 | |
| 45 | void DebugGraph_Update(int id, int value); |
| 46 | void DebugGraph_Update(int id, float value); |
| 47 | void DebugGraph_Render(void); |
| 48 | |
| 49 | void DebugGraph_Disable(int id); |
| 50 | void DebugGraph_Enable(int id); |
| 51 | |
| 52 | void DebugGraph_DisplayOptions(void); |
| 53 | |
| 54 | void DebugGraph_Initialize(void); |
| 55 | |
| 56 | #endif |