•  Back 
  •  VDI FONTGDOS 
  •  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_bez()
v_set_app_buff()                                                        VDI

Syntax

VOID v_set_app_buff( but, nparagraphs )
VOID *buf;
WORD nparagraphs;

Function      v_set_app_buff() designates memory for use by the bezier
              generation routines.

Opcode        -1

Sub-Opcode    6

Availability  Available only with FONTGDOS, FSMGDOS or SpeedoGDOS.

Parameters    buf specifies the address of a buffer which the bezier
              generator routines may safely use. nparagraphs specifies the
              size of the buffer in 'paragraphs' (16 bytes).

Binding       contrl[0] = -1;
              contrl[1] = 0;
              contrl[3] = 3;
              contrl[5] = 6;

              *(VOID *)&intin[0] = buf;
              intin[2] = nparagraphs;

              vdi();

Comments      Before the application exits, it should call v_set_app_buff(
              NULL, 0 ) to 'unmark' memory. The application is then
              responsible for deallocating the memory. In the absence of
              this call the first v_bez() or v_bezfill() call will
              allocate its own buffer of 8K. Atari documentation
              recommends a size of about 9K depending on the extents of
              the bezier you wish to generate.

See Also      v_bez()

Group         VDI FONTGDOS