LMMS
Loading...
Searching...
No Matches
nanovg.h File Reference

Go to the source code of this file.

Classes

struct  NVGcolor
struct  NVGpaint
struct  NVGcompositeOperationState
struct  NVGglyphPosition
struct  NVGtextRow
struct  NVGscissor
struct  NVGvertex
struct  NVGpath
struct  NVGparams

Macros

#define NVG_PI   3.14159265358979323846264338327f
#define NVG_NOTUSED(v)

Typedefs

typedef struct NVGcontext NVGcontext
typedef struct NVGcolor NVGcolor
typedef struct NVGpaint NVGpaint
typedef struct NVGcompositeOperationState NVGcompositeOperationState
typedef struct NVGglyphPosition NVGglyphPosition
typedef struct NVGtextRow NVGtextRow
typedef struct NVGscissor NVGscissor
typedef struct NVGvertex NVGvertex
typedef struct NVGpath NVGpath
typedef struct NVGparams NVGparams

Enumerations

enum  NVGwinding { NVG_CCW = 1 , NVG_CW = 2 }
enum  NVGsolidity { NVG_SOLID = 1 , NVG_HOLE = 2 }
enum  NVGlineCap {
  NVG_BUTT , NVG_ROUND , NVG_SQUARE , NVG_BEVEL ,
  NVG_MITER
}
enum  NVGalign {
  NVG_ALIGN_LEFT = 1<<0 , NVG_ALIGN_CENTER = 1<<1 , NVG_ALIGN_RIGHT = 1<<2 , NVG_ALIGN_TOP = 1<<3 ,
  NVG_ALIGN_MIDDLE = 1<<4 , NVG_ALIGN_BOTTOM = 1<<5 , NVG_ALIGN_BASELINE = 1<<6
}
enum  NVGblendFactor {
  NVG_ZERO = 1<<0 , NVG_ONE = 1<<1 , NVG_SRC_COLOR = 1<<2 , NVG_ONE_MINUS_SRC_COLOR = 1<<3 ,
  NVG_DST_COLOR = 1<<4 , NVG_ONE_MINUS_DST_COLOR = 1<<5 , NVG_SRC_ALPHA = 1<<6 , NVG_ONE_MINUS_SRC_ALPHA = 1<<7 ,
  NVG_DST_ALPHA = 1<<8 , NVG_ONE_MINUS_DST_ALPHA = 1<<9 , NVG_SRC_ALPHA_SATURATE = 1<<10
}
enum  NVGcompositeOperation {
  NVG_SOURCE_OVER , NVG_SOURCE_IN , NVG_SOURCE_OUT , NVG_ATOP ,
  NVG_DESTINATION_OVER , NVG_DESTINATION_IN , NVG_DESTINATION_OUT , NVG_DESTINATION_ATOP ,
  NVG_LIGHTER , NVG_COPY , NVG_XOR
}
enum  NVGimageFlags {
  NVG_IMAGE_GENERATE_MIPMAPS = 1<<0 , NVG_IMAGE_REPEATX = 1<<1 , NVG_IMAGE_REPEATY = 1<<2 , NVG_IMAGE_FLIPY = 1<<3 ,
  NVG_IMAGE_PREMULTIPLIED = 1<<4 , NVG_IMAGE_NEAREST = 1<<5
}
enum  NVGtexture {
  NVG_TEXTURE_ALPHA , NVG_TEXTURE_BGR , NVG_TEXTURE_BGRA , NVG_TEXTURE_RGB ,
  NVG_TEXTURE_RGBA
}

Functions

void nvgBeginFrame (NVGcontext *ctx, float windowWidth, float windowHeight, float devicePixelRatio)
void nvgCancelFrame (NVGcontext *ctx)
void nvgEndFrame (NVGcontext *ctx)
void nvgGlobalCompositeOperation (NVGcontext *ctx, int op)
void nvgGlobalCompositeBlendFunc (NVGcontext *ctx, int sfactor, int dfactor)
void nvgGlobalCompositeBlendFuncSeparate (NVGcontext *ctx, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
NVGcolor nvgRGB (unsigned char r, unsigned char g, unsigned char b)
NVGcolor nvgRGBf (float r, float g, float b)
NVGcolor nvgRGBA (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
NVGcolor nvgRGBAf (float r, float g, float b, float a)
NVGcolor nvgLerpRGBA (NVGcolor c0, NVGcolor c1, float u)
NVGcolor nvgTransRGBA (NVGcolor c0, unsigned char a)
NVGcolor nvgTransRGBAf (NVGcolor c0, float a)
NVGcolor nvgHSL (float h, float s, float l)
NVGcolor nvgHSLA (float h, float s, float l, unsigned char a)
void nvgSave (NVGcontext *ctx)
void nvgRestore (NVGcontext *ctx)
void nvgReset (NVGcontext *ctx)
void nvgShapeAntiAlias (NVGcontext *ctx, int enabled)
void nvgStrokeColor (NVGcontext *ctx, NVGcolor color)
void nvgStrokePaint (NVGcontext *ctx, NVGpaint paint)
void nvgFillColor (NVGcontext *ctx, NVGcolor color)
void nvgFillPaint (NVGcontext *ctx, NVGpaint paint)
void nvgMiterLimit (NVGcontext *ctx, float limit)
void nvgStrokeWidth (NVGcontext *ctx, float size)
void nvgLineCap (NVGcontext *ctx, int cap)
void nvgLineJoin (NVGcontext *ctx, int join)
void nvgGlobalAlpha (NVGcontext *ctx, float alpha)
void nvgGlobalTint (NVGcontext *ctx, NVGcolor tint)
NVGcolor nvgGetGlobalTint (NVGcontext *ctx)
void nvgAlpha (NVGcontext *ctx, float alpha)
void nvgTint (NVGcontext *ctx, NVGcolor tint)
void nvgResetTransform (NVGcontext *ctx)
void nvgTransform (NVGcontext *ctx, float a, float b, float c, float d, float e, float f)
void nvgTranslate (NVGcontext *ctx, float x, float y)
void nvgRotate (NVGcontext *ctx, float angle)
void nvgSkewX (NVGcontext *ctx, float angle)
void nvgSkewY (NVGcontext *ctx, float angle)
void nvgScale (NVGcontext *ctx, float x, float y)
void nvgCurrentTransform (NVGcontext *ctx, float *xform)
void nvgTransformIdentity (float *dst)
void nvgTransformTranslate (float *dst, float tx, float ty)
void nvgTransformScale (float *dst, float sx, float sy)
void nvgTransformRotate (float *dst, float a)
void nvgTransformSkewX (float *dst, float a)
void nvgTransformSkewY (float *dst, float a)
void nvgTransformMultiply (float *dst, const float *src)
void nvgTransformPremultiply (float *dst, const float *src)
int nvgTransformInverse (float *dst, const float *src)
void nvgTransformPoint (float *dstx, float *dsty, const float *xform, float srcx, float srcy)
float nvgDegToRad (float deg)
float nvgRadToDeg (float rad)
int nvgCreateImage (NVGcontext *ctx, const char *filename, int imageFlags)
int nvgCreateImageMem (NVGcontext *ctx, int imageFlags, unsigned char *data, int ndata)
int nvgCreateImageRaw (NVGcontext *ctx, int w, int h, int imageFlags, enum NVGtexture format, const unsigned char *data)
int nvgCreateImageRGBA (NVGcontext *ctx, int w, int h, int imageFlags, const unsigned char *data)
void nvgUpdateImage (NVGcontext *ctx, int image, const unsigned char *data)
void nvgImageSize (NVGcontext *ctx, int image, int *w, int *h)
void nvgDeleteImage (NVGcontext *ctx, int image)
NVGpaint nvgLinearGradient (NVGcontext *ctx, float sx, float sy, float ex, float ey, NVGcolor icol, NVGcolor ocol)
NVGpaint nvgBoxGradient (NVGcontext *ctx, float x, float y, float w, float h, float r, float f, NVGcolor icol, NVGcolor ocol)
NVGpaint nvgRadialGradient (NVGcontext *ctx, float cx, float cy, float inr, float outr, NVGcolor icol, NVGcolor ocol)
NVGpaint nvgImagePattern (NVGcontext *ctx, float ox, float oy, float ex, float ey, float angle, int image, float alpha)
void nvgScissor (NVGcontext *ctx, float x, float y, float w, float h)
void nvgIntersectScissor (NVGcontext *ctx, float x, float y, float w, float h)
void nvgResetScissor (NVGcontext *ctx)
void nvgBeginPath (NVGcontext *ctx)
void nvgMoveTo (NVGcontext *ctx, float x, float y)
void nvgLineTo (NVGcontext *ctx, float x, float y)
void nvgBezierTo (NVGcontext *ctx, float c1x, float c1y, float c2x, float c2y, float x, float y)
void nvgQuadTo (NVGcontext *ctx, float cx, float cy, float x, float y)
void nvgArcTo (NVGcontext *ctx, float x1, float y1, float x2, float y2, float radius)
void nvgClosePath (NVGcontext *ctx)
void nvgPathWinding (NVGcontext *ctx, int dir)
void nvgArc (NVGcontext *ctx, float cx, float cy, float r, float a0, float a1, int dir)
void nvgRect (NVGcontext *ctx, float x, float y, float w, float h)
void nvgRoundedRect (NVGcontext *ctx, float x, float y, float w, float h, float r)
void nvgRoundedRectVarying (NVGcontext *ctx, float x, float y, float w, float h, float radTopLeft, float radTopRight, float radBottomRight, float radBottomLeft)
void nvgEllipse (NVGcontext *ctx, float cx, float cy, float rx, float ry)
void nvgCircle (NVGcontext *ctx, float cx, float cy, float r)
void nvgFill (NVGcontext *ctx)
void nvgStroke (NVGcontext *ctx)
int nvgCreateFont (NVGcontext *ctx, const char *name, const char *filename)
int nvgCreateFontAtIndex (NVGcontext *ctx, const char *name, const char *filename, const int fontIndex)
int nvgCreateFontMem (NVGcontext *ctx, const char *name, unsigned char *data, int ndata, int freeData)
int nvgCreateFontMemAtIndex (NVGcontext *ctx, const char *name, unsigned char *data, int ndata, int freeData, const int fontIndex)
int nvgFindFont (NVGcontext *ctx, const char *name)
int nvgAddFallbackFontId (NVGcontext *ctx, int baseFont, int fallbackFont)
int nvgAddFallbackFont (NVGcontext *ctx, const char *baseFont, const char *fallbackFont)
void nvgResetFallbackFontsId (NVGcontext *ctx, int baseFont)
void nvgResetFallbackFonts (NVGcontext *ctx, const char *baseFont)
void nvgFontSize (NVGcontext *ctx, float size)
void nvgFontBlur (NVGcontext *ctx, float blur)
void nvgTextLetterSpacing (NVGcontext *ctx, float spacing)
void nvgTextLineHeight (NVGcontext *ctx, float lineHeight)
void nvgTextAlign (NVGcontext *ctx, int align)
void nvgFontFaceId (NVGcontext *ctx, int font)
void nvgFontFace (NVGcontext *ctx, const char *font)
float nvgText (NVGcontext *ctx, float x, float y, const char *string, const char *end)
void nvgTextBox (NVGcontext *ctx, float x, float y, float breakRowWidth, const char *string, const char *end)
float nvgTextBounds (NVGcontext *ctx, float x, float y, const char *string, const char *end, float *bounds)
void nvgTextBoxBounds (NVGcontext *ctx, float x, float y, float breakRowWidth, const char *string, const char *end, float *bounds)
int nvgTextGlyphPositions (NVGcontext *ctx, float x, float y, const char *string, const char *end, NVGglyphPosition *positions, int maxPositions)
void nvgTextMetrics (NVGcontext *ctx, float *ascender, float *descender, float *lineh)
int nvgTextBreakLines (NVGcontext *ctx, const char *string, const char *end, float breakRowWidth, NVGtextRow *rows, int maxRows)
NVGcontextnvgCreateInternal (NVGparams *params, NVGcontext *other)
void nvgDeleteInternal (NVGcontext *ctx)
NVGparamsnvgInternalParams (NVGcontext *ctx)
void nvgDebugDumpPathCache (NVGcontext *ctx)

Macro Definition Documentation

◆ NVG_NOTUSED

#define NVG_NOTUSED ( v)
Value:
for (;;) { (void)(1 ? (void)0 : ( (void)(v) ) ); break; }
unsigned v[N_MAX]
Definition inflate.c:1584
#define void
Definition unzip.h:396

◆ NVG_PI

#define NVG_PI   3.14159265358979323846264338327f

Typedef Documentation

◆ NVGcolor

typedef struct NVGcolor NVGcolor

◆ NVGcompositeOperationState

typedef struct NVGcompositeOperationState NVGcompositeOperationState

◆ NVGcontext

typedef struct NVGcontext NVGcontext

◆ NVGglyphPosition

typedef struct NVGglyphPosition NVGglyphPosition

◆ NVGpaint

typedef struct NVGpaint NVGpaint

◆ NVGparams

typedef struct NVGparams NVGparams

◆ NVGpath

typedef struct NVGpath NVGpath

◆ NVGscissor

typedef struct NVGscissor NVGscissor

◆ NVGtextRow

typedef struct NVGtextRow NVGtextRow

◆ NVGvertex

typedef struct NVGvertex NVGvertex

Enumeration Type Documentation

◆ NVGalign

enum NVGalign
Enumerator
NVG_ALIGN_LEFT 
NVG_ALIGN_CENTER 
NVG_ALIGN_RIGHT 
NVG_ALIGN_TOP 
NVG_ALIGN_MIDDLE 
NVG_ALIGN_BOTTOM 
NVG_ALIGN_BASELINE 

◆ NVGblendFactor

Enumerator
NVG_ZERO 
NVG_ONE 
NVG_SRC_COLOR 
NVG_ONE_MINUS_SRC_COLOR 
NVG_DST_COLOR 
NVG_ONE_MINUS_DST_COLOR 
NVG_SRC_ALPHA 
NVG_ONE_MINUS_SRC_ALPHA 
NVG_DST_ALPHA 
NVG_ONE_MINUS_DST_ALPHA 
NVG_SRC_ALPHA_SATURATE 

◆ NVGcompositeOperation

Enumerator
NVG_SOURCE_OVER 
NVG_SOURCE_IN 
NVG_SOURCE_OUT 
NVG_ATOP 
NVG_DESTINATION_OVER 
NVG_DESTINATION_IN 
NVG_DESTINATION_OUT 
NVG_DESTINATION_ATOP 
NVG_LIGHTER 
NVG_COPY 
NVG_XOR 

◆ NVGimageFlags

Enumerator
NVG_IMAGE_GENERATE_MIPMAPS 
NVG_IMAGE_REPEATX 
NVG_IMAGE_REPEATY 
NVG_IMAGE_FLIPY 
NVG_IMAGE_PREMULTIPLIED 
NVG_IMAGE_NEAREST 

◆ NVGlineCap

enum NVGlineCap
Enumerator
NVG_BUTT 
NVG_ROUND 
NVG_SQUARE 
NVG_BEVEL 
NVG_MITER 

◆ NVGsolidity

Enumerator
NVG_SOLID 
NVG_HOLE 

◆ NVGtexture

enum NVGtexture
Enumerator
NVG_TEXTURE_ALPHA 
NVG_TEXTURE_BGR 
NVG_TEXTURE_BGRA 
NVG_TEXTURE_RGB 
NVG_TEXTURE_RGBA 

◆ NVGwinding

enum NVGwinding
Enumerator
NVG_CCW 
NVG_CW 

Function Documentation

◆ nvgAddFallbackFont()

int nvgAddFallbackFont ( NVGcontext * ctx,
const char * baseFont,
const char * fallbackFont )

◆ nvgAddFallbackFontId()

int nvgAddFallbackFontId ( NVGcontext * ctx,
int baseFont,
int fallbackFont )

◆ nvgAlpha()

void nvgAlpha ( NVGcontext * ctx,
float alpha )

◆ nvgArc()

void nvgArc ( NVGcontext * ctx,
float cx,
float cy,
float r,
float a0,
float a1,
int dir )

◆ nvgArcTo()

void nvgArcTo ( NVGcontext * ctx,
float x1,
float y1,
float x2,
float y2,
float radius )

◆ nvgBeginFrame()

void nvgBeginFrame ( NVGcontext * ctx,
float windowWidth,
float windowHeight,
float devicePixelRatio )

◆ nvgBeginPath()

void nvgBeginPath ( NVGcontext * ctx)

◆ nvgBezierTo()

void nvgBezierTo ( NVGcontext * ctx,
float c1x,
float c1y,
float c2x,
float c2y,
float x,
float y )

◆ nvgBoxGradient()

NVGpaint nvgBoxGradient ( NVGcontext * ctx,
float x,
float y,
float w,
float h,
float r,
float f,
NVGcolor icol,
NVGcolor ocol )

◆ nvgCancelFrame()

void nvgCancelFrame ( NVGcontext * ctx)

◆ nvgCircle()

void nvgCircle ( NVGcontext * ctx,
float cx,
float cy,
float r )

◆ nvgClosePath()

void nvgClosePath ( NVGcontext * ctx)

◆ nvgCreateFont()

int nvgCreateFont ( NVGcontext * ctx,
const char * name,
const char * filename )

◆ nvgCreateFontAtIndex()

int nvgCreateFontAtIndex ( NVGcontext * ctx,
const char * name,
const char * filename,
const int fontIndex )

◆ nvgCreateFontMem()

int nvgCreateFontMem ( NVGcontext * ctx,
const char * name,
unsigned char * data,
int ndata,
int freeData )

◆ nvgCreateFontMemAtIndex()

int nvgCreateFontMemAtIndex ( NVGcontext * ctx,
const char * name,
unsigned char * data,
int ndata,
int freeData,
const int fontIndex )

◆ nvgCreateImage()

int nvgCreateImage ( NVGcontext * ctx,
const char * filename,
int imageFlags )

◆ nvgCreateImageMem()

int nvgCreateImageMem ( NVGcontext * ctx,
int imageFlags,
unsigned char * data,
int ndata )

◆ nvgCreateImageRaw()

int nvgCreateImageRaw ( NVGcontext * ctx,
int w,
int h,
int imageFlags,
enum NVGtexture format,
const unsigned char * data )

◆ nvgCreateImageRGBA()

int nvgCreateImageRGBA ( NVGcontext * ctx,
int w,
int h,
int imageFlags,
const unsigned char * data )

◆ nvgCreateInternal()

NVGcontext * nvgCreateInternal ( NVGparams * params,
NVGcontext * other )

◆ nvgCurrentTransform()

void nvgCurrentTransform ( NVGcontext * ctx,
float * xform )

◆ nvgDebugDumpPathCache()

void nvgDebugDumpPathCache ( NVGcontext * ctx)

◆ nvgDegToRad()

float nvgDegToRad ( float deg)

◆ nvgDeleteImage()

void nvgDeleteImage ( NVGcontext * ctx,
int image )

◆ nvgDeleteInternal()

void nvgDeleteInternal ( NVGcontext * ctx)

◆ nvgEllipse()

void nvgEllipse ( NVGcontext * ctx,
float cx,
float cy,
float rx,
float ry )

◆ nvgEndFrame()

void nvgEndFrame ( NVGcontext * ctx)

◆ nvgFill()

void nvgFill ( NVGcontext * ctx)

◆ nvgFillColor()

void nvgFillColor ( NVGcontext * ctx,
NVGcolor color )

◆ nvgFillPaint()

void nvgFillPaint ( NVGcontext * ctx,
NVGpaint paint )

◆ nvgFindFont()

int nvgFindFont ( NVGcontext * ctx,
const char * name )

◆ nvgFontBlur()

void nvgFontBlur ( NVGcontext * ctx,
float blur )

◆ nvgFontFace()

void nvgFontFace ( NVGcontext * ctx,
const char * font )

◆ nvgFontFaceId()

void nvgFontFaceId ( NVGcontext * ctx,
int font )

◆ nvgFontSize()

void nvgFontSize ( NVGcontext * ctx,
float size )

◆ nvgGetGlobalTint()

NVGcolor nvgGetGlobalTint ( NVGcontext * ctx)

◆ nvgGlobalAlpha()

void nvgGlobalAlpha ( NVGcontext * ctx,
float alpha )

◆ nvgGlobalCompositeBlendFunc()

void nvgGlobalCompositeBlendFunc ( NVGcontext * ctx,
int sfactor,
int dfactor )

◆ nvgGlobalCompositeBlendFuncSeparate()

void nvgGlobalCompositeBlendFuncSeparate ( NVGcontext * ctx,
int srcRGB,
int dstRGB,
int srcAlpha,
int dstAlpha )

◆ nvgGlobalCompositeOperation()

void nvgGlobalCompositeOperation ( NVGcontext * ctx,
int op )

◆ nvgGlobalTint()

void nvgGlobalTint ( NVGcontext * ctx,
NVGcolor tint )

◆ nvgHSL()

NVGcolor nvgHSL ( float h,
float s,
float l )

◆ nvgHSLA()

NVGcolor nvgHSLA ( float h,
float s,
float l,
unsigned char a )

◆ nvgImagePattern()

NVGpaint nvgImagePattern ( NVGcontext * ctx,
float ox,
float oy,
float ex,
float ey,
float angle,
int image,
float alpha )

◆ nvgImageSize()

void nvgImageSize ( NVGcontext * ctx,
int image,
int * w,
int * h )

◆ nvgInternalParams()

NVGparams * nvgInternalParams ( NVGcontext * ctx)

◆ nvgIntersectScissor()

void nvgIntersectScissor ( NVGcontext * ctx,
float x,
float y,
float w,
float h )

◆ nvgLerpRGBA()

NVGcolor nvgLerpRGBA ( NVGcolor c0,
NVGcolor c1,
float u )

◆ nvgLinearGradient()

NVGpaint nvgLinearGradient ( NVGcontext * ctx,
float sx,
float sy,
float ex,
float ey,
NVGcolor icol,
NVGcolor ocol )

◆ nvgLineCap()

void nvgLineCap ( NVGcontext * ctx,
int cap )

◆ nvgLineJoin()

void nvgLineJoin ( NVGcontext * ctx,
int join )

◆ nvgLineTo()

void nvgLineTo ( NVGcontext * ctx,
float x,
float y )

◆ nvgMiterLimit()

void nvgMiterLimit ( NVGcontext * ctx,
float limit )

◆ nvgMoveTo()

void nvgMoveTo ( NVGcontext * ctx,
float x,
float y )

◆ nvgPathWinding()

void nvgPathWinding ( NVGcontext * ctx,
int dir )

◆ nvgQuadTo()

void nvgQuadTo ( NVGcontext * ctx,
float cx,
float cy,
float x,
float y )

◆ nvgRadialGradient()

NVGpaint nvgRadialGradient ( NVGcontext * ctx,
float cx,
float cy,
float inr,
float outr,
NVGcolor icol,
NVGcolor ocol )

◆ nvgRadToDeg()

float nvgRadToDeg ( float rad)

◆ nvgRect()

void nvgRect ( NVGcontext * ctx,
float x,
float y,
float w,
float h )

◆ nvgReset()

void nvgReset ( NVGcontext * ctx)

◆ nvgResetFallbackFonts()

void nvgResetFallbackFonts ( NVGcontext * ctx,
const char * baseFont )

◆ nvgResetFallbackFontsId()

void nvgResetFallbackFontsId ( NVGcontext * ctx,
int baseFont )

◆ nvgResetScissor()

void nvgResetScissor ( NVGcontext * ctx)

◆ nvgResetTransform()

void nvgResetTransform ( NVGcontext * ctx)

◆ nvgRestore()

void nvgRestore ( NVGcontext * ctx)

◆ nvgRGB()

NVGcolor nvgRGB ( unsigned char r,
unsigned char g,
unsigned char b )

◆ nvgRGBA()

NVGcolor nvgRGBA ( unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a )

◆ nvgRGBAf()

NVGcolor nvgRGBAf ( float r,
float g,
float b,
float a )

◆ nvgRGBf()

NVGcolor nvgRGBf ( float r,
float g,
float b )

◆ nvgRotate()

void nvgRotate ( NVGcontext * ctx,
float angle )

◆ nvgRoundedRect()

void nvgRoundedRect ( NVGcontext * ctx,
float x,
float y,
float w,
float h,
float r )

◆ nvgRoundedRectVarying()

void nvgRoundedRectVarying ( NVGcontext * ctx,
float x,
float y,
float w,
float h,
float radTopLeft,
float radTopRight,
float radBottomRight,
float radBottomLeft )

◆ nvgSave()

void nvgSave ( NVGcontext * ctx)

◆ nvgScale()

void nvgScale ( NVGcontext * ctx,
float x,
float y )

◆ nvgScissor()

void nvgScissor ( NVGcontext * ctx,
float x,
float y,
float w,
float h )

◆ nvgShapeAntiAlias()

void nvgShapeAntiAlias ( NVGcontext * ctx,
int enabled )

◆ nvgSkewX()

void nvgSkewX ( NVGcontext * ctx,
float angle )

◆ nvgSkewY()

void nvgSkewY ( NVGcontext * ctx,
float angle )

◆ nvgStroke()

void nvgStroke ( NVGcontext * ctx)

◆ nvgStrokeColor()

void nvgStrokeColor ( NVGcontext * ctx,
NVGcolor color )

◆ nvgStrokePaint()

void nvgStrokePaint ( NVGcontext * ctx,
NVGpaint paint )

◆ nvgStrokeWidth()

void nvgStrokeWidth ( NVGcontext * ctx,
float size )

◆ nvgText()

float nvgText ( NVGcontext * ctx,
float x,
float y,
const char * string,
const char * end )

◆ nvgTextAlign()

void nvgTextAlign ( NVGcontext * ctx,
int align )

◆ nvgTextBounds()

float nvgTextBounds ( NVGcontext * ctx,
float x,
float y,
const char * string,
const char * end,
float * bounds )

◆ nvgTextBox()

void nvgTextBox ( NVGcontext * ctx,
float x,
float y,
float breakRowWidth,
const char * string,
const char * end )

◆ nvgTextBoxBounds()

void nvgTextBoxBounds ( NVGcontext * ctx,
float x,
float y,
float breakRowWidth,
const char * string,
const char * end,
float * bounds )

◆ nvgTextBreakLines()

int nvgTextBreakLines ( NVGcontext * ctx,
const char * string,
const char * end,
float breakRowWidth,
NVGtextRow * rows,
int maxRows )

◆ nvgTextGlyphPositions()

int nvgTextGlyphPositions ( NVGcontext * ctx,
float x,
float y,
const char * string,
const char * end,
NVGglyphPosition * positions,
int maxPositions )

◆ nvgTextLetterSpacing()

void nvgTextLetterSpacing ( NVGcontext * ctx,
float spacing )

◆ nvgTextLineHeight()

void nvgTextLineHeight ( NVGcontext * ctx,
float lineHeight )

◆ nvgTextMetrics()

void nvgTextMetrics ( NVGcontext * ctx,
float * ascender,
float * descender,
float * lineh )

◆ nvgTint()

void nvgTint ( NVGcontext * ctx,
NVGcolor tint )

◆ nvgTransform()

void nvgTransform ( NVGcontext * ctx,
float a,
float b,
float c,
float d,
float e,
float f )

◆ nvgTransformIdentity()

void nvgTransformIdentity ( float * dst)

◆ nvgTransformInverse()

int nvgTransformInverse ( float * dst,
const float * src )

◆ nvgTransformMultiply()

void nvgTransformMultiply ( float * dst,
const float * src )

◆ nvgTransformPoint()

void nvgTransformPoint ( float * dstx,
float * dsty,
const float * xform,
float srcx,
float srcy )

◆ nvgTransformPremultiply()

void nvgTransformPremultiply ( float * dst,
const float * src )

◆ nvgTransformRotate()

void nvgTransformRotate ( float * dst,
float a )

◆ nvgTransformScale()

void nvgTransformScale ( float * dst,
float sx,
float sy )

◆ nvgTransformSkewX()

void nvgTransformSkewX ( float * dst,
float a )

◆ nvgTransformSkewY()

void nvgTransformSkewY ( float * dst,
float a )

◆ nvgTransformTranslate()

void nvgTransformTranslate ( float * dst,
float tx,
float ty )

◆ nvgTranslate()

void nvgTranslate ( NVGcontext * ctx,
float x,
float y )

◆ nvgTransRGBA()

NVGcolor nvgTransRGBA ( NVGcolor c0,
unsigned char a )

◆ nvgTransRGBAf()

NVGcolor nvgTransRGBAf ( NVGcolor c0,
float a )

◆ nvgUpdateImage()

void nvgUpdateImage ( NVGcontext * ctx,
int image,
const unsigned char * data )