-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME
69 lines (51 loc) · 2.6 KB
/
README
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
///////////////////////////// Maintainer's Readme /////////////////////////////
This is a fork of the original GLU ES library created by Mike Gorchak at
https://code.google.com/p/glues/. This fork is maintained by Joshua Bodine.
To build, you must first have the OpenGL ES and SDL 2 libraries installed. If
you are cross-compiling or using a toolchain, you will need to set up that
environment first and possibly modify the build commands. The following
commands are used to build this library:
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
To build the library using Xcode, open the project file GLUES.xcodeproj. You
will have to either add the location of SDL2 headers on your system to the
header search paths in the Xcode project before building, or else build from
the command line with the path added to the compiler flags, for example:
$ xcodebuild -configuration Release build OTHER_CFLAGS=-I/usr/local/include
To use the library in your code, you can include the headers like this (after
including <GLES/gl.h>):
#define __USE_SDL_GLES__
#include <GLES/glu.h>
To check for the presence of headers and library files on a system from
configure.ac, you can do something like this:
OLD_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -D__USE_SDL_GLES__"
AC_CHECK_HEADER([GLES/glu.h], [], [
AC_MSG_ERROR([no OpenGL GLU ES headers were found])])
CPPFLAGS="$OLD_CPPFLAGS"
AC_CHECK_LIB([GLUES], [gluNewQuadric], [], [
AC_MSG_ERROR([no OpenGL GLU ES library was found])], [-lGLESv1_CM])
Please report any bugs or issues on the GitHub project page at
https://github.com/macsforme/glues.
/////////////////////////////// Original Readme ///////////////////////////////
GLU ES (version 1.5)
This port is based on original GLU 1.3 and has original libutil, libtess and
and nurbs libraries.
Currently QNX 6.4.x native target builds and Win32 (for PowerVR OpenGL ES 1.1
emulator) are supported.
History:
1.5 - NURBS support has added. Updated HTML documentation to reflect the
changes. New tests were added for NURBS.
1.4 - miscellaneous non-critical fixes, HTML documentation has been added.
Support for PowerVR OpenGL ES 1.1 emulator for Win32 has been added.
1.3 - libtess and tesselation tests (QNX native and SDL 1.3) have been added.
1.2 - SDL 1.3 based tests were added.
1.1 - Removed some texture formats, which are not supported by OpenGL ES 1.x,
added arrays manipulation to the quadric functions. Sphere flat shading
fixes. Disk texturing with inner radius more than 0.0f fixes. Updated
tests.
1.0 - Initial public release.
// 11.11.2009
// Mike Gorchak <mike@malva.ua>, <lestat@i.com.ua>