Difference between revisions of "AGI Command Reference - Picture Resource Management Commands"

From AGI Wiki
Jump to navigationJump to search
(Blanked the page)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br />
 
[[AGI Command Reference|AGI Command Reference Index]]<br />
 
  
<div align="center">
 
Page:
 
[[AGI Command Reference - Arithmetic Commands|1]] |
 
[[AGI Command Reference - Commands to Load and unLoad Resources|2]] |
 
[[AGI Command Reference - Program Control Commands|3]] |
 
[[AGI Command Reference - Object Control Commands|4]] |
 
[[AGI Command Reference - Object Description Commands|5]] |
 
[[AGI Command Reference - Object Motion Control Commands|6]] |
 
[[AGI Command Reference - Inventory Item Management Commands|7]] |
 
[[AGI Command Reference - Picture Resource Management Commands|8]] |
 
[[AGI Command Reference - Sound Resource Management Commands|9]] |
 
[[AGI Command Reference - Text Management Commands|10]] |
 
[[AGI Command Reference - String Management Commands|11]] |
 
[[AGI Command Reference - Initialization Commands|12]] |
 
[[AGI Command Reference - Menu Management Commands|13]] |
 
[[AGI Command Reference - Test Commands|14]] |
 
[[AGI Command Reference - Other Commands|15]] |
 
[[AGI Command Reference - Unknown Commands|16]]
 
</div><br />
 
 
<div align="center"><span style="font-size: 22pt">Picture Resource Management Commands</span><br />
 
''By [[Chris Cromer]]''</div>
 
 
&nbsp;
 
 
The following commands operate on picture resources (3D props), prepared using PM editor and loaded in the interpreter memory using load_pic:
 
 
== <br />draw.pic(n); ==
 
 
<blockquote>
 
A picture resource number i, where i is the value of Var(n) is executed. As the result, the background picture is created in the internal buffer of the interpreter. Before execution, the buffer is cleared, i.e. all pixels are set to color 15 and priority 4.</blockquote>
 
 
== overlay.pic(n); ==
 
 
<blockquote>Just like the above, only the internal buffer is not cleared before drawing. Picture(Var(n)) is drawn over the existing picture.</blockquote>
 
 
== add.to.pic(a, b, c, d, e, f, g); add.to.pic.v(a, b, c, d, e, f, g); ==
 
 
<blockquote>A picture of a View resource is added to the background as its component. Typically, this is used to add small complicated details which would require too many picture resource commands to draw.
 
Parameters are:<br />
 
<br />
 
:a ( Var(a) ) - number of the View resource;
 
:b ( Var(b) ) - loop number;
 
:c ( Var(c) ) - cel number;
 
:d ( Var(d) ) - x coordinate;
 
:e ( Var(e) ) - y coordinate;
 
:f ( Var(f) ) - priority;
 
:g ( Var(g) ) - margin.<br />
 
<br />
 
If margin is 0, 1, 2, or 3, the base of the cel is surrounded with a rectangle of the corresponding priority. If margin > 4, this extra margin is not shown.</blockquote>
 
 
== show.pic(); ==
 
 
<blockquote>Shows internal buffer on the screen.
 
 
ATTENTION! Please use the following sequence of commands when loading picture resources in the interpreter memory:<br />
 
<br />
 
:load.pic(n);
 
:draw.pic(n);
 
:discard.pic(n);
 
:.............
 
:show.pic;
 
<br />
 
Any other order may crash the interpreter without any diagnostic messages.</blockquote>
 
 
&nbsp;
 
 
<div align="center">
 
Page:
 
[[AGI Command Reference - Arithmetic Commands|1]] |
 
[[AGI Command Reference - Commands to Load and unLoad Resources|2]] |
 
[[AGI Command Reference - Program Control Commands|3]] |
 
[[AGI Command Reference - Object Control Commands|4]] |
 
[[AGI Command Reference - Object Description Commands|5]] |
 
[[AGI Command Reference - Object Motion Control Commands|6]] |
 
[[AGI Command Reference - Inventory Item Management Commands|7]] |
 
[[AGI Command Reference - Picture Resource Management Commands|8]] |
 
[[AGI Command Reference - Sound Resource Management Commands|9]] |
 
[[AGI Command Reference - Text Management Commands|10]] |
 
[[AGI Command Reference - String Management Commands|11]] |
 
[[AGI Command Reference - Initialization Commands|12]] |
 
[[AGI Command Reference - Menu Management Commands|13]] |
 
[[AGI Command Reference - Test Commands|14]] |
 
[[AGI Command Reference - Other Commands|15]] |
 
[[AGI Command Reference - Unknown Commands|16]]
 
</div><br />
 
 
[[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br />
 
[[AGI Command Reference|AGI Command Reference Index]]
 
 
<span style="float: left">[[AGI Command Reference - Inventory Item Management Commands|&lt; Previous: Inventory Item Management Commands]]</span><span style="float: right">[[AGI Command Reference - Sound Resource Management Commands|Next: Sound Resource Management Commands &gt;]]</span>
 
 
&nbsp;
 
 
[[Category:Logic]]
 
[[Category:Commands]]
 
[[Category:References]]
 
[[Category:Tutorials]]
 
[[Category:Picture Resources]]
 

Latest revision as of 19:55, 22 March 2019