mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 21:27:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
namespace Roblox.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// This class shall keep the GDI32 APIs being used in our program.
|
||||
/// </summary>
|
||||
public class PlatformInvokeGDI32
|
||||
{
|
||||
|
||||
#region Class Variables
|
||||
public const int SRCCOPY = 13369376;
|
||||
#endregion
|
||||
|
||||
#region Class Functions
|
||||
[DllImport("gdi32.dll",EntryPoint="DeleteDC")]
|
||||
public static extern IntPtr DeleteDC(IntPtr hDc);
|
||||
|
||||
[DllImport("gdi32.dll",EntryPoint="DeleteObject")]
|
||||
public static extern IntPtr DeleteObject(IntPtr hDc);
|
||||
|
||||
[DllImport("gdi32.dll",EntryPoint="BitBlt")]
|
||||
public static extern bool BitBlt(IntPtr hdcDest,int xDest,int yDest,int wDest,int hDest,IntPtr hdcSource,int xSrc,int ySrc,int RasterOp);
|
||||
|
||||
[DllImport ("gdi32.dll",EntryPoint="CreateCompatibleBitmap")]
|
||||
public static extern IntPtr CreateCompatibleBitmap(IntPtr hdc, int nWidth, int nHeight);
|
||||
|
||||
[DllImport ("gdi32.dll",EntryPoint="CreateCompatibleDC")]
|
||||
public static extern IntPtr CreateCompatibleDC(IntPtr hdc);
|
||||
|
||||
[DllImport ("gdi32.dll",EntryPoint="SelectObject")]
|
||||
public static extern IntPtr SelectObject(IntPtr hdc,IntPtr bmp);
|
||||
#endregion
|
||||
|
||||
#region Public Constructor
|
||||
public PlatformInvokeGDI32()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user