•  Back 
  •  VDI Metafile Escapes 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-Filev_write_meta()                                                          VDI

Syntax

VOID v_write_meta( handle, intin_len, intin, ptsin_len, ptsin )
WORD handle, intin_len;
WORD *intin;
WORD ptsin_len;
WORD *ptsin;

Function      v_write_meta() writes a customized metafile sub-opcode.

Opcode        5

Sub-Opcode    99

Availability  Supported by all metafile drivers.

Parameters    handle specifies a valid workstation handle. intin points to
              an array of WORDs with intin_len (0-127) elements. ptsin
              points to an array of WORDs with ptsin_len (0-127) elements.
              ptsin is not required to be of any length, however, intin
              should be at least one word long to specify the sub-opcode in
              intin[0]. Sub-opcodes 0-100 are reserved for use by Atari.
              Several pre-defined sub-opcodes in this range already exist
              as follows:

              Sub-Opcode  Meaning
               intin[0]

                  10      Start group.

                  11      End group.

                  49      Set no line style.

                  50      Set attribute shadow on.

                  51      Set attribute shadow off.

                  80      Start draw area type primitive.

                  81      End draw area type primitive.

Binding       WORD i;

              contrl[0] = 5;
              contrl[1] = ptsin_len;
              contrl[3] = intin_len;
              contrl[5] = 99;
              contrl[6] = handle;

              for(i = 0;i < intin_len; i++)
               intin[i] = m_intin[i];
              for(i = 0;i < ptsin_len; i++)
               ptsin[i] = m_ptsin[i];

              vdi();

Comments      Metafile readers should ignore and safely skip any opcodes
              not understood.

Group         VDI Metafile Escapes