Skip to content

Commit 4b8b362

Browse files
authored
Merge pull request #176 from altmp/ALTV-774
ALTV-774
2 parents 12d1008 + 880ea30 commit 4b8b362

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

c-api/core.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,6 +2193,25 @@ uint32_t Core_GetCurrentProcessRamUsage(alt::ICore* core)
21932193
{
21942194
return core->GetCurrentProcessRamUsage();
21952195
}
2196+
2197+
void Core_SetIMDepthTesting(alt::ICore* core, uint8_t state){
2198+
core->SetIMDepthTesting(state);
2199+
}
2200+
2201+
void Core_DrawSphere(alt::ICore* core, vector3_t center, float radius, rgba_t color, int segments){
2202+
alt::Vector3f cent;
2203+
cent[0] = center.x;
2204+
cent[1] = center.y;
2205+
cent[2] = center.z;
2206+
2207+
alt::RGBA rgba;
2208+
rgba.r = color.r;
2209+
rgba.g = color.g;
2210+
rgba.b = color.b;
2211+
rgba.a = color.a;
2212+
2213+
core->DrawSphere(cent, radius, rgba, segments);
2214+
}
21962215
#endif
21972216

21982217
CAPI_END()

c-api/core.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,4 +439,7 @@ EXPORT_CLIENT double Core_GetCPULoad(alt::ICore* core);
439439
EXPORT_CLIENT uint32_t Core_GetVideoMemoryUsage(alt::ICore* core);
440440
EXPORT_CLIENT uint32_t Core_GetRAMUsage(alt::ICore* core);
441441
EXPORT_CLIENT uint32_t Core_GetTotalRAM(alt::ICore* core);
442-
EXPORT_CLIENT uint32_t Core_GetCurrentProcessRamUsage(alt::ICore* core);
442+
EXPORT_CLIENT uint32_t Core_GetCurrentProcessRamUsage(alt::ICore* core);
443+
444+
EXPORT_CLIENT void Core_SetIMDepthTesting(alt::ICore* core, uint8_t state);
445+
EXPORT_CLIENT void Core_DrawSphere(alt::ICore* core, vector3_t center, float radius, rgba_t color, int segments);

c-api/func_table.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "func_table.h"
22

3-
inline uint64_t capiHash = 13355773337791499424UL;
3+
inline uint64_t capiHash = 112780170120234326UL;
44
inline uint64_t capiHashes[] = {
55
0,
66
#ifdef ALT_CLIENT_API
@@ -126,6 +126,7 @@ inline uint64_t capiHashes[] = {
126126
1212339219242517554UL,
127127
11971296438427190394UL,
128128
2905154853369701790UL,
129+
18244746230679490050UL,
129130
17040861123821249134UL,
130131
10675436726413059015UL,
131132
18419578908798121866UL,
@@ -230,6 +231,7 @@ inline uint64_t capiHashes[] = {
230231
2415100583194488559UL,
231232
9549326506872223025UL,
232233
9986862625405376281UL,
234+
9924768457114685689UL,
233235
14327556077081423510UL,
234236
16400827921977308918UL,
235237
18167344434001544403UL,
@@ -1955,6 +1957,7 @@ inline void* capiPointers[] = {
19551957
(void*) Core_DeallocDiscordUser,
19561958
(void*) Core_Discord_GetOAuth2Token,
19571959
(void*) Core_DoesConfigFlagExist,
1960+
(void*) Core_DrawSphere,
19581961
(void*) Core_GetAllWeaponData,
19591962
(void*) Core_GetAllWeaponDataCount,
19601963
(void*) Core_GetAudioCount,
@@ -2059,6 +2062,7 @@ inline void* capiPointers[] = {
20592062
(void*) Core_SetCamFrozen,
20602063
(void*) Core_SetConfigFlag,
20612064
(void*) Core_SetCursorPos,
2065+
(void*) Core_SetIMDepthTesting,
20622066
(void*) Core_SetMinimapComponentPosition,
20632067
(void*) Core_SetMinimapIsRectangle,
20642068
(void*) Core_SetMsPerGameMinute,

cpp-sdk

Submodule cpp-sdk updated 1 file

0 commit comments

Comments
 (0)