Supported Browsers Home   
MGL_glOpenGLType Previous   
MGL_lineStyleType Next   
Type Definitions Up   

MGL_hardwareFlagsType

Declaration

typedef enum {
    MGL_HW_NONE             = 0x00000000,
    MGL_HW_LINE             = 0x00000010,
    MGL_HW_STIPPLE_LINE     = 0x00000020,
    MGL_HW_POLY             = 0x00000040,
    MGL_HW_RECT             = 0x00000080,
    MGL_HW_PATT_RECT        = 0x00000100,
    MGL_HW_CLRPATT_RECT     = 0x00000200,
    MGL_HW_SYS_BLT          = 0x00000400,
    MGL_HW_SCR_BLT          = 0x00000800,
    MGL_HW_SRCTRANS_BLT     = 0x00001000,
    MGL_HW_DSTTRANS_BLT     = 0x00002000,
    MGL_HW_SRCTRANS_SYS_BLT = 0x00004000,
    MGL_HW_DSTTRANS_SYS_BLT = 0x00008000,
    MGL_HW_STRETCH_BLT      = 0x00010000,
    MGL_HW_STRETCH_SYS_BLT  = 0x00020000,
    MGL_HW_MONO_BLT         = 0x00040000,
    MGL_HW_FLAGS            = 0x0007FFF0
    } MGL_hardwareFlagsType

Prototype In

mgraph.h

Description

Defines the flags for the types of hardware acceleration supported by the device context. This will allow the application to tailor the use of MGL functions depending upon whether specific hardware support is available. Hence applications can use specialised software rendering support if the desired hardware support is not available on the end user system.

Note:    If the hardware flags are not MGL_HW_NONE, you must call the MGL_beginDirectAccess and MGL_endDirectAccess functions before and after any custom code that does direct framebuffer rendering!! This is not necessary for non-accelerated device contexts, so you might want to optimise these calls out if there is no hardware acceleration support.

Members

MGL_HW_NONE

No hardware acceleration

MGL_HW_LINE

Hardware line drawing

MGL_HW_STIPPLE_LINE

Hardware stippled line drawing

MGL_HW_POLY

Hardware polygon filling

MGL_HW_RECT

Hardware rectangle fill

MGL_HW_PATT_RECT

Hardware pattern rectangle fill

MGL_HW_CLRPATT_RECT

Hardware color pattern fill

MGL_HW_SYS_BLT

Hardware system->screen bitBlt

MGL_HW_SCR_BLT

Hardware screen->screen bitBlt

MGL_HW_SRCTRANS_BLT

Hardware source transparent blt

MGL_HW_DSTTRANS_BLT

Hardware dest. transparent blt

MGL_HW_SRCTRANS_SYS_BLT

Hardware system->screen source transparent blt

MGL_HW_DSTTRANS_SYS_BLT

Hardware system->screen destination transparent blt

MGL_HW_STRETCH_BLT

Hardware stretch blt

MGL_HW_STRETCH_SYS_BLT

Hardware system->screen stretch blt

MGL_HW_MONO_BLT

Hardware monochrome blt

 

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