GDSetCurrent

C Specification

#include <revolution/gd.h>
void GDSetCurrent( GDLObj* dl );

Arguments

dl Pointer to a graphics display list object.

Return Values

None.

Description

This function sets the specified GDLObj as the current structure. Until another GDLObj is set as current, all commands that operate on the current GDLObj will operate on dl. Note that all of the GD graphics commands operate on the current GDLObj.

When you finish working with the current GDLObj, setting it to NULL is recommended. This will help avoid potential problems and aid in debugging if you forget to set a different structure as the current GDLObj.

See Also

GDGetCurrent
GDIsCurrent

Revision History

03/01/2006 Initial version.