atomes 1.1.14
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
glyph.c File Reference

Functions to draw the glyphs. More...

#include <cairo.h>
#include <math.h>
#include "global.h"
#include "curve.h"
+ Include dependency graph for glyph.c:

Go to the source code of this file.

Functions

void draw_poly (cairo_t *to, double x, double y, double size, double step, double initp)
 draw polyhedra glyph
 
void draw_glyph (cairo_t *in, int theglyph, double x, double y, ColRGBA gcolor, double size)
 draw glyph at (x,y)
 

Detailed Description

Functions to draw the glyphs.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file glyph.c.

Function Documentation

◆ draw_glyph()

void draw_glyph ( cairo_t * in,
int theglyph,
double x,
double y,
ColRGBA gcolor,
double size )

draw glyph at (x,y)

Parameters
inthe cairo drawing context to use for the draw
theglyphthe type of glyph
xx position
yy position
gcolorthe glyph color
sizethe glyph size

Definition at line 88 of file glyph.c.

◆ draw_poly()

void draw_poly ( cairo_t * to,
double x,
double y,
double size,
double step,
double initp )

draw polyhedra glyph

Parameters
tothe cairo drawing context to use for the draw
xx position
yy position
sizeglyph size
stepnumber of points
initpstarting position

Definition at line 56 of file glyph.c.