- This wiki is out of date, use the continuation of this wiki instead
Render flags
From FenixWiki
(Difference between revisions)
| Revision as of 23:59, 3 May 2007 (edit) Sandman (Talk | contribs) m ← Previous diff |
Current revision (01:34, 24 July 2007) (edit) (undo) Rincewind (Talk | contribs) (→Definition - pipe character info added) |
||
| (3 intermediate revisions not shown.) | |||
| Line 2: | Line 2: | ||
| == Definition == | == Definition == | ||
| - | Render flags are used to specify the mode of rendering, by passing them to the function [[set_mode]]() as the flags parameter. | + | Render flags are used to specify the mode of rendering, by passing them to the function [[set_mode]]() as the flags parameter. Multiple render flags can be specified using "|" (pipe character) for separation. |
| + | |||
| + | See also [[graph_modes]]. | ||
| == List == | == List == | ||
| Line 10: | Line 12: | ||
| | MODE_WINDOW || - 0 || - Enables window view. | | MODE_WINDOW || - 0 || - Enables window view. | ||
| |- | |- | ||
| - | | MODE_2XSCALE || - | + | | MODE_2XSCALE || - 256 || - Doubles the resolution. Edges get smoothed using the scale2x algorithm. |
| |- | |- | ||
| - | | MODE_FULLSCREEN || - | + | | MODE_FULLSCREEN || - 512 || - Enables fullscreen view. |
| |- | |- | ||
| - | | MODE_DOUBLEBUFFER || - | + | | MODE_DOUBLEBUFFER || - 1024 || - Enables using a double buffer for display. Also called DOUBLE_BUFFER. |
| |- | |- | ||
| - | | MODE_HARDWARE || - | + | | MODE_HARDWARE || - 2048 || - Enables writing directly to Video RAM instead of main RAM. Also called HW_SURFACE. |
| |- | |- | ||
| - | | MODE_MODAL || - | + | | MODE_MODAL || - 4096 || - Makes the main window a Modal window. |
| |- | |- | ||
| - | | MODE_FRAMELESS || - | + | | MODE_FRAMELESS || - 8192 || - Makes the main window borderless. |
| |} | |} | ||
| Line 26: | Line 28: | ||
| * MODE_HARDWARE can cause some operations to speed up and some to slow down. | * MODE_HARDWARE can cause some operations to speed up and some to slow down. | ||
| - | * MODE_DOUBLEBUFFER can cause frame transitions to be smoother. | + | * MODE_DOUBLEBUFFER can cause frame transitions to be smoother. However, compatibility with [[restore modes|restore_type = partial_restore]] is lost! |
| * MODE_MODAL causes the main window to stay focused and hold the mouse. | * MODE_MODAL causes the main window to stay focused and hold the mouse. | ||
Current revision
[edit] Definition
Render flags are used to specify the mode of rendering, by passing them to the function set_mode() as the flags parameter. Multiple render flags can be specified using "|" (pipe character) for separation.
See also graph_modes.
[edit] List
| Constant | - Value | - Description |
| MODE_WINDOW | - 0 | - Enables window view. |
| MODE_2XSCALE | - 256 | - Doubles the resolution. Edges get smoothed using the scale2x algorithm. |
| 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. |
[edit] More info
- MODE_HARDWARE can cause some operations to speed up and some to slow down.
- MODE_DOUBLEBUFFER can cause frame transitions to be smoother. However, compatibility with restore_type = partial_restore is lost!
- MODE_MODAL causes the main window to stay focused and hold the mouse.
