Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 45061 Details for
Bug 61288
Torcs 1.2.2 compile fails
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
It does not compile all files (gcc 3.3.4)
ccRxqS4u.out (text/plain), 379.51 KB, created by
buzon
on 2004-12-01 10:35:04 UTC
(
hide
)
Description:
It does not compile all files (gcc 3.3.4)
Filename:
MIME Type:
Creator:
buzon
Created:
2004-12-01 10:35:04 UTC
Size:
379.51 KB
patch
obsolete
>// /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/cc1plus -quiet -I/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=4 -D_GNU_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -DSHM raceengine.cpp -D__GNUG__=3 -quiet -dumpbase raceengine.cpp -mcpu=pentium4 -march=pentium4 -mieee-fp -mieee-fp -auxbase raceengine -O3 -O3 -O3 -Wall -Wstrict-prototypes -Wall -Wstrict-prototypes -fomit-frame-pointer -o - -frandom-seed=0 ># 1 "raceengine.cpp" ># 1 "<interno>" ># 1 "<l\355nea de orden>" ># 1 "raceengine.cpp" ># 26 "raceengine.cpp" ># 1 "/usr/include/stdlib.h" 1 3 4 ># 25 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/include/features.h" 1 3 4 ># 295 "/usr/include/features.h" 3 4 ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 296 "/usr/include/features.h" 2 3 4 ># 318 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 ># 319 "/usr/include/features.h" 2 3 4 ># 26 "/usr/include/stdlib.h" 2 3 4 > > > > > > > ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 213 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 3 4 >typedef unsigned int size_t; ># 34 "/usr/include/stdlib.h" 2 3 4 > >extern "C" { > > > > > > ># 1 "/usr/include/bits/waitflags.h" 1 3 4 ># 43 "/usr/include/stdlib.h" 2 3 4 ># 1 "/usr/include/bits/waitstatus.h" 1 3 4 ># 63 "/usr/include/bits/waitstatus.h" 3 4 ># 1 "/usr/include/endian.h" 1 3 4 ># 37 "/usr/include/endian.h" 3 4 ># 1 "/usr/include/bits/endian.h" 1 3 4 ># 38 "/usr/include/endian.h" 2 3 4 ># 64 "/usr/include/bits/waitstatus.h" 2 3 4 > >union wait > { > int w_status; > struct > { > > unsigned int __w_termsig:7; > unsigned int __w_coredump:1; > unsigned int __w_retcode:8; > unsigned int:16; > > > > > > > > } __wait_terminated; > struct > { > > unsigned int __w_stopval:8; > unsigned int __w_stopsig:8; > unsigned int:16; > > > > > > > } __wait_stopped; > }; ># 44 "/usr/include/stdlib.h" 2 3 4 ># 93 "/usr/include/stdlib.h" 3 4 > > >typedef struct > { > int quot; > int rem; > } div_t; > > > >typedef struct > { > long int quot; > long int rem; > } ldiv_t; > > > > > > > >__extension__ typedef struct > { > long long int quot; > long long int rem; > } lldiv_t; > > ># 137 "/usr/include/stdlib.h" 3 4 >extern size_t __ctype_get_mb_cur_max (void) throw (); > > > > >extern double atof (__const char *__nptr) throw () __attribute__ ((__pure__)); > >extern int atoi (__const char *__nptr) throw () __attribute__ ((__pure__)); > >extern long int atol (__const char *__nptr) throw () __attribute__ ((__pure__)); > > > > > >__extension__ extern long long int atoll (__const char *__nptr) > throw () __attribute__ ((__pure__)); > > > > > >extern double strtod (__const char *__restrict __nptr, > char **__restrict __endptr) throw (); > > > > > >extern float strtof (__const char *__restrict __nptr, > char **__restrict __endptr) throw (); > >extern long double strtold (__const char *__restrict __nptr, > char **__restrict __endptr) throw (); > > > > > >extern long int strtol (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) throw (); > >extern unsigned long int strtoul (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw (); > > > > >__extension__ >extern long long int strtoq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) throw (); > >__extension__ >extern unsigned long long int strtouq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw (); > > > > > >__extension__ >extern long long int strtoll (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) throw (); > >__extension__ >extern unsigned long long int strtoull (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw (); > ># 225 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/include/xlocale.h" 1 3 4 ># 28 "/usr/include/xlocale.h" 3 4 >typedef struct __locale_struct >{ > > struct locale_data *__locales[13]; > > > const unsigned short int *__ctype_b; > const int *__ctype_tolower; > const int *__ctype_toupper; > > > const char *__names[13]; >} *__locale_t; ># 226 "/usr/include/stdlib.h" 2 3 4 > > > >extern long int strtol_l (__const char *__restrict __nptr, > char **__restrict __endptr, int __base, > __locale_t __loc) throw (); > >extern unsigned long int strtoul_l (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, __locale_t __loc) throw (); > >__extension__ >extern long long int strtoll_l (__const char *__restrict __nptr, > char **__restrict __endptr, int __base, > __locale_t __loc) throw (); > >__extension__ >extern unsigned long long int strtoull_l (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, __locale_t __loc) > throw (); > >extern double strtod_l (__const char *__restrict __nptr, > char **__restrict __endptr, __locale_t __loc) > throw (); > >extern float strtof_l (__const char *__restrict __nptr, > char **__restrict __endptr, __locale_t __loc) throw (); > >extern long double strtold_l (__const char *__restrict __nptr, > char **__restrict __endptr, > __locale_t __loc) throw (); > > > > > > >extern double __strtod_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > throw (); >extern float __strtof_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > throw (); >extern long double __strtold_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __group) throw (); > >extern long int __strtol_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) throw (); > > > >extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) throw (); > > > > >__extension__ >extern long long int __strtoll_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) throw (); > > > >__extension__ >extern unsigned long long int __strtoull_internal (__const char * > __restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > throw (); > > > > > > > > >extern __inline double >strtod (__const char *__restrict __nptr, char **__restrict __endptr) throw () >{ > return __strtod_internal (__nptr, __endptr, 0); >} >extern __inline long int >strtol (__const char *__restrict __nptr, char **__restrict __endptr, > int __base) throw () >{ > return __strtol_internal (__nptr, __endptr, __base, 0); >} >extern __inline unsigned long int >strtoul (__const char *__restrict __nptr, char **__restrict __endptr, > int __base) throw () >{ > return __strtoul_internal (__nptr, __endptr, __base, 0); >} > > > > >extern __inline float >strtof (__const char *__restrict __nptr, char **__restrict __endptr) throw () >{ > return __strtof_internal (__nptr, __endptr, 0); >} >extern __inline long double >strtold (__const char *__restrict __nptr, char **__restrict __endptr) throw () >{ > return __strtold_internal (__nptr, __endptr, 0); >} > > > > >__extension__ extern __inline long long int >strtoq (__const char *__restrict __nptr, char **__restrict __endptr, > int __base) throw () >{ > return __strtoll_internal (__nptr, __endptr, __base, 0); >} >__extension__ extern __inline unsigned long long int >strtouq (__const char *__restrict __nptr, char **__restrict __endptr, > int __base) throw () >{ > return __strtoull_internal (__nptr, __endptr, __base, 0); >} > > > > >__extension__ extern __inline long long int >strtoll (__const char *__restrict __nptr, char **__restrict __endptr, > int __base) throw () >{ > return __strtoll_internal (__nptr, __endptr, __base, 0); >} >__extension__ extern __inline unsigned long long int >strtoull (__const char * __restrict __nptr, char **__restrict __endptr, > int __base) throw () >{ > return __strtoull_internal (__nptr, __endptr, __base, 0); >} > > > > >extern __inline double >atof (__const char *__nptr) throw () >{ > return strtod (__nptr, (char **) __null); >} >extern __inline int >atoi (__const char *__nptr) throw () >{ > return (int) strtol (__nptr, (char **) __null, 10); >} >extern __inline long int >atol (__const char *__nptr) throw () >{ > return strtol (__nptr, (char **) __null, 10); >} > > > > >__extension__ extern __inline long long int >atoll (__const char *__nptr) throw () >{ > return strtoll (__nptr, (char **) __null, 10); >} > ># 408 "/usr/include/stdlib.h" 3 4 >extern char *l64a (long int __n) throw (); > > >extern long int a64l (__const char *__s) throw () __attribute__ ((__pure__)); > > > > ># 1 "/usr/include/sys/types.h" 1 3 4 ># 29 "/usr/include/sys/types.h" 3 4 >extern "C" { > ># 1 "/usr/include/bits/types.h" 1 3 4 ># 28 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/bits/types.h" 2 3 4 > > ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 32 "/usr/include/bits/types.h" 2 3 4 > > >typedef unsigned char __u_char; >typedef unsigned short int __u_short; >typedef unsigned int __u_int; >typedef unsigned long int __u_long; > > >typedef signed char __int8_t; >typedef unsigned char __uint8_t; >typedef signed short int __int16_t; >typedef unsigned short int __uint16_t; >typedef signed int __int32_t; >typedef unsigned int __uint32_t; > > > > >__extension__ typedef signed long long int __int64_t; >__extension__ typedef unsigned long long int __uint64_t; > > > > > > > >__extension__ typedef long long int __quad_t; >__extension__ typedef unsigned long long int __u_quad_t; ># 129 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/typesizes.h" 1 3 4 ># 130 "/usr/include/bits/types.h" 2 3 4 > > > > > > >__extension__ typedef unsigned long long int __dev_t; >__extension__ typedef unsigned int __uid_t; >__extension__ typedef unsigned int __gid_t; >__extension__ typedef unsigned long int __ino_t; >__extension__ typedef unsigned long long int __ino64_t; >__extension__ typedef unsigned int __mode_t; >__extension__ typedef unsigned int __nlink_t; >__extension__ typedef long int __off_t; >__extension__ typedef long long int __off64_t; >__extension__ typedef int __pid_t; >__extension__ typedef struct { int __val[2]; } __fsid_t; >__extension__ typedef long int __clock_t; >__extension__ typedef unsigned long int __rlim_t; >__extension__ typedef unsigned long long int __rlim64_t; >__extension__ typedef unsigned int __id_t; >__extension__ typedef long int __time_t; >__extension__ typedef unsigned int __useconds_t; >__extension__ typedef long int __suseconds_t; > >__extension__ typedef int __daddr_t; >__extension__ typedef long int __swblk_t; >__extension__ typedef int __key_t; > > >__extension__ typedef int __clockid_t; > > >__extension__ typedef int __timer_t; > > >__extension__ typedef long int __blksize_t; > > > > >__extension__ typedef long int __blkcnt_t; >__extension__ typedef long long int __blkcnt64_t; > > >__extension__ typedef unsigned long int __fsblkcnt_t; >__extension__ typedef unsigned long long int __fsblkcnt64_t; > > >__extension__ typedef unsigned long int __fsfilcnt_t; >__extension__ typedef unsigned long long int __fsfilcnt64_t; > >__extension__ typedef int __ssize_t; > > > >typedef __off64_t __loff_t; >typedef __quad_t *__qaddr_t; >typedef char *__caddr_t; > > >__extension__ typedef int __intptr_t; > > >__extension__ typedef unsigned int __socklen_t; ># 32 "/usr/include/sys/types.h" 2 3 4 > > > >typedef __u_char u_char; >typedef __u_short u_short; >typedef __u_int u_int; >typedef __u_long u_long; >typedef __quad_t quad_t; >typedef __u_quad_t u_quad_t; >typedef __fsid_t fsid_t; > > > > >typedef __loff_t loff_t; > > > >typedef __ino_t ino_t; > > > > > > >typedef __ino64_t ino64_t; > > > > >typedef __dev_t dev_t; > > > > >typedef __gid_t gid_t; > > > > >typedef __mode_t mode_t; > > > > >typedef __nlink_t nlink_t; > > > > >typedef __uid_t uid_t; > > > > > >typedef __off_t off_t; > > > > > > >typedef __off64_t off64_t; > > > > >typedef __pid_t pid_t; > > > > >typedef __id_t id_t; > > > > >typedef __ssize_t ssize_t; > > > > > >typedef __daddr_t daddr_t; >typedef __caddr_t caddr_t; > > > > > >typedef __key_t key_t; ># 133 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 58 "/usr/include/time.h" 3 4 > > >typedef __clock_t clock_t; > > > ># 74 "/usr/include/time.h" 3 4 > > >typedef __time_t time_t; > > > ># 92 "/usr/include/time.h" 3 4 >typedef __clockid_t clockid_t; ># 104 "/usr/include/time.h" 3 4 >typedef __timer_t timer_t; ># 134 "/usr/include/sys/types.h" 2 3 4 > > > >typedef __useconds_t useconds_t; > > > >typedef __suseconds_t suseconds_t; > > > > > ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 148 "/usr/include/sys/types.h" 2 3 4 > > > >typedef unsigned long int ulong; >typedef unsigned short int ushort; >typedef unsigned int uint; ># 191 "/usr/include/sys/types.h" 3 4 >typedef int int8_t __attribute__ ((__mode__ (__QI__))); >typedef int int16_t __attribute__ ((__mode__ (__HI__))); >typedef int int32_t __attribute__ ((__mode__ (__SI__))); >typedef int int64_t __attribute__ ((__mode__ (__DI__))); > > >typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); >typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); > >typedef int register_t __attribute__ ((__mode__ (__word__))); ># 216 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/sys/select.h" 1 3 4 ># 31 "/usr/include/sys/select.h" 3 4 ># 1 "/usr/include/bits/select.h" 1 3 4 ># 32 "/usr/include/sys/select.h" 2 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 23 "/usr/include/bits/sigset.h" 3 4 >typedef int __sig_atomic_t; > > > > >typedef struct > { > unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; > } __sigset_t; ># 35 "/usr/include/sys/select.h" 2 3 4 > > > >typedef __sigset_t sigset_t; > > > > > ># 1 "/usr/include/time.h" 1 3 4 ># 118 "/usr/include/time.h" 3 4 >struct timespec > { > __time_t tv_sec; > long int tv_nsec; > }; ># 45 "/usr/include/sys/select.h" 2 3 4 > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 69 "/usr/include/bits/time.h" 3 4 >struct timeval > { > __time_t tv_sec; > __suseconds_t tv_usec; > }; ># 47 "/usr/include/sys/select.h" 2 3 4 ># 55 "/usr/include/sys/select.h" 3 4 >typedef long int __fd_mask; ># 67 "/usr/include/sys/select.h" 3 4 >typedef struct > { > > > > __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; > > > > > > } fd_set; > > > > > > >typedef __fd_mask fd_mask; ># 99 "/usr/include/sys/select.h" 3 4 >extern "C" { ># 109 "/usr/include/sys/select.h" 3 4 >extern int select (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > struct timeval *__restrict __timeout); ># 121 "/usr/include/sys/select.h" 3 4 >extern int pselect (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > const struct timespec *__restrict __timeout, > const __sigset_t *__restrict __sigmask); > > >} ># 217 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/sysmacros.h" 1 3 4 ># 29 "/usr/include/sys/sysmacros.h" 3 4 >__extension__ >extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) > throw (); >__extension__ >extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) > throw (); >__extension__ >extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, > unsigned int __minor) > throw (); > > >__extension__ extern __inline unsigned int >gnu_dev_major (unsigned long long int __dev) throw () >{ > return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); >} > >__extension__ extern __inline unsigned int >gnu_dev_minor (unsigned long long int __dev) throw () >{ > return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); >} > >__extension__ extern __inline unsigned long long int >gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw () >{ > return ((__minor & 0xff) | ((__major & 0xfff) << 8) > | (((unsigned long long int) (__minor & ~0xff)) << 12) > | (((unsigned long long int) (__major & ~0xfff)) << 32)); >} ># 220 "/usr/include/sys/types.h" 2 3 4 > > > > >typedef __blksize_t blksize_t; > > > > > > >typedef __blkcnt_t blkcnt_t; > > > >typedef __fsblkcnt_t fsblkcnt_t; > > > >typedef __fsfilcnt_t fsfilcnt_t; ># 258 "/usr/include/sys/types.h" 3 4 >typedef __blkcnt64_t blkcnt64_t; >typedef __fsblkcnt64_t fsblkcnt64_t; >typedef __fsfilcnt64_t fsfilcnt64_t; > > > > > ># 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 ># 23 "/usr/include/bits/pthreadtypes.h" 3 4 ># 1 "/usr/include/bits/sched.h" 1 3 4 ># 83 "/usr/include/bits/sched.h" 3 4 >struct __sched_param > { > int __sched_priority; > }; ># 24 "/usr/include/bits/pthreadtypes.h" 2 3 4 > > >struct _pthread_fastlock >{ > long int __status; > int __spinlock; > >}; > > > >typedef struct _pthread_descr_struct *_pthread_descr; > > > > > >typedef struct __pthread_attr_s >{ > int __detachstate; > int __schedpolicy; > struct __sched_param __schedparam; > int __inheritsched; > int __scope; > size_t __guardsize; > int __stackaddr_set; > void *__stackaddr; > size_t __stacksize; >} pthread_attr_t; > > > > > >__extension__ typedef long long __pthread_cond_align_t; > > > > >typedef struct >{ > struct _pthread_fastlock __c_lock; > _pthread_descr __c_waiting; > char __padding[48 - sizeof (struct _pthread_fastlock) > - sizeof (_pthread_descr) - sizeof (__pthread_cond_align_t)]; > __pthread_cond_align_t __align; >} pthread_cond_t; > > > >typedef struct >{ > int __dummy; >} pthread_condattr_t; > > >typedef unsigned int pthread_key_t; > > > > > >typedef struct >{ > int __m_reserved; > int __m_count; > _pthread_descr __m_owner; > int __m_kind; > struct _pthread_fastlock __m_lock; >} pthread_mutex_t; > > > >typedef struct >{ > int __mutexkind; >} pthread_mutexattr_t; > > > >typedef int pthread_once_t; > > > > >typedef struct _pthread_rwlock_t >{ > struct _pthread_fastlock __rw_lock; > int __rw_readers; > _pthread_descr __rw_writer; > _pthread_descr __rw_read_waiting; > _pthread_descr __rw_write_waiting; > int __rw_kind; > int __rw_pshared; >} pthread_rwlock_t; > > > >typedef struct >{ > int __lockkind; > int __pshared; >} pthread_rwlockattr_t; > > > > >typedef volatile int pthread_spinlock_t; > > >typedef struct { > struct _pthread_fastlock __ba_lock; > int __ba_required; > int __ba_present; > _pthread_descr __ba_waiting; >} pthread_barrier_t; > > >typedef struct { > int __pshared; >} pthread_barrierattr_t; > > > > > >typedef unsigned long int pthread_t; ># 267 "/usr/include/sys/types.h" 2 3 4 > > >} ># 417 "/usr/include/stdlib.h" 2 3 4 > > > > > > >extern long int random (void) throw (); > > >extern void srandom (unsigned int __seed) throw (); > > > > > >extern char *initstate (unsigned int __seed, char *__statebuf, > size_t __statelen) throw (); > > > >extern char *setstate (char *__statebuf) throw (); > > > > > > > >struct random_data > { > int32_t *fptr; > int32_t *rptr; > int32_t *state; > int rand_type; > int rand_deg; > int rand_sep; > int32_t *end_ptr; > }; > >extern int random_r (struct random_data *__restrict __buf, > int32_t *__restrict __result) throw (); > >extern int srandom_r (unsigned int __seed, struct random_data *__buf) throw (); > >extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, > size_t __statelen, > struct random_data *__restrict __buf) throw (); > >extern int setstate_r (char *__restrict __statebuf, > struct random_data *__restrict __buf) throw (); > > > > > > >extern int rand (void) throw (); > >extern void srand (unsigned int __seed) throw (); > > > > >extern int rand_r (unsigned int *__seed) throw (); > > > > > > > >extern double drand48 (void) throw (); >extern double erand48 (unsigned short int __xsubi[3]) throw (); > > >extern long int lrand48 (void) throw (); >extern long int nrand48 (unsigned short int __xsubi[3]) throw (); > > >extern long int mrand48 (void) throw (); >extern long int jrand48 (unsigned short int __xsubi[3]) throw (); > > >extern void srand48 (long int __seedval) throw (); >extern unsigned short int *seed48 (unsigned short int __seed16v[3]) throw (); >extern void lcong48 (unsigned short int __param[7]) throw (); > > > > > >struct drand48_data > { > unsigned short int __x[3]; > unsigned short int __old_x[3]; > unsigned short int __c; > unsigned short int __init; > unsigned long long int __a; > }; > > >extern int drand48_r (struct drand48_data *__restrict __buffer, > double *__restrict __result) throw (); >extern int erand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > double *__restrict __result) throw (); > > >extern int lrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) throw (); >extern int nrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) throw (); > > >extern int mrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) throw (); >extern int jrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) throw (); > > >extern int srand48_r (long int __seedval, struct drand48_data *__buffer) > throw (); > >extern int seed48_r (unsigned short int __seed16v[3], > struct drand48_data *__buffer) throw (); > >extern int lcong48_r (unsigned short int __param[7], > struct drand48_data *__buffer) throw (); > > > > > > > > > >extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)); > >extern void *calloc (size_t __nmemb, size_t __size) > throw () __attribute__ ((__malloc__)); > > > > > > > >extern void *realloc (void *__ptr, size_t __size) throw () __attribute__ ((__malloc__)); > >extern void free (void *__ptr) throw (); > > > > >extern void cfree (void *__ptr) throw (); > > > ># 1 "/usr/include/alloca.h" 1 3 4 ># 25 "/usr/include/alloca.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 26 "/usr/include/alloca.h" 2 3 4 > >extern "C" { > > > > > >extern void *alloca (size_t __size) throw (); > > > > > >} ># 579 "/usr/include/stdlib.h" 2 3 4 > > > > >extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)); > > > > >extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) > throw () __attribute__ ((__malloc__)); > > > > >extern void abort (void) throw () __attribute__ ((__noreturn__)); > > > >extern int atexit (void (*__func) (void)) throw (); > > > > > >extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) > throw (); > > > > > > >extern void exit (int __status) throw () __attribute__ ((__noreturn__)); > > > > > > >extern void _Exit (int __status) throw () __attribute__ ((__noreturn__)); > > > > > > >extern char *getenv (__const char *__name) throw (); > > > > >extern char *__secure_getenv (__const char *__name) throw (); > > > > > >extern int putenv (char *__string) throw (); > > > > > >extern int setenv (__const char *__name, __const char *__value, int __replace) > throw (); > > >extern int unsetenv (__const char *__name) throw (); > > > > > > >extern int clearenv (void) throw (); ># 663 "/usr/include/stdlib.h" 3 4 >extern char *mktemp (char *__template) throw (); ># 674 "/usr/include/stdlib.h" 3 4 >extern int mkstemp (char *__template); ># 683 "/usr/include/stdlib.h" 3 4 >extern int mkstemp64 (char *__template); ># 693 "/usr/include/stdlib.h" 3 4 >extern char *mkdtemp (char *__template) throw (); > > > > > > > > >extern int system (__const char *__command); > > > > > > > >extern char *canonicalize_file_name (__const char *__name) throw (); ># 720 "/usr/include/stdlib.h" 3 4 >extern char *realpath (__const char *__restrict __name, > char *__restrict __resolved) throw (); > > > > > > >typedef int (*__compar_fn_t) (__const void *, __const void *); > > >typedef __compar_fn_t comparison_fn_t; > > > > > > >extern void *bsearch (__const void *__key, __const void *__base, > size_t __nmemb, size_t __size, __compar_fn_t __compar); > > > >extern void qsort (void *__base, size_t __nmemb, size_t __size, > __compar_fn_t __compar); > > > >extern int abs (int __x) throw () __attribute__ ((__const__)); >extern long int labs (long int __x) throw () __attribute__ ((__const__)); > > > >__extension__ extern long long int llabs (long long int __x) > throw () __attribute__ ((__const__)); > > > > > > > >extern div_t div (int __numer, int __denom) > throw () __attribute__ ((__const__)); >extern ldiv_t ldiv (long int __numer, long int __denom) > throw () __attribute__ ((__const__)); > > > > >__extension__ extern lldiv_t lldiv (long long int __numer, > long long int __denom) > throw () __attribute__ ((__const__)); > ># 784 "/usr/include/stdlib.h" 3 4 >extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) throw (); > > > > >extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) throw (); > > > > >extern char *gcvt (double __value, int __ndigit, char *__buf) throw (); > > > > >extern char *qecvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) throw (); >extern char *qfcvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) throw (); >extern char *qgcvt (long double __value, int __ndigit, char *__buf) throw (); > > > > >extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) throw (); >extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) throw (); > >extern int qecvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) throw (); >extern int qfcvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) throw (); > > > > > > > >extern int mblen (__const char *__s, size_t __n) throw (); > > >extern int mbtowc (wchar_t *__restrict __pwc, > __const char *__restrict __s, size_t __n) throw (); > > >extern int wctomb (char *__s, wchar_t __wchar) throw (); > > > >extern size_t mbstowcs (wchar_t *__restrict __pwcs, > __const char *__restrict __s, size_t __n) throw (); > >extern size_t wcstombs (char *__restrict __s, > __const wchar_t *__restrict __pwcs, size_t __n) > throw (); > > > > > > > > >extern int rpmatch (__const char *__response) throw (); ># 866 "/usr/include/stdlib.h" 3 4 >extern int getsubopt (char **__restrict __optionp, > char *__const *__restrict __tokens, > char **__restrict __valuep) throw (); > > > > > >extern void setkey (__const char *__key) throw (); > > > > > > > >extern int posix_openpt (int __oflag); > > > > > > > >extern int grantpt (int __fd) throw (); > > > >extern int unlockpt (int __fd) throw (); > > > > >extern char *ptsname (int __fd) throw (); > > > > > > >extern int ptsname_r (int __fd, char *__buf, size_t __buflen) throw (); > > >extern int getpt (void); > > > > > > >extern int getloadavg (double __loadavg[], int __nelem) throw (); > > > > > >} ># 27 "raceengine.cpp" 2 ># 1 "/usr/include/stdio.h" 1 3 4 ># 30 "/usr/include/stdio.h" 3 4 >extern "C" { > > > ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 35 "/usr/include/stdio.h" 2 3 4 ># 44 "/usr/include/stdio.h" 3 4 > > >typedef struct _IO_FILE FILE; > > > > > ># 62 "/usr/include/stdio.h" 3 4 >typedef struct _IO_FILE __FILE; ># 72 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/libio.h" 1 3 4 ># 32 "/usr/include/libio.h" 3 4 ># 1 "/usr/include/_G_config.h" 1 3 4 ># 14 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 354 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 3 4 >typedef unsigned int wint_t; ># 15 "/usr/include/_G_config.h" 2 3 4 ># 24 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 > ># 1 "/usr/include/bits/wchar.h" 1 3 4 ># 51 "/usr/include/wchar.h" 2 3 4 ># 76 "/usr/include/wchar.h" 3 4 >typedef struct >{ > int __count; > union > { > wint_t __wch; > char __wchb[4]; > } __value; >} __mbstate_t; ># 25 "/usr/include/_G_config.h" 2 3 4 > >typedef struct >{ > __off_t __pos; > __mbstate_t __state; >} _G_fpos_t; >typedef struct >{ > __off64_t __pos; > __mbstate_t __state; >} _G_fpos64_t; ># 44 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/include/gconv.h" 1 3 4 ># 28 "/usr/include/gconv.h" 3 4 ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 ># 29 "/usr/include/gconv.h" 2 3 4 > > ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 32 "/usr/include/gconv.h" 2 3 4 > > > > > >enum >{ > __GCONV_OK = 0, > __GCONV_NOCONV, > __GCONV_NODB, > __GCONV_NOMEM, > > __GCONV_EMPTY_INPUT, > __GCONV_FULL_OUTPUT, > __GCONV_ILLEGAL_INPUT, > __GCONV_INCOMPLETE_INPUT, > > __GCONV_ILLEGAL_DESCRIPTOR, > __GCONV_INTERNAL_ERROR >}; > > > >enum >{ > __GCONV_IS_LAST = 0x0001, > __GCONV_IGNORE_ERRORS = 0x0002 >}; > > > >struct __gconv_step; >struct __gconv_step_data; >struct __gconv_loaded_object; >struct __gconv_trans_data; > > > >typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *, > __const unsigned char **, __const unsigned char *, > unsigned char **, size_t *, int, int); > > >typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char); > > >typedef int (*__gconv_init_fct) (struct __gconv_step *); >typedef void (*__gconv_end_fct) (struct __gconv_step *); > > > >typedef int (*__gconv_trans_fct) (struct __gconv_step *, > struct __gconv_step_data *, void *, > __const unsigned char *, > __const unsigned char **, > __const unsigned char *, unsigned char **, > size_t *); > > >typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *, > __const unsigned char *, > unsigned char *, unsigned char *); > > >typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***, > size_t *); > > >typedef int (*__gconv_trans_init_fct) (void **, const char *); >typedef void (*__gconv_trans_end_fct) (void *); > >struct __gconv_trans_data >{ > > __gconv_trans_fct __trans_fct; > __gconv_trans_context_fct __trans_context_fct; > __gconv_trans_end_fct __trans_end_fct; > void *__data; > struct __gconv_trans_data *__next; >}; > > > >struct __gconv_step >{ > struct __gconv_loaded_object *__shlib_handle; > __const char *__modname; > > int __counter; > > char *__from_name; > char *__to_name; > > __gconv_fct __fct; > __gconv_btowc_fct __btowc_fct; > __gconv_init_fct __init_fct; > __gconv_end_fct __end_fct; > > > > int __min_needed_from; > int __max_needed_from; > int __min_needed_to; > int __max_needed_to; > > > int __stateful; > > void *__data; >}; > > > >struct __gconv_step_data >{ > unsigned char *__outbuf; > unsigned char *__outbufend; > > > > int __flags; > > > > int __invocation_counter; > > > > int __internal_use; > > __mbstate_t *__statep; > __mbstate_t __state; > > > > struct __gconv_trans_data *__trans; >}; > > > >typedef struct __gconv_info >{ > size_t __nsteps; > struct __gconv_step *__steps; > __extension__ struct __gconv_step_data __data []; >} *__gconv_t; ># 45 "/usr/include/_G_config.h" 2 3 4 >typedef union >{ > struct __gconv_info __cd; > struct > { > struct __gconv_info __cd; > struct __gconv_step_data __data; > } __combined; >} _G_iconv_t; > >typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); >typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); ># 33 "/usr/include/libio.h" 2 3 4 ># 53 "/usr/include/libio.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stdarg.h" 1 3 4 ># 43 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stdarg.h" 3 4 >typedef __builtin_va_list __gnuc_va_list; ># 54 "/usr/include/libio.h" 2 3 4 ># 163 "/usr/include/libio.h" 3 4 >struct _IO_jump_t; struct _IO_FILE; ># 173 "/usr/include/libio.h" 3 4 >typedef void _IO_lock_t; > > > > > >struct _IO_marker { > struct _IO_marker *_next; > struct _IO_FILE *_sbuf; > > > > int _pos; ># 196 "/usr/include/libio.h" 3 4 >}; > > >enum __codecvt_result >{ > __codecvt_ok, > __codecvt_partial, > __codecvt_error, > __codecvt_noconv >}; ># 264 "/usr/include/libio.h" 3 4 >struct _IO_FILE { > int _flags; > > > > > char* _IO_read_ptr; > char* _IO_read_end; > char* _IO_read_base; > char* _IO_write_base; > char* _IO_write_ptr; > char* _IO_write_end; > char* _IO_buf_base; > char* _IO_buf_end; > > char *_IO_save_base; > char *_IO_backup_base; > char *_IO_save_end; > > struct _IO_marker *_markers; > > struct _IO_FILE *_chain; > > int _fileno; > > > > int _flags2; > > __off_t _old_offset; > > > > unsigned short _cur_column; > signed char _vtable_offset; > char _shortbuf[1]; > > > > _IO_lock_t *_lock; ># 312 "/usr/include/libio.h" 3 4 > __off64_t _offset; > > > > > > void *__pad1; > void *__pad2; > > int _mode; > > char _unused2[15 * sizeof (int) - 2 * sizeof (void *)]; > >}; > > > > > >struct _IO_FILE_plus; > >extern struct _IO_FILE_plus _IO_2_1_stdin_; >extern struct _IO_FILE_plus _IO_2_1_stdout_; >extern struct _IO_FILE_plus _IO_2_1_stderr_; ># 351 "/usr/include/libio.h" 3 4 >typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); > > > > > > > >typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, > size_t __n); > > > > > > > >typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); > > >typedef int __io_close_fn (void *__cookie); > > > > >typedef __io_read_fn cookie_read_function_t; >typedef __io_write_fn cookie_write_function_t; >typedef __io_seek_fn cookie_seek_function_t; >typedef __io_close_fn cookie_close_function_t; > > >typedef struct >{ > __io_read_fn *read; > __io_write_fn *write; > __io_seek_fn *seek; > __io_close_fn *close; >} _IO_cookie_io_functions_t; >typedef _IO_cookie_io_functions_t cookie_io_functions_t; > >struct _IO_cookie_file; > > >extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write, > void *__cookie, _IO_cookie_io_functions_t __fns); > > > > >extern "C" { > > >extern int __underflow (_IO_FILE *) throw (); >extern int __uflow (_IO_FILE *) throw (); >extern int __overflow (_IO_FILE *, int) throw (); >extern wint_t __wunderflow (_IO_FILE *) throw (); >extern wint_t __wuflow (_IO_FILE *) throw (); >extern wint_t __woverflow (_IO_FILE *, wint_t) throw (); ># 433 "/usr/include/libio.h" 3 4 >extern int _IO_getc (_IO_FILE *__fp) throw (); >extern int _IO_putc (int __c, _IO_FILE *__fp) throw (); >extern int _IO_feof (_IO_FILE *__fp) throw (); >extern int _IO_ferror (_IO_FILE *__fp) throw (); > >extern int _IO_peekc_locked (_IO_FILE *__fp) throw (); > > > > > >extern void _IO_flockfile (_IO_FILE *) throw (); >extern void _IO_funlockfile (_IO_FILE *) throw (); >extern int _IO_ftrylockfile (_IO_FILE *) throw (); ># 463 "/usr/include/libio.h" 3 4 >extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, > __gnuc_va_list, int *__restrict) throw (); >extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, > __gnuc_va_list) throw (); >extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) throw (); >extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) throw (); > >extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) throw (); >extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) throw (); > >extern void _IO_free_backup_area (_IO_FILE *) throw (); ># 521 "/usr/include/libio.h" 3 4 >} ># 73 "/usr/include/stdio.h" 2 3 4 > > > > >typedef __gnuc_va_list va_list; ># 86 "/usr/include/stdio.h" 3 4 > > >typedef _G_fpos_t fpos_t; > > > > > >typedef _G_fpos64_t fpos64_t; ># 138 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 139 "/usr/include/stdio.h" 2 3 4 > > > >extern struct _IO_FILE *stdin; >extern struct _IO_FILE *stdout; >extern struct _IO_FILE *stderr; > > > > > > > >extern int remove (__const char *__filename) throw (); > >extern int rename (__const char *__old, __const char *__new) throw (); > > > > > > > > > >extern FILE *tmpfile (void); ># 174 "/usr/include/stdio.h" 3 4 >extern FILE *tmpfile64 (void); > > > >extern char *tmpnam (char *__s) throw (); > > > > > >extern char *tmpnam_r (char *__s) throw (); ># 196 "/usr/include/stdio.h" 3 4 >extern char *tempnam (__const char *__dir, __const char *__pfx) > throw () __attribute__ ((__malloc__)); > > > > > > > > >extern int fclose (FILE *__stream); > > > > >extern int fflush (FILE *__stream); > ># 221 "/usr/include/stdio.h" 3 4 >extern int fflush_unlocked (FILE *__stream); ># 231 "/usr/include/stdio.h" 3 4 >extern int fcloseall (void); > > > > > > > > > >extern FILE *fopen (__const char *__restrict __filename, > __const char *__restrict __modes); > > > > >extern FILE *freopen (__const char *__restrict __filename, > __const char *__restrict __modes, > FILE *__restrict __stream); ># 262 "/usr/include/stdio.h" 3 4 > > >extern FILE *fopen64 (__const char *__restrict __filename, > __const char *__restrict __modes); >extern FILE *freopen64 (__const char *__restrict __filename, > __const char *__restrict __modes, > FILE *__restrict __stream); > > > > >extern FILE *fdopen (int __fd, __const char *__modes) throw (); > > > > > >extern FILE *fopencookie (void *__restrict __magic_cookie, > __const char *__restrict __modes, > _IO_cookie_io_functions_t __io_funcs) throw (); > > >extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes) throw (); > > > > >extern FILE *open_memstream (char **__restrict __bufloc, > size_t *__restrict __sizeloc) throw (); > > > > > > >extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw (); > > > >extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, > int __modes, size_t __n) throw (); > > > > > >extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, > size_t __size) throw (); > > >extern void setlinebuf (FILE *__stream) throw (); > > > > > > > > >extern int fprintf (FILE *__restrict __stream, > __const char *__restrict __format, ...); > > > > >extern int printf (__const char *__restrict __format, ...); > >extern int sprintf (char *__restrict __s, > __const char *__restrict __format, ...) throw (); > > > > > >extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg); > > > > >extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); > >extern int vsprintf (char *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg) throw (); > > > > > >extern int snprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, ...) > throw () __attribute__ ((__format__ (__printf__, 3, 4))); > >extern int vsnprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__printf__, 3, 0))); > > > > > > >extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f, > __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__printf__, 2, 0))); >extern int __asprintf (char **__restrict __ptr, > __const char *__restrict __fmt, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))); >extern int asprintf (char **__restrict __ptr, > __const char *__restrict __fmt, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))); > > > > > > > >extern int vdprintf (int __fd, __const char *__restrict __fmt, > __gnuc_va_list __arg) > __attribute__ ((__format__ (__printf__, 2, 0))); >extern int dprintf (int __fd, __const char *__restrict __fmt, ...) > __attribute__ ((__format__ (__printf__, 2, 3))); > > > > > > > > >extern int fscanf (FILE *__restrict __stream, > __const char *__restrict __format, ...); > > > > >extern int scanf (__const char *__restrict __format, ...); > >extern int sscanf (__const char *__restrict __s, > __const char *__restrict __format, ...) throw (); > > > > > > > > >extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg) > __attribute__ ((__format__ (__scanf__, 2, 0))); > > > > > >extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) > __attribute__ ((__format__ (__scanf__, 1, 0))); > > >extern int vsscanf (__const char *__restrict __s, > __const char *__restrict __format, __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__scanf__, 2, 0))); > > > > > > > > > >extern int fgetc (FILE *__stream); >extern int getc (FILE *__stream); > > > > > >extern int getchar (void); > ># 454 "/usr/include/stdio.h" 3 4 >extern int getc_unlocked (FILE *__stream); >extern int getchar_unlocked (void); ># 465 "/usr/include/stdio.h" 3 4 >extern int fgetc_unlocked (FILE *__stream); > > > > > > > > > > > >extern int fputc (int __c, FILE *__stream); >extern int putc (int __c, FILE *__stream); > > > > > >extern int putchar (int __c); > ># 498 "/usr/include/stdio.h" 3 4 >extern int fputc_unlocked (int __c, FILE *__stream); > > > > > > > >extern int putc_unlocked (int __c, FILE *__stream); >extern int putchar_unlocked (int __c); > > > > > > >extern int getw (FILE *__stream); > > >extern int putw (int __w, FILE *__stream); > > > > > > > > >extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream); > > > > > > >extern char *gets (char *__s); > ># 543 "/usr/include/stdio.h" 3 4 >extern char *fgets_unlocked (char *__restrict __s, int __n, > FILE *__restrict __stream); ># 559 "/usr/include/stdio.h" 3 4 >extern __ssize_t __getdelim (char **__restrict __lineptr, > size_t *__restrict __n, int __delimiter, > FILE *__restrict __stream); >extern __ssize_t getdelim (char **__restrict __lineptr, > size_t *__restrict __n, int __delimiter, > FILE *__restrict __stream); > > > > > > > >extern __ssize_t getline (char **__restrict __lineptr, > size_t *__restrict __n, > FILE *__restrict __stream); > > > > > > > > >extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); > > > > > >extern int puts (__const char *__s); > > > > > > >extern int ungetc (int __c, FILE *__stream); > > > > > > >extern size_t fread (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream); > > > > >extern size_t fwrite (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __s); > ># 620 "/usr/include/stdio.h" 3 4 >extern int fputs_unlocked (__const char *__restrict __s, > FILE *__restrict __stream); ># 631 "/usr/include/stdio.h" 3 4 >extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream); >extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream); > > > > > > > > >extern int fseek (FILE *__stream, long int __off, int __whence); > > > > >extern long int ftell (FILE *__stream); > > > > >extern void rewind (FILE *__stream); > ># 667 "/usr/include/stdio.h" 3 4 >extern int fseeko (FILE *__stream, __off_t __off, int __whence); > > > > >extern __off_t ftello (FILE *__stream); ># 686 "/usr/include/stdio.h" 3 4 > > > > > > >extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); > > > > >extern int fsetpos (FILE *__stream, __const fpos_t *__pos); ># 709 "/usr/include/stdio.h" 3 4 > > > >extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); >extern __off64_t ftello64 (FILE *__stream); >extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); >extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos); > > > > >extern void clearerr (FILE *__stream) throw (); > >extern int feof (FILE *__stream) throw (); > >extern int ferror (FILE *__stream) throw (); > > > > >extern void clearerr_unlocked (FILE *__stream) throw (); >extern int feof_unlocked (FILE *__stream) throw (); >extern int ferror_unlocked (FILE *__stream) throw (); > > > > > > > > >extern void perror (__const char *__s); > > > > > > ># 1 "/usr/include/bits/sys_errlist.h" 1 3 4 ># 27 "/usr/include/bits/sys_errlist.h" 3 4 >extern int sys_nerr; >extern __const char *__const sys_errlist[]; > > >extern int _sys_nerr; >extern __const char *__const _sys_errlist[]; ># 748 "/usr/include/stdio.h" 2 3 4 > > > > >extern int fileno (FILE *__stream) throw (); > > > > >extern int fileno_unlocked (FILE *__stream) throw (); ># 767 "/usr/include/stdio.h" 3 4 >extern FILE *popen (__const char *__command, __const char *__modes); > > > > > >extern int pclose (FILE *__stream); > > > > > >extern char *ctermid (char *__s) throw (); > > > > > >extern char *cuserid (char *__s); > > > > >struct obstack; > > >extern int obstack_printf (struct obstack *__restrict __obstack, > __const char *__restrict __format, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))); >extern int obstack_vprintf (struct obstack *__restrict __obstack, > __const char *__restrict __format, > __gnuc_va_list __args) > throw () __attribute__ ((__format__ (__printf__, 2, 0))); > > > > > > > >extern void flockfile (FILE *__stream) throw (); > > > >extern int ftrylockfile (FILE *__stream) throw (); > > >extern void funlockfile (FILE *__stream) throw (); ># 828 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio.h" 1 3 4 ># 33 "/usr/include/bits/stdio.h" 3 4 >inline int >vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg) >{ > return vfprintf (stdout, __fmt, __arg); >} > > >inline int >getchar (void) >{ > return _IO_getc (stdin); >} > > > > >inline int >getc_unlocked (FILE *__fp) >{ > return ((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); >} > > >inline int >getchar_unlocked (void) >{ > return ((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); >} > > > > >inline int >putchar (int __c) >{ > return _IO_putc (__c, stdout); >} > > > > >inline int >fputc_unlocked (int __c, FILE *__stream) >{ > return (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); >} > > > > > >inline int >putc_unlocked (int __c, FILE *__stream) >{ > return (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); >} > > >inline int >putchar_unlocked (int __c) >{ > return (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); >} > > > > > >inline __ssize_t >getline (char **__lineptr, size_t *__n, FILE *__stream) >{ > return __getdelim (__lineptr, __n, '\n', __stream); >} > > > > > >inline int >feof_unlocked (FILE *__stream) throw () >{ > return (((__stream)->_flags & 0x10) != 0); >} > > >inline int >ferror_unlocked (FILE *__stream) throw () >{ > return (((__stream)->_flags & 0x20) != 0); >} ># 829 "/usr/include/stdio.h" 2 3 4 > > >} ># 28 "raceengine.cpp" 2 ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgfclient.h" 1 ># 30 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgfclient.h" ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" 1 ># 32 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" ># 1 "/usr/include/sys/param.h" 1 3 4 ># 22 "/usr/include/sys/param.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h" 1 3 4 ># 11 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/syslimits.h" 1 3 4 > > > > > > ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h" 1 3 4 ># 122 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h" 3 4 ># 1 "/usr/include/limits.h" 1 3 4 ># 144 "/usr/include/limits.h" 3 4 ># 1 "/usr/include/bits/posix1_lim.h" 1 3 4 ># 130 "/usr/include/bits/posix1_lim.h" 3 4 ># 1 "/usr/include/bits/local_lim.h" 1 3 4 ># 36 "/usr/include/bits/local_lim.h" 3 4 ># 1 "/usr/include/linux/limits.h" 1 3 4 ># 37 "/usr/include/bits/local_lim.h" 2 3 4 ># 131 "/usr/include/bits/posix1_lim.h" 2 3 4 ># 145 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/posix2_lim.h" 1 3 4 ># 149 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/xopen_lim.h" 1 3 4 ># 34 "/usr/include/bits/xopen_lim.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 35 "/usr/include/bits/xopen_lim.h" 2 3 4 ># 153 "/usr/include/limits.h" 2 3 4 ># 123 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h" 2 3 4 ># 8 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/syslimits.h" 2 3 4 ># 12 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h" 2 3 4 ># 23 "/usr/include/sys/param.h" 2 3 4 > ># 1 "/usr/include/linux/param.h" 1 3 4 > > > ># 1 "/usr/include/asm/param.h" 1 3 4 ># 5 "/usr/include/linux/param.h" 2 3 4 ># 25 "/usr/include/sys/param.h" 2 3 4 ># 33 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" 2 ># 1 "/usr/include/assert.h" 1 3 4 ># 65 "/usr/include/assert.h" 3 4 >extern "C" { > > >extern void __assert_fail (__const char *__assertion, __const char *__file, > unsigned int __line, __const char *__function) > throw () __attribute__ ((__noreturn__)); > > >extern void __assert_perror_fail (int __errnum, __const char *__file, > unsigned int __line, > __const char *__function) > throw () __attribute__ ((__noreturn__)); > > > > >extern void __assert (const char *__assertion, const char *__file, int __line) > throw () __attribute__ ((__noreturn__)); > > >} ># 34 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" 2 > > > > > ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stdarg.h" 1 3 4 ># 40 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" 2 ># 1 "/usr/include/string.h" 1 3 4 ># 28 "/usr/include/string.h" 3 4 >extern "C" { > > > > ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 34 "/usr/include/string.h" 2 3 4 > > > > >extern void *memcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) throw (); > > >extern void *memmove (void *__dest, __const void *__src, size_t __n) > throw (); > > > > > > >extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, > int __c, size_t __n) > throw (); > > > > > >extern void *memset (void *__s, int __c, size_t __n) throw (); > > >extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) > throw () __attribute__ ((__pure__)); > > >extern void *memchr (__const void *__s, int __c, size_t __n) > throw () __attribute__ ((__pure__)); > > > > > >extern void *rawmemchr (__const void *__s, int __c) throw () __attribute__ ((__pure__)); > > >extern void *memrchr (__const void *__s, int __c, size_t __n) > throw () __attribute__ ((__pure__)); > > > > > >extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) > throw (); > >extern char *strncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) throw (); > > >extern char *strcat (char *__restrict __dest, __const char *__restrict __src) > throw (); > >extern char *strncat (char *__restrict __dest, __const char *__restrict __src, > size_t __n) throw (); > > >extern int strcmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)); > >extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) > throw () __attribute__ ((__pure__)); > > >extern int strcoll (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)); > >extern size_t strxfrm (char *__restrict __dest, > __const char *__restrict __src, size_t __n) throw (); > ># 117 "/usr/include/string.h" 3 4 >extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l) > throw () __attribute__ ((__pure__)); > >extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n, > __locale_t __l) throw (); > > > > >extern char *strdup (__const char *__s) throw () __attribute__ ((__malloc__)); > > > > > > >extern char *strndup (__const char *__string, size_t __n) > throw () __attribute__ ((__malloc__)); ># 160 "/usr/include/string.h" 3 4 > > >extern char *strchr (__const char *__s, int __c) throw () __attribute__ ((__pure__)); > >extern char *strrchr (__const char *__s, int __c) throw () __attribute__ ((__pure__)); > > > > > >extern char *strchrnul (__const char *__s, int __c) throw () __attribute__ ((__pure__)); > > > > > >extern size_t strcspn (__const char *__s, __const char *__reject) > throw () __attribute__ ((__pure__)); > > >extern size_t strspn (__const char *__s, __const char *__accept) > throw () __attribute__ ((__pure__)); > >extern char *strpbrk (__const char *__s, __const char *__accept) > throw () __attribute__ ((__pure__)); > >extern char *strstr (__const char *__haystack, __const char *__needle) > throw () __attribute__ ((__pure__)); > > > >extern char *strtok (char *__restrict __s, __const char *__restrict __delim) > throw (); > > > > >extern char *__strtok_r (char *__restrict __s, > __const char *__restrict __delim, > char **__restrict __save_ptr) throw (); > >extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, > char **__restrict __save_ptr) throw (); > > > > >extern char *strcasestr (__const char *__haystack, __const char *__needle) > throw () __attribute__ ((__pure__)); > > > > > > >extern void *memmem (__const void *__haystack, size_t __haystacklen, > __const void *__needle, size_t __needlelen) > throw () __attribute__ ((__pure__)); > > > >extern void *__mempcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) throw (); >extern void *mempcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) throw (); > > > > > >extern size_t strlen (__const char *__s) throw () __attribute__ ((__pure__)); > > > > > >extern size_t strnlen (__const char *__string, size_t __maxlen) > throw () __attribute__ ((__pure__)); > > > > > >extern char *strerror (int __errnum) throw (); > > > > >extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) throw (); > > > > >extern void __bzero (void *__s, size_t __n) throw (); > > > >extern void bcopy (__const void *__src, void *__dest, size_t __n) throw (); > > >extern void bzero (void *__s, size_t __n) throw (); > > >extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) > throw () __attribute__ ((__pure__)); > > >extern char *index (__const char *__s, int __c) throw () __attribute__ ((__pure__)); > > >extern char *rindex (__const char *__s, int __c) throw () __attribute__ ((__pure__)); > > > >extern int ffs (int __i) throw () __attribute__ ((__const__)); > > > > >extern int ffsl (long int __l) throw () __attribute__ ((__const__)); > >__extension__ extern int ffsll (long long int __ll) > throw () __attribute__ ((__const__)); > > > > >extern int strcasecmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)); > > >extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) > throw () __attribute__ ((__pure__)); > > > > > >extern int strcasecmp_l (__const char *__s1, __const char *__s2, > __locale_t __loc) throw () __attribute__ ((__pure__)); > >extern int strncasecmp_l (__const char *__s1, __const char *__s2, > size_t __n, __locale_t __loc) > throw () __attribute__ ((__pure__)); > > > > > >extern char *strsep (char **__restrict __stringp, > __const char *__restrict __delim) throw (); > > > > >extern int strverscmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)); > > >extern char *strsignal (int __sig) throw (); > > >extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src) > throw (); >extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src) > throw (); > > > >extern char *__stpncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) throw (); >extern char *stpncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) throw (); > > >extern char *strfry (char *__string) throw (); > > >extern void *memfrob (void *__s, size_t __n) throw (); > > > > > > >extern char *basename (__const char *__filename) throw (); ># 379 "/usr/include/string.h" 3 4 >} ># 41 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" 2 ># 1 "/usr/include/math.h" 1 3 4 ># 29 "/usr/include/math.h" 3 4 >extern "C" { > > > ># 1 "/usr/include/bits/huge_val.h" 1 3 4 ># 34 "/usr/include/math.h" 2 3 4 > > > ># 1 "/usr/include/bits/nan.h" 1 3 4 ># 38 "/usr/include/math.h" 2 3 4 > > ># 1 "/usr/include/bits/mathdef.h" 1 3 4 ># 29 "/usr/include/bits/mathdef.h" 3 4 >typedef long double float_t; > >typedef long double double_t; ># 41 "/usr/include/math.h" 2 3 4 ># 65 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern double acos (double __x) throw (); extern double __acos (double __x) throw (); > >extern double asin (double __x) throw (); extern double __asin (double __x) throw (); > >extern double atan (double __x) throw (); extern double __atan (double __x) throw (); > >extern double atan2 (double __y, double __x) throw (); extern double __atan2 (double __y, double __x) throw (); > > >extern double cos (double __x) throw (); extern double __cos (double __x) throw (); > >extern double sin (double __x) throw (); extern double __sin (double __x) throw (); > >extern double tan (double __x) throw (); extern double __tan (double __x) throw (); > > > > >extern double cosh (double __x) throw (); extern double __cosh (double __x) throw (); > >extern double sinh (double __x) throw (); extern double __sinh (double __x) throw (); > >extern double tanh (double __x) throw (); extern double __tanh (double __x) throw (); > > > > >extern void sincos (double __x, double *__sinx, double *__cosx) throw (); extern void __sincos (double __x, double *__sinx, double *__cosx) throw (); > > > > > > >extern double acosh (double __x) throw (); extern double __acosh (double __x) throw (); > >extern double asinh (double __x) throw (); extern double __asinh (double __x) throw (); > >extern double atanh (double __x) throw (); extern double __atanh (double __x) throw (); > > > > > > > >extern double exp (double __x) throw (); extern double __exp (double __x) throw (); > > >extern double frexp (double __x, int *__exponent) throw (); extern double __frexp (double __x, int *__exponent) throw (); > > >extern double ldexp (double __x, int __exponent) throw (); extern double __ldexp (double __x, int __exponent) throw (); > > >extern double log (double __x) throw (); extern double __log (double __x) throw (); > > >extern double log10 (double __x) throw (); extern double __log10 (double __x) throw (); > > >extern double modf (double __x, double *__iptr) throw (); extern double __modf (double __x, double *__iptr) throw (); > > > > >extern double exp10 (double __x) throw (); extern double __exp10 (double __x) throw (); > >extern double pow10 (double __x) throw (); extern double __pow10 (double __x) throw (); > > > > > >extern double expm1 (double __x) throw (); extern double __expm1 (double __x) throw (); > > >extern double log1p (double __x) throw (); extern double __log1p (double __x) throw (); > > >extern double logb (double __x) throw (); extern double __logb (double __x) throw (); > > > > > > >extern double exp2 (double __x) throw (); extern double __exp2 (double __x) throw (); > > >extern double log2 (double __x) throw (); extern double __log2 (double __x) throw (); > > > > > > > > >extern double pow (double __x, double __y) throw (); extern double __pow (double __x, double __y) throw (); > > >extern double sqrt (double __x) throw (); extern double __sqrt (double __x) throw (); > > > > > >extern double hypot (double __x, double __y) throw (); extern double __hypot (double __x, double __y) throw (); > > > > > > >extern double cbrt (double __x) throw (); extern double __cbrt (double __x) throw (); > > > > > > > > >extern double ceil (double __x) throw () __attribute__ ((__const__)); extern double __ceil (double __x) throw () __attribute__ ((__const__)); > > >extern double fabs (double __x) throw () __attribute__ ((__const__)); extern double __fabs (double __x) throw () __attribute__ ((__const__)); > > >extern double floor (double __x) throw () __attribute__ ((__const__)); extern double __floor (double __x) throw () __attribute__ ((__const__)); > > >extern double fmod (double __x, double __y) throw (); extern double __fmod (double __x, double __y) throw (); > > > > >extern int __isinf (double __value) throw () __attribute__ ((__const__)); > > >extern int __finite (double __value) throw () __attribute__ ((__const__)); > > > > > >extern int isinf (double __value) throw () __attribute__ ((__const__)); > > >extern int finite (double __value) throw () __attribute__ ((__const__)); > > >extern double drem (double __x, double __y) throw (); extern double __drem (double __x, double __y) throw (); > > > >extern double significand (double __x) throw (); extern double __significand (double __x) throw (); > > > > > >extern double copysign (double __x, double __y) throw () __attribute__ ((__const__)); extern double __copysign (double __x, double __y) throw () __attribute__ ((__const__)); > > > > > > >extern double nan (__const char *__tagb) throw () __attribute__ ((__const__)); extern double __nan (__const char *__tagb) throw () __attribute__ ((__const__)); > > > > > >extern int __isnan (double __value) throw () __attribute__ ((__const__)); > > > >extern int isnan (double __value) throw () __attribute__ ((__const__)); > > >extern double j0 (double) throw (); extern double __j0 (double) throw (); >extern double j1 (double) throw (); extern double __j1 (double) throw (); >extern double jn (int, double) throw (); extern double __jn (int, double) throw (); >extern double y0 (double) throw (); extern double __y0 (double) throw (); >extern double y1 (double) throw (); extern double __y1 (double) throw (); >extern double yn (int, double) throw (); extern double __yn (int, double) throw (); > > > > > > >extern double erf (double) throw (); extern double __erf (double) throw (); >extern double erfc (double) throw (); extern double __erfc (double) throw (); >extern double lgamma (double) throw (); extern double __lgamma (double) throw (); > > > > > > >extern double tgamma (double) throw (); extern double __tgamma (double) throw (); > > > > > >extern double gamma (double) throw (); extern double __gamma (double) throw (); > > > > > > >extern double lgamma_r (double, int *__signgamp) throw (); extern double __lgamma_r (double, int *__signgamp) throw (); > > > > > > > >extern double rint (double __x) throw (); extern double __rint (double __x) throw (); > > >extern double nextafter (double __x, double __y) throw () __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) throw () __attribute__ ((__const__)); > >extern double nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); > > > >extern double remainder (double __x, double __y) throw (); extern double __remainder (double __x, double __y) throw (); > > > >extern double scalbn (double __x, int __n) throw (); extern double __scalbn (double __x, int __n) throw (); > > > >extern int ilogb (double __x) throw (); extern int __ilogb (double __x) throw (); > > > > >extern double scalbln (double __x, long int __n) throw (); extern double __scalbln (double __x, long int __n) throw (); > > > >extern double nearbyint (double __x) throw (); extern double __nearbyint (double __x) throw (); > > > >extern double round (double __x) throw () __attribute__ ((__const__)); extern double __round (double __x) throw () __attribute__ ((__const__)); > > > >extern double trunc (double __x) throw () __attribute__ ((__const__)); extern double __trunc (double __x) throw () __attribute__ ((__const__)); > > > > >extern double remquo (double __x, double __y, int *__quo) throw (); extern double __remquo (double __x, double __y, int *__quo) throw (); > > > > > > >extern long int lrint (double __x) throw (); extern long int __lrint (double __x) throw (); >extern long long int llrint (double __x) throw (); extern long long int __llrint (double __x) throw (); > > > >extern long int lround (double __x) throw (); extern long int __lround (double __x) throw (); >extern long long int llround (double __x) throw (); extern long long int __llround (double __x) throw (); > > > >extern double fdim (double __x, double __y) throw (); extern double __fdim (double __x, double __y) throw (); > > >extern double fmax (double __x, double __y) throw (); extern double __fmax (double __x, double __y) throw (); > > >extern double fmin (double __x, double __y) throw (); extern double __fmin (double __x, double __y) throw (); > > > >extern int __fpclassify (double __value) throw () > __attribute__ ((__const__)); > > >extern int __signbit (double __value) throw () > __attribute__ ((__const__)); > > > >extern double fma (double __x, double __y, double __z) throw (); extern double __fma (double __x, double __y, double __z) throw (); > > > > >extern double scalb (double __x, double __n) throw (); extern double __scalb (double __x, double __n) throw (); ># 66 "/usr/include/math.h" 2 3 4 ># 88 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern float acosf (float __x) throw (); extern float __acosf (float __x) throw (); > >extern float asinf (float __x) throw (); extern float __asinf (float __x) throw (); > >extern float atanf (float __x) throw (); extern float __atanf (float __x) throw (); > >extern float atan2f (float __y, float __x) throw (); extern float __atan2f (float __y, float __x) throw (); > > >extern float cosf (float __x) throw (); extern float __cosf (float __x) throw (); > >extern float sinf (float __x) throw (); extern float __sinf (float __x) throw (); > >extern float tanf (float __x) throw (); extern float __tanf (float __x) throw (); > > > > >extern float coshf (float __x) throw (); extern float __coshf (float __x) throw (); > >extern float sinhf (float __x) throw (); extern float __sinhf (float __x) throw (); > >extern float tanhf (float __x) throw (); extern float __tanhf (float __x) throw (); > > > > >extern void sincosf (float __x, float *__sinx, float *__cosx) throw (); extern void __sincosf (float __x, float *__sinx, float *__cosx) throw (); > > > > > > >extern float acoshf (float __x) throw (); extern float __acoshf (float __x) throw (); > >extern float asinhf (float __x) throw (); extern float __asinhf (float __x) throw (); > >extern float atanhf (float __x) throw (); extern float __atanhf (float __x) throw (); > > > > > > > >extern float expf (float __x) throw (); extern float __expf (float __x) throw (); > > >extern float frexpf (float __x, int *__exponent) throw (); extern float __frexpf (float __x, int *__exponent) throw (); > > >extern float ldexpf (float __x, int __exponent) throw (); extern float __ldexpf (float __x, int __exponent) throw (); > > >extern float logf (float __x) throw (); extern float __logf (float __x) throw (); > > >extern float log10f (float __x) throw (); extern float __log10f (float __x) throw (); > > >extern float modff (float __x, float *__iptr) throw (); extern float __modff (float __x, float *__iptr) throw (); > > > > >extern float exp10f (float __x) throw (); extern float __exp10f (float __x) throw (); > >extern float pow10f (float __x) throw (); extern float __pow10f (float __x) throw (); > > > > > >extern float expm1f (float __x) throw (); extern float __expm1f (float __x) throw (); > > >extern float log1pf (float __x) throw (); extern float __log1pf (float __x) throw (); > > >extern float logbf (float __x) throw (); extern float __logbf (float __x) throw (); > > > > > > >extern float exp2f (float __x) throw (); extern float __exp2f (float __x) throw (); > > >extern float log2f (float __x) throw (); extern float __log2f (float __x) throw (); > > > > > > > > >extern float powf (float __x, float __y) throw (); extern float __powf (float __x, float __y) throw (); > > >extern float sqrtf (float __x) throw (); extern float __sqrtf (float __x) throw (); > > > > > >extern float hypotf (float __x, float __y) throw (); extern float __hypotf (float __x, float __y) throw (); > > > > > > >extern float cbrtf (float __x) throw (); extern float __cbrtf (float __x) throw (); > > > > > > > > >extern float ceilf (float __x) throw () __attribute__ ((__const__)); extern float __ceilf (float __x) throw () __attribute__ ((__const__)); > > >extern float fabsf (float __x) throw () __attribute__ ((__const__)); extern float __fabsf (float __x) throw () __attribute__ ((__const__)); > > >extern float floorf (float __x) throw () __attribute__ ((__const__)); extern float __floorf (float __x) throw () __attribute__ ((__const__)); > > >extern float fmodf (float __x, float __y) throw (); extern float __fmodf (float __x, float __y) throw (); > > > > >extern int __isinff (float __value) throw () __attribute__ ((__const__)); > > >extern int __finitef (float __value) throw () __attribute__ ((__const__)); > > > > > >extern int isinff (float __value) throw () __attribute__ ((__const__)); > > >extern int finitef (float __value) throw () __attribute__ ((__const__)); > > >extern float dremf (float __x, float __y) throw (); extern float __dremf (float __x, float __y) throw (); > > > >extern float significandf (float __x) throw (); extern float __significandf (float __x) throw (); > > > > > >extern float copysignf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) throw () __attribute__ ((__const__)); > > > > > > >extern float nanf (__const char *__tagb) throw () __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) throw () __attribute__ ((__const__)); > > > > > >extern int __isnanf (float __value) throw () __attribute__ ((__const__)); > > > >extern int isnanf (float __value) throw () __attribute__ ((__const__)); > > >extern float j0f (float) throw (); extern float __j0f (float) throw (); >extern float j1f (float) throw (); extern float __j1f (float) throw (); >extern float jnf (int, float) throw (); extern float __jnf (int, float) throw (); >extern float y0f (float) throw (); extern float __y0f (float) throw (); >extern float y1f (float) throw (); extern float __y1f (float) throw (); >extern float ynf (int, float) throw (); extern float __ynf (int, float) throw (); > > > > > > >extern float erff (float) throw (); extern float __erff (float) throw (); >extern float erfcf (float) throw (); extern float __erfcf (float) throw (); >extern float lgammaf (float) throw (); extern float __lgammaf (float) throw (); > > > > > > >extern float tgammaf (float) throw (); extern float __tgammaf (float) throw (); > > > > > >extern float gammaf (float) throw (); extern float __gammaf (float) throw (); > > > > > > >extern float lgammaf_r (float, int *__signgamp) throw (); extern float __lgammaf_r (float, int *__signgamp) throw (); > > > > > > > >extern float rintf (float __x) throw (); extern float __rintf (float __x) throw (); > > >extern float nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); > >extern float nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); > > > >extern float remainderf (float __x, float __y) throw (); extern float __remainderf (float __x, float __y) throw (); > > > >extern float scalbnf (float __x, int __n) throw (); extern float __scalbnf (float __x, int __n) throw (); > > > >extern int ilogbf (float __x) throw (); extern int __ilogbf (float __x) throw (); > > > > >extern float scalblnf (float __x, long int __n) throw (); extern float __scalblnf (float __x, long int __n) throw (); > > > >extern float nearbyintf (float __x) throw (); extern float __nearbyintf (float __x) throw (); > > > >extern float roundf (float __x) throw () __attribute__ ((__const__)); extern float __roundf (float __x) throw () __attribute__ ((__const__)); > > > >extern float truncf (float __x) throw () __attribute__ ((__const__)); extern float __truncf (float __x) throw () __attribute__ ((__const__)); > > > > >extern float remquof (float __x, float __y, int *__quo) throw (); extern float __remquof (float __x, float __y, int *__quo) throw (); > > > > > > >extern long int lrintf (float __x) throw (); extern long int __lrintf (float __x) throw (); >extern long long int llrintf (float __x) throw (); extern long long int __llrintf (float __x) throw (); > > > >extern long int lroundf (float __x) throw (); extern long int __lroundf (float __x) throw (); >extern long long int llroundf (float __x) throw (); extern long long int __llroundf (float __x) throw (); > > > >extern float fdimf (float __x, float __y) throw (); extern float __fdimf (float __x, float __y) throw (); > > >extern float fmaxf (float __x, float __y) throw (); extern float __fmaxf (float __x, float __y) throw (); > > >extern float fminf (float __x, float __y) throw (); extern float __fminf (float __x, float __y) throw (); > > > >extern int __fpclassifyf (float __value) throw () > __attribute__ ((__const__)); > > >extern int __signbitf (float __value) throw () > __attribute__ ((__const__)); > > > >extern float fmaf (float __x, float __y, float __z) throw (); extern float __fmaf (float __x, float __y, float __z) throw (); > > > > >extern float scalbf (float __x, float __n) throw (); extern float __scalbf (float __x, float __n) throw (); ># 89 "/usr/include/math.h" 2 3 4 ># 109 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern long double acosl (long double __x) throw (); extern long double __acosl (long double __x) throw (); > >extern long double asinl (long double __x) throw (); extern long double __asinl (long double __x) throw (); > >extern long double atanl (long double __x) throw (); extern long double __atanl (long double __x) throw (); > >extern long double atan2l (long double __y, long double __x) throw (); extern long double __atan2l (long double __y, long double __x) throw (); > > >extern long double cosl (long double __x) throw (); extern long double __cosl (long double __x) throw (); > >extern long double sinl (long double __x) throw (); extern long double __sinl (long double __x) throw (); > >extern long double tanl (long double __x) throw (); extern long double __tanl (long double __x) throw (); > > > > >extern long double coshl (long double __x) throw (); extern long double __coshl (long double __x) throw (); > >extern long double sinhl (long double __x) throw (); extern long double __sinhl (long double __x) throw (); > >extern long double tanhl (long double __x) throw (); extern long double __tanhl (long double __x) throw (); > > > > >extern void sincosl (long double __x, long double *__sinx, long double *__cosx) throw (); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) throw (); > > > > > > >extern long double acoshl (long double __x) throw (); extern long double __acoshl (long double __x) throw (); > >extern long double asinhl (long double __x) throw (); extern long double __asinhl (long double __x) throw (); > >extern long double atanhl (long double __x) throw (); extern long double __atanhl (long double __x) throw (); > > > > > > > >extern long double expl (long double __x) throw (); extern long double __expl (long double __x) throw (); > > >extern long double frexpl (long double __x, int *__exponent) throw (); extern long double __frexpl (long double __x, int *__exponent) throw (); > > >extern long double ldexpl (long double __x, int __exponent) throw (); extern long double __ldexpl (long double __x, int __exponent) throw (); > > >extern long double logl (long double __x) throw (); extern long double __logl (long double __x) throw (); > > >extern long double log10l (long double __x) throw (); extern long double __log10l (long double __x) throw (); > > >extern long double modfl (long double __x, long double *__iptr) throw (); extern long double __modfl (long double __x, long double *__iptr) throw (); > > > > >extern long double exp10l (long double __x) throw (); extern long double __exp10l (long double __x) throw (); > >extern long double pow10l (long double __x) throw (); extern long double __pow10l (long double __x) throw (); > > > > > >extern long double expm1l (long double __x) throw (); extern long double __expm1l (long double __x) throw (); > > >extern long double log1pl (long double __x) throw (); extern long double __log1pl (long double __x) throw (); > > >extern long double logbl (long double __x) throw (); extern long double __logbl (long double __x) throw (); > > > > > > >extern long double exp2l (long double __x) throw (); extern long double __exp2l (long double __x) throw (); > > >extern long double log2l (long double __x) throw (); extern long double __log2l (long double __x) throw (); > > > > > > > > >extern long double powl (long double __x, long double __y) throw (); extern long double __powl (long double __x, long double __y) throw (); > > >extern long double sqrtl (long double __x) throw (); extern long double __sqrtl (long double __x) throw (); > > > > > >extern long double hypotl (long double __x, long double __y) throw (); extern long double __hypotl (long double __x, long double __y) throw (); > > > > > > >extern long double cbrtl (long double __x) throw (); extern long double __cbrtl (long double __x) throw (); > > > > > > > > >extern long double ceill (long double __x) throw () __attribute__ ((__const__)); extern long double __ceill (long double __x) throw () __attribute__ ((__const__)); > > >extern long double fabsl (long double __x) throw () __attribute__ ((__const__)); extern long double __fabsl (long double __x) throw () __attribute__ ((__const__)); > > >extern long double floorl (long double __x) throw () __attribute__ ((__const__)); extern long double __floorl (long double __x) throw () __attribute__ ((__const__)); > > >extern long double fmodl (long double __x, long double __y) throw (); extern long double __fmodl (long double __x, long double __y) throw (); > > > > >extern int __isinfl (long double __value) throw () __attribute__ ((__const__)); > > >extern int __finitel (long double __value) throw () __attribute__ ((__const__)); > > > > > >extern int isinfl (long double __value) throw () __attribute__ ((__const__)); > > >extern int finitel (long double __value) throw () __attribute__ ((__const__)); > > >extern long double dreml (long double __x, long double __y) throw (); extern long double __dreml (long double __x, long double __y) throw (); > > > >extern long double significandl (long double __x) throw (); extern long double __significandl (long double __x) throw (); > > > > > >extern long double copysignl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) throw () __attribute__ ((__const__)); > > > > > > >extern long double nanl (__const char *__tagb) throw () __attribute__ ((__const__)); extern long double __nanl (__const char *__tagb) throw () __attribute__ ((__const__)); > > > > > >extern int __isnanl (long double __value) throw () __attribute__ ((__const__)); > > > >extern int isnanl (long double __value) throw () __attribute__ ((__const__)); > > >extern long double j0l (long double) throw (); extern long double __j0l (long double) throw (); >extern long double j1l (long double) throw (); extern long double __j1l (long double) throw (); >extern long double jnl (int, long double) throw (); extern long double __jnl (int, long double) throw (); >extern long double y0l (long double) throw (); extern long double __y0l (long double) throw (); >extern long double y1l (long double) throw (); extern long double __y1l (long double) throw (); >extern long double ynl (int, long double) throw (); extern long double __ynl (int, long double) throw (); > > > > > > >extern long double erfl (long double) throw (); extern long double __erfl (long double) throw (); >extern long double erfcl (long double) throw (); extern long double __erfcl (long double) throw (); >extern long double lgammal (long double) throw (); extern long double __lgammal (long double) throw (); > > > > > > >extern long double tgammal (long double) throw (); extern long double __tgammal (long double) throw (); > > > > > >extern long double gammal (long double) throw (); extern long double __gammal (long double) throw (); > > > > > > >extern long double lgammal_r (long double, int *__signgamp) throw (); extern long double __lgammal_r (long double, int *__signgamp) throw (); > > > > > > > >extern long double rintl (long double __x) throw (); extern long double __rintl (long double __x) throw (); > > >extern long double nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__)); > >extern long double nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__)); > > > >extern long double remainderl (long double __x, long double __y) throw (); extern long double __remainderl (long double __x, long double __y) throw (); > > > >extern long double scalbnl (long double __x, int __n) throw (); extern long double __scalbnl (long double __x, int __n) throw (); > > > >extern int ilogbl (long double __x) throw (); extern int __ilogbl (long double __x) throw (); > > > > >extern long double scalblnl (long double __x, long int __n) throw (); extern long double __scalblnl (long double __x, long int __n) throw (); > > > >extern long double nearbyintl (long double __x) throw (); extern long double __nearbyintl (long double __x) throw (); > > > >extern long double roundl (long double __x) throw () __attribute__ ((__const__)); extern long double __roundl (long double __x) throw () __attribute__ ((__const__)); > > > >extern long double truncl (long double __x) throw () __attribute__ ((__const__)); extern long double __truncl (long double __x) throw () __attribute__ ((__const__)); > > > > >extern long double remquol (long double __x, long double __y, int *__quo) throw (); extern long double __remquol (long double __x, long double __y, int *__quo) throw (); > > > > > > >extern long int lrintl (long double __x) throw (); extern long int __lrintl (long double __x) throw (); >extern long long int llrintl (long double __x) throw (); extern long long int __llrintl (long double __x) throw (); > > > >extern long int lroundl (long double __x) throw (); extern long int __lroundl (long double __x) throw (); >extern long long int llroundl (long double __x) throw (); extern long long int __llroundl (long double __x) throw (); > > > >extern long double fdiml (long double __x, long double __y) throw (); extern long double __fdiml (long double __x, long double __y) throw (); > > >extern long double fmaxl (long double __x, long double __y) throw (); extern long double __fmaxl (long double __x, long double __y) throw (); > > >extern long double fminl (long double __x, long double __y) throw (); extern long double __fminl (long double __x, long double __y) throw (); > > > >extern int __fpclassifyl (long double __value) throw () > __attribute__ ((__const__)); > > >extern int __signbitl (long double __value) throw () > __attribute__ ((__const__)); > > > >extern long double fmal (long double __x, long double __y, long double __z) throw (); extern long double __fmal (long double __x, long double __y, long double __z) throw (); > > > > >extern long double scalbl (long double __x, long double __n) throw (); extern long double __scalbl (long double __x, long double __n) throw (); ># 110 "/usr/include/math.h" 2 3 4 ># 125 "/usr/include/math.h" 3 4 >extern int signgam; ># 166 "/usr/include/math.h" 3 4 >enum > { > FP_NAN, > > FP_INFINITE, > > FP_ZERO, > > FP_SUBNORMAL, > > FP_NORMAL > > }; ># 252 "/usr/include/math.h" 3 4 >typedef enum >{ > _IEEE_ = -1, > _SVID_, > _XOPEN_, > _POSIX_, > _ISOC_ >} _LIB_VERSION_TYPE; > > > > >extern _LIB_VERSION_TYPE _LIB_VERSION; ># 275 "/usr/include/math.h" 3 4 >struct __exception > > > > { > int type; > char *name; > double arg1; > double arg2; > double retval; > }; > > >extern int matherr (struct __exception *__exc) throw (); ># 362 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathinline.h" 1 3 4 ># 127 "/usr/include/bits/mathinline.h" 3 4 >__inline int >__signbitf (float __x) throw () >{ > __extension__ union { float __f; int __i; } __u = { __f: __x }; > return __u.__i < 0; >} >__inline int >__signbit (double __x) throw () >{ > __extension__ union { double __d; int __i[2]; } __u = { __d: __x }; > return __u.__i[1] < 0; >} >__inline int >__signbitl (long double __x) throw () >{ > __extension__ union { long double __l; int __i[3]; } __u = { __l: __x }; > return (__u.__i[2] & 0x8000) != 0; >} ># 291 "/usr/include/bits/mathinline.h" 3 4 >__inline double __sgn (double) throw (); __inline double __sgn (double __x) throw () { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); } __inline float __sgnf (float) throw (); __inline float __sgnf (float __x) throw () { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); } __inline long double __sgnl (long double) throw (); __inline long double __sgnl (long double __x) throw () { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); } ># 426 "/usr/include/bits/mathinline.h" 3 4 >__inline double atan2 (double __y, double __x) throw () { register long double __value; __asm __volatile__ ("fpatan" : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)"); return __value; } __inline float atan2f (float __y, float __x) throw () { register long double __value; __asm __volatile__ ("fpatan" : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)"); return __value; } __inline long double atan2l (long double __y, long double __x) throw () { register long double __value; __asm __volatile__ ("fpatan" : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)"); return __value; } >__inline long double __atan2l (long double __y, long double __x) throw () { register long double __value; __asm __volatile__ ("fpatan" : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)"); return __value; } > > >__inline double fmod (double __x, double __y) throw () { register long double __value; __asm __volatile__ ("1: fprem\n\t" "fnstsw %%ax\n\t" "sahf\n\t" "jp 1b" : "=t" (__value) : "0" (__x), "u" (__y) : "ax", "cc"); return __value; } __inline float fmodf (float __x, float __y) throw () { register long double __value; __asm __volatile__ ("1: fprem\n\t" "fnstsw %%ax\n\t" "sahf\n\t" "jp 1b" : "=t" (__value) : "0" (__x), "u" (__y) : "ax", "cc"); return __value; } __inline long double fmodl (long double __x, long double __y) throw () { register long double __value; __asm __volatile__ ("1: fprem\n\t" "fnstsw %%ax\n\t" "sahf\n\t" "jp 1b" : "=t" (__value) : "0" (__x), "u" (__y) : "ax", "cc"); return __value; } ># 447 "/usr/include/bits/mathinline.h" 3 4 >__inline double fabs (double __x) throw () { return __builtin_fabs (__x); } >__inline float fabsf (float __x) throw () { return __builtin_fabsf (__x); } >__inline long double fabsl (long double __x) throw () { return __builtin_fabsl (__x); } >__inline long double __fabsl (long double __x) throw () { return __builtin_fabsl (__x); } ># 469 "/usr/include/bits/mathinline.h" 3 4 >__inline double atan (double __x) throw () { register double __result; __asm __volatile__ ("fld1; fpatan" : "=t" (__result) : "0" (__x) : "st(1)"); return __result; } __inline float atanf (float __x) throw () { register float __result; __asm __volatile__ ("fld1; fpatan" : "=t" (__result) : "0" (__x) : "st(1)"); return __result; } __inline long double atanl (long double __x) throw () { register long double __result; __asm __volatile__ ("fld1; fpatan" : "=t" (__result) : "0" (__x) : "st(1)"); return __result; } > >__inline long double __sgn1l (long double) throw (); __inline long double __sgn1l (long double __x) throw () { __extension__ union { long double __xld; unsigned int __xi[3]; } __n = { __xld: __x }; __n.__xi[2] = (__n.__xi[2] & 0x8000) | 0x3fff; __n.__xi[1] = 0x80000000; __n.__xi[0] = 0; return __n.__xld; } ># 495 "/usr/include/bits/mathinline.h" 3 4 >__inline double floor (double __x) throw () { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } __inline float floorf (float __x) throw () { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } __inline long double floorl (long double __x) throw () { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } ># 506 "/usr/include/bits/mathinline.h" 3 4 >__inline double ceil (double __x) throw () { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } __inline float ceilf (float __x) throw () { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } __inline long double ceill (long double __x) throw () { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } ># 610 "/usr/include/bits/mathinline.h" 3 4 >__inline long int >lrintf (float __x) throw () >{ > long int __lrintres; __asm__ __volatile__ ("fistpl %0" : "=m" (__lrintres) : "t" (__x) : "st"); return __lrintres; >} >__inline long int >lrint (double __x) throw () >{ > long int __lrintres; __asm__ __volatile__ ("fistpl %0" : "=m" (__lrintres) : "t" (__x) : "st"); return __lrintres; >} >__inline long int >lrintl (long double __x) throw () >{ > long int __lrintres; __asm__ __volatile__ ("fistpl %0" : "=m" (__lrintres) : "t" (__x) : "st"); return __lrintres; >} ># 633 "/usr/include/bits/mathinline.h" 3 4 >__inline long long int >llrintf (float __x) throw () >{ > long long int __llrintres; __asm__ __volatile__ ("fistpll %0" : "=m" (__llrintres) : "t" (__x) : "st"); return __llrintres; >} >__inline long long int >llrint (double __x) throw () >{ > long long int __llrintres; __asm__ __volatile__ ("fistpll %0" : "=m" (__llrintres) : "t" (__x) : "st"); return __llrintres; >} >__inline long long int >llrintl (long double __x) throw () >{ > long long int __llrintres; __asm__ __volatile__ ("fistpll %0" : "=m" (__llrintres) : "t" (__x) : "st"); return __llrintres; >} > > > > > > > >__inline double drem (double __x, double __y) throw () { register double __value; register int __clobbered; __asm __volatile__ ("1: fprem1\n\t" "fstsw %%ax\n\t" "sahf\n\t" "jp 1b" : "=t" (__value), "=&a" (__clobbered) : "0" (__x), "u" (__y) : "cc"); return __value; } __inline float dremf (float __x, float __y) throw () { register double __value; register int __clobbered; __asm __volatile__ ("1: fprem1\n\t" "fstsw %%ax\n\t" "sahf\n\t" "jp 1b" : "=t" (__value), "=&a" (__clobbered) : "0" (__x), "u" (__y) : "cc"); return __value; } __inline long double dreml (long double __x, long double __y) throw () { register double __value; register int __clobbered; __asm __volatile__ ("1: fprem1\n\t" "fstsw %%ax\n\t" "sahf\n\t" "jp 1b" : "=t" (__value), "=&a" (__clobbered) : "0" (__x), "u" (__y) : "cc"); return __value; } ># 668 "/usr/include/bits/mathinline.h" 3 4 >__inline int >__finite (double __x) throw () >{ > return (__extension__ > (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1] > | 0x800fffffu) + 1) >> 31)); >} ># 363 "/usr/include/math.h" 2 3 4 ># 423 "/usr/include/math.h" 3 4 >} ># 42 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" 2 ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/osspec.h" 1 ># 43 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" 2 > > > > > > >typedef float tdble; > >extern void GfInit(void); ># 70 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" >const double PI = 3.14159265358979323846; >const tdble G = 9.80665; ># 107 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" >typedef struct { > float x; > float y; > float z; >} t3Df; > > > > >typedef struct { > tdble x; > tdble y; > tdble z; >} t3Dd; > >typedef struct { > int x; > int y; > int z; >} t3Di; > > > > >typedef struct { > tdble x; > tdble y; > tdble z; > tdble ax; > tdble ay; > tdble az; >} tPosd; > > > > >typedef struct >{ > tPosd pos; > tPosd vel; > tPosd acc; >} tDynPt; > > >typedef struct >{ > t3Dd F; > t3Dd M; >} tForces; ># 181 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" >typedef int (*tfModPrivInit)(int index, void *); > > > > > > > >typedef struct ModInfo { > char *name; > char *desc; > tfModPrivInit fctInit; > unsigned int gfId; > int index; > int prio; > int magic; >} tModInfo; > > >typedef int (*tfModInfo)(tModInfo *); > > >typedef int (*tfModShut)(void); > > > >typedef struct ModList { > tModInfo modInfo[10]; > > > > void *handle; > > char *sopath; > struct ModList *next; >} tModList; > > >extern int GfModLoad(unsigned int gfid, char *dllname, tModList **modlist); >extern int GfModLoadDir(unsigned int gfid, char *dir, tModList **modlist); >extern int GfModUnloadList(tModList **modlist); >extern int GfModInfo(unsigned int gfid, char *filename, tModList **modlist); >extern int GfModInfoDir(unsigned int gfid, char *dir, int level, tModList **modlist); >extern int GfModFreeInfoList(tModList **modlist); ># 233 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" >typedef struct FList >{ > struct FList *next; > struct FList *prev; > char *name; > char *dispName; > void *userData; >} tFList; > >extern tFList *GfDirGetList(char *dir); >typedef void (*tfDirfreeUserData)(void*); >extern void GfDirFreeList(tFList *list, tfDirfreeUserData freeUserData); ># 273 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" >extern void *GfParmReadFile(const char *file, int mode); > >extern int GfParmWriteFile(const char *file, void* handle, char *name); > >extern char *GfParmGetName(void *handle); >extern char *GfParmGetFileName(void *handle); > > >extern char *GfParmGetStr(void *handle, char *path, char *key, char *deflt); > >extern char *GfParmGetCurStr(void *handle, char *path, char *key, char *deflt); > >extern int GfParmSetStr(void *handle, char *path, char *key, char *val); > >extern int GfParmSetCurStr(void *handle, char *path, char *key, char *val); > > >extern tdble GfParmGetNum(void *handle, char *path, char *key, char *unit, tdble deflt); > >extern tdble GfParmGetCurNum(void *handle, char *path, char *key, char *unit, tdble deflt); > >extern int GfParmSetNum(void *handle, char *path, char *key, char *unit, tdble val); > >extern int GfParmSetCurNum(void *handle, char *path, char *key, char *unit, tdble val); > > > >extern void GfParmClean(void *handle); > >extern void GfParmReleaseHandle(void *handle); > > >extern tdble GfParmUnit2SI(char *unit, tdble val); > >extern tdble GfParmSI2Unit(char *unit, tdble val); > > >extern int GfParmCheckHandle(void *ref, void *tgt); > > > > >extern void *GfParmMergeHandles(void *ref, void *tgt, int mode); >extern int GfParmGetNumBoundaries(void *handle, char *path, char *key, tdble *min, tdble *max); > > >extern int GfParmGetEltNb(void *handle, char *path); >extern int GfParmListSeekFirst(void *handle, char *path); >extern int GfParmListSeekNext(void *handle, char *path); >extern char *GfParmListGetCurEltName(void *handle, char *path); >extern int GfParmListClean(void *handle, char *path); ># 336 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" >static inline void >GfFatal(char *fmt, ...) >{ > va_list ap; > __builtin_va_start(ap,fmt); > vprintf(fmt, ap); > __builtin_va_end(ap); > > (static_cast<void> (__builtin_expect (!!(0), 1) ? 0 : (__assert_fail ("0", "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h", 344, __PRETTY_FUNCTION__), 0))); > exit (1); >} ># 362 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" >static inline void >GfOut(char *fmt, ...) >{ >} ># 378 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" >extern double GfTimeClock(void); >extern char *GfGetTimeStr(void); > > > > >typedef struct >{ > int curNum; > tdble val[5 +1]; >} tMeanVal; > >extern tdble gfMean(tdble v, tMeanVal *pvt, int n, int w); >extern void gfMeanReset(tdble v, tMeanVal *pvt); > > >extern char *GetLocalDir(void); >extern void SetLocalDir(char *buf); >extern char *GetLibDir(void); >extern void SetLibDir(char *buf); >extern char *GetDataDir(void); >extern void SetDataDir(char *buf); >extern int GetSingleTextureMode (void); >extern void SetSingleTextureMode (void); >extern int GfNearestPow2 (int x); ># 605 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgf.h" >typedef void (*tfHashFree)(void*); > >void *GfHashCreate(int type); >int GfHashAddStr(void *hash, char *key, void *data); >void *GfHashRemStr(void *hash, char *key); >void *GfHashGetStr(void *hash, char *key); >void GfHashAddBuf(void *hash, char *key, size_t sz, void *data); >void *GfHashRemBuf(void *hash, char *key, size_t sz); >void *GfHashGetBuf(void *hash, char *key, size_t sz); >void GfHashRelease(void *hash, tfHashFree hashFree); >void *GfHashGetFirst(void *hash); >void *GfHashGetNext(void *hash); ># 31 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgfclient.h" 2 ># 1 "/usr/include/GL/glut.h" 1 3 4 ># 10 "/usr/include/GL/glut.h" 3 4 ># 1 "/usr/include/GL/gl.h" 1 3 4 > > > > >extern "C" { ># 53 "/usr/include/GL/gl.h" 3 4 >typedef unsigned int GLenum; >typedef unsigned char GLboolean; >typedef unsigned int GLbitfield; >typedef signed char GLbyte; >typedef short GLshort; >typedef int GLint; >typedef int GLsizei; >typedef unsigned char GLubyte; >typedef unsigned short GLushort; >typedef unsigned int GLuint; >typedef float GLfloat; >typedef float GLclampf; >typedef double GLdouble; >typedef double GLclampd; >typedef void GLvoid; > > > ># 1 "/usr/include/GL/glext.h" 1 3 4 > > > > >extern "C" { ># 2852 "/usr/include/GL/glext.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 151 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 3 4 >typedef int ptrdiff_t; ># 2853 "/usr/include/GL/glext.h" 2 3 4 > > >typedef ptrdiff_t GLintptr; >typedef ptrdiff_t GLsizeiptr; > > > > >typedef ptrdiff_t GLintptrARB; >typedef ptrdiff_t GLsizeiptrARB; > > > > >typedef char GLcharARB; >typedef unsigned int GLhandleARB; > > > > >typedef unsigned short GLhalfNV; ># 2918 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); >typedef void ( * PFNGLBLENDEQUATIONPROC) (GLenum mode); >typedef void ( * PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); >typedef void ( * PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); >typedef void ( * PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); >typedef void ( * PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); >typedef void ( * PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); >typedef void ( * PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); >typedef void ( * PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); >typedef void ( * PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); >typedef void ( * PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); >typedef void ( * PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); >typedef void ( * PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params); >typedef void ( * PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); >typedef void ( * PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params); >typedef void ( * PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); >typedef void ( * PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); >typedef void ( * PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); >typedef void ( * PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); >typedef void ( * PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); >typedef void ( * PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); >typedef void ( * PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); >typedef void ( * PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); >typedef void ( * PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); >typedef void ( * PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink); >typedef void ( * PFNGLRESETHISTOGRAMPROC) (GLenum target); >typedef void ( * PFNGLRESETMINMAXPROC) (GLenum target); >typedef void ( * PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); >typedef void ( * PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); >typedef void ( * PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); ># 3008 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLACTIVETEXTUREPROC) (GLenum texture); >typedef void ( * PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture); >typedef void ( * PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s); >typedef void ( * PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v); >typedef void ( * PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s); >typedef void ( * PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v); >typedef void ( * PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s); >typedef void ( * PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v); >typedef void ( * PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s); >typedef void ( * PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v); >typedef void ( * PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t); >typedef void ( * PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v); >typedef void ( * PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t); >typedef void ( * PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v); >typedef void ( * PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t); >typedef void ( * PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v); >typedef void ( * PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t); >typedef void ( * PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v); >typedef void ( * PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); >typedef void ( * PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v); >typedef void ( * PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); >typedef void ( * PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v); >typedef void ( * PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r); >typedef void ( * PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v); >typedef void ( * PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r); >typedef void ( * PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v); >typedef void ( * PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); >typedef void ( * PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v); >typedef void ( * PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); >typedef void ( * PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v); >typedef void ( * PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); >typedef void ( * PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v); >typedef void ( * PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); >typedef void ( * PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v); >typedef void ( * PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m); >typedef void ( * PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m); >typedef void ( * PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m); >typedef void ( * PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m); >typedef void ( * PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert); >typedef void ( * PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img); ># 3105 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); >typedef void ( * PFNGLFOGCOORDFPROC) (GLfloat coord); >typedef void ( * PFNGLFOGCOORDFVPROC) (const GLfloat *coord); >typedef void ( * PFNGLFOGCOORDDPROC) (GLdouble coord); >typedef void ( * PFNGLFOGCOORDDVPROC) (const GLdouble *coord); >typedef void ( * PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); >typedef void ( * PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); >typedef void ( * PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); >typedef void ( * PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); >typedef void ( * PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params); >typedef void ( * PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); >typedef void ( * PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params); >typedef void ( * PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); >typedef void ( * PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v); >typedef void ( * PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); >typedef void ( * PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v); >typedef void ( * PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); >typedef void ( * PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v); >typedef void ( * PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue); >typedef void ( * PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v); >typedef void ( * PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); >typedef void ( * PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v); >typedef void ( * PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); >typedef void ( * PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v); >typedef void ( * PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); >typedef void ( * PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v); >typedef void ( * PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); >typedef void ( * PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v); >typedef void ( * PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); >typedef void ( * PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y); >typedef void ( * PFNGLWINDOWPOS2DVPROC) (const GLdouble *v); >typedef void ( * PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y); >typedef void ( * PFNGLWINDOWPOS2FVPROC) (const GLfloat *v); >typedef void ( * PFNGLWINDOWPOS2IPROC) (GLint x, GLint y); >typedef void ( * PFNGLWINDOWPOS2IVPROC) (const GLint *v); >typedef void ( * PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y); >typedef void ( * PFNGLWINDOWPOS2SVPROC) (const GLshort *v); >typedef void ( * PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); >typedef void ( * PFNGLWINDOWPOS3DVPROC) (const GLdouble *v); >typedef void ( * PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLWINDOWPOS3FVPROC) (const GLfloat *v); >typedef void ( * PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z); >typedef void ( * PFNGLWINDOWPOS3IVPROC) (const GLint *v); >typedef void ( * PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z); >typedef void ( * PFNGLWINDOWPOS3SVPROC) (const GLshort *v); ># 3175 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids); >typedef void ( * PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids); >typedef GLboolean ( * PFNGLISQUERYPROC) (GLuint id); >typedef void ( * PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); >typedef void ( * PFNGLENDQUERYPROC) (GLenum target); >typedef void ( * PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params); >typedef void ( * PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params); >typedef void ( * PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); >typedef void ( * PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers); >typedef void ( * PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers); >typedef GLboolean ( * PFNGLISBUFFERPROC) (GLuint buffer); >typedef void ( * PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); >typedef void ( * PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); >typedef void ( * PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data); >typedef GLvoid* ( * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); >typedef GLboolean ( * PFNGLUNMAPBUFFERPROC) (GLenum target); >typedef void ( * PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params); ># 3234 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLACTIVETEXTUREARBPROC) (GLenum texture); >typedef void ( * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); >typedef void ( * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); >typedef void ( * PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v); >typedef void ( * PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); >typedef void ( * PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v); >typedef void ( * PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); >typedef void ( * PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v); >typedef void ( * PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); >typedef void ( * PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v); >typedef void ( * PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); >typedef void ( * PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v); >typedef void ( * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); >typedef void ( * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v); >typedef void ( * PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); >typedef void ( * PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v); >typedef void ( * PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); >typedef void ( * PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v); >typedef void ( * PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); >typedef void ( * PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v); >typedef void ( * PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); >typedef void ( * PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v); >typedef void ( * PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); >typedef void ( * PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v); >typedef void ( * PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); >typedef void ( * PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v); >typedef void ( * PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); >typedef void ( * PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v); >typedef void ( * PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); >typedef void ( * PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v); >typedef void ( * PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); >typedef void ( * PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v); >typedef void ( * PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); >typedef void ( * PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v); ># 3278 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); >typedef void ( * PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); >typedef void ( * PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); >typedef void ( * PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); > > > > > > > >typedef void ( * PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert); ># 3311 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); >typedef void ( * PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, GLvoid *img); ># 3330 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param); >typedef void ( * PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params); ># 3348 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights); >typedef void ( * PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights); >typedef void ( * PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights); >typedef void ( * PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights); >typedef void ( * PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights); >typedef void ( * PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights); >typedef void ( * PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights); >typedef void ( * PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights); >typedef void ( * PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); >typedef void ( * PFNGLVERTEXBLENDARBPROC) (GLint count); ># 3369 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index); >typedef void ( * PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices); >typedef void ( * PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices); >typedef void ( * PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices); >typedef void ( * PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); ># 3424 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y); >typedef void ( * PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v); >typedef void ( * PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y); >typedef void ( * PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v); >typedef void ( * PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y); >typedef void ( * PFNGLWINDOWPOS2IVARBPROC) (const GLint *v); >typedef void ( * PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y); >typedef void ( * PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v); >typedef void ( * PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z); >typedef void ( * PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v); >typedef void ( * PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v); >typedef void ( * PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z); >typedef void ( * PFNGLWINDOWPOS3IVARBPROC) (const GLint *v); >typedef void ( * PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z); >typedef void ( * PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v); ># 3508 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x); >typedef void ( * PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x); >typedef void ( * PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x); >typedef void ( * PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y); >typedef void ( * PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y); >typedef void ( * PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y); >typedef void ( * PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); >typedef void ( * PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); >typedef void ( * PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v); >typedef void ( * PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v); >typedef void ( * PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); >typedef void ( * PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v); >typedef void ( * PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v); >typedef void ( * PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v); >typedef void ( * PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v); >typedef void ( * PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); >typedef void ( * PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); >typedef void ( * PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v); >typedef void ( * PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); >typedef void ( * PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v); >typedef void ( * PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v); >typedef void ( * PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v); >typedef void ( * PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); >typedef void ( * PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); >typedef void ( * PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); >typedef void ( * PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const GLvoid *string); >typedef void ( * PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program); >typedef void ( * PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs); >typedef void ( * PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs); >typedef void ( * PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); >typedef void ( * PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); >typedef void ( * PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); >typedef void ( * PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); >typedef void ( * PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); >typedef void ( * PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); >typedef void ( * PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); >typedef void ( * PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); >typedef void ( * PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); >typedef void ( * PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); >typedef void ( * PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); >typedef void ( * PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); >typedef void ( * PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, GLvoid *string); >typedef void ( * PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params); >typedef void ( * PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params); >typedef void ( * PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid* *pointer); >typedef GLboolean ( * PFNGLISPROGRAMARBPROC) (GLuint program); ># 3592 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer); >typedef void ( * PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers); >typedef void ( * PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers); >typedef GLboolean ( * PFNGLISBUFFERARBPROC) (GLuint buffer); >typedef void ( * PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage); >typedef void ( * PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data); >typedef void ( * PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data); >typedef GLvoid* ( * PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); >typedef GLboolean ( * PFNGLUNMAPBUFFERARBPROC) (GLenum target); >typedef void ( * PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid* *params); ># 3617 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids); >typedef void ( * PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids); >typedef GLboolean ( * PFNGLISQUERYARBPROC) (GLuint id); >typedef void ( * PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id); >typedef void ( * PFNGLENDQUERYARBPROC) (GLenum target); >typedef void ( * PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params); >typedef void ( * PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params); ># 3670 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj); >typedef GLhandleARB ( * PFNGLGETHANDLEARBPROC) (GLenum pname); >typedef void ( * PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj); >typedef GLhandleARB ( * PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType); >typedef void ( * PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length); >typedef void ( * PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj); >typedef GLhandleARB ( * PFNGLCREATEPROGRAMOBJECTARBPROC) (void); >typedef void ( * PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj); >typedef void ( * PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj); >typedef void ( * PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj); >typedef void ( * PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj); >typedef void ( * PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0); >typedef void ( * PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1); >typedef void ( * PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); >typedef void ( * PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); >typedef void ( * PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0); >typedef void ( * PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1); >typedef void ( * PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2); >typedef void ( * PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); >typedef void ( * PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); >typedef void ( * PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); >typedef void ( * PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); >typedef void ( * PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); >typedef void ( * PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value); >typedef void ( * PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value); >typedef void ( * PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value); >typedef void ( * PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value); >typedef void ( * PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); >typedef void ( * PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); >typedef void ( * PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); >typedef void ( * PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params); >typedef void ( * PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog); >typedef void ( * PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj); >typedef GLint ( * PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name); >typedef void ( * PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); >typedef void ( * PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params); >typedef void ( * PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params); >typedef void ( * PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source); ># 3718 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name); >typedef void ( * PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); >typedef GLint ( * PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name); ># 3748 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs); ># 3764 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLBLENDCOLOREXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); > > > > > > > >typedef void ( * PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias); ># 3785 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); >typedef void ( * PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); ># 3795 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights); >typedef void ( * PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights); ># 3805 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); >typedef void ( * PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); ># 3818 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); >typedef void ( * PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); >typedef void ( * PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); >typedef void ( * PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); >typedef void ( * PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); ># 3839 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); >typedef void ( * PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); >typedef void ( * PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); >typedef void ( * PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink); >typedef void ( * PFNGLRESETHISTOGRAMEXTPROC) (GLenum target); >typedef void ( * PFNGLRESETMINMAXEXTPROC) (GLenum target); ># 3868 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); >typedef void ( * PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); >typedef void ( * PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params); >typedef void ( * PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); >typedef void ( * PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params); >typedef void ( * PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); >typedef void ( * PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); >typedef void ( * PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); >typedef void ( * PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); >typedef void ( * PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); >typedef void ( * PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); ># 3898 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); >typedef void ( * PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params); >typedef void ( * PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params); >typedef void ( * PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); >typedef void ( * PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); >typedef void ( * PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params); > > > > > > > >typedef void ( * PFNGLPIXELTEXGENSGIXPROC) (GLenum mode); ># 3925 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param); >typedef void ( * PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params); >typedef void ( * PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param); >typedef void ( * PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); >typedef void ( * PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params); >typedef void ( * PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params); ># 3939 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid *pixels); >typedef void ( * PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid *pixels); ># 3961 "/usr/include/GL/glext.h" 3 4 >typedef GLboolean ( * PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences); >typedef void ( * PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture); >typedef void ( * PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures); >typedef void ( * PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures); >typedef GLboolean ( * PFNGLISTEXTUREEXTPROC) (GLuint texture); >typedef void ( * PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities); ># 3975 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); >typedef void ( * PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points); ># 3985 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); >typedef void ( * PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points); ># 4003 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert); >typedef void ( * PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern); ># 4024 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLARRAYELEMENTEXTPROC) (GLint i); >typedef void ( * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); >typedef void ( * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); >typedef void ( * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer); >typedef void ( * PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params); >typedef void ( * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); >typedef void ( * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); >typedef void ( * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); >typedef void ( * PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); ># 4064 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLBLENDEQUATIONEXTPROC) (GLenum mode); ># 4095 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param); >typedef void ( * PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params); >typedef void ( * PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param); >typedef void ( * PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params); ># 4111 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); >typedef void ( * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params); ># 4121 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param); >typedef void ( * PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); ># 4135 "/usr/include/GL/glext.h" 3 4 >typedef GLint ( * PFNGLGETINSTRUMENTSSGIXPROC) (void); >typedef void ( * PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer); >typedef GLint ( * PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p); >typedef void ( * PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker); >typedef void ( * PFNGLSTARTINSTRUMENTSSGIXPROC) (void); >typedef void ( * PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker); ># 4152 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLFRAMEZOOMSGIXPROC) (GLint factor); > > > > > > > >typedef void ( * PFNGLTAGSAMPLEBUFFERSGIXPROC) (void); ># 4171 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points); >typedef void ( * PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points); >typedef void ( * PFNGLDEFORMSGIXPROC) (GLbitfield mask); >typedef void ( * PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask); > > > > > > > >typedef void ( * PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation); > > > > > > > >typedef void ( * PFNGLFLUSHRASTERSGIXPROC) (void); ># 4203 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points); >typedef void ( * PFNGLGETFOGFUNCSGISPROC) (GLfloat *points); ># 4221 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param); >typedef void ( * PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param); >typedef void ( * PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params); >typedef void ( * PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params); >typedef void ( * PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params); ># 4243 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); >typedef void ( * PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); ># 4256 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLHINTPGIPROC) (GLenum target, GLint mode); ># 4267 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); >typedef void ( * PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *data); >typedef void ( * PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); ># 4287 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params); >typedef void ( * PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param); >typedef void ( * PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params); >typedef void ( * PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param); >typedef void ( * PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params); ># 4320 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode); > > > > > > > >typedef void ( * PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref); ># 4341 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count); >typedef void ( * PFNGLUNLOCKARRAYSEXTPROC) (void); ># 4351 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params); >typedef void ( * PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params); ># 4381 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode); >typedef void ( * PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param); >typedef void ( * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params); >typedef void ( * PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param); >typedef void ( * PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params); >typedef void ( * PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param); >typedef void ( * PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params); >typedef void ( * PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param); >typedef void ( * PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params); >typedef void ( * PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param); >typedef void ( * PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params); >typedef void ( * PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param); >typedef void ( * PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params); >typedef void ( * PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params); >typedef void ( * PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params); >typedef void ( * PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param); ># 4414 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); ># 4432 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode); >typedef void ( * PFNGLTEXTURELIGHTEXTPROC) (GLenum pname); >typedef void ( * PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode); ># 4455 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLASYNCMARKERSGIXPROC) (GLuint marker); >typedef GLint ( * PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp); >typedef GLint ( * PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp); >typedef GLuint ( * PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range); >typedef void ( * PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range); >typedef GLboolean ( * PFNGLISASYNCMARKERSGIXPROC) (GLuint marker); ># 4479 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); >typedef void ( * PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const GLvoid* *pointer); >typedef void ( * PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); >typedef void ( * PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); ># 4497 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param); >typedef void ( * PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param); >typedef void ( * PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); >typedef void ( * PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); ># 4536 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); >typedef void ( * PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v); >typedef void ( * PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue); >typedef void ( * PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v); >typedef void ( * PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); >typedef void ( * PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); >typedef void ( * PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue); >typedef void ( * PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v); >typedef void ( * PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue); >typedef void ( * PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v); >typedef void ( * PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); >typedef void ( * PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v); >typedef void ( * PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue); >typedef void ( * PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v); >typedef void ( * PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue); >typedef void ( * PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v); >typedef void ( * PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); > > > > > > > >typedef void ( * PFNGLTEXTURENORMALEXTPROC) (GLenum mode); ># 4569 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); >typedef void ( * PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); ># 4582 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLFOGCOORDFEXTPROC) (GLfloat coord); >typedef void ( * PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord); >typedef void ( * PFNGLFOGCOORDDEXTPROC) (GLdouble coord); >typedef void ( * PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord); >typedef void ( * PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); ># 4619 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz); >typedef void ( * PFNGLTANGENT3BVEXTPROC) (const GLbyte *v); >typedef void ( * PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz); >typedef void ( * PFNGLTANGENT3DVEXTPROC) (const GLdouble *v); >typedef void ( * PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz); >typedef void ( * PFNGLTANGENT3FVEXTPROC) (const GLfloat *v); >typedef void ( * PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz); >typedef void ( * PFNGLTANGENT3IVEXTPROC) (const GLint *v); >typedef void ( * PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz); >typedef void ( * PFNGLTANGENT3SVEXTPROC) (const GLshort *v); >typedef void ( * PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz); >typedef void ( * PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v); >typedef void ( * PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz); >typedef void ( * PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v); >typedef void ( * PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz); >typedef void ( * PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v); >typedef void ( * PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz); >typedef void ( * PFNGLBINORMAL3IVEXTPROC) (const GLint *v); >typedef void ( * PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz); >typedef void ( * PFNGLBINORMAL3SVEXTPROC) (const GLshort *v); >typedef void ( * PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); >typedef void ( * PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); ># 4664 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLFINISHTEXTURESUNXPROC) (void); ># 4679 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor); >typedef void ( * PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor); >typedef void ( * PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor); >typedef void ( * PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor); >typedef void ( * PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor); >typedef void ( * PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor); >typedef void ( * PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor); >typedef void ( * PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor); ># 4700 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code); >typedef void ( * PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code); >typedef void ( * PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code); >typedef void ( * PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code); >typedef void ( * PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code); >typedef void ( * PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code); >typedef void ( * PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const GLvoid* *pointer); ># 4753 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); >typedef void ( * PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v); >typedef void ( * PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v); >typedef void ( * PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v); >typedef void ( * PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v); >typedef void ( * PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v); >typedef void ( * PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v); >typedef void ( * PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); >typedef void ( * PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v); >typedef void ( * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v); >typedef void ( * PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v); >typedef void ( * PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v); >typedef void ( * PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); >typedef void ( * PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w); >typedef void ( * PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); >typedef void ( * PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v); >typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v); >typedef void ( * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v); >typedef void ( * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v); >typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); >typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v); >typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); >typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); > > > > > > > >typedef void ( * PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); > > > > > > > >typedef void ( * PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); ># 4854 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight); >typedef void ( * PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight); >typedef void ( * PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid *pointer); ># 4869 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void); >typedef void ( * PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const GLvoid *pointer); ># 4890 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params); >typedef void ( * PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param); >typedef void ( * PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params); >typedef void ( * PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param); >typedef void ( * PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); >typedef void ( * PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); >typedef void ( * PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); >typedef void ( * PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params); >typedef void ( * PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params); >typedef void ( * PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params); ># 4926 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLRESIZEBUFFERSMESAPROC) (void); ># 4957 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y); >typedef void ( * PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v); >typedef void ( * PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y); >typedef void ( * PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v); >typedef void ( * PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y); >typedef void ( * PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v); >typedef void ( * PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y); >typedef void ( * PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v); >typedef void ( * PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z); >typedef void ( * PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v); >typedef void ( * PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v); >typedef void ( * PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z); >typedef void ( * PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v); >typedef void ( * PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z); >typedef void ( * PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v); >typedef void ( * PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); >typedef void ( * PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v); >typedef void ( * PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); >typedef void ( * PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v); >typedef void ( * PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w); >typedef void ( * PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v); >typedef void ( * PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w); >typedef void ( * PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v); ># 4993 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); >typedef void ( * PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount, GLint modestride); ># 5009 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); >typedef void ( * PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); >typedef void ( * PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean* *pointer, GLint ptrstride); >typedef void ( * PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); >typedef void ( * PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); >typedef void ( * PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); >typedef void ( * PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); >typedef void ( * PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); ># 5048 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLTBUFFERMASK3DFXPROC) (GLuint mask); ># 5057 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert); >typedef void ( * PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern); ># 5082 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); > > > > > > > >typedef void ( * PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const GLvoid *params); ># 5112 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences); >typedef void ( * PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences); >typedef GLboolean ( * PFNGLISFENCENVPROC) (GLuint fence); >typedef GLboolean ( * PFNGLTESTFENCENVPROC) (GLuint fence); >typedef void ( * PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params); >typedef void ( * PFNGLFINISHFENCENVPROC) (GLuint fence); >typedef void ( * PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); ># 5134 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points); >typedef void ( * PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params); >typedef void ( * PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params); >typedef void ( * PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points); >typedef void ( * PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params); >typedef void ( * PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); >typedef void ( * PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); >typedef void ( * PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode); ># 5155 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params); >typedef void ( * PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params); ># 5247 "/usr/include/GL/glext.h" 3 4 >typedef GLboolean ( * PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences); >typedef void ( * PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); >typedef void ( * PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); >typedef void ( * PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params); >typedef void ( * PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs); >typedef void ( * PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params); >typedef void ( * PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params); >typedef void ( * PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program); >typedef void ( * PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params); >typedef void ( * PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params); >typedef void ( * PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params); >typedef void ( * PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer); >typedef GLboolean ( * PFNGLISPROGRAMNVPROC) (GLuint id); >typedef void ( * PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program); >typedef void ( * PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); >typedef void ( * PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v); >typedef void ( * PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); >typedef void ( * PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v); >typedef void ( * PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLuint count, const GLdouble *v); >typedef void ( * PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLuint count, const GLfloat *v); >typedef void ( * PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); >typedef void ( * PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); >typedef void ( * PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer); >typedef void ( * PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x); >typedef void ( * PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x); >typedef void ( * PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x); >typedef void ( * PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y); >typedef void ( * PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y); >typedef void ( * PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y); >typedef void ( * PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); >typedef void ( * PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z); >typedef void ( * PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); >typedef void ( * PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); >typedef void ( * PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); >typedef void ( * PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); >typedef void ( * PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v); >typedef void ( * PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); >typedef void ( * PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); >typedef void ( * PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); >typedef void ( * PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v); ># 5345 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param); >typedef void ( * PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param); >typedef void ( * PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param); >typedef void ( * PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param); ># 5369 "/usr/include/GL/glext.h" 3 4 >typedef GLuint ( * PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range); >typedef void ( * PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id); >typedef void ( * PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id); >typedef void ( * PFNGLBEGINFRAGMENTSHADERATIPROC) (void); >typedef void ( * PFNGLENDFRAGMENTSHADERATIPROC) (void); >typedef void ( * PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle); >typedef void ( * PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle); >typedef void ( * PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); >typedef void ( * PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); >typedef void ( * PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); >typedef void ( * PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); >typedef void ( * PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); >typedef void ( * PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); >typedef void ( * PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value); ># 5391 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param); >typedef void ( * PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param); ># 5411 "/usr/include/GL/glext.h" 3 4 >typedef GLuint ( * PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage); >typedef GLboolean ( * PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer); >typedef void ( * PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve); >typedef void ( * PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params); >typedef void ( * PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer); >typedef void ( * PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); >typedef void ( * PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params); >typedef void ( * PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); >typedef void ( * PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params); ># 5471 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLBEGINVERTEXSHADEREXTPROC) (void); >typedef void ( * PFNGLENDVERTEXSHADEREXTPROC) (void); >typedef void ( * PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id); >typedef GLuint ( * PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range); >typedef void ( * PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id); >typedef void ( * PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1); >typedef void ( * PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); >typedef void ( * PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); >typedef void ( * PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); >typedef void ( * PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); >typedef void ( * PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); >typedef void ( * PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); >typedef GLuint ( * PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components); >typedef void ( * PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr); >typedef void ( * PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr); >typedef void ( * PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr); >typedef void ( * PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr); >typedef void ( * PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr); >typedef void ( * PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr); >typedef void ( * PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr); >typedef void ( * PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr); >typedef void ( * PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr); >typedef void ( * PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr); >typedef void ( * PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const GLvoid *addr); >typedef void ( * PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); >typedef void ( * PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); >typedef GLuint ( * PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value); >typedef GLuint ( * PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value); >typedef GLuint ( * PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value); >typedef GLuint ( * PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value); >typedef GLuint ( * PFNGLBINDPARAMETEREXTPROC) (GLenum value); >typedef GLboolean ( * PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap); >typedef void ( * PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); >typedef void ( * PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); >typedef void ( * PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); >typedef void ( * PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, GLvoid* *data); >typedef void ( * PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); >typedef void ( * PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); >typedef void ( * PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); >typedef void ( * PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); >typedef void ( * PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); >typedef void ( * PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); ># 5564 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x); >typedef void ( * PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords); >typedef void ( * PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x); >typedef void ( * PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords); >typedef void ( * PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x); >typedef void ( * PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords); >typedef void ( * PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x); >typedef void ( * PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords); >typedef void ( * PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y); >typedef void ( * PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords); >typedef void ( * PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y); >typedef void ( * PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords); >typedef void ( * PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y); >typedef void ( * PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords); >typedef void ( * PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y); >typedef void ( * PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords); >typedef void ( * PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); >typedef void ( * PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); >typedef void ( * PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); >typedef void ( * PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); >typedef void ( * PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); >typedef void ( * PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); >typedef void ( * PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); >typedef void ( * PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); >typedef void ( * PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); >typedef void ( * PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords); >typedef void ( * PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w); >typedef void ( * PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords); >typedef void ( * PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); >typedef void ( * PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords); >typedef void ( * PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); >typedef void ( * PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords); >typedef void ( * PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); >typedef void ( * PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords); >typedef void ( * PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz); >typedef void ( * PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); >typedef void ( * PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz); >typedef void ( * PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); >typedef void ( * PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); >typedef void ( * PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); >typedef void ( * PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); >typedef void ( * PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); >typedef void ( * PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream); >typedef void ( * PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param); >typedef void ( * PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param); ># 5618 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLELEMENTPOINTERATIPROC) (GLenum type, const GLvoid *pointer); >typedef void ( * PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count); >typedef void ( * PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); > > > > > > > >typedef void ( * PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width); ># 5654 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids); >typedef void ( * PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids); >typedef GLboolean ( * PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id); >typedef void ( * PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id); >typedef void ( * PFNGLENDOCCLUSIONQUERYNVPROC) (void); >typedef void ( * PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params); >typedef void ( * PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params); ># 5669 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param); >typedef void ( * PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params); ># 5690 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face); ># 5710 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const GLvoid *pointer); >typedef void ( * PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count); >typedef void ( * PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); >typedef void ( * PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); >typedef void ( * PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount); ># 5729 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences); >typedef void ( * PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences); >typedef void ( * PFNGLSETFENCEAPPLEPROC) (GLuint fence); >typedef GLboolean ( * PFNGLISFENCEAPPLEPROC) (GLuint fence); >typedef GLboolean ( * PFNGLTESTFENCEAPPLEPROC) (GLuint fence); >typedef void ( * PFNGLFINISHFENCEAPPLEPROC) (GLuint fence); >typedef GLboolean ( * PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name); >typedef void ( * PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name); ># 5747 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array); >typedef void ( * PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays); >typedef void ( * PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays); >typedef GLboolean ( * PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array); ># 5760 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer); >typedef void ( * PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer); >typedef void ( * PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param); ># 5778 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs); ># 5811 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); >typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); >typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v); >typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v); >typedef void ( * PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params); >typedef void ( * PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params); ># 5869 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y); >typedef void ( * PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z); >typedef void ( * PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); >typedef void ( * PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); >typedef void ( * PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); >typedef void ( * PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); >typedef void ( * PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLTEXCOORD1HNVPROC) (GLhalfNV s); >typedef void ( * PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t); >typedef void ( * PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r); >typedef void ( * PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); >typedef void ( * PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s); >typedef void ( * PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v); >typedef void ( * PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t); >typedef void ( * PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v); >typedef void ( * PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); >typedef void ( * PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v); >typedef void ( * PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); >typedef void ( * PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v); >typedef void ( * PFNGLFOGCOORDHNVPROC) (GLhalfNV fog); >typedef void ( * PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog); >typedef void ( * PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); >typedef void ( * PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v); >typedef void ( * PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight); >typedef void ( * PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight); >typedef void ( * PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x); >typedef void ( * PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v); >typedef void ( * PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y); >typedef void ( * PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v); >typedef void ( * PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); >typedef void ( * PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v); >typedef void ( * PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); >typedef void ( * PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v); >typedef void ( * PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); >typedef void ( * PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); >typedef void ( * PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); >typedef void ( * PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); ># 5923 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, GLvoid *pointer); >typedef void ( * PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target); ># 5933 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLPRIMITIVERESTARTNVPROC) (void); >typedef void ( * PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index); ># 5951 "/usr/include/GL/glext.h" 3 4 >typedef GLvoid* ( * PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer); >typedef void ( * PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer); ># 5961 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); >typedef void ( * PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); ># 5972 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); >typedef void ( * PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params); >typedef void ( * PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params); > > > > > > > >typedef void ( * PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax); ># 5994 "/usr/include/GL/glext.h" 3 4 >typedef void ( * PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha); ># 6027 "/usr/include/GL/glext.h" 3 4 >} ># 72 "/usr/include/GL/gl.h" 2 3 4 ># 1291 "/usr/include/GL/gl.h" 3 4 > void glAccum (GLenum op, GLfloat value); > void glAlphaFunc (GLenum func, GLclampf ref); > GLboolean glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences); > void glArrayElement (GLint i); > void glBegin (GLenum mode); > void glBindTexture (GLenum target, GLuint texture); > void glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); > void glBlendFunc (GLenum sfactor, GLenum dfactor); > void glCallList (GLuint list); > void glCallLists (GLsizei n, GLenum type, const GLvoid *lists); > void glClear (GLbitfield mask); > void glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); > void glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); > void glClearDepth (GLclampd depth); > void glClearIndex (GLfloat c); > void glClearStencil (GLint s); > void glClipPlane (GLenum plane, const GLdouble *equation); > void glColor3b (GLbyte red, GLbyte green, GLbyte blue); > void glColor3bv (const GLbyte *v); > void glColor3d (GLdouble red, GLdouble green, GLdouble blue); > void glColor3dv (const GLdouble *v); > void glColor3f (GLfloat red, GLfloat green, GLfloat blue); > void glColor3fv (const GLfloat *v); > void glColor3i (GLint red, GLint green, GLint blue); > void glColor3iv (const GLint *v); > void glColor3s (GLshort red, GLshort green, GLshort blue); > void glColor3sv (const GLshort *v); > void glColor3ub (GLubyte red, GLubyte green, GLubyte blue); > void glColor3ubv (const GLubyte *v); > void glColor3ui (GLuint red, GLuint green, GLuint blue); > void glColor3uiv (const GLuint *v); > void glColor3us (GLushort red, GLushort green, GLushort blue); > void glColor3usv (const GLushort *v); > void glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); > void glColor4bv (const GLbyte *v); > void glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); > void glColor4dv (const GLdouble *v); > void glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); > void glColor4fv (const GLfloat *v); > void glColor4i (GLint red, GLint green, GLint blue, GLint alpha); > void glColor4iv (const GLint *v); > void glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha); > void glColor4sv (const GLshort *v); > void glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); > void glColor4ubv (const GLubyte *v); > void glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha); > void glColor4uiv (const GLuint *v); > void glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha); > void glColor4usv (const GLushort *v); > void glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); > void glColorMaterial (GLenum face, GLenum mode); > void glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); > void glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); > void glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); > void glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); > void glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); > void glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); > void glCullFace (GLenum mode); > void glDeleteLists (GLuint list, GLsizei range); > void glDeleteTextures (GLsizei n, const GLuint *textures); > void glDepthFunc (GLenum func); > void glDepthMask (GLboolean flag); > void glDepthRange (GLclampd zNear, GLclampd zFar); > void glDisable (GLenum cap); > void glDisableClientState (GLenum array); > void glDrawArrays (GLenum mode, GLint first, GLsizei count); > void glDrawBuffer (GLenum mode); > void glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); > void glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); > void glEdgeFlag (GLboolean flag); > void glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer); > void glEdgeFlagv (const GLboolean *flag); > void glEnable (GLenum cap); > void glEnableClientState (GLenum array); > void glEnd (void); > void glEndList (void); > void glEvalCoord1d (GLdouble u); > void glEvalCoord1dv (const GLdouble *u); > void glEvalCoord1f (GLfloat u); > void glEvalCoord1fv (const GLfloat *u); > void glEvalCoord2d (GLdouble u, GLdouble v); > void glEvalCoord2dv (const GLdouble *u); > void glEvalCoord2f (GLfloat u, GLfloat v); > void glEvalCoord2fv (const GLfloat *u); > void glEvalMesh1 (GLenum mode, GLint i1, GLint i2); > void glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); > void glEvalPoint1 (GLint i); > void glEvalPoint2 (GLint i, GLint j); > void glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer); > void glFinish (void); > void glFlush (void); > void glFogf (GLenum pname, GLfloat param); > void glFogfv (GLenum pname, const GLfloat *params); > void glFogi (GLenum pname, GLint param); > void glFogiv (GLenum pname, const GLint *params); > void glFrontFace (GLenum mode); > void glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); > GLuint glGenLists (GLsizei range); > void glGenTextures (GLsizei n, GLuint *textures); > void glGetBooleanv (GLenum pname, GLboolean *params); > void glGetClipPlane (GLenum plane, GLdouble *equation); > void glGetDoublev (GLenum pname, GLdouble *params); > GLenum glGetError (void); > void glGetFloatv (GLenum pname, GLfloat *params); > void glGetIntegerv (GLenum pname, GLint *params); > void glGetLightfv (GLenum light, GLenum pname, GLfloat *params); > void glGetLightiv (GLenum light, GLenum pname, GLint *params); > void glGetMapdv (GLenum target, GLenum query, GLdouble *v); > void glGetMapfv (GLenum target, GLenum query, GLfloat *v); > void glGetMapiv (GLenum target, GLenum query, GLint *v); > void glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params); > void glGetMaterialiv (GLenum face, GLenum pname, GLint *params); > void glGetPixelMapfv (GLenum map, GLfloat *values); > void glGetPixelMapuiv (GLenum map, GLuint *values); > void glGetPixelMapusv (GLenum map, GLushort *values); > void glGetPointerv (GLenum pname, GLvoid* *params); > void glGetPolygonStipple (GLubyte *mask); > const GLubyte * glGetString (GLenum name); > void glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params); > void glGetTexEnviv (GLenum target, GLenum pname, GLint *params); > void glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params); > void glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params); > void glGetTexGeniv (GLenum coord, GLenum pname, GLint *params); > void glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); > void glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params); > void glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params); > void glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); > void glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); > void glHint (GLenum target, GLenum mode); > void glIndexMask (GLuint mask); > void glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer); > void glIndexd (GLdouble c); > void glIndexdv (const GLdouble *c); > void glIndexf (GLfloat c); > void glIndexfv (const GLfloat *c); > void glIndexi (GLint c); > void glIndexiv (const GLint *c); > void glIndexs (GLshort c); > void glIndexsv (const GLshort *c); > void glIndexub (GLubyte c); > void glIndexubv (const GLubyte *c); > void glInitNames (void); > void glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer); > GLboolean glIsEnabled (GLenum cap); > GLboolean glIsList (GLuint list); > GLboolean glIsTexture (GLuint texture); > void glLightModelf (GLenum pname, GLfloat param); > void glLightModelfv (GLenum pname, const GLfloat *params); > void glLightModeli (GLenum pname, GLint param); > void glLightModeliv (GLenum pname, const GLint *params); > void glLightf (GLenum light, GLenum pname, GLfloat param); > void glLightfv (GLenum light, GLenum pname, const GLfloat *params); > void glLighti (GLenum light, GLenum pname, GLint param); > void glLightiv (GLenum light, GLenum pname, const GLint *params); > void glLineStipple (GLint factor, GLushort pattern); > void glLineWidth (GLfloat width); > void glListBase (GLuint base); > void glLoadIdentity (void); > void glLoadMatrixd (const GLdouble *m); > void glLoadMatrixf (const GLfloat *m); > void glLoadName (GLuint name); > void glLogicOp (GLenum opcode); > void glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); > void glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); > void glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); > void glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); > void glMapGrid1d (GLint un, GLdouble u1, GLdouble u2); > void glMapGrid1f (GLint un, GLfloat u1, GLfloat u2); > void glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); > void glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); > void glMaterialf (GLenum face, GLenum pname, GLfloat param); > void glMaterialfv (GLenum face, GLenum pname, const GLfloat *params); > void glMateriali (GLenum face, GLenum pname, GLint param); > void glMaterialiv (GLenum face, GLenum pname, const GLint *params); > void glMatrixMode (GLenum mode); > void glMultMatrixd (const GLdouble *m); > void glMultMatrixf (const GLfloat *m); > void glNewList (GLuint list, GLenum mode); > void glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz); > void glNormal3bv (const GLbyte *v); > void glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz); > void glNormal3dv (const GLdouble *v); > void glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz); > void glNormal3fv (const GLfloat *v); > void glNormal3i (GLint nx, GLint ny, GLint nz); > void glNormal3iv (const GLint *v); > void glNormal3s (GLshort nx, GLshort ny, GLshort nz); > void glNormal3sv (const GLshort *v); > void glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); > void glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); > void glPassThrough (GLfloat token); > void glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values); > void glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values); > void glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values); > void glPixelStoref (GLenum pname, GLfloat param); > void glPixelStorei (GLenum pname, GLint param); > void glPixelTransferf (GLenum pname, GLfloat param); > void glPixelTransferi (GLenum pname, GLint param); > void glPixelZoom (GLfloat xfactor, GLfloat yfactor); > void glPointSize (GLfloat size); > void glPolygonMode (GLenum face, GLenum mode); > void glPolygonOffset (GLfloat factor, GLfloat units); > void glPolygonStipple (const GLubyte *mask); > void glPopAttrib (void); > void glPopClientAttrib (void); > void glPopMatrix (void); > void glPopName (void); > void glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities); > void glPushAttrib (GLbitfield mask); > void glPushClientAttrib (GLbitfield mask); > void glPushMatrix (void); > void glPushName (GLuint name); > void glRasterPos2d (GLdouble x, GLdouble y); > void glRasterPos2dv (const GLdouble *v); > void glRasterPos2f (GLfloat x, GLfloat y); > void glRasterPos2fv (const GLfloat *v); > void glRasterPos2i (GLint x, GLint y); > void glRasterPos2iv (const GLint *v); > void glRasterPos2s (GLshort x, GLshort y); > void glRasterPos2sv (const GLshort *v); > void glRasterPos3d (GLdouble x, GLdouble y, GLdouble z); > void glRasterPos3dv (const GLdouble *v); > void glRasterPos3f (GLfloat x, GLfloat y, GLfloat z); > void glRasterPos3fv (const GLfloat *v); > void glRasterPos3i (GLint x, GLint y, GLint z); > void glRasterPos3iv (const GLint *v); > void glRasterPos3s (GLshort x, GLshort y, GLshort z); > void glRasterPos3sv (const GLshort *v); > void glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); > void glRasterPos4dv (const GLdouble *v); > void glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); > void glRasterPos4fv (const GLfloat *v); > void glRasterPos4i (GLint x, GLint y, GLint z, GLint w); > void glRasterPos4iv (const GLint *v); > void glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w); > void glRasterPos4sv (const GLshort *v); > void glReadBuffer (GLenum mode); > void glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); > void glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); > void glRectdv (const GLdouble *v1, const GLdouble *v2); > void glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); > void glRectfv (const GLfloat *v1, const GLfloat *v2); > void glRecti (GLint x1, GLint y1, GLint x2, GLint y2); > void glRectiv (const GLint *v1, const GLint *v2); > void glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2); > void glRectsv (const GLshort *v1, const GLshort *v2); > GLint glRenderMode (GLenum mode); > void glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z); > void glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); > void glScaled (GLdouble x, GLdouble y, GLdouble z); > void glScalef (GLfloat x, GLfloat y, GLfloat z); > void glScissor (GLint x, GLint y, GLsizei width, GLsizei height); > void glSelectBuffer (GLsizei size, GLuint *buffer); > void glShadeModel (GLenum mode); > void glStencilFunc (GLenum func, GLint ref, GLuint mask); > void glStencilMask (GLuint mask); > void glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); > void glTexCoord1d (GLdouble s); > void glTexCoord1dv (const GLdouble *v); > void glTexCoord1f (GLfloat s); > void glTexCoord1fv (const GLfloat *v); > void glTexCoord1i (GLint s); > void glTexCoord1iv (const GLint *v); > void glTexCoord1s (GLshort s); > void glTexCoord1sv (const GLshort *v); > void glTexCoord2d (GLdouble s, GLdouble t); > void glTexCoord2dv (const GLdouble *v); > void glTexCoord2f (GLfloat s, GLfloat t); > void glTexCoord2fv (const GLfloat *v); > void glTexCoord2i (GLint s, GLint t); > void glTexCoord2iv (const GLint *v); > void glTexCoord2s (GLshort s, GLshort t); > void glTexCoord2sv (const GLshort *v); > void glTexCoord3d (GLdouble s, GLdouble t, GLdouble r); > void glTexCoord3dv (const GLdouble *v); > void glTexCoord3f (GLfloat s, GLfloat t, GLfloat r); > void glTexCoord3fv (const GLfloat *v); > void glTexCoord3i (GLint s, GLint t, GLint r); > void glTexCoord3iv (const GLint *v); > void glTexCoord3s (GLshort s, GLshort t, GLshort r); > void glTexCoord3sv (const GLshort *v); > void glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q); > void glTexCoord4dv (const GLdouble *v); > void glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q); > void glTexCoord4fv (const GLfloat *v); > void glTexCoord4i (GLint s, GLint t, GLint r, GLint q); > void glTexCoord4iv (const GLint *v); > void glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q); > void glTexCoord4sv (const GLshort *v); > void glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); > void glTexEnvf (GLenum target, GLenum pname, GLfloat param); > void glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); > void glTexEnvi (GLenum target, GLenum pname, GLint param); > void glTexEnviv (GLenum target, GLenum pname, const GLint *params); > void glTexGend (GLenum coord, GLenum pname, GLdouble param); > void glTexGendv (GLenum coord, GLenum pname, const GLdouble *params); > void glTexGenf (GLenum coord, GLenum pname, GLfloat param); > void glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params); > void glTexGeni (GLenum coord, GLenum pname, GLint param); > void glTexGeniv (GLenum coord, GLenum pname, const GLint *params); > void glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); > void glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); > void glTexParameterf (GLenum target, GLenum pname, GLfloat param); > void glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); > void glTexParameteri (GLenum target, GLenum pname, GLint param); > void glTexParameteriv (GLenum target, GLenum pname, const GLint *params); > void glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); > void glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); > void glTranslated (GLdouble x, GLdouble y, GLdouble z); > void glTranslatef (GLfloat x, GLfloat y, GLfloat z); > void glVertex2d (GLdouble x, GLdouble y); > void glVertex2dv (const GLdouble *v); > void glVertex2f (GLfloat x, GLfloat y); > void glVertex2fv (const GLfloat *v); > void glVertex2i (GLint x, GLint y); > void glVertex2iv (const GLint *v); > void glVertex2s (GLshort x, GLshort y); > void glVertex2sv (const GLshort *v); > void glVertex3d (GLdouble x, GLdouble y, GLdouble z); > void glVertex3dv (const GLdouble *v); > void glVertex3f (GLfloat x, GLfloat y, GLfloat z); > void glVertex3fv (const GLfloat *v); > void glVertex3i (GLint x, GLint y, GLint z); > void glVertex3iv (const GLint *v); > void glVertex3s (GLshort x, GLshort y, GLshort z); > void glVertex3sv (const GLshort *v); > void glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); > void glVertex4dv (const GLdouble *v); > void glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); > void glVertex4fv (const GLfloat *v); > void glVertex4i (GLint x, GLint y, GLint z, GLint w); > void glVertex4iv (const GLint *v); > void glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w); > void glVertex4sv (const GLshort *v); > void glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); > void glViewport (GLint x, GLint y, GLsizei width, GLsizei height); > > > > > > > >} ># 11 "/usr/include/GL/glut.h" 2 3 4 ># 1 "/usr/include/GL/glu.h" 1 3 4 ># 38 "/usr/include/GL/glu.h" 3 4 >extern "C" { ># 242 "/usr/include/GL/glu.h" 3 4 >class GLUnurbs; >class GLUquadric; >class GLUtesselator; > > > > > > >typedef struct GLUnurbs GLUnurbsObj; >typedef struct GLUquadric GLUquadricObj; >typedef struct GLUtesselator GLUtesselatorObj; >typedef struct GLUtesselator GLUtriangulatorObj; > > > > > >typedef GLvoid (*_GLUfuncptr)(); > > > > >extern void gluBeginCurve (GLUnurbs* nurb); >extern void gluBeginPolygon (GLUtesselator* tess); >extern void gluBeginSurface (GLUnurbs* nurb); >extern void gluBeginTrim (GLUnurbs* nurb); >extern GLint gluBuild1DMipmapLevels (GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void *data); >extern GLint gluBuild1DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, const void *data); >extern GLint gluBuild2DMipmapLevels (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void *data); >extern GLint gluBuild2DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *data); >extern GLint gluBuild3DMipmapLevels (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void *data); >extern GLint gluBuild3DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data); >extern GLboolean gluCheckExtension (const GLubyte *extName, const GLubyte *extString); >extern void gluCylinder (GLUquadric* quad, GLdouble base, GLdouble top, GLdouble height, GLint slices, GLint stacks); >extern void gluDeleteNurbsRenderer (GLUnurbs* nurb); >extern void gluDeleteQuadric (GLUquadric* quad); >extern void gluDeleteTess (GLUtesselator* tess); >extern void gluDisk (GLUquadric* quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops); >extern void gluEndCurve (GLUnurbs* nurb); >extern void gluEndPolygon (GLUtesselator* tess); >extern void gluEndSurface (GLUnurbs* nurb); >extern void gluEndTrim (GLUnurbs* nurb); >extern const GLubyte * gluErrorString (GLenum error); >extern void gluGetNurbsProperty (GLUnurbs* nurb, GLenum property, GLfloat* data); >extern const GLubyte * gluGetString (GLenum name); >extern void gluGetTessProperty (GLUtesselator* tess, GLenum which, GLdouble* data); >extern void gluLoadSamplingMatrices (GLUnurbs* nurb, const GLfloat *model, const GLfloat *perspective, const GLint *view); >extern void gluLookAt (GLdouble eyeX, GLdouble eyeY, GLdouble eyeZ, GLdouble centerX, GLdouble centerY, GLdouble centerZ, GLdouble upX, GLdouble upY, GLdouble upZ); >extern GLUnurbs* gluNewNurbsRenderer (void); >extern GLUquadric* gluNewQuadric (void); >extern GLUtesselator* gluNewTess (void); >extern void gluNextContour (GLUtesselator* tess, GLenum type); >extern void gluNurbsCallback (GLUnurbs* nurb, GLenum which, _GLUfuncptr CallBackFunc); >extern void gluNurbsCallbackData (GLUnurbs* nurb, GLvoid* userData); >extern void gluNurbsCallbackDataEXT (GLUnurbs* nurb, GLvoid* userData); >extern void gluNurbsCurve (GLUnurbs* nurb, GLint knotCount, GLfloat *knots, GLint stride, GLfloat *control, GLint order, GLenum type); >extern void gluNurbsProperty (GLUnurbs* nurb, GLenum property, GLfloat value); >extern void gluNurbsSurface (GLUnurbs* nurb, GLint sKnotCount, GLfloat* sKnots, GLint tKnotCount, GLfloat* tKnots, GLint sStride, GLint tStride, GLfloat* control, GLint sOrder, GLint tOrder, GLenum type); >extern void gluOrtho2D (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top); >extern void gluPartialDisk (GLUquadric* quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops, GLdouble start, GLdouble sweep); >extern void gluPerspective (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar); >extern void gluPickMatrix (GLdouble x, GLdouble y, GLdouble delX, GLdouble delY, GLint *viewport); >extern GLint gluProject (GLdouble objX, GLdouble objY, GLdouble objZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* winX, GLdouble* winY, GLdouble* winZ); >extern void gluPwlCurve (GLUnurbs* nurb, GLint count, GLfloat* data, GLint stride, GLenum type); >extern void gluQuadricCallback (GLUquadric* quad, GLenum which, _GLUfuncptr CallBackFunc); >extern void gluQuadricDrawStyle (GLUquadric* quad, GLenum draw); >extern void gluQuadricNormals (GLUquadric* quad, GLenum normal); >extern void gluQuadricOrientation (GLUquadric* quad, GLenum orientation); >extern void gluQuadricTexture (GLUquadric* quad, GLboolean texture); >extern GLint gluScaleImage (GLenum format, GLsizei wIn, GLsizei hIn, GLenum typeIn, const void *dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid* dataOut); >extern void gluSphere (GLUquadric* quad, GLdouble radius, GLint slices, GLint stacks); >extern void gluTessBeginContour (GLUtesselator* tess); >extern void gluTessBeginPolygon (GLUtesselator* tess, GLvoid* data); >extern void gluTessCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc); >extern void gluTessEndContour (GLUtesselator* tess); >extern void gluTessEndPolygon (GLUtesselator* tess); >extern void gluTessNormal (GLUtesselator* tess, GLdouble valueX, GLdouble valueY, GLdouble valueZ); >extern void gluTessProperty (GLUtesselator* tess, GLenum which, GLdouble data); >extern void gluTessVertex (GLUtesselator* tess, GLdouble *location, GLvoid* data); >extern GLint gluUnProject (GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* objX, GLdouble* objY, GLdouble* objZ); >extern GLint gluUnProject4 (GLdouble winX, GLdouble winY, GLdouble winZ, GLdouble clipW, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble near, GLdouble far, GLdouble* objX, GLdouble* objY, GLdouble* objZ, GLdouble* objW); > > >} ># 12 "/usr/include/GL/glut.h" 2 3 4 > > >extern "C" { ># 370 "/usr/include/GL/glut.h" 3 4 >extern void *glutStrokeRoman; >extern void *glutStrokeMonoRoman; > > > > > > >extern void *glutBitmap9By15; >extern void *glutBitmap8By13; >extern void *glutBitmapTimesRoman10; >extern void *glutBitmapTimesRoman24; >extern void *glutBitmapHelvetica10; >extern void *glutBitmapHelvetica12; >extern void *glutBitmapHelvetica18; ># 533 "/usr/include/GL/glut.h" 3 4 >extern void glutInit(int *argcp, char **argv); > > > > > > > >extern void glutInitDisplayMode(unsigned int mode); > >extern void glutInitDisplayString(const char *string); > >extern void glutInitWindowPosition(int x, int y); >extern void glutInitWindowSize(int width, int height); >extern void glutMainLoop(void); > > >extern int glutCreateWindow(const char *title); > > > > > > > >extern int glutCreateSubWindow(int win, int x, int y, int width, int height); >extern void glutDestroyWindow(int win); >extern void glutPostRedisplay(void); > >extern void glutPostWindowRedisplay(int win); > >extern void glutSwapBuffers(void); >extern int glutGetWindow(void); >extern void glutSetWindow(int win); >extern void glutSetWindowTitle(const char *title); >extern void glutSetIconTitle(const char *title); >extern void glutPositionWindow(int x, int y); >extern void glutReshapeWindow(int width, int height); >extern void glutPopWindow(void); >extern void glutPushWindow(void); >extern void glutIconifyWindow(void); >extern void glutShowWindow(void); >extern void glutHideWindow(void); > >extern void glutFullScreen(void); >extern void glutSetCursor(int cursor); > >extern void glutWarpPointer(int x, int y); > > > >extern void glutEstablishOverlay(void); >extern void glutRemoveOverlay(void); >extern void glutUseLayer(GLenum layer); >extern void glutPostOverlayRedisplay(void); > >extern void glutPostWindowOverlayRedisplay(int win); > >extern void glutShowOverlay(void); >extern void glutHideOverlay(void); > > > >extern int glutCreateMenu(void ( *func)(int)); > > > > > > > >extern void glutDestroyMenu(int menu); >extern int glutGetMenu(void); >extern void glutSetMenu(int menu); >extern void glutAddMenuEntry(const char *label, int value); >extern void glutAddSubMenu(const char *label, int submenu); >extern void glutChangeToMenuEntry(int item, const char *label, int value); >extern void glutChangeToSubMenu(int item, const char *label, int submenu); >extern void glutRemoveMenuItem(int item); >extern void glutAttachMenu(int button); >extern void glutDetachMenu(int button); > > >extern void glutDisplayFunc(void ( *func)(void)); >extern void glutReshapeFunc(void ( *func)(int width, int height)); >extern void glutKeyboardFunc(void ( *func)(unsigned char key, int x, int y)); >extern void glutMouseFunc(void ( *func)(int button, int state, int x, int y)); >extern void glutMotionFunc(void ( *func)(int x, int y)); >extern void glutPassiveMotionFunc(void ( *func)(int x, int y)); >extern void glutEntryFunc(void ( *func)(int state)); >extern void glutVisibilityFunc(void ( *func)(int state)); >extern void glutIdleFunc(void ( *func)(void)); >extern void glutTimerFunc(unsigned int millis, void ( *func)(int value), int value); >extern void glutMenuStateFunc(void ( *func)(int state)); > >extern void glutSpecialFunc(void ( *func)(int key, int x, int y)); >extern void glutSpaceballMotionFunc(void ( *func)(int x, int y, int z)); >extern void glutSpaceballRotateFunc(void ( *func)(int x, int y, int z)); >extern void glutSpaceballButtonFunc(void ( *func)(int button, int state)); >extern void glutButtonBoxFunc(void ( *func)(int button, int state)); >extern void glutDialsFunc(void ( *func)(int dial, int value)); >extern void glutTabletMotionFunc(void ( *func)(int x, int y)); >extern void glutTabletButtonFunc(void ( *func)(int button, int state, int x, int y)); > >extern void glutMenuStatusFunc(void ( *func)(int status, int x, int y)); >extern void glutOverlayDisplayFunc(void ( *func)(void)); > >extern void glutWindowStatusFunc(void ( *func)(int state)); > > >extern void glutKeyboardUpFunc(void ( *func)(unsigned char key, int x, int y)); >extern void glutSpecialUpFunc(void ( *func)(int key, int x, int y)); >extern void glutJoystickFunc(void ( *func)(unsigned int buttonMask, int x, int y, int z), int pollInterval); > > > > > >extern void glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue); >extern GLfloat glutGetColor(int ndx, int component); >extern void glutCopyColormap(int win); > > >extern int glutGet(GLenum type); >extern int glutDeviceGet(GLenum type); > > >extern int glutExtensionSupported(const char *name); > > >extern int glutGetModifiers(void); >extern int glutLayerGet(GLenum type); > > >extern void * glutGetProcAddress(const char *procName); > > > >extern void glutBitmapCharacter(void *font, int character); >extern int glutBitmapWidth(void *font, int character); >extern void glutStrokeCharacter(void *font, int character); >extern int glutStrokeWidth(void *font, int character); > >extern int glutBitmapLength(void *font, const unsigned char *string); >extern int glutStrokeLength(void *font, const unsigned char *string); > > > >extern void glutWireSphere(GLdouble radius, GLint slices, GLint stacks); >extern void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks); >extern void glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks); >extern void glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks); >extern void glutWireCube(GLdouble size); >extern void glutSolidCube(GLdouble size); >extern void glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings); >extern void glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings); >extern void glutWireDodecahedron(void); >extern void glutSolidDodecahedron(void); >extern void glutWireTeapot(GLdouble size); >extern void glutSolidTeapot(GLdouble size); >extern void glutWireOctahedron(void); >extern void glutSolidOctahedron(void); >extern void glutWireTetrahedron(void); >extern void glutSolidTetrahedron(void); >extern void glutWireIcosahedron(void); >extern void glutSolidIcosahedron(void); > > > >extern int glutVideoResizeGet(GLenum param); >extern void glutSetupVideoResizing(void); >extern void glutStopVideoResizing(void); >extern void glutVideoResize(int x, int y, int width, int height); >extern void glutVideoPan(int x, int y, int width, int height); > > >extern void glutReportErrors(void); ># 725 "/usr/include/GL/glut.h" 3 4 >extern void glutIgnoreKeyRepeat(int ignore); >extern void glutSetKeyRepeat(int repeatMode); >extern void glutForceJoystickFunc(void); ># 739 "/usr/include/GL/glut.h" 3 4 >extern void glutGameModeString(const char *string); >extern int glutEnterGameMode(void); >extern void glutLeaveGameMode(void); >extern int glutGameModeGet(GLenum mode); > > > >} ># 32 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgfclient.h" 2 ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" 1 ># 27 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" ># 1 "/usr/include/plib/ul.h" 1 3 4 ># 44 "/usr/include/plib/ul.h" 3 4 ># 1 "/usr/include/ctype.h" 1 3 4 ># 30 "/usr/include/ctype.h" 3 4 >extern "C" { ># 48 "/usr/include/ctype.h" 3 4 >enum >{ > _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), > _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), > _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), > _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), > _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), > _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), > _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), > _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), > _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), > _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), > _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), > _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) >}; ># 81 "/usr/include/ctype.h" 3 4 >extern __const unsigned short int **__ctype_b_loc (void) > __attribute__ ((__const)); >extern __const __int32_t **__ctype_tolower_loc (void) > __attribute__ ((__const)); >extern __const __int32_t **__ctype_toupper_loc (void) > __attribute__ ((__const)); ># 96 "/usr/include/ctype.h" 3 4 > > > > > > >extern int isalnum (int) throw (); >extern int isalpha (int) throw (); >extern int iscntrl (int) throw (); >extern int isdigit (int) throw (); >extern int islower (int) throw (); >extern int isgraph (int) throw (); >extern int isprint (int) throw (); >extern int ispunct (int) throw (); >extern int isspace (int) throw (); >extern int isupper (int) throw (); >extern int isxdigit (int) throw (); > > > >extern int tolower (int __c) throw (); > > >extern int toupper (int __c) throw (); > > > > > > > > >extern int isblank (int) throw (); > > > > > > >extern int isctype (int __c, int __mask) throw (); > > > > > > >extern int isascii (int __c) throw (); > > > >extern int toascii (int __c) throw (); > > > >extern int _toupper (int) throw (); >extern int _tolower (int) throw (); ># 247 "/usr/include/ctype.h" 3 4 >extern int isalnum_l (int, __locale_t) throw (); >extern int isalpha_l (int, __locale_t) throw (); >extern int iscntrl_l (int, __locale_t) throw (); >extern int isdigit_l (int, __locale_t) throw (); >extern int islower_l (int, __locale_t) throw (); >extern int isgraph_l (int, __locale_t) throw (); >extern int isprint_l (int, __locale_t) throw (); >extern int ispunct_l (int, __locale_t) throw (); >extern int isspace_l (int, __locale_t) throw (); >extern int isupper_l (int, __locale_t) throw (); >extern int isxdigit_l (int, __locale_t) throw (); > >extern int isblank_l (int, __locale_t) throw (); > > > >extern int __tolower_l (int __c, __locale_t __l) throw (); >extern int tolower_l (int __c, __locale_t __l) throw (); > > >extern int __toupper_l (int __c, __locale_t __l) throw (); >extern int toupper_l (int __c, __locale_t __l) throw (); ># 323 "/usr/include/ctype.h" 3 4 >} ># 45 "/usr/include/plib/ul.h" 2 3 4 ># 1 "/usr/include/assert.h" 1 3 4 ># 65 "/usr/include/assert.h" 3 4 >extern "C" { > > >extern void __assert_fail (__const char *__assertion, __const char *__file, > unsigned int __line, __const char *__function) > throw () __attribute__ ((__noreturn__)); > > >extern void __assert_perror_fail (int __errnum, __const char *__file, > unsigned int __line, > __const char *__function) > throw () __attribute__ ((__noreturn__)); > > > > >extern void __assert (const char *__assertion, const char *__file, int __line) > throw () __attribute__ ((__noreturn__)); > > >} ># 46 "/usr/include/plib/ul.h" 2 3 4 ># 65 "/usr/include/plib/ul.h" 3 4 ># 1 "/usr/include/unistd.h" 1 3 4 ># 28 "/usr/include/unistd.h" 3 4 >extern "C" { ># 171 "/usr/include/unistd.h" 3 4 ># 1 "/usr/include/bits/posix_opt.h" 1 3 4 ># 172 "/usr/include/unistd.h" 2 3 4 > > > ># 1 "/usr/include/bits/environments.h" 1 3 4 ># 23 "/usr/include/bits/environments.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 24 "/usr/include/bits/environments.h" 2 3 4 ># 176 "/usr/include/unistd.h" 2 3 4 ># 195 "/usr/include/unistd.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 196 "/usr/include/unistd.h" 2 3 4 ># 236 "/usr/include/unistd.h" 3 4 >typedef __intptr_t intptr_t; > > > > > > >typedef __socklen_t socklen_t; ># 256 "/usr/include/unistd.h" 3 4 >extern int access (__const char *__name, int __type) throw (); > > > > >extern int euidaccess (__const char *__name, int __type) throw (); ># 286 "/usr/include/unistd.h" 3 4 >extern __off_t lseek (int __fd, __off_t __offset, int __whence) throw (); ># 298 "/usr/include/unistd.h" 3 4 >extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) throw (); > > > > > > >extern int close (int __fd); > > > > > > >extern ssize_t read (int __fd, void *__buf, size_t __nbytes); > > > > > >extern ssize_t write (int __fd, __const void *__buf, size_t __n); ># 328 "/usr/include/unistd.h" 3 4 >extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, > __off_t __offset); > > > > > > >extern ssize_t pwrite (int __fd, __const void *__buf, size_t __n, > __off_t __offset); ># 356 "/usr/include/unistd.h" 3 4 >extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, > __off64_t __offset); > > >extern ssize_t pwrite64 (int __fd, __const void *__buf, size_t __n, > __off64_t __offset); > > > > > > > >extern int pipe (int __pipedes[2]) throw (); ># 378 "/usr/include/unistd.h" 3 4 >extern unsigned int alarm (unsigned int __seconds) throw (); ># 390 "/usr/include/unistd.h" 3 4 >extern unsigned int sleep (unsigned int __seconds); > > > > > > >extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) > throw (); > > > > > > >extern int usleep (__useconds_t __useconds); ># 414 "/usr/include/unistd.h" 3 4 >extern int pause (void); > > > >extern int chown (__const char *__file, __uid_t __owner, __gid_t __group) > throw (); > > > >extern int fchown (int __fd, __uid_t __owner, __gid_t __group) throw (); > > > > >extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group) > throw (); > > > > >extern int chdir (__const char *__path) throw (); > > > >extern int fchdir (int __fd) throw (); ># 448 "/usr/include/unistd.h" 3 4 >extern char *getcwd (char *__buf, size_t __size) throw (); > > > > > >extern char *get_current_dir_name (void) throw (); > > > > > > >extern char *getwd (char *__buf) throw (); > > > > >extern int dup (int __fd) throw (); > > >extern int dup2 (int __fd, int __fd2) throw (); > > >extern char **__environ; > >extern char **environ; > > > > > >extern int execve (__const char *__path, char *__const __argv[], > char *__const __envp[]) throw (); > > > > >extern int fexecve (int __fd, char *__const __argv[], char *__const __envp[]) > throw (); > > > > >extern int execv (__const char *__path, char *__const __argv[]) throw (); > > > >extern int execle (__const char *__path, __const char *__arg, ...) throw (); > > > >extern int execl (__const char *__path, __const char *__arg, ...) throw (); > > > >extern int execvp (__const char *__file, char *__const __argv[]) throw (); > > > > >extern int execlp (__const char *__file, __const char *__arg, ...) throw (); > > > > >extern int nice (int __inc) throw (); > > > > >extern void _exit (int __status) __attribute__ ((__noreturn__)); > > > > > ># 1 "/usr/include/bits/confname.h" 1 3 4 ># 25 "/usr/include/bits/confname.h" 3 4 >enum > { > _PC_LINK_MAX, > > _PC_MAX_CANON, > > _PC_MAX_INPUT, > > _PC_NAME_MAX, > > _PC_PATH_MAX, > > _PC_PIPE_BUF, > > _PC_CHOWN_RESTRICTED, > > _PC_NO_TRUNC, > > _PC_VDISABLE, > > _PC_SYNC_IO, > > _PC_ASYNC_IO, > > _PC_PRIO_IO, > > _PC_SOCK_MAXBUF, > > _PC_FILESIZEBITS, > > _PC_REC_INCR_XFER_SIZE, > > _PC_REC_MAX_XFER_SIZE, > > _PC_REC_MIN_XFER_SIZE, > > _PC_REC_XFER_ALIGN, > > _PC_ALLOC_SIZE_MIN, > > _PC_SYMLINK_MAX, > > _PC_2_SYMLINKS > > }; > > >enum > { > _SC_ARG_MAX, > > _SC_CHILD_MAX, > > _SC_CLK_TCK, > > _SC_NGROUPS_MAX, > > _SC_OPEN_MAX, > > _SC_STREAM_MAX, > > _SC_TZNAME_MAX, > > _SC_JOB_CONTROL, > > _SC_SAVED_IDS, > > _SC_REALTIME_SIGNALS, > > _SC_PRIORITY_SCHEDULING, > > _SC_TIMERS, > > _SC_ASYNCHRONOUS_IO, > > _SC_PRIORITIZED_IO, > > _SC_SYNCHRONIZED_IO, > > _SC_FSYNC, > > _SC_MAPPED_FILES, > > _SC_MEMLOCK, > > _SC_MEMLOCK_RANGE, > > _SC_MEMORY_PROTECTION, > > _SC_MESSAGE_PASSING, > > _SC_SEMAPHORES, > > _SC_SHARED_MEMORY_OBJECTS, > > _SC_AIO_LISTIO_MAX, > > _SC_AIO_MAX, > > _SC_AIO_PRIO_DELTA_MAX, > > _SC_DELAYTIMER_MAX, > > _SC_MQ_OPEN_MAX, > > _SC_MQ_PRIO_MAX, > > _SC_VERSION, > > _SC_PAGESIZE, > > > _SC_RTSIG_MAX, > > _SC_SEM_NSEMS_MAX, > > _SC_SEM_VALUE_MAX, > > _SC_SIGQUEUE_MAX, > > _SC_TIMER_MAX, > > > > > _SC_BC_BASE_MAX, > > _SC_BC_DIM_MAX, > > _SC_BC_SCALE_MAX, > > _SC_BC_STRING_MAX, > > _SC_COLL_WEIGHTS_MAX, > > _SC_EQUIV_CLASS_MAX, > > _SC_EXPR_NEST_MAX, > > _SC_LINE_MAX, > > _SC_RE_DUP_MAX, > > _SC_CHARCLASS_NAME_MAX, > > > _SC_2_VERSION, > > _SC_2_C_BIND, > > _SC_2_C_DEV, > > _SC_2_FORT_DEV, > > _SC_2_FORT_RUN, > > _SC_2_SW_DEV, > > _SC_2_LOCALEDEF, > > > _SC_PII, > > _SC_PII_XTI, > > _SC_PII_SOCKET, > > _SC_PII_INTERNET, > > _SC_PII_OSI, > > _SC_POLL, > > _SC_SELECT, > > _SC_UIO_MAXIOV, > > _SC_IOV_MAX = _SC_UIO_MAXIOV, > > _SC_PII_INTERNET_STREAM, > > _SC_PII_INTERNET_DGRAM, > > _SC_PII_OSI_COTS, > > _SC_PII_OSI_CLTS, > > _SC_PII_OSI_M, > > _SC_T_IOV_MAX, > > > > _SC_THREADS, > > _SC_THREAD_SAFE_FUNCTIONS, > > _SC_GETGR_R_SIZE_MAX, > > _SC_GETPW_R_SIZE_MAX, > > _SC_LOGIN_NAME_MAX, > > _SC_TTY_NAME_MAX, > > _SC_THREAD_DESTRUCTOR_ITERATIONS, > > _SC_THREAD_KEYS_MAX, > > _SC_THREAD_STACK_MIN, > > _SC_THREAD_THREADS_MAX, > > _SC_THREAD_ATTR_STACKADDR, > > _SC_THREAD_ATTR_STACKSIZE, > > _SC_THREAD_PRIORITY_SCHEDULING, > > _SC_THREAD_PRIO_INHERIT, > > _SC_THREAD_PRIO_PROTECT, > > _SC_THREAD_PROCESS_SHARED, > > > _SC_NPROCESSORS_CONF, > > _SC_NPROCESSORS_ONLN, > > _SC_PHYS_PAGES, > > _SC_AVPHYS_PAGES, > > _SC_ATEXIT_MAX, > > _SC_PASS_MAX, > > > _SC_XOPEN_VERSION, > > _SC_XOPEN_XCU_VERSION, > > _SC_XOPEN_UNIX, > > _SC_XOPEN_CRYPT, > > _SC_XOPEN_ENH_I18N, > > _SC_XOPEN_SHM, > > > _SC_2_CHAR_TERM, > > _SC_2_C_VERSION, > > _SC_2_UPE, > > > _SC_XOPEN_XPG2, > > _SC_XOPEN_XPG3, > > _SC_XOPEN_XPG4, > > > _SC_CHAR_BIT, > > _SC_CHAR_MAX, > > _SC_CHAR_MIN, > > _SC_INT_MAX, > > _SC_INT_MIN, > > _SC_LONG_BIT, > > _SC_WORD_BIT, > > _SC_MB_LEN_MAX, > > _SC_NZERO, > > _SC_SSIZE_MAX, > > _SC_SCHAR_MAX, > > _SC_SCHAR_MIN, > > _SC_SHRT_MAX, > > _SC_SHRT_MIN, > > _SC_UCHAR_MAX, > > _SC_UINT_MAX, > > _SC_ULONG_MAX, > > _SC_USHRT_MAX, > > > _SC_NL_ARGMAX, > > _SC_NL_LANGMAX, > > _SC_NL_MSGMAX, > > _SC_NL_NMAX, > > _SC_NL_SETMAX, > > _SC_NL_TEXTMAX, > > > _SC_XBS5_ILP32_OFF32, > > _SC_XBS5_ILP32_OFFBIG, > > _SC_XBS5_LP64_OFF64, > > _SC_XBS5_LPBIG_OFFBIG, > > > _SC_XOPEN_LEGACY, > > _SC_XOPEN_REALTIME, > > _SC_XOPEN_REALTIME_THREADS, > > > _SC_ADVISORY_INFO, > > _SC_BARRIERS, > > _SC_BASE, > > _SC_C_LANG_SUPPORT, > > _SC_C_LANG_SUPPORT_R, > > _SC_CLOCK_SELECTION, > > _SC_CPUTIME, > > _SC_THREAD_CPUTIME, > > _SC_DEVICE_IO, > > _SC_DEVICE_SPECIFIC, > > _SC_DEVICE_SPECIFIC_R, > > _SC_FD_MGMT, > > _SC_FIFO, > > _SC_PIPE, > > _SC_FILE_ATTRIBUTES, > > _SC_FILE_LOCKING, > > _SC_FILE_SYSTEM, > > _SC_MONOTONIC_CLOCK, > > _SC_MULTI_PROCESS, > > _SC_SINGLE_PROCESS, > > _SC_NETWORKING, > > _SC_READER_WRITER_LOCKS, > > _SC_SPIN_LOCKS, > > _SC_REGEXP, > > _SC_REGEX_VERSION, > > _SC_SHELL, > > _SC_SIGNALS, > > _SC_SPAWN, > > _SC_SPORADIC_SERVER, > > _SC_THREAD_SPORADIC_SERVER, > > _SC_SYSTEM_DATABASE, > > _SC_SYSTEM_DATABASE_R, > > _SC_TIMEOUTS, > > _SC_TYPED_MEMORY_OBJECTS, > > _SC_USER_GROUPS, > > _SC_USER_GROUPS_R, > > _SC_2_PBS, > > _SC_2_PBS_ACCOUNTING, > > _SC_2_PBS_LOCATE, > > _SC_2_PBS_MESSAGE, > > _SC_2_PBS_TRACK, > > _SC_SYMLOOP_MAX, > > _SC_STREAMS, > > _SC_2_PBS_CHECKPOINT, > > > _SC_V6_ILP32_OFF32, > > _SC_V6_ILP32_OFFBIG, > > _SC_V6_LP64_OFF64, > > _SC_V6_LPBIG_OFFBIG, > > > _SC_HOST_NAME_MAX, > > _SC_TRACE, > > _SC_TRACE_EVENT_FILTER, > > _SC_TRACE_INHERIT, > > _SC_TRACE_LOG > > }; > > >enum > { > _CS_PATH, > > > _CS_V6_WIDTH_RESTRICTED_ENVS, > > > _CS_GNU_LIBC_VERSION, > > _CS_GNU_LIBPTHREAD_VERSION, > > > _CS_LFS_CFLAGS = 1000, > > _CS_LFS_LDFLAGS, > > _CS_LFS_LIBS, > > _CS_LFS_LINTFLAGS, > > _CS_LFS64_CFLAGS, > > _CS_LFS64_LDFLAGS, > > _CS_LFS64_LIBS, > > _CS_LFS64_LINTFLAGS, > > > _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, > > _CS_XBS5_ILP32_OFF32_LDFLAGS, > > _CS_XBS5_ILP32_OFF32_LIBS, > > _CS_XBS5_ILP32_OFF32_LINTFLAGS, > > _CS_XBS5_ILP32_OFFBIG_CFLAGS, > > _CS_XBS5_ILP32_OFFBIG_LDFLAGS, > > _CS_XBS5_ILP32_OFFBIG_LIBS, > > _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, > > _CS_XBS5_LP64_OFF64_CFLAGS, > > _CS_XBS5_LP64_OFF64_LDFLAGS, > > _CS_XBS5_LP64_OFF64_LIBS, > > _CS_XBS5_LP64_OFF64_LINTFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_CFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_LIBS, > > _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, > > > _CS_POSIX_V6_ILP32_OFF32_CFLAGS, > > _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, > > _CS_POSIX_V6_ILP32_OFF32_LIBS, > > _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_LIBS, > > _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, > > _CS_POSIX_V6_LP64_OFF64_CFLAGS, > > _CS_POSIX_V6_LP64_OFF64_LDFLAGS, > > _CS_POSIX_V6_LP64_OFF64_LIBS, > > _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS > > }; ># 526 "/usr/include/unistd.h" 2 3 4 > > >extern long int pathconf (__const char *__path, int __name) throw (); > > >extern long int fpathconf (int __fd, int __name) throw (); > > >extern long int sysconf (int __name) throw () __attribute__ ((__const__)); > > > >extern size_t confstr (int __name, char *__buf, size_t __len) throw (); > > > > >extern __pid_t getpid (void) throw (); > > >extern __pid_t getppid (void) throw (); > > > > >extern __pid_t getpgrp (void) throw (); ># 561 "/usr/include/unistd.h" 3 4 >extern __pid_t __getpgid (__pid_t __pid) throw (); > >extern __pid_t getpgid (__pid_t __pid) throw (); > > > > > > >extern int setpgid (__pid_t __pid, __pid_t __pgid) throw (); ># 587 "/usr/include/unistd.h" 3 4 >extern int setpgrp (void) throw (); ># 605 "/usr/include/unistd.h" 3 4 >extern __pid_t setsid (void) throw (); > > > >extern __pid_t getsid (__pid_t __pid) throw (); > > > >extern __uid_t getuid (void) throw (); > > >extern __uid_t geteuid (void) throw (); > > >extern __gid_t getgid (void) throw (); > > >extern __gid_t getegid (void) throw (); > > > > >extern int getgroups (int __size, __gid_t __list[]) throw (); > > > >extern int group_member (__gid_t __gid) throw (); > > > > > > >extern int setuid (__uid_t __uid) throw (); > > > > >extern int setreuid (__uid_t __ruid, __uid_t __euid) throw (); > > > > >extern int seteuid (__uid_t __uid) throw (); > > > > > > >extern int setgid (__gid_t __gid) throw (); > > > > >extern int setregid (__gid_t __rgid, __gid_t __egid) throw (); > > > > >extern int setegid (__gid_t __gid) throw (); > > > > > >extern int getresuid (__uid_t *__euid, __uid_t *__ruid, __uid_t *__suid); > > > >extern int getresgid (__gid_t *__egid, __gid_t *__rgid, __gid_t *__sgid); > > > >extern int setresuid (__uid_t __euid, __uid_t __ruid, __uid_t __suid); > > > >extern int setresgid (__gid_t __egid, __gid_t __rgid, __gid_t __sgid); > > > > > > >extern __pid_t fork (void) throw (); > > > > > > >extern __pid_t vfork (void) throw (); > > > > > >extern char *ttyname (int __fd) throw (); > > > >extern int ttyname_r (int __fd, char *__buf, size_t __buflen) throw (); > > > >extern int isatty (int __fd) throw (); > > > > > >extern int ttyslot (void) throw (); > > > > >extern int link (__const char *__from, __const char *__to) throw (); > > > >extern int symlink (__const char *__from, __const char *__to) throw (); > > > > >extern int readlink (__const char *__restrict __path, char *__restrict __buf, > size_t __len) throw (); > > > >extern int unlink (__const char *__name) throw (); > > >extern int rmdir (__const char *__path) throw (); > > > >extern __pid_t tcgetpgrp (int __fd) throw (); > > >extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) throw (); > > > > > > >extern char *getlogin (void); > > > > > > > >extern int getlogin_r (char *__name, size_t __name_len); > > > > >extern int setlogin (__const char *__name) throw (); ># 775 "/usr/include/unistd.h" 3 4 ># 1 "/usr/include/getopt.h" 1 3 4 ># 46 "/usr/include/getopt.h" 3 4 >extern "C" { ># 55 "/usr/include/getopt.h" 3 4 >extern char *optarg; ># 69 "/usr/include/getopt.h" 3 4 >extern int optind; > > > > >extern int opterr; > > > >extern int optopt; ># 153 "/usr/include/getopt.h" 3 4 >extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) > throw (); ># 186 "/usr/include/getopt.h" 3 4 >} ># 776 "/usr/include/unistd.h" 2 3 4 > > > > > > > >extern int gethostname (char *__name, size_t __len) throw (); > > > > > > >extern int sethostname (__const char *__name, size_t __len) throw (); > > > >extern int sethostid (long int __id) throw (); > > > > > >extern int getdomainname (char *__name, size_t __len) throw (); >extern int setdomainname (__const char *__name, size_t __len) throw (); > > > > > >extern int vhangup (void) throw (); > > >extern int revoke (__const char *__file) throw (); > > > > > > > >extern int profil (unsigned short int *__sample_buffer, size_t __size, > size_t __offset, unsigned int __scale) throw (); > > > > > >extern int acct (__const char *__name) throw (); > > > >extern char *getusershell (void) throw (); >extern void endusershell (void) throw (); >extern void setusershell (void) throw (); > > > > > >extern int daemon (int __nochdir, int __noclose) throw (); > > > > > > >extern int chroot (__const char *__path) throw (); > > > >extern char *getpass (__const char *__prompt); ># 857 "/usr/include/unistd.h" 3 4 >extern int fsync (int __fd); > > > > > > >extern long int gethostid (void); > > >extern void sync (void) throw (); > > > > >extern int getpagesize (void) throw () __attribute__ ((__const__)); > > > > >extern int truncate (__const char *__file, __off_t __length) throw (); ># 888 "/usr/include/unistd.h" 3 4 >extern int truncate64 (__const char *__file, __off64_t __length) throw (); > > > > >extern int ftruncate (int __fd, __off_t __length) throw (); ># 903 "/usr/include/unistd.h" 3 4 >extern int ftruncate64 (int __fd, __off64_t __length) throw (); > > > > > >extern int getdtablesize (void) throw (); ># 918 "/usr/include/unistd.h" 3 4 >extern int brk (void *__addr) throw (); > > > > > >extern void *sbrk (intptr_t __delta) throw (); ># 939 "/usr/include/unistd.h" 3 4 >extern long int syscall (long int __sysno, ...) throw (); ># 962 "/usr/include/unistd.h" 3 4 >extern int lockf (int __fd, int __cmd, __off_t __len); ># 972 "/usr/include/unistd.h" 3 4 >extern int lockf64 (int __fd, int __cmd, __off64_t __len); ># 993 "/usr/include/unistd.h" 3 4 >extern int fdatasync (int __fildes) throw (); > > > > > > > >extern char *crypt (__const char *__key, __const char *__salt) throw (); > > > >extern void encrypt (char *__block, int __edflag) throw (); > > > > > > >extern void swab (__const void *__restrict __from, void *__restrict __to, > ssize_t __n) throw (); > > > > > > > >extern char *ctermid (char *__s) throw (); > > >} ># 66 "/usr/include/plib/ul.h" 2 3 4 ># 1 "/usr/include/dlfcn.h" 1 3 4 ># 25 "/usr/include/dlfcn.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/stddef.h" 1 3 4 ># 26 "/usr/include/dlfcn.h" 2 3 4 > > ># 1 "/usr/include/bits/dlfcn.h" 1 3 4 ># 57 "/usr/include/bits/dlfcn.h" 3 4 >extern "C" { > > >extern void _dl_mcount_wrapper_check (void *__selfpc) throw (); > >} ># 29 "/usr/include/dlfcn.h" 2 3 4 ># 45 "/usr/include/dlfcn.h" 3 4 >extern "C" { > > > >extern void *dlopen (__const char *__file, int __mode) throw (); > > > >extern int dlclose (void *__handle) throw (); > > > >extern void *dlsym (void *__restrict __handle, > __const char *__restrict __name) throw (); > > > > >extern void *dlvsym (void *__restrict __handle, > __const char *__restrict __name, > __const char *__restrict __version) throw (); > > > > > >extern char *dlerror (void) throw (); > > > > > >typedef struct >{ > __const char *dli_fname; > void *dli_fbase; > __const char *dli_sname; > void *dli_saddr; >} Dl_info; > > > >extern int dladdr (__const void *__address, Dl_info *__info) throw (); > > >extern int dladdr1 (__const void *__address, Dl_info *__info, > void **__extra_info, int __flags) throw (); > > > > >enum > { > > RTLD_DL_SYMENT = 1, > > > RTLD_DL_LINKMAP = 2 > }; > > > > > > > >extern int dlinfo (void *__restrict __handle, > int __request, void *__restrict __arg); > > >enum > { > > > RTLD_DI_LINKMAP = 2, > > > > > > > RTLD_DI_SERINFO = 4, > RTLD_DI_SERINFOSIZE = 5, > > > > RTLD_DI_ORIGIN = 6, > > RTLD_DI_LMID = 1, > RTLD_DI_CONFIGADDR = 3 > }; > > > > >typedef struct >{ > char *dls_name; > unsigned int dls_flags; >} Dl_serpath; > > > >typedef struct >{ > size_t dls_size; > unsigned int dls_cnt; > Dl_serpath dls_serpath[1]; >} Dl_serinfo; > > > >} ># 67 "/usr/include/plib/ul.h" 2 3 4 > > > > > ># 1 "/usr/include/assert.h" 1 3 4 ># 65 "/usr/include/assert.h" 3 4 >extern "C" { > > >extern void __assert_fail (__const char *__assertion, __const char *__file, > unsigned int __line, __const char *__function) > throw () __attribute__ ((__noreturn__)); > > >extern void __assert_perror_fail (int __errnum, __const char *__file, > unsigned int __line, > __const char *__function) > throw () __attribute__ ((__noreturn__)); > > > > >extern void __assert (const char *__assertion, const char *__file, int __line) > throw () __attribute__ ((__noreturn__)); > > >} ># 73 "/usr/include/plib/ul.h" 2 3 4 > ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h" 1 3 4 ># 75 "/usr/include/plib/ul.h" 2 3 4 ># 89 "/usr/include/plib/ul.h" 3 4 ># 1 "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/float.h" 1 3 4 ># 90 "/usr/include/plib/ul.h" 2 3 4 ># 135 "/usr/include/plib/ul.h" 3 4 >class ulClock >{ > double start ; > double now ; > double delta ; > double last_time ; > double max_delta ; > > > > > > > > double getRawTime () const ; > >public: > > ulClock () { reset () ; } > > void reset () > { > > > > start = getRawTime () ; > now = start ; > max_delta = 0.2 ; > delta = 1.0 / 30.0 ; > last_time = now - delta ; > } > > void setMaxDelta ( double maxDelta ) { max_delta = maxDelta ; } > double getMaxDelta () const { return max_delta ; } > void update () ; > double getAbsTime () const { return now ; } > double getDeltaTime () const { return delta ; } > double getFrameRate () const { return 1.0 / delta ; } >} ; > > >inline void ulSleep ( int seconds ) >{ > if ( seconds >= 0 ) > { > > > > sleep ( seconds ) ; > > } >} > > >inline void ulMilliSecondSleep ( int milliseconds ) >{ > if ( milliseconds >= 0 ) > { > > > > usleep ( milliseconds * 1000 ) ; > > } >} > > > > > > > >extern "C" void ulInit () ; > > > > > >enum ulSeverity >{ > UL_DEBUG, > UL_WARNING, > UL_FATAL, > UL_MAX_SEVERITY >} ; > > >typedef void (*ulErrorCallback) ( enum ulSeverity severity, char* msg ) ; > >void ulSetError ( enum ulSeverity severity, const char *fmt, ... ) ; >char* ulGetError ( void ) ; >void ulClearError ( void ) ; >ulErrorCallback ulGetErrorCallback ( void ) ; >void ulSetErrorCallback ( ulErrorCallback cb ) ; > > > > > > >typedef struct _ulDir ulDir ; >struct ulDirEnt >{ > char d_name [ 256 +1 ]; > bool d_isdir ; >} ; > >int ulIsAbsolutePathName ( const char *pathname ) ; >char *ulGetCWD ( char *result, int maxlength ) ; > >ulDir* ulOpenDir ( const char* dirname ) ; >ulDirEnt* ulReadDir ( ulDir* dir ) ; >void ulCloseDir ( ulDir* dir ) ; > > > >char* ulMakePath( char* path, const char* dir, const char* fname ); > >bool ulFileExists ( const char *fileName ) ; > >void ulFindFile( char *filenameOutput, const char *path, > const char * tfnameInput, const char *sAPOM ) ; > > > > > > >static const int _ulEndianTest = 1; > > >static inline void _ulEndianSwap(unsigned int *x) { > *x = (( *x >> 24 ) & 0x000000FF ) | > (( *x >> 8 ) & 0x0000FF00 ) | > (( *x << 8 ) & 0x00FF0000 ) | > (( *x << 24 ) & 0xFF000000 ) ; >} > >static inline void _ulEndianSwap(unsigned short *x) { > *x = (( *x >> 8 ) & 0x00FF ) | > (( *x << 8 ) & 0xFF00 ) ; >} > >inline unsigned short ulEndianLittle16(unsigned short x) { > if ((*((char *) &_ulEndianTest ) != 0)) { > return x; > } else { > _ulEndianSwap(&x); > return x; > } >} > >inline unsigned int ulEndianLittle32(unsigned int x) { > if ((*((char *) &_ulEndianTest ) != 0)) { > return x; > } else { > _ulEndianSwap(&x); > return x; > } >} > >inline float ulEndianLittleFloat(float x) { > if ((*((char *) &_ulEndianTest ) != 0)) { > return x; > } else { > _ulEndianSwap((unsigned int*)&x); > return x; > } >} > >inline void ulEndianLittleArray16(unsigned short *x, int length) { > if ((*((char *) &_ulEndianTest ) != 0)) { > return; > } else { > for (int i = 0; i < length; i++) { > _ulEndianSwap(x++); > } > } >} > >inline void ulEndianLittleArray32(unsigned int *x, int length) { > if ((*((char *) &_ulEndianTest ) != 0)) { > return; > } else { > for (int i = 0; i < length; i++) { > _ulEndianSwap(x++); > } > } >} > >inline void ulEndianLittleArrayFloat(float *x, int length) { > if ((*((char *) &_ulEndianTest ) != 0)) { > return; > } else { > for (int i = 0; i < length; i++) { > _ulEndianSwap((unsigned int*)x++); > } > } >} > >inline void ulEndianBigArray16(unsigned short *x, int length) { > if ((*((char *) &_ulEndianTest ) == 0)) { > return; > } else { > for (int i = 0; i < length; i++) { > _ulEndianSwap(x++); > } > } >} > >inline void ulEndianBigArray32(unsigned int *x, int length) { > if ((*((char *) &_ulEndianTest ) == 0)) { > return; > } else { > for (int i = 0; i < length; i++) { > _ulEndianSwap(x++); > } > } >} > >inline void ulEndianBigArrayFloat(float *x, int length) { > if ((*((char *) &_ulEndianTest ) == 0)) { > return; > } else { > for (int i = 0; i < length; i++) { > _ulEndianSwap((unsigned int*)x++); > } > } >} > >inline unsigned short ulEndianBig16(unsigned short x) { > if ((*((char *) &_ulEndianTest ) == 0)) { > return x; > } else { > _ulEndianSwap(&x); > return x; > } >} > >inline unsigned int ulEndianBig32(unsigned int x) { > if ((*((char *) &_ulEndianTest ) == 0)) { > return x; > } else { > _ulEndianSwap(&x); > return x; > } >} > >inline float ulEndianBigFloat(float x) { > if ((*((char *) &_ulEndianTest ) == 0)) { > return x; > } else { > _ulEndianSwap((unsigned int*)&x); > return x; > } >} > >inline unsigned short ulEndianReadLittle16(FILE *f) { > unsigned short x; > fread(&x, 2, 1, f); > return ulEndianLittle16(x); >} > >inline unsigned int ulEndianReadLittle32(FILE *f) { > unsigned int x; > fread(&x, 4, 1, f); > return ulEndianLittle32(x); >} > >inline float ulEndianReadLittleFloat(FILE *f) { > float x; > fread(&x, 4, 1, f); > return ulEndianLittleFloat(x); >} > >inline unsigned short ulEndianReadBig16(FILE *f) { > unsigned short x; > fread(&x, 2, 1, f); > return ulEndianBig16(x); >} > >inline unsigned int ulEndianReadBig32(FILE *f) { > unsigned int x; > fread(&x, 4, 1, f); > return ulEndianBig32(x); >} > >inline float ulEndianReadBigFloat(FILE *f) { > float x; > fread(&x, 4, 1, f); > return ulEndianBigFloat(x); >} > >inline size_t ulEndianWriteLittle16(FILE *f, unsigned short x) { > x = ulEndianLittle16(x); > return fwrite( &x, 2, 1, f ); >} > >inline size_t ulEndianWriteLittle32(FILE *f, unsigned int x) { > x = ulEndianLittle32(x); > return fwrite( &x, 4, 1, f ); >} > >inline size_t ulEndianWriteLittleFloat(FILE *f, float x) { > x = ulEndianLittleFloat(x); > return fwrite( &x, 4, 1, f ); >} > >inline size_t ulEndianWriteBig16(FILE *f, unsigned short x) { > x = ulEndianBig16(x); > return fwrite( &x, 2, 1, f ); >} > >inline size_t ulEndianWriteBig32(FILE *f, unsigned int x) { > x = ulEndianBig32(x); > return fwrite( &x, 4, 1, f ); >} > >inline size_t ulEndianWriteBigFloat(FILE *f, float x) { > x = ulEndianBigFloat(x); > return fwrite( &x, 4, 1, f ); >} ># 625 "/usr/include/plib/ul.h" 3 4 >class ulDynamicLibrary >{ > void *handle ; > >public: > > ulDynamicLibrary ( const char *libname ) > { > char dsoname [ 1024 ] ; > strcpy ( dsoname, libname ) ; > strcat ( dsoname, ".so" ) ; > handle = (void *) dlopen ( dsoname, 0x00002 | 0x00100 ) ; > > if ( handle == __null ) > ulSetError ( UL_WARNING, "ulDynamicLibrary: %s\n", dlerror() ) ; > } > > void *getFuncAddress ( const char *funcname ) > { > return (handle==__null) ? __null : dlsym ( handle, funcname ) ; > } > > ~ulDynamicLibrary () > { > if ( handle != __null ) > dlclose ( handle ) ; > } >} ; > > > > >class ulList >{ >protected: > unsigned int total ; > unsigned int limit ; > unsigned int next ; > > void **entity_list ; > > void sizeChk (void) ; > >public: > > ulList ( int init_max = 1 ) ; > virtual ~ulList (void) ; > > void *getEntity ( unsigned int n ) > { > next = n + 1 ; > return ( n >= total ) ? (void *) __null : entity_list [ n ] ; > } > > virtual void addEntity ( void *entity ) ; > virtual void addEntityBefore ( int n, void *entity ) ; > virtual void removeEntity ( unsigned int n ) ; > > void removeAllEntities () ; > > void removeEntity ( void *entity ) > { > removeEntity ( searchForEntity ( entity ) ) ; > } > > virtual void replaceEntity ( unsigned int n, void *new_entity ) ; > > void replaceEntity ( void *old_entity, void *new_entity ) > { > replaceEntity ( searchForEntity ( old_entity ), new_entity ) ; > } > > void *getNextEntity (void) { return getEntity ( next ) ; } > > int getNumEntities (void) const { return total ; } > int searchForEntity ( void *entity ) const ; >} ; > > >typedef bool (*ulIterateFunc)( const void *data, void *user_data ) ; >typedef int (*ulCompareFunc)( const void *data1, const void *data2 ) ; > > > > > >class ulListNode ; > >class ulLinkedList >{ >protected: > > ulListNode *head ; > ulListNode *tail ; > > int nnodes ; > bool sorted ; > > void unlinkNode ( ulListNode *prev, ulListNode *node ) ; > > bool isValidPosition ( int pos ) const > { > if ( ( pos < 0 ) || ( pos >= nnodes ) ) > { > ulSetError ( UL_WARNING, "ulLinkedList: Invalid 'pos' %u", pos ) ; > return false ; > } > return true ; > } > >public: > > ulLinkedList () > { > head = tail = __null ; > nnodes = 0 ; > sorted = true ; > } > > ~ulLinkedList () { empty () ; } > > int getNumNodes ( void ) const { return nnodes ; } > bool isSorted ( void ) const { return sorted ; } > > int getNodePosition ( void *data ) const ; > > void insertNode ( void *data, int pos ) ; > void prependNode ( void *data ) { insertNode ( data, 0 ) ; } > void appendNode ( void *data ) ; > > int insertSorted ( void *data, ulCompareFunc comparefn ) ; > > void removeNode ( void *data ) ; > void * removeNode ( int pos ) ; > > void * getNodeData ( int pos ) const ; > > void * forEach ( ulIterateFunc fn, void *user_data = __null ) const ; > > void empty ( ulIterateFunc destroyfn = __null, void *user_data = __null ) ; >} ; > > >extern char *ulStrDup ( const char *s ) ; >extern int ulStrNEqual ( const char *s1, const char *s2, int len ); >extern int ulStrEqual ( const char *s1, const char *s2 ); ># 28 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" 2 ># 66 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" ># 1 "/usr/include/fcntl.h" 1 3 4 ># 29 "/usr/include/fcntl.h" 3 4 >extern "C" { > > > ># 1 "/usr/include/bits/fcntl.h" 1 3 4 ># 136 "/usr/include/bits/fcntl.h" 3 4 >struct flock > { > short int l_type; > short int l_whence; > > __off_t l_start; > __off_t l_len; > > > > > __pid_t l_pid; > }; > > >struct flock64 > { > short int l_type; > short int l_whence; > __off64_t l_start; > __off64_t l_len; > __pid_t l_pid; > }; ># 34 "/usr/include/fcntl.h" 2 3 4 > > > ># 1 "/usr/include/sys/stat.h" 1 3 4 ># 37 "/usr/include/sys/stat.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 38 "/usr/include/sys/stat.h" 2 3 4 ># 103 "/usr/include/sys/stat.h" 3 4 >extern "C" { > ># 1 "/usr/include/bits/stat.h" 1 3 4 ># 36 "/usr/include/bits/stat.h" 3 4 >struct stat > { > __dev_t st_dev; > unsigned short int __pad1; > > __ino_t st_ino; > > > > __mode_t st_mode; > __nlink_t st_nlink; > __uid_t st_uid; > __gid_t st_gid; > __dev_t st_rdev; > unsigned short int __pad2; > > __off_t st_size; > > > > __blksize_t st_blksize; > > > __blkcnt_t st_blocks; ># 70 "/usr/include/bits/stat.h" 3 4 > struct timespec st_atim; > struct timespec st_mtim; > struct timespec st_ctim; ># 85 "/usr/include/bits/stat.h" 3 4 > unsigned long int __unused4; > unsigned long int __unused5; > > > > }; > > >struct stat64 > { > __dev_t st_dev; > unsigned int __pad1; > > __ino_t __st_ino; > __mode_t st_mode; > __nlink_t st_nlink; > __uid_t st_uid; > __gid_t st_gid; > __dev_t st_rdev; > unsigned int __pad2; > __off64_t st_size; > __blksize_t st_blksize; > > __blkcnt64_t st_blocks; > > > > > > > > struct timespec st_atim; > struct timespec st_mtim; > struct timespec st_ctim; ># 127 "/usr/include/bits/stat.h" 3 4 > __ino64_t st_ino; > }; ># 106 "/usr/include/sys/stat.h" 2 3 4 ># 207 "/usr/include/sys/stat.h" 3 4 >extern int stat (__const char *__restrict __file, > struct stat *__restrict __buf) throw (); > > > >extern int fstat (int __fd, struct stat *__buf) throw (); ># 226 "/usr/include/sys/stat.h" 3 4 >extern int stat64 (__const char *__restrict __file, > struct stat64 *__restrict __buf) throw (); >extern int fstat64 (int __fd, struct stat64 *__buf) throw (); > > > > > > >extern int lstat (__const char *__restrict __file, > struct stat *__restrict __buf) throw (); ># 248 "/usr/include/sys/stat.h" 3 4 >extern int lstat64 (__const char *__restrict __file, > struct stat64 *__restrict __buf) throw (); > > > > > >extern int chmod (__const char *__file, __mode_t __mode) throw (); > > > > > >extern int lchmod (__const char *__file, __mode_t __mode) throw (); > > > > >extern int fchmod (int __fd, __mode_t __mode) throw (); > > > > > >extern __mode_t umask (__mode_t __mask) throw (); > > > > >extern __mode_t getumask (void) throw (); > > > >extern int mkdir (__const char *__path, __mode_t __mode) throw (); > > > > > >extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev) > throw (); > > > > >extern int mkfifo (__const char *__path, __mode_t __mode) throw (); ># 319 "/usr/include/sys/stat.h" 3 4 >extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) throw (); >extern int __xstat (int __ver, __const char *__filename, > struct stat *__stat_buf) throw (); >extern int __lxstat (int __ver, __const char *__filename, > struct stat *__stat_buf) throw (); ># 343 "/usr/include/sys/stat.h" 3 4 >extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf) > throw (); >extern int __xstat64 (int __ver, __const char *__filename, > struct stat64 *__stat_buf) throw (); >extern int __lxstat64 (int __ver, __const char *__filename, > struct stat64 *__stat_buf) throw (); > >extern int __xmknod (int __ver, __const char *__path, __mode_t __mode, > __dev_t *__dev) throw (); > > > > >extern __inline__ int stat (__const char *__path, > struct stat *__statbuf) throw () >{ > return __xstat (3, __path, __statbuf); >} > > >extern __inline__ int lstat (__const char *__path, > struct stat *__statbuf) throw () >{ > return __lxstat (3, __path, __statbuf); >} > > >extern __inline__ int fstat (int __fd, struct stat *__statbuf) throw () >{ > return __fxstat (3, __fd, __statbuf); >} > > >extern __inline__ int mknod (__const char *__path, __mode_t __mode, > __dev_t __dev) throw () >{ > return __xmknod (1, __path, __mode, &__dev); >} > > > > > >extern __inline__ int stat64 (__const char *__path, > struct stat64 *__statbuf) throw () >{ > return __xstat64 (3, __path, __statbuf); >} > > >extern __inline__ int lstat64 (__const char *__path, > struct stat64 *__statbuf) throw () >{ > return __lxstat64 (3, __path, __statbuf); >} > > >extern __inline__ int fstat64 (int __fd, struct stat64 *__statbuf) throw () >{ > return __fxstat64 (3, __fd, __statbuf); >} > > > > >} ># 38 "/usr/include/fcntl.h" 2 3 4 ># 63 "/usr/include/fcntl.h" 3 4 >extern int fcntl (int __fd, int __cmd, ...); ># 72 "/usr/include/fcntl.h" 3 4 >extern int open (__const char *__file, int __oflag, ...); ># 81 "/usr/include/fcntl.h" 3 4 >extern int open64 (__const char *__file, int __oflag, ...); ># 90 "/usr/include/fcntl.h" 3 4 >extern int creat (__const char *__file, __mode_t __mode); ># 100 "/usr/include/fcntl.h" 3 4 >extern int creat64 (__const char *__file, __mode_t __mode); ># 136 "/usr/include/fcntl.h" 3 4 >extern int posix_fadvise (int __fd, __off_t __offset, __off_t __len, > int __advise) throw (); ># 148 "/usr/include/fcntl.h" 3 4 >extern int posix_fadvise64 (int __fd, __off64_t __offset, __off64_t __len, > int __advise) throw (); ># 158 "/usr/include/fcntl.h" 3 4 >extern int posix_fallocate (int __fd, __off_t __offset, __off_t __len); ># 169 "/usr/include/fcntl.h" 3 4 >extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len); > > > >} ># 67 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" 2 ># 77 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" ># 1 "/usr/include/sys/ioctl.h" 1 3 4 ># 24 "/usr/include/sys/ioctl.h" 3 4 >extern "C" { > > ># 1 "/usr/include/bits/ioctls.h" 1 3 4 ># 24 "/usr/include/bits/ioctls.h" 3 4 ># 1 "/usr/include/asm/ioctls.h" 1 3 4 > > > ># 1 "/usr/include/asm/ioctl.h" 1 3 4 ># 5 "/usr/include/asm/ioctls.h" 2 3 4 ># 25 "/usr/include/bits/ioctls.h" 2 3 4 ># 28 "/usr/include/sys/ioctl.h" 2 3 4 > > ># 1 "/usr/include/bits/ioctl-types.h" 1 3 4 ># 28 "/usr/include/bits/ioctl-types.h" 3 4 >struct winsize > { > unsigned short int ws_row; > unsigned short int ws_col; > unsigned short int ws_xpixel; > unsigned short int ws_ypixel; > }; > > >struct termio > { > unsigned short int c_iflag; > unsigned short int c_oflag; > unsigned short int c_cflag; > unsigned short int c_lflag; > unsigned char c_line; > unsigned char c_cc[8]; >}; ># 31 "/usr/include/sys/ioctl.h" 2 3 4 > > > > > > ># 1 "/usr/include/sys/ttydefaults.h" 1 3 4 ># 38 "/usr/include/sys/ioctl.h" 2 3 4 > > > > >extern int ioctl (int __fd, unsigned long int __request, ...) throw (); > >} ># 78 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" 2 ># 1 "/usr/include/linux/joystick.h" 1 3 4 ># 32 "/usr/include/linux/joystick.h" 3 4 ># 1 "/usr/include/asm/types.h" 1 3 4 > > > >typedef unsigned short umode_t; > > > > > > >typedef __signed__ char __s8; >typedef unsigned char __u8; > >typedef __signed__ short __s16; >typedef unsigned short __u16; > >typedef __signed__ int __s32; >typedef unsigned int __u32; > > >typedef __signed__ long long __s64; >typedef unsigned long long __u64; ># 33 "/usr/include/linux/joystick.h" 2 3 4 ># 1 "/usr/include/linux/input.h" 1 3 4 ># 35 "/usr/include/linux/input.h" 3 4 ># 1 "/usr/include/sys/time.h" 1 3 4 ># 26 "/usr/include/sys/time.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 27 "/usr/include/sys/time.h" 2 3 4 > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 29 "/usr/include/sys/time.h" 2 3 4 ># 38 "/usr/include/sys/time.h" 3 4 >extern "C" { ># 56 "/usr/include/sys/time.h" 3 4 >struct timezone > { > int tz_minuteswest; > int tz_dsttime; > }; > >typedef struct timezone *__restrict __timezone_ptr_t; ># 72 "/usr/include/sys/time.h" 3 4 >extern int gettimeofday (struct timeval *__restrict __tv, > __timezone_ptr_t __tz) throw (); > > > > >extern int settimeofday (__const struct timeval *__tv, > __const struct timezone *__tz) throw (); > > > > > >extern int adjtime (__const struct timeval *__delta, > struct timeval *__olddelta) throw (); > > > > >enum __itimer_which > { > > ITIMER_REAL = 0, > > > ITIMER_VIRTUAL = 1, > > > > ITIMER_PROF = 2 > > }; > > > >struct itimerval > { > > struct timeval it_interval; > > struct timeval it_value; > }; > > > > > > >typedef int __itimer_which_t; > > > > >extern int getitimer (__itimer_which_t __which, > struct itimerval *__value) throw (); > > > > >extern int setitimer (__itimer_which_t __which, > __const struct itimerval *__restrict __new, > struct itimerval *__restrict __old) throw (); > > > > >extern int utimes (__const char *__file, __const struct timeval __tvp[2]) > throw (); > > > >extern int lutimes (__const char *__file, __const struct timeval __tvp[2]) > throw (); > > >extern int futimes (int __fd, __const struct timeval __tvp[2]) throw (); ># 181 "/usr/include/sys/time.h" 3 4 >} ># 36 "/usr/include/linux/input.h" 2 3 4 ># 44 "/usr/include/linux/input.h" 3 4 >struct input_event { > struct timeval time; > unsigned short type; > unsigned short code; > unsigned int value; >}; ># 493 "/usr/include/linux/input.h" 3 4 >struct ff_replay { > __u16 length; > __u16 delay; >}; > >struct ff_trigger { > __u16 button; > __u16 interval; >}; > >struct ff_shape { > __u16 attack_length; > __s16 attack_level; > __u16 fade_length; > __s16 fade_level; >}; > > >struct ff_constant_effect { > __s16 level; > __u16 direction; > struct ff_shape shape; >}; > > >struct ff_interactive_effect { > > > > > __u16 axis; > __u16 direction; > > __s16 right_saturation; > __s16 left_saturation; > > __s16 right_coeff; > > __s16 left_coeff; > > __u16 deadband; > __s16 center; > >}; > > >struct ff_periodic_effect { > __u16 waveform; > __u16 period; > __s16 magnitude; > __s16 offset; > __u16 phase; > __u16 direction; > > > struct ff_shape shape; >}; > > > > >struct ff_effect { > __u16 type; > > > > __s16 id; > > struct ff_trigger trigger; > struct ff_replay replay; > > union { > struct ff_constant_effect constant; > struct ff_periodic_effect periodic; > struct ff_interactive_effect interactive; > } u; >}; ># 34 "/usr/include/linux/joystick.h" 2 3 4 ># 49 "/usr/include/linux/joystick.h" 3 4 >struct js_event { > __u32 time; > __s16 value; > __u8 type; > __u8 number; >}; ># 81 "/usr/include/linux/joystick.h" 3 4 >struct js_corr { > __s32 coef[8]; > __s16 prec; > __u16 type; >}; ># 113 "/usr/include/linux/joystick.h" 3 4 >struct JS_DATA_TYPE { > int buttons; > int x; > int y; >}; > >struct JS_DATA_SAVE_TYPE { > int JS_TIMEOUT; > int BUSY; > long JS_EXPIRETIME; > long JS_TIMELIMIT; > struct JS_DATA_TYPE JS_SAVE; > struct JS_DATA_TYPE JS_CORR; >}; ># 79 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" 2 ># 1 "/usr/include/errno.h" 1 3 4 ># 32 "/usr/include/errno.h" 3 4 >extern "C" { > > > ># 1 "/usr/include/bits/errno.h" 1 3 4 ># 25 "/usr/include/bits/errno.h" 3 4 ># 1 "/usr/include/linux/errno.h" 1 3 4 > > > ># 1 "/usr/include/asm/errno.h" 1 3 4 ># 5 "/usr/include/linux/errno.h" 2 3 4 ># 26 "/usr/include/bits/errno.h" 2 3 4 ># 38 "/usr/include/bits/errno.h" 3 4 >extern int *__errno_location (void) throw () __attribute__ ((__const__)); ># 37 "/usr/include/errno.h" 2 3 4 ># 55 "/usr/include/errno.h" 3 4 >extern char *program_invocation_name, *program_invocation_short_name; > > > >} ># 69 "/usr/include/errno.h" 3 4 >typedef int error_t; ># 80 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" 2 ># 128 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" >class jsJoystick >{ ># 141 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" > char name [ 128 ] ; ># 151 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" > js_event js ; > int tmp_buttons ; > float tmp_axes [ 9 ] ; > > > > char fname [ 128 ] ; > char alt_fname [ 128 ] ; > int fd ; > > > int error ; > int num_axes ; > int num_buttons ; > > float dead_band [ 9 ] ; > float saturate [ 9 ] ; > float center [ 9 ] ; > float max [ 9 ] ; > float min [ 9 ] ; > > void open () > { > > strcpy ( name, "unknown" ) ; ># 334 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" > num_axes = 2 ; > num_buttons = 32 ; > > > for ( int i = 0 ; i < 9 ; i++ ) > tmp_axes [ i ] = 0.0f ; > > tmp_buttons = 0 ; > > > > fd = ::open ( fname, 00 ) ; > > error = ( fd < 0 ) ; > > if ( error ) > { > if (alt_fname[0] != 0) > { > fd = ::open ( alt_fname, 00 ) ; > error = ( fd < 0 ) ; > if ( error ) > return; > } > else > return ; > } ># 403 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" > ioctl ( fd, (((2U) << (((0 +8)+8)+14)) | ((('j')) << (0 +8)) | (((0x11)) << 0) | ((sizeof(__u8)) << ((0 +8)+8))) , & num_axes ) ; > ioctl ( fd, (((2U) << (((0 +8)+8)+14)) | ((('j')) << (0 +8)) | (((0x12)) << 0) | ((sizeof(__u8)) << ((0 +8)+8))), & num_buttons ) ; > ioctl ( fd, (((2U) << (((0 +8)+8)+14)) | (('j') << (0 +8)) | ((0x13) << 0) | ((128) << ((0 +8)+8))) , name ) ; > fcntl ( fd, 4, 04000 ) ; > > if ( num_axes > 9 ) > num_axes = 9 ; ># 435 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" > for ( int i = 0 ; i < 9 ; i++ ) > { > > max [ i ] = 32767.0f ; > center [ i ] = 0.0f ; > min [ i ] = -32767.0f ; > > > > > dead_band [ i ] = 0.0f ; > saturate [ i ] = 1.0f ; > } > > > > } > > void close () > { > > if ( ! error ) > ::close ( fd ) ; ># 467 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" > } > > float fudge_axis ( float value, int axis ) const > { > if ( value < center[axis] ) > { > float xx = ( value - center[ axis ] ) / > ( center [ axis ] - min [ axis ] ) ; > > if ( xx < -saturate [ axis ] ) > return -1.0f ; > > if ( xx > -dead_band [ axis ] ) > return 0.0f ; > > xx = ( xx + dead_band [ axis ] ) / > ( saturate [ axis ] - dead_band [ axis ] ) ; > > return ( xx < -1.0f ) ? -1.0f : xx ; > } > else > { > float xx = ( value - center [ axis ] ) / > ( max [ axis ] - center [ axis ] ) ; > > if ( xx > saturate [ axis ] ) > return 1.0f ; > > if ( xx < dead_band [ axis ] ) > return 0.0f ; > > xx = ( xx - dead_band [ axis ] ) / > ( saturate [ axis ] - dead_band [ axis ] ) ; > > return ( xx > 1.0f ) ? 1.0f : xx ; > } > } > >public: > > jsJoystick ( int ident = 0 ) > { > > alt_fname [ 0 ] = 0; ># 537 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" > sprintf ( fname, "/dev/input/js%d", ident ) ; > sprintf ( alt_fname, "/dev/js%d", ident ) ; > > open () ; > > } > > ~jsJoystick () > { > close () ; > } > > const char* getName () const { return name ; } > int getNumAxes () const { return num_axes ; } > int notWorking () const { return error ; } > void setError () { error = 1 ; } > > float getDeadBand ( int axis ) const { return dead_band [ axis ] ; } > void setDeadBand ( int axis, float db ) { dead_band [ axis ] = db ; } > > float getSaturation ( int axis ) const { return saturate [ axis ] ; } > void setSaturation ( int axis, float st ) { saturate [ axis ] = st ; } > > void setMinRange ( float *axes ) { memcpy ( min , axes, num_axes * sizeof(float) ) ; } > void setMaxRange ( float *axes ) { memcpy ( max , axes, num_axes * sizeof(float) ) ; } > void setCenter ( float *axes ) { memcpy ( center, axes, num_axes * sizeof(float) ) ; } > > void getMinRange ( float *axes ) const { memcpy ( axes, min , num_axes * sizeof(float) ) ; } > void getMaxRange ( float *axes ) const { memcpy ( axes, max , num_axes * sizeof(float) ) ; } > void getCenter ( float *axes ) const { memcpy ( axes, center, num_axes * sizeof(float) ) ; } > > void read ( int *buttons, float *axes ) > { > if ( error ) > { > if ( buttons ) > *buttons = 0 ; > > if ( axes ) > for ( int i = 0 ; i < num_axes ; i++ ) > axes[i] = 0.0f ; > } > > float raw_axes [ 9 ] ; > > rawRead ( buttons, raw_axes ) ; > > if ( axes ) > for ( int i = 0 ; i < num_axes ; i++ ) > axes[i] = fudge_axis ( raw_axes[i], i ) ; > } > > void rawRead ( int *buttons, float *axes ) > { > if ( error ) > { > if ( buttons ) > *buttons = 0 ; > > if ( axes ) > for ( int i = 0 ; i < num_axes ; i++ ) > axes[i] = 1500.0f ; > > return ; > } ># 696 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" > while (1) > { > int status = ::read ( fd, &js, sizeof(js_event) ) ; > > if ( status != sizeof(js_event) ) > { > > > if ( buttons ) *buttons = tmp_buttons ; > if ( axes ) memcpy ( axes, tmp_axes, sizeof(float) * num_axes ) ; > > if ( (*__errno_location ()) == 11 ) > return ; > > perror( fname ) ; > setError () ; > return ; > } > > switch ( js.type & ~0x80 ) > { > case 0x01 : > if ( js.value == 0 ) > tmp_buttons &= ~(1 << js.number) ; > else > tmp_buttons |= (1 << js.number) ; > break ; > > case 0x02: > if ( js.number < num_axes ) > { > tmp_axes [ js.number ] = (float) js.value ; > > if ( axes ) > memcpy ( axes, tmp_axes, sizeof(float) * num_axes ) ; > } > break ; > > default: > ulSetError ( UL_WARNING, "PLIB_JS: Unrecognised /dev/js return!?!" ) ; > > > > if ( buttons ) *buttons = tmp_buttons ; > if ( axes ) memcpy ( axes, tmp_axes, sizeof(float) * num_axes ) ; > > return ; > } > > if ( buttons ) > *buttons = tmp_buttons ; > } ># 774 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/js.h" > } >} ; ># 33 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgfclient.h" 2 ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/screen_properties.h" 1 ># 34 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgfclient.h" 2 > >extern void GfInitClient(void); > > > > > >extern unsigned char *GfImgReadPng(const char *filename, int *widthp, int *heightp, float gamma); >extern int GfImgWritePng(unsigned char *img, const char *filename, int width, int height); >extern void GfImgFreeTex(GLuint tex); >extern GLuint GfImgReadTex(char *filename); > >extern void GfScrInit(int argc, char *argv[]); >extern void GfScrShutdown(void); >extern void *GfScrMenuInit(void *precMenu); >extern char *GfTime2Str(tdble sec, int sgn); >extern void GfScrGetSize(int *ScrW, int *ScrH, int *ViewW, int *ViewH); >extern void GfScrReinit(void*); ># 97 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgfclient.h" >typedef struct ScrollBarInfo >{ > int pos; > void *userData; >} tScrollBarInfo; > >typedef void (*tfuiCallback)(void * ); >typedef void (*tfuiSBCallback)(tScrollBarInfo *); >typedef int (*tfuiKeyCallback)(unsigned char key, int modifier, int state); >typedef int (*tfuiSKeyCallback)(int key, int modifier, int state); > > > > > > >extern void GfuiDisplay(void); >extern void GfuiDisplayNothing(void); >extern void GfuiIdle(void); > > >extern void *GfuiScreenCreate(void); >extern void *GfuiScreenCreateEx(float *bgColor, > void *userDataOnActivate, tfuiCallback onActivate, > void *userDataOnDeactivate, tfuiCallback onDeactivate, > int mouseAllowed); >extern void GfuiScreenRelease(void *screen); >extern void GfuiScreenActivate(void *screen); >extern int GfuiScreenIsActive(void *screen); >extern void GfuiScreenReplace(void *screen); >extern void GfuiScreenDeactivate(void); >extern void *GfuiHookCreate(void *userDataOnActivate, tfuiCallback onActivate); >extern void GfuiHookRelease(void *hook); >extern void GfuiAddKey(void *scr, unsigned char key, char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased); >extern void GfuiRegisterKey(unsigned char key, char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased); >extern void GfuiAddSKey(void *scr, int key, char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased); >extern void GfuiHelpScreen(void *prevScreen); >extern void GfuiScreenShot(void *notused); >extern void GfuiScreenAddBgImg(void *scr, char *filename); >extern void GfuiKeyEventRegister(void *scr, tfuiKeyCallback onKeyAction); >extern void GfuiSKeyEventRegister(void *scr, tfuiSKeyCallback onSKeyAction); >extern void GfuiKeyEventRegisterCurrent(tfuiKeyCallback onKeyAction); >extern void GfuiSKeyEventRegisterCurrent(tfuiSKeyCallback onSKeyAction); > > >typedef struct MouseInfo >{ > int X; > int Y; > int button[3]; >} tMouseInfo; > >extern tMouseInfo *GfuiMouseInfo(void); >extern void GfuiMouseSetPos(int x, int y); >extern void GfuiMouseHide(void); >extern void GfuiMouseShow(void); >extern void GfuiMouseSetHWPresent(void); > > > > >extern int GfuiVisibilitySet(void *scr, int id, int visible); > > >extern int GfuiEnable(void *scr, int id, int flag); >extern void GfuiUnSelectCurrent(void); ># 174 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgfclient.h" >extern int GfuiLabelCreate(void *scr, char *text, > int font, int x, int y, int align, int maxlen); >extern int GfuiLabelCreateEx(void *scr, char *text, float *fgColor, int font, int x, int y, int align, int maxlen); > >extern int GfuiTipCreate(void *scr, char *text, int maxlen); >extern int GfuiTitleCreate(void *scr, char *text, int maxlen); > >extern void GfuiLabelSetText(void *scr, int id, char *text); >extern void GfuiLabelSetColor(void *scr, int id, float *color); > >extern void GfuiPrintString(char *text, float *fgColor, int font, int x, int y, int align); >extern int GfuiFontHeight(int font); >extern int GfuiFontWidth(int font, char *text); > > > > >extern int GfuiButtonCreate(void *scr, char *text, int font, > int x, int y, int width, int align, int mouse, > void *userDataOnPush, tfuiCallback onPush, > void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost); >extern int GfuiButtonStateCreate(void *scr, char *text, int font, int x, int y, int width, int align, int mouse, > void *userDataOnPush, tfuiCallback onPush, > void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost); >extern int GfuiGrButtonCreate(void *scr, char *disabled, char *enabled, char *focused, char *pushed, > int x, int y, int align, int mouse, > void *userDataOnPush, tfuiCallback onPush, > void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost); > >extern void GfuiButtonSetText(void *scr, int id, char *text); >extern int GfuiButtonGetFocused(void); > > >extern int GfuiEditboxCreate(void *scr, char *text, int font, int x, int y, int width, int maxlen, > void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost); >extern int GfuiEditboxGetFocused(void); >extern char *GfuiEditboxGetString(void *scr, int id); >extern void GfuiEditboxSetString(void *scr, int id, char *text); > > >extern int GfuiScrollListCreate(void *scr, int font, int x, int y, int align, > int width, int height, int scrollbar, void *userDataOnSelect, tfuiCallback onSelect); >extern int GfuiScrollListInsertElement(void *scr, int Id, char *element, int index, void *userData); >extern int GfuiScrollListMoveSelectedElement(void *scr, int Id, int delta); >extern char *GfuiScrollListExtractSelectedElement(void *scr, int Id, void **userData); >extern char *GfuiScrollListExtractElement(void *scr, int Id, int index, void **userData); >extern char *GfuiScrollListGetSelectedElement(void *scr, int Id, void **userData); >extern char *GfuiScrollListGetElement(void *scr, int Id, int index, void **userData); > > >extern int GfuiScrollBarCreate(void *scr, int x, int y, int align, int width, int orientation, > int min, int max, int len, int start, > void *userData, tfuiSBCallback onScroll); >extern void GfuiScrollBarPosSet(void *scr, int id, int min, int max, int len, int start); >extern int GfuiScrollBarPosGet(void *scr, int id); > > >extern int GfuiStaticImageCreate(void *scr, int x, int y, int w, int h, char *name); >extern void GfuiStaticImageSet(void *scr, int id, char *name); > > > > > >extern void *GfuiMenuScreenCreate(char *title); >extern void GfuiMenuDefaultKeysAdd(void *scr); >extern int GfuiMenuButtonCreate(void *menu, char *text, char *tip, void *userdata, tfuiCallback onpush); >extern int GfuiMenuBackQuitButtonCreate(void *menu, char *text, char *tip, void *userdata, tfuiCallback onpush); ># 256 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgfclient.h" >typedef struct >{ > int index; > int type; >} tCtrlRef; ># 270 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/tgfclient.h" >typedef struct >{ > int oldb[8]; > float ax[12 * 8]; > int edgeup[32 * 8]; > int edgedn[32 * 8]; > int levelup[32 * 8]; >} tCtrlJoyInfo; > >extern tCtrlJoyInfo *GfctrlJoyInit(void); >extern int GfctrlJoyIsPresent(void); >extern int GfctrlJoyGetCurrent(tCtrlJoyInfo *joyInfo); >extern void GfctrlJoyRelease(tCtrlJoyInfo *joyInfo); > > > >typedef struct >{ > int edgeup[3]; > int edgedn[3]; > int button[3]; > float ax[4]; >} tCtrlMouseInfo; > >extern tCtrlMouseInfo *GfctrlMouseInit(void); >extern int GfctrlMouseGetCurrent(tCtrlMouseInfo *mouseInfo); >extern void GfctrlMouseRelease(tCtrlMouseInfo *mouseInfo); >extern void GfctrlMouseCenter(void); >extern void GfctrlMouseInitCenter(void); >extern tCtrlRef *GfctrlGetRefByName(char *name); >extern char *GfctrlGetNameByRef(int type, int index); ># 29 "raceengine.cpp" 2 ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robot.h" 1 ># 39 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robot.h" ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/raceman.h" 1 ># 31 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/raceman.h" ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" 1 ># 32 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/track.h" 1 ># 216 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/track.h" >typedef struct RoadCam >{ > char *name; > t3Dd pos; > struct RoadCam *next; >} tRoadCam; > > >typedef struct SegExt >{ > int nbMarks; > int *marks; >} tSegExt; > > > >typedef struct trackSurface { > struct trackSurface *next; > > char *material; > > tdble kFriction; > tdble kRebound; > tdble kRollRes; > tdble kRoughness; > tdble kRoughWaveLen; > tdble kDammage; > >} tTrackSurface; > > > > >typedef struct trackBarrier { > int style; > tdble width; > tdble height; > tTrackSurface *surface; >} tTrackBarrier; ># 265 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/track.h" >typedef struct trackSeg { > char *name; > int id; > > int type; ># 278 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/track.h" > int type2; ># 291 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/track.h" > int style; ># 304 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/track.h" > tdble length; > tdble width; > tdble startWidth; > tdble endWidth; > tdble lgfromstart; > tdble radius; > tdble radiusr; > tdble radiusl; > tdble arc; > t3Dd center; > t3Dd vertex[4]; ># 326 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/track.h" > tdble angle[7]; ># 345 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/track.h" > tdble Kzl; > tdble Kzw; > > tdble Kyl; > t3Dd rgtSideNormal; > int envIndex; > > tdble height; > > unsigned int raceInfo; ># 376 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/track.h" > tdble DoVfactor; > > > > > tSegExt *ext; > > tTrackSurface *surface; > tTrackBarrier *barrier[2]; > tRoadCam *cam; > struct trackSeg *next; > struct trackSeg *prev; > struct trackSeg *lside; > struct trackSeg *rside; >} tTrackSeg; > > > > > > > >typedef struct >{ > tTrackSeg *seg; > int type; ># 411 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/track.h" > tdble toStart; > tdble toRight; > tdble toMiddle; > tdble toLeft; >} tTrkLocPos; > >struct CarElt; > > >typedef struct TrackOwnPit >{ > tTrkLocPos pos; > > int state; > > > > tdble lmin; > tdble lmax; > struct CarElt *car; >} tTrackOwnPit; > > >typedef struct >{ > int type; > > > > > > > int nMaxPits; > int nPitSeg; > int side; > > > > tdble len; > tdble width; > tdble speedLimit; > tTrackSeg *pitEntry; > tTrackSeg *pitStart; > tTrackSeg *pitEnd; > tTrackSeg *pitExit; > tTrackOwnPit *driversPits; > int driversPitsNb; >} tTrackPitInfo; > >typedef struct >{ > tdble height; > tdble width; > tdble hSpace; > tdble vSpace; >} tTurnMarksInfo; > >typedef struct >{ > char *background; > char *background2; > int bgtype; > float bgColor[3]; > int envnb; > char **env; > tTurnMarksInfo turnMarksInfo; >} tTrackGraphicInfo; > > > > >typedef struct >{ > char *name; > char *author; > char *filename; > void *params; > char *internalname; > char *category; > int nseg; > int version; > tdble length; > tdble width; > tTrackPitInfo pits; > tTrackSeg *seg; > tTrackSurface *surfaces; > > t3Dd min; > t3Dd max; > tTrackGraphicInfo graphic; >} tTrack; > > > >typedef tTrack*(*tfTrackBuild)(char*); >typedef tdble(*tfTrackHeightG)(tTrackSeg*, tdble, tdble); >typedef tdble(*tfTrackHeightL)(tTrkLocPos*); >typedef void(*tfTrackGlobal2Local)(tTrackSeg* , tdble , tdble , tTrkLocPos* , int ); >typedef void(*tfTrackLocal2Global)(tTrkLocPos*, tdble *, tdble *); >typedef void(*tfTrackSideNormal)(tTrackSeg*, tdble, tdble, int, t3Dd*); >typedef void(*tfTrackSurfaceNormal)(tTrkLocPos *, t3Dd*); >typedef void(*tfTrackShutdown)(void); > >typedef struct { > tfTrackBuild trkBuild; > tfTrackBuild trkBuildEx; > tfTrackHeightG trkHeightG; > tfTrackHeightL trkHeightL; > tfTrackGlobal2Local trkGlobal2Local; > tfTrackLocal2Global trkLocal2Global; > tfTrackSideNormal trkSideNormal; > tfTrackSurfaceNormal trkSurfaceNormal; > tfTrackShutdown trkShutdown; >} tTrackItf; ># 33 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" 2 ># 1 "/usr/include/plib/sg.h" 1 3 4 ># 63 "/usr/include/plib/sg.h" 3 4 >inline float sgSqrt ( const float x ) { return (float) sqrt ( x ) ; } >inline float sgSquare ( const float x ) { return x * x ; } >inline float sgAbs ( const float a ) { return (a<0.0f) ? -a : a ; } > > > > > >inline float sgASin ( float s ) > { return (float) asin ( s ) * (180.0f/((float) 3.14159265358979323846)) ; } >inline float sgACos ( float s ) > { return (float) acos ( s ) * (180.0f/((float) 3.14159265358979323846)) ; } >inline float sgATan ( float s ) > { return (float) atan ( s ) * (180.0f/((float) 3.14159265358979323846)) ; } >inline float sgATan2 ( float y, float x ) > { return (float) atan2 ( y,x ) * (180.0f/((float) 3.14159265358979323846)) ; } >inline float sgSin ( float s ) > { return (float) sin ( s * (((float) 3.14159265358979323846)/180.0f) ) ; } >inline float sgCos ( float s ) > { return (float) cos ( s * (((float) 3.14159265358979323846)/180.0f) ) ; } >inline float sgTan ( float s ) > { return (float) tan ( s * (((float) 3.14159265358979323846)/180.0f) ) ; } > > >inline int sgCompareFloat ( const float a, const float b, const float tol ) >{ > if ( ( a + tol ) < b ) return -1 ; > if ( ( b + tol ) < a ) return 1 ; > return 0 ; >} > > > > > > >typedef float sgVec2 [ 2 ] ; >typedef float sgVec3 [ 3 ] ; >typedef float sgVec4 [ 4 ] ; > >typedef sgVec4 sgQuat ; > >typedef float sgMat3 [3][3] ; >typedef float sgMat4 [4][4] ; > >struct sgCoord >{ > sgVec3 xyz ; > sgVec3 hpr ; >} ; > >class sgSphere ; >class sgBox ; >class sgFrustum ; ># 126 "/usr/include/plib/sg.h" 3 4 >inline float sgHeightOfPlaneVec2 ( const sgVec4 plane, const sgVec2 pnt ) >{ > if ( plane[2] == 0.0f ) > return 0.0f ; > else > return -( plane[0] * pnt[0] + plane[1] * pnt[1] + plane[3] ) / plane[2] ; >} > > > > > > >extern void sgHPRfromVec3 ( sgVec3 hpr, const sgVec3 src ) ; > >extern void sgMakeCoordMat4 ( sgMat4 dst, const float x, const float y, const float z, > const float h, const float p, const float r ) ; > >inline void sgMakeCoordMat4( sgMat4 dst, const sgVec3 xyz, const sgVec3 hpr ) >{ > sgMakeCoordMat4 ( dst, xyz[0], xyz[1], xyz[2], > hpr[0], hpr[1], hpr[2] ) ; >} > >inline void sgMakeCoordMat4( sgMat4 dst, const sgCoord *src ) >{ > sgMakeCoordMat4 ( dst, src->xyz, src->hpr ) ; >} > >extern void sgMakeLookAtMat4 ( sgMat4 dst, > const sgVec3 eye, const sgVec3 center, const sgVec3 up ) ; > >extern void sgMakeRotMat4 ( sgMat4 dst, const float angle, const sgVec3 axis ) ; > >inline void sgMakeRotMat4 ( sgMat4 dst, const sgVec3 hpr ) >{ > sgMakeCoordMat4 ( dst, 0.0f, 0.0f, 0.0f, hpr[0], hpr[1], hpr[2] ) ; >} > >inline void sgMakeRotMat4 ( sgMat4 dst,const float h, const float p, const float r ) >{ > sgMakeCoordMat4 ( dst, 0.0f, 0.0f, 0.0f, h, p, r ) ; >} > >extern void sgMakeTransMat4 ( sgMat4 dst, const sgVec3 xyz ) ; >extern void sgMakeTransMat4 ( sgMat4 dst, const float x, const float y, const float z ) ; > > >extern void sgSetCoord ( sgCoord *coord, const sgMat4 src ) ; > >extern void sgMultMat4 ( sgMat4 dst, const sgMat4 a, const sgMat4 b ) ; >extern void sgPostMultMat4 ( sgMat4 dst, const sgMat4 a ) ; >extern void sgPreMultMat4 ( sgMat4 dst, const sgMat4 a ) ; > >extern void sgTransposeNegateMat4 ( sgMat4 dst ) ; >extern void sgTransposeNegateMat4 ( sgMat4 dst, const sgMat4 src ) ; >extern void sgInvertMat4 ( sgMat4 dst, const sgMat4 src ) ; >inline void sgInvertMat4 ( sgMat4 dst ) { sgInvertMat4 ( dst, dst ) ; } > >extern void sgXformVec3 ( sgVec3 dst, const sgVec3 src, const sgMat4 mat ) ; >extern void sgXformPnt3 ( sgVec3 dst, const sgVec3 src, const sgMat4 mat ) ; >extern void sgXformVec4 ( sgVec4 dst, const sgVec4 src, const sgMat4 mat ) ; >extern void sgXformPnt4 ( sgVec4 dst, const sgVec4 src, const sgMat4 mat ) ; >extern void sgFullXformPnt3 ( sgVec3 dst, const sgVec3 src, const sgMat4 mat ) ; >extern void sgFullXformPnt4 ( sgVec4 dst, const sgVec4 src, const sgMat4 mat ) ; > >inline void sgXformVec3 ( sgVec3 dst, const sgMat4 mat ) { sgXformVec3 ( dst, dst, mat ) ; } >inline void sgXformPnt3 ( sgVec3 dst, const sgMat4 mat ) { sgXformPnt3 ( dst, dst, mat ) ; } >inline void sgXformVec4 ( sgVec4 dst, const sgMat4 mat ) { sgXformVec4 ( dst, dst, mat ) ; } >inline void sgXformPnt4 ( sgVec4 dst, const sgMat4 mat ) { sgXformPnt4 ( dst, dst, mat ) ; } >inline void sgFullXformPnt3 ( sgVec3 dst, const sgMat4 mat ) { sgFullXformPnt3 ( dst, dst, mat ) ; } >inline void sgFullXformPnt4 ( sgVec4 dst, const sgMat4 mat ) { sgFullXformPnt4 ( dst, dst, mat ) ; } ># 215 "/usr/include/plib/sg.h" 3 4 >extern int sgClassifyMat4 ( const sgMat4 mat ) ; ># 242 "/usr/include/plib/sg.h" 3 4 >inline void sgZeroVec2 ( sgVec2 dst ) { dst[0]=dst[1]=0.0f ; } >inline void sgZeroVec3 ( sgVec3 dst ) { dst[0]=dst[1]=dst[2]=0.0f ; } >inline void sgZeroVec4 ( sgVec4 dst ) { dst[0]=dst[1]=dst[2]=dst[3]=0.0f ; } > > >inline void sgSetVec2 ( sgVec2 dst, const float x, const float y ) >{ > dst [ 0 ] = x ; > dst [ 1 ] = y ; >} > >inline void sgSetVec3 ( sgVec3 dst, const float x, const float y, const float z ) >{ > dst [ 0 ] = x ; > dst [ 1 ] = y ; > dst [ 2 ] = z ; >} > >inline void sgSetVec4 ( sgVec4 dst, const float x, const float y, const float z, const float w ) >{ > dst [ 0 ] = x ; > dst [ 1 ] = y ; > dst [ 2 ] = z ; > dst [ 3 ] = w ; >} > > >inline void sgCopyVec2 ( sgVec2 dst, const sgVec2 src ) >{ > dst [ 0 ] = src [ 0 ] ; > dst [ 1 ] = src [ 1 ] ; >} > >inline void sgCopyVec3 ( sgVec3 dst, const sgVec3 src ) >{ > dst [ 0 ] = src [ 0 ] ; > dst [ 1 ] = src [ 1 ] ; > dst [ 2 ] = src [ 2 ] ; >} > >inline void sgCopyVec4 ( sgVec4 dst, const sgVec4 src ) >{ > dst [ 0 ] = src [ 0 ] ; > dst [ 1 ] = src [ 1 ] ; > dst [ 2 ] = src [ 2 ] ; > dst [ 3 ] = src [ 3 ] ; >} > > >inline void sgAddVec2 ( sgVec2 dst, const sgVec2 src ) >{ > dst [ 0 ] += src [ 0 ] ; > dst [ 1 ] += src [ 1 ] ; >} > >inline void sgAddVec3 ( sgVec3 dst, const sgVec3 src ) >{ > dst [ 0 ] += src [ 0 ] ; > dst [ 1 ] += src [ 1 ] ; > dst [ 2 ] += src [ 2 ] ; >} > >inline void sgAddVec4 ( sgVec4 dst, const sgVec4 src ) >{ > dst [ 0 ] += src [ 0 ] ; > dst [ 1 ] += src [ 1 ] ; > dst [ 2 ] += src [ 2 ] ; > dst [ 3 ] += src [ 3 ] ; >} > > >inline void sgAddVec2 ( sgVec2 dst, const sgVec2 src1, const sgVec2 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] ; >} > >inline void sgAddVec3 ( sgVec3 dst, const sgVec3 src1, const sgVec3 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] ; > dst [ 2 ] = src1 [ 2 ] + src2 [ 2 ] ; >} > >inline void sgAddVec4 ( sgVec4 dst, const sgVec4 src1, const sgVec4 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] ; > dst [ 2 ] = src1 [ 2 ] + src2 [ 2 ] ; > dst [ 3 ] = src1 [ 3 ] + src2 [ 3 ] ; >} > > >inline void sgSubVec2 ( sgVec2 dst, const sgVec2 src ) >{ > dst [ 0 ] -= src [ 0 ] ; > dst [ 1 ] -= src [ 1 ] ; >} > >inline void sgSubVec3 ( sgVec3 dst, const sgVec3 src ) >{ > dst [ 0 ] -= src [ 0 ] ; > dst [ 1 ] -= src [ 1 ] ; > dst [ 2 ] -= src [ 2 ] ; >} > >inline void sgSubVec4 ( sgVec4 dst, const sgVec4 src ) >{ > dst [ 0 ] -= src [ 0 ] ; > dst [ 1 ] -= src [ 1 ] ; > dst [ 2 ] -= src [ 2 ] ; > dst [ 3 ] -= src [ 3 ] ; >} > >inline void sgSubVec2 ( sgVec2 dst, const sgVec2 src1, const sgVec2 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] - src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] - src2 [ 1 ] ; >} > >inline void sgSubVec3 ( sgVec3 dst, const sgVec3 src1, const sgVec3 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] - src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] - src2 [ 1 ] ; > dst [ 2 ] = src1 [ 2 ] - src2 [ 2 ] ; >} > >inline void sgSubVec4 ( sgVec4 dst, const sgVec4 src1, const sgVec4 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] - src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] - src2 [ 1 ] ; > dst [ 2 ] = src1 [ 2 ] - src2 [ 2 ] ; > dst [ 3 ] = src1 [ 3 ] - src2 [ 3 ] ; >} > > >inline void sgNegateVec2 ( sgVec2 dst ) >{ > dst [ 0 ] = -dst [ 0 ] ; > dst [ 1 ] = -dst [ 1 ] ; >} > >inline void sgNegateVec3 ( sgVec3 dst ) >{ > dst [ 0 ] = -dst [ 0 ] ; > dst [ 1 ] = -dst [ 1 ] ; > dst [ 2 ] = -dst [ 2 ] ; >} > >inline void sgNegateVec4 ( sgVec4 dst ) >{ > dst [ 0 ] = -dst [ 0 ] ; > dst [ 1 ] = -dst [ 1 ] ; > dst [ 2 ] = -dst [ 2 ] ; > dst [ 3 ] = -dst [ 3 ] ; >} > > >inline void sgNegateVec2 ( sgVec2 dst, const sgVec2 src ) >{ > dst [ 0 ] = -src [ 0 ] ; > dst [ 1 ] = -src [ 1 ] ; >} > >inline void sgNegateVec3 ( sgVec3 dst, const sgVec3 src ) >{ > dst [ 0 ] = -src [ 0 ] ; > dst [ 1 ] = -src [ 1 ] ; > dst [ 2 ] = -src [ 2 ] ; >} > >inline void sgNegateVec4 ( sgVec4 dst, const sgVec4 src ) >{ > dst [ 0 ] = -src [ 0 ] ; > dst [ 1 ] = -src [ 1 ] ; > dst [ 2 ] = -src [ 2 ] ; > dst [ 3 ] = -src [ 3 ] ; >} > > >inline void sgScaleVec2 ( sgVec2 dst, const float s ) >{ > dst [ 0 ] *= s ; > dst [ 1 ] *= s ; >} > >inline void sgScaleVec3 ( sgVec3 dst, const float s ) >{ > dst [ 0 ] *= s ; > dst [ 1 ] *= s ; > dst [ 2 ] *= s ; >} > >inline void sgScaleVec4 ( sgVec4 dst, const float s ) >{ > dst [ 0 ] *= s ; > dst [ 1 ] *= s ; > dst [ 2 ] *= s ; > dst [ 3 ] *= s ; >} > >inline void sgScaleVec2 ( sgVec2 dst, const sgVec2 src, const float s ) >{ > dst [ 0 ] = src [ 0 ] * s ; > dst [ 1 ] = src [ 1 ] * s ; >} > >inline void sgScaleVec3 ( sgVec3 dst, const sgVec3 src, const float s ) >{ > dst [ 0 ] = src [ 0 ] * s ; > dst [ 1 ] = src [ 1 ] * s ; > dst [ 2 ] = src [ 2 ] * s ; >} > >inline void sgScaleVec4 ( sgVec4 dst, const sgVec4 src, const float s ) >{ > dst [ 0 ] = src [ 0 ] * s ; > dst [ 1 ] = src [ 1 ] * s ; > dst [ 2 ] = src [ 2 ] * s ; > dst [ 3 ] = src [ 3 ] * s ; >} > > >inline void sgAddScaledVec2 ( sgVec2 dst, const sgVec2 src, const float s ) >{ > dst [ 0 ] += src [ 0 ] * s ; > dst [ 1 ] += src [ 1 ] * s ; >} > >inline void sgAddScaledVec3 ( sgVec3 dst, const sgVec3 src, const float s ) >{ > dst [ 0 ] += src [ 0 ] * s ; > dst [ 1 ] += src [ 1 ] * s ; > dst [ 2 ] += src [ 2 ] * s ; >} > >inline void sgAddScaledVec4 ( sgVec4 dst, const sgVec4 src, const float s ) >{ > dst [ 0 ] += src [ 0 ] * s ; > dst [ 1 ] += src [ 1 ] * s ; > dst [ 2 ] += src [ 2 ] * s ; > dst [ 3 ] += src [ 3 ] * s ; >} > > >inline void sgAddScaledVec2 ( sgVec2 dst, const sgVec2 src1, const sgVec2 src2, const float s ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] * s ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] * s ; >} > >inline void sgAddScaledVec3 ( sgVec3 dst, const sgVec3 src1, const sgVec3 src2, const float s ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] * s ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] * s ; > dst [ 2 ] = src1 [ 2 ] + src2 [ 2 ] * s ; >} > >inline void sgAddScaledVec4 ( sgVec4 dst, const sgVec4 src1, const sgVec4 src2, const float s ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] * s ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] * s ; > dst [ 2 ] = src1 [ 2 ] + src2 [ 2 ] * s ; > dst [ 3 ] = src1 [ 3 ] + src2 [ 3 ] * s ; >} > > >inline int sgCompareVec2 ( const sgVec2 a, const sgVec2 b, const float tol ) >{ > if ( sgCompareFloat( a[0], b[0], tol ) != 0 ) return 0 ; > if ( sgCompareFloat( a[1], b[1], tol ) != 0 ) return 0 ; > > return 1 ; >} > >inline int sgCompareVec3 ( const sgVec3 a, const sgVec3 b, const float tol ) >{ > if ( sgCompareFloat( a[0], b[0], tol ) != 0 ) return 0 ; > if ( sgCompareFloat( a[1], b[1], tol ) != 0 ) return 0 ; > if ( sgCompareFloat( a[2], b[2], tol ) != 0 ) return 0 ; > > return 1 ; >} > >inline int sgCompareVec4 ( const sgVec4 a, const sgVec4 b, const float tol ) >{ > if ( sgCompareFloat( a[0], b[0], tol ) != 0 ) return 0 ; > if ( sgCompareFloat( a[1], b[1], tol ) != 0 ) return 0 ; > if ( sgCompareFloat( a[2], b[2], tol ) != 0 ) return 0 ; > if ( sgCompareFloat( a[3], b[3], tol ) != 0 ) return 0 ; > > return 1 ; >} > > >inline int sgEqualVec2 ( const sgVec2 a, const sgVec2 b ) >{ > return a[0] == b[0] && > a[1] == b[1] ; >} > >inline int sgEqualVec3 ( const sgVec3 a, const sgVec3 b ) >{ > return a[0] == b[0] && > a[1] == b[1] && > a[2] == b[2] ; >} > >inline int sgEqualVec4 ( const sgVec4 a, const sgVec4 b ) >{ > return a[0] == b[0] && > a[1] == b[1] && > a[2] == b[2] && > a[3] == b[3] ; >} > > >inline float sgScalarProductVec2 ( const sgVec2 a, const sgVec2 b ) >{ > return a[0]*b[0] + a[1]*b[1] ; >} > >inline float sgScalarProductVec3 ( const sgVec3 a, const sgVec3 b ) >{ > return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] ; >} > >inline float sgScalarProductVec4 ( const sgVec4 a, const sgVec4 b ) >{ > return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3] ; >} > > >extern void sgVectorProductVec3 ( sgVec3 dst, const sgVec3 a, const sgVec3 b ) ; > >inline float sgLerp ( const float a, const float b, const float f ) >{ > return a + f * ( b - a ) ; >} > >inline void sgLerpVec4 ( sgVec4 dst, const sgVec4 a, const sgVec4 b, const float f ) >{ > dst[0] = a[0] + f * ( b[0] - a[0] ) ; > dst[1] = a[1] + f * ( b[1] - a[1] ) ; > dst[2] = a[2] + f * ( b[2] - a[2] ) ; > dst[3] = a[3] + f * ( b[3] - a[3] ) ; >} > > >inline void sgLerpVec3 ( sgVec3 dst, const sgVec3 a, const sgVec3 b, const float f ) >{ > dst[0] = a[0] + f * ( b[0] - a[0] ) ; > dst[1] = a[1] + f * ( b[1] - a[1] ) ; > dst[2] = a[2] + f * ( b[2] - a[2] ) ; >} > > >inline void sgLerpVec2 ( sgVec2 dst, const sgVec2 a, const sgVec2 b, const float f ) >{ > dst[0] = a[0] + f * ( b[0] - a[0] ) ; > dst[1] = a[1] + f * ( b[1] - a[1] ) ; >} > > >inline void sgLerpAnglesVec3 ( sgVec3 dst, const sgVec3 a, > const sgVec3 b, > const float f ) >{ > sgVec3 tmp ; > > if ( b[0] - a[0] > 180.0f ) tmp[0] = a[0] + 360.0f ; else > if ( b[0] - a[0] < -180.0f ) tmp[0] = a[0] - 360.0f ; else tmp[0] = a[0] ; > > if ( b[1] - a[1] > 180.0f ) tmp[1] = a[1] + 360.0f ; else > if ( b[1] - a[1] < -180.0f ) tmp[1] = a[1] - 360.0f ; else tmp[1] = a[1] ; > > if ( b[2] - a[2] > 180.0f ) tmp[2] = a[2] + 360.0f ; else > if ( b[2] - a[2] < -180.0f ) tmp[2] = a[2] - 360.0f ; else tmp[2] = a[2] ; > > dst[0] = tmp[0] + f * ( b[0] - tmp[0] ) ; > dst[1] = tmp[1] + f * ( b[1] - tmp[1] ) ; > dst[2] = tmp[2] + f * ( b[2] - tmp[2] ) ; >} > > > >inline float sgDistanceSquaredVec2 ( const sgVec2 a, const sgVec2 b ) >{ > return sgSquare ( a[0]-b[0] ) + sgSquare ( a[1]-b[1] ) ; >} > >inline float sgDistanceSquaredVec3 ( const sgVec3 a, const sgVec3 b ) >{ > return sgSquare ( a[0]-b[0] ) + sgSquare ( a[1]-b[1] ) + > sgSquare ( a[2]-b[2] ) ; >} > >inline float sgDistanceSquaredVec4 ( const sgVec4 a, const sgVec4 b ) >{ > return sgSquare ( a[0]-b[0] ) + sgSquare ( a[1]-b[1] ) + > sgSquare ( a[2]-b[2] ) + sgSquare ( a[3]-b[3] ) ; >} > >inline float sgDistanceVec2 ( const sgVec2 a, const sgVec2 b ) >{ > return sgSqrt ( sgSquare ( a[0]-b[0] ) + sgSquare ( a[1]-b[1] ) ) ; >} > >inline float sgDistanceVec3 ( const sgVec3 a, const sgVec3 b ) >{ > return sgSqrt ( sgSquare ( a[0]-b[0] ) + sgSquare ( a[1]-b[1] ) + > sgSquare ( a[2]-b[2] ) ) ; >} > >inline float sgDistanceVec4 ( const sgVec4 a, const sgVec4 b ) >{ > return sgSqrt ( sgSquare ( a[0]-b[0] ) + sgSquare ( a[1]-b[1] ) + > sgSquare ( a[2]-b[2] ) + sgSquare ( a[3]-b[3] ) ) ; >} > > >inline float sgLengthVec2 ( const sgVec2 src ) >{ > return sgSqrt ( sgScalarProductVec2 ( src, src ) ) ; >} > >inline float sgLengthVec3 ( const sgVec3 src ) >{ > return sgSqrt ( sgScalarProductVec3 ( src, src ) ) ; >} > >inline float sgLengthVec4 ( const sgVec4 src ) >{ > return sgSqrt ( sgScalarProductVec4 ( src, src ) ) ; >} > >inline float sgLengthSquaredVec2 ( sgVec2 const src ) >{ > return sgScalarProductVec2 ( src, src ) ; >} > >inline float sgLengthSquaredVec3 ( sgVec3 const src ) >{ > return sgScalarProductVec3 ( src, src ) ; >} > >inline float sgLengthSquaredVec4 ( sgVec4 const src ) >{ > return sgScalarProductVec4 ( src, src ) ; >} ># 700 "/usr/include/plib/sg.h" 3 4 >inline void sgNormaliseVec2 ( sgVec2 dst ) >{ > sgScaleVec2 ( dst, 1.0f / sgLengthVec2 ( dst ) ) ; >} > >inline void sgNormaliseVec3 ( sgVec3 dst ) >{ > sgScaleVec3 ( dst, 1.0f / sgLengthVec3 ( dst ) ) ; >} > >inline void sgNormaliseVec4 ( sgVec4 dst ) >{ > sgScaleVec4 ( dst, 1.0f / sgLengthVec4 ( dst ) ) ; >} > >inline void sgNormaliseVec2 ( sgVec2 dst, const sgVec2 src ) >{ > sgScaleVec2 ( dst, src, 1.0f / sgLengthVec2 ( src ) ) ; >} > >inline void sgNormaliseVec3 ( sgVec3 dst, const sgVec3 src ) >{ > sgScaleVec3 ( dst, src, 1.0f / sgLengthVec3 ( src ) ) ; >} > >inline void sgNormaliseVec4 ( sgVec4 dst, const sgVec4 src ) >{ > sgScaleVec4 ( dst, src, 1.0f / sgLengthVec4 ( src ) ) ; >} > > >inline void sgZeroCoord ( sgCoord *dst ) >{ > sgSetVec3 ( dst->xyz, 0.0f, 0.0f, 0.0f ) ; > sgSetVec3 ( dst->hpr, 0.0f, 0.0f, 0.0f ) ; >} > >inline void sgSetCoord ( sgCoord *dst, const float x, const float y, const float z, > const float h, const float p, const float r ) >{ > sgSetVec3 ( dst->xyz, x, y, z ) ; > sgSetVec3 ( dst->hpr, h, p, r ) ; >} > >inline void sgSetCoord ( sgCoord *dst, const sgVec3 xyz, const sgVec3 hpr ) >{ > sgCopyVec3 ( dst->xyz, xyz ) ; > sgCopyVec3 ( dst->hpr, hpr ) ; >} > >inline void sgCopyCoord ( sgCoord *dst, const sgCoord *src ) >{ > sgCopyVec3 ( dst->xyz, src->xyz ) ; > sgCopyVec3 ( dst->hpr, src->hpr ) ; >} > > > >inline void sgCopyMat4 ( sgMat4 dst, const sgMat4 src ) >{ > sgCopyVec4 ( dst[ 0 ], src[ 0 ] ) ; > sgCopyVec4 ( dst[ 1 ], src[ 1 ] ) ; > sgCopyVec4 ( dst[ 2 ], src[ 2 ] ) ; > sgCopyVec4 ( dst[ 3 ], src[ 3 ] ) ; >} > > >inline void sgScaleMat4 ( sgMat4 dst, const sgMat4 src, const float scale ) >{ > sgScaleVec4 ( dst[0], src[0], scale ) ; > sgScaleVec4 ( dst[1], src[1], scale ) ; > sgScaleVec4 ( dst[2], src[2], scale ) ; > sgScaleVec4 ( dst[3], src[3], scale ) ; >} > > >inline void sgMakeIdentMat4 ( sgMat4 dst ) >{ > sgSetVec4 ( dst[0], 1.0f , 0.0f, 0.0f, 0.0f ) ; > sgSetVec4 ( dst[1], 0.0f, 1.0f , 0.0f, 0.0f ) ; > sgSetVec4 ( dst[2], 0.0f, 0.0f, 1.0f , 0.0f ) ; > sgSetVec4 ( dst[3], 0.0f, 0.0f, 0.0f, 1.0f ) ; >} > > >extern void sgMakePickMatrix( sgMat4 mat, float x, float y, > float width, float height, sgVec4 viewport ) ; > >extern int sgCompare3DSqdDist ( const sgVec3 a, const sgVec3 b, const float sqd_dist ) ; > >inline float sgDistToLineVec2 ( const sgVec3 line, const sgVec2 pnt ) >{ > return sgScalarProductVec2 ( line, pnt ) + line[2] ; >} > > >struct sgLineSegment3 >{ > sgVec3 a ; > sgVec3 b ; >} ; > >struct sgLine3 >{ > sgVec3 point_on_line ; > sgVec3 direction_vector ; >} ; > > >inline void sgLineSegment3ToLine3 ( sgLine3 *line, > const sgLineSegment3 lineseg ) >{ > sgCopyVec3 ( line->point_on_line , lineseg.a ) ; > sgSubVec3 ( line->direction_vector, lineseg.b, lineseg.a ) ; > sgNormaliseVec3 ( line->direction_vector ) ; >} > > >float sgDistSquaredToLineVec3 ( const sgLine3 line, > const sgVec3 pnt ) ; >float sgDistSquaredToLineSegmentVec3 ( const sgLineSegment3 line, > const sgVec3 pnt ) ; > > >inline float sgDistToLineVec3 ( const sgLine3 line, > const sgVec3 pnt ) >{ > return sgSqrt ( sgDistSquaredToLineVec3 ( line, pnt ) ); >} > > >inline float sgDistToLineSegmentVec3 ( const sgLineSegment3 line, > const sgVec3 pnt ) >{ > return sgSqrt ( sgDistSquaredToLineSegmentVec3(line,pnt) ) ; >} > > >inline float sgDistToPlaneVec3 ( const sgVec4 plane, const sgVec3 pnt ) >{ > return sgScalarProductVec3 ( plane, pnt ) + plane[3] ; >} > > >inline float sgHeightAbovePlaneVec3 ( const sgVec4 plane, const sgVec3 pnt ) >{ > return pnt[2] - sgHeightOfPlaneVec2 ( plane, pnt ) ; >} > >extern void sgReflectInPlaneVec3 ( sgVec3 dst, const sgVec3 src, const sgVec4 plane ) ; > >inline void sgReflectInPlaneVec3 ( sgVec3 dst, const sgVec4 plane ) >{ > sgReflectInPlaneVec3 ( dst, dst, plane ) ; >} > >extern void sgMakeNormal ( sgVec3 dst, const sgVec3 a, const sgVec3 b, const sgVec3 c ) ; > > >inline void sgMake2DLine ( sgVec3 dst, const sgVec2 a, const sgVec2 b ) >{ > dst[0] = b[1]-a[1] ; > dst[1] = -(b[0]-a[0]) ; > sgNormaliseVec2 ( dst ) ; > dst[2] = - ( dst[0]*a[0] + dst[1]*a[1] ) ; >} > >inline void sgMakePlane ( sgVec4 dst, const sgVec3 normal, const sgVec3 pnt ) >{ > sgCopyVec3 ( dst, normal ) ; > dst [ 3 ] = - sgScalarProductVec3 ( normal, pnt ) ; >} > >inline void sgMakePlane ( sgVec4 dst, const sgVec3 a, const sgVec3 b, const sgVec3 c ) >{ > > > > > > > > sgMakeNormal ( dst, a, b, c ) ; > > dst [ 3 ] = - sgScalarProductVec3 ( dst, a ) ; >} > >float sgTriArea( sgVec3 p0, sgVec3 p1, sgVec3 p2 ); > > > >inline float sgAngleBetweenNormalizedVec3 ( sgVec3 v1, sgVec3 v2 ) >{ > float f = sgScalarProductVec3 ( v1, v2 ) ; > > return (float)(acos((f>=1.0f)?1.0f:(f<=-1.0f)?-1.0f:f)*(180.0f/((float) 3.14159265358979323846))) ; >} > > >float sgAngleBetweenVec3 ( sgVec3 v1, sgVec3 v2 ); > > >float sgAngleBetweenNormalizedVec3 (sgVec3 first, sgVec3 second, sgVec3 normal); > > >float sgAngleBetweenVec3 ( sgVec3 v1, sgVec3 v2, sgVec3 normal ); > >class sgSphere >{ > sgVec3 center ; > float radius ; >public: > sgSphere () { empty () ; } > > const float *getCenter (void) const { return center ; } > > void setCenter ( const sgVec3 c ) > { > sgCopyVec3 ( center, c ) ; > } > > void setCenter ( const float x, const float y, const float z ) > { > sgSetVec3 ( center, x, y, z ) ; > } > > float getRadius (void) const { return radius ; } > void setRadius ( const float r ) { radius = r ; } > > int isEmpty (void) const { return radius < 0.0f ; } > void empty (void) { radius = - 1.0f ; } > > void orthoXform ( const sgMat4 m ) > { > sgXformPnt3 ( center, center, m ) ; > > } > > void extend ( const sgSphere *s ) ; > void extend ( const sgBox *b ) ; > void extend ( const sgVec3 v ) ; > > int intersects ( const sgSphere *s ) const > { > return sgCompare3DSqdDist ( center, s->getCenter(), > sgSquare ( radius + s->getRadius() ) ) <= 0 ; > } > > int intersects ( const sgVec4 plane ) const > { > return sgAbs ( sgDistToPlaneVec3 ( plane, center ) ) <= radius ; > } > > int intersects ( const sgBox *b ) const ; >} ; > > >class sgBox >{ > sgVec3 min ; > sgVec3 max ; > >public: > sgBox () { empty () ; } > > const float *getMin (void) const { return min ; } > const float *getMax (void) const { return max ; } > > void setMin ( const float x, const float y, const float z ) > { > sgSetVec3 ( min, x, y, z ) ; > } > > void setMin ( const sgVec3 src ) > { > sgCopyVec3 ( min, src ) ; > } > > void setMax ( const float x, const float y, const float z ) > { > sgSetVec3 ( max, x, y, z ) ; > } > > void setMax ( const sgVec3 src ) > { > sgCopyVec3 ( max, src ) ; > } > > int isEmpty(void) const > { > return ( min[0] > max[0] || > min[1] > max[1] || > min[2] > max[2] ) ; > } > > void empty (void) > { > sgSetVec3 ( min, 3.40282347e+38F, 3.40282347e+38F, 3.40282347e+38F ) ; > sgSetVec3 ( max, -3.40282347e+38F, -3.40282347e+38F, -3.40282347e+38F ) ; > } > > void extend ( const sgSphere *s ) ; > void extend ( const sgBox *b ) ; > void extend ( const sgVec3 v ) ; > > int intersects ( const sgSphere *s ) const > { > return s -> intersects ( this ) ; > } > > int intersects ( const sgBox *b ) const > { > return min[0] <= b->getMax()[0] && max[0] >= b->getMin()[0] && > min[1] <= b->getMax()[1] && max[1] >= b->getMin()[1] && > min[2] <= b->getMax()[2] && max[2] >= b->getMin()[2] ; > } > > int intersects ( const sgVec4 plane ) const ; >} ; ># 1027 "/usr/include/plib/sg.h" 3 4 >class sgFrustum >{ > > > float left, right, top, bot, nnear, ffar ; > > > > sgVec3 top_plane, bot_plane, left_plane, right_plane ; > > > > sgMat4 mat ; > > > > float hfov ; > float vfov ; > > void update (void) ; > int getOutcode ( const sgVec4 src ) const ; > >public: > > sgFrustum (void) > { > nnear = 1.0f ; > ffar = 1000000.0f ; > hfov = 45.0f ; > vfov = 45.0f ; > update () ; > } > > void setFrustum ( const float l, const float r, > const float b, const float t, > const float n, const float f ) > { > left = l ; right = r ; > top = t ; bot = b ; > nnear = n ; ffar = f ; > hfov = vfov = 0.0f ; > update () ; > } > > void getMat4 ( sgMat4 dst ) { sgCopyMat4 ( dst, mat ) ; } > > float getHFOV (void) const { return hfov ; } > float getVFOV (void) const { return vfov ; } > float getNear (void) const { return nnear ; } > float getFar (void) const { return ffar ; } > float getLeft (void) const { return left ; } > float getRight(void) const { return right ; } > float getTop (void) const { return top ; } > float getBot (void) const { return bot ; } > > void getFOV ( float *h, float *v ) const > { > if ( h != (float *) 0 ) *h = hfov ; > if ( v != (float *) 0 ) *v = vfov ; > } > > void setFOV ( const float h, const float v ) > { > hfov = ( h <= 0 ) ? ( v * 3.0f / 2.0f ) : h ; > vfov = ( v <= 0 ) ? ( h * 2.0f / 3.0f ) : v ; > update () ; > } > > void getNearFar ( float *n, float *f ) const > { > if ( n != (float *) 0 ) *n = nnear ; > if ( f != (float *) 0 ) *f = ffar ; > } > > void setNearFar ( const float n, const float f ) > { > nnear = n ; > ffar = f ; > update () ; > } > > int contains ( const sgVec3 p ) const ; > int contains ( const sgSphere *s ) const ; >} ; ># 1127 "/usr/include/plib/sg.h" 3 4 >inline void sgMakeIdentQuat ( sgQuat dst ) >{ > sgSetVec4 ( dst, 0.0f, 0.0f, 0.0f, 1.0f ) ; >} > > >inline void sgSetQuat ( sgQuat dst, > const float w, const float x, > const float y, const float z ) >{ > sgSetVec4 ( dst, x, y, z, w ) ; >} > >inline void sgCopyQuat ( sgQuat dst, const sgQuat src ) >{ > sgCopyVec4 ( dst, src ) ; >} > > > > >inline void sgNormaliseQuat ( sgQuat dst, const sgQuat src ) >{ > float d = sgScalarProductVec4 ( src, src ) ; > > d = (d > 0.0f) ? (1.0f / sgSqrt ( d )) : 1.0f ; > > sgScaleVec4 ( dst, src, d ) ; >} > > > >inline void sgNormaliseQuat ( sgQuat dst ) { sgNormaliseQuat ( dst, dst ) ; } > > >inline void sgInvertQuat ( sgQuat dst, const sgQuat src ) >{ > float d = sgScalarProductVec4 ( src, src ) ; > > d = ( d == 0.0f ) ? 1.0f : ( 1.0f / d ) ; > > dst[3] = src[3] * d ; > dst[0] = -src[0] * d ; > dst[1] = -src[1] * d ; > dst[2] = -src[2] * d ; >} > >inline void sgInvertQuat ( sgQuat dst ) { sgInvertQuat ( dst, dst ) ; } > > > > >void sgQuatToAngleAxis ( float *angle, sgVec3 axis, const sgQuat src ) ; >void sgQuatToAngleAxis ( float *angle, > float *x, float *y, float *z, > const sgQuat src ) ; > > > >void sgAngleAxisToQuat ( sgQuat dst, const float angle, const sgVec3 axis ) ; >void sgAngleAxisToQuat ( sgQuat dst, > const float angle, > const float x, const float y, const float z ) ; > > > >void sgMatrixToQuat ( sgQuat quat, const sgMat4 m ) ; >void sgQuatToMatrix ( sgMat4 m, const sgQuat quat ) ; > > > >void sgQuatToEuler( sgVec3 hpr, const sgQuat quat ) ; >void sgEulerToQuat( sgQuat quat, const sgVec3 hpr ) ; > >inline void sgEulerToQuat( sgQuat dst, > float h, float p, float r ) >{ > sgVec3 hpr ; > > sgSetVec3 ( hpr, h, p, r ) ; > > sgEulerToQuat( dst, hpr ) ; >} > >inline void sgHPRToQuat ( sgQuat dst, float h, float p, float r ) >{ > sgVec3 hpr; > > hpr[0] = h * (((float) 3.14159265358979323846)/180.0f) ; > hpr[1] = p * (((float) 3.14159265358979323846)/180.0f) ; > hpr[2] = r * (((float) 3.14159265358979323846)/180.0f) ; > > sgEulerToQuat( dst, hpr ) ; >} > >inline void sgHPRToQuat ( sgQuat dst, const sgVec3 hpr ) >{ > sgVec3 tmp ; > > sgScaleVec3 ( tmp, hpr, (((float) 3.14159265358979323846)/180.0f) ) ; > > sgEulerToQuat ( dst, tmp ) ; >} > > > >void sgMultQuat ( sgQuat dst, const sgQuat a, const sgQuat b ) ; > >inline void sgPostMultQuat ( sgQuat dst, const sgQuat q ) >{ > sgQuat r ; > > sgCopyQuat ( r, dst ) ; > sgMultQuat ( dst, r, q ) ; >} > >inline void sgPreMultQuat ( sgQuat dst, const sgQuat q ) >{ > sgQuat r ; > > sgCopyQuat ( r, dst ) ; > sgMultQuat ( dst, q, r ) ; >} > > > > > >inline void sgPreRotQuat ( sgQuat dst, const float angle, const sgVec3 axis ) >{ > sgQuat q ; > sgAngleAxisToQuat ( q, angle, axis ) ; > sgPreMultQuat ( dst, q ) ; > sgNormaliseQuat ( dst ) ; >} > > >inline void sgPostRotQuat ( sgQuat dst, const float angle, const sgVec3 axis ) >{ > sgQuat q ; > sgAngleAxisToQuat ( q, angle, axis ) ; > sgPostMultQuat ( dst, q ) ; > sgNormaliseQuat ( dst ) ; >} > > >inline void sgPreRotQuat ( sgQuat dst, > const float angle, > const float x, const float y, const float z ) >{ > sgVec3 axis ; > > sgSetVec3 ( axis, x, y, z ) ; > sgPreRotQuat ( dst, angle, axis ) ; >} > >inline void sgPostRotQuat ( sgQuat dst, > const float angle, > const float x, const float y, const float z ) >{ > sgVec3 axis ; > > sgSetVec3 ( axis, x, y, z ) ; > sgPostRotQuat ( dst, angle, axis ) ; >} ># 1304 "/usr/include/plib/sg.h" 3 4 >extern void sgSlerpQuat ( sgQuat dst, > const sgQuat from, const sgQuat to, > const float t ) ; > > > > > > > >int sgIsectPlanePlane ( sgVec3 point, sgVec3 dir, > sgVec4 plane1, sgVec4 plane2 ) ; >int sgIsectInfLinePlane ( sgVec3 dst, > sgVec3 l_org, sgVec3 l_vec, > sgVec4 plane ) ; >int sgIsectInfLineInfLine ( sgVec3 dst, > sgVec3 l1_org, sgVec3 l1_vec, > sgVec3 l2_org, sgVec3 l2_vec ) ; >float sgIsectLinesegPlane ( sgVec3 dst, > sgVec3 v1, sgVec3 v2, > sgVec4 plane ) ; >bool sgPointInTriangle ( sgVec3 point, sgVec3 tri[3] ); ># 1366 "/usr/include/plib/sg.h" 3 4 >inline double sgdSqrt ( const double x ) { return sqrt ( x ) ; } >inline double sgdSquare ( const double x ) { return x * x ; } >inline double sgdAbs ( const double a ) { return ( a < 0.0 ) ? -a : a ; } > >inline double sgdASin ( double s ) > { return (double) asin ( s ) * (180.0/3.14159265358979323846) ; } >inline double sgdACos ( double s ) > { return (double) acos ( s ) * (180.0/3.14159265358979323846) ; } >inline double sgdATan ( double s ) > { return (double) atan ( s ) * (180.0/3.14159265358979323846) ; } >inline double sgdATan2 ( double y, double x ) > { return (double) atan2 ( y,x ) * (180.0/3.14159265358979323846) ; } >inline double sgdSin ( double s ) > { return (double) sin ( s * (3.14159265358979323846/180.0) ) ; } >inline double sgdCos ( double s ) > { return (double) cos ( s * (3.14159265358979323846/180.0) ) ; } >inline double sgdTan ( double s ) > { return (double) tan ( s * (3.14159265358979323846/180.0) ) ; } > >inline int sgdCompareFloat ( const double a, const double b, const double tol ) >{ > if ( ( a + tol ) < b ) return -1 ; > if ( ( b + tol ) < a ) return 1 ; > return 0 ; >} > > > > > > >typedef double sgdVec2 [ 2 ] ; >typedef double sgdVec3 [ 3 ] ; >typedef double sgdVec4 [ 4 ] ; > >typedef sgdVec4 sgdQuat ; > >typedef double sgdMat3 [3][3] ; >typedef double sgdMat4 [4][4] ; > >struct sgdCoord >{ > sgdVec3 xyz ; > sgdVec3 hpr ; >} ; > >class sgdSphere ; >class sgdBox ; >class sgdFrustum ; ># 1424 "/usr/include/plib/sg.h" 3 4 >inline double sgdHeightOfPlaneVec2 ( const sgdVec4 plane, const sgdVec2 pnt ) >{ > if ( plane[2] == 0.0 ) > return 0.0 ; > else > return -( plane[0] * pnt[0] + plane[1] * pnt[1] + plane[3] ) / plane[2] ; >} > > > > > > >extern void sgdHPRfromVec3 ( sgdVec3 hpr, const sgdVec3 src ) ; > >extern void sgdMakeCoordMat4 ( sgdMat4 dst, const double x, const double y, const double z, > const double h, const double p, const double r ) ; > >inline void sgdMakeCoordMat4( sgdMat4 dst, const sgdVec3 xyz, const sgdVec3 hpr ) >{ > sgdMakeCoordMat4 ( dst, xyz[0], xyz[1], xyz[2], > hpr[0], hpr[1], hpr[2] ) ; >} > >inline void sgdMakeCoordMat4( sgdMat4 dst, const sgdCoord *src ) >{ > sgdMakeCoordMat4 ( dst, src->xyz, src->hpr ) ; >} > >extern void sgdMakeRotMat4 ( sgdMat4 dst, const double angle, const sgdVec3 axis ) ; > >inline void sgdMakeRotMat4 ( sgdMat4 dst, const sgdVec3 hpr ) >{ > sgdMakeCoordMat4 ( dst, 0.0, 0.0, 0.0, hpr[0], hpr[1], hpr[2] ) ; >} > >inline void sgdMakeRotMat4 ( sgdMat4 dst, const double h, const double p, const double r ) >{ > sgdMakeCoordMat4 ( dst, 0.0, 0.0, 0.0, h, p, r ) ; >} > >extern void sgdMakeTransMat4 ( sgdMat4 dst, const sgdVec3 xyz ) ; >extern void sgdMakeTransMat4 ( sgdMat4 dst, const double x, const double y, const double z ) ; > > >extern void sgdSetCoord ( sgdCoord *coord, const sgdMat4 src ) ; > >extern void sgdMultMat4 ( sgdMat4 dst, const sgdMat4 a, const sgdMat4 b ) ; >extern void sgdPostMultMat4 ( sgdMat4 dst, const sgdMat4 a ) ; >extern void sgdPreMultMat4 ( sgdMat4 dst, const sgdMat4 a ) ; > >extern void sgdTransposeNegateMat4 ( sgdMat4 dst ) ; >extern void sgdTransposeNegateMat4 ( sgdMat4 dst, const sgdMat4 src ) ; > >extern void sgdInvertMat4 ( sgdMat4 dst, const sgdMat4 src ) ; >inline void sgdInvertMat4 ( sgdMat4 dst ) { sgdInvertMat4 ( dst, dst ) ; } > >extern void sgdXformVec3 ( sgdVec3 dst, const sgdVec3 src, const sgdMat4 mat ) ; >extern void sgdXformPnt3 ( sgdVec3 dst, const sgdVec3 src, const sgdMat4 mat ) ; >extern void sgdXformVec4 ( sgdVec4 dst, const sgdVec4 src, const sgdMat4 mat ) ; >extern void sgdXformPnt4 ( sgdVec4 dst, const sgdVec4 src, const sgdMat4 mat ) ; >extern void sgdFullXformPnt3 ( sgdVec3 dst, const sgdVec3 src, const sgdMat4 mat ) ; >extern void sgdFullXformPnt4 ( sgdVec4 dst, const sgdVec4 src, const sgdMat4 mat ) ; > >inline void sgdXformVec3 ( sgdVec3 dst, const sgdMat4 mat ) { sgdXformVec3 ( dst, dst, mat ) ; } >inline void sgdXformPnt3 ( sgdVec3 dst, const sgdMat4 mat ) { sgdXformPnt3 ( dst, dst, mat ) ; } >inline void sgdXformVec4 ( sgdVec4 dst, const sgdMat4 mat ) { sgdXformVec4 ( dst, dst, mat ) ; } >inline void sgdXformPnt4 ( sgdVec4 dst, const sgdMat4 mat ) { sgdXformPnt4 ( dst, dst, mat ) ; } >inline void sgdFullXformPnt3 ( sgdVec3 dst, const sgdMat4 mat ) { sgdFullXformPnt3 ( dst, dst, mat ) ; } >inline void sgdFullXformPnt4 ( sgdVec4 dst, const sgdMat4 mat ) { sgdFullXformPnt4 ( dst, dst, mat ) ; } ># 1519 "/usr/include/plib/sg.h" 3 4 >inline void sgdZeroVec2 ( sgdVec2 dst ) { dst[0]=dst[1]=0.0 ; } >inline void sgdZeroVec3 ( sgdVec3 dst ) { dst[0]=dst[1]=dst[2]=0.0 ; } >inline void sgdZeroVec4 ( sgdVec4 dst ) { dst[0]=dst[1]=dst[2]=dst[3]=0.0 ; } > > >inline void sgdSetVec2 ( sgdVec2 dst, const double x, const double y ) >{ > dst [ 0 ] = x ; > dst [ 1 ] = y ; >} > >inline void sgdSetVec3 ( sgdVec3 dst, const double x, const double y, const double z ) >{ > dst [ 0 ] = x ; > dst [ 1 ] = y ; > dst [ 2 ] = z ; >} > >inline void sgdSetVec4 ( sgdVec4 dst, const double x, const double y, const double z, const double w ) >{ > dst [ 0 ] = x ; > dst [ 1 ] = y ; > dst [ 2 ] = z ; > dst [ 3 ] = w ; >} > > >inline void sgdCopyVec2 ( sgdVec2 dst, const sgdVec2 src ) >{ > dst [ 0 ] = src [ 0 ] ; > dst [ 1 ] = src [ 1 ] ; >} > >inline void sgdCopyVec3 ( sgdVec3 dst, const sgdVec3 src ) >{ > dst [ 0 ] = src [ 0 ] ; > dst [ 1 ] = src [ 1 ] ; > dst [ 2 ] = src [ 2 ] ; >} > >inline void sgdCopyVec4 ( sgdVec4 dst, const sgdVec4 src ) >{ > dst [ 0 ] = src [ 0 ] ; > dst [ 1 ] = src [ 1 ] ; > dst [ 2 ] = src [ 2 ] ; > dst [ 3 ] = src [ 3 ] ; >} > > >inline void sgdAddVec2 ( sgdVec2 dst, const sgdVec2 src ) >{ > dst [ 0 ] += src [ 0 ] ; > dst [ 1 ] += src [ 1 ] ; >} > >inline void sgdAddVec3 ( sgdVec3 dst, const sgdVec3 src ) >{ > dst [ 0 ] += src [ 0 ] ; > dst [ 1 ] += src [ 1 ] ; > dst [ 2 ] += src [ 2 ] ; >} > >inline void sgdAddVec4 ( sgdVec4 dst, const sgdVec4 src ) >{ > dst [ 0 ] += src [ 0 ] ; > dst [ 1 ] += src [ 1 ] ; > dst [ 2 ] += src [ 2 ] ; > dst [ 3 ] += src [ 3 ] ; >} > > >inline void sgdAddVec2 ( sgdVec2 dst, const sgdVec2 src1, const sgdVec2 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] ; >} > >inline void sgdAddVec3 ( sgdVec3 dst, const sgdVec3 src1, const sgdVec3 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] ; > dst [ 2 ] = src1 [ 2 ] + src2 [ 2 ] ; >} > >inline void sgdAddVec4 ( sgdVec4 dst, const sgdVec4 src1, const sgdVec4 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] ; > dst [ 2 ] = src1 [ 2 ] + src2 [ 2 ] ; > dst [ 3 ] = src1 [ 3 ] + src2 [ 3 ] ; >} > > >inline void sgdSubVec2 ( sgdVec2 dst, const sgdVec2 src ) >{ > dst [ 0 ] -= src [ 0 ] ; > dst [ 1 ] -= src [ 1 ] ; >} > >inline void sgdSubVec3 ( sgdVec3 dst, const sgdVec3 src ) >{ > dst [ 0 ] -= src [ 0 ] ; > dst [ 1 ] -= src [ 1 ] ; > dst [ 2 ] -= src [ 2 ] ; >} > >inline void sgdSubVec4 ( sgdVec4 dst, const sgdVec4 src ) >{ > dst [ 0 ] -= src [ 0 ] ; > dst [ 1 ] -= src [ 1 ] ; > dst [ 2 ] -= src [ 2 ] ; > dst [ 3 ] -= src [ 3 ] ; >} > >inline void sgdSubVec2 ( sgdVec2 dst, const sgdVec2 src1, const sgdVec2 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] - src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] - src2 [ 1 ] ; >} > >inline void sgdSubVec3 ( sgdVec3 dst, const sgdVec3 src1, const sgdVec3 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] - src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] - src2 [ 1 ] ; > dst [ 2 ] = src1 [ 2 ] - src2 [ 2 ] ; >} > >inline void sgdSubVec4 ( sgdVec4 dst, const sgdVec4 src1, const sgdVec4 src2 ) >{ > dst [ 0 ] = src1 [ 0 ] - src2 [ 0 ] ; > dst [ 1 ] = src1 [ 1 ] - src2 [ 1 ] ; > dst [ 2 ] = src1 [ 2 ] - src2 [ 2 ] ; > dst [ 3 ] = src1 [ 3 ] - src2 [ 3 ] ; >} > > >inline void sgdNegateVec2 ( sgdVec2 dst ) >{ > dst [ 0 ] = -dst [ 0 ] ; > dst [ 1 ] = -dst [ 1 ] ; >} > >inline void sgdNegateVec3 ( sgdVec3 dst ) >{ > dst [ 0 ] = -dst [ 0 ] ; > dst [ 1 ] = -dst [ 1 ] ; > dst [ 2 ] = -dst [ 2 ] ; >} > >inline void sgdNegateVec4 ( sgdVec4 dst ) >{ > dst [ 0 ] = -dst [ 0 ] ; > dst [ 1 ] = -dst [ 1 ] ; > dst [ 2 ] = -dst [ 2 ] ; > dst [ 3 ] = -dst [ 3 ] ; >} > > >inline void sgdNegateVec2 ( sgdVec2 dst, const sgdVec2 src ) >{ > dst [ 0 ] = -src [ 0 ] ; > dst [ 1 ] = -src [ 1 ] ; >} > >inline void sgdNegateVec3 ( sgdVec3 dst, const sgdVec3 src ) >{ > dst [ 0 ] = -src [ 0 ] ; > dst [ 1 ] = -src [ 1 ] ; > dst [ 2 ] = -src [ 2 ] ; >} > >inline void sgdNegateVec4 ( sgdVec4 dst, const sgdVec4 src ) >{ > dst [ 0 ] = -src [ 0 ] ; > dst [ 1 ] = -src [ 1 ] ; > dst [ 2 ] = -src [ 2 ] ; > dst [ 3 ] = -src [ 3 ] ; >} > > >inline void sgdScaleVec2 ( sgdVec2 dst, const double s ) >{ > dst [ 0 ] *= s ; > dst [ 1 ] *= s ; >} > >inline void sgdScaleVec3 ( sgdVec3 dst, const double s ) >{ > dst [ 0 ] *= s ; > dst [ 1 ] *= s ; > dst [ 2 ] *= s ; >} > >inline void sgdScaleVec4 ( sgdVec4 dst, const double s ) >{ > dst [ 0 ] *= s ; > dst [ 1 ] *= s ; > dst [ 2 ] *= s ; > dst [ 3 ] *= s ; >} > >inline void sgdScaleVec2 ( sgdVec2 dst, const sgdVec2 src, const double s ) >{ > dst [ 0 ] = src [ 0 ] * s ; > dst [ 1 ] = src [ 1 ] * s ; >} > >inline void sgdScaleVec3 ( sgdVec3 dst, const sgdVec3 src, const double s ) >{ > dst [ 0 ] = src [ 0 ] * s ; > dst [ 1 ] = src [ 1 ] * s ; > dst [ 2 ] = src [ 2 ] * s ; >} > >inline void sgdScaleVec4 ( sgdVec4 dst, const sgdVec4 src, const double s ) >{ > dst [ 0 ] = src [ 0 ] * s ; > dst [ 1 ] = src [ 1 ] * s ; > dst [ 2 ] = src [ 2 ] * s ; > dst [ 3 ] = src [ 3 ] * s ; >} > > >inline void sgdAddScaledVec2 ( sgdVec2 dst, const sgdVec2 src, const double s ) >{ > dst [ 0 ] += src [ 0 ] * s ; > dst [ 1 ] += src [ 1 ] * s ; >} > >inline void sgdAddScaledVec3 ( sgdVec3 dst, const sgdVec3 src, const double s ) >{ > dst [ 0 ] += src [ 0 ] * s ; > dst [ 1 ] += src [ 1 ] * s ; > dst [ 2 ] += src [ 2 ] * s ; >} > >inline void sgdAddScaledVec4 ( sgdVec4 dst, const sgdVec4 src, const double s ) >{ > dst [ 0 ] += src [ 0 ] * s ; > dst [ 1 ] += src [ 1 ] * s ; > dst [ 2 ] += src [ 2 ] * s ; > dst [ 3 ] += src [ 3 ] * s ; >} > > >inline void sgdAddScaledVec2 ( sgdVec2 dst, const sgdVec2 src1, const sgdVec2 src2, const double s ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] * s ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] * s ; >} > >inline void sgdAddScaledVec3 ( sgdVec3 dst, const sgdVec3 src1, const sgdVec3 src2, const double s ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] * s ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] * s ; > dst [ 2 ] = src1 [ 2 ] + src2 [ 2 ] * s ; >} > >inline void sgdAddScaledVec4 ( sgdVec4 dst, const sgdVec4 src1, const sgdVec4 src2, const double s ) >{ > dst [ 0 ] = src1 [ 0 ] + src2 [ 0 ] * s ; > dst [ 1 ] = src1 [ 1 ] + src2 [ 1 ] * s ; > dst [ 2 ] = src1 [ 2 ] + src2 [ 2 ] * s ; > dst [ 3 ] = src1 [ 3 ] + src2 [ 3 ] * s ; >} > > > >inline int sgdCompareVec2 ( const sgdVec2 a, const sgdVec2 b, const double tol ) >{ > int val = 0 ; > > if ( ( val = sgdCompareFloat( a[0], b[0], tol ) ) != 0 ) return val ; > if ( ( val = sgdCompareFloat( a[1], b[1], tol ) ) != 0 ) return val ; > > return 0 ; >} > >inline int sgdCompareVec3 ( const sgdVec3 a, const sgdVec3 b, const double tol ) >{ > int val = 0 ; > > if ( ( val = sgdCompareFloat( a[0], b[0], tol ) ) != 0 ) return val ; > if ( ( val = sgdCompareFloat( a[1], b[1], tol ) ) != 0 ) return val ; > if ( ( val = sgdCompareFloat( a[2], b[2], tol ) ) != 0 ) return val ; > > return 0 ; >} > >inline int sgdCompareVec4 ( const sgdVec4 a, const sgdVec4 b, const double tol ) >{ > int val = 0 ; > > if ( ( val = sgdCompareFloat( a[0], b[0], tol ) ) != 0 ) return val ; > if ( ( val = sgdCompareFloat( a[1], b[1], tol ) ) != 0 ) return val ; > if ( ( val = sgdCompareFloat( a[2], b[2], tol ) ) != 0 ) return val ; > if ( ( val = sgdCompareFloat( a[3], b[3], tol ) ) != 0 ) return val ; > > return 0 ; >} > > >inline int sgdEqualVec2 ( const sgdVec2 a, const sgdVec2 b ) >{ > return a[0] == b[0] && > a[1] == b[1] ; >} > >inline int sgdEqualVec3 ( const sgdVec3 a, const sgdVec3 b ) >{ > return a[0] == b[0] && > a[1] == b[1] && > a[2] == b[2] ; >} > >inline int sgdEqualVec4 ( const sgdVec4 a, const sgdVec4 b ) >{ > return a[0] == b[0] && > a[1] == b[1] && > a[2] == b[2] && > a[3] == b[3] ; >} > > >inline double sgdScalarProductVec2 ( const sgdVec2 a, const sgdVec2 b ) >{ > return a[0]*b[0] + a[1]*b[1] ; >} > >inline double sgdScalarProductVec3 ( const sgdVec3 a, const sgdVec3 b ) >{ > return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] ; >} > >inline double sgdScalarProductVec4 ( const sgdVec4 a, const sgdVec4 b ) >{ > return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3] ; >} > > >extern void sgdVectorProductVec3 ( sgdVec3 dst, const sgdVec3 a, const sgdVec3 b ) ; > > >inline void sgdLerpVec4 ( sgdVec4 dst, const sgdVec4 a, const sgdVec4 b, const double f ) >{ > dst[0] = a[0] + f * ( b[0] - a[0] ) ; > dst[1] = a[1] + f * ( b[1] - a[1] ) ; > dst[2] = a[2] + f * ( b[2] - a[2] ) ; > dst[3] = a[3] + f * ( b[3] - a[3] ) ; >} > >inline void sgdLerpVec3 ( sgdVec3 dst, const sgdVec3 a, const sgdVec3 b, const double f ) >{ > dst[0] = a[0] + f * ( b[0] - a[0] ) ; > dst[1] = a[1] + f * ( b[1] - a[1] ) ; > dst[2] = a[2] + f * ( b[2] - a[2] ) ; >} > >inline void sgdLerpVec2 ( sgdVec2 dst, const sgdVec2 a, const sgdVec2 b, const double f ) >{ > dst[0] = a[0] + f * ( b[0] - a[0] ) ; > dst[1] = a[1] + f * ( b[1] - a[1] ) ; >} > >inline void sgdLerpAnglesVec3 ( sgdVec3 dst, const sgdVec3 a, > const sgdVec3 b, > const double f ) >{ > sgdVec3 tmp ; > > if ( b[0] - a[0] > 180.0 ) tmp[0] = a[0] + 360.0 ; else > if ( b[0] - a[0] < -180.0 ) tmp[0] = a[0] - 360.0 ; else tmp[0] = a[0] ; > > if ( b[1] - a[1] > 180.0 ) tmp[1] = a[1] + 360.0 ; else > if ( b[1] - a[1] < -180.0 ) tmp[1] = a[1] - 360.0 ; else tmp[1] = a[1] ; > > if ( b[2] - a[2] > 180.0 ) tmp[2] = a[2] + 360.0 ; else > if ( b[2] - a[2] < -180.0 ) tmp[2] = a[2] - 360.0 ; else tmp[2] = a[2] ; > > dst[0] = tmp[0] + f * ( b[0] - tmp[0] ) ; > dst[1] = tmp[1] + f * ( b[1] - tmp[1] ) ; > dst[2] = tmp[2] + f * ( b[2] - tmp[2] ) ; >} > > > > >inline double sgdDistanceSquaredVec2 ( const sgdVec2 a, const sgdVec2 b ) >{ > return sgdSquare ( a[0]-b[0] ) + sgdSquare ( a[1]-b[1] ) ; >} > >inline double sgdDistanceSquaredVec3 ( const sgdVec3 a, const sgdVec3 b ) >{ > return sgdSquare ( a[0]-b[0] ) + sgdSquare ( a[1]-b[1] ) + > sgdSquare ( a[2]-b[2] ) ; >} > >inline double sgdDistanceSquaredVec4 ( const sgdVec4 a, const sgdVec4 b ) >{ > return sgdSquare ( a[0]-b[0] ) + sgdSquare ( a[1]-b[1] ) + > sgdSquare ( a[2]-b[2] ) + sgdSquare ( a[3]-b[3] ) ; >} > > >inline double sgdDistanceVec2 ( const sgdVec2 a, const sgdVec2 b ) >{ > return sgdSqrt ( sgdSquare ( a[0]-b[0] ) + sgdSquare ( a[1]-b[1] ) ) ; >} > >inline double sgdDistanceVec3 ( const sgdVec3 a, const sgdVec3 b ) >{ > return sgdSqrt ( sgdSquare ( a[0]-b[0] ) + sgdSquare ( a[1]-b[1] ) + > sgdSquare ( a[2]-b[2] ) ) ; >} > >inline double sgdDistanceVec4 ( const sgdVec4 a, const sgdVec4 b ) >{ > return sgdSqrt ( sgdSquare ( a[0]-b[0] ) + sgdSquare ( a[1]-b[1] ) + > sgdSquare ( a[2]-b[2] ) + sgdSquare ( a[3]-b[3] ) ) ; >} > > >inline double sgdLengthVec2 ( sgdVec2 const src ) >{ > return sgdSqrt ( sgdScalarProductVec2 ( src, src ) ) ; >} > >inline double sgdLengthVec3 ( sgdVec3 const src ) >{ > return sgdSqrt ( sgdScalarProductVec3 ( src, src ) ) ; >} > >inline double sgdLengthVec4 ( sgdVec4 const src ) >{ > return sgdSqrt ( sgdScalarProductVec4 ( src, src ) ) ; >} > >inline double sgdLengthSquaredVec2 ( sgdVec2 const src ) >{ > return sgdScalarProductVec2 ( src, src ) ; >} > >inline double sgdLengthSquaredVec3 ( sgdVec3 const src ) >{ > return sgdScalarProductVec3 ( src, src ) ; >} > >inline double sgdLengthSquaredVec4 ( sgdVec4 const src ) >{ > return sgdScalarProductVec4 ( src, src ) ; >} > > > > > > > >inline void sgdNormaliseVec2 ( sgdVec2 dst ) >{ > sgdScaleVec2 ( dst, 1.0 / sgdLengthVec2 ( dst ) ) ; >} > >inline void sgdNormaliseVec3 ( sgdVec3 dst ) >{ > sgdScaleVec3 ( dst, 1.0 / sgdLengthVec3 ( dst ) ) ; >} > >inline void sgdNormaliseVec4 ( sgdVec4 dst ) >{ > sgdScaleVec4 ( dst, 1.0 / sgdLengthVec4 ( dst ) ) ; >} > >inline void sgdNormaliseVec2 ( sgdVec2 dst, const sgdVec2 src ) >{ > sgdScaleVec2 ( dst, src, 1.0 / sgdLengthVec2 ( src ) ) ; >} > >inline void sgdNormaliseVec3 ( sgdVec3 dst, const sgdVec3 src ) >{ > sgdScaleVec3 ( dst, src, 1.0 / sgdLengthVec3 ( src ) ) ; >} > >inline void sgdNormaliseVec4 ( sgdVec4 dst, const sgdVec4 src ) >{ > sgdScaleVec4 ( dst, src, 1.0 / sgdLengthVec4 ( src ) ) ; >} > > >inline void sgdZeroCoord ( sgdCoord *dst ) >{ > sgdSetVec3 ( dst->xyz, 0.0, 0.0, 0.0 ) ; > sgdSetVec3 ( dst->hpr, 0.0, 0.0, 0.0 ) ; >} > >inline void sgdSetCoord ( sgdCoord *dst, const double x, const double y, const double z, > const double h, const double p, const double r ) >{ > sgdSetVec3 ( dst->xyz, x, y, z ) ; > sgdSetVec3 ( dst->hpr, h, p, r ) ; >} > >inline void sgdSetCoord ( sgdCoord *dst, const sgdVec3 xyz, const sgdVec3 hpr ) >{ > sgdCopyVec3 ( dst->xyz, xyz ) ; > sgdCopyVec3 ( dst->hpr, hpr ) ; >} > >inline void sgdCopyCoord ( sgdCoord *dst, const sgdCoord *src ) >{ > sgdCopyVec3 ( dst->xyz, src->xyz ) ; > sgdCopyVec3 ( dst->hpr, src->hpr ) ; >} > > > >inline void sgdCopyMat4 ( sgdMat4 dst, const sgdMat4 src ) >{ > sgdCopyVec4 ( dst[ 0 ], src[ 0 ] ) ; > sgdCopyVec4 ( dst[ 1 ], src[ 1 ] ) ; > sgdCopyVec4 ( dst[ 2 ], src[ 2 ] ) ; > sgdCopyVec4 ( dst[ 3 ], src[ 3 ] ) ; >} > > >inline void sgdScaleMat4 ( sgdMat4 dst, const sgdMat4 src, const double scale ) >{ > sgdScaleVec4 ( dst[0], src[0], scale ) ; > sgdScaleVec4 ( dst[1], src[1], scale ) ; > sgdScaleVec4 ( dst[2], src[2], scale ) ; > sgdScaleVec4 ( dst[3], src[3], scale ) ; >} > > >inline void sgdMakeIdentMat4 ( sgdMat4 dst ) >{ > sgdSetVec4 ( dst[0], 1.0 , 0.0, 0.0, 0.0 ) ; > sgdSetVec4 ( dst[1], 0.0, 1.0 , 0.0, 0.0 ) ; > sgdSetVec4 ( dst[2], 0.0, 0.0, 1.0 , 0.0 ) ; > sgdSetVec4 ( dst[3], 0.0, 0.0, 0.0, 1.0 ) ; >} > >extern int sgdCompare3DSqdDist ( const sgdVec3 a, const sgdVec3 b, const double sqd_dist ) ; >extern void sgdMakeTransMat4 ( sgdMat4 m, const double x, const double y, const double z ) ; >extern void sgdMakeTransMat4 ( sgdMat4 m, const sgdVec3 xyz ) ; >extern void sgdMakeCoordMat4 ( sgdMat4 m, const double x, const double y, const double z, > const double h, const double p, const double r ) ; >extern void sgdMakeCoordMat4 ( sgdMat4 m, const sgdCoord *c ) ; > >inline double sgdDistToLineVec2 ( const sgdVec3 line, const sgdVec2 pnt ) >{ > return sgdScalarProductVec2 ( line, pnt ) + line[2] ; >} > >inline double sgdDistToPlaneVec3 ( const sgdVec4 plane, const sgdVec3 pnt ) >{ > return sgdScalarProductVec3 ( plane, pnt ) + plane[3] ; >} > >inline double sgdHeightAbovePlaneVec3 ( const sgdVec4 plane, const sgdVec3 pnt ) >{ > return pnt[2] - sgdHeightOfPlaneVec2 ( plane, pnt ) ; >} > >extern void sgdReflectInPlaneVec3 ( sgdVec3 dst, const sgdVec3 src, const sgdVec4 plane ) ; > >inline void sgdReflectInPlaneVec3 ( sgdVec3 dst, const sgdVec4 plane ) >{ > sgdReflectInPlaneVec3 ( dst, dst, plane ) ; >} > >extern void sgdMakeNormal ( sgdVec3 dst, const sgdVec3 a, const sgdVec3 b, const sgdVec3 c ) ; > >inline void sgdMake2DLine ( sgdVec3 dst, const sgdVec2 a, const sgdVec2 b ) >{ > dst[0] = b[1]-a[1] ; > dst[1] = -b[0]-a[0] ; > sgdNormaliseVec2 ( dst ) ; > dst[2] = - ( dst[0]*a[0] + dst[1]*a[1] ) ; >} > >inline void sgdMakePlane ( sgdVec4 dst, const sgdVec3 normal, const sgdVec3 pnt ) >{ > sgdCopyVec3 ( dst, normal ) ; > dst [ 3 ] = - sgdScalarProductVec3 ( normal, pnt ) ; >} > >inline void sgdMakePlane ( sgdVec4 dst, const sgdVec3 a, const sgdVec3 b, const sgdVec3 c ) >{ > > > > > > > > sgdMakeNormal ( dst, a, b, c ) ; > > dst [ 3 ] = - sgdScalarProductVec3 ( dst, a ) ; >} > > > > >class sgdSphere >{ > sgdVec3 center ; > double radius ; >public: > > const double *getCenter (void) const { return center ; } > > void setCenter ( const sgdVec3 c ) > { > sgdCopyVec3 ( center, c ) ; > } > > void setCenter ( const double x, const double y, const double z ) > { > sgdSetVec3 ( center, x, y, z ) ; > } > > double getRadius (void) const { return radius ; } > void setRadius ( const double r ) { radius = r ; } > > int isEmpty (void) const { return radius < 0.0 ; } > void empty (void) { radius = - 1.0 ; } > > void orthoXform ( const sgdMat4 m ) > { > sgdXformPnt3 ( center, center, m ) ; > > } > > void extend ( const sgdSphere *s ) ; > void extend ( const sgdBox *b ) ; > void extend ( const sgdVec3 v ) ; > > int intersects ( const sgdSphere *s ) const > { > return sgdCompare3DSqdDist ( center, s->getCenter(), > sgdSquare ( radius + s->getRadius() ) ) <= 0 ; > } > > int intersects ( const sgdVec4 plane ) const > { > return sgdAbs ( sgdDistToPlaneVec3 ( plane, center ) ) <= radius ; > } > > int intersects ( const sgdBox *b ) const ; >} ; > > >class sgdBox >{ > sgdVec3 min ; > sgdVec3 max ; > >public: > > const double *getMin (void) const { return min ; } > const double *getMax (void) const { return max ; } > > void setMin ( const double x, const double y, const double z ) > { > sgdSetVec3 ( min, x, y, z ) ; > } > > void setMin ( const sgdVec3 src ) > { > sgdCopyVec3 ( min, src ) ; > } > > void setMax ( const double x, const double y, const double z ) > { > sgdSetVec3 ( max, x, y, z ) ; > } > > void setMax ( const sgdVec3 src ) > { > sgdCopyVec3 ( max, src ) ; > } > > int isEmpty(void) const > { > return ( min[0] > max[0] || > min[1] > max[1] || > min[2] > max[2] ) ; > } > > void empty (void) > { > sgdSetVec3 ( min, 1.7976931348623157e+308, 1.7976931348623157e+308, 1.7976931348623157e+308 ) ; > sgdSetVec3 ( max, -1.7976931348623157e+308, -1.7976931348623157e+308, -1.7976931348623157e+308 ) ; > } > > void extend ( const sgdSphere *s ) ; > void extend ( const sgdBox *b ) ; > void extend ( const sgdVec3 v ) ; > > int intersects ( const sgdSphere *s ) const > { > return s -> intersects ( this ) ; > } > > int intersects ( const sgdBox *b ) const > { > return min[0] <= b->getMax()[0] && max[0] >= b->getMin()[0] && > min[1] <= b->getMax()[1] && max[1] >= b->getMin()[1] && > min[2] <= b->getMax()[2] && max[2] >= b->getMin()[2] ; > } > > int intersects ( const sgdVec4 plane ) const ; >} ; ># 2242 "/usr/include/plib/sg.h" 3 4 >class sgdFrustum >{ > > > double left, right, top, bot, nnear, ffar ; > > > > sgdVec3 top_plane, bot_plane, left_plane, right_plane ; > > > > sgdMat4 mat ; > > > > double hfov ; > double vfov ; > > void update (void) ; > int getOutcode ( const sgdVec4 src ) const ; > >public: > > sgdFrustum (void) > { > nnear = 1.0 ; > ffar = 1000000.0f ; > hfov = 45.0 ; > vfov = 45.0 ; > update () ; > } > > void setFrustum ( const double l, const double r, > const double b, const double t, > const double n, const double f ) > { > left = l ; right = r ; > top = t ; bot = b ; > nnear = n ; ffar = f ; > hfov = vfov = 0.0 ; > update () ; > } > > double getHFOV (void) const { return hfov ; } > double getVFOV (void) const { return vfov ; } > double getNear (void) const { return nnear ; } > double getFar (void) const { return ffar ; } > double getLeft (void) const { return left ; } > double getRight(void) const { return right ; } > double getTop (void) const { return top ; } > double getBot (void) const { return bot ; } > > void getFOV ( double *h, double *v ) const > { > if ( h != (double *) 0 ) *h = hfov ; > if ( v != (double *) 0 ) *v = vfov ; > } > > void setFOV ( const double h, const double v ) > { > hfov = ( h <= 0 ) ? ( v * 3.0 / 2.0 ) : h ; > vfov = ( v <= 0 ) ? ( h * 2.0 / 3.0 ) : v ; > update () ; > } > > void getNearFar ( double *n, double *f ) const > { > if ( n != (double *) 0 ) *n = nnear ; > if ( f != (double *) 0 ) *f = ffar ; > } > > void setNearFar ( const double n, const double f ) > { > nnear = n ; > ffar = f ; > update () ; > } > > int contains ( const sgdVec3 p ) const ; > int contains ( const sgdSphere *s ) const ; >} ; ># 2340 "/usr/include/plib/sg.h" 3 4 >inline void sgdMakeIdentQuat ( sgdQuat dst ) >{ > sgdSetVec4 ( dst, 0.0, 0.0, 0.0, 1.0 ) ; >} > > >inline void sgdSetQuat ( sgdQuat dst, > const double w, const double x, > const double y, const double z ) >{ > sgdSetVec4 ( dst, x, y, z, w ) ; >} > >inline void sgdCopyQuat ( sgdQuat dst, const sgdQuat src ) >{ > sgdCopyVec4 ( dst, src ) ; >} > > > > >inline void sgdNormaliseQuat ( sgdQuat dst, const sgdQuat src ) >{ > double d = sgdScalarProductVec4 ( src, src ) ; > > d = (d > 0.0) ? (1.0 / sgdSqrt ( d )) : 1.0 ; > > sgdScaleVec4 ( dst, src, d ) ; >} > > > >inline void sgdNormaliseQuat ( sgdQuat dst ) { sgdNormaliseQuat ( dst, dst ) ; } > > >inline void sgdInvertQuat ( sgdQuat dst, const sgdQuat src ) >{ > double d = sgdScalarProductVec4 ( src, src ) ; > > d = ( d == 0.0 ) ? 1.0 : ( 1.0 / d ) ; > > dst[3] = src[3] * d ; > dst[0] = -src[0] * d ; > dst[1] = -src[1] * d ; > dst[2] = -src[2] * d ; >} > >inline void sgdInvertQuat ( sgdQuat dst ) { sgdInvertQuat ( dst, dst ) ; } > > > > >void sgdQuatToAngleAxis ( double *angle, sgdVec3 axis, const sgdQuat src ) ; >void sgdQuatToAngleAxis ( double *angle, > double *x, double *y, double *z, > const sgdQuat src ) ; > > > >void sgdAngleAxisToQuat ( sgdQuat dst, > const double angle, const sgdVec3 axis ) ; >void sgdAngleAxisToQuat ( sgdQuat dst, > const double angle, > const double x, const double y, const double z ); > > > >void sgdMatrixToQuat ( sgdQuat quat, const sgdMat4 m ) ; >void sgdQuatToMatrix ( sgdMat4 m, const sgdQuat quat ) ; > > > >void sgdQuatToEuler( sgdVec3 hpr, const sgdQuat quat ) ; >void sgdEulerToQuat( sgdQuat quat, const sgdVec3 hpr ) ; > >inline void sgdEulerToQuat( sgdQuat dst, > double h, double p, double r ) >{ > sgdVec3 hpr ; > > sgdSetVec3 ( hpr, h, p, r ) ; > > sgdEulerToQuat( dst, hpr ) ; >} > >inline void sgdHPRToQuat ( sgdQuat dst, double h, double p, double r ) >{ > sgdVec3 hpr; > > hpr[0] = h * (3.14159265358979323846/180.0) ; > hpr[1] = p * (3.14159265358979323846/180.0) ; > hpr[2] = r * (3.14159265358979323846/180.0) ; > > sgdEulerToQuat( dst, hpr ) ; >} > >inline void sgdHPRToQuat ( sgdQuat dst, const sgdVec3 hpr ) >{ > sgdVec3 tmp ; > > sgdScaleVec3 ( tmp, hpr, (3.14159265358979323846/180.0) ) ; > > sgdEulerToQuat ( dst, tmp ) ; >} > > > >void sgdMultQuat ( sgdQuat dst, const sgdQuat a, const sgdQuat b ) ; > >inline void sgdPostMultQuat ( sgdQuat dst, const sgdQuat q ) >{ > sgdQuat r ; > > sgdCopyQuat ( r, dst ) ; > sgdMultQuat ( dst, r, q ) ; >} > >inline void sgdPreMultQuat ( sgdQuat dst, const sgdQuat q ) >{ > sgdQuat r ; > > sgdCopyQuat ( r, dst ) ; > sgdMultQuat ( dst, q, r ) ; >} > > > > > >inline void sgdRotQuat ( sgdQuat dst, const double angle, const sgdVec3 axis ) >{ > sgdQuat q ; > > sgdAngleAxisToQuat ( q, angle, axis ) ; > sgdPostMultQuat ( dst, q ) ; > sgdNormaliseQuat ( dst ) ; >} > > >inline void sgdRotQuat ( sgdQuat dst, > const double angle, > const double x, const double y, const double z ) >{ > sgdVec3 axis ; > > sgdSetVec3 ( axis, x, y, z ) ; > sgdRotQuat ( dst, angle, axis ) ; >} > > > >extern void sgdSlerpQuat ( sgdQuat dst, > const sgdQuat from, const sgdQuat to, > const double t ) ; > > > > >inline void sgSetVec2 ( sgVec2 dst, sgdVec2 src ) >{ > dst [ 0 ] = (float) src [ 0 ] ; > dst [ 1 ] = (float) src [ 1 ] ; >} > >inline void sgSetVec3 ( sgVec3 dst, sgdVec3 src ) >{ > dst [ 0 ] = (float) src [ 0 ] ; > dst [ 1 ] = (float) src [ 1 ] ; > dst [ 2 ] = (float) src [ 2 ] ; >} > >inline void sgSetVec4 ( sgVec4 dst, sgdVec4 src ) >{ > dst [ 0 ] = (float) src [ 0 ] ; > dst [ 1 ] = (float) src [ 1 ] ; > dst [ 2 ] = (float) src [ 2 ] ; > dst [ 3 ] = (float) src [ 3 ] ; >} > >inline void sgdSetVec2 ( sgdVec2 dst, sgVec2 src ) >{ > dst [ 0 ] = (double) src [ 0 ] ; > dst [ 1 ] = (double) src [ 1 ] ; >} > >inline void sgdSetVec3 ( sgdVec3 dst, sgVec3 src ) >{ > dst [ 0 ] = (double) src [ 0 ] ; > dst [ 1 ] = (double) src [ 1 ] ; > dst [ 2 ] = (double) src [ 2 ] ; >} > >inline void sgdSetVec4 ( sgdVec4 dst, sgVec4 src ) >{ > dst [ 0 ] = (double) src [ 0 ] ; > dst [ 1 ] = (double) src [ 1 ] ; > dst [ 2 ] = (double) src [ 2 ] ; > dst [ 3 ] = (double) src [ 3 ] ; >} > > >inline void sgSetMat4 ( sgMat4 dst, sgdMat4 src ) >{ > sgSetVec4 ( dst [ 0 ], src [ 0 ] ) ; > sgSetVec4 ( dst [ 1 ], src [ 1 ] ) ; > sgSetVec4 ( dst [ 2 ], src [ 2 ] ) ; > sgSetVec4 ( dst [ 3 ], src [ 3 ] ) ; >} > > >inline void sgdSetMat4 ( sgdMat4 dst, sgMat4 src ) >{ > sgdSetVec4 ( dst [ 0 ], src [ 0 ] ) ; > sgdSetVec4 ( dst [ 1 ], src [ 1 ] ) ; > sgdSetVec4 ( dst [ 2 ], src [ 2 ] ) ; > sgdSetVec4 ( dst [ 3 ], src [ 3 ] ) ; >} > > >inline void sgSetCoord ( sgCoord *dst, sgdCoord *src ) >{ > sgSetVec3 ( dst->xyz, src->xyz ) ; > sgSetVec3 ( dst->hpr, src->hpr ) ; >} > > >inline void sgdSetCoord ( sgdCoord *dst, sgCoord *src ) >{ > sgdSetVec3 ( dst->xyz, src->xyz ) ; > sgdSetVec3 ( dst->hpr, src->hpr ) ; >} > >inline void sgSetQuat ( sgQuat dst, sgdQuat src ) >{ > sgSetVec4 ( dst, src ) ; >} > > > >inline void sgdSetQuat ( sgdQuat dst, sgQuat src ) >{ > sgdSetVec4 ( dst, src ) ; >} > > > > > > >int sgdIsectPlanePlane ( sgdVec3 point, sgdVec3 dir, > sgdVec4 plane1, sgdVec4 plane2 ) ; >int sgdIsectInfLinePlane ( sgdVec3 dst, > sgdVec3 l_org, sgdVec3 l_vec, > sgdVec4 plane ) ; >int sgdIsectInfLineInfLine ( sgdVec3 dst, > sgdVec3 l1_org, sgdVec3 l1_vec, > sgdVec3 l2_org, sgdVec3 l2_vec ) ; >double sgdIsectLinesegPlane ( sgdVec3 dst, > sgdVec3 v1, sgdVec3 v2, > sgdVec4 plane ) ; >bool sgdPointInTriangle ( sgdVec3 point, sgdVec3 tri[3] ); ># 2612 "/usr/include/plib/sg.h" 3 4 >float sgTriangleSolver_ASAtoArea ( float angA, float lenB, float angC ); >float sgTriangleSolver_SAStoArea ( float lenA, float angB, float lenC ); >float sgTriangleSolver_SSStoArea ( float lenA, float lenB, float lenC ); >float sgTriangleSolver_SAAtoArea ( float lenA, float angB, float angA ); >float sgTriangleSolver_ASStoArea ( float angB, float lenA, float lenB, > int angA_is_obtuse ); > >void sgTriangleSolver_SSStoAAA ( float lenA, float lenB, float lenC, > float *angA, float *angB, float *angC ) ; >void sgTriangleSolver_SAStoASA ( float lenA, float angB, float lenC, > float *angA, float *lenB, float *angC ) ; >void sgTriangleSolver_ASAtoSAS ( float angA, float lenB, float angC, > float *lenA, float *angB, float *lenC ) ; >void sgTriangleSolver_SAAtoASS ( float lenA, float angB, float angA, > float *angC, float *lenB, float *lenC ) ; >void sgTriangleSolver_ASStoSAA ( float angB, float lenA, float lenB, > int angA_is_obtuse, > float *lenC, float *angA, float *angC ) ; > > >double sgdTriangleSolver_ASAtoArea(double angA,double lenB,double angC); >double sgdTriangleSolver_SAStoArea(double lenA,double angB,double lenC); >double sgdTriangleSolver_SSStoArea(double lenA,double lenB,double lenC); >double sgdTriangleSolver_ASStoArea(double angB,double lenA,double lenB); >double sgdTriangleSolver_SAAtoArea(double lenA,double angB,double angA); > >void sgdTriangleSolver_SSStoAAA(double lenA,double lenB, double lenC, > double *angA,double *angB,double *angC ) ; >void sgdTriangleSolver_SAStoASA(double lenA,double angB,double lenC, > double *angA,double *lenB,double *angC ) ; >void sgdTriangleSolver_ASAtoSAS(double angA,double lenB,double angC, > double *lenA,double *angB,double *lenC ) ; >void sgdTriangleSolver_ASStoSAA(double angB,double lenA,double lenB, > double *lenC,double *angA,double *angC ) ; >void sgdTriangleSolver_SAAtoASS(double lenA,double angB,double angA, > double *angC,double *lenB,double *lenC ) ; > > > > > > >extern sgVec3 _sgGravity ; > >inline void sgSetGravity ( float g ) { sgSetVec3 ( _sgGravity, 0.0f, 0.0f, -g ) ; } >inline void sgSetGravityVec3 ( sgVec3 g ) { sgCopyVec3 ( _sgGravity, g ) ; } >inline float *sgGetGravityVec3 () { return _sgGravity ; } >inline float sgGetGravity () { return - _sgGravity[2] ; } > > >class sgParticle >{ > float ooMass ; > sgVec3 pos ; > sgVec3 vel ; > sgVec3 force ; > >public: > > sgParticle ( float mass, sgVec3 _pos ) > { > setMass ( mass ) ; > sgCopyVec3 ( pos, _pos ) ; > sgZeroVec3 ( vel ) ; > sgZeroVec3 ( force ) ; > } > > sgParticle ( float mass, float x = 0.0f, float y = 0.0f, float z = 0.0f ) > { > setMass ( mass ) ; > sgSetVec3 ( pos, x, y, z ) ; > sgZeroVec3 ( vel ) ; > sgZeroVec3 ( force ) ; > } > > float *getPos () { return pos ; } > float *getVel () { return vel ; } > float *getForce () { return force ; } > float getOneOverMass () { return ooMass ; } > float getMass () { return 1.0f / ooMass ; } > > void setPos ( sgVec3 p ) { sgCopyVec3 ( pos , p ) ; } > void setVel ( sgVec3 v ) { sgCopyVec3 ( vel , v ) ; } > void setForce ( sgVec3 f ) { sgCopyVec3 ( force, f ) ; } > > void setPos ( float x, float y, float z ) { sgSetVec3 ( pos ,x,y,z ) ; } > void setVel ( float x, float y, float z ) { sgSetVec3 ( vel ,x,y,z ) ; } > void setForce ( float x, float y, float z ) { sgSetVec3 ( force,x,y,z ) ; } > > void setOneOverMass ( float oom ) { ooMass = oom ; } > > void setMass ( float m ) > { > (static_cast<void> (__builtin_expect (!!(m > 0.0f), 1) ? 0 : (__assert_fail ("m > 0.0f", "/usr/include/plib/sg.h", 2705, __PRETTY_FUNCTION__), 0))) ; > ooMass = 1.0f / m ; > } > > void zeroForce () { sgZeroVec3 ( force ) ; } > void addForce ( sgVec3 f ) { sgAddVec3 ( force, f ) ; } > void subForce ( sgVec3 f ) { sgSubVec3 ( force, f ) ; } > void gravityOnly () { sgScaleVec3 ( force, sgGetGravityVec3 (), ooMass ) ; } > > void bounce ( sgVec3 normal, float coefRestitution ) > { > sgVec3 vn, vt ; > sgScaleVec3 ( vn, normal, > sgScalarProductVec3 ( normal, vel ) ) ; > sgSubVec3 ( vt, vel, vn ) ; > sgAddScaledVec3 ( vel, vt, vn, -coefRestitution ) ; > } > > void update ( float dt ) > { > sgAddScaledVec3 ( vel, force, dt * ooMass ) ; > sgAddScaledVec3 ( pos, vel, dt ) ; > } >} ; > > >class sgSpringDamper >{ > sgParticle *p0 ; > sgParticle *p1 ; > > float restLength ; > float stiffness ; > float damping ; > >public: > > sgSpringDamper () > { > p0 = p1 = __null ; > stiffness = 1.0f ; > damping = 1.0f ; > restLength = 1.0f ; > } > > sgSpringDamper ( sgParticle *_p0, sgParticle *_p1, > float _stiffness, float _damping, > float _restLength = -1.0f ) > { > p0 = _p0 ; > p1 = _p1 ; > stiffness = _stiffness ; > damping = _damping ; > > if ( _restLength < 0.0f ) > { > if ( p0 != __null && p1 != __null ) > restLength = sgDistanceVec3 ( p0->getPos(), p1->getPos() ) ; > else > restLength = _restLength ; > } > else > restLength = 1.0f ; > } > > float getRestLength () { return restLength ; } > float getStiffness () { return stiffness ; } > float getDamping () { return damping ; } > > sgParticle *getParticle ( int which ) { return ( which == 0 ) ? p0 : p1 ; } > > > void setParticles ( sgParticle *_p0, sgParticle *_p1 ) { p0 = _p0 ; p1 = _p1 ; } > void setParticle ( int which, sgParticle *p ) { if ( which == 0 ) p0 = p ; else p1 = p ; } > > void setRestLength () { restLength = sgDistanceVec3 ( p0->getPos(), p1->getPos() ) ; } > > void setRestLength ( float l ) { restLength = l ; } > void setStiffness ( float s ) { stiffness = s ; } > void setDamping ( float d ) { damping = d ; } > > void update () > { > sgVec3 dP ; sgSubVec3 ( dP, p0->getPos(), p1->getPos() ) ; > sgVec3 dV ; sgSubVec3 ( dV, p0->getVel(), p1->getVel() ) ; > > float L = sgLengthVec3 ( dP ) ; if ( L == 0.0f ) L = 0.0000001f ; > float H = ( L - restLength ) * stiffness ; > float D = sgScalarProductVec3 ( dV, dP ) * damping / L ; > > sgVec3 F ; sgScaleVec3 ( F, dP, - ( H + D ) / L ) ; > > p0 -> addForce ( F ) ; > p1 -> subForce ( F ) ; > } > >} ; ># 2821 "/usr/include/plib/sg.h" 3 4 >class sgPerlinNoise_1D >{ >private: > > float gradTable [ 256 * 2 + 2 ] ; > >public: > > sgPerlinNoise_1D () ; > > void regenerate () ; > > float getNoise ( float x ) ; >} ; > > > >class sgPerlinNoise_2D >{ >private: > > sgVec2 gradTable [ 256 * 2 + 2 ] ; > >public: > > sgPerlinNoise_2D () ; > > void regenerate () ; > > float getNoise ( sgVec2 pos ) ; > float getNoise ( float x, float y ) > { > sgVec2 p ; > sgSetVec2 ( p, x, y ) ; > return getNoise ( p ) ; > } >} ; > > > >class sgPerlinNoise_3D >{ >private: > > sgVec3 gradTable [ 256 * 2 + 2 ] ; > >public: > > sgPerlinNoise_3D () ; > > void regenerate () ; > > float getNoise ( sgVec3 pos ) ; > float getNoise ( float x, float y, float z ) > { > sgVec3 p ; > sgSetVec3 ( p, x, y, z ) ; > return getNoise ( p ) ; > } >} ; ># 34 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" 2 ># 51 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" >typedef struct >{ > tdble rimRadius; > tdble tireHeight; > tdble tireWidth; > tdble brakeDiskRadius; > tdble wheelRadius; >} tWheelSpec; ># 67 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" >typedef struct { > int exhaustNb; > t3Dd exhaustPos[2]; > tdble exhaustPower; >} tVisualAttributes; > > >typedef struct { > char name[32]; > char carName[32]; > char category[32]; > int raceNumber; > int startRank; > int driverType; > int skillLevel; > tdble iconColor[3]; > t3Dd dimension; > t3Dd drvPos; > t3Dd bonnetPos; > tdble tank; > tdble steerLock; > t3Dd statGC; > tWheelSpec wheel[4]; > tVisualAttributes visualAttr; >} tInitCar; ># 129 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" >typedef struct CarPenalty >{ > int penalty; > int lapToClear; > struct { struct CarPenalty *tqe_next; struct CarPenalty **tqe_prev; } link; >} tCarPenalty; > >typedef struct CarPenaltyHead { struct CarPenalty *tqh_first; struct CarPenalty **tqh_last; } tCarPenaltyHead; > > >typedef struct { > double bestLapTime; > double deltaBestLapTime; > double curLapTime; > double lastLapTime; > double curTime; > tdble topSpeed; > int laps; > int nbPitStops; > int remainingLaps; > int pos; > double timeBehindLeader; > int lapsBehindLeader; > double timeBehindPrev; > double timeBeforeNext; > tdble distRaced; > tdble distFromStartLine; > double scheduledEventTime; > tTrackOwnPit *pit; > int event; > tCarPenaltyHead penaltyList; >} tCarRaceInfo; ># 184 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" >typedef struct { > tDynPt DynGC; > tDynPt DynGCg; > sgMat4 posMat; > tTrkLocPos trkPos; > int state; ># 214 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" > tPosd corner[4]; > >} tPublicCar; ># 241 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" >typedef struct { > tPosd relPos; > tdble spinVel; > tdble brakeTemp; > int state; > tTrackSeg *seg; > tdble rollRes; >} tWheelState; ># 257 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" >typedef struct { > void *paramsHandle; > void *carHandle; > int driverIndex; > char modName[32]; > tWheelState wheel[4]; > tPosd corner[4]; > int gear; > tdble fuel; > tdble enginerpm; > tdble enginerpmRedLine; > tdble enginerpmMax; > tdble enginerpmMaxTq; > tdble gearRatio[10]; > int gearNb; > int gearOffset; > tdble skid[4]; > tdble reaction[4]; > int collision; > t3Dd normal; > t3Dd collpos; > int dammage; > int debug; >} tPrivCar; ># 301 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" >typedef struct { > tdble steer; > tdble accelCmd; > tdble brakeCmd; > tdble clutchCmd; > int gear; > int raceCmd; > > > char msg[4][32]; > > float msgColor[4]; > int lightCmd; > > >} tCarCtrl; ># 327 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" >struct RobotItf; > > >typedef struct >{ > tdble fuel; > int repair; > > > int stopType; >} tCarPitCmd; ># 346 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/car.h" >typedef struct CarElt >{ > int index; > tInitCar info; > tPublicCar pub; > tCarRaceInfo race; > tPrivCar priv; > tCarCtrl ctrl; > tCarPitCmd pitcmd; > struct RobotItf *robot; > struct CarElt *next; >} tCarElt; ># 32 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/raceman.h" 2 > ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/graphic.h" 1 ># 84 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/graphic.h" >struct Situation; > >typedef int (*tfGraphicInitTrack)(tTrack *); >typedef int (*tfGraphicInitCars)(struct Situation *); >typedef int (*tfGraphicInitView)(int , int , int , int , int , void * ); > > > >typedef int (*tfGraphicRefresh)(struct Situation *); >typedef void (*tfGraphicShutdwnCars)(void); >typedef void (*tfGraphicShutdwnTrack)(void); > > > >typedef struct { > tfGraphicInitTrack inittrack; > tfGraphicInitView initview; > tfGraphicInitCars initcars; > tfGraphicRefresh refresh; > tfGraphicShutdwnCars shutdowncars; > tfGraphicShutdwnTrack shutdowntrack; >} tGraphicItf; ># 34 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/raceman.h" 2 ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/simu.h" 1 ># 28 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/simu.h" >struct Situation; > >typedef void (*tfSimInit)(int); >typedef void (*tfSimConfig)(tCarElt*); >typedef void (*tfSimReConfig)(tCarElt*); >typedef void (*tfSimUpdate)(struct Situation*, double, int); >typedef void (*tfSimShutdown)(void); > >typedef struct >{ > tfSimInit init; > tfSimConfig config; > tfSimReConfig reconfig; > tfSimUpdate update; > tfSimShutdown shutdown; >} tSimItf; ># 35 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/raceman.h" 2 > > > >struct RmInfo; > >typedef int (*tfRmRunState) (struct RmInfo *); ># 60 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/raceman.h" >typedef struct { > int ncars; > int totLaps; > int state; > > > > > > > int type; > > > > int maxDammage; > unsigned long fps; >} tRaceAdmInfo; ># 85 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/raceman.h" >typedef struct Situation { > tRaceAdmInfo raceInfo; > double deltaTime; > double currentTime; > int nbPlayers; > tCarElt **cars; >} tSituation; > > >typedef struct >{ > tTrackItf trackItf; > tGraphicItf graphicItf; > tSimItf simItf; >} tRaceModIft; ># 115 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/raceman.h" >typedef struct >{ > tTrkLocPos prevTrkPos; > tdble sTime; > int lapFlag; > char *raceMsg; > double totalPitTime; > double startPitTime; > tdble topSpd; > tdble botSpd; > tdble fuel; >} tReCarInfo; > > > > >typedef struct >{ > int state; > void *param; > tRaceModIft itf; > void *gameScreen; > void *menuScreen; > char *filename; > char *name; > char *raceName; > tReCarInfo *carInfo; > double curTime; > double lastTime; > double timeMult; > int running; > > > > int displayMode; > int refreshDisplay; >} tRaceEngineInfo; ># 178 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/raceman.h" >typedef struct RmCarRules >{ > int ruleState; >} tRmCarRules; > >typedef struct RmMovieCapture >{ > int enabled; > int state; > double deltaSimu; > double deltaFrame; > double lastFrame; > char *outputBase; > int currentCapture; > int currentFrame; >} tRmMovieCapture; > > > > > >typedef struct RmInfo >{ > tCarElt *carList; > tSituation *s; > tTrack *track; > void *params; > void *results; > tModList **modList; > tRmCarRules *rules; > tRaceEngineInfo raceEngineInfo; > tRmMovieCapture movieCapture; >} tRmInfo; ># 40 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robot.h" 2 > > > > >typedef void (*tfRbNewTrack)(int index, tTrack *track, void *carHandle, void **myCarSettings, tSituation *s); > >typedef void (*tfRbNewRace) (int index, tCarElt *car, tSituation *s); > >typedef void (*tfRbEndRace) (int index, tCarElt *car, tSituation *s); > >typedef void (*tfRbDrive) (int index, tCarElt *car, tSituation *s); > >typedef void (*tfRbShutdown)(int index); > >typedef int (*tfRbPitCmd) (int index, tCarElt* car, tSituation *s); ># 63 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robot.h" >typedef struct RobotItf { > tfRbNewTrack rbNewTrack; > tfRbNewRace rbNewRace; > tfRbEndRace rbEndRace; > tfRbDrive rbDrive; > tfRbPitCmd rbPitCmd; > > > > > tfRbShutdown rbShutdown; > int index; >} tRobotItf; ># 30 "raceengine.cpp" 2 > ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/racescreens.h" 1 ># 33 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/racescreens.h" >typedef struct >{ > void *param; > void *prevScreen; > void *nextScreen; > tTrackItf trackItf; >} tRmTrackSelect; > >typedef struct >{ > void *param; > void *prevScreen; > void *nextScreen; >} tRmDrvSelect; > >typedef struct >{ > void *param; > void *prevScreen; > void *nextScreen; > char *title; > unsigned int confMask; > > >} tRmRaceParam; > >typedef void (*tfSelectFile) (char *); > >typedef struct >{ > char *title; > char *path; > void *prevScreen; > tfSelectFile select; >} tRmFileSelect; > > >extern void RmTrackSelect(void * ); >extern char *RmGetTrackName(char * , char * ); > >extern void RmDriversSelect(void * ); >extern void RmDriverSelect(void * ); > >extern void RmPitMenuStart(tCarElt * , void * , tfuiCallback ); > >extern void RmLoadingScreenStart(char * , char * ); >extern void RmLoadingScreenSetText(char * ); >extern void RmShutdownLoadingScreen(void); > >extern void RmShowResults(void * , tRmInfo * ); > >extern void *RmTwoStateScreen(char *title, > char *label1, char *tip1, void *screen1, > char *label2, char *tip2, void *screen2); > >extern void *RmTriStateScreen(char *title, > char *label1, char *tip1, void *screen1, > char *label2, char *tip2, void *screen2, > char *label3, char *tip3, void *screen3); > >extern void *RmFourStateScreen(char *title, > char *label1, char *tip1, void *screen1, > char *label2, char *tip2, void *screen2, > char *label3, char *tip3, void *screen3, > char *label4, char *tip4, void *screen4); > >extern void RmDisplayStartRace(tRmInfo *info, void *startScr, void *abortScr); > > >extern void RmRaceParamMenu(void *vrp); > >extern void RmShowStandings(void *prevHdle, tRmInfo *info); > >extern void RmFileSelect(void *vs); ># 32 "raceengine.cpp" 2 ># 1 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robottools.h" 1 ># 51 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robottools.h" >extern tdble RtTrackGetWidth(tTrackSeg *seg, tdble toStart); ># 64 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robottools.h" >extern void RtTrackLocal2Global(tTrkLocPos *p, tdble *X, tdble *Y, int flag); ># 77 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robottools.h" >extern void RtTrackGlobal2Local(tTrackSeg *segment, tdble X, tdble Y, tTrkLocPos *p, int type); ># 101 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robottools.h" >extern tdble RtTrackHeightL(tTrkLocPos *p); > > > > > > >extern tdble RtTrackHeightG(tTrackSeg *seg, tdble X, tdble Y); ># 124 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robottools.h" >extern void RtTrackSideNormalG(tTrackSeg *seg, tdble X, tdble Y, int side, t3Dd *norm); ># 133 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robottools.h" >extern tdble RtTrackSideTgAngleL(tTrkLocPos *p); ># 145 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robottools.h" >extern void RtTrackSurfaceNormalL(tTrkLocPos *p, t3Dd *norm); > >extern int RtDistToPit(struct CarElt *car, tTrack *track, tdble *dL, tdble *dW); > >extern tdble RtGetDistFromStart(tCarElt *car); >extern tdble RtGetDistFromStart2(tTrkLocPos *p); ># 161 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robottools.h" >extern void RtTelemInit(tdble ymin, tdble ymax); > > > >tTrackSeg *RtTrackGetSeg(tTrkLocPos *p); ># 176 "/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include/robottools.h" >extern void RtTelemNewChannel(const char * name, tdble * var, tdble min, tdble max); >extern void RtTelemStartMonitoring(const char * filename); >extern void RtTelemStopMonitoring(void); >extern void RtTelemUpdate(double time); >extern void RtTelemShutdown(void); ># 33 "raceengine.cpp" 2 > ># 1 "racemain.h" 1 ># 29 "racemain.h" >extern int ReRaceEventInit(void); >extern int RePreRace(void); >extern int ReRaceStart(void); >extern int ReRaceStop(void); >extern int ReRaceEnd(void); >extern int RePostRace(void); >extern int ReEventShutdown(void); ># 35 "raceengine.cpp" 2 ># 1 "racegl.h" 1 ># 29 "racegl.h" >extern void *ReScreenInit(void); >extern void ReScreenShutdown(void); >extern void *ReHookInit(void); >extern void ReHookShutdown(void); >extern void ReSetRaceMsg(char *msg); >extern void ReSetRaceBigMsg(char *msg); > >extern void *ReResScreenInit(void); >extern void ReResScreenSetTitle(char *title); >extern void ReResScreenAddText(char *text); >extern void ReResScreenSetText(char *text, int line, int clr); >extern void ReResScreenRemoveText(int line); >extern void ReResShowCont(void); >extern int ReResGetLines(void); >extern void ReResEraseScreen(void); ># 36 "raceengine.cpp" 2 ># 1 "raceinit.h" 1 ># 31 "raceinit.h" >extern void ReInit(void); >extern void ReShutdown(void); >extern void ReStartNewRace(void * ); >extern void ReAddRacemanListButton(void *menuHandle); >extern int ReInitCars(void); >extern int ReInitTrack(void); >extern void ReRaceCleanup(void); >extern void ReRaceCleanDrivers(void); >extern char *ReGetCurrentRaceName(void); >extern char *ReGetPrevRaceName(void); > >extern tModList *ReRaceModList; ># 37 "raceengine.cpp" 2 ># 1 "raceresults.h" 1 ># 30 "raceresults.h" >extern void ReInitResults(void); >extern void ReStoreRaceResults(char *race); >extern int ReDisplayResults(void); >extern void ReDisplayStandings(void); >extern void ReSavePracticeLap(tCarElt *car); >extern void ReUpdateQualifCurRes(tCarElt *car); >extern void ReEventInitResults(void); >extern void ReUpdateStandings(); ># 38 "raceengine.cpp" 2 > ># 1 "raceengine.h" 1 ># 31 "raceengine.h" >extern void ReStart(void); >extern void ReStop(void); >extern int ReUpdate(void); >extern void ReTimeMod (void *vcmd); > >extern tRmInfo *ReInfo; ># 40 "raceengine.cpp" 2 > >static char buf[1024]; >static double msgDisp; >static double bigMsgDisp; > >tRmInfo *ReInfo = 0; > >static void ReRaceRules(tCarElt *car); > > > >static void >ReUpdtPitTime(tCarElt *car) >{ > tSituation *s = ReInfo->s; > tReCarInfo *info = &(ReInfo->raceEngineInfo.carInfo[car->index]); > > switch (car->pitcmd.stopType) { > case 0: > info->totalPitTime = 2.0 + fabs(car->pitcmd.fuel) / 8.0 + (tdble)(fabs(car->pitcmd.repair)) * 0.007; > car->race.scheduledEventTime = s->currentTime + info->totalPitTime; > ReInfo->raceEngineInfo.itf.simItf.reconfig(car); > break; > case 1: > info->totalPitTime = 0.0; > car->race.scheduledEventTime = s->currentTime; > break; > } >} > > >static void >ReUpdtPitCmd(void *pvcar) >{ > tCarElt *car = (tCarElt*)pvcar; > > ReUpdtPitTime(car); > > GfuiScreenActivate(ReInfo->raceEngineInfo.gameScreen); >} > >static void >ReRaceMsgUpdate(void) >{ > if (ReInfo->raceEngineInfo.curTime > msgDisp) { > ReSetRaceMsg(""); > } > if (ReInfo->raceEngineInfo.curTime > bigMsgDisp) { > ReSetRaceBigMsg(""); > } >} > >static void >ReRaceMsgSet(char *msg, double life) >{ > ReSetRaceMsg(msg); > msgDisp = ReInfo->raceEngineInfo.curTime + life; >} > > >static void >ReRaceBigMsgSet(char *msg, double life) >{ > ReSetRaceBigMsg(msg); > bigMsgDisp = ReInfo->raceEngineInfo.curTime + life; >} > > >static void >ReManage(tCarElt *car) >{ > int i, pitok; > tTrackSeg *sseg; > tdble wseg; > static float color[] = {0.0, 0.0, 1.0, 1.0}; > tSituation *s = ReInfo->s; > > tReCarInfo *info = &(ReInfo->raceEngineInfo.carInfo[car->index]); > > if (car->pub.DynGC.vel.x > car->race.topSpeed) car->race.topSpeed = car->pub.DynGC.vel.x; > > > if (car->pub.DynGC.vel.x > info->topSpd) info->topSpd = car->pub.DynGC.vel.x; > if (car->pub.DynGC.vel.x < info->botSpd) info->botSpd = car->pub.DynGC.vel.x; > > > if (car->ctrl.raceCmd & 1) { > sprintf(car->ctrl.msg[2], "Can Pit"); > memcpy(car->ctrl.msgColor, color, sizeof(car->ctrl.msgColor)); > } > > if (car->pub.state & 0x00000001) { > car->ctrl.raceCmd &= ~1; > if (car->race.scheduledEventTime < s->currentTime) { > car->pub.state &= ~0x00000001; > sprintf(buf, "%s pit stop %.1fs", car->info.name, info->totalPitTime); > ReRaceMsgSet(buf, 5); > } else { > sprintf(car->ctrl.msg[2], "in pits %.1fs", s->currentTime - info->startPitTime); > } > } else if ((car->race.pit) && (car->ctrl.raceCmd & 1)) { > tdble lgFromStart = car->pub.trkPos.seg->lgfromstart; > > switch (car->pub.trkPos.seg->type) { > case 3: > lgFromStart += car->pub.trkPos.toStart; > break; > default: > lgFromStart += car->pub.trkPos.toStart * car->pub.trkPos.seg->radius; > break; > } > if ((lgFromStart > car->race.pit->lmin) && (lgFromStart < car->race.pit->lmax)) { > pitok = 0; > if (ReInfo->track->pits.side == 1) { > sseg = car->pub.trkPos.seg->rside; > wseg = RtTrackGetWidth(sseg, car->pub.trkPos.toStart); > if (sseg->rside) { > sseg = sseg->rside; > wseg += RtTrackGetWidth(sseg, car->pub.trkPos.toStart); > } > if (((car->pub.trkPos.toRight + wseg) < > (ReInfo->track->pits.width - car->info.dimension.y / 2.0)) && > (fabs(car->pub.DynGC.vel.x) < 1.0) && > (fabs(car->pub.DynGC.vel.y) < 1.0)) { > pitok = 1; > } > } else { > sseg = car->pub.trkPos.seg->lside; > wseg = RtTrackGetWidth(sseg, car->pub.trkPos.toStart); > if (sseg->lside) { > sseg = sseg->lside; > wseg += RtTrackGetWidth(sseg, car->pub.trkPos.toStart); > } > if (((car->pub.trkPos.toLeft + wseg) < > (ReInfo->track->pits.width - car->info.dimension.y / 2.0)) && > (fabs(car->pub.DynGC.vel.x) < 1.0) && > (fabs(car->pub.DynGC.vel.y) < 1.0)) { > pitok = 1; > } > } > if (pitok) { > car->pub.state |= 0x00000001; > car->race.nbPitStops++; > info->startPitTime = s->currentTime; > sprintf(buf, "%s in pits", car->info.name); > ReRaceMsgSet(buf, 5); > if (car->robot->rbPitCmd(car->robot->index, car, s) == 1) { > > ReStop(); > RmPitMenuStart(car, (void*)car, ReUpdtPitCmd); > } else { > ReUpdtPitTime(car); > } > } > } > } > > > if (info->prevTrkPos.seg != car->pub.trkPos.seg) { > if ((info->prevTrkPos.seg->raceInfo & 0x00000001) && (car->pub.trkPos.seg->raceInfo & 0x00000002)) { > if (info->lapFlag == 0) { > if ((car->pub.state & 0x00000100) == 0) { > car->race.laps++; > car->race.remainingLaps--; > if (car->race.laps > 1) { > car->race.lastLapTime = s->currentTime - info->sTime; > car->race.curTime += car->race.lastLapTime; > if (car->race.bestLapTime != 0) { > car->race.deltaBestLapTime = car->race.lastLapTime - car->race.bestLapTime; > } > if ((car->race.lastLapTime < car->race.bestLapTime) || (car->race.bestLapTime == 0)) { > car->race.bestLapTime = car->race.lastLapTime; > } > if (car->race.pos != 1) { > car->race.timeBehindLeader = car->race.curTime - s->cars[0]->race.curTime; > car->race.lapsBehindLeader = s->cars[0]->race.laps - car->race.laps; > car->race.timeBehindPrev = car->race.curTime - s->cars[car->race.pos - 2]->race.curTime; > s->cars[car->race.pos - 2]->race.timeBeforeNext = car->race.timeBehindPrev; > } else { > car->race.timeBehindLeader = 0; > car->race.lapsBehindLeader = 0; > car->race.timeBehindPrev = 0; > } > info->sTime = s->currentTime; > switch (ReInfo->s->raceInfo.type) { > case 0: > if (ReInfo->raceEngineInfo.displayMode == 2) { > ReInfo->raceEngineInfo.refreshDisplay = 1; > sprintf(buf,"lap: %02d time: %s best: %s top spd: %.2f min spd: %.2f dammage: %d", > car->race.laps - 1, GfTime2Str(car->race.lastLapTime, 0), GfTime2Str(car->race.bestLapTime, 0), > info->topSpd * 3.6, info->botSpd * 3.6, car->priv.dammage); > ReResScreenAddText(buf); > } > > ReSavePracticeLap(car); > break; > > case 1: > if (ReInfo->raceEngineInfo.displayMode == 2) { > ReUpdateQualifCurRes(car); > } > break; > } > } else { > if ((ReInfo->raceEngineInfo.displayMode == 2) && (ReInfo->s->raceInfo.type == 1)) { > ReUpdateQualifCurRes(car); > } > } > > info->topSpd = car->pub.DynGC.vel.x; > info->botSpd = car->pub.DynGC.vel.x; > if ((car->race.remainingLaps < 0) || (s->raceInfo.state == 0X00000002)) { > car->pub.state |= 0x00000100; > s->raceInfo.state = 0X00000002; > if (ReInfo->s->raceInfo.type == 2) { > if (car->race.pos == 1) { > sprintf(buf, "Winner %s", car->info.name); > ReRaceBigMsgSet(buf, 10); > } else { > switch (car->race.pos % 10) { > case 1: > sprintf(buf, "%s Finished %dst", car->info.name, car->race.pos); > break; > case 2: > sprintf(buf, "%s Finished %dnd", car->info.name, car->race.pos); > break; > case 3: > sprintf(buf, "%s Finished %drd", car->info.name, car->race.pos); > break; > default: > sprintf(buf, "%s Finished %dth", car->info.name, car->race.pos); > break; > } > ReRaceMsgSet(buf, 5); > } > } > } > } else { > > for (i = 0; i < s->raceInfo.ncars; i++) { > s->cars[i]->pub.state |= 0x00000100; > } > return; > } > } else { > info->lapFlag--; > } > } > if ((info->prevTrkPos.seg->raceInfo & 0x00000002) && (car->pub.trkPos.seg->raceInfo & 0x00000001)) { > > info->lapFlag++; > } > } > ReRaceRules(car); > > info->prevTrkPos = car->pub.trkPos; > car->race.curLapTime = s->currentTime - info->sTime; > car->race.distFromStartLine = car->pub.trkPos.seg->lgfromstart + > (car->pub.trkPos.seg->type == 3 ? car->pub.trkPos.toStart : car->pub.trkPos.toStart * car->pub.trkPos.seg->radius); > car->race.distRaced = (car->race.laps - 1) * ReInfo->track->length + car->race.distFromStartLine; > >} > >static void >ReSortCars(void) >{ > int i,j; > tCarElt *car; > int allfinish; > tSituation *s = ReInfo->s; > > if ((s->cars[0]->pub.state & 0x00000100) == 0) { > allfinish = 0; > } else { > allfinish = 1; > } > > for (i = 1; i < s->raceInfo.ncars; i++) { > j = i; > while (j > 0) { > if ((s->cars[j]->pub.state & 0x00000100) == 0) { > allfinish = 0; > if (s->cars[j]->race.distRaced > s->cars[j-1]->race.distRaced) { > car = s->cars[j]; > s->cars[j] = s->cars[j-1]; > s->cars[j-1] = car; > s->cars[j]->race.pos = j+1; > s->cars[j-1]->race.pos = j; > j--; > continue; > } > } > j = 0; > } > } > if (allfinish) { > ReInfo->s->raceInfo.state = 0X00000004; > } >} > > >static void >ReRaceRules(tCarElt *car) >{ > tCarPenalty *penalty; > tTrack *track = ReInfo->track; > tRmCarRules *rules = &(ReInfo->rules[car->index]); > tTrackSeg *seg = RtTrackGetSeg(&(car->pub.trkPos)); > tReCarInfo *info = &(ReInfo->raceEngineInfo.carInfo[car->index]); > tTrackSeg *prevSeg = RtTrackGetSeg(&(info->prevTrkPos)); > static float color[] = {0.0, 0.0, 1.0, 1.0}; > > if (car->info.skillLevel < 3) { > > return; > } > > penalty = ((&(car->race.penaltyList))->tqh_first); > if (penalty) { > if (car->race.laps > penalty->lapToClear) { > > car->pub.state |= 0x00000800; > return; > } > switch (penalty->penalty) { > case 1: > sprintf(car->ctrl.msg[3], "Drive Through Penalty"); > break; > case 2: > sprintf(car->ctrl.msg[3], "Stop And Go Penalty"); > break; > default: > *(car->ctrl.msg[3]) = 0; > break; > } > memcpy(car->ctrl.msgColor, color, sizeof(car->ctrl.msgColor)); > } > > > if (prevSeg->raceInfo & 0x00000080) { > > if (seg->raceInfo & 0x00000040) { > > if (penalty) { > switch (penalty->penalty) { > case 1: > sprintf(buf, "%s DRIVE THROUGH PENALTY CLEANING", car->info.name); > ReRaceMsgSet(buf, 5); > rules->ruleState |= 0x00000001; > break; > case 2: > sprintf(buf, "%s STOP&GO PENALTY CLEANING", car->info.name); > ReRaceMsgSet(buf, 5); > rules->ruleState |= 0x00000002; > break; > } > } > } > } else if (prevSeg->raceInfo & 0x00000040) { > if (seg->raceInfo & 0x00000040) { > > if (car->pub.state & 0x00000001) { > if (rules->ruleState & 0x00000001) { > > rules->ruleState &= ~0x00000001; > } else if (rules->ruleState & 0x00000002) { > if (car->pitcmd.stopType == 1) { > > rules->ruleState |= 0x00000004; > } else { > > rules->ruleState &= ~0x00000002; > } > } > } > } else if (seg->raceInfo & 0x00000100) { > > if (rules->ruleState & (0x00000001 | 0x00000004)) { > > sprintf(buf, "%s penalty cleared", car->info.name); > ReRaceMsgSet(buf, 5); > penalty = ((&(car->race.penaltyList))->tqh_first); > do { if (((penalty)->link.tqe_next) != __null) (penalty)->link.tqe_next->link.tqe_prev = (penalty)->link.tqe_prev; else (&(car->race.penaltyList))->tqh_last = (penalty)->link.tqe_prev; *(penalty)->link.tqe_prev = (penalty)->link.tqe_next; } while (0); > do { if (penalty) { free(penalty); penalty = 0; } } while (0); > } > rules->ruleState = 0; > } else { > > > if (!(rules->ruleState & 0x00020000)) { > sprintf(buf, "%s STOP&GO PENALTY", car->info.name); > ReRaceMsgSet(buf, 5); > penalty = (tCarPenalty*)calloc(1, sizeof(tCarPenalty)); > penalty->penalty = 2; > penalty->lapToClear = car->race.laps + 5; > do { (penalty)->link.tqe_next = __null; (penalty)->link.tqe_prev = (&(car->race.penaltyList))->tqh_last; *(&(car->race.penaltyList))->tqh_last = (penalty); (&(car->race.penaltyList))->tqh_last = &(penalty)->link.tqe_next; } while (0); > rules->ruleState = 0x00020000; > } > } > } else if (seg->raceInfo & 0x00000100) { > rules->ruleState = 0; > } else if (seg->raceInfo & 0x00000040) { > > > if (!(rules->ruleState & 0x00020000)) { > sprintf(buf, "%s STOP&GO PENALTY", car->info.name); > ReRaceMsgSet(buf, 5); > penalty = (tCarPenalty*)calloc(1, sizeof(tCarPenalty)); > penalty->penalty = 2; > penalty->lapToClear = car->race.laps + 5; > do { (penalty)->link.tqe_next = __null; (penalty)->link.tqe_prev = (&(car->race.penaltyList))->tqh_last; *(&(car->race.penaltyList))->tqh_last = (penalty); (&(car->race.penaltyList))->tqh_last = &(penalty)->link.tqe_next; } while (0); > rules->ruleState = 0x00020000; > } > } > > if (seg->raceInfo & 0x00000008) { > if (!(rules->ruleState & (0x00010000 | 0x00020000)) && (car->pub.DynGC.vel.x > track->pits.speedLimit)) { > sprintf(buf, "%s DRIVE THROUGH PENALTY", car->info.name); > ReRaceMsgSet(buf, 5); > rules->ruleState |= 0x00010000; > penalty = (tCarPenalty*)calloc(1, sizeof(tCarPenalty)); > penalty->penalty = 1; > penalty->lapToClear = car->race.laps + 5; > do { (penalty)->link.tqe_next = __null; (penalty)->link.tqe_prev = (&(car->race.penaltyList))->tqh_last; *(&(car->race.penaltyList))->tqh_last = (penalty); (&(car->race.penaltyList))->tqh_last = &(penalty)->link.tqe_next; } while (0); > } > } > > >} > > >static void >ReOneStep(double deltaTimeIncrement) >{ > int i; > tRobotItf *robot; > tSituation *s = ReInfo->s; > > if (floor(s->currentTime) == -2.0) { > ReRaceBigMsgSet("Ready !", 1.0); > } else if (floor(s->currentTime) == -1.0) { > ReRaceBigMsgSet("Set !", 1.0); > } else if (floor(s->currentTime) == 0.0) { > ReRaceBigMsgSet("Go !", 1.0); > } > > ReInfo->raceEngineInfo.curTime += deltaTimeIncrement * ReInfo->raceEngineInfo.timeMult; > s->currentTime += deltaTimeIncrement; > > if (s->currentTime < 0) { > > ReInfo->s->raceInfo.state = 0X00000010; > } else if (ReInfo->s->raceInfo.state == 0X00000010) { > ReInfo->s->raceInfo.state = 0X00000001; > s->currentTime = 0.0; > ReInfo->raceEngineInfo.lastTime = 0.0; > } > > ; > if ((s->currentTime - ReInfo->raceEngineInfo.lastTime) >= 0.02) { > s->deltaTime = s->currentTime - ReInfo->raceEngineInfo.lastTime; > for (i = 0; i < s->raceInfo.ncars; i++) { > if ((s->cars[i]->pub.state & 0x000000FF) == 0) { > robot = s->cars[i]->robot; > robot->rbDrive(robot->index, s->cars[i], s); > } > } > ReInfo->raceEngineInfo.lastTime = s->currentTime; > } > ; > > ; > ReInfo->raceEngineInfo.itf.simItf.update(s, deltaTimeIncrement, -1); > for (i = 0; i < s->raceInfo.ncars; i++) { > ReManage(s->cars[i]); > } > ; > > ReRaceMsgUpdate(); > ReSortCars(); >} > >void >ReStart(void) >{ > ReInfo->raceEngineInfo.running = 1; > ReInfo->raceEngineInfo.curTime = GfTimeClock() - 0.002; >} > >void >ReStop(void) >{ > ReInfo->raceEngineInfo.running = 0; >} > >static void >reCapture(void) >{ > unsigned char *img; > int sw, sh, vw, vh; > tRmMovieCapture *capture = &(ReInfo->movieCapture); > > GfScrGetSize(&sw, &sh, &vw, &vh); > img = (unsigned char*)malloc(vw * vh * 3); > if (img == __null) { > return; > } > > glPixelStorei(0x0D02, 0); > glPixelStorei(0x0D05, 1); > glReadBuffer(0x0404); > glReadPixels((sw-vw)/2, (sh-vh)/2, vw, vh, 0x1907, 0x1401, (GLvoid*)img); > > sprintf(buf, "%s/torcs-%04.4d-%08.8d.png", capture->outputBase, capture->currentCapture, capture->currentFrame++); > GfImgWritePng(img, buf, vw, vh); > free(img); >} > > >int >ReUpdate(void) >{ > double t; > tRmMovieCapture *capture; > > > ; > ReInfo->raceEngineInfo.refreshDisplay = 0; > switch (ReInfo->raceEngineInfo.displayMode) { > case 0: > t = GfTimeClock(); > > ; > while (ReInfo->raceEngineInfo.running && ((t - ReInfo->raceEngineInfo.curTime) > 0.002)) { > ReOneStep(0.002); > } > ; > > GfuiDisplay(); > ReInfo->raceEngineInfo.itf.graphicItf.refresh(ReInfo->s); > glutPostRedisplay(); > break; > > case 2: > ReOneStep(0.002); > if (ReInfo->raceEngineInfo.refreshDisplay) { > GfuiDisplay(); > } > glutPostRedisplay(); > break; > > case 1: > capture = &(ReInfo->movieCapture); > while ((ReInfo->raceEngineInfo.curTime - capture->lastFrame) < capture->deltaFrame) { > ReOneStep(capture->deltaSimu); > } > capture->lastFrame = ReInfo->raceEngineInfo.curTime; > > GfuiDisplay(); > ReInfo->raceEngineInfo.itf.graphicItf.refresh(ReInfo->s); > reCapture(); > glutPostRedisplay(); > break; > > } > ; > > return 0x00000002; >} > >void >ReTimeMod (void *vcmd) >{ > long cmd = (long)vcmd; > > switch ((int)cmd) { > case 0: > ReInfo->raceEngineInfo.timeMult *= 2.0; > if (ReInfo->raceEngineInfo.timeMult > 64.0) { > ReInfo->raceEngineInfo.timeMult = 64.0; > } > break; > case 1: > ReInfo->raceEngineInfo.timeMult *= 0.5; > if (ReInfo->raceEngineInfo.timeMult < 0.25) { > ReInfo->raceEngineInfo.timeMult = 0.25; > } > break; > case 2: > default: > ReInfo->raceEngineInfo.timeMult = 1.0; > break; > } > sprintf(buf, "Time x%.2f", 1.0 / ReInfo->raceEngineInfo.timeMult); > ReRaceMsgSet(buf, 5); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 61288
: 45061