→ index of project tkminnie

Module tkminnie

Synopsis: 

Functions

Classes


Description:
 

Function minAARange
Change anti-aliasing border radius.
Signature
minAARange(floatrange)
Arguments
floatrange–Anti-aliasing border radius (def=1.5)

See also (in group Attrib):  


See also (in group Element):  


See also (in group Path):  


See also (in group Draw):  


 
→ top of page
Function minArcTo
Add elliptic arc segment to current path
Signature
minArcTo(floatrx,
  floatry,
  floatrot,
  booleanbLargeArc,
  booleanbArcSweep,
  floatdstX,
  floatdstY 
  )  
Arguments
floatrx–Radius x
floatry–Radius y
floatrot–Rotation (radian measure)
booleanbLargeArc–Large arc flag
booleanbArcSweep–Arc sweep flag
floatdstX–Destination X (abs)
floatdstY–Destination Y (abs)

See also (in group Element):  


See also (in group Path):  


 
→ top of page
Function minBegin
Free paths, reset state and start new drawing.
Signature
minBegin()
Description

See also:  


See also (in group Drawable):  


See also (in group Path):  


 
→ top of page
Function minBeginImmediate
Begin new Immediate path definition.
Signature
minBeginImmediate()
Description

Graphics elements within immediate paths are rendered immediately, i.e. they do not require separate draw-path calls.
Immediate paths are particularly useful for graphics elements like UV-textured triangles and rectangles, which cannot be added to regular paths.

See also:  


See also (in group Path):  


See also (in group Immediate):  


 
→ top of page
Function minBeginPath
Begin new Even-Odd path definition
Signature
minBeginPath():int
Returns
int–Path id (1..n), or 0 when an error occured

See also:  


See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minBeginPathComplex
Begin new Even-Odd path definition
Signature
minBeginPathComplex():int
Returns
int–Path id (1..n), or 0 when an error occured

See also:  


See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minBeginPathConcave
Begin new Concave path definition
Signature
minBeginPathConcave():int
Returns
int–Path id (1..n), or 0 when an error occured

See also:  


See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minBeginPathConvex
Begin new Convex path definition
Signature
minBeginPathConvex():int
Returns
int–Path id (1..n), or 0 when an error occured

See also:  


See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minBeginPathEx
Begin new path definition.
Signature
minBeginPathEx(intpathType)
 :int
Arguments
Returns
int–Path id (1..n), or 0 when an error occured

See also:  


See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minBeginSub
Begin new Even-Odd sub-path definition
Signature
minBeginSub():int
Returns
int–Sub-path id (or 0 on error)

See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minBeginSubComplex
Begin new Even-Odd sub-path definition
Signature
minBeginSubComplex():int
Returns
int–Sub-path id (or 0 on error)

See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minBeginSubConcave
Begin new Concave sub-path definition
Signature
minBeginSubConcave():int
Returns
int–Sub-path id (0 on error)

See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minBeginSubConvex
Begin new Convex sub-path definition
Signature
minBeginSubConvex():int
Returns
int–Sub-path id (or 0 on error)

See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minBeginSubEx
Begin new sub-path definition.
Signature
minBeginSubEx(intpathType)
 :int
Arguments
intpathType–
Returns
int–Sub-path id (or 0 on error)
Description

Sub paths can e.g. be used to cut holes into the parent (even-odd type) path.

See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minBindTexture
Bind 2D texture.
Signature
minBindTexture(inttexId,
  booleanbRepeat,
  booleanbFilter 
  )  
Arguments
inttexId–OpenGL texture id
booleanbRepeat–true=repeat texture false=clamp to edge
booleanbFilter–true=enable bilinear filter false=use nearest neighbour sampling
Description

Applies to textured triangle, gradient/pattern paint, and rectangle draw calls.

See also (in group Texture):  


See also (in group Path):  


See also (in group Draw):  


See also (in group Immediate):  


 
→ top of page
Function minCap
Select line cap type (short form)
Signature
minCap(intcapType)
Arguments
intcapType–

See also (in group Attrib):  


See also (in group LineCap):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minCapButt
Select Butt line caps
Signature
minCapButt()

See also (in group Attrib):  


See also (in group LineCap):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minCapNone
Disable line caps
Signature
minCapNone()

See also (in group Attrib):  


See also (in group LineCap):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minCapRound
Select Round line caps
Signature
minCapRound()

See also (in group Attrib):  


See also (in group LineCap):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minCircle
Add circle segment to current path (cursor position denotes center)
Signature
minCircle()

See also:  


See also (in group Element):  


See also (in group Path):  


 
→ top of page
Function minColor
Set ARGB32 fill and stroke color for next path draw call
Signature
minColor()

See also (in group Attrib):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minColorFill
Set ARGB32 fill and stroke color for next path draw call
Signature
minColorFill()

See also (in group Attrib):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minColorStroke
Set ARGB32 stroke color for next path draw call
Signature
minColorStroke()

See also (in group Attrib):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minContextBind
Bind Minnie context.
Signature
minContextBind(Objectcontext)
Arguments
Objectcontext–Minnie context or NULL (default context)
Description

The context pointer is stored in a thread-local-storage (TLS) variable.

See also (in group Context):  


 
→ top of page
Function minContextCreate
Create new Minnie context.
Signature
minContextCreate():Object
Returns
Object–new Minnie context
Description

Contexts are used for building MinnieDrawable objects, *not* for rendering them.
 
An application may use worker threads to build drawables, then pass them to the main render thread.
 
Creating contexts is optional. A default (single-threaded) context is created when Minnie is initialized (StaticInit()).

See also (in group Context):  


 
→ top of page
Function minContextDestroy
Destroy Minnie context
Signature
minContextDestroy(Objectcontext)
Arguments
Objectcontext–Minnie context
Description

If the context to be destroyed is the current context, the default context will be bound.

See also (in group Context):  


 
→ top of page
Function minCubicMirrorTo
Add smoothed / mirrored cubic spline segment to current path.
Signature
minCubicMirrorTo(floatc2x,
  floatc2y,
  floatdstX,
  floatdstY 
  )  
Arguments
floatc2x–Control point 2 X (abs)
floatc2y–Control point 2 Y (abs)
floatdstX–Destination X (abs)
floatdstY–Destination Y (abs)
Description

The implicite control point 1 is calculated by mirroring the previous segment's control point 2.

See also:  


See also (in group Element):  


See also (in group Path):  


 
→ top of page
Function minCubicTo
Add cubic spline segment to current path
Signature
minCubicTo(floatc1x,
  floatc1y,
  floatc2x,
  floatc2y,
  floatdstX,
  floatdstY 
  )  
Arguments
floatc1x–Control point 1 X (abs)
floatc1y–Control point 1 Y (abs)
floatc2x–Control point 2 X (abs)
floatc2y–Control point 2 Y (abs)
floatdstX–Destination X (abs)
floatdstY–Destination Y (abs)

See also:  


See also (in group Element):  


See also (in group Path):  


 
→ top of page
Function minDebugPrintAllocStats
Debug-print allocation statistics to the console
Signature
minDebugPrintAllocStats()

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minDebugPrintPathStats
Debug-print path statistics to the console
Signature
minDebugPrintPathStats()

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minDecalAlpha
Select alpha for 'decal' textured triangle and line strip draw calls
Signature
minDecalAlpha(floatdecalAlpha)
Arguments
floatdecalAlpha–

See also (in group Texture):  


See also (in group Path):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minDrawPath
Draw previously defined path
Signature
minDrawPath(intpathId)
Arguments
intpathId–Path id (1..n)

See also (in group Draw):  


See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minEllipse
Add ellipse segment to current path (cursor position denotes center)
Signature
minEllipse(floatrx,
  floatry 
  )  
Arguments
floatrx–Radius x
floatry–Radius y

See also:  


See also (in group Element):  


See also (in group Path):  


 
→ top of page
Function minEnd
End drawing.
Signature
minEnd()
Description

Called by MinnieDrawable.end() and minParseBuffer() (0xE0 end op).

See also:  


See also (in group Drawable):  


See also (in group Path):  


 
→ top of page
Function minEndImmediate
End Immediate path definition
Signature
minEndImmediate()

See also (in group Path):  


See also (in group Immediate):  


 
→ top of page
Function minEndPath
End path definition
Signature
minEndPath(booleanbClosed)
Arguments
booleanbClosed–

See also (in group Path):  


 
→ top of page
Function minEndPathClosed
End path definition and close path (connect last to first, e.g. polygons)
Signature
minEndPathClosed()

See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minEndPathOpen
End path definition and keep path open (e.g. polylines)
Signature
minEndPathOpen()

See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minEndSub
End sub-path definition
Signature
minEndSub(booleanbClosed)
Arguments
booleanbClosed–

See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minEndSubClosed
End sub-path definition and close sub-path (connect last to first)
Signature
minEndSubClosed()

See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minEndSubOpen
End sub-path definition and keep sub-path open
Signature
minEndSubOpen()

See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minExecDrawList
Execute draw-list
Signature
minExecDrawList(BufferbufDraw,
  intglBufId 
  )  
Arguments
BufferbufDraw–Draw-list buffer (offset determines size) (in system RAM)
intglBufId–Vertex buffer id (in video RAM)

See also (in group Draw):  


 
→ top of page
Function minExecDrawListEx
Execute draw-list
Signature
minExecDrawListEx(BufferbufDraw,
  intglBufId,
  booleanbDebug 
  )  
Arguments
BufferbufDraw–Draw-list buffer (offset determines size) (in system RAM)
intglBufId–Vertex buffer id (in video RAM)
booleanbDebug–true=print draw command statistics

See also (in group Draw):  


 
→ top of page
Function minFill
Select fill mode for next path draw call
Signature
minFill()

See also (in group Attrib):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minFillRuleEvenOdd
Select even-odd fill rule
Signature
minFillRuleEvenOdd()

See also (in group Attrib):  


See also (in group Element):  


See also (in group Path):  


See also (in group Draw):  


 
→ top of page
Function minFillRuleNonZero
Select non-zero fill rule
Signature
minFillRuleNonZero()

See also (in group Attrib):  


See also (in group Element):  


See also (in group Path):  


See also (in group Draw):  


 
→ top of page
Function minFreeDynamic
Free dynamically allocated memory (paths)
Signature
minFreeDynamic()

See also:  


See also (in group Drawable):  


 
→ top of page
Function minFreePath
Free previously defined path
Signature
minFreePath(intpathId)
Arguments
intpathId–Path id (1..n)

See also (in group Draw):  


See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minGetColorByIndex
Get ARGB32 color from current palette.
Signature
minGetColorByIndex(intidx)
 :int
Arguments
intidx–
Returns
int–
Description

Can e.g. be used to query the background color of an imported SVG object.

See also (in group Drawable):  


 
→ top of page
Function minGetEnableEdgeAA
Query edge AA triangle rendering enable-state (experimental)
Signature
minGetEnableEdgeAA():boolean
Returns
boolean–

See also:  


See also (in group Config):  


 
→ top of page
Function minGetEnableForceComplexConcave
Query concave-polygons-via-concave-code-path enable-state
Signature
minGetEnableForceComplexConcave():boolean
Returns
boolean–

See also:  


See also (in group Config):  


 
→ top of page
Function minGetEnableForceConcaveComplex
Query concave-polygons-via-even-odd-code-path enable-state
Signature
minGetEnableForceConcaveComplex():boolean
Returns
boolean–

See also:  


See also (in group Config):  


 
→ top of page
Function minGetEnableMultiPathHWPolygons
Query GPU-accelerated-filled-multipath-polygons enable-state.
Signature
minGetEnableMultiPathHWPolygons():boolean
Returns
boolean–

See also:  


See also (in group Config):  


 
→ top of page
Function minGetEnablePolygonAA
Query antialiased-polygons enable-state.
Signature
minGetEnablePolygonAA():boolean
Returns
boolean–

See also:  


See also (in group Config):  


 
→ top of page
Function minGetEnableRenderFillComplex
Query even-odd path rendering enable-state (debug)
Signature
minGetEnableRenderFillComplex():boolean
Returns
boolean–

See also (in group Config):  


See also (in group Debug):  


 
→ top of page
Function minGetEnableRenderFillConcave
Query concave path rendering enable-state (debug)
Signature
minGetEnableRenderFillConcave():boolean
Returns
boolean–

See also (in group Config):  


See also (in group Debug):  


 
→ top of page
Function minGetEnableRenderJoinCap
Query line join and cap enable-state (debug)
Signature
minGetEnableRenderJoinCap():boolean
Returns
boolean–

See also (in group Config):  


See also (in group Debug):  


 
→ top of page
Function minGetEnableRenderStrokes
Query stroked path rendering enable-state (debug)
Signature
minGetEnableRenderStrokes():boolean
Returns
boolean–

See also (in group Config):  


See also (in group Debug):  


 
→ top of page
Function minGetEnableTesselateConcave
Query concave polygon software tesselation enable-state
Signature
minGetEnableTesselateConcave():boolean
Returns
boolean–

See also:  


See also (in group Config):  


 
→ top of page
Function minGetEnableUniformColors
Query uniform-colors enable-state.
Signature
minGetEnableUniformColors():boolean
Returns
boolean–

See also:  


See also (in group Config):  


 
→ top of page
Function minGetHeight
Get canvas height (pixels)
Signature
minGetHeight():int
Returns
int–

See also (in group Drawable):  


 
→ top of page
Function minGetStrokeWLineJoinThreshold
Query line-join-auto-disable threshold.
Signature
minGetStrokeWLineJoinThreshold():float
Returns
float–

See also:  


See also (in group Config):  


 
→ top of page
Function minGetStrokeWLineStripThreshold
Query line stroke width software tesselation threshold
Signature
minGetStrokeWLineStripThreshold():float
Returns
float–

See also:  


See also (in group Config):  


 
→ top of page
Function minGetSwTesselateSizeThreshold
Query software tesselation polygon bounding box area threshold.
Signature
minGetSwTesselateSizeThreshold():int
Returns
int–

See also:  


See also (in group Config):  


 
→ top of page
Function minGetTotalNumEllipses
Query total number of ellipses and circles (debug)
Signature
minGetTotalNumEllipses():int
Returns
int–

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minGetTotalNumLines
Query total number of lines (debug)
Signature
minGetTotalNumLines():int
Returns
int–

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minGetTotalNumLineStrips
Query total number of line strips (debug)
Signature
minGetTotalNumLineStrips():int
Returns
int–

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minGetTotalNumPoints
Query total number of points (debug)
Signature
minGetTotalNumPoints():int
Returns
int–

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minGetTotalNumRects
Query total number of rectangles (debug)
Signature
minGetTotalNumRects():int
Returns
int–

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minGetTotalNumTris
Query total number of triangles (debug)
Signature
minGetTotalNumTris():int
Returns
int–

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minGetTotalNumTrisTex
Query total number of textured triangles (debug)
Signature
minGetTotalNumTrisTex():int
Returns
int–

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minGetWidth
Get canvas width (pixels)
Signature
minGetWidth():int
Returns
int–

See also (in group Drawable):  


 
→ top of page
Function minInitScratchBuffers
Initialize scratchbuffer or calculate required scratch buffer memory.
Signature
minInitScratchBuffers(Bufferbuf,
  intdefPointsPerPath,
  intmaxPointsPerPath,
  intmaxClippedPointsPerPath,
  intmaxExtrudedVerticesPerPath,
  intmaxClippedTrisPerPath 
  )  
 :int
Arguments
Bufferbuf–
intdefPointsPerPath–Typical number of control points per path
intmaxPointsPerPath–Maximum number of control points per path
intmaxClippedPointsPerPath–Maximum number of clipped points per path
intmaxExtrudedVerticesPerPath–Maximum number of extruded (line-)vertices per path
intmaxClippedTrisPerPath–Maximum number of clipped triangles per path
Returns
int–

 
→ top of page
Function minIsEdgeAA
experimental
Signature
minIsEdgeAA():boolean
Returns
boolean–

See also (in group Config):  


 
→ top of page
Function minIsEdgeAAScaleFix16
experimental
Signature
minIsEdgeAAScaleFix16():boolean
Returns
boolean–

See also (in group Config):  


 
→ top of page
Function minIsVertexFix16
Query whether 14:2 fixed point vertex attribute mode was enabled at compile time
Signature
minIsVertexFix16():boolean
Returns
boolean–

See also (in group Config):  


 
→ top of page
Function minJoin
Select line joint type (short form)
Signature
minJoin(intjoinType)
Arguments
intjoinType–

See also (in group Attrib):  


See also (in group LineJoint):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minJoinBevel
Select Bevel line joints
Signature
minJoinBevel()

See also (in group Attrib):  


See also (in group LineJoint):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minJoinCap
Set line joint and cap type (short form).
Signature
minJoinCap(intjoinCap)
Arguments
intjoinCap–

See also (in group Attrib):  


See also (in group LineJoint):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minJoinMiter
Select Miter line joints
Signature
minJoinMiter()

See also (in group Attrib):  


See also (in group LineJoint):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minJoinNone
Disable line joints
Signature
minJoinNone()

See also (in group Attrib):  


See also (in group LineJoint):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minJoinRound
Select Round line joints
Signature
minJoinRound()

See also (in group Attrib):  


See also (in group LineJoint):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minLinePattern
Set line pattern
Signature
minLinePattern(intpatternLen,
  intpatternBits,
  floatpatternScale,
  floatpatternOffset,
  booleanbDecal 
  )  
Arguments
intpatternLen–Pattern length (num bits) (7,8,14,16,28,32) (0=off)
intpatternBits–Pattern bits
floatpatternScale–Line pattern scaling (1: 1:1 pixel mapping, >1: stretch)
floatpatternOffset–Line pattern offset (0..1, applied after scaling)
booleanbDecal–1=render cleared linepattern bits with fill color, and set bits with stroke color (the line pattern is crossfaded with the current fill color according to minDecalAlpha()). 0=render cleared bits as transparent

See also (in group Texture):  


 
→ top of page
Function minLineTo
Add line segment to current path
Signature
minLineTo(floatdstX,
  floatdstY 
  )  
Arguments
floatdstX–Destination X (abs)
floatdstY–Destination Y (abs)

See also (in group Element):  


See also (in group Path):  


 
→ top of page
Function minMiterLimit
Set miter limit.
Signature
minMiterLimit(floatl)
Arguments
floatl–
Description

When the miter line joint distance exceeds the miter limit, a bevel line joint will be rendered instead.

See also (in group Attrib):  


See also (in group Element):  


See also (in group Draw):  


 
→ top of page
Function minMoveTo
Move path cursor to absolute position
Signature
minMoveTo(floatx,
  floaty 
  )  
Arguments
floatx–X position (abs)
floaty–Y position (abs)

See also (in group Element):  


See also (in group Path):  


 
→ top of page
Function minOnOpen
Handle framebuffer resize / GL context lost
Signature
minOnOpen()

See also (in group Draw):  


 
→ top of page
Function minPaint
Select custom paint for subsequent draw calls
Signature
minPaint()

See also (in group Paint):  


See also (in group Texture):  


 
→ top of page
Function minPaintConic
Set active paint to conic gradient
Signature
minPaintConic(floatstartX,
  floatstartY,
  floatradiusX,
  floatradiusY,
  floatangle01 
  )  
Arguments
floatstartX–Paint origin X
floatstartY–Paint origin Y
floatradiusX–Paint scaling X
floatradiusY–Paint scaling Y
floatangle01–Normalized rotation angle (0..1)
Description

The currently bound texture (n x 1) is used as a gradient table.

See also (in group Paint):  


See also (in group Texture):  


 
→ top of page
Function minPaintCreate
Create new paint and return paint id
Signature
minPaintCreate():int
Returns
int–new paint id, or 0 if paint could not be created.

See also (in group Paint):  


 
→ top of page
Function minPaintDefault
Select default solid paint
Signature
minPaintDefault()

See also (in group Paint):  


See also (in group Texture):  


 
→ top of page
Function minPaintLinear
Set active paint to linear gradient
Signature
minPaintLinear(floatstartX,
  floatstartY,
  floatdirX,
  floatdirY 
  )  
Arguments
floatstartX–Paint origin X
floatstartY–Paint origin Y
floatdirX–Paint direction and scaling X
floatdirY–Paint direction and scaling Y
Description

The currently bound texture (n x 1) is used as a gradient table.

See also (in group Paint):  


See also (in group Texture):  


 
→ top of page
Function minPaintPattern
Set active paint to pattern
Signature
minPaintPattern(floatstartX,
  floatstartY,
  floatdirX,
  floatdirY,
  floatsizeX,
  floatsizeY 
  )  
Arguments
floatstartX–Paint origin X
floatstartY–Paint origin Y
floatdirX–Paint direction X
floatdirY–Paint direction Y
floatsizeX–Paint scaling X
floatsizeY–Paint scaling Y
Description

The currently bound texture (n x 1) is used as pattern.

See also (in group Paint):  


See also (in group Texture):  


 
→ top of page
Function minPaintPatternAlpha
Set active paint to pattern (alpha channel only)
Signature
minPaintPatternAlpha(floatstartX,
  floatstartY,
  floatdirX,
  floatdirY,
  floatsizeX,
  floatsizeY 
  )  
Arguments
floatstartX–Paint origin X
floatstartY–Paint origin Y
floatdirX–Paint direction X
floatdirY–Paint direction Y
floatsizeX–Paint scaling X
floatsizeY–Paint scaling Y
Description

The currently bound texture (n x 1) is used as alpha channel pattern.

See also (in group Paint):  


See also (in group Texture):  


 
→ top of page
Function minPaintPatternDecal
Set active paint to decal pattern
Signature
minPaintPatternDecal(floatstartX,
  floatstartY,
  floatdirX,
  floatdirY,
  floatsizeX,
  floatsizeY 
  )  
Arguments
floatstartX–Paint origin X
floatstartY–Paint origin Y
floatdirX–Paint direction X
floatdirY–Paint direction Y
floatsizeX–Paint scaling X
floatsizeY–Paint scaling Y
Description

The currently bound texture (n x 1) is used as pattern.
The final color is a mix between the fill color rgb and (stroke color rgb modulated by the pattern rgb).The mix factor is the product of the stroke color alpha, pattern alpha, and the minDecalAlpha() setting.I.e. this blends a stroke-color-modulated pattern texture against a constant fill color in a single render pass.
The output alpha channel is set to the fill color alpha.

See also (in group Paint):  


See also (in group Texture):  


 
→ top of page
Function minPaintPatternDecal
Set active paint to alpha decal pattern
Signature
minPaintPatternDecal(floatstartX,
  floatstartY,
  floatdirX,
  floatdirY,
  floatsizeX,
  floatsizeY 
  )  
Arguments
floatstartX–Paint origin X
floatstartY–Paint origin Y
floatdirX–Paint direction X
floatdirY–Paint direction Y
floatsizeX–Paint scaling X
floatsizeY–Paint scaling Y
Description

The currently bound texture (n x 1) is used as pattern.
The final color is a mix between the fill color rgb and stroke color rgb.The mix factor is the product of the stroke color alpha, pattern alpha, and the minDecalAlpha() setting.I.e. this blends the stroke color(alpha=1) against the fill color(alpha=0) in a single render pass.
The output alpha channel is set to the fill color alpha.

See also (in group Paint):  


See also (in group Texture):  


 
→ top of page
Function minPaintRadial
Set active paint to radial gradient
Signature
minPaintRadial(floatstartX,
  floatstartY,
  floatradiusX,
  floatradiusY 
  )  
Arguments
floatstartX–Paint origin X
floatstartY–Paint origin Y
floatradiusX–Paint radius X
floatradiusY–Paint radius Y
Description

The currently bound texture (n x 1) is used as a gradient table.

See also (in group Paint):  


See also (in group Texture):  


 
→ top of page
Function minPaintSolid
Set active paint to solid fill (debug)
Signature
minPaintSolid()
Description

Note: minPaintDefault() should be used to select the solid paint mode

See also (in group Paint):  


 
→ top of page
Function minPaintUpdate
Select custom paint for subsequent paint attribute calls.
Signature
minPaintUpdate(intpaintId)
Arguments
intpaintId–Id of previously created paint (see minPaintCreate())
Description

After changing the paint attributes, call minPaint() to reselect the updated paint for subsequent draw calls.

See also (in group Paint):  


See also (in group Texture):  


 
→ top of page
Function minParseBuffer
Parse MIB stream.
Signature
minParseBuffer(Bufferbuf)
 :boolean
Arguments
Bufferbuf–File or Buffer stream
Returns
boolean–
Description

The MIB data can either be generated by the application, or be converted from e.g. an SVG file via an offline preprocessor.
Calls minBegin().

See also (in group Drawable):  


 
→ top of page
Function minRect
Add rectangle segment to current path (cursor position denotes left / top corner)
Signature
minRect(floatw,
  floath 
  )  
Arguments
floatw–Width
floath–Height

See also:  


See also (in group Element):  


See also (in group Path):  


 
→ top of page
Function minRectTexUVFlat
Draw a texture mapped rectangle
Signature
minRectTexUVFlat(floatx,
  floaty,
  floatw,
  floath,
  floatul,
  floatvt,
  floatur,
  floatvb 
  )  
Arguments
floatx–X position
floaty–Y position
floatw–Width
floath–Height
floatul–Left u texture coordinate
floatvt–Top v texture coordinate
floatur–Right u texture coordinate
floatvb–Bottom v texture coordinate
Description

Multiple consecutive draw calls will be merged automatically.

See also (in group Immediate):  


See also (in group Path):  


See also (in group Draw):  


See also (in group Texture):  


 
→ top of page
Function minRectTexUVFlatDecal
Draw a texture mapped rectangle. The texture is crossfaded with the current fill color according to minDecalAlpha().
Signature
minRectTexUVFlatDecal(floatx,
  floaty,
  floatw,
  floath,
  floatul,
  floatvt,
  floatur,
  floatvb 
  )  
Arguments
floatx–X position
floaty–Y position
floatw–Width
floath–Height
floatul–Left u texture coordinate
floatvt–Top v texture coordinate
floatur–Right u texture coordinate
floatvb–Bottom v texture coordinate
Description

Multiple consecutive draw calls will be merged automatically.

See also (in group Immediate):  


See also (in group Path):  


See also (in group Draw):  


See also (in group Texture):  


 
→ top of page
Function minRectTexUVGouraud
Draw a texture mapped, gouraud shaded rectangle.
Signature
minRectTexUVGouraud(floatx,
  floaty,
  floatw,
  floath,
  floatul,
  floatvt,
  floatur,
  floatvb,
  intc32lt,
  intc32rt,
  intc32rb,
  intc32lb 
  )  
Arguments
floatx–X position
floaty–Y position
floatw–Width
floath–Height
floatul–Left u texture coordinate
floatvt–Top v texture coordinate
floatur–Right u texture coordinate
floatvb–Bottom v texture coordinate
intc32lt–Left/Top ARGB32 color
intc32rt–Right/Top ARGB32 color
intc32rb–Right/Bottom ARGB32 color
intc32lb–Left/Bottom ARGB32 color
Description

Multiple consecutive draw calls will be merged automatically.

See also (in group Immediate):  


See also (in group Path):  


See also (in group Draw):  


See also (in group Texture):  


 
→ top of page
Function minRectTexUVGouraudDecal
Draw a texture mapped, gouraud shaded rectangle. The texture is crossfaded with the current fill color according to minDecalAlpha().
Signature
minRectTexUVGouraudDecal(floatx,
  floaty,
  floatw,
  floath,
  floatul,
  floatvt,
  floatur,
  floatvb,
  intc32lt,
  intc32rt,
  intc32rb,
  intc32lb 
  )  
Arguments
floatx–X position
floaty–Y position
floatw–Width
floath–Height
floatul–Left u texture coordinate
floatvt–Top v texture coordinate
floatur–Right u texture coordinate
floatvb–Bottom v texture coordinate
intc32lt–Left/Top ARGB32 color
intc32rt–Right/Top ARGB32 color
intc32rb–Right/Bottom ARGB32 color
intc32lb–Left/Bottom ARGB32 color
Description

Multiple consecutive draw calls will be merged automatically.

See also (in group Immediate):  


See also (in group Path):  


See also (in group Draw):  


See also (in group Texture):  


 
→ top of page
Function minResetAllocStats
Reset allocation debug statistics
Signature
minResetAllocStats()

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minRoundRect
Add rounded rectangle segment to current path (cursor position denotes left / top corner).
Signature
minRoundRect(floatw,
  floath,
  floatrx,
  floatry 
  )  
Arguments
floatw–Width
floath–Height
floatrx–Corner radius x
floatry–Corner radius y

See also:  


See also (in group Element):  


See also (in group Path):  


 
→ top of page
Function minSeg
Set number of subdivisions for next bezier curve / arc path segments
Signature
minSeg(intnumSeg)
Arguments
intnumSeg–

See also (in group Element):  


See also (in group Path):  


See also (in group Attrib):  


 
→ top of page
Function minSetDrawListExportOFS
Set draw list output stream.
Signature
minSetDrawListExportOFS(Streamofs)
Arguments
Streamofs–Output stream (usually a Buffer)

See also:  


See also (in group IO):  


 
→ top of page
Function minSetEnableDraw
Enable or disable path drawing (debug)
Signature
minSetEnableDraw(booleanbEnable)
Arguments
booleanbEnable–

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minSetEnableDrawSW
Enable or disable software rasterizer (debug)
Signature
minSetEnableDrawSW(booleanbEnable)
Arguments
booleanbEnable–

See also (in group Debug):  


See also (in group Config):  


 
→ top of page
Function minSetEnableEdgeAA
Enable or disable edge AA triangle rendering (experimental)
Signature
minSetEnableEdgeAA(booleanbEnable)
Arguments
booleanbEnable–

See also:  


See also (in group Config):  


 
→ top of page
Function minSetEnableForceComplexConcave
Force enve-odd polygons to be rendered using the concave code paths
Signature
minSetEnableForceComplexConcave(booleanbEnable)
Arguments
booleanbEnable–

See also:  


See also (in group Config):  


 
→ top of page
Function minSetEnableForceConcaveComplex
Force concave polygons to be rendered using the even-odd code paths
Signature
minSetEnableForceConcaveComplex(booleanbEnable)
Arguments
booleanbEnable–

See also:  


See also (in group Config):  


 
→ top of page
Function minSetEnableMultiPathHWPolygons
Enable or disable GPU-accelerated filled multipath polygons.
Signature
minSetEnableMultiPathHWPolygons(booleanbEnable)
Arguments
booleanbEnable–

See also:  


See also (in group Config):  


 
→ top of page
Function minSetEnablePolygonAA
Enable or disable anti-aliased polygons.
Signature
minSetEnablePolygonAA(booleanbEnable)
Arguments
booleanbEnable–

See also:  


See also (in group Config):  


 
→ top of page
Function minSetEnableRenderFillComplex
Enable or disable even-odd path rendering (debug)
Signature
minSetEnableRenderFillComplex(booleanbEnable)
Arguments
booleanbEnable–

See also (in group Config):  


See also (in group Debug):  


 
→ top of page
Function minSetEnableRenderFillConcave
Enable or disable concave path rendering (debug)
Signature
minSetEnableRenderFillConcave(booleanbEnable)
Arguments
booleanbEnable–

See also (in group Config):  


See also (in group Debug):  


 
→ top of page
Function minSetEnableRenderJoinCap
Enable or disable line joints and caps (debug)
Signature
minSetEnableRenderJoinCap(booleanbEnable)
Arguments
booleanbEnable–

See also (in group Config):  


See also (in group Debug):  


 
→ top of page
Function minSetEnableRenderStrokes
Enable or disable stroked path rendering (debug)
Signature
minSetEnableRenderStrokes(booleanbEnable)
Arguments
booleanbEnable–

See also (in group Config):  


See also (in group Debug):  


 
→ top of page
Function minSetEnableTesselateConcave
Enable or disable concave polygon software tesselation (false=use HW accelerated polygons)
Signature
minSetEnableTesselateConcave(booleanbEnable)
Arguments
booleanbEnable–

See also:  


See also (in group Config):  


 
→ top of page
Function minSetEnableUniformColors
Enable or disable uniform colors.
Signature
minSetEnableUniformColors(booleanbEnable)
Arguments
booleanbEnable–
Description

When enabled, colors are passed via shader uniforms (constant for the duration of a draw call, decreases memory usage).When disabled, colors are passed via shader attributes, which allows multiple (triangle) draw calls to be merged (but increases memory usage).

See also:  


See also (in group Config):  


 
→ top of page
Function minSetFramebufferOverride
Override framebuffer geometry and storage. Only applies to SW render mode.
Signature
minSetFramebufferOverride(intfbIdx,
  Texturetex,
  intw,
  inth,
  intpitch 
  )  
 :boolean
Arguments
intfbIdx–
Texturetex–
intw–
inth–
intpitch–
Returns
boolean–

See also (in group Drawable):  


 
→ top of page
Function minSetGeoScale2f
Set geometry scaling
Signature
minSetGeoScale2f(floatsx,
  floatsy 
  )  
Arguments
floatsx–Horizontal scaling
floatsy–Vertical scaling
Description

Applied when path is drawn.

See also (in group Draw):  


See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minSetStrokeOffset
Set stroke width offset. Applied to next path draw calls.
Signature
minSetStrokeOffset(floatoffset)
Arguments
floatoffset–

See also (in group Config):  


See also (in group Attrib):  


 
→ top of page
Function minSetStrokeScale
Set stroke width scaling factor. Applied to next path draw calls.
Signature
minSetStrokeScale(floatscale)
Arguments
floatscale–

See also (in group Config):  


See also (in group Attrib):  


 
→ top of page
Function minSetStrokeWLineJoinThreshold
Set stroke width line-join-auto-disable threshold.
Signature
minSetStrokeWLineJoinThreshold(floatthreshold)
Arguments
floatthreshold–
Description

Allows line joints to be disabled for narrow lines.

See also:  


See also (in group Config):  


 
→ top of page
Function minSetStrokeWLineStripThreshold
Set line stroke width software tesselation threshold (999999=disable SW tesselation).
Signature
minSetStrokeWLineStripThreshold(floatthreshold)
Arguments
floatthreshold–
Description

Fall back to software tesselation if the stroke width exceeds the thresold.

See also:  


See also (in group Config):  


 
→ top of page
Function minSetSwTesselateSizeThreshold
Bounding box area threshold for polygon software tesselation. 0=disable SW tesselation
Signature
minSetSwTesselateSizeThreshold(intsizeThreshold)
Arguments
intsizeThreshold–

See also:  


See also (in group Config):  


 
→ top of page
Function minSetVertexBufferExportOFS
Set vertex attribute output stream.
Signature
minSetVertexBufferExportOFS(Streamofs)
Arguments
Streamofs–Output stream (usually a Buffer)

See also:  


See also (in group IO):  


 
→ top of page
Function minStrokeWidth
Set line stroke width.
Signature
minStrokeWidth(floatw)
Arguments
floatw–
Description

The total line width is w and the stroke radius is (0.5 * w).

See also (in group Attrib):  


See also (in group Path):  


See also (in group Element):  


 
→ top of page
Function minTriangleTexUVFlat
Draw a texture mapped triangle.
Signature
minTriangleTexUVFlat(floatx1,
  floaty1,
  floatu1,
  floatv1,
  floatx2,
  floaty2,
  floatu2,
  floatv2,
  floatx3,
  floaty3,
  floatu3,
  floatv3 
  )  
Arguments
floatx1–Vertex 1 x
floaty1–Vertex 1 y
floatu1–Vertex 1 u texture coordinate (0..1)
floatv1–Vertex 1 v texture coordinate (0..1)
floatx2–Vertex 2 x
floaty2–Vertex 2 y
floatu2–Vertex 2 u texture coordinate (0..1)
floatv2–Vertex 2 v texture coordinate (0..1)
floatx3–Vertex 3 x
floaty3–Vertex 3 y
floatu3–Vertex 3 u texture coordinate (0..1)
floatv3–Vertex 3 v texture coordinate (0..1)
Description

Multiple consecutive draw calls will be merged automatically.

See also (in group Immediate):  


See also (in group Path):  


See also (in group Draw):  


See also (in group Texture):  


 
→ top of page
Function minTriangleTexUVFlatDecal
Draw a texture mapped triangle. The texture is crossfaded with the current fill color according to minDecalAlpha().
Signature
minTriangleTexUVFlatDecal(floatx1,
  floaty1,
  floatu1,
  floatv1,
  floatx2,
  floaty2,
  floatu2,
  floatv2,
  floatx3,
  floaty3,
  floatu3,
  floatv3 
  )  
Arguments
floatx1–Vertex 1 x
floaty1–Vertex 1 y
floatu1–Vertex 1 u texture coordinate (0..1)
floatv1–Vertex 1 v texture coordinate (0..1)
floatx2–Vertex 2 x
floaty2–Vertex 2 y
floatu2–Vertex 2 u texture coordinate (0..1)
floatv2–Vertex 2 v texture coordinate (0..1)
floatx3–Vertex 3 x
floaty3–Vertex 3 y
floatu3–Vertex 3 u texture coordinate (0..1)
floatv3–Vertex 3 v texture coordinate (0..1)
Description

Multiple consecutive draw calls will be merged automatically.

See also (in group Immediate):  


See also (in group Path):  


See also (in group Draw):  


See also (in group Texture):  


 
→ top of page
Function minTriangleTexUVGouraud
Draw a texture mapped, gouraud shaded triangle.
Signature
minTriangleTexUVGouraud(floatx1,
  floaty1,
  floatu1,
  floatv1,
  intc32v1,
  floatx2,
  floaty2,
  floatu2,
  floatv2,
  intc32v2,
  floatx3,
  floaty3,
  floatu3,
  floatv3,
  intc32v3 
  )  
Arguments
floatx1–Vertex 1 x
floaty1–Vertex 1 y
floatu1–Vertex 1 u texture coordinate (0..1)
floatv1–Vertex 1 v texture coordinate (0..1)
intc32v1–Vertex 1 ARGB32 color
floatx2–Vertex 2 x
floaty2–Vertex 2 y
floatu2–Vertex 2 u texture coordinate (0..1)
floatv2–Vertex 2 v texture coordinate (0..1)
intc32v2–Vertex 2 ARGB32 color
floatx3–Vertex 3 x
floaty3–Vertex 3 y
floatu3–Vertex 3 u texture coordinate (0..1)
floatv3–Vertex 3 v texture coordinate (0..1)
intc32v3–Vertex 3 ARGB32 color
Description

Multiple consecutive draw calls will be merged automatically.

See also (in group Immediate):  


See also (in group Path):  


See also (in group Draw):  


See also (in group Texture):  


 
→ top of page
Function minTriangleTexUVGouraudDecal
Draw a texture mapped, gouraud shaded triangle. The texture is crossfaded with the current fill color according to minDecalAlpha().
Signature
minTriangleTexUVGouraudDecal(floatx1,
  floaty1,
  floatu1,
  floatv1,
  intc32v1,
  floatx2,
  floaty2,
  floatu2,
  floatv2,
  intc32v2,
  floatx3,
  floaty3,
  floatu3,
  floatv3,
  intc32v3 
  )  
Arguments
floatx1–Vertex 1 x
floaty1–Vertex 1 y
floatu1–Vertex 1 u texture coordinate (0..1)
floatv1–Vertex 1 v texture coordinate (0..1)
intc32v1–Vertex 1 ARGB32 color
floatx2–Vertex 2 x
floaty2–Vertex 2 y
floatu2–Vertex 2 u texture coordinate (0..1)
floatv2–Vertex 2 v texture coordinate (0..1)
intc32v2–Vertex 2 ARGB32 color
floatx3–Vertex 3 x
floaty3–Vertex 3 y
floatu3–Vertex 3 u texture coordinate (0..1)
floatv3–Vertex 3 v texture coordinate (0..1)
intc32v3–Vertex 3 ARGB32 color
Description

Multiple consecutive draw calls will be merged automatically.

See also (in group Immediate):  


See also (in group Path):  


See also (in group Draw):  


See also (in group Texture):  


 
→ top of page
Function minUnbindTexture
Unbind texture
Signature
minUnbindTexture()

See also:  


See also (in group Texture):  


See also (in group Path):  


See also (in group Draw):  


See also (in group Immediate):  


 
→ top of page

Project Modules:tkminnie 
Project Classes:MinnieDrawable , MinnieSetup 
Project Functions:minAARange , minArcTo , minBegin , minBeginImmediate , minBeginPath , minBeginPathComplex , minBeginPathConcave , minBeginPathConvex , minBeginPathEx , minBeginSub , minBeginSubComplex , minBeginSubConcave , minBeginSubConvex , minBeginSubEx , minBindTexture , minCap , minCapButt , minCapNone , minCapRound , minCircle , minColor , minColorFill , minColorStroke , minContextBind , minContextCreate , minContextDestroy , minCubicMirrorTo , minCubicTo , minDebugPrintAllocStats , minDebugPrintPathStats , minDecalAlpha , minDrawPath , minEllipse , minEnd , minEndImmediate , minEndPath , minEndPathClosed , minEndPathOpen , minEndSub , minEndSubClosed , minEndSubOpen , minExecDrawList , minExecDrawListEx , minFill , minFillRuleEvenOdd , minFillRuleNonZero , minFreeDynamic , minFreePath , minGetColorByIndex , minGetEnableEdgeAA , minGetEnableForceComplexConcave , minGetEnableForceConcaveComplex , minGetEnableMultiPathHWPolygons , minGetEnablePolygonAA , minGetEnableRenderFillComplex , minGetEnableRenderFillConcave , minGetEnableRenderJoinCap , minGetEnableRenderStrokes , minGetEnableTesselateConcave , minGetEnableUniformColors , minGetHeight , minGetStrokeWLineJoinThreshold , minGetStrokeWLineStripThreshold , minGetSwTesselateSizeThreshold , minGetTotalNumEllipses , minGetTotalNumLines , minGetTotalNumLineStrips , minGetTotalNumPoints , minGetTotalNumRects , minGetTotalNumTris , minGetTotalNumTrisTex , minGetWidth , minInitScratchBuffers , minIsEdgeAA , minIsEdgeAAScaleFix16 , minIsVertexFix16 , minJoin , minJoinBevel , minJoinCap , minJoinMiter , minJoinNone , minJoinRound , minLinePattern , minLineTo , minMiterLimit , minMoveTo , minOnOpen , minPaint , minPaintConic , minPaintCreate , minPaintDefault , minPaintLinear , minPaintPattern , minPaintPatternAlpha , minPaintPatternDecal , minPaintPatternDecal , minPaintRadial , minPaintSolid , minPaintUpdate , minParseBuffer , minRect , minRectTexUVFlat , minRectTexUVFlatDecal , minRectTexUVGouraud , minRectTexUVGouraudDecal , minResetAllocStats , minRoundRect , minSeg , minSetDrawListExportOFS , minSetEnableDraw , minSetEnableDrawSW , minSetEnableEdgeAA , minSetEnableForceComplexConcave , minSetEnableForceConcaveComplex , minSetEnableMultiPathHWPolygons , minSetEnablePolygonAA , minSetEnableRenderFillComplex , minSetEnableRenderFillConcave , minSetEnableRenderJoinCap , minSetEnableRenderStrokes , minSetEnableTesselateConcave , minSetEnableUniformColors , minSetFramebufferOverride , minSetGeoScale2f , minSetStrokeOffset , minSetStrokeScale , minSetStrokeWLineJoinThreshold , minSetStrokeWLineStripThreshold , minSetSwTesselateSizeThreshold , minSetVertexBufferExportOFS , minStrokeWidth , minTriangleTexUVFlat , minTriangleTexUVFlatDecal , minTriangleTexUVGouraud , minTriangleTexUVGouraudDecal , minUnbindTexture 
All Namespaces:default , graph , ui 
All Projects:core , eqxmms , ShaderVG , ShaderVG_Text , tkanalogrytm , tkchipmunk , tkclap , tkfileutils , tkfreeglut , tkfreetype2 , tkfreeverb , tkmath , tkmidi , tkmidipipe , tkminnie , tkoldmath , tkopengl , tkportaudio , tkradiastools , tksamplechain , tksampleedit , tksampler , tksdl , tksdl_net , tksidplay2 , tkspeexdsp , tksqlite , tktriangulate , tkui , tkvst2 , tkzip , ui , yingtest 


 
→ top of page

auto-generated by "DOG", the TkScript document generator. Tue, 25/Aug/2026 22:01:03