DeleteShader

Family: 3D · One form

What it does

DeleteShader removes a 3D object: after it, the id names nothing. It takes shaderID (an integer), and returns nothing. shaderID is the id of a Shader object, the one LoadShader returned: it is how the call knows what to act on.

Syntax

DeleteShader(shaderID integer)

Parameters

NameType
shaderIDinteger

Every form returns

nothing

Example · generated

shader = LoadShader("assets/data.dat", "assets/data.dat")DeleteShader(shader)DO  Sync()LOOP

LoadShader is there to give the call something to act on; DeleteShader is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

286 commands in 3D