Get a ScreenBuffer for double-buffering.
Source position: intuition.pas line 4076
function AllocScreenBuffer( |
sc: pScreen; |
bm: pBitMap; |
flags: LongWord |
flags |
|
Flags see list SB_* |
Pointer to a valid ScreenBuffer structure, or nil if failure. You may render into the resulting BitMap as appropriate. You may use the TScreenBuffer.sb_DBufInfo field to access graphics.library ViewPort-buffering features such as learning when it is safe to reuse the previous BitMap. If not, you risk writing into the on-screen BitMap, which can damage menu or gadget rendering!
Allocates a ScreenBuffer structure and usually a BitMap. This structure can be used for double (or multiple) buffering in Intuition screens. You may use this call to obtain a ScreenBuffer structure for the screen's initial BitMap, or for other BitMaps you intend to swap in.
AllocScreenBuffer() also allocates a graphics.library DBufInfo structure. The ScreenBuffer structure this call returns contains a pointer to that TDBufInfo structure, which is free for your use. See AllocDBufInfo() for full details on using this structure to achieve notification of when it is safe to render into an old buffer and when it is right to switch again.
Flags:
|
Free a ScreenBuffer structure. |
|
|
Swap the screen's BitMap. |
|
|
Allocate structure for multi-buffered animation |
|
|
Change display memory address for multi-buffered animation |