a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 layers.library
  BeginUpdate
  BehindLayer
  CreateBehindHookLayer
  CreateBehindLayer
  CreateUpfrontHookLayer
  CreateUpfrontLayer
  DeleteLayer
  DisposeLayerInfo
  DoHookClipRects
  EndUpdate
  FattenLayerInfo
  InitLayers
  InstallClipRegion
  InstallLayerHook
  InstallLayerInfoHook
  LockLayer
  LockLayerInfo
  LockLayers
  MoveLayer
  MoveLayerInFrontOf
  MoveSizeLayer
  NewLayerInfo
  ScrollLayer
  SizeLayer
  SwapBitsRastPortClipRect
  ThinLayerInfo
  UnlockLayer
  UnlockLayerInfo
  UnlockLayers
  UpfrontLayer
  WhichLayer
Include
GuruMeditation
Docs » Autodocs » layers.library » CreateUpfrontLayer

NAME

	CreateUpfrontLayer -- Create a new layer on top of existing layers.

SYNOPSIS

	result = CreateUpfrontLayer(li,bm,x0,y0,x1,y1,flags [,bm2])
d0 a0 a1 d0 d1 d2 d3 d4 [ a2 ]
struct Layer *CreateUpfrontLayer(struct Layer_Info *, struct BitMap *,
LONG, LONG, LONG, LONG, LONG, ... );

FUNCTION

	Create a new Layer of position and size (x0,y0)->(x1,y1)
and place it on top of all other layers.
Make this layer of type found in flags
if SuperBitMap, use bm2 as pointer to real SuperBitMap.
and copy contents of Superbitmap into display layer.
Note: when using SUPERBITMAP, you should also set LAYERSMART flag.

INPUTS

	li - pointer to LayerInfo structure
bm - pointer to common BitMap used by all Layers
x0,y0 - upper left hand corner of layer
x1,y1 - lower right hand corner of layer
flags - various types of layers supported as bit sets.
bm2 - pointer to optional Super BitMap

RESULT

	result - pointer to Layer structure if successful
NULL if not successful

BUGS

SEE ALSO

DeleteLayer(), <graphics/layers.h>, <graphics/clip.h>, <graphics/gfx.h>

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Scoopex

DC
FLT
FC
SCX

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se