Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS / Android Patch Fix #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions Include/tesselator.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ extern "C" {

// See OpenGL Red Book for description of the winding rules
// http://www.glprogramming.com/red/chapter11.html
#if defined( __APPLE_CC__)
#include <TargetConditionals.h>
#endif

enum TessWindingRule
{
TESS_WINDING_ODD,
Expand Down Expand Up @@ -130,11 +134,17 @@ enum TessOption
};

typedef float TESSreal;
typedef int TESSindex;
//note this shouldn't be defined(TARGET_OS_IPHONE) as its always defined either 0 or 1
#if TARGET_OS_IPHONE || ANDROID || __ARMEL__
typedef unsigned short TESSindex;
#else
typedef unsigned int TESSindex;
#endif

typedef struct TESStesselator TESStesselator;
typedef struct TESSalloc TESSalloc;

#define TESS_UNDEF (~(TESSindex)0)
#define TESS_UNDEF ((TESSindex)(~(TESSindex)0))

#define TESS_NOTUSED(v) do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)

Expand Down