Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_setmode() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_SETMODE()

 DESCRIPTION

 The C_SETMODE() function selects the video display mode.  (Refer to
 Appendix F for a list of video display modes.)

 SYNTAX

 C_SETMODE(mode)

 PARAMETERS

 mode (N) is the video display mode (see Appendix F) to select.

 RETURNS

 There is no return value.

 EXAMPLES

 m_vmode = c_getmode()      && Save current video mode

 && Test for VGA adaptor.  If VGA, set video mode to 19 (640x480)
 && else set video mode to 4 (320x200)
 if c_getvideo() = 3              && Test for VGA adaptor
   c_setmode(19)                  && VGA-set video mode to 19 (640x480)
 else
   c_setmode(4)     && Else set video mode to 4 (320x200)
 endif
 ...
 ...          && Do graphics routine
 ...
 c_setmode(m_vmode)    && Set video mode back to previous mode


See Also: C_GETMODE() C_GETVIDEO() C_PIXWRITE() C_PIXREAD()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson