Supported Browsers Home   
MGL_ditherModes Previous   
MGL_fontBlendType Next   
Type Definitions Up   

MGL_errorType

Declaration

typedef enum {
    grOK            = 0,
    grNoInit        = -1,
    grNotDetected   = -2,
    grDriverNotFound= -3,
    grBadDriver     = -4,
    grLoadMem       = -5,
    grInvalidMode   = -6,
    grError         = -8,
    grInvalidName   = -9,
    grNoMem         = -10,
    grNoModeSupport = -11,
    grInvalidFont   = -12,
    grBadFontFile   = -13,
    grFontNotFound  = -14,
    grOldDriver     = -15,
    grInvalidDevice = -16,
    grInvalidDC     = -17,
    grInvalidCursor = -18,
    grCursorNotFound= -19,
    grInvalidIcon   = -20,
    grIconNotFound  = -21,
    grInvalidBitmap = -22,
    grBitmapNotFound= -23,
    grNewFontFile   = -25,
    grNoDoubleBuff  = -26,
    grNoHardwareBlt = -28,
    grNoOffscreenMem= -29,
    grInvalidPF     = -30,
    grInvalidBuffer = -31,
    grNoDisplayDC   = -32,
    grFailLoadRef2d = -33,
    grLastError     = -34
    } MGL_errorType

Prototype In

mgraph.h

Description

Defines the error codes returned by MGL_result. If a function fails for any reason, you can check the error code return by MGL_result to determine the cause of the failure, or display an error message to the user with MGL_errorMsg.

Members

grOK

No error

grNoInit

Graphics driver has not been installed

grNotDetected

Graphics hardware was not detected

grDriverNotFound

Graphics driver file not found

grBadDriver

File loaded was not a graphics driver

grLoadMem

Not enough memory to load graphics driver

grInvalidMode

Invalid graphics mode for selected driver

grError

General graphics error

grInvalidName

Invalid driver name

grNoMem

Not enough memory to perform operation

grNoModeSupport

Select video mode not supported by hard.

grInvalidFont

Invalid font data

grBadFontFile

File loaded was not a font file

grFontNotFound

Font file was not found

grOldDriver

Driver file is an old version

grInvalidDevice

Invalid device for selected operation

grInvalidDC

Invalid device context

grInvalidCursor

Invalid cursor file

grCursorNotFound

Cursor file was not found

grInvalidIcon

Invalid icon file

grIconNotFound

Icon file was not found

grInvalidBitmap

Invalid bitmap file

grBitmapNotFound

Bitmap file was not found

grNewFontFile

Only Windows 2.x font files supported

grNoDoubleBuff

Double buffering is not available

grNoHardwareBlt

No hardware bitBlt for OffscreenDC

grNoOffscreenMem

No available offscreen memory

grInvalidPF

Invalid pixel format for memory DC

grInvalidBuffer

Invalid offscreem buffer

grNoDisplayDC

Display DC has not been created

grFailLoadRef2d

2D reference rasteriser driver failed to load

grLastError

Last error number in list

 

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com