MGL_getCurrentScanLine

Returns the line currently being displayed on the screen.

Declaration

int MGLAPI MGL_getCurrentScanLine(
    MGLDC *dc)

Prototype In

mgraph.h

Parameters

dc

Display device context of interest

 

Return Value

Line currently being display on the screen, -1 if not available.

Description

This function will determine what line the hardware is currently display on the screen (the current raster scan), and return this value. It will be a value in the range from 0 to the vertical total value (usually about 10% more than the vertical number of lines in the mode). This can be useful for implementing raster scan chasing algorithms for smooth animation when fullscreen page flipping is not available.

Note:    This function may not be available on all display devices, so make sure you check the return value to see if the function is implemented and available. If the function is not available, this function will return a value of -1.

See Also

MGL_vSync, MGL_isVSync

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