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

Graph modes

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 02:03, 4 May 2007 (edit)
Sandman (Talk | contribs)

← Previous diff
Current revision (02:08, 4 May 2007) (edit) (undo)
Sandman (Talk | contribs)

 
Line 2: Line 2:
== Definition == == Definition ==
-Graph modes are used to set the color depth of the screen and specify the mode of rendering, by assigning them to the [[global variable]] [[graph_mode]]. This is also achieved by passing them to the [[parameter]]s depth and flags in the function [[set_mode]](), which is a pretty tidy solution.+Graph modes are used to specify the color depth of the screen and the mode of rendering, by assigning them to the [[global variable]] [[graph_mode]]. This is also achieved by passing them to the [[parameter]]s depth and flags in the function [[set_mode]](), which is a pretty tidy solution.
== List == == List ==

Current revision


[edit] Definition

Graph modes are used to specify the color depth of the screen and the mode of rendering, by assigning them to the global variable graph_mode. This is also achieved by passing them to the parameters depth and flags in the function set_mode(), which is a pretty tidy solution.

[edit] List

Color depths constants:

Constant - Value - Description
MODE_8BITS - 8 - Use a color depth of 8bit. Also called MODE_8BPP.
MODE_16BITS - 16 - Use a color depth of 16bit. Also called MODE_16BPP.

Render flags constants:

Constant - Value - Description
MODE_WINDOW - 0 - Enables window view.
MODE_2XSCALE - 256 - Doubles the resolution. Edges get smoothed.
MODE_FULLSCREEN - 512 - Enables fullscreen view.
MODE_DOUBLEBUFFER - 1024 - Enables using a double buffer for display. Also called DOUBLE_BUFFER.
MODE_HARDWARE - 2048 - Enables writing directly to Video RAM instead of main RAM. Also called HW_SURFACE.
MODE_MODAL - 4096 - Makes the main window a Modal window.
MODE_FRAMELESS - 8192 - Makes the main window borderless.
Personal tools