SceneObjectCircle

Extends: SceneObjectBillboard

Draws a DrawableCircle. The fill is inherited, unmodified SceneObjectBillboard machinery (pinned-corners texture warp, tinting, temp-bitmap caching) blitting the renderer's shared circle resource (Renderer.getCircleResource(), built lazily on first use) - exactly like SceneObjectImage, just with a fixed texture instead of one supplied by the drawable. Only the outline differs from a plain Image: it's stroked as an N-gon inscribed in this object's own already-transformed canvasPoints quad (via the generic getOutlineCanvasPoints() hook), which is far cheaper than rasterizing the fill itself as a many-sided polygon and needs no new Renderer draw method.

Properties


Constructor

new SceneObjectCircle( name: string, drawableObj: DrawableCircle, ): SceneObjectCircle

Parameters


Instance Methods

getBoundingPoints(cameraObj: Camera): Array.<BGE.Math.Vector>

Parameters

Returns

  • Array.<BGE.Math.Vector>

getRegionWithIdToDraw( rendererObj: BGE.Renderer, ): BGE.RendererHelpers.RegionWithId

protected

Parameters

Returns

  • BGE.RendererHelpers.RegionWithId

needsManualPretranslationForDirectMode(): boolean

protected

Returns

  • boolean

isEligibleForFastDrawCheck( drawMode: SceneObjectDrawMode, ): boolean

protected

Parameters

Returns

  • boolean

drawToCanvas( rendererObj: BGE.Renderer, drawMode: SceneObjectDrawMode, ): boolean

protected

Parameters

Returns

  • boolean

getOutlineCanvasPoints(): Array.<BGE.Math.Vector>

protected

Returns

  • Array.<BGE.Math.Vector>