SCI Kernel Documentation/Graphic Screen Functions: Difference between revisions
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
<div align="center"><span style="font-size: 22pt">Graphic Screen Functions</span><br />''Author: [[Jeff Stephenson]] 1988-04-04''<br />''Revision by: [[David Slayback]] 1989-07-25''</div></div> | <div align="center"><span style="font-size: 22pt">Graphic Screen Functions</span><br />''Author: [[Jeff Stephenson]] 1988-04-04''<br />''Revision by: [[David Slayback]] 1989-07-25''</div></div> | ||
<br /> | |||
==<br /> Graphic Screen Functions == | ==<br /> Graphic Screen Functions == | ||
| Line 121: | Line 120: | ||
</blockquote> | </blockquote> | ||
==<br /> References == | |||
<references /><!-- Do not edit this section. It is autopopulated by <ref></ref> tags --> | |||
==<br /> Also See == | |||
< | |||
* [[:Category:Official Documentation|Official Documentation]] | |||
* [[:Category:Graphics Articles|Graphics Articles]] | |||
* [[Picture Resource (SCI)]] | |||
* [[SCI Specifications: Chapter 1 - Introduction#PIC|PIC in the SCI Specifications]] | |||
* [[:Category:Picture Resources|Picture Resource Articles]] | |||
| | ||
[[SCI Kernel Documentation | Table of Contents]] | [[Official SCI Documentation]]<br /> | ||
[[SCI Kernel Documentation|Table of Contents]] | |||
<span style="float: left">[[SCI Kernel Documentation/Animation Functions|< Previous: Animation Functions]]</span> | <span style="float: left">[[SCI Kernel Documentation/Animation Functions|< Previous: Animation Functions]]</span> | ||
| Line 136: | Line 140: | ||
| | ||
[[Category:References]] | |||
[[Category:SCI References]] | |||
[[Category:Historical Pages]] | |||
[[Category:SCI Historical Pages]] | |||
[[Category:Development]] | |||
[[Category:SCI Development]] | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:SCI Documentation]] | [[Category:SCI Documentation]] | ||
[[Category:Official Documentation]] | |||
[[Category:Official SCI Documentation]] | |||
[[Category:Technical Info]] | |||
[[Category:SCI Technical Info]] | |||
[[Category:Graphics Articles]] | |||
[[Category:SCI Graphics Articles]] | |||
[[Category:SCI Kernel Functions]] | [[Category:SCI Kernel Functions]] | ||
[[Category:Graphics Articles]] | [[Category:Graphics Articles]] | ||
[[Category:SCI Graphics Articles]] | |||
[[Category:SCI Graphics]] | [[Category:SCI Graphics]] | ||
[[Category:SCI Graphic Screen]] | [[Category:SCI Graphic Screen]] | ||
[[Category:SCI Graphic Screen Functions]] | [[Category:SCI Graphic Screen Functions]] | ||
[[Category:Picture Resources]] | |||
[[Category:SCI Picture Resources]] | |||
Latest revision as of 11:17, 25 December 2025
Official SCI Documentation
Table of Contents
Graphic Screen Functions
The following kernel functions are direct calls to the graphic code used to draw the pictures and views.
mapSet is used below to refer to a word that has its bits set for a combination of showing on the Visual, Priority, and/or Control screen.
(Graph GLoadBits bitMap)
Load the given bitMap number, and display on screen. This function does NOT work for 16-color SCI.
(Graph GDetect)
Return the number of colors supported by the video hardware. EGA=16, CGA B/W=2, CGA Color=4, VGA=256.
(Graph GSetPalette paletteNum)
Not implemented yet -- for 256-color SCI.
- changed 4-2-90 j.m.h. /m.w.
(Graph GDrawLine t l b r vColor pColor cColor)
Draw a line from (l, t) to (r, b) in the the given colors. A color value of -1 specifies that the line should not be drawn into that map.
(Graph GFillArea x y mapSet [vColor] [pColor [cColor])
Do a fill at (x,y) in the mapSet screens in the given colors.
(Graph GDrawBrush x y size randomSeed mapSet [vColor] [pColor [cColor])
Not implemented yet.
(Graph GSaveBits top left bottom right mapSet saveID)
Return a pointer to the saved bits of the rectangle (top,left, bottom, right) on the given screen(s) in mapset.
(Graph GRestoreBits saveID)
Restore to the screen the bits that are pointed to by saveID.
(Graph GEraseRect top left bottom right)
Draws visual in background color.
(Graph GPaintRect top left bottom right)
Draws visual in foreground color.
(Graph GFillRect top left bottom right mapset vColor pColor cColor)
Fill a given rectangle(top,left,bottom,right) in the given screen(s) and color(s).
(Graph GShowBits top left bottom right mapSet)
Not implemented yet.
(Graph GReAnimate top left bottom right)
This has the same affect as a ShowBits, BUT re-animates the cast members that are inside the shown rectangle.
(Graph GInitPri horizon foreground)
This sets the point at which animated characters change priority as they move up and down the screen. The horizon is the coordinate in the picture where their priority is 0. The foreground is the point where the priority will be 14. These values can be set in the picture editor, but are not saved. Default is hor=42, fore=190.
References
Also See
- Official Documentation
- Graphics Articles
- Picture Resource (SCI)
- PIC in the SCI Specifications
- Picture Resource Articles
Official SCI Documentation
Table of Contents
< Previous: Animation Functions Next: Input Functions >
- SCI Pages
- SCI References
- Historical Pages
- SCI Historical Pages
- Development
- SCI Development
- SCI Documentation
- Official Documentation
- Official SCI Documentation
- Technical Info
- SCI Technical Info
- SCI Graphics Articles
- SCI Kernel Functions
- SCI Graphics
- SCI Graphic Screen
- SCI Graphic Screen Functions
- Picture Resources
- SCI Picture Resources