forked from go-gl-legacy/glu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcallback.h
36 lines (30 loc) · 1.12 KB
/
callback.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2012 The go-gl Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#ifndef _CALLBACK_H_
#define _CALLBACK_H_
#ifdef __APPLE__
#define GL_SILENCE_DEPRECATION
#include <OpenGL/glu.h>
#else
#include <GL/glu.h>
#endif
//Apple's glu.h defines its function pointers a little differently, so this tries to fix things up:
#ifdef __APPLE__
#ifndef GLAPIENTRY
typedef GLvoid (*_GLUfuncptr)(void);
#endif
#endif
#ifdef __MINGW32__
typedef void (APIENTRY *_GLUfuncptr)();
#endif
extern void goTessBeginData(GLenum type, void *polygon_data);
extern void goTessVertexData(void *vertex_data, void *polygon_data);
extern void goTessEndData(void *polygon_data);
extern void goTessErrorData(GLenum errorNumber, void *polygon_data);
extern void goTessEdgeFlagData(GLboolean flag, void *polygon_data);
extern void goTessCombineData(void *coords, void *vertex_data,
void *weight, void *outData,
void *polygon_data);
void setGluTessCallback(GLUtesselator *tess, GLenum which);
#endif // _CALLBACK_H_