This shows you the differences between two versions of the page.
c:graphics.h:getactivepage [2015/05/06 23:06] |
c:graphics.h:getactivepage [2024/02/16 01:05] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== getactivepage ===== | ||
+ | |||
+ | |||
+ | ====Syntax of getactivepage ==== | ||
+ | <code c> | ||
+ | #include "graphics.h" | ||
+ | int getactivepage(void); | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ==== Description of getactivepage ==== | ||
+ | <code c> | ||
+ | The getactivepage function is available in the winbgim implementation of | ||
+ | BGI graphics. getactivepage gets the page number of the currently active | ||
+ | page (where drawing takes place). | ||
+ | The active graphics page might not be the one you see onscreen, depending | ||
+ | on how many graphics pages are available on your system. | ||
+ | The original winbgi was designed to support up to 16 pages, but I have | ||
+ | only used pages 1 and 2 myself. NOTE: Using page number 0 might mess up | ||
+ | the colors. I use pages 1-2 for double buffering. | ||
+ | </code> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== See also ==== | ||
+ | [[getvisualpage]] | ||
+ | [[setactivepage]] | ||
+ | [[swapbuffers]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== output of getactivepage example ===== | ||
+ | |||
+ | no output of example at the moment | ||
+ | do not hesitate and add it... | ||
+ | |||
+ | |||