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
drawable(DrawableCircle)
Constructor
new SceneObjectCircle(
name: string,
drawableObj: DrawableCircle,
): SceneObjectCircleParameters
name(string)drawableObj(DrawableCircle)
Instance Methods
getBoundingPoints(cameraObj: Camera): Array.<BGE.Math.Vector>
Parameters
cameraObj(Camera)
Returns
Array.<BGE.Math.Vector>
getRegionWithIdToDraw(
rendererObj: BGE.Renderer,
): BGE.RendererHelpers.RegionWithId
Parameters
rendererObj(BGE.Renderer)
Returns
BGE.RendererHelpers.RegionWithId
needsManualPretranslationForDirectMode(): boolean
Returns
boolean
isEligibleForFastDrawCheck(
drawMode: SceneObjectDrawMode,
): boolean
Parameters
drawMode(SceneObjectDrawMode)
Returns
boolean
drawToCanvas(
rendererObj: BGE.Renderer,
drawMode: SceneObjectDrawMode,
): boolean
Parameters
rendererObj(BGE.Renderer)drawMode(SceneObjectDrawMode)
Returns
boolean
getOutlineCanvasPoints(): Array.<BGE.Math.Vector>
Returns
Array.<BGE.Math.Vector>