VCDrawCurrentEntityAfter


Version:

5.0

Description:

Moves the current entity in the draw order list so that it draws immediately after a reference entity

Declaration:

 

C/C++

extern "C" void WINAPI VCDrawCurrentEntityAfter(short* iError, ENTITYHANDLE eRef);

Delphi

procedure VCDrawCurrentEntityAfter(var iError: Smallint; eRef: Smallint); stdcall;

ActiveX/COM

Sub DrawCurrentEntityAfter(ByVal eRef As Long)

Parameters:

eRef - Handle of the reference entity to draw after

Return Value:

none

iError Code:

0 - Success
1 - Invalid World
2 - Entity Handle out of range

Notes:

VCADD's draw order is maintained as a linked list of entity handles.  The draw order list is parsed from beginning to end and the entities are drawn in the order that their handles are encountered in the list.  The first entity in the list is drawn first and the last entity is drawn last.  The draw order can be manipulated by changing an entity's position in the draw order list.

See Also:

VCDrawCurrentEntityFirst, VCDrawCurrentEntityLast, VCDrawCurrentEntityBeforeVCDrawSelectedFirst, VCDrawSelectedLast, VCDrawSelectedBefore, VCDrawSelectedAfter, VCGetDrawOrdinal, VCGetDrawList