Documentation
¶
Index ¶
Constants ¶
View Source
const ( WM_DESTROY = 0x0002 WM_PAINT = 0x000F WS_POPUP = 0x80000000 WS_VISIBLE = 0x10000000 WS_EX_TOPMOST = 0x00000008 WS_EX_LAYERED = 0x00080000 WS_EX_NOACTIVATE = 0x08000000 SW_SHOW = 5 LWA_ALPHA = 0x00000002 LWA_COLORKEY = 0x00000001 TRANSPARENT_COLOR = 0x00000000 )
View Source
const ( D3DFVF_XYZRHW = 0x004 D3DFVF_DIFFUSE = 0x040 D3DFVF_TEX1 = 0x100 CUSTOM_FVF = D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1 )
Variables ¶
View Source
var ( ProcRegisterClass = user32.NewProc("RegisterClassW") ProcCreateWindowEx = user32.NewProc("CreateWindowExW") ProcDefWindowProc = user32.NewProc("DefWindowProcW") ProcGetMessage = user32.NewProc("GetMessageW") ProcTranslateMessage = user32.NewProc("TranslateMessage") ProcDispatchMessage = user32.NewProc("DispatchMessageW") ProcPostQuitMessage = user32.NewProc("PostQuitMessage") ProcShowWindow = user32.NewProc("ShowWindow") ProcUpdateWindow = user32.NewProc("UpdateWindow") ProcGetWindowDC = user32.NewProc("GetWindowDC") ProcReleaseDC = user32.NewProc("ReleaseDC") ProcGetModuleHandle = kernel32.NewProc("GetModuleHandleW") ProcSetLayeredWindowAttributes = user32.NewProc("SetLayeredWindowAttributes") ProcSetWindowPos = user32.NewProc("SetWindowPos") ProcGetSystemMetrics = user32.NewProc("GetSystemMetrics") ProcInvalidateRect = user32.NewProc("InvalidateRect") ProcCreateSolidBrush = gdi32.NewProc("CreateSolidBrush") ProcDeleteObject = gdi32.NewProc("DeleteObject") ProcFillRect = user32.NewProc("FillRect") )
Functions ¶
This section is empty.
Types ¶
type BITMAPINFO ¶
type BITMAPINFO struct {
// contains filtered or unexported fields
}
type BITMAPINFOHEADER ¶
type BITMAPINFOHEADER struct {
// contains filtered or unexported fields
}
type Render ¶
type Render struct {
WindowProc func(hwnd windows.HWND, msg uint32, wParam, lParam uintptr) uintptr
Window windows.HWND
D3d9Obj *d3d9.Direct3D
Device *d3d9.Device
LastTexture *d3d9.Texture
Texture *d3d9.Texture
ClassName string
LastDx int
LastDy int
LastAx int
LastAy int
Dx int
Dy int
Ax int
Ay int
// contains filtered or unexported fields
}
func (*Render) ModuleHandle ¶
func (*Render) ScreenSize ¶
Click to show internal directories.
Click to hide internal directories.