File: windowhacks.c

package info (click to toggle)
psychtoolbox-3 3.0.9%2Bsvn2579.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 63,408 kB
  • sloc: ansic: 73,310; cpp: 11,139; objc: 3,129; sh: 1,669; python: 382; php: 272; makefile: 172; java: 113
file content (73 lines) | stat: -rw-r--r-- 2,709 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* These are hacks to get the Windows version running - to be replaced by a
   proper solution(TM) soon...
*/

#include "mogltypes.h"

double gluCheckExtension(const GLubyte* a, const GLubyte* b) {
	printf("MOGL-WARNING: gluCheckExtension() called - Unsupported on Windows for now!!!\n");
   return(0);
}

double gluBuild1DMipmapLevels(double a1, double a2, double a3, double a4, double a5, double a6, double a7, double a8, void* a9)
{
	printf( "MOGL-WARNING: gluBuild1DMipmapLevels() called - Unsupported on Windows for now!!!\n");
   return(0);
}
double gluBuild2DMipmapLevels(double a1, double a2, double a3, double a4, double a5, double a6, double a7, double a8, double a9, void* a10)
{
	printf( "MOGL-WARNING: gluBuild2DMipmapLevels() called - Unsupported on Windows for now!!!\n");
   return(0);
}
double gluBuild3DMipmapLevels(double a1, double a2, double a3, double a4, double a5, double a6, double a7, double a8, double a9, double a10, void* a11)
{
	printf( "MOGL-WARNING: gluBuild3DMipmapLevels() called - Unsupported on Windows for now!!!\n");
   return(0);
}
double gluBuild3DMipmaps(double a1, double a2, double a3, double a4, double a5, double a6, double a7, void* a8)
{
	printf( "MOGL-WARNING: gluBuild3DMipmaps() called - Unsupported on Windows for now!!!\n");
   return(0);
}

#ifndef PTBOCTAVE3MEX

double gluUnProject4(double a1, double a2, double a3, double a4, double* a5, double* a6, int* a7, double a8, double a9, double* a10, double* a11, double* a12, double* a13)
{
	printf( "MOGL-WARNING: gluUnproject4() called - Unsupported on Windows for now!!!\n");
   return(0);
}

#ifndef TARGET_OS_WIN32
mxArray* mxCreateNumericMatrix(int m, int n, int class, int complex)
{
/* On Matlab R11 builds, we use int for the dims array.
 * On R2007a and later, we use the defined mwSize type, which
 * will properly adapt to 32-bit on 32-bit builds and 64-bit on
 * 64-bit builds of PTB. The TARGET_OS_WIN32 is only defined on >= R2007a.
 */
#ifndef TARGET_OS_WIN32
 /* R11 build: Legacy int definition: */
 int dims[2];
 dims[0]=m;
 dims[1]=n;
#else
 /* R2007a and later build: Proper 64-bit clean definition: */
 mwSize dims[2];
 dims[0] = (mwSize) m;
 dims[1] = (mwSize) n;
#endif

 return(mxCreateNumericArray(2, dims, class, complex));
}
#endif

#else

GLint APIENTRY gluUnProject4 (GLdouble winX, GLdouble winY, GLdouble winZ, GLdouble clipW, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble nearVal, GLdouble farVal, GLdouble* objX, GLdouble* objY, GLdouble* objZ, GLdouble* objW)
{
	printf( "MOGL-WARNING: gluUnproject4() called - Unsupported on Windows for now!!!\n");
   return(0);
}

#endif