Overview:
This function is executed prior to the object's OnDraw Event. It is used to perform user-defined drawing commands and animation. If this function returns 1, the object's standard OnDraw function is not called. If it returns 0, OnDraw occurs normally. FlexScript, C++, and/or OpenGL code can be used to define what is drawn.
Common Commands:
drawcolumn(xloc,yloc,zloc,nrsides,baseradius,topradius,height,xrot,yrot,zrot,red,green,blue[,opacity,texture,xrep,yrep])
drawcube(xloc,yloc,zloc,xsize,ysize,zsize,xrot,yrot,zrot,red,green,blue[,opacity,texture,xrep,yrep])
drawcylinder(xloc,yloc,zloc,baseradius,topradius,height,xrot,yrot,zrot,red,green,blue[,opacity,texture])
drawdisk(xloc,yloc,zloc,innerradius,outerradius,startangle,sweepangle,xrot,yrot,zrot,red,green,blue[,opacity,texture])
drawline(view,x1,y1,z1,x2,y2,z2,red,green,blue)
drawobject(view,shape,texture)
drawrectangle(xloc,yloc,zloc,length,width,xrot,yrot,zrot,red,green,blue[,opacity,texture,xrep,yrep])
drawsphere(xloc,yloc,zloc,radius,red,green,blue[,opacity,texture])
drawtext(view,text,xloc,yloc,zloc,width,height,thickness[,xrot,yrot,zrot,red,green,blue,opacity])
drawtomodelscale(object)
drawtoobjectscale(object)
drawtriangle(view,x1,y1,z1,x2,y2,z2,x3,y3,z3,red,green,blue)
spacerotate(x,y,z)
spacescale(x,y,z)
spacetranslate(x,y,z)
Access variables:
current: the current object
view: the view that the object is being drawn in