This wiki is out of date, use the continuation of this wiki instead

Set mode

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:44, 4 May 2007 (edit)
Sandman (Talk | contribs)
m
← Previous diff
Revision as of 02:07, 4 May 2007 (edit) (undo)
Sandman (Talk | contribs)
m
Next diff →
Line 13: Line 13:
| '''INT''' height || - Height of the screen in [[pixel]]s. | '''INT''' height || - Height of the screen in [[pixel]]s.
|- |-
-| '''INT''' depth || - [[Color depth]] of the screen. See [[graph_modes]].+| '''INT''' depth || - [[Color depth]] of the screen. See [[color_depths]].
|- |-
| '''INT''' flags || - Mode of rendering. See [[render flags]]. | '''INT''' flags || - Mode of rendering. See [[render flags]].

Revision as of 02:07, 4 May 2007


Contents

Definition

INT set_mode ( <INT width> , <INT height> , [<INT depth>] , [<INT flags>] )

Sets the video mode of the program.

Parameters

INT width - Width of the screen in pixels.
INT height - Height of the screen in pixels.
INT depth - Color depth of the screen. See color_depths.
INT flags - Mode of rendering. See render flags.

Returns

INT : true

Errors

Unsupported graphical mode - Specified graphical mode is not supported.
Personal tools