Generated by Doxygen 1.8.14
Neographics
Path

Classes

struct  n_GPathInfo
 
struct  n_GPath
 

Functions

n_GPathn_gpath_create (n_GPathInfo *path_info)
 
void n_gpath_destroy (n_GPath *path)
 
void n_graphics_draw_path (n_GContext *ctx, uint32_t num_points, n_GPoint *points, bool open)
 
void n_graphics_fill_path (n_GContext *ctx, uint32_t num_points, n_GPoint *points)
 
void n_graphics_draw_ppath (n_GContext *ctx, uint32_t num_points, n_GPoint *points, bool open)
 
void n_graphics_fill_ppath (n_GContext *ctx, uint32_t num_points, n_GPoint *points)
 
void n_gpath_draw (n_GContext *ctx, n_GPath *path)
 
void n_gpath_fill (n_GContext *ctx, n_GPath *path)
 
void n_gpath_rotate_to (n_GPath *path, int32_t angle)
 
void n_gpath_move_to (n_GPath *path, n_GPoint offset)
 
void n_prv_transform_points (uint32_t num_points, n_GPoint *points_in, n_GPoint *points_out, int16_t angle, n_GPoint offset)
 

Variables

typedef __attribute__
 

Detailed Description

Draw an open or closed path

Function Documentation

◆ n_gpath_create()

n_GPath* n_gpath_create ( n_GPathInfo path_info)

Creates a n_GPath from some n_GPathInfo.

◆ n_gpath_destroy()

void n_gpath_destroy ( n_GPath path)

Destroys a previously created n_GPath.

◆ n_gpath_draw()

void n_gpath_draw ( n_GContext ctx,
n_GPath path 
)

Draws the outline of a n_GPath.

◆ n_gpath_fill()

void n_gpath_fill ( n_GContext ctx,
n_GPath path 
)

Fills a n_GPath using the even-odd fill rule.

◆ n_gpath_move_to()

void n_gpath_move_to ( n_GPath path,
n_GPoint  offset 
)

Sets the offset of a n_GPath.

◆ n_gpath_rotate_to()

void n_gpath_rotate_to ( n_GPath path,
int32_t  angle 
)

Sets the rotation of a n_GPath.

◆ n_graphics_draw_path()

void n_graphics_draw_path ( n_GContext ctx,
uint32_t  num_points,
n_GPoint points,
bool  open 
)

Draws the outline of a path.

◆ n_graphics_draw_ppath()

void n_graphics_draw_ppath ( n_GContext ctx,
uint32_t  num_points,
n_GPoint points,
bool  open 
)

Draws the outline of a precise path.

◆ n_graphics_fill_path()

void n_graphics_fill_path ( n_GContext ctx,
uint32_t  num_points,
n_GPoint points 
)

Fills a path using the even-odd fill rule.

◆ n_graphics_fill_ppath()

void n_graphics_fill_ppath ( n_GContext ctx,
uint32_t  num_points,
n_GPoint points 
)

Fills a precise path using the even-odd fill rule.

◆ n_prv_transform_points()

void n_prv_transform_points ( uint32_t  num_points,
n_GPoint points_in,
n_GPoint points_out,
int16_t  angle,
n_GPoint  offset 
)

Transforms a point array with a given angle and offset.