Example #1
0
 public BoxAPI()
 {
     this.API_create    = (API_Create)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Create@Box@Overlay@API@@YAHXZ"), typeof(API_Create));
     this.API_delete    = (API_Delete)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Delete@Box@Overlay@API@@YAXH@Z"), typeof(API_Delete));
     this.API_setColor  = (API_SetColor)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetColor@Box@Overlay@API@@YAXHK@Z"), typeof(API_SetColor));
     this.API_setX      = (API_SetX)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetX@Box@Overlay@API@@YAXHH@Z"), typeof(API_SetX));
     this.API_setY      = (API_SetY)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetY@Box@Overlay@API@@YAXHH@Z"), typeof(API_SetY));
     this.API_setWidth  = (API_SetWidth)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetWidth@Box@Overlay@API@@YAXHH@Z"), typeof(API_SetWidth));
     this.API_setHeight = (API_SetHeight)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetHeight@Box@Overlay@API@@YAXHH@Z"), typeof(API_SetHeight));
     this.API_setActive = (API_SetActive)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetActive@Box@Overlay@API@@YAXH_N@Z"), typeof(API_SetActive));
 }
Example #2
0
 public TextAPI()
 {
     this.API_create          = (API_Create)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Create@Text@Overlay@API@@YAHXZ"), typeof(API_Create));
     this.API_delete          = (API_Delete)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Delete@Text@Overlay@API@@YAXH@Z"), typeof(API_Delete));
     this.API_setText         = (API_SetText)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetText@Text@Overlay@API@@YAXHPB_W@Z"), typeof(API_SetText));
     this.API_setSize         = (API_SetSize)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetSize@Text@Overlay@API@@YAXHH@Z"), typeof(API_SetSize));
     this.API_setColor        = (API_SetColor)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetColor@Text@Overlay@API@@YAXHK@Z"), typeof(API_SetColor));
     this.API_setX            = (API_SetX)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetX@Text@Overlay@API@@YAXHH@Z"), typeof(API_SetX));
     this.API_setY            = (API_SetY)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetY@Text@Overlay@API@@YAXHH@Z"), typeof(API_SetY));
     this.API_setActive       = (API_SetActive)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetActive@Text@Overlay@API@@YAXH_N@Z"), typeof(API_SetActive));
     this.API_setUseMaxWidth  = (API_SetUseMaxWidth)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetUseMaxWidth@Text@Overlay@API@@YAXH_N@Z"), typeof(API_SetUseMaxWidth));
     this.API_setUseMaxHeight = (API_SetUseMaxHeight)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetUseMaxHeight@Text@Overlay@API@@YAXH_N@Z"), typeof(API_SetUseMaxHeight));
     this.API_setMaxWidth     = (API_SetMaxWidth)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetMaxWidth@Text@Overlay@API@@YAXHH@Z"), typeof(API_SetMaxWidth));
     this.API_setMaxHeight    = (API_SetMaxHeight)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetMaxHeight@Text@Overlay@API@@YAXHH@Z"), typeof(API_SetMaxHeight));
     this.API_getTextExtent   = (API_GetTextExtent)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?GetTextExtent@Text@Overlay@API@@YAXHAAH0@Z"), typeof(API_GetTextExtent));
 }