Methods
addBezierCurve
- addBezierCurve(p1: vec2, p2: vec2, p3: vec2, p4: vec2, col: vec4, thickness: number, numSegments?: number): void
-
Parameters
-
-
-
-
-
-
thickness: number
-
Optional numSegments: number
Returns void
addCircle
- addCircle(center: vec2, radius: number, col: vec4, numSegments?: number, thickness?: number): void
-
Parameters
-
-
radius: number
-
-
Optional numSegments: number
-
Optional thickness: number
Returns void
addCircleFilled
- addCircleFilled(center: vec2, radius: number, col: vec4, numSegments?: number): void
-
Parameters
-
-
radius: number
-
-
Optional numSegments: number
Returns void
addConvexPolyFilled
- addConvexPolyFilled(points: vec2[], col: vec4): void
addImage
-
Parameters
-
textureId: number
-
-
-
Optional uvMin: vec2
-
Optional uvMax: vec2
-
Optional col: vec4
Returns void
addImageQuad
-
Parameters
-
textureId: number
-
-
-
-
-
Optional uv1: vec2
-
Optional uv2: vec2
-
Optional uv3: vec2
-
Optional uv4: vec2
-
Optional col: vec4
Returns void
addImageRounded
-
Parameters
-
textureId: number
-
-
-
-
-
-
rounding: number
-
Returns void
addLine
- addLine(p1: vec2, p2: vec2, col: vec4, thickness?: number): void
-
Parameters
-
-
-
-
Optional thickness: number
Returns void
addNgon
- addNgon(center: vec2, radius: number, col: vec4, numSegments: number, thickness?: number): void
-
Parameters
-
-
radius: number
-
-
numSegments: number
-
Optional thickness: number
Returns void
addNgonFilled
- addNgonFilled(center: vec2, radius: number, col: vec4, numSegments: number): void
-
Parameters
-
-
radius: number
-
-
numSegments: number
Returns void
addPolyline
- addPolyline(points: vec2[], col: vec4, closed: boolean, thickness: number): void
-
Parameters
-
points: vec2[]
-
-
closed: boolean
-
thickness: number
Returns void
addQuad
-
Parameters
-
-
-
-
-
-
Optional thickness: number
Returns void
addRect
-
Parameters
-
-
-
-
Optional rounding: number
-
-
Optional thickness: number
Returns void
addRectFilled
-
Parameters
-
-
-
-
Optional rounding: number
-
Returns void
addRectFilledMultiColor
- addRectFilledMultiColor(pMin: vec2, pMax: vec2, colUprLeft: vec4, colUprRight: vec4, colBotRight: vec4, colBotLeft: vec4): void
addText
- addText(pos: vec2, col: vec4, text: string): void
addTextEx
- addTextEx(font: FontRef, fontSize: number, pos: vec2, col: vec4, text: string, wrapWidth?: number): void
-
Parameters
-
-
fontSize: number
-
-
-
text: string
-
Optional wrapWidth: number
Returns void
addTriangle
-
Parameters
-
-
-
-
-
Optional thickness: number
Returns void
pathArcTo
- pathArcTo(center: vec2, radius: number, aMin: number, aMax: number, numSegments?: number): void
-
Parameters
-
-
radius: number
-
aMin: number
-
aMax: number
-
Optional numSegments: number
Returns void
pathArcToFast
- pathArcToFast(center: vec2, radius: number, aMin12: number, aMax12: number): void
-
Parameters
-
-
radius: number
-
aMin12: number
-
aMax12: number
Returns void
pathBezierCurveTo
- pathBezierCurveTo(p2: vec2, p3: vec2, p4: vec2, numSegments?: number): void
-
Parameters
-
-
-
-
Optional numSegments: number
Returns void
pathFillConvex
- pathFillConvex(col: vec4): void
pathLineTo
- pathLineTo(pos: vec2): void
pathLineToMergeDuplicate
- pathLineToMergeDuplicate(pos: vec2): void
pathRect
-
Parameters
-
rectMin: vec2
-
rectMax: vec2
-
Optional rounding: number
-
Returns void
pathStroke
- pathStroke(col: vec4, closed: boolean, thickness?: number): void
-
Parameters
-
-
closed: boolean
-
Optional thickness: number
Returns void
pushClipRect
- pushClipRect(clipRectMin: vec2, clipRectMax: vec2, intersectWithCurrentClipRect?: boolean): void
-
Parameters
-
clipRectMin: vec2
-
clipRectMax: vec2
-
Optional intersectWithCurrentClipRect: boolean
Returns void
pushClipRectFullScreen
- pushClipRectFullScreen(): void
pushTextureId
- pushTextureId(textureId: number): void