| 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/Dmfc/dmfcfunctions.cpp $ |
| 21 | * $Revision: 1.1.1.1 $ |
| 22 | * $Date: 2003/08/26 03:57:20 $ |
| 23 | * $Author: kevinb $ |
| 24 | * |
| 25 | * Function pointers |
| 26 | * |
| 27 | * $Log: dmfcfunctions.cpp,v $ |
| 28 | * Revision 1.1.1.1 2003/08/26 03:57:20 kevinb |
| 29 | * initial 1.5 import |
| 30 | * |
| 31 | * |
| 32 | * 26 8/16/99 5:38p Jeff |
| 33 | * final updates for patch |
| 34 | * |
| 35 | * 25 8/15/99 4:36p Jeff |
| 36 | * finished exporting all inventory class functions. export object_info |
| 37 | * array. added check for -nooutragelogo to display Outrage logo display. |
| 38 | * |
| 39 | * 24 8/11/99 5:31p Jeff |
| 40 | * addon tablefile function returns a bool now |
| 41 | * |
| 42 | * 23 8/11/99 1:22p Jeff |
| 43 | * exported needed functions for camera windows |
| 44 | * |
| 45 | * 22 7/20/99 11:27a Jeff |
| 46 | * created functions to fire weapons |
| 47 | * |
| 48 | * 21 7/11/99 3:31p Jeff |
| 49 | * exported game arguments, made command line option to specify |
| 50 | * autoexec.dmfc |
| 51 | * |
| 52 | * 20 7/07/99 12:16p Jeff |
| 53 | * all mangles symbol names fixed. Finished making interface functions. |
| 54 | * |
| 55 | * 19 5/20/99 5:31p Jeff |
| 56 | * exported PlayerStopSounds |
| 57 | * |
| 58 | * 18 5/19/99 11:49p Jeff |
| 59 | * final preparations for dmfc version 1.0 |
| 60 | * |
| 61 | * 17 5/19/99 5:27p Jeff |
| 62 | * fixed some function prototypes |
| 63 | * |
| 64 | * 16 5/19/99 2:44a Jeff |
| 65 | * CreateTextItem has a third parameter |
| 66 | * |
| 67 | * 15 5/03/99 8:39a Jeff |
| 68 | * tons of Entropy fixes |
| 69 | * |
| 70 | * 14 4/30/99 7:36p Jeff |
| 71 | * exported vis_effects to dmfc |
| 72 | * |
| 73 | * 13 3/27/99 4:53p Jeff |
| 74 | * player rankings in multiplayer games implemented. Fixed join message |
| 75 | * so it doesn't get cut off |
| 76 | * |
| 77 | * 12 3/22/99 6:20p Jeff |
| 78 | * added 2 more audio taunts. a mulitplayer event when someone plays an |
| 79 | * audio taunt. option to disable audio taunts. |
| 80 | * |
| 81 | * 11 3/17/99 12:23p Jeff |
| 82 | * converted DMFC to be COM interface |
| 83 | * |
| 84 | * 10 3/12/99 7:40p Jeff |
| 85 | * removed enhanced objcreate, added enhanced objsetpos |
| 86 | * |
| 87 | * 9 3/11/99 6:30p Jeff |
| 88 | * numerous fixes to demo system in multiplayer games (when |
| 89 | * recording/playback a demo in a multiplayer game) |
| 90 | * |
| 91 | * 8 3/05/99 1:29p Jeff |
| 92 | * |
| 93 | * 7 2/25/99 8:54p Jeff |
| 94 | * Inventory supports level change persistant items. Inventory supports |
| 95 | * time-out objects. Inventory Reset changed (takes a level of reset |
| 96 | * now). Quad lasers stay across level change (single player). Guidebot |
| 97 | * bug fixed (now back in ship on level start). Quads time out when |
| 98 | * spewed. Invulnerability and cloak powerups no longer use game |
| 99 | * event/callbacks, so they can be saved in game saves (moved to |
| 100 | * MakePlayerInvulnerable and MakeObjectInvisible) |
| 101 | * |
| 102 | * 6 2/10/99 11:36p Jeff |
| 103 | * exported renderer and fvi functions |
| 104 | * |
| 105 | * 5 2/08/99 5:22p Jeff |
| 106 | * exported rend_SetZBuffer...fixed up small view of stats |
| 107 | * |
| 108 | * 4 2/08/99 12:06a Jeff |
| 109 | * exported some new functions and variables |
| 110 | * |
| 111 | * 3 2/06/99 6:59p Jeff |
| 112 | * created RenderHUDGetTextLineWidth and RenderHUDGetTextHeight |
| 113 | * |
| 114 | * 2 2/03/99 4:09p Jeff |
| 115 | * moved function pointers to seperate file. created autoexec.dmfc |
| 116 | * |
| 117 | * $NoKeywords: $ |
| 118 | */ |
| 119 | |
| 120 | #include <filesystem> |
| 121 | |
| 122 | #include "DMFC.h"cxx . . $ `<file>/netgames/includes/DMFC.h`/ |
| 123 | #include "dmfcinternal.h"cxx . . $ `<file>/netgames/dmfc/dmfcinternal.h`/ |
| 124 | #include "dmfcinputcommands.h"cxx . . $ `<file>/netgames/dmfc/dmfcinputcommands.h`/ |
| 125 | #include "gamedll_header.h"cxx . . $ `<file>/netgames/includes/gamedll_header.h`/ |
| 126 | |
| 127 | void (*DLLGetGameAPIcxx . . $ DLLGetGameAPI.)(game_apicxx . . $ game_api# *); |
| 128 | bool (*DLLAddHUDMessagecxx . . $ DLLAddHUDMessage.)(const char *format, ...); |
| 129 | void (*DLLDebug_ConsolePrintfcxx . . $ DLLDebug_ConsolePrintf.)(int n, const char *format, ...); |
| 130 | void (*DLLMultiSendClientExecuteDLLcxx . . $ DLLMultiSendClientExecuteDLL.)(int eventnum, int me_objnum, int it_objnum, int to, dllinfocxx . . $ dllinfo# *info); |
| 131 | void (*DLLMultiSendObjectcxx . . $ DLLMultiSendObject.)(objectcxx . . $ object# *obj, uint8_tcxx . . $ uint8_t# announce, uint8_tcxx . . $ uint8_t# demo_record); |
| 132 | void (*DLLMultiPaintGoalRoomscxx . . $ DLLMultiPaintGoalRooms.)(int *texcolors); |
| 133 | void (*DLLMultiSendSpecialPacketcxx . . $ DLLMultiSendSpecialPacket.)(int slot, uint8_tcxx . . $ uint8_t# *outdata, int size); |
| 134 | void (*DLLComputeRoomCentercxx . . $ DLLComputeRoomCenter.)(vectorcxx . . $ vector# *vp, roomcxx . . $ room# *rp); |
| 135 | int (*DLLGetGoalRoomForTeamcxx . . $ DLLGetGoalRoomForTeam.)(int teamnum); |
| 136 | int (*DLLObjCreatecxx . . $ DLLObjCreate.)(uint8_tcxx . . $ uint8_t# type, uint16_tcxx . . $ uint16_t# id, int roomnum, vectorcxx . . $ vector# *pos, const matrixcxx . . $ matrix# *orient, |
| 137 | int parent_handle); |
| 138 | int (*DLLFindObjectIDNamecxx . . $ DLLFindObjectIDName.)(const char *name); |
| 139 | void (*DLLObjSetPosNoMarkcxx . . $ DLLObjSetPosNoMark.)(objectcxx . . $ object# *objp, vectorcxx . . $ vector# *newpos, int roomnum, matrixcxx . . $ matrix# *orient, |
| 140 | bool f_update_attached_children); |
| 141 | void (*DLLObjSetPoscxx . . $ DLLObjSetPos.)(objectcxx . . $ object# *objp, vectorcxx . . $ vector# *newpos, int roomnum, matrixcxx . . $ matrix# *orient, |
| 142 | bool f_update_attached_children); |
| 143 | void (*DLLSetMaxTeamscxx . . $ DLLSetMaxTeams.)(int num); |
| 144 | int (*DLLIncTeamScorecxx . . $ DLLIncTeamScore.)(int team, int amount); |
| 145 | bool (*DLLInvCheckItemcxx . . $ DLLInvCheckItem.)(int pnum, int type, int id); |
| 146 | bool (*DLLInvAddTypeIDcxx . . $ DLLInvAddTypeID.)(int pnum, int type, int id, int aux_type, int aux_id, int flags, const char *description); |
| 147 | bool (*DLLInvRemovecxx . . $ DLLInvRemove.)(int pnum, int type, int id); |
| 148 | void (*DLLPlayerSetLightingcxx . . $ DLLPlayerSetLighting.)(int slot, float dist, float r, float g, float b); |
| 149 | int (*DLLFindShipNamecxx . . $ DLLFindShipName.)(const char *name); |
| 150 | void (*DLLPlayerSetRotatingBallcxx . . $ DLLPlayerSetRotatingBall.)(int slot, int num, float speed, float *r, float *g, float *b); |
| 151 | void (*DLLPlayerChangeShipcxx . . $ DLLPlayerChangeShip.)(int slot, int ship_index); |
| 152 | int (*DLLInvGetTypeIDCountcxx . . $ DLLInvGetTypeIDCount.)(int playernum, int type, int id); |
| 153 | int (*DLLPlay3dSoundcxx . . $ DLLPlay3dSound.)(int sound_index, objectcxx . . $ object# *cur_obj, float volume, int flags); |
| 154 | int (*DLLFindSoundNamecxx . . $ DLLFindSoundName.)(const char *str); |
| 155 | int (*DLLSpewCreatecxx . . $ DLLSpewCreate.)(spewinfocxx . . $ spewinfo# *spew); |
| 156 | void (*DLLSpewClearEventcxx . . $ DLLSpewClearEvent.)(int handle, bool force); |
| 157 | int (*DLLbm_AllocLoadFileBitmapcxx . . $ DLLbm_AllocLoadFileBitmap.)(const char *filename, int mipped, int format); |
| 158 | void (*DLLbm_FreeBitmapcxx . . $ DLLbm_FreeBitmap.)(int handle); |
| 159 | void (*DLLrend_DrawScaledBitmapcxx . . $ DLLrend_DrawScaledBitmap.)(int x1, int y1, int x2, int y2, int bm, float u0, float v0, float u1, |
| 160 | float v1, float zval, int color, float *alphas); |
| 161 | void (*DLLgrtext_Printfcxx . . $ DLLgrtext_Printf.)(int x, int y, const char *fmt, ...); |
| 162 | void (*DLLgrtext_Flushcxx . . $ DLLgrtext_Flush.)(void); |
| 163 | void (*DLLgrtext_SetColorcxx . . $ DLLgrtext_SetColor.)(ddgr_colorcxx . . $ ddgr_color# col); |
| 164 | void (*DLLgrtext_SetFancyColorcxx . . $ DLLgrtext_SetFancyColor.)(ddgr_colorcxx . . $ ddgr_color# col1, ddgr_colorcxx . . $ ddgr_color# col2, ddgr_colorcxx . . $ ddgr_color# col3, ddgr_colorcxx . . $ ddgr_color# col4); |
| 165 | void (*DLLgrtext_SetAlphacxx . . $ DLLgrtext_SetAlpha.)(uint8_tcxx . . $ uint8_t# alpha); |
| 166 | uint8_tcxx . . $ uint8_t# (*DLLgrtext_GetAlphacxx . . $ DLLgrtext_GetAlpha.)(void); |
| 167 | void (*DLLgrtext_SetFontcxx . . $ DLLgrtext_SetFont.)(int font_handle); |
| 168 | int (*DLLgrtext_GetFontcxx . . $ DLLgrtext_GetFont.)(void); |
| 169 | int (*DLLgrtext_GetTextLineWidthcxx . . $ DLLgrtext_GetTextLineWidth.)(const char *str); |
| 170 | int (*DLLgrfont_GetHeightcxx . . $ DLLgrfont_GetHeight.)(int font); |
| 171 | void (*DLLgrtext_CenteredPrintfcxx . . $ DLLgrtext_CenteredPrintf.)(int xoff, int y, const char *fmt, ...); |
| 172 | bool (*DLLAddColoredHUDMessagecxx . . $ DLLAddColoredHUDMessage.)(ddgr_colorcxx . . $ ddgr_color# color, const char *format, ...); |
| 173 | int (*DLLbm_hcxx . . $ DLLbm_h.)(int handle, int miplevel); |
| 174 | int (*DLLbm_wcxx . . $ DLLbm_w.)(int handle, int miplevel); |
| 175 | void (*DLLrend_DrawSimpleBitmapcxx . . $ DLLrend_DrawSimpleBitmap.)(int bm_handle, int x, int y); |
| 176 | void (*DLLMultiClientSendSpecialPacketcxx . . $ DLLMultiClientSendSpecialPacket.)(uint8_tcxx . . $ uint8_t# *outdate, int size); |
| 177 | bool (*DLLAddBlinkingHUDMessagecxx . . $ DLLAddBlinkingHUDMessage.)(char *format, ...); |
| 178 | void (*DLLInvResetcxx . . $ DLLInvReset.)(int playernum, bool reset_all); |
| 179 | void (*DLLAddHUDItemcxx . . $ DLLAddHUDItem.)(tHUDItemcxx . . $ tHUDItem# *item); |
| 180 | void (*DLLRenderHUDQuadcxx . . $ DLLRenderHUDQuad.)(int x, int y, int w, int h, float u0, float v0, float u1, float v1, int bm, |
| 181 | uint8_tcxx . . $ uint8_t# alpha, int sat_count); |
| 182 | void (*DLLRenderHUDTextcxx . . $ DLLRenderHUDText.)(ddgr_colorcxx . . $ ddgr_color# col, uint8_tcxx . . $ uint8_t# alpha, int sat_count, int x, int y, const char *fmt, ...); |
| 183 | void (*DLLMultiEndLevelcxx . . $ DLLMultiEndLevel.)(void); |
| 184 | uint16_tcxx . . $ uint16_t# *(*DLLbm_datacxx . . $ DLLbm_data.)(int handle, int miplevel); |
| 185 | int (*DLLbm_AllocBitmapcxx . . $ DLLbm_AllocBitmap.)(int w, int h, int add_mem); |
| 186 | void (*DLLrend_FillRectcxx . . $ DLLrend_FillRect.)(ddgr_colorcxx . . $ ddgr_color# color, int x1, int y1, int x2, int y2); |
| 187 | bool (*DLLbm_CreateChunkedBitmapcxx . . $ DLLbm_CreateChunkedBitmap.)(int bm_handle, chunked_bitmapcxx . . $ chunked_bitmap# *chunk); |
| 188 | void (*DLLbm_DestroyChunkedBitmapcxx . . $ DLLbm_DestroyChunkedBitmap.)(chunked_bitmapcxx . . $ chunked_bitmap# *chunk); |
| 189 | void (*DLLrend_DrawChunkedBitmapcxx . . $ DLLrend_DrawChunkedBitmap.)(chunked_bitmapcxx . . $ chunked_bitmap# *chunk, int x, int y, uint8_tcxx . . $ uint8_t# alpha); |
| 190 | void (*DLLrend_DrawScaledChunkedBitmapcxx . . $ DLLrend_DrawScaledChunkedBitmap.)(chunked_bitmapcxx . . $ chunked_bitmap# *chunk, int x, int y, int neww, int newh, |
| 191 | uint8_tcxx . . $ uint8_t# alpha); |
| 192 | void (*DLLOpenCFILEcxx . . $ DLLOpenCFILE.)(CFILEcxx . . $ CFILE# **handle, const std::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# &filename, const char *mode); |
| 193 | void (*DLLcfclosecxx . . $ DLLcfclose.)(CFILEcxx . . $ CFILE# *cfp); |
| 194 | int (*DLLcfeofcxx . . $ DLLcfeof.)(CFILEcxx . . $ CFILE# *cfp); |
| 195 | int (*DLLcfexistcxx . . $ DLLcfexist.)(const std::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# &filename); |
| 196 | int (*DLLcf_ReadBytescxx . . $ DLLcf_ReadBytes.)(uint8_tcxx . . $ uint8_t# *buf, int count, CFILEcxx . . $ CFILE# *cfp); |
| 197 | int (*DLLcf_ReadIntcxx . . $ DLLcf_ReadInt.)(CFILEcxx . . $ CFILE# *cfp); |
| 198 | int16_t (*DLLcf_ReadShortcxx . . $ DLLcf_ReadShort.)(CFILEcxx . . $ CFILE# *cfp); |
| 199 | int8_t (*DLLcf_ReadBytecxx . . $ DLLcf_ReadByte.)(CFILEcxx . . $ CFILE# *cfp); |
| 200 | float (*DLLcf_ReadFloatcxx . . $ DLLcf_ReadFloat.)(CFILEcxx . . $ CFILE# *cfp); |
| 201 | double (*DLLcf_ReadDoublecxx . . $ DLLcf_ReadDouble.)(CFILEcxx . . $ CFILE# *cfp); |
| 202 | int (*DLLcf_ReadStringcxx . . $ DLLcf_ReadString.)(char *buf, size_t n, CFILEcxx . . $ CFILE# *cfp); |
| 203 | int (*DLLcf_WriteBytescxx . . $ DLLcf_WriteBytes.)(const uint8_tcxx . . $ uint8_t# *buf, int count, CFILEcxx . . $ CFILE# *cfp); |
| 204 | int (*DLLcf_WriteStringcxx . . $ DLLcf_WriteString.)(CFILEcxx . . $ CFILE# *cfp, const char *buf); |
| 205 | void (*DLLcf_WriteIntcxx . . $ DLLcf_WriteInt.)(CFILEcxx . . $ CFILE# *cfp, int i); |
| 206 | void (*DLLcf_WriteShortcxx . . $ DLLcf_WriteShort.)(CFILEcxx . . $ CFILE# *cfp, int16_t s); |
| 207 | void (*DLLcf_WriteBytecxx . . $ DLLcf_WriteByte.)(CFILEcxx . . $ CFILE# *cfp, int8_t b); |
| 208 | void (*DLLcf_WriteFloatcxx . . $ DLLcf_WriteFloat.)(CFILEcxx . . $ CFILE# *cfp, float f); |
| 209 | void (*DLLcf_WriteDoublecxx . . $ DLLcf_WriteDouble.)(CFILEcxx . . $ CFILE# *cfp, double d); |
| 210 | bool (*DLLcf_CopyFilecxx . . $ DLLcf_CopyFile.)(char *dest, const char *src); |
| 211 | bool (*DLLcf_Diffcxx . . $ DLLcf_Diff.)(const char *a, const char *b); |
| 212 | void (*DLLMultiDisconnectPlayercxx . . $ DLLMultiDisconnectPlayer.)(int slot); |
| 213 | void (*DLLnw_GetNumbersFromHostAddresscxx . . $ DLLnw_GetNumbersFromHostAddress.)(network_addresscxx . . $ network_address# *address, char *str); |
| 214 | int (*DLLnw_GetThisIPcxx . . $ DLLnw_GetThisIP.)(void); |
| 215 | bool (*DLLCreateStringTablecxx . . $ DLLCreateStringTable.)(const char *filename, char ***table, int *size); |
| 216 | void (*DLLDestroyStringTablecxx . . $ DLLDestroyStringTable.)(char **table, int size); |
| 217 | void (*DLLRenderHUDTextFlagscxx . . $ DLLRenderHUDTextFlags.)(int flags, ddgr_colorcxx . . $ ddgr_color# col, uint8_tcxx . . $ uint8_t# alpha, int sat_count, int x, int y, const char *fmt, ...); |
| 218 | void (*DLLPlayerSetHUDNameFOVcxx . . $ DLLPlayerSetHUDNameFOV.)(int fov); |
| 219 | void (*DLLGetUltimateParentForObjectcxx . . $ DLLGetUltimateParentForObject.)(objectcxx . . $ object# **parent, objectcxx . . $ object# *child); |
| 220 | void (*DLLSetObjectDeadFlagRawcxx . . $ DLLSetObjectDeadFlagRaw.)(objectcxx . . $ object# *obj, bool tell_clients_to_remove, bool tell_clients_to_play_sound); |
| 221 | void (*DLLSetObjectDeadFlagcxx . . $ DLLSetObjectDeadFlag.)(objectcxx . . $ object# *obj, bool tell_clients_to_remove, bool tell_clients_to_play_sound); |
| 222 | void (*FatalErrorcxx . . $ FatalError.)(const char *reason); |
| 223 | int (*DLLMultiMatchWeaponcxx . . $ DLLMultiMatchWeapon.)(uint32_tcxx . . $ uint32_t# unique_id); |
| 224 | uint32_tcxx . . $ uint32_t# (*DLLMultiGetMatchChecksumcxx . . $ DLLMultiGetMatchChecksum.)(int type, int id); |
| 225 | int (*DLLFindWeaponNamecxx . . $ DLLFindWeaponName.)(const char *name); |
| 226 | int (*DLLcf_OpenLibrarycxx . . $ DLLcf_OpenLibrary.)(const std::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# &libname); |
| 227 | void (*DLLcf_CloseLibrarycxx . . $ DLLcf_CloseLibrary.)(int handle); |
| 228 | void (*DLLMultiSendRequestToObservecxx . . $ DLLMultiSendRequestToObserve.)(int mode, int on, int objnum); |
| 229 | int (*DLLFindTextureNamecxx . . $ DLLFindTextureName.)(const char *name); |
| 230 | bool (*DLLApplyDamageToPlayercxx . . $ DLLApplyDamageToPlayer.)(objectcxx . . $ object# *playerobj, objectcxx . . $ object# *killer, int damage_type, float damage_amount, |
| 231 | int server_says, int weapon_id, bool playsound); |
| 232 | int (*DLLMultiMatchGenericcxx . . $ DLLMultiMatchGeneric.)(uint32_tcxx . . $ uint32_t# unique_id); |
| 233 | void (*DLLSetUITextItemTextcxx . . $ DLLSetUITextItemText.)(void *uit, char *newtext, uint32_tcxx . . $ uint32_t# color); |
| 234 | void *(*DLLNewUIWindowCreatecxx . . $ DLLNewUIWindowCreate.)(int x, int y, int w, int h, int flags); |
| 235 | void (*DLLNewUIWindowDestroycxx . . $ DLLNewUIWindowDestroy.)(void *deswin); |
| 236 | void (*DLLNewUIWindowOpencxx . . $ DLLNewUIWindowOpen.)(void *deswin); |
| 237 | void (*DLLNewUIWindowClosecxx . . $ DLLNewUIWindowClose.)(void *deswin); |
| 238 | void *(*DLLTextCreatecxx . . $ DLLTextCreate.)(void *parentwin, void *textitem, int x, int y, int flags); |
| 239 | void *(*DLLEditCreatecxx . . $ DLLEditCreate.)(void *parentwin, int id, int x, int y, int w, int h, int flags); |
| 240 | void *(*DLLButtonCreatecxx . . $ DLLButtonCreate.)(void *parentwin, int id, void *titleitem, int x, int y, int w, int h, int flags); |
| 241 | void *(*DLLListCreatecxx . . $ DLLListCreate.)(void *parentwin, int id, int x, int y, int w, int h, int flags); |
| 242 | void (*DLLListRemoveAllcxx . . $ DLLListRemoveAll.)(void *item); |
| 243 | void (*DLLListAddItemcxx . . $ DLLListAddItem.)(void *item, void *uitext); |
| 244 | void (*DLLListRemoveItemcxx . . $ DLLListRemoveItem.)(void *item, void *txtitem); |
| 245 | void (*DLLListSelectItemcxx . . $ DLLListSelectItem.)(void *item, void *txtitem); |
| 246 | char *(*DLLListGetItemcxx . . $ DLLListGetItem.)(void *item, int index); |
| 247 | int (*DLLListGetSelectedIndexcxx . . $ DLLListGetSelectedIndex.)(void *item); |
| 248 | void (*DLLListSetSelectedIndexcxx . . $ DLLListSetSelectedIndex.)(void *item, int index); |
| 249 | void (*DLLEditSetTextcxx . . $ DLLEditSetText.)(void *item, const char *buff); |
| 250 | void (*DLLEditGetTextcxx . . $ DLLEditGetText.)(void *item, char *buff, int len); |
| 251 | int (*DLLDoUIcxx . . $ DLLDoUI.)(void); |
| 252 | int (*DLLDoMessageBoxcxx . . $ DLLDoMessageBox.)(const char *title, const char *msg, int type, ddgr_colorcxx . . $ ddgr_color# title_color, |
| 253 | ddgr_colorcxx . . $ ddgr_color# text_color); |
| 254 | void (*DLLDescentDefercxx . . $ DLLDescentDefer.)(void); |
| 255 | void *(*DLLNewUIGameWindowCreatecxx . . $ DLLNewUIGameWindowCreate.)(int x, int y, int w, int h, int flags); |
| 256 | void (*DLLNewUIGameWindowDestroycxx . . $ DLLNewUIGameWindowDestroy.)(void *item); |
| 257 | void (*DLLNewUIGameWindowOpencxx . . $ DLLNewUIGameWindowOpen.)(void *item); |
| 258 | void (*DLLNewUIGameWindowClosecxx . . $ DLLNewUIGameWindowClose.)(void *item); |
| 259 | void *(*DLLHotSpotCreatecxx . . $ DLLHotSpotCreate.)(void *parentwin, int id, int key, void *txtitemoff, void *txtitemon, int x, |
| 260 | int y, int w, int h, int flags); |
| 261 | int (*DLLPollUIcxx . . $ DLLPollUI.)(void); |
| 262 | void (*DLLRemoveUITextItemcxx . . $ DLLRemoveUITextItem.)(void *item); |
| 263 | void *(*DLLCreateNewUITextItemcxx . . $ DLLCreateNewUITextItem.)(const char *newtext, uint32_tcxx . . $ uint32_t# color, int font); |
| 264 | void (*DLLRemoveUIBmpItemcxx . . $ DLLRemoveUIBmpItem.)(void *item); |
| 265 | void *(*DLLCreateNewUIBmpItemcxx . . $ DLLCreateNewUIBmpItem.)(int handle, uint8_tcxx . . $ uint8_t# alpha); |
| 266 | void *(*DLLUIConsoleGadgetCreatecxx . . $ DLLUIConsoleGadgetCreate.)(void *parentid, int id, int x, int y, int font, int cols, int rows, |
| 267 | int flags); |
| 268 | void (*DLLUIConsoleGadgetputscxx . . $ DLLUIConsoleGadgetputs.)(void *item, const char *str); |
| 269 | void (*DLLNewUIWindowSetFocusOnEditGadgetcxx . . $ DLLNewUIWindowSetFocusOnEditGadget.)(void *item, void *parent); |
| 270 | void *(*DLLOldListCreatecxx . . $ DLLOldListCreate.)(void *parentitem, int id, int x, int y, int w, int h, int flags); |
| 271 | void (*DLLOldListRemoveAllcxx . . $ DLLOldListRemoveAll.)(void *item); |
| 272 | void (*DLLOldListAddItemcxx . . $ DLLOldListAddItem.)(void *item, void *uitext); |
| 273 | void (*DLLOldListRemoveItemcxx . . $ DLLOldListRemoveItem.)(void *item, void *txtitem); |
| 274 | void (*DLLOldListSelectItemcxx . . $ DLLOldListSelectItem.)(void *item, void *txtitem); |
| 275 | void *(*DLLOldEditCreatecxx . . $ DLLOldEditCreate.)(void *parentitem, int id, int x, int y, int w, int h, int flags); |
| 276 | void (*DLLOldEditGetTextcxx . . $ DLLOldEditGetText.)(void *item, char *buff, int len); |
| 277 | void (*DLLOldEditSetTextcxx . . $ DLLOldEditSetText.)(void *item, const char *newtext); |
| 278 | char *(*DLLOldListGetItemcxx . . $ DLLOldListGetItem.)(void *item, int index); |
| 279 | int (*DLLOldListGetSelectedIndexcxx . . $ DLLOldListGetSelectedIndex.)(void *item); |
| 280 | void (*DLLToggleUICallbackcxx . . $ DLLToggleUICallback.)(int state); |
| 281 | void (*DLLSetOldEditBufferLencxx . . $ DLLSetOldEditBufferLen.)(void *item, int len); |
| 282 | void (*DLLNewUIWindowLoadBackgroundImagecxx . . $ DLLNewUIWindowLoadBackgroundImage.)(void *item, const char *image_name); |
| 283 | void (*DLLDeleteUIItemcxx . . $ DLLDeleteUIItem.)(void *delitem); |
| 284 | void (*DLLHotSpotSetStatescxx . . $ DLLHotSpotSetStates.)(void *hs, void *texton, void *textoff); |
| 285 | void (*DLLSetUICallbackcxx . . $ DLLSetUICallback.)(void (*fn)()); |
| 286 | void (*DLLGetUICallbackcxx . . $ DLLGetUICallback.)(void **fn); |
| 287 | void (*DLLSuspendControlscxx . . $ DLLSuspendControls.)(void); |
| 288 | void (*DLLResumeControlscxx . . $ DLLResumeControls.)(void); |
| 289 | void (*DLLShowCursorcxx . . $ DLLShowCursor.)(void); |
| 290 | void (*DLLHideCursorcxx . . $ DLLHideCursor.)(void); |
| 291 | void (*DLLGameFramecxx . . $ DLLGameFrame.)(void); |
| 292 | void (*DPrintfcxx . . $ DPrintf.)(const char *format, ...); |
| 293 | void (*DLLassertcxx . . $ DLLassert.)(int, const char *, const char *, int); |
| 294 | void (*DLLddio_SplitPathcxx . . $ DLLddio_SplitPath.)(const char *srcPath, char *path, char *filename, char *ext); |
| 295 | void (*DLLddio_MakePathcxx . . $ DLLddio_MakePath.)(char *newPath, const char *absolutePathHeader, const char *subDir, ...); |
| 296 | int (*DLLPlay2dSoundcxx . . $ DLLPlay2dSound.)(int sound_index, float volume); |
| 297 | void (*DLLTouchSoundcxx . . $ DLLTouchSound.)(int sound_index); |
| 298 | bool (*DatabaseRead1cxx . . $ DatabaseRead1.)(const char *label, char *entry, int *entrylen); |
| 299 | bool (*DatabaseRead2cxx . . $ DatabaseRead2.)(const char *label, void *entry, int wordsize); |
| 300 | bool (*DatabaseRead3cxx . . $ DatabaseRead3.)(const char *label, bool *entry); |
| 301 | bool (*DatabaseWrite1cxx . . $ DatabaseWrite1.)(const char *label, const char *entry, int entrylen); |
| 302 | bool (*DatabaseWrite2cxx . . $ DatabaseWrite2.)(const char *label, int entry); |
| 303 | bool (*DLLAttachObjectcxx . . $ DLLAttachObject.)(objectcxx . . $ object# *parent, char parent_ap, objectcxx . . $ object# *child, char child_ap, bool f_use_aligned); |
| 304 | bool (*DLLObjGetcxx . . $ DLLObjGet.)(int handle, objectcxx . . $ object# **obj); |
| 305 | int (*DLLGetUIItemWidthcxx . . $ DLLGetUIItemWidth.)(void *item); |
| 306 | int (*DLLGetUIItemHeightcxx . . $ DLLGetUIItemHeight.)(void *item); |
| 307 | void *(*DLLSliderCreatecxx . . $ DLLSliderCreate.)(void *parent, int id, int x, int y, int flags); |
| 308 | void (*DLLSliderSetRangecxx . . $ DLLSliderSetRange.)(void *slider, int range); |
| 309 | int (*DLLSliderGetRangecxx . . $ DLLSliderGetRange.)(void *slider); |
| 310 | void (*DLLSliderSetPoscxx . . $ DLLSliderSetPos.)(void *slider, int pos); |
| 311 | int (*DLLSliderGetPoscxx . . $ DLLSliderGetPos.)(void *slider); |
| 312 | void (*DLLSliderSetSelectChangeCallbackcxx . . $ DLLSliderSetSelectChangeCallback.)(void *slider, void (*fn)(int)); |
| 313 | void (*DLLSliderSetSelectChangeCallbackWDatacxx . . $ DLLSliderSetSelectChangeCallbackWData.)(void *slider, void (*fn)(int, void *), void *ptr); |
| 314 | void (*DLLTextSetTitlecxx . . $ DLLTextSetTitle.)(void *text, void *textitem); |
| 315 | bool (*DLLPPic_GetPilotcxx . . $ DLLPPic_GetPilot.)(uint16_tcxx . . $ uint16_t# pilot_id, char *pilot_name, int buffersize); |
| 316 | int (*DLLPPic_GetBitmapHandlecxx . . $ DLLPPic_GetBitmapHandle.)(uint16_tcxx . . $ uint16_t# pilot_id); |
| 317 | void (*DLLrend_DrawLinecxx . . $ DLLrend_DrawLine.)(int x1, int y1, int x2, int y2); |
| 318 | void (*DLLrend_SetFlatColorcxx . . $ DLLrend_SetFlatColor.)(ddgr_colorcxx . . $ ddgr_color# color); |
| 319 | void (*DLLMultiSetLogoStatecxx . . $ DLLMultiSetLogoState.)(bool state); |
| 320 | void (*DLLPlayerSpewInventorycxx . . $ DLLPlayerSpewInventory.)(objectcxx . . $ object# *obj, bool spew_energy_and_shield, bool spew_nonspewable); |
| 321 | int (*DLLPlayerGetRandomStartPositioncxx . . $ DLLPlayerGetRandomStartPosition.)(int slot); |
| 322 | void (*DLLInitPlayerNewShipcxx . . $ DLLInitPlayerNewShip.)(int slot, int inven_reset); |
| 323 | void *(*DLLCheckBoxCreatecxx . . $ DLLCheckBoxCreate.)(void *parent, int id, void *title, int x, int y, int w, int h, int flags); |
| 324 | void (*DLLCheckBoxSetCheckcxx . . $ DLLCheckBoxSetCheck.)(void *cb, bool state); |
| 325 | bool (*DLLCheckBoxIsCheckedcxx . . $ DLLCheckBoxIsChecked.)(void *cb); |
| 326 | uint32_tcxx . . $ uint32_t# (*DLLnw_GetHostAddressFromNumberscxx . . $ DLLnw_GetHostAddressFromNumbers.)(char *str); |
| 327 | void (*TableFilesClearcxx . . $ TableFilesClear.)(void); |
| 328 | bool (*TableFileAddcxx . . $ TableFileAdd.)(char *filename); |
| 329 | void (*DLLDebugBreak_callback_stopcxx . . $ DLLDebugBreak_callback_stop.)(void); |
| 330 | void (*DLLDebugBreak_callback_resumecxx . . $ DLLDebugBreak_callback_resume.)(void); |
| 331 | void (*DLLInt3MessageBoxcxx . . $ DLLInt3MessageBox.)(const char *file, const char *line); |
| 332 | void (*DLLGetUIItemPositioncxx . . $ DLLGetUIItemPosition.)(void *item, int *x, int *y, int *w, int *h); |
| 333 | bool (*DLLAttachObjectRadiuscxx . . $ DLLAttachObjectRadius.)(objectcxx . . $ object# *parent, char parent_ap, objectcxx . . $ object# *child, float percent_rad); |
| 334 | bool (*DLLUnattachChildrencxx . . $ DLLUnattachChildren.)(objectcxx . . $ object# *parent); |
| 335 | bool (*DLLUnattachChildcxx . . $ DLLUnattachChild.)(objectcxx . . $ object# *parent, char parent_ap); |
| 336 | bool (*DLLUnattachFromParentcxx . . $ DLLUnattachFromParent.)(objectcxx . . $ object# *child); |
| 337 | float (*DLLvm_GetMagnitudecxx . . $ DLLvm_GetMagnitude.)(vectorcxx . . $ vector# *); |
| 338 | void (*DLLvm_MatrixMulVectorcxx . . $ DLLvm_MatrixMulVector.)(vectorcxx . . $ vector# *, vectorcxx . . $ vector# *, matrixcxx . . $ matrix# *); |
| 339 | void (*DLLphys_apply_forcecxx . . $ DLLphys_apply_force.)(objectcxx . . $ object# *obj, vectorcxx . . $ vector# *force_vec, int16_t weapon_index); |
| 340 | void (*DLLphys_apply_rotcxx . . $ DLLphys_apply_rot.)(objectcxx . . $ object# *obj, vectorcxx . . $ vector# *force_vec); |
| 341 | void (*DLLvm_TransposeMatrixcxx . . $ DLLvm_TransposeMatrix.)(matrixcxx . . $ matrix# *); |
| 342 | void (*DLLvm_CrossProductcxx . . $ DLLvm_CrossProduct.)(vectorcxx . . $ vector# *, vectorcxx . . $ vector# *, vectorcxx . . $ vector# *); |
| 343 | float (*DLLvm_NormalizeVectorcxx . . $ DLLvm_NormalizeVector.)(vectorcxx . . $ vector# *); |
| 344 | void (*DLLConvertEulerToAxisAmountcxx . . $ DLLConvertEulerToAxisAmount.)(vectorcxx . . $ vector# *e, vectorcxx . . $ vector# *n, float *w); |
| 345 | void (*DLLConvertAxisAmountToEulercxx . . $ DLLConvertAxisAmountToEuler.)(vectorcxx . . $ vector# *n, float *w, vectorcxx . . $ vector# *e); |
| 346 | float (*DLLvm_GetMagnitudeFastcxx . . $ DLLvm_GetMagnitudeFast.)(vectorcxx . . $ vector# *); |
| 347 | void (*DLLvm_MakeIdentitycxx . . $ DLLvm_MakeIdentity.)(matrixcxx . . $ matrix# *); |
| 348 | void (*DLLvm_MakeVectorZerocxx . . $ DLLvm_MakeVectorZero.)(vectorcxx . . $ vector# *v); |
| 349 | void (*DLLvm_MakeAngleZerocxx . . $ DLLvm_MakeAngleZero.)(angveccxx . . $ angvec# *a); |
| 350 | void (*DLLvm_VectorMulTMatrixcxx . . $ DLLvm_VectorMulTMatrix.)(vectorcxx . . $ vector# *result, vectorcxx . . $ vector# *v, matrixcxx . . $ matrix# *m); |
| 351 | void (*DLLvm_MatrixMulcxx . . $ DLLvm_MatrixMul.)(matrixcxx . . $ matrix# *, matrixcxx . . $ matrix# *, matrixcxx . . $ matrix# *); |
| 352 | void (*DLLvm_MatrixMulTMatrixcxx . . $ DLLvm_MatrixMulTMatrix.)(matrixcxx . . $ matrix# *dest, matrixcxx . . $ matrix# *src0, matrixcxx . . $ matrix# *src1); |
| 353 | float (*DLLvm_DotProductcxx . . $ DLLvm_DotProduct.)(vectorcxx . . $ vector# *, vectorcxx . . $ vector# *); |
| 354 | void (*DLLvm_SubVectorscxx . . $ DLLvm_SubVectors.)(vectorcxx . . $ vector# *, const vectorcxx . . $ vector# *, const vectorcxx . . $ vector# *); |
| 355 | void (*DLLvm_AddVectorscxx . . $ DLLvm_AddVectors.)(vectorcxx . . $ vector# *, vectorcxx . . $ vector# *, vectorcxx . . $ vector# *); |
| 356 | void (*DLLvm_AverageVectorcxx . . $ DLLvm_AverageVector.)(vectorcxx . . $ vector# *, int); |
| 357 | void (*DLLvm_ScaleVectorcxx . . $ DLLvm_ScaleVector.)(vectorcxx . . $ vector# *, vectorcxx . . $ vector# *, float); |
| 358 | void (*DLLvm_ScaleAddVectorcxx . . $ DLLvm_ScaleAddVector.)(vectorcxx . . $ vector# *d, vectorcxx . . $ vector# *p, vectorcxx . . $ vector# *v, float s); |
| 359 | void (*DLLvm_DivVectorcxx . . $ DLLvm_DivVector.)(vectorcxx . . $ vector# *, vectorcxx . . $ vector# *, float); |
| 360 | float (*DLLvm_NormalizeVectorFastcxx . . $ DLLvm_NormalizeVectorFast.)(vectorcxx . . $ vector# *); |
| 361 | void (*DLLvm_ClearMatrixcxx . . $ DLLvm_ClearMatrix.)(matrixcxx . . $ matrix# *); |
| 362 | void (*DLLvm_AnglesToMatrixcxx . . $ DLLvm_AnglesToMatrix.)(matrixcxx . . $ matrix# *, anglecxx . . $ angle# p, anglecxx . . $ angle# h, anglecxx . . $ angle# b); |
| 363 | void (*DLLvm_Orthogonalizecxx . . $ DLLvm_Orthogonalize.)(matrixcxx . . $ matrix# *m); |
| 364 | void (*DLLvm_VectorToMatrixcxx . . $ DLLvm_VectorToMatrix.)(matrixcxx . . $ matrix# *m, vectorcxx . . $ vector# *fvec, vectorcxx . . $ vector# *uvec, vectorcxx . . $ vector# *rvec); |
| 365 | void (*DLLvm_VectorAngleToMatrixcxx . . $ DLLvm_VectorAngleToMatrix.)(matrixcxx . . $ matrix# *m, vectorcxx . . $ vector# *v, anglecxx . . $ angle# a); |
| 366 | void (*DLLvm_SinCoscxx . . $ DLLvm_SinCos.)(anglecxx . . $ angle#, float *, float *); |
| 367 | float (*DLLvm_GetSlopecxx . . $ DLLvm_GetSlope.)(float, float, float, float); |
| 368 | void (*DLLvm_GetPerpcxx . . $ DLLvm_GetPerp.)(vectorcxx . . $ vector# *n, vectorcxx . . $ vector# *a, vectorcxx . . $ vector# *b, vectorcxx . . $ vector# *c); |
| 369 | float (*DLLvm_GetNormalcxx . . $ DLLvm_GetNormal.)(vectorcxx . . $ vector# *n, vectorcxx . . $ vector# *v0, vectorcxx . . $ vector# *v1, vectorcxx . . $ vector# *v2); |
| 370 | float (*DLLvm_VectorDistancecxx . . $ DLLvm_VectorDistance.)(const vectorcxx . . $ vector# *a, const vectorcxx . . $ vector# *b); |
| 371 | float (*DLLvm_VectorDistanceQuickcxx . . $ DLLvm_VectorDistanceQuick.)(vectorcxx . . $ vector# *a, vectorcxx . . $ vector# *b); |
| 372 | float (*DLLvm_GetNormalizedDircxx . . $ DLLvm_GetNormalizedDir.)(vectorcxx . . $ vector# *dest, vectorcxx . . $ vector# *end, vectorcxx . . $ vector# *start); |
| 373 | float (*DLLvm_GetNormalizedDirFastcxx . . $ DLLvm_GetNormalizedDirFast.)(vectorcxx . . $ vector# *dest, vectorcxx . . $ vector# *end, vectorcxx . . $ vector# *start); |
| 374 | angveccxx . . $ angvec# *(*DLLvm_ExtractAnglesFromMatrixcxx . . $ DLLvm_ExtractAnglesFromMatrix.)(angveccxx . . $ angvec# *a, matrixcxx . . $ matrix# *m); |
| 375 | anglecxx . . $ angle# (*DLLvm_DeltaAngVeccxx . . $ DLLvm_DeltaAngVec.)(vectorcxx . . $ vector# *v0, vectorcxx . . $ vector# *v1, vectorcxx . . $ vector# *fvec); |
| 376 | anglecxx . . $ angle# (*DLLvm_DeltaAngVecNormcxx . . $ DLLvm_DeltaAngVecNorm.)(vectorcxx . . $ vector# *v0, vectorcxx . . $ vector# *v1, vectorcxx . . $ vector# *fvec); |
| 377 | float (*DLLvm_DistToPlanecxx . . $ DLLvm_DistToPlane.)(vectorcxx . . $ vector# *checkp, vectorcxx . . $ vector# *norm, vectorcxx . . $ vector# *planep); |
| 378 | float (*DLLvm_CalcDetValuecxx . . $ DLLvm_CalcDetValue.)(matrixcxx . . $ matrix# *det); |
| 379 | void (*DLLvm_MakeInverseMatrixcxx . . $ DLLvm_MakeInverseMatrix.)(matrixcxx . . $ matrix# *dest); |
| 380 | void (*DLLvm_SinCosToMatrixcxx . . $ DLLvm_SinCosToMatrix.)(matrixcxx . . $ matrix# *m, float sinp, float cosp, float sinb, float cosb, float sinh, |
| 381 | float cosh); |
| 382 | float (*DLLvm_GetCentroidcxx . . $ DLLvm_GetCentroid.)(vectorcxx . . $ vector# *centroid, vectorcxx . . $ vector# *src, int nv); |
| 383 | void (*DLLvm_MakeRandomVectorcxx . . $ DLLvm_MakeRandomVector.)(vectorcxx . . $ vector# *vec); |
| 384 | float (*DLLvm_ComputeBoundingSpherecxx . . $ DLLvm_ComputeBoundingSphere.)(vectorcxx . . $ vector# *center, vectorcxx . . $ vector# *vecs, int num_verts); |
| 385 | float (*DLLvm_GetCentroidFastcxx . . $ DLLvm_GetCentroidFast.)(vectorcxx . . $ vector# *centroid, vectorcxx . . $ vector# *src, int nv); |
| 386 | int (*DLLRenderHUDGetTextLineWidthcxx . . $ DLLRenderHUDGetTextLineWidth.)(const char *string); |
| 387 | int (*DLLRenderHUDGetTextHeightcxx . . $ DLLRenderHUDGetTextHeight.)(const char *string); |
| 388 | void (*DLLStartFramecxx . . $ DLLStartFrame.)(int x, int y, int x2, int y2, bool clear); |
| 389 | void (*DLLEndFramecxx . . $ DLLEndFrame.)(void); |
| 390 | void (*DLLResetFacingscxx . . $ DLLResetFacings.)(void); |
| 391 | void (*DLLGameRenderWorldcxx . . $ DLLGameRenderWorld.)(objectcxx . . $ object# *viewer, vectorcxx . . $ vector# *viewer_eye, int viewer_roomnum, matrixcxx . . $ matrix# *viewer_orient, |
| 392 | float zoom, bool rear_view); |
| 393 | bool (*DLLGetFrameParameterscxx . . $ DLLGetFrameParameters.)(int *x1, int *y1, int *x2, int *y2); |
| 394 | void (*DLLrend_SetZBufferStatecxx . . $ DLLrend_SetZBufferState.)(int8_t state); |
| 395 | void (*DLLrend_SetLightingcxx . . $ DLLrend_SetLighting.)(light_statecxx . . $ light_state#); |
| 396 | void (*DLLrend_SetColorModelcxx . . $ DLLrend_SetColorModel.)(color_modelcxx . . $ color_model#); |
| 397 | void (*DLLrend_SetTextureTypecxx . . $ DLLrend_SetTextureType.)(texture_typecxx . . $ texture_type#); |
| 398 | void (*DLLrend_DrawPolygoncxx . . $ DLLrend_DrawPolygon.)(int handle, g3Pointcxx . . $ g3Point# **p, int nv, int map_type); |
| 399 | void (*DLLrend_SetMipStatecxx . . $ DLLrend_SetMipState.)(int8_t); |
| 400 | void (*DLLrend_SetFogStatecxx . . $ DLLrend_SetFogState.)(int8_t on); |
| 401 | void (*DLLrend_SetFilteringcxx . . $ DLLrend_SetFiltering.)(int8_t state); |
| 402 | void (*DLLrend_SetOverlayMapcxx . . $ DLLrend_SetOverlayMap.)(int handle); |
| 403 | void (*DLLrend_SetOverlayTypecxx . . $ DLLrend_SetOverlayType.)(uint8_tcxx . . $ uint8_t# type); |
| 404 | void (*DLLrend_ClearScreencxx . . $ DLLrend_ClearScreen.)(ddgr_colorcxx . . $ ddgr_color# color); |
| 405 | void (*DLLrend_SetPixelcxx . . $ DLLrend_SetPixel.)(ddgr_colorcxx . . $ ddgr_color# color, int x, int y); |
| 406 | ddgr_colorcxx . . $ ddgr_color# (*DLLrend_GetPixelcxx . . $ DLLrend_GetPixel.)(int x, int y); |
| 407 | void (*DLLrend_FillCirclecxx . . $ DLLrend_FillCircle.)(ddgr_colorcxx . . $ ddgr_color# col, int x, int y, int rad); |
| 408 | void (*DLLrend_DrawCirclecxx . . $ DLLrend_DrawCircle.)(int x, int y, int rad); |
| 409 | void (*DLLrend_SetAlphaTypecxx . . $ DLLrend_SetAlphaType.)(int8_t); |
| 410 | void (*DLLrend_SetAlphaValuecxx . . $ DLLrend_SetAlphaValue.)(uint8_tcxx . . $ uint8_t# val); |
| 411 | void (*DLLrend_SetWrapTypecxx . . $ DLLrend_SetWrapType.)(wrap_typecxx . . $ wrap_type# val); |
| 412 | void (*DLLrend_SetZBiascxx . . $ DLLrend_SetZBias.)(float z_bias); |
| 413 | void (*DLLrend_SetZBufferWriteMaskcxx . . $ DLLrend_SetZBufferWriteMask.)(int state); |
| 414 | void (*DLLrend_GetLFBLockcxx . . $ DLLrend_GetLFBLock.)(renderer_lfbcxx . . $ renderer_lfb# *lfb); |
| 415 | void (*DLLrend_ReleaseLFBLockcxx . . $ DLLrend_ReleaseLFBLock.)(renderer_lfbcxx . . $ renderer_lfb# *lfb); |
| 416 | void (*DLLrend_DrawLFBBitmapcxx . . $ DLLrend_DrawLFBBitmap.)(int sx, int sy, int w, int h, int dx, int dy, uint16_tcxx . . $ uint16_t# *data, int rowsize); |
| 417 | void (*DLLrend_DrawSpecialLinecxx . . $ DLLrend_DrawSpecialLine.)(g3Pointcxx . . $ g3Point# *p0, g3Pointcxx . . $ g3Point# *p1); |
| 418 | int (*DLLfvi_FindIntersectioncxx . . $ DLLfvi_FindIntersection.)(fvi_querycxx . . $ fvi_query# *fq, fvi_infocxx . . $ fvi_info# *hit_data, bool no_subdivision); |
| 419 | int (*DLLfvi_QuickDistFaceListcxx . . $ DLLfvi_QuickDistFaceList.)(int init_room_index, vectorcxx . . $ vector# *pos, float rad, |
| 420 | fvi_face_room_listcxx . . $ fvi_face_room_list# *quick_fr_list, int max_elements); |
| 421 | int (*DLLfvi_QuickDistCellListcxx . . $ DLLfvi_QuickDistCellList.)(int init_cell_index, vectorcxx . . $ vector# *pos, float rad, int *quick_cell_list, |
| 422 | int max_elements); |
| 423 | int (*DLLfvi_QuickDistObjectListcxx . . $ DLLfvi_QuickDistObjectList.)(vectorcxx . . $ vector# *pos, int init_roomnum, float rad, int16_t *object_index_list, |
| 424 | int max_elements, bool f_lightmap_only, bool f_only_players_and_ais, |
| 425 | bool f_include_non_collide_objects, bool f_stop_at_closed_doors); |
| 426 | bool (*DLLfvi_QuickRoomCheckcxx . . $ DLLfvi_QuickRoomCheck.)(vectorcxx . . $ vector# *pos, roomcxx . . $ room# *cur_room, bool try_again); |
| 427 | bool (*DLLtaunt_AreEnabledcxx . . $ DLLtaunt_AreEnabled.)(void); |
| 428 | void (*DLLtaunt_Enablecxx . . $ DLLtaunt_Enable.)(bool enable); |
| 429 | int (*GetPlayerRankIndexcxx . . $ GetPlayerRankIndex.)(int pnum, char *rankbuf); |
| 430 | int (*DLLVisEffectAllocatecxx . . $ DLLVisEffectAllocate.)(void); |
| 431 | int (*DLLVisEffectFreecxx . . $ DLLVisEffectFree.)(int visnum); |
| 432 | int (*DLLVisEffectInitTypecxx . . $ DLLVisEffectInitType.)(vis_effectcxx . . $ vis_effect# *vis); |
| 433 | int (*DLLVisEffectCreatecxx . . $ DLLVisEffectCreate.)(uint8_tcxx . . $ uint8_t# type, uint8_tcxx . . $ uint8_t# id, int roomnum, vectorcxx . . $ vector# *pos); |
| 434 | void (*DLLVisEffectLinkcxx . . $ DLLVisEffectLink.)(int visnum, int roomnum); |
| 435 | void (*DLLVisEffectUnlinkcxx . . $ DLLVisEffectUnlink.)(int visnum); |
| 436 | void (*DLLVisEffectRelinkcxx . . $ DLLVisEffectRelink.)(int visnum, int newroomnum); |
| 437 | void (*DLLVisEffectDeletecxx . . $ DLLVisEffectDelete.)(int visnum); |
| 438 | void (*DLLCreateRandomSparkscxx . . $ DLLCreateRandomSparks.)(int num_sparks, vectorcxx . . $ vector# *pos, int roomnum, int which_index, |
| 439 | float force_scalar); |
| 440 | void (*DLLCreateRandomLineSparkscxx . . $ DLLCreateRandomLineSparks.)(int num_sparks, vectorcxx . . $ vector# *pos, int roomnum, uint16_tcxx . . $ uint16_t# color, |
| 441 | float force_scalar); |
| 442 | int (*DLLVisEffectCreateControlledcxx . . $ DLLVisEffectCreateControlled.)(uint8_tcxx . . $ uint8_t# type, objectcxx . . $ object# *parent, uint8_tcxx . . $ uint8_t# id, int roomnum, vectorcxx . . $ vector# *pos, |
| 443 | float lifetime, vectorcxx . . $ vector# *velocity, int phys_flags, float size, |
| 444 | float mass, float drag, bool isreal); |
| 445 | void (*DLLCreateRandomParticlescxx . . $ DLLCreateRandomParticles.)(int num_sparks, vectorcxx . . $ vector# *pos, int roomnum, int bm_handle, float size, |
| 446 | float life); |
| 447 | void (*DLLAttachRandomNapalmEffectsToObjectcxx . . $ DLLAttachRandomNapalmEffectsToObject.)(objectcxx . . $ object# *obj); |
| 448 | void (*DLLInitObjectScriptscxx . . $ DLLInitObjectScripts.)(objectcxx . . $ object# *objp, bool do_evt_created); |
| 449 | void (*DLLg3_StartFramecxx . . $ DLLg3_StartFrame.)(vectorcxx . . $ vector# *view_pos, matrixcxx . . $ matrix# *view_matrix, float zoom); |
| 450 | void (*DLLg3_EndFramecxx . . $ DLLg3_EndFrame.)(void); |
| 451 | void (*DLLg3_GetViewPositioncxx . . $ DLLg3_GetViewPosition.)(vectorcxx . . $ vector# *vp); |
| 452 | void (*DLLg3_GetViewMatrixcxx . . $ DLLg3_GetViewMatrix.)(matrixcxx . . $ matrix# *mat); |
| 453 | void (*DLLg3_GetUnscaledMatrixcxx . . $ DLLg3_GetUnscaledMatrix.)(matrixcxx . . $ matrix# *mat); |
| 454 | void (*DLLg3_StartInstanceMatrixcxx . . $ DLLg3_StartInstanceMatrix.)(vectorcxx . . $ vector# *pos, matrixcxx . . $ matrix# *orient); |
| 455 | void (*DLLg3_StartInstanceAnglescxx . . $ DLLg3_StartInstanceAngles.)(vectorcxx . . $ vector# *pos, angveccxx . . $ angvec# *angles); |
| 456 | void (*DLLg3_DoneInstancecxx . . $ DLLg3_DoneInstance.)(); |
| 457 | bool (*DLLg3_CheckNormalFacingcxx . . $ DLLg3_CheckNormalFacing.)(vectorcxx . . $ vector# *v, vectorcxx . . $ vector# *norm); |
| 458 | uint8_tcxx . . $ uint8_t# (*DLLg3_RotatePointcxx . . $ DLLg3_RotatePoint.)(g3Pointcxx . . $ g3Point# *dest, vectorcxx . . $ vector# *src); |
| 459 | void (*DLLg3_ProjectPointcxx . . $ DLLg3_ProjectPoint.)(g3Pointcxx . . $ g3Point# *point); |
| 460 | float (*DLLg3_CalcPointDepthcxx . . $ DLLg3_CalcPointDepth.)(vectorcxx . . $ vector# *pnt); |
| 461 | void (*DLLg3_Point2Veccxx . . $ DLLg3_Point2Vec.)(vectorcxx . . $ vector# *v, int16_t sx, int16_t sy); |
| 462 | uint8_tcxx . . $ uint8_t# (*DLLg3_CodePointcxx . . $ DLLg3_CodePoint.)(g3Pointcxx . . $ g3Point# *point); |
| 463 | vectorcxx . . $ vector# *(*DLLg3_RotateDeltaXcxx . . $ DLLg3_RotateDeltaX.)(vectorcxx . . $ vector# *dest, float dx); |
| 464 | vectorcxx . . $ vector# *(*DLLg3_RotateDeltaYcxx . . $ DLLg3_RotateDeltaY.)(vectorcxx . . $ vector# *dest, float dy); |
| 465 | vectorcxx . . $ vector# *(*DLLg3_RotateDeltaZcxx . . $ DLLg3_RotateDeltaZ.)(vectorcxx . . $ vector# *dest, float dz); |
| 466 | vectorcxx . . $ vector# *(*DLLg3_RotateDeltaVeccxx . . $ DLLg3_RotateDeltaVec.)(vectorcxx . . $ vector# *dest, vectorcxx . . $ vector# *src); |
| 467 | uint8_tcxx . . $ uint8_t# (*DLLg3_AddDeltaVeccxx . . $ DLLg3_AddDeltaVec.)(g3Pointcxx . . $ g3Point# *dest, g3Pointcxx . . $ g3Point# *src, vectorcxx . . $ vector# *deltav); |
| 468 | int (*DLLg3_DrawPolycxx . . $ DLLg3_DrawPoly.)(int nv, g3Pointcxx . . $ g3Point# **pointlist, int bm, int map_type, g3Codescxx . . $ g3Codes# *clip_codes); |
| 469 | void (*DLLg3_DrawSpherecxx . . $ DLLg3_DrawSphere.)(ddgr_colorcxx . . $ ddgr_color# color, g3Pointcxx . . $ g3Point# *pnt, float rad); |
| 470 | void (*DLLg3_CheckAndDrawPolycxx . . $ DLLg3_CheckAndDrawPoly.)(int nv, g3Pointcxx . . $ g3Point# **pointlist, int bm, vectorcxx . . $ vector# *norm, vectorcxx . . $ vector# *pnt); |
| 471 | void (*DLLg3_DrawLinecxx . . $ DLLg3_DrawLine.)(ddgr_colorcxx . . $ ddgr_color# color, g3Pointcxx . . $ g3Point# *p0, g3Pointcxx . . $ g3Point# *p1); |
| 472 | void (*DLLg3_DrawBitmapcxx . . $ DLLg3_DrawBitmap.)(vectorcxx . . $ vector# *pos, float width, float height, int bm, int color); |
| 473 | void (*DLLg3_DrawRotatedBitmapcxx . . $ DLLg3_DrawRotatedBitmap.)(vectorcxx . . $ vector# *pos, anglecxx . . $ angle# rot_angle, float width, float height, int bm, |
| 474 | int color); |
| 475 | void (*DLLg3_DrawBoxcxx . . $ DLLg3_DrawBox.)(ddgr_colorcxx . . $ ddgr_color# color, g3Pointcxx . . $ g3Point# *pnt, float rad); |
| 476 | void (*DLLg3_SetCustomClipPlanecxx . . $ DLLg3_SetCustomClipPlane.)(uint8_tcxx . . $ uint8_t# state, vectorcxx . . $ vector# *pnt, vectorcxx . . $ vector# *normal); |
| 477 | void (*DLLg3_SetFarClipZcxx . . $ DLLg3_SetFarClipZ.)(float z); |
| 478 | g3Pointcxx . . $ g3Point# **(*DLLg3_ClipPolygoncxx . . $ DLLg3_ClipPolygon.)(g3Pointcxx . . $ g3Point# **pointlist, int *nv, g3Codescxx . . $ g3Codes# *cc); |
| 479 | void (*DLLg3_FreeTempPointscxx . . $ DLLg3_FreeTempPoints.)(g3Pointcxx . . $ g3Point# **pointlist, int nv); |
| 480 | void (*DLLg3_GetMatrixScalecxx . . $ DLLg3_GetMatrixScale.)(vectorcxx . . $ vector# *matrix_scale); |
| 481 | void (*DLLg3_SetTriangulationTestcxx . . $ DLLg3_SetTriangulationTest.)(int state); |
| 482 | void (*DLLg3_DrawSpecialLinecxx . . $ DLLg3_DrawSpecialLine.)(g3Pointcxx . . $ g3Point# *p0, g3Pointcxx . . $ g3Point# *p1); |
| 483 | void (*DLLg3_DrawPlanarRotatedBitmapcxx . . $ DLLg3_DrawPlanarRotatedBitmap.)(vectorcxx . . $ vector# *pos, vectorcxx . . $ vector# *norm, anglecxx . . $ angle# rot_angle, float width, |
| 484 | float height, int bm); |
| 485 | void (*DLLPlayerStopSoundscxx . . $ DLLPlayerStopSounds.)(int slot); |
| 486 | int (*DLLFindArgcxx . . $ DLLFindArg.)(const char *which); |
| 487 | int (*DLLFireWeaponFromObjectcxx . . $ DLLFireWeaponFromObject.)(objectcxx . . $ object# *obj, int weapon_num, int gun_num, bool f_force_forward, |
| 488 | bool f_force_target); |
| 489 | int (*DLLCreateAndFireWeaponcxx . . $ DLLCreateAndFireWeapon.)(vectorcxx . . $ vector# *pos, vectorcxx . . $ vector# *dir, objectcxx . . $ object# *parent, int weapon_num); |
| 490 | void (*DLLSelectNextCameraViewcxx . . $ DLLSelectNextCameraView.)(int window); |
| 491 | bool (*Inven_Addcxx . . $ Inven_Add.)(Inventorycxx . . $ Inventory# *inven, int type, int id, objectcxx . . $ object# *parent, int aux_type, int aux_id, int flags, |
| 492 | char *description); |
| 493 | bool (*Inven_AddObjectcxx . . $ Inven_AddObject.)(Inventorycxx . . $ Inventory# *inven, int object_handle, int flags, char *description); |
| 494 | bool (*Inven_AddCounterMeasurecxx . . $ Inven_AddCounterMeasure.)(Inventorycxx . . $ Inventory# *inven, int id, int aux_type, int aux_id, int flags, |
| 495 | char *description); |
| 496 | bool (*Inven_Removecxx . . $ Inven_Remove.)(Inventorycxx . . $ Inventory# *inven, int type, int id); |
| 497 | bool (*Inven_Usecxx . . $ Inven_Use.)(Inventorycxx . . $ Inventory# *inven, int type, int id, objectcxx . . $ object# *parent); |
| 498 | bool (*Inven_UseObjHandlecxx . . $ Inven_UseObjHandle.)(Inventorycxx . . $ Inventory# *inven, int objhandle, objectcxx . . $ object# *parent); |
| 499 | int (*Inven_Sizecxx . . $ Inven_Size.)(Inventorycxx . . $ Inventory# *inven); |
| 500 | bool (*Inven_CheckItemcxx . . $ Inven_CheckItem.)(Inventorycxx . . $ Inventory# *inven, int type, int id); |
| 501 | void (*Inven_Resetcxx . . $ Inven_Reset.)(Inventorycxx . . $ Inventory# *inven, bool in_game, int reset_stage); |
| 502 | void (*Inven_ResetPoscxx . . $ Inven_ResetPos.)(Inventorycxx . . $ Inventory# *inven); |
| 503 | void (*Inven_NextPoscxx . . $ Inven_NextPos.)(Inventorycxx . . $ Inventory# *inven, bool skip); |
| 504 | void (*Inven_PrevPoscxx . . $ Inven_PrevPos.)(Inventorycxx . . $ Inventory# *inven, bool skip); |
| 505 | bool (*Inven_GetPosTypeIDcxx . . $ Inven_GetPosTypeID.)(Inventorycxx . . $ Inventory# *inven, int &type, int &id); |
| 506 | bool (*Inven_GetAuxPosTypeIDcxx . . $ Inven_GetAuxPosTypeID.)(Inventorycxx . . $ Inventory# *inven, int &type, int &id); |
| 507 | char *(*Inven_GetPosDescriptioncxx . . $ Inven_GetPosDescription.)(Inventorycxx . . $ Inventory# *inven); |
| 508 | char *(*Inven_GetPosIconNamecxx . . $ Inven_GetPosIconName.)(Inventorycxx . . $ Inventory# *inven); |
| 509 | char *(*Inven_GetPosNamecxx . . $ Inven_GetPosName.)(Inventorycxx . . $ Inventory# *inven); |
| 510 | bool (*Inven_GetPosInfocxx . . $ Inven_GetPosInfo.)(Inventorycxx . . $ Inventory# *inven, uint16_tcxx . . $ uint16_t# &iflags, int &flags); |
| 511 | int (*Inven_GetPosCountcxx . . $ Inven_GetPosCount.)(Inventorycxx . . $ Inventory# *inven); |
| 512 | bool (*Inven_AtBeginningcxx . . $ Inven_AtBeginning.)(Inventorycxx . . $ Inventory# *inven); |
| 513 | bool (*Inven_AtEndcxx . . $ Inven_AtEnd.)(Inventorycxx . . $ Inventory# *inven); |
| 514 | void (*Inven_GotoPoscxx . . $ Inven_GotoPos.)(Inventorycxx . . $ Inventory# *inven, int newpos); |
| 515 | void (*Inven_GotoPosTypeIDcxx . . $ Inven_GotoPosTypeID.)(Inventorycxx . . $ Inventory# *inven, int type, int id); |
| 516 | bool (*Inven_UsePoscxx . . $ Inven_UsePos.)(Inventorycxx . . $ Inventory# *inven, objectcxx . . $ object# *parent); |
| 517 | int (*Inven_GetPoscxx . . $ Inven_GetPos.)(Inventorycxx . . $ Inventory# *inven); |
| 518 | void (*Inven_ValidatePoscxx . . $ Inven_ValidatePos.)(Inventorycxx . . $ Inventory# *inven, bool forward); |
| 519 | bool (*Inven_IsSelectablecxx . . $ Inven_IsSelectable.)(Inventorycxx . . $ Inventory# *inven); |
| 520 | bool (*Inven_IsUsablecxx . . $ Inven_IsUsable.)(Inventorycxx . . $ Inventory# *inven); |
| 521 | int (*Inven_GetTypeIDCountcxx . . $ Inven_GetTypeIDCount.)(Inventorycxx . . $ Inventory# *inven, int type, int id); |
| 522 | bool (*Inven_FindPoscxx . . $ Inven_FindPos.)(Inventorycxx . . $ Inventory# *inven, int type, int id); |
| 523 | int (*Inven_GetInventoryItemListcxx . . $ Inven_GetInventoryItemList.)(Inventorycxx . . $ Inventory# *inven, tInvenListcxx . . $ tInvenList# *list, int max_amount, int *cur_sel); |