📄 gdapplicationh.cs.svn-base
字号:
[DllImport("GapiDraw")]
public static unsafe extern UInt32 CGapiSurface_DrawText(IntPtr pSurface, int dwX, int dwY, string pString, IntPtr pFont, int dwTextFlags, IntPtr pGDDrawTextFx, int dwBltFastFlags, GDBLTFASTFX* pGDBltFastFx);
// public static extern UInt32 CGapiSurface_DrawTextSysFont(IntPtr pSurface, int dwX, int dwY, string pString, int dwColor, int dwFlags, IntPtr pGDTextFx, out int pWidth);
// [DllImport("GapiDraw")]
// public static extern UInt32 CGapiSurface_DrawTextSystemFont(IntPtr pSurface, int dwX, int dwY, string pString, int dwTextFlags, out int pWidth);
// public static extern UInt32 CGapiSurface_Intersect(int dwX1, int dwY1, IntPtr pSrcSurface1, ref GDRect pSrcRect1, int dwX2, int dwY2, IntPtr pSrcSurface2, ref GDRect pSrcRect2, ref System.Drawing.Point pIntersection);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiSurface_Intersect(int dwX1, int dwY1, IntPtr pSrcSurface1, ref GDRect pSrcRect1, int dwX2, int dwY2, IntPtr pSrcSurface2, ref GDRect pSrcRect2, ref System.Drawing.Point pIntersection);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiSurface_ColorrefToNative(IntPtr pSurface, int dwColor, out int pNative);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiSurface_NativeToColorref(IntPtr pSurface, int dwNative, out int pColor);
// public static extern IntPtr CGapiDisplay_Create();
[DllImport("GapiDraw")]
public static extern IntPtr CGapiDisplay_Create(IntPtr GapiApp);
// public static extern UInt32 CGapiDisplay_Destroy(IntPtr pDisplay);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_Destroy(IntPtr pDisplay);
// HRESULT __stdcall CGapiDisplay_OpenDisplay(CGapiDisplay* pDisplay, HWND hWnd, DWORD dwFlags, DWORD dwWidth, DWORD dwHeight, DWORD dwZoomWidth, DWORD dwZoomHeight, DWORD dwBPP, DWORD dwHz);
// HRESULT __stdcall CGapiDisplay_OpenDisplay(CGapiDisplay* pDisplay, DWORD dwFlags, HWND hWnd, DWORD dwWidth, DWORD dwHeight, DWORD dwZoomWidth, DWORD dwZoomHeight, DWORD dwBPP, DWORD dwHz);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_OpenDisplay(IntPtr pDisplay, int dwFlags, IntPtr hWnd, int dwWidth, int dwHeight, int dwZoomWidth, int dwZoomHeight, int dwBPP, int dwHz);
// 201 __stdcall CGapiDisplay_OpenDisplayByName(CGapiDisplay* pDisplay, const TCHAR* pWindow, DWORD dwFlags, DWORD dwWidth, DWORD dwHeight, DWORD dwZoomWidth, DWORD dwZoomHeight, DWORD dwBPP, DWORD dwHz);
// 202 __stdcall CGapiDisplay_OpenDisplayByName(CGapiDisplay* pDisplay, DWORD dwFlags, const TCHAR* pWindow, DWORD dwWidth, DWORD dwHeight, DWORD dwZoomWidth, DWORD dwZoomHeight, DWORD dwBPP, DWORD dwHz);
// 300 __stdcall CGapiDisplay_OpenDisplayByName(CGapiDisplay* pDisplay, DWORD dwFlags, const TCHAR* pWindow, DWORD dwWidth, DWORD dwHeight, DWORD dwZoomWidth, DWORD dwZoomHeight, DWORD dwBPP, DWORD dwHz);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_OpenDisplayByName(IntPtr pDisplay, int dwFlags, string pWindow, int dwWidth, int dwHeight, int dwZoomWidth, int dwZoomHeight, int dwBPP, int dwHz);
// public static extern UInt32 CGapiDisplay_CloseDisplay(IntPtr pDisplay);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_CloseDisplay(IntPtr pDisplay);
// public static extern UInt32 CGapiDisplay_SetDisplayMode(IntPtr pDisplay, int dwMode);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_SetDisplayMode(IntPtr pDisplay, int dwMode);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_CreateOffscreenDisplay(IntPtr pDisplay, int dwFlags, int dwWidth, int dwHeight);
// public static extern UInt32 CGapiDisplay_GetDisplayMode(IntPtr pDisplay, ref int pMode);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_GetDisplayMode(IntPtr pDisplay, ref int pMode);
// public static extern UInt32 CGapiDisplay_GetDisplayCaps(IntPtr pDisplay, ref int pCaps);
//
// public static extern UInt32 CGapiDisplay_GetBackBuffer(IntPtr pDisplay, IntPtr pBackbuffer);
[DllImport("GapiDraw")]
public static extern IntPtr CGapiDisplay_GetBackBuffer(IntPtr pDisplay);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_RenderSystemFont (IntPtr pDisplay, int dwColor);
[DllImport("GapiDraw")]
public static extern IntPtr CGapiDisplay_GetSystemFont (IntPtr pDisplay);
[DllImport("GapiDraw")]
public static extern IntPtr CGapiDisplay_GetSystemFontBorder(IntPtr pDisplay);
//
// public static extern UInt32 CGapiDisplay_Flip(IntPtr pDisplay);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_Flip(IntPtr pDisplay);
// public static extern UInt32 CGapiDisplay_SuspendDisplay(IntPtr pDisplay);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_SuspendDisplay(IntPtr pDisplay);
// public static extern UInt32 CGapiDisplay_ResumeDisplay(IntPtr pDisplay);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_ResumeDisplay(IntPtr pDisplay);
[DllImport("GapiDraw")]
public static extern UInt32 PaintOntoWindow(string pWindowTitle, IntPtr hdcSurface, int left, int top, int width, int height);
[DllImport("GapiDraw")]
public static extern UInt32 PaintOntoHandle(IntPtr hWnd, IntPtr hdcSurface, int left, int top, int width, int height);
// public static extern UInt32 CGapiDisplay_DeviceToLogicalRect(IntPtr pDisplay, ref GDRect pRect);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_DeviceToLogicalRect(IntPtr pDisplay, ref GDRect pRect);
// public static extern UInt32 CGapiDisplay_DeviceToLogicalPoint(IntPtr pDisplay, ref System.Drawing.Point pPoint);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_DeviceToLogicalPoint(IntPtr pDisplay, ref System.Drawing.Point pPoint);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_SurfacesAreLost(IntPtr pDisplay);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiDisplay_RestoreAllVideoSurfaces(IntPtr pDisplay);
// public static extern IntPtr CGapiMaskSurface_Create();
[DllImport("GapiDraw")]
public static extern IntPtr CGapiMaskSurface_Create();
// public static extern UInt32 CGapiMaskSurface_Destroy(IntPtr pMaskSurface);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiMaskSurface_Destroy(IntPtr pMaskSurface);
// public static extern UInt32 CGapiMaskSurface_DrawMaskImage(IntPtr pMaskSurface, int dwX, int dwY, IntPtr pSrcSurface, ref GDRect pSrcRect, int dwMaskID);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiMaskSurface_DrawMask(IntPtr pMaskSurface, int dwX, int dwY, IntPtr pSrcSurface, ref GDRect pSrcRect, int dwMaskID);
// public static extern UInt32 CGapiMaskSurface_DrawMaskRect(IntPtr pMaskSurface, ref GDRect pRect, int dwMaskID);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiMaskSurface_DrawMaskRect(IntPtr pMaskSurface, ref GDRect pRect, int dwMaskID);
// public static extern UInt32 CGapiMaskSurface_DrawMaskPixel(IntPtr pMaskSurface, int dwX, int dwY, int dwMaskID);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiMaskSurface_DrawMaskPixel(IntPtr pMaskSurface, int dwX, int dwY, int dwMaskID);
// public static extern UInt32 CGapiMaskSurface_GetMaskID(IntPtr pMaskSurface, int dwX, int dwY, IntPtr pSrcSurface, ref GDRect pSrcRect, out int pMaskID, ref System.Drawing.Point pIntersection);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiMaskSurface_GetMaskID(IntPtr pMaskSurface, int dwX, int dwY, IntPtr pSrcSurface, ref GDRect pSrcRect, out int pMaskID, ref System.Drawing.Point pIntersection);
// public static extern UInt32 CGapiMaskSurface_GetMaskIDRect(IntPtr pMaskSurface, ref GDRect pRect, out int pMaskID, ref System.Drawing.Point pIntersection);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiMaskSurface_GetMaskIDRect(IntPtr pMaskSurface, ref GDRect pRect, out int pMaskID, ref System.Drawing.Point pIntersection);
// public static extern UInt32 CGapiMaskSurface_GetMaskIDPixel(IntPtr pMaskSurface, int dwX, int dwY, out int pMaskID);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiMaskSurface_GetMaskIDPixel(IntPtr pMaskSurface, int dwX, int dwY, out int pMaskID);
// public static extern IntPtr CGapiBitmapFont_Create();
[DllImport("GapiDraw")]
public static extern IntPtr CGapiBitmapFont_Create(IntPtr p);
// public static extern UInt32 CGapiBitmapFont_Destroy(IntPtr pBitmapFont);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiBitmapFont_Destroy(IntPtr pBitmapFont);
// public static extern UInt32 CGapiBitmapFont_CreateFont(IntPtr pBitmapFont, int dwFlags, ref GDFONTFX pGDFontFx);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiBitmapFont_CreateFont(IntPtr pBitmapFont, string pString, int dwColorKey, int dwFlags, ref GDFONTFX pGDFontFx);
[DllImport("GapiDraw", EntryPoint = "CGapiBitmapFont_CreateFont")]
public static extern UInt32 CGapiBitmapFont_CreateFont_NoString(IntPtr pBitmapFont, int GivemeZero, int dwColorKey, int dwFlags, ref GDFONTFX pGDFontFx);
// public static extern UInt32 CGapiBitmapFont_SetKerning(IntPtr pBitmapFont, char tcPreviousChar, char tcCharToAdjust, int lOffset);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiBitmapFont_SetKerning(IntPtr pBitmapFont, char tcPreviousChar, char tcCharToAdjust, int lOffset);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiBitmapFont_GetStringWidth (IntPtr pBitmapFont, string pString, out int pWidth);
// HRESULT __stdcall CGapiBitmapFont_GetCharWidth(CGapiBitmapFont* pBitmapFont, TCHAR tcChar, DWORD* pWidth);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiBitmapFont_GetCharWidth (IntPtr pBitmapFont, char tcChar, out int pWidth);
// HRESULT __stdcall CGapiBitmapFont_GetSpacing(CGapiBitmapFont* pBitmapFont, TCHAR tcChar1, TCHAR tcChar2, DWORD* pSpacing);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiBitmapFont_GetSpacing (IntPtr pBitmapFont, char tcChar1, char tcChar2, out int pWidth);
// public static extern IntPtr CGapiCursor_Create();
[DllImport("GapiDraw")]
public static extern IntPtr CGapiCursor_Create();
// public static extern UInt32 CGapiCursor_Destroy(IntPtr pCursor);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiCursor_Destroy(IntPtr pCursor);
// public static extern UInt32 CGapiCursor_CreateCursor(IntPtr pCursor, int dwFlags, int dwFrameCount, int dwFrameStep);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiCursor_CreateCursor(IntPtr pCursor, int dwFlags, int dwFrameCount, int dwFrameStep);
// public static extern UInt32 CGapiCursor_SetHotSpot(IntPtr pCursor, int dwX, int dwY);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiCursor_SetHotSpot(IntPtr pCursor, int dwX, int dwY);
// public static extern UInt32 CGapiCursor_SetFrameIndex(IntPtr pCursor, int dwFrameIndex);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiCursor_SetFrameIndex(IntPtr pCursor, int dwFrameIndex);
// public static extern UInt32 CGapiCursor_SetPosition(IntPtr pCursor, int dwX, int dwY);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiCursor_SetPosition(IntPtr pCursor, int dwX, int dwY);
// public static extern UInt32 CGapiCursor_DrawCursor(IntPtr pCursor, IntPtr pDestSurface);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiCursor_DrawCursor(IntPtr pCursor, IntPtr pDestSurface);
// public static extern IntPtr CGapiInput_Create();
[DllImport("GapiDraw")]
public static extern IntPtr CGapiInput_Create(IntPtr GapiDraw);
// public static extern UInt32 CGapiInput_Destroy(IntPtr pInput);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiInput_Destroy(IntPtr pInput);
// public static extern UInt32 CGapiInput_GetKeyList(IntPtr pInput, ref GDKEYLIST pKeyList);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiInput_GetKeyList(IntPtr pInput, ref GDKEYLIST pKeyList);
// public static extern UInt32 CGapiInput_OpenInput(IntPtr pInput);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiInput_OpenInput(IntPtr pInput);
// public static extern UInt32 CGapiInput_CloseInput(IntPtr pInput);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiInput_CloseInput(IntPtr pInput);
// public static extern IntPtr CGapiTimer_Create();
[DllImport("GapiDraw")]
public static extern IntPtr CGapiTimer_Create(IntPtr GapiDraw);
// public static extern UInt32 CGapiTimer_Destroy(IntPtr pTimer);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiTimer_Destroy(IntPtr pTimer);
//
// public static extern UInt32 CGapiTimer_StartTimer(IntPtr pTimer, int dwTargetFrameRate);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiTimer_StartTimer(IntPtr pTimer, int dwTargetFrameRate);
// public static extern UInt32 CGapiTimer_WaitForNextFrame(IntPtr pTimer);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiTimer_UpdateTimer(IntPtr pTimer);
// public static extern UInt32 CGapiTimer_GetActualFrameRate(IntPtr pTimer, ref float pActualFrameRate);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiTimer_GetActualFrameRate(IntPtr pTimer, ref float pActualFrameRate);
// public static extern UInt32 CGapiTimer_GetActualFrameTime(IntPtr pTimer, ref float pActualFrameTime);
[DllImport("GapiDraw")]
public static extern UInt32 CGapiTimer_GetActualFrameTime(IntPtr pTimer, ref float pActualFrameTime);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -