#include "common.h"#include "gfxPoly.h"Include dependency graph for gfxPoly.c:

Go to the source code of this file.
Functions | |
| gfxPoly * | gfxPolyNew () |
| void | gfxPolyFree (struct gfxPoly **pPoly) |
| void | gfxPolyAddPoint (struct gfxPoly *poly, int x, int y) |
| void gfxPolyAddPoint | ( | struct gfxPoly * | poly, | |
| int | x, | |||
| int | y | |||
| ) |
Definition at line 28 of file gfxPoly.c.
References AllocVar, gfxPoly::lastPoint, gfxPoint::next, gfxPoly::ptCount, gfxPoly::ptList, gfxPoint::x, and gfxPoint::y.
Referenced by vgNextItemButton().
00030 { 00031 struct gfxPoint *pt; 00032 poly->ptCount += 1; 00033 AllocVar(pt); 00034 pt->x = x; 00035 pt->y = y; 00036 if (poly->ptList == NULL) 00037 { 00038 poly->ptList = poly->lastPoint = pt; 00039 pt->next = pt; 00040 } 00041 else 00042 { 00043 poly->lastPoint->next = pt; 00044 pt->next = poly->ptList; 00045 poly->lastPoint = pt; 00046 } 00047 }
Here is the caller graph for this function:

| void gfxPolyFree | ( | struct gfxPoly ** | pPoly | ) |
Definition at line 13 of file gfxPoly.c.
References freez(), gfxPoly::lastPoint, gfxPoint::next, gfxPoly::ptList, and slFreeList().
Referenced by vgNextItemButton().
00015 { 00016 struct gfxPoly *poly = *pPoly; 00017 if (poly != NULL) 00018 { 00019 if (poly->lastPoint != NULL) 00020 { 00021 poly->lastPoint->next = NULL; 00022 slFreeList(&poly->ptList); 00023 } 00024 freez(pPoly); 00025 } 00026 }
Here is the call graph for this function:

Here is the caller graph for this function:

| struct gfxPoly* gfxPolyNew | ( | ) | [read] |
1.5.2