1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-26 03:28:02 +02:00

Revamp Stdcall

This commit is contained in:
LZMPDev 2020-05-25 20:46:28 +08:00
parent 7b4239d08e
commit ad0dab0d4c
58 changed files with 1398 additions and 1398 deletions

View file

@ -72,64 +72,64 @@ namespace Beefy
public Matrix4? mColorMatrix;
public ConstantDataDefinition mColorMatrixDataDef = new ConstantDataDefinition(16, new ConstantDataDefinition.DataType[] { ConstantDataDefinition.DataType.Matrix | ConstantDataDefinition.DataType.PixelShaderUsage }) ~ delete _;
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Lib_Startup(int32 argc, char8** argv, void* startupCallback);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_GetDesktopResolution(out int32 width, out int32 height);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_GetWorkspaceRect(out int32 x, out int32 y, out int32 width, out int32 height);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_GetWorkspaceRectFrom(int32 x, int32 y, int32 width, int32 height, out int32 outX, out int32 outY, out int32 outWidth, out int32 outHeight);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_Create();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_Delete();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_SetRefreshRate(int32 rate);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern void BFApp_SetDrawEnabled(int32 enabled);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_Init();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_Run();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_Shutdown();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_SetCallbacks(void* updateDelegate, void* drawDelegate);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern char8* BFApp_GetInstallDir();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_SetCursor(int32 cursor);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* BFApp_GetClipboardData(char8* format, out int32 size);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_ReleaseClipboardData(void* ptr);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFApp_SetClipboardData(char8* format, void* ptr, int32 size, int32 resetClipboard);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern void BFApp_CheckMemory();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern void BFApp_RehupMouse();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern void* BFApp_GetSoundManager();
UpdateDelegate mUpdateDelegate ~ delete _;

View file

@ -179,71 +179,71 @@ namespace Beefy
static NativeMouseLeaveDelegate sNativeMouseLeaveDelegate ~ delete _;
static NativeMenuItemSelectedDelegate sNativeMenuItemSelectedDelegate ~ delete _;
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* BFApp_CreateWindow(void* parent, char8* title, int32 x, int32 y, int32 width, int32 height, int32 windowFlags);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* BFWindow_GetNativeUnderlying(void* window);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_SetCallbacks(void* window, void* movedDelegate, void* closeQueryDelegate, void* closedDelegate,
void* gotFocusDelegate, void* lostFocusDelegate,
void* keyCharDelegate, void* keyDownDelegate, void* keyUpDelegate, void* hitTestDelegate,
void* mouseMoveDelegate, void* mouseProxyMoveDelegate, void* mouseDownDelegate, void* mouseUpDelegate, void* mouseWheelDelegate, void* mouseLeaveDelegate,
void* menuItemSelectedDelegate);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_SetTitle(void* window, char8* title);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_SetMinimumSize(void* window, int32 minWidth, int32 minHeight, bool clientSized);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_GetPosition(void* window, out int32 x, out int32 y, out int32 width, out int32 height, out int32 clientX, out int32 clientY, out int32 clientWidth, out int32 clientHeight);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_GetPlacement(void* window, out int32 normX, out int32 normY, out int32 normWidth, out int32 normHeight, out int32 showKind);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_Resize(void* window, int32 x, int32 y, int32 width, int32 height, int showKind);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_Close(void* window, int32 force);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_SetForeground(void* window);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_LostFocus(void* window, void* newFocus);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_SetNonExclusiveMouseCapture(void* window);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_SetClientPosition(void* window, int32 x, int32 y);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_SetAlpha(void* window, float alpha, uint32 destAlphaSrcMask, int32 mouseVisible);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_SetMouseVisible(void* window, bool mouseVisible);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BFWindow_CaptureMouse(void* window);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern bool BFWindow_IsMouseCaptured(void* window);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* BFWindow_AddMenuItem(void* window, void* parent, int32 insertIdx, char8* text, char8* hotKey, void* bitmap, int32 enabled, int32 checkState, int32 radioCheck);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* BFWindow_ModifyMenuItem(void* window, void* item, char8* text, char8* hotKey, void* bitmap, int32 enabled, int32 checkState, int32 radioCheck);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* BFWindow_DeleteMenuItem(void* window, void* item);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern int BFWindow_GetDPI(void* window);
public static BFWindow GetBFWindow(void* window)

View file

@ -13,10 +13,10 @@ namespace Beefy
{
static Random mRandom = new Random() ~ delete _;
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern int32 BF_TickCount();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern int32 BF_TickCountMicroFast();
public static float Deg2Rad = Math.PI_f / 180.0f;

View file

@ -13,19 +13,19 @@ namespace Beefy.gfx
#if !STUDIO_CLIENT
public class DrawLayer
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* DrawLayer_Create(void* window);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void DrawLayer_Delete(void* drawLayer);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void DrawLayer_Clear(void* drawLayer);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void DrawLayer_Activate(void* drawLayer);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void DrawLayer_DrawToRenderTarget(void* drawLayer, void* texture);
public void* mNativeDrawLayer;

View file

@ -38,19 +38,19 @@ namespace Beefy.gfx
public class Font
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern FTFont* FTFont_Load(char8* fileName, float pointSize);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void FTFont_Delete(FTFont* ftFont, bool cacheRetain);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void FTFont_ClearCache();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern FTGlyph* FTFont_AllocGlyph(FTFont* ftFont, int32 char8Code, bool allowDefault);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern int32 FTFont_GetKerning(FTFont* font, int32 char8CodeA, int32 char8CodeB);
static Dictionary<String, String> sFontNameMap ~ DeleteDictionaryAndKeysAndItems!(_);

View file

@ -400,37 +400,37 @@ namespace Beefy.gfx
#if !STUDIO_CLIENT
public class Graphics : GraphicsBase
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_SetRenderState(void* renderState);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_AllocTris(void* textureSegment, int32 vtxCount);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_SetDrawVertex(int32 idx, float x, float y, float z, float u, float v, uint32 color);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_CopyDrawVertex(int32 destIdx, int32 srcIdx);
//[StdCall, CLink]
//[CallingConvention(.Stdcall), CLink]
//static unsafe extern void Gfx_DrawIndexedVertices2D(void* vtxData, int vtxCount, int* idxData, int idxCount, float a, float b, float c, float d, float tx, float ty, float z);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_DrawIndexedVertices2D(int32 vertexSize, void* vtxData, int32 vtxCount, uint16* idxData, int32 idxCount, float a, float b, float c, float d, float tx, float ty, float z);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_SetShaderConstantData(int32 slotIdx, void* data, int32 size);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_SetShaderConstantDataTyped(int32 slotIdx, void* data, int32 size, int32* typeData, int32 typeCount);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_DrawQuads(void* textureSegment, Vertex3D* vertices, int32 vtxCount);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void* Gfx_QueueRenderCmd(void* nativeRenderCmd);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void Gfx_SetTexture_TextureSegment(int32 textureIdx, void* textureSegment);
public this()

View file

@ -33,40 +33,40 @@ namespace Beefy.gfx
public void* mNativeTextureSegment;
public PixelSnapping mPixelSnapping = PixelSnapping.Auto;
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern void Gfx_DrawTextureSegment(void* textureSegment, float a, float b, float c, float d, float tx, float ty, float z, uint32 color, int32 pixelSnapping);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* Gfx_LoadTexture(char8* fileName, int32 flags);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* Gfx_CreateDynTexture(int32 width, int32 height);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* Gfx_CreateRenderTarget(int32 width, int32 height, int32 destAlpha);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* Gfx_ModifyTextureSegment(void* destSegment, void* srcTextureSegment, int32 srcX, int32 srcY, int32 srcWidth, int32 srcHeight);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* Gfx_CreateTextureSegment(void* textureSegment, int32 srcX, int32 srcY, int32 srcWidth, int32 srcHeight);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern void Gfx_SetDrawSize(void* textureSegment, int32 width, int32 height);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_Texture_SetBits(void* textureSegment, int32 destX, int32 destY, int32 destWidth, int32 destHeight, int32 srcPitch, uint32* bits);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_Texture_GetBits(void* textureSegment, int32 srcX, int32 srcY, int32 srcWidth, int32 srcHeight, int32 destPitch, uint32* bits);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_Texture_Delete(void* textureSegment);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern int32 Gfx_Texture_GetWidth(void* textureSegment);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern int32 Gfx_Texture_GetHeight(void* textureSegment);
public this()

View file

@ -56,16 +56,16 @@ namespace Beefy.gfx
public String mName;
public int32 mAnimIdx;
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void ModelDefAnimation_GetJointTranslation(void* nativeAnimation, int32 jointIdx, float frame, out JointTranslation jointTranslation);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static int32 ModelDefAnimation_GetFrameCount(void* nativeAnimation);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static char8* ModelDefAnimation_GetName(void* nativeAnimation);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void ModelDefAnimation_Clip(void* nativeAnimation, int32 startFrame, int32 numFrames);
public this(void* nativeModelDefAnimation)
@ -93,22 +93,22 @@ namespace Beefy.gfx
public Animation[] mAnims;
public Dictionary<String, Animation> mAnimMap = new Dictionary<String, Animation>();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void* Res_OpenFBX(String fileName, void* nativeVertexDef);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void* ModelDef_CreateModelInstance(void* nativeModel);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static float ModelDef_GetFrameRate(void* nativeModel);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static int32 ModelDef_GetJointCount(void* nativeModel);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static int32 ModelDef_GetAnimCount(void* nativeModel);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void* ModelDef_GetAnimation(void* nativeModel, int32 animIdx);
this(void* nativeModelDef)
@ -154,10 +154,10 @@ namespace Beefy.gfx
public class ModelInstance : RenderCmd
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void ModelInstance_SetJointTranslation(void* nativeModelInstance, int32 jointIdx, ref ModelDef.JointTranslation jointTranslation);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void ModelInstance_SetMeshVisibility(void* nativeModelInstance, int32 jointIdx, int32 visibility);
public ModelDef mModelDef;

View file

@ -22,25 +22,25 @@ namespace Beefy.gfx
#if !STUDIO_CLIENT
public class RenderState
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* Gfx_CreateRenderState(void* srcNativeRenderState);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void RenderState_Delete(void* renderState);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void RenderState_SetClip(void* renderState, float x, float y, float width, float height);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void RenderState_DisableClip(void* renderState);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void RenderState_SetShader(void* nativeRenderState, void* nativeShader);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void RenderState_SetDepthFunc(void* nativeRenderState, int32 depthFunc);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void RenderState_SetDepthWrite(void* nativeRenderState, int32 depthWrite);
public void* mNativeRenderState;

View file

@ -19,13 +19,13 @@ namespace Beefy.gfx
public void* mNativeShader;
public Dictionary<String, ShaderParam> mShaderParamMap;
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* Gfx_LoadShader(char8* fileName, void* vertexDefinition);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* Gfx_Shader_Delete(void* shader);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* Gfx_GetShaderParam(void* shader, String paramName);
public static Shader CreateFromFile(String fileName, VertexDefinition vertexDefinition)

View file

@ -34,10 +34,10 @@ namespace Beefy.gfx
}
#if !STUDIO_CLIENT
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* Gfx_CreateVertexDefinition(VertexDefData* elementData, int32 numElements);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Gfx_VertexDefinition_Delete(void* nativeVertexDefinition);
public void* mNativeVertexDefinition;

View file

@ -8,13 +8,13 @@ namespace Beefy.res
#if !STUDIO_CLIENT
public class PSDLayer
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void Res_PSDLayer_GetSize(void* layerInfo, out int32 x, out int32 y, out int32 width, out int32 height);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static int32 Res_PSDLayer_GetLayerId(void* layerInfo);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static char8* Res_PSDLayer_GetName(void* layerInfo);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static int32 Res_PSDLayer_IsVisible(void* layerInfo);
public void* mNativeLayerInfo;
@ -49,22 +49,22 @@ namespace Beefy.res
public class PSDReader
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void* Res_OpenPSD(String fileName);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void Res_DeletePSDReader(void* pSDReader);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static int32 Res_PSD_GetLayerCount(void* pSDReader);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void* Res_PSD_GetLayerTexture(void* pSDReader, int32 layerIdx, out int32 xOfs, out int32 yOfs);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void* Res_PSD_GetMergedLayerTexture(void* pSDReader, void* layerIndices, int32 count, out int32 xOfs, out int32 yOfs);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void* Res_PSD_GetLayerInfo(void* pSDReader, int32 layerIdx);
void* mNativePSDReader;

View file

@ -28,7 +28,7 @@ namespace Beefy.res
public class ResourceManager
{
/*[StdCall, CLink]
/*[CallingConvention(.Stdcall), CLink]
static extern void Wwise_Shutdown();*/
public Dictionary<String, ResGroup> mResGroupMap = new Dictionary<String, ResGroup>() ~ delete _;

View file

@ -7,7 +7,7 @@ namespace Beefy.res
{
/*public class SoundBank
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Wwise_LoadBankByName(String name);
public String mName;

View file

@ -7,7 +7,7 @@ namespace Beefy.res
{
/*public class SoundEvent
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void Wwise_SendEvent(uint32 eventId, void* objectId);
public uint32 mWwiseEventId;

View file

@ -7,7 +7,7 @@ namespace Beefy.res
{
/*public class SoundParameter
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern int32 Wwise_SetRTPCValue(uint32 paramId, float value, void* soundGameObject);
public uint32 mWwiseParamId;

View file

@ -4,13 +4,13 @@ namespace Beefy.sound
{
struct SoundInstance
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern void* BFSoundInstance_Play(void* nativeSoundInstance, bool looping, bool autoRelease);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern void BFSoundInstance_Release(void* nativeSoundInstance);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern bool BFSoundInstance_IsPlaying(void* nativeSoundInstance);
void* mNativeSoundInstance;

View file

@ -17,10 +17,10 @@ namespace Beefy.sound
{
void* mNativeSoundManager;
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern int32 BFSoundManager_LoadSound(void* nativeSoundManager, char8* fileName);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern void* BFSoundManager_GetSoundInstance(void* nativeSoundManager, int32 sfxId);
public SoundSource LoadSound(StringView fileName)

View file

@ -4,34 +4,34 @@ namespace Beefy.utils
{
static class BeefPerf
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void BpInit(char8* severName, char8* sessionName);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void BpShutdown();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void BpRetryConnect();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void BpPause();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void BpUnpause();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void BpSetThreadName(char8* threadName);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void BpEnter(char8* name);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void BpLeave();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void BpEvent(char8* name, char8* details);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static char8* BpDynStr(char8* string);
public static void Init(StringView serverName, StringView sessionName)

View file

@ -13,13 +13,13 @@ namespace Beefy2D.utils
void* mNativeNetRequest;
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void* HTTP_GetFile(char8* url, char8* destPath);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern int32 HTTP_GetResult(void* netRequest, int32 waitMS);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void HTTP_Delete(void* netRequest);
public ~this()

View file

@ -6,25 +6,25 @@ namespace Beefy.utils
{
public abstract class PerfTimer
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void PerfTimer_ZoneStart(char8* name);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void PerfTimer_ZoneEnd();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void PerfTimer_Message(char8* theString);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static int32 PerfTimer_IsRecording();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void PerfTimer_StartRecording();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void PerfTimer_StopRecording();
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
extern static void PerfTimer_DbgPrint();
static DisposeProxy mZoneEndDisposeProxy ~ delete _;