Oolite 1.91.0.7604-240417-a536cbe
|
import "OOPolygonSprite.h"
import "OOCollectionExtractors.h"
import "OOMacroOpenGL.h"
import "OOMaths.h"
import "OOPointMaths.h"
import "OOGraphicsResetManager.h"
import "ResourceManager.h"
import "legacy_random.h"
Go to the source code of this file.
Classes | |
category | OOPolygonSprite(Private) |
struct | TessPolygonData |
Macros | |
#define | APIENTRY |
#define | kCosMitreLimit 0.866f |
Functions | |
static NSArray * | DataArrayToPoints (TessPolygonData *data, NSArray *dataArray) |
static NSArray * | BuildOutlineContour (NSArray *dataArray, GLfloat width, BOOL inner) |
static void | SubmitVertices (GLUtesselator *tesselator, TessPolygonData *polygonData, NSArray *contour) |
static BOOL | GrowTessPolygonData (TessPolygonData *data, size_t capacityHint) |
static BOOL | AppendVertex (TessPolygonData *data, NSPoint vertex) |
static void | SVGDumpBegin (TessPolygonData *data) |
static void | SVGDumpEnd (TessPolygonData *data) |
static void | SVGDumpBeginGroup (TessPolygonData *data, NSString *name) |
static void | SVGDumpEndGroup (TessPolygonData *data) |
static void | SVGDumpAppendBaseContour (TessPolygonData *data, NSArray *points) |
static void | SVGDumpBeginPrimitive (TessPolygonData *data) |
static void | SVGDumpEndPrimitive (TessPolygonData *data) |
static void | SVGDumpAppendTriangle (TessPolygonData *data, NSPoint v0, NSPoint v1, NSPoint v2) |
static void APIENTRY | TessBeginCallback (GLenum type, void *polygonData) |
static void APIENTRY | TessVertexCallback (void *vertexData, void *polygonData) |
static void APIENTRY | TessCombineCallback (GLdouble coords[3], void *vertexData[4], GLfloat weight[4], void **outData, void *polygonData) |
static void APIENTRY | TessEndCallback (void *polygonData) |
static void APIENTRY | ErrorCallback (GLenum error, void *polygonData) |
#define APIENTRY |
Definition at line 51 of file OOPolygonSprite.m.
#define kCosMitreLimit 0.866f |
Definition at line 55 of file OOPolygonSprite.m.
Referenced by BuildOutlineContour().
|
static |
Definition at line 644 of file OOPolygonSprite.m.
References TessPolygonData::capacity, TessPolygonData::count, TessPolygonData::data, and GrowTessPolygonData().
Referenced by TessVertexCallback().
|
static |
Definition at line 508 of file OOPolygonSprite.m.
References count, kCosMitreLimit, PtAdd(), PtCross(), PtDot(), PtNormal(), PtRotACW(), PtScale(), and PtSub().
|
static |
Definition at line 439 of file OOPolygonSprite.m.
References count, SVGDumpAppendBaseContour(), SVGDumpBeginGroup(), SVGDumpEndGroup(), x, and y.
|
static |
Definition at line 777 of file OOPolygonSprite.m.
References TessPolygonData::OK, and OOLog.
|
static |
Definition at line 615 of file OOPolygonSprite.m.
References TessPolygonData::capacity, TessPolygonData::data, and MAX.
Referenced by AppendVertex().
|
static |
Definition at line 418 of file OOPolygonSprite.m.
References TessPolygonData::OK.
|
static |
Definition at line 835 of file OOPolygonSprite.m.
References count, TessPolygonData::debugSVG, and nil.
Referenced by DataArrayToPoints().
|
static |
Definition at line 898 of file OOPolygonSprite.m.
References TessPolygonData::debugSVG, and nil.
Referenced by TessVertexCallback().
|
static |
Definition at line 797 of file OOPolygonSprite.m.
References TessPolygonData::debugSVG, and DESTROY.
|
static |
Definition at line 820 of file OOPolygonSprite.m.
References TessPolygonData::debugSVG, and nil.
Referenced by DataArrayToPoints().
|
static |
Definition at line 855 of file OOPolygonSprite.m.
References TessPolygonData::debugSVG, TessPolygonData::generatingOutline, TessPolygonData::mode, nil, and Ranrot().
Referenced by TessBeginCallback().
|
static |
Definition at line 810 of file OOPolygonSprite.m.
References TessPolygonData::debugSVG, DESTROY, nil, and ResourceManager::writeDiagnosticString:toFileNamed:.
|
static |
Definition at line 828 of file OOPolygonSprite.m.
References TessPolygonData::debugSVG, and nil.
Referenced by DataArrayToPoints().
|
static |
Definition at line 891 of file OOPolygonSprite.m.
References TessPolygonData::debugSVG, and nil.
Referenced by TessEndCallback().
|
static |
Definition at line 657 of file OOPolygonSprite.m.
References TessPolygonData::mode, SVGDumpBeginPrimitive(), and TessPolygonData::vCount.
|
static |
Definition at line 758 of file OOPolygonSprite.m.
|
static |
Definition at line 765 of file OOPolygonSprite.m.
References TessPolygonData::mode, SVGDumpEndPrimitive(), and TessPolygonData::vCount.
|
static |
Definition at line 669 of file OOPolygonSprite.m.
References AppendVertex(), TessPolygonData::mode, TessPolygonData::OK, OOLog, TessPolygonData::pending0, TessPolygonData::pending1, SVGDumpAppendTriangle(), and TessPolygonData::vCount.