MGL Library Overview
Environment detection and initialization
Device context creation and management
Device context information and manipulation
Color and palette manipulation
Viewport and clip rectangle manipulation
Double buffering support
Device clearing
Direct frame buffer access functions
Pixel plotting
Line drawing and clipping
Polyline and pixel drawing
Polygon drawing
Rectangle drawing
Ellipse drawing
Text attribute manipulation
Text drawing
Wide character text drawing
BitBlt support
Bitmap drawing support
Monochrome bitmap manipulation
Lightweight offscreen buffer support
Region management
Region algebra
RGB to 8/15/16 bit halftone dithering routines
Font loading and unloading functions
Obsolete bitmap font loading functions
Mouse cursor resource loading and unloading
Icon resource loading and unloading
Windows BMP bitmap loading, unloading and saving
PCX bitmap loading, unloading and saving
JPEG bitmap loading, unloading and saving
PNG bitmap loading, unloading and saving
Random number generation routines
Rectangle and Point manipulation
Window manager functions
OpenGL binding functions
Event handling
Mouse handling
Game Framework
Sprite Manager
Platform Specific: Windows
MGL Library Reference
External Functions
CPU_getProcessorName
CPU_getProcessorSpeed
CPU_getProcessorSpeedInHZ
CPU_getProcessorType
CPU_have3DNow
CPU_haveMMX
CPU_haveRDTSC
CPU_haveSSE
EVT_allowLEDS
EVT_asciiCode
EVT_flush
EVT_getCodePage
EVT_getHeartBeatCallback
EVT_getMousePos
EVT_getNext
EVT_halt
EVT_isKeyDown
EVT_joyIsPresent
EVT_joySetCenter
EVT_joySetLowerRight
EVT_joySetUpperLeft
EVT_peekNext
EVT_pollJoystick
EVT_post
EVT_repeatCount
EVT_scanCode
EVT_setCodePage
EVT_setHeartBeatCallback
EVT_setMousePos
EVT_setUserEventFilter
GM_chooseMode
GM_cleanup
GM_exit
GM_findMode
GM_getDoDraw
GM_getExitMainLoop
GM_getHaveWin95
GM_getHaveWinNT
GM_init
GM_initPath
GM_initSysPalNoStatic
GM_initWindowPos
GM_mainLoop
GM_processEvents
GM_processEventsWin
GM_realizePalette
GM_registerEventProc
GM_registerMainWindow
GM_setAppActivate
GM_setDrawFunc
GM_setDriverOptions
GM_setEventFunc
GM_setExitFunc
GM_setGameLogicFunc
GM_setKeyDownFunc
GM_setKeyRepeatFunc
GM_setKeyUpFunc
GM_setLeftBuffer
GM_setMode
GM_setModeExt
GM_setModeFilterFunc
GM_setModeSwitchFunc
GM_setMouseDownFunc
GM_setMouseMoveFunc
GM_setMouseUpFunc
GM_setPalette
GM_setPreModeSwitchFunc
GM_setRightBuffer
GM_setSuspendAppCallback
GM_startOpenGL
GM_startStereo
GM_stopStereo
GM_swapBuffers
GM_swapDirtyBuffers
LZTimerCount
LZTimerCountExt
LZTimerLap
LZTimerLapExt
LZTimerOff
LZTimerOffExt
LZTimerOn
LZTimerOnExt
MGL_FixDiv
MGL_FixMul
MGL_FixMulDiv
MGL_addCustomMode
MGL_availableBitmap
MGL_availableCursor
MGL_availableFont
MGL_availableIcon
MGL_availableJPEG
MGL_availablePCX
MGL_availablePNG
MGL_availablePages
MGL_backfacing
MGL_beginDirectAccess
MGL_beginDirectAccessDC
MGL_beginPaint
MGL_beginPixel
MGL_bitBlt
MGL_bitBltCoord
MGL_bitBltFx
MGL_bitBltFxCoord
MGL_bitBltPatt
MGL_bitBltPattCoord
MGL_buildMonoMask
MGL_charWidth
MGL_charWidth_W
MGL_checkIdentityPalette
MGL_clearDevice
MGL_clearRegion
MGL_clearViewport
MGL_closeFontLib
MGL_computePixelAddr
MGL_copyBitmapToBuffer
MGL_copyIntoRegion
MGL_copyPage
MGL_copyPageCoord
MGL_copyRegion
MGL_copyToBuffer
MGL_createBuffer
MGL_createCustomDC
MGL_createDisplayDC
MGL_createMemoryDC
MGL_createOffscreenDC
MGL_createScrollingDC
MGL_createStereoDisplayDC
MGL_createWindowedDC
MGL_defRect
MGL_defRectPt
MGL_defaultAttributes
MGL_defaultColor
MGL_destroyBuffer
MGL_destroyDC
MGL_diffRegion
MGL_diffRegionRect
MGL_disableDriver
MGL_disjointRect
MGL_divotSize
MGL_divotSizeCoord
MGL_doubleBuffer
MGL_drawGlyph
MGL_drawRegion
MGL_drawStr
MGL_drawStrXY
MGL_drawStrXY_W
MGL_drawStr_W
MGL_dstTransBlt
MGL_dstTransBltCoord
MGL_ellipse
MGL_ellipseArc
MGL_ellipseArcCoord
MGL_ellipseArcEngine
MGL_ellipseCoord
MGL_ellipseEngine
MGL_emptyRect
MGL_emptyRegion
MGL_enableAllDrivers
MGL_enableOpenGLDrivers
MGL_endDirectAccess
MGL_endDirectAccessDC
MGL_endPaint
MGL_endPixel
MGL_enumerateFonts
MGL_equalPoint
MGL_equalRect
MGL_equalRegion
MGL_errorMsg
MGL_exit
MGL_fadePalette
MGL_fatalError
MGL_fclose
MGL_fillEllipse
MGL_fillEllipseArc
MGL_fillEllipseArcCoord
MGL_fillEllipseCoord
MGL_fillPolygon
MGL_fillPolygonCnvx
MGL_fillPolygonCnvxFX
MGL_fillPolygonFX
MGL_fillRect
MGL_fillRectCoord
MGL_fillRectPt
MGL_findMode
MGL_fopen
MGL_fread
MGL_freeRegion
MGL_fseek
MGL_ftell
MGL_fwrite
MGL_getActivePage
MGL_getAlphaValue
MGL_getArcCoords
MGL_getAspectRatio
MGL_getAttributes
MGL_getBackColor
MGL_getBackMode
MGL_getBitmapFromDC
MGL_getBitmapSize
MGL_getBitmapSizeExt
MGL_getBitsPerPixel
MGL_getBlendFunc
MGL_getCP
MGL_getCharMetrics
MGL_getCharMetrics_W
MGL_getClipRect
MGL_getClipRectDC
MGL_getClipRegion
MGL_getClipRegionDC
MGL_getColor
MGL_getCurrentScanLine
MGL_getDefaultPalette
MGL_getDisplayStart
MGL_getDitherMode
MGL_getDivot
MGL_getDivotCoord
MGL_getDotsPerInch
MGL_getFont
MGL_getFontAntiAliasPalette
MGL_getFontBlendMode
MGL_getFontMetrics
MGL_getFullScreenWindow
MGL_getGammaRamp
MGL_getGlyphHeight
MGL_getGlyphWidth
MGL_getHalfTonePalette
MGL_getHardwareFlags
MGL_getJPEGSize
MGL_getJPEGSizeExt
MGL_getLineStipple
MGL_getLineStippleCount
MGL_getLineStyle
MGL_getPCXSize
MGL_getPCXSizeExt
MGL_getPNGSize
MGL_getPNGSizeExt
MGL_getPalette
MGL_getPaletteEntry
MGL_getPaletteSize
MGL_getPaletteSnowLevel
MGL_getPenBitmapPattern
MGL_getPenPixmapPattern
MGL_getPenPixmapTransparent
MGL_getPenSize
MGL_getPenStyle
MGL_getPixel
MGL_getPixelCoord
MGL_getPixelCoordFast
MGL_getPixelFast
MGL_getPixelFormat
MGL_getPlaneMask
MGL_getPolygonType
MGL_getSpaceExtra
MGL_getTextDirection
MGL_getTextJustify
MGL_getTextSettings
MGL_getTextSize
MGL_getViewport
MGL_getViewportDC
MGL_getViewportOrg
MGL_getViewportOrgDC
MGL_getVisualPage
MGL_getWriteMode
MGL_getX
MGL_getY
MGL_glChooseVisual
MGL_glCreateContext
MGL_glDeleteContext
MGL_glDisableMGLFuncs
MGL_glEnableMGLFuncs
MGL_glEnumerateDrivers
MGL_glGetProcAddress
MGL_glGetVisual
MGL_glHaveHWOpenGL
MGL_glMakeCurrent
MGL_glRealizePalette
MGL_glResizeBuffers
MGL_glSetDriver
MGL_glSetOpenGLType
MGL_glSetPalette
MGL_glSetVisual
MGL_glSwapBuffers
MGL_globalToLocal
MGL_globalToLocalDC
MGL_halfTonePixel
MGL_halfTonePixel555
MGL_halfTonePixel565
MGL_haveWidePalette
MGL_init
MGL_insetRect
MGL_isCurrentDC
MGL_isDisplayDC
MGL_isMemoryDC
MGL_isOffscreenDC
MGL_isOverlayDC
MGL_isSimpleRegion
MGL_isStereoDC
MGL_isVSync
MGL_isWindowedDC
MGL_leftTop
MGL_line
MGL_lineCoord
MGL_lineCoordExt
MGL_lineEngine
MGL_lineExt
MGL_lineRel
MGL_lineRelCoord
MGL_lineTo
MGL_lineToCoord
MGL_loadBitmap
MGL_loadBitmapExt
MGL_loadBitmapIntoDC
MGL_loadBitmapIntoDCExt
MGL_loadCursor
MGL_loadCursorExt
MGL_loadFont
MGL_loadFontExt
MGL_loadFontInstance
MGL_loadIcon
MGL_loadIconExt
MGL_loadJPEG
MGL_loadJPEGExt
MGL_loadJPEGIntoDC
MGL_loadJPEGIntoDCExt
MGL_loadPCX
MGL_loadPCXExt
MGL_loadPCXIntoDC
MGL_loadPCXIntoDCExt
MGL_loadPNG
MGL_loadPNGExt
MGL_loadPNGIntoDC
MGL_loadPNGIntoDCExt
MGL_localToGlobal
MGL_localToGlobalDC
MGL_lockBuffer
MGL_lockToFrameRate
MGL_makeCurrentDC
MGL_mapToPalette
MGL_maxCharWidth
MGL_maxColor
MGL_maxPage
MGL_maxx
MGL_maxxDC
MGL_maxy
MGL_maxyDC
MGL_memcpy
MGL_memcpyVIRTDST
MGL_memcpyVIRTSRC
MGL_memset
MGL_memsetl
MGL_memsetw
MGL_mirrorGlyph
MGL_modeDriverName
MGL_modeFlags
MGL_modeResolution
MGL_moveRel
MGL_moveRelCoord
MGL_moveTo
MGL_moveToCoord
MGL_newRegion
MGL_offsetRect
MGL_offsetRegion
MGL_openFontLib
MGL_openFontLibExt
MGL_optimizeRegion
MGL_packColor
MGL_packColorExt
MGL_packColorFast
MGL_packColorFastExt
MGL_pixel
MGL_pixelCoord
MGL_pixelCoordFast
MGL_pixelFast
MGL_polyLine
MGL_polyPoint
MGL_ptInRect
MGL_ptInRectCoord
MGL_ptInRegion
MGL_ptInRegionCoord
MGL_putBitmap
MGL_putBitmapDstTrans
MGL_putBitmapDstTransSection
MGL_putBitmapFx
MGL_putBitmapFxSection
MGL_putBitmapMask
MGL_putBitmapPatt
MGL_putBitmapPattSection
MGL_putBitmapSection
MGL_putBitmapSrcTrans
MGL_putBitmapSrcTransSection
MGL_putBuffer
MGL_putBufferDstTrans
MGL_putBufferDstTransSection
MGL_putBufferFx
MGL_putBufferFxSection
MGL_putBufferPatt
MGL_putBufferPattSection
MGL_putBufferSection
MGL_putBufferSrcTrans
MGL_putBufferSrcTransSection
MGL_putDivot
MGL_putIcon
MGL_putMonoImage
MGL_quickInit
MGL_random
MGL_randoml
MGL_realColor
MGL_realizePalette
MGL_rect
MGL_rectCoord
MGL_rectPt
MGL_registerEventProc
MGL_registerFullScreenWindow
MGL_restoreAttributes
MGL_result
MGL_resume
MGL_rgbColor
MGL_rgnEllipse
MGL_rgnEllipseArc
MGL_rgnGetArcCoords
MGL_rgnLine
MGL_rgnLineCoord
MGL_rgnPolygon
MGL_rgnPolygonCnvx
MGL_rgnPolygonCnvxFX
MGL_rgnPolygonFX
MGL_rgnSolidEllipse
MGL_rgnSolidEllipseArc
MGL_rgnSolidRect
MGL_rgnSolidRectCoord
MGL_rgnSolidRectPt
MGL_rightBottom
MGL_rotateGlyph
MGL_rotatePalette
MGL_saveBitmapFromDC
MGL_saveJPEGFromDC
MGL_savePCXFromDC
MGL_savePNGFromDC
MGL_savePNGFromDCExt
MGL_scanLine
MGL_sectRect
MGL_sectRectCoord
MGL_sectRectFast
MGL_sectRectFastCoord
MGL_sectRegion
MGL_sectRegionRect
MGL_selectDisplayDevice
MGL_setActivePage
MGL_setAlphaValue
MGL_setAspectRatio
MGL_setBackColor
MGL_setBackMode
MGL_setBlendFunc
MGL_setBlueCodeIndex
MGL_setBufSize
MGL_setClipRect
MGL_setClipRectDC
MGL_setClipRegion
MGL_setClipRegionDC
MGL_setColor
MGL_setColorCI
MGL_setColorRGB
MGL_setDefaultPalette
MGL_setDisplayStart
MGL_setDitherMode
MGL_setDotsPerInch
MGL_setFileIO
MGL_setFontAntiAliasPalette
MGL_setFontBlendMode
MGL_setGammaRamp
MGL_setLineStipple
MGL_setLineStippleCount
MGL_setLineStyle
MGL_setOpenGLFuncs
MGL_setPalette
MGL_setPaletteEntry
MGL_setPaletteSnowLevel
MGL_setPenBitmapPattern
MGL_setPenPixmapPattern
MGL_setPenPixmapTransparent
MGL_setPenSize
MGL_setPenStyle
MGL_setPlaneMask
MGL_setPolygonType
MGL_setRelViewport
MGL_setRelViewportDC
MGL_setResult
MGL_setSpaceExtra
MGL_setSuspendAppCallback
MGL_setTextDirection
MGL_setTextEncoding
MGL_setTextJustify
MGL_setTextSettings
MGL_setTextSize
MGL_setViewport
MGL_setViewportDC
MGL_setViewportOrg
MGL_setViewportOrgDC
MGL_setVisualPage
MGL_setWriteMode
MGL_singleBuffer
MGL_sizex
MGL_sizey
MGL_srand
MGL_srcTransBlt
MGL_srcTransBltCoord
MGL_startStereo
MGL_stopStereo
MGL_stretchBitmap
MGL_stretchBitmapFx
MGL_stretchBitmapFxSection
MGL_stretchBitmapSection
MGL_stretchBlt
MGL_stretchBltCoord
MGL_stretchBltFx
MGL_stretchBltFxCoord
MGL_stretchBuffer
MGL_stretchBufferFx
MGL_stretchBufferFxSection
MGL_stretchBufferSection
MGL_surfaceAccessType
MGL_suspend
MGL_swapBuffers
MGL_textBounds
MGL_textBounds_W
MGL_textHeight
MGL_textWidth
MGL_textWidth_W
MGL_traverseRegion
MGL_underScoreLocation
MGL_underScoreLocation_W
MGL_unionRect
MGL_unionRectCoord
MGL_unionRegion
MGL_unionRegionOfs
MGL_unionRegionRect
MGL_unloadBitmap
MGL_unloadCursor
MGL_unloadFont
MGL_unloadFontInstance
MGL_unloadIcon
MGL_unlockBuffer
MGL_unpackColor
MGL_unpackColorExt
MGL_unpackColorFast
MGL_unpackColorFastExt
MGL_updateBufferCache
MGL_updateFromBufferCache
MGL_useFont
MGL_usePenBitmapPattern
MGL_usePenPixmapPattern
MGL_vSync
MGL_vecFontEngine
MGL_wmBeginPaint
MGL_wmCaptureEvents
MGL_wmCoordGlobalToLocal
MGL_wmCoordLocalToGlobal
MGL_wmCreate
MGL_wmCreateWindow
MGL_wmDestroy
MGL_wmDestroyWindow
MGL_wmEndPaint
MGL_wmGetRootWindow
MGL_wmGetWindowAtPosition
MGL_wmGetWindowFlags
MGL_wmGetWindowParent
MGL_wmGetWindowUserData
MGL_wmInvalidateRect
MGL_wmInvalidateRegion
MGL_wmInvalidateWindow
MGL_wmInvalidateWindowRect
MGL_wmInvalidateWindowRegion
MGL_wmLowerWindow
MGL_wmPopGlobalEventHandler
MGL_wmPopWindowEventHandler
MGL_wmProcessEvent
MGL_wmPushGlobalEventHandler
MGL_wmPushWindowEventHandler
MGL_wmRaiseWindow
MGL_wmRemoveGlobalEventHandler
MGL_wmRemoveWindowEventHandler
MGL_wmReparentWindow
MGL_wmSetGlobalCursor
MGL_wmSetWindowCursor
MGL_wmSetWindowDestructor
MGL_wmSetWindowFlags
MGL_wmSetWindowPainter
MGL_wmSetWindowPosition
MGL_wmSetWindowUserData
MGL_wmShowWindow
MGL_wmUncaptureEvents
MGL_wmUpdateDC
MS_getPos
MS_hide
MS_moveTo
MS_obscure
MS_setCursor
MS_setCursorColor
MS_setCursorColorExt
MS_show
SPR_destroyBitmap
SPR_draw
SPR_drawExt
SPR_drawSection
SPR_drawSectionExt
SPR_mgrAddOpaqueBitmap
SPR_mgrAddTransparentBitmap
SPR_mgrEmpty
SPR_mgrExit
SPR_mgrInit
ULZElapsedTime
ULZReadTime
ULZTimerCount
ULZTimerLap
ULZTimerOff
ULZTimerOn
ULZTimerResolution
ZTimerInit
ZTimerInitExt
demo
writeCursor
Type Definitions
CPU_largeInteger
CPU_processorType
EVT_asciiCodesType
EVT_eventJoyAxisType
EVT_eventJoyMaskType
EVT_eventMaskType
EVT_eventModMaskType
EVT_eventMouseMaskType
EVT_eventType
EVT_masksType
EVT_scanCodesType
GMDC
GM_driverOptions
GM_modeFlagsType
GM_modeInfo
GM_stretchType
LZTimerObject
MGLBUF
MGLDC
MGLVisual
MGL_COLORS
MGL_WIN_COLORS
MGL_backModes
MGL_bitBltFxFlagsType
MGL_blendFuncType
MGL_bufferFlagsType
MGL_ditherModes
MGL_errorType
MGL_fontBlendType
MGL_fontLibType
MGL_fontType
MGL_glContextFlagsType
MGL_glOpenGLType
MGL_hardwareFlagsType
MGL_lineStyleType
MGL_modeFlagsType
MGL_palRotateType
MGL_penStyleType
MGL_polygonType
MGL_refreshRateType
MGL_rop3CodesType
MGL_stereoBufType
MGL_surfaceAccessFlagsType
MGL_suspendAppCodesType
MGL_suspendAppFlagsType
MGL_textDirType
MGL_textEncodingType
MGL_textJustType
MGL_waitVRTFlagType
MGL_wmWindowFlags
MGL_writeModeType
M_int16
M_int32
M_int8
M_uint16
M_uint32
M_uint8
arc_coords_t
attributes_t
bitmap_t
bltfx_t
captureentry_t
codepage_entry_t
codepage_t
color16_cursor_t
color256_cursor_t
colorRGBA_cursor_t
colorRGB_cursor_t
color_t
cursor_t
event_t
fileio_t
fix32_t
font_info_t
font_lib_t
font_t
fxpoint_t
globalevententry_t
gmode_t
icon_t
metrics_t
mono_cursor_t
palette_ext_t
palette_t
pattern_t
pixel_format_t
pixpattern16_t
pixpattern24_t
pixpattern32_t
pixpattern8_t
pixpattern_t
point_t
rect_t
region_t
segment_t
span_t
text_settings_t
window_t
windowevententry_t
winmng_t