- Timestamp:
- Mar 4, 2000, 8:10:18 PM (25 years ago)
- Location:
- trunk/src/opengl
- Files:
-
- 1 added
- 9 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/glu/glu32.def
r2689 r2996 1 ;/* $Id: glu32.def,v 1.1 2000-02-09 08:50:55 jeroen Exp $ */ 2 LIBRARY GLU32 INITINSTANCE 1 ;/* $Id: glu32.def,v 1.2 2000-03-04 19:10:12 jeroen Exp $ */ 2 LIBRARY GLU32 INITINSTANCE TERMINSTANCE 3 DESCRIPTION 'OpenGL Utility DLL for Odin OpenGL' 3 4 4 5 DATA MULTIPLE NONSHARED -
trunk/src/opengl/glu/initterm.cpp
r2754 r2996 1 /* $Id: initterm.cpp,v 1. 6 2000-02-11 12:36:39 birdExp $ */1 /* $Id: initterm.cpp,v 1.7 2000-03-04 19:10:12 jeroen Exp $ */ 2 2 3 3 /* … … 31 31 #include <stdio.h> 32 32 #include <string.h> 33 #include < odin.h>33 #include <misc.h> 34 34 #include <win32type.h> 35 35 #include <winconst.h> 36 36 #include <odinlx.h> 37 #include <misc.h> /* PLF Wed 98-03-18 23:18:15 */38 37 39 38 extern "C" { … … 52 51 { 53 52 case DLL_PROCESS_ATTACH: 54 53 return TRUE; 55 54 56 55 case DLL_THREAD_ATTACH: 57 56 case DLL_THREAD_DETACH: 58 57 return TRUE; 59 58 60 59 case DLL_PROCESS_DETACH: 61 62 60 _ctordtorTerm(); 61 return TRUE; 63 62 } 64 63 return FALSE; … … 74 73 /* calling this function. */ 75 74 /****************************************************************************/ 76 unsigned long SYSTEM_DLL_InitTerm(unsigned long hModule, unsigned long75 unsigned long _System _DLL_InitTerm(unsigned long hModule, unsigned long 77 76 ulFlag) 78 77 { 79 size_t i;80 APIRET rc;81 82 78 /*-------------------------------------------------------------------------*/ 83 79 /* If ulFlag is zero then the DLL is being loaded so initialization should */ … … 90 86 _ctordtorInit(); 91 87 92 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/93 94 88 /*******************************************************************/ 95 89 /* A DosExitList routine must be used to clean up if runtime calls */ … … 99 93 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 100 94 return 0UL; 95 96 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ 101 97 102 98 break; -
trunk/src/opengl/glu/nurbs/interface/glsurfeval.cpp
r2689 r2996 1 /* $Id: glsurfeval.cpp,v 1. 1 2000-02-09 08:49:02jeroen Exp $ */1 /* $Id: glsurfeval.cpp,v 1.2 2000-03-04 19:10:13 jeroen Exp $ */ 2 2 /* 3 3 ** License Applicability. Except to the extent portions of this file are … … 37 37 * glsurfeval.c++ 38 38 * 39 * $Date: 2000-0 2-09 08:49:02 $ $Revision: 1.1$40 * $Header: /home/ktk/tmp/odin/2007/netlabs.cvs/odin32/src/opengl/glu/nurbs/interface/glsurfeval.cpp,v 1. 1 2000-02-09 08:49:02jeroen Exp $39 * $Date: 2000-03-04 19:10:13 $ $Revision: 1.2 $ 40 * $Header: /home/ktk/tmp/odin/2007/netlabs.cvs/odin32/src/opengl/glu/nurbs/interface/glsurfeval.cpp,v 1.2 2000-03-04 19:10:13 jeroen Exp $ 41 41 */ 42 42 … … 82 82 extern "C" { void evalVStripExt(int n_left, REAL u_left, REAL* left_val, 83 83 int n_right, REAL u_right, REAL* right_val); 84 84 } 85 85 #endif 86 86 … … 107 107 108 108 for (i=0; i<VERTEX_CACHE_SIZE; i++) { 109 109 vertexCache[i] = new StoredVertex; 110 110 } 111 111 tmeshing = 0; … … 124 124 global_vorder_BV = 0; 125 125 global_baseData = NULL; 126 126 127 127 global_bpm = NULL; 128 128 output_triangles = 0; //don't output triangles by default … … 202 202 #ifdef USE_INTERNAL_EVAL 203 203 inMapGrid2f((int) nu, (REAL) u0, (REAL) u1, (int) nv, 204 204 (REAL) v0, (REAL) v1); 205 205 #else 206 206 207 if(output_triangles) 207 if(output_triangles) 208 208 { 209 209 global_grid_u0 = u0; … … 216 216 else 217 217 glMapGrid2d((GLint) nu, (GLdouble) u0, (GLdouble) u1, (GLint) nv, 218 218 (GLdouble) v0, (GLdouble) v1); 219 219 220 220 #endif … … 229 229 default: 230 230 case N_MESHFILL: 231 232 233 231 232 glPolygonMode((GLenum) GL_FRONT_AND_BACK, (GLenum) GL_FILL); 233 break; 234 234 case N_MESHLINE: 235 236 235 glPolygonMode((GLenum) GL_FRONT_AND_BACK, (GLenum) GL_LINE); 236 break; 237 237 case N_MESHPOINT: 238 239 238 glPolygonMode((GLenum) GL_FRONT_AND_BACK, (GLenum) GL_POINT); 239 break; 240 240 } 241 241 } … … 340 340 { 341 341 if(output_triangles) 342 342 bezierPatchMeshEndStrip(global_bpm); 343 343 else 344 344 glEnd(); … … 350 350 #ifdef USE_INTERNAL_EVAL 351 351 inEvalUStrip(n_upper, v_upper, upper_val, 352 352 n_lower, v_lower, lower_val); 353 353 #else 354 354 355 355 #ifdef FOR_CHRIS 356 356 evalUStripExt(n_upper, v_upper, upper_val, 357 357 n_lower, v_lower, lower_val); 358 358 return; 359 359 … … 402 402 { 403 403 bgntfan(); 404 405 // 404 coord2f(leftMostV[0], leftMostV[1]); 405 // glNormal3fv(leftMostNormal); 406 406 // glVertex3fv(leftMostXYZ); 407 407 408 408 while(j<n_lower){ 409 410 // 411 // 412 409 coord2f(lower_val[j], v_lower); 410 // glNormal3fv(lowerNormal[j]); 411 // glVertex3fv(lowerXYZ[j]); 412 j++; 413 413 414 414 } … … 422 422 { 423 423 bgntfan(); 424 425 // 426 // 427 424 coord2f(leftMostV[0], leftMostV[1]); 425 // glNormal3fv(leftMostNormal); 426 // glVertex3fv(leftMostXYZ); 427 428 428 for(k=n_upper-1; k>=i; k--) /*reverse order for two-side lighting*/ 429 430 431 // 432 // 433 429 { 430 coord2f(upper_val[k], v_upper); 431 // glNormal3fv(upperNormal[k]); 432 // glVertex3fv(upperXYZ[k]); 433 } 434 434 435 435 endtfan(); … … 441 441 if(upper_val[i] <= lower_val[j]) 442 442 { 443 444 445 // 446 // 443 bgntfan(); 444 coord2f(lower_val[j], v_lower); 445 // glNormal3fv(lowerNormal[j]); 446 // glVertex3fv(lowerXYZ[j]); 447 447 448 448 /*find the last k>=i such that … … 463 463 for(l=k; l>=i; l--)/*the reverse is for two-side lighting*/ 464 464 { 465 466 // 467 // 465 coord2f(upper_val[l], v_upper); 466 // glNormal3fv(upperNormal[l]); 467 // glVertex3fv(upperXYZ[l]); 468 468 469 469 } 470 471 // 472 // 470 coord2f(leftMostV[0], leftMostV[1]); 471 // glNormal3fv(leftMostNormal); 472 // glVertex3fv(leftMostXYZ); 473 473 474 474 endtfan(); … … 478 478 i = k+1; 479 479 480 481 482 // 483 // 480 leftMostV[0] = upper_val[k]; 481 leftMostV[1] = v_upper; 482 // leftMostNormal = upperNormal[k]; 483 // leftMostXYZ = upperXYZ[k]; 484 484 } 485 485 else /*upperVerts[i][0] > lowerVerts[j][0]*/ 486 486 { 487 488 489 // 490 // 491 492 487 bgntfan(); 488 coord2f(upper_val[i], v_upper); 489 // glNormal3fv(upperNormal[i]); 490 // glVertex3fv(upperXYZ[i]); 491 492 coord2f(leftMostV[0], leftMostV[1]); 493 493 // glNormal3fv(leftMostNormal); 494 // 495 494 // glVertex3fv(leftMostXYZ); 495 496 496 497 497 /*find the last k>=j such that … … 503 503 if(lower_val[k] >= upper_val[i]) 504 504 break; 505 506 // 507 // 505 coord2f(lower_val[k], v_lower); 506 // glNormal3fv(lowerNormal[k]); 507 // glVertex3fv(lowerXYZ[k]); 508 508 509 509 k++; … … 514 514 */ 515 515 j=k; 516 517 518 519 // 520 // 516 leftMostV[0] = lower_val[j-1]; 517 leftMostV[1] = v_lower; 518 519 // leftMostNormal = lowerNormal[j-1]; 520 // leftMostXYZ = lowerXYZ[j-1]; 521 521 } 522 522 } … … 536 536 { 537 537 #ifdef USE_INTERNAL_EVAL 538 539 538 inEvalVStrip(n_left, u_left, left_val, 539 n_right, u_right, right_val); 540 540 #else 541 541 542 542 #ifdef FOR_CHRIS 543 544 545 543 evalVStripExt(n_left, u_left, left_val, 544 n_right, u_right, right_val); 545 return; 546 546 547 547 #endif … … 588 588 { 589 589 bgntfan(); 590 590 coord2f(botMostV[0], botMostV[1]); 591 591 while(j<n_right){ 592 593 // 594 // 595 592 coord2f(u_right, right_val[j]); 593 // glNormal3fv(rightNormal[j]); 594 // glVertex3fv(rightXYZ[j]); 595 j++; 596 596 597 597 } … … 606 606 bgntfan(); 607 607 coord2f(botMostV[0], botMostV[1]); 608 // 609 // 610 608 // glNormal3fv(botMostNormal); 609 // glVertex3fv(botMostXYZ); 610 611 611 for(k=n_left-1; k>=i; k--) /*reverse order for two-side lighting*/ 612 613 614 // 615 // 616 612 { 613 coord2f(u_left, left_val[k]); 614 // glNormal3fv(leftNormal[k]); 615 // glVertex3fv(leftXYZ[k]); 616 } 617 617 618 618 endtfan(); … … 624 624 if(left_val[i] <= right_val[j]) 625 625 { 626 627 628 // 629 // 626 bgntfan(); 627 coord2f(u_right, right_val[j]); 628 // glNormal3fv(rightNormal[j]); 629 // glVertex3fv(rightXYZ[j]); 630 630 631 631 /*find the last k>=i such that … … 646 646 for(l=k; l>=i; l--)/*the reverse is for two-side lighting*/ 647 647 { 648 649 // 650 // 648 coord2f(u_left, left_val[l]); 649 // glNormal3fv(leftNormal[l]); 650 // glVertex3fv(leftXYZ[l]); 651 651 652 652 } 653 654 // 655 // 653 coord2f(botMostV[0], botMostV[1]); 654 // glNormal3fv(botMostNormal); 655 // glVertex3fv(botMostXYZ); 656 656 657 657 endtfan(); … … 661 661 i = k+1; 662 662 663 664 665 // 666 // 663 botMostV[0] = u_left; 664 botMostV[1] = left_val[k]; 665 // botMostNormal = leftNormal[k]; 666 // botMostXYZ = leftXYZ[k]; 667 667 } 668 668 else /*left_val[i] > right_val[j])*/ 669 669 { 670 671 672 // 673 // 674 675 670 bgntfan(); 671 coord2f(u_left, left_val[i]); 672 // glNormal3fv(leftNormal[i]); 673 // glVertex3fv(leftXYZ[i]); 674 675 coord2f(botMostV[0], botMostV[1]); 676 676 // glNormal3fv(botMostNormal); 677 // 678 677 // glVertex3fv(botMostXYZ); 678 679 679 680 680 /*find the last k>=j such that … … 686 686 if(right_val[k] >= left_val[i]) 687 687 break; 688 689 // 690 // 688 coord2f(u_right, right_val[k]); 689 // glNormal3fv(rightNormal[k]); 690 // glVertex3fv(rightXYZ[k]); 691 691 692 692 k++; … … 697 697 */ 698 698 j=k; 699 700 701 702 // 703 // 699 botMostV[0] = u_right; 700 botMostV[1] = right_val[j-1]; 701 702 // botMostNormal = rightNormal[j-1]; 703 // botMostXYZ = rightXYZ[j-1]; 704 704 } 705 705 } … … 723 723 724 724 #ifdef STATISTICS 725 725 STAT_num_of_quad_strips++; 726 726 #endif 727 727 } … … 750 750 */ 751 751 if(global_bpm != NULL) { 752 753 752 bezierPatchMeshListDelete(global_bpm); 753 global_bpm = NULL; 754 754 } 755 755 756 756 757 757 /* 758 759 760 758 auto_normal_flag = 1; //always output normal in callback mode. 759 //we could have used the following code, 760 //but Inspector doesn't have gl context 761 761 //before it calls tessellator. 762 763 762 //this way is temporary. 763 */ 764 764 //NEWCALLBACK 765 765 //if one of the two normal callback functions are set, 766 766 //then set 767 767 if(normalCallBackN != NULL || 768 769 768 normalCallBackData != NULL) 769 auto_normal_flag = 1; 770 770 else 771 771 auto_normal_flag = 0; 772 772 773 773 //initialize so that no maps initially … … 779 779 /* 780 780 if(glIsEnabled(GL_AUTO_NORMAL) == GL_TRUE) 781 781 auto_normal_flag = 1; 782 782 else if (callback_auto_normal == 1) 783 783 auto_normal_flag = 1; 784 784 else 785 786 785 auto_normal_flag = 0; 786 */ 787 787 788 788 //NEWCALLBACK: no need to worry about gl states when gling clalback … … 793 793 794 794 /*to avoid side effect, we restor the opengl state for GL_POLYGON_MODE 795 */ 795 */ 796 796 glGetIntegerv(GL_POLYGON_MODE, gl_polygon_mode); 797 797 } … … 877 877 OpenGLSurfaceEvaluator::map2f( 878 878 long _type, 879 REAL _ulower, /* u lower domain coord*/880 REAL _uupper, /* u upper domain coord*/881 long _ustride, /* interpoint distance*/882 long _uorder, /* parametric order*/883 REAL _vlower, /* v lower domain coord*/884 REAL _vupper, /* v upper domain coord*/885 long _vstride, /* interpoint distance*/886 long _vorder, /* parametric order*/887 REAL *pts) /* control points*/879 REAL _ulower, /* u lower domain coord */ 880 REAL _uupper, /* u upper domain coord */ 881 long _ustride, /* interpoint distance */ 882 long _uorder, /* parametric order */ 883 REAL _vlower, /* v lower domain coord */ 884 REAL _vupper, /* v upper domain coord */ 885 long _vstride, /* interpoint distance */ 886 long _vorder, /* parametric order */ 887 REAL *pts) /* control points */ 888 888 { 889 889 #ifdef USE_INTERNAL_EVAL 890 890 inMap2f((int) _type, (REAL) _ulower, (REAL) _uupper, 891 892 893 891 (int) _ustride, (int) _uorder, (REAL) _vlower, 892 (REAL) _vupper, (int) _vstride, (int) _vorder, 893 (REAL *) pts); 894 894 #else 895 895 … … 899 899 { 900 900 if(global_bpm == NULL) 901 901 global_bpm = bezierPatchMeshMake2(10,10); 902 902 if( 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 903 (global_bpm->bpatch == NULL && 904 (_type == GL_MAP2_VERTEX_3 || _type == GL_MAP2_VERTEX_4)) 905 || 906 (global_bpm->bpatch_normal == NULL && 907 (_type == GL_MAP2_NORMAL)) 908 || 909 (global_bpm->bpatch_color == NULL && 910 (_type == GL_MAP2_INDEX || _type == GL_MAP2_COLOR_4)) 911 || 912 (global_bpm->bpatch_texcoord == NULL && 913 (_type == GL_MAP2_TEXTURE_COORD_1 || 914 _type == GL_MAP2_TEXTURE_COORD_2 || 915 _type == GL_MAP2_TEXTURE_COORD_3 || 916 _type == GL_MAP2_TEXTURE_COORD_4 ) 917 )) 918 { 919 bezierPatchMeshPutPatch(global_bpm, (int) _type, _ulower, _uupper,(int) _ustride,(int) _uorder,_vlower, _vupper, (int) _vstride, (int) _vorder, pts); 920 } 921 921 else /*new surface patch (with multiple maps) starts*/ 922 923 924 925 926 927 928 929 930 931 932 922 { 923 bezierPatchMesh *temp = bezierPatchMeshMake2(10,10); 924 bezierPatchMeshPutPatch(temp, (int) _type, _ulower, _uupper,(int) _ustride,(int) _uorder,_vlower, _vupper, (int) _vstride, (int) _vorder, pts); 925 global_bpm = bezierPatchMeshListInsert(global_bpm, temp); 926 927 /* 928 global_bpm = bezierPatchMeshListInsert(global_bpm, 929 bezierPatchMeshMake( 930 (int) _type, _ulower, _uupper,(int) _ustride, (int) _uorder, _vlower, _vupper, (int) _vstride, (int) _vorder, pts, 10, 10)); 931 */ 932 } 933 933 } 934 934 else /*not output triangles*/ 935 935 { 936 936 glMap2f((GLenum) _type, (GLfloat) _ulower, (GLfloat) _uupper, 937 938 939 937 (GLint) _ustride, (GLint) _uorder, (GLfloat) _vlower, 938 (GLfloat) _vupper, (GLint) _vstride, (GLint) _vorder, 939 (const GLfloat *) pts); 940 940 } 941 941 … … 990 990 bgnqstrip(); 991 991 for(j=vmax; j>=vmin; j--){ 992 993 994 995 992 REAL v1 = (j == global_grid_nv)? global_grid_v1: (global_grid_v0 +j*dv); 993 994 coord2f(u1, v1); 995 coord2f(u2, v1); 996 996 } 997 997 endqstrip(); … … 1006 1006 bgnqstrip(); 1007 1007 for(j=umax; j>=umin; j--){ 1008 REAL u1 = (j == global_grid_nu)? global_grid_u1: (global_grid_u0 +j*du); 1009 1010 1008 REAL u1 = (j == global_grid_nu)? global_grid_u1: (global_grid_u0 +j*du); 1009 coord2f(u1, v2); 1010 coord2f(u1, v1); 1011 1011 } 1012 1012 endqstrip(); … … 1020 1020 default: 1021 1021 case N_MESHFILL: 1022 1023 1024 1022 glEvalMesh2((GLenum) GL_FILL, (GLint) umin, (GLint) umax, 1023 (GLint) vmin, (GLint) vmax); 1024 break; 1025 1025 case N_MESHLINE: 1026 1027 1028 1026 glEvalMesh2((GLenum) GL_LINE, (GLint) umin, (GLint) umax, 1027 (GLint) vmin, (GLint) vmax); 1028 break; 1029 1029 case N_MESHPOINT: 1030 1031 1032 1030 glEvalMesh2((GLenum) GL_POINT, (GLint) umin, (GLint) umax, 1031 (GLint) vmin, (GLint) vmax); 1032 break; 1033 1033 } 1034 1034 } … … 1037 1037 1038 1038 #ifdef STATISTICS 1039 1039 STAT_num_of_quad_strips += (umax-umin)*(vmax-vmin); 1040 1040 #endif 1041 1041 } … … 1146 1146 if (tmeshing) { 1147 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1148 if (vcount == 2) { 1149 vertexCache[0]->invoke(this); 1150 vertexCache[1]->invoke(this); 1151 point2i( u, v); 1152 1153 } else { 1154 vcount++; 1155 } 1156 1157 vertexCache[which]->saveEvalPoint(u, v); 1158 which = 1 - which; 1159 1159 } else { 1160 1160 point2i( u, v); 1161 1161 } 1162 1162 #endif … … 1172 1172 1173 1173 1174 1175 1176 1174 if (vcount == 2) { 1175 vertexCache[0]->invoke(this); 1176 vertexCache[1]->invoke(this); 1177 1177 coord2f(u,v); 1178 1178 1179 1180 1181 1182 1183 1184 1179 } else { 1180 vcount++; 1181 } 1182 1183 vertexCache[which]->saveEvalCoord(u, v); 1184 which = 1 - which; 1185 1185 } else { 1186 1186 1187 1187 coord2f( u, v); 1188 1188 } 1189 1189 #endif -
trunk/src/opengl/glut/Makefile
r2945 r2996 1 # $Id: Makefile,v 1. 7 2000-02-29 13:56:51 sandervlExp $1 # $Id: Makefile,v 1.8 2000-03-04 19:10:13 jeroen Exp $ 2 2 3 3 # … … 26 26 CFLAGS = -Tdp -I..\mesa\GL -I..\glu $(CFLAGS) -I$(PDWIN32_INCLUDE) -I..\mesa 27 27 CXXFLAGS = -Tdp -I..\mesa\GL -I..\glu $(CXXFLAGS) -I$(PDWIN32_INCLUDE) -I..\mesa 28 29 CFLAGS=$(CFLAGS) -O- 28 30 29 31 TARGET=GLUT32 -
trunk/src/opengl/glut/glut32.rc
r2699 r2996 1 /* $Id: glut32.rc,v 1. 1 2000-02-09 13:44:32 sandervlExp $ */1 /* $Id: glut32.rc,v 1.2 2000-03-04 19:10:14 jeroen Exp $ */ 2 2 3 3 #include "winuser.h" … … 24 24 VALUE "Comments", "Odin32 System Dll\0" 25 25 VALUE "CompanyName", "\0" 26 VALUE "FileDescription", "OpenGL Utility LibraryDLL\0"26 VALUE "FileDescription", "OpenGL Utility Toolkit DLL\0" 27 27 VALUE "FileVersion", "4.00\0" 28 28 VALUE "InternalName", "glut32\0" … … 36 36 BLOCK "VarFileInfo" 37 37 BEGIN 38 38 VALUE "Translation", 0x409, 0x04E4 39 39 END 40 40 END -
trunk/src/opengl/glut/glut_event.c
r2689 r2996 1 /* $Id: glut_event.c,v 1. 2 2000-02-09 08:46:09jeroen Exp $ */1 /* $Id: glut_event.c,v 1.3 2000-03-04 19:10:14 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1997, 1998. */ 3 3 … … 100 100 int __glutWindowDamaged = 0; 101 101 102 void APIENTRY102 void GLAPIENTRY 103 103 glutIdleFunc(GLUTidleCB idleFunc) 104 104 { … … 106 106 } 107 107 108 void APIENTRY108 void GLAPIENTRY 109 109 glutTimerFunc(unsigned int interval, GLUTtimerCB timerFunc, int value) 110 110 { … … 204 204 205 205 /* CENTRY */ 206 void APIENTRY206 void GLAPIENTRY 207 207 glutPostRedisplay(void) 208 208 { … … 214 214 particularly useful when multiple windows need redisplays posted at 215 215 the same times. See also glutPostWindowOverlayRedisplay. */ 216 void APIENTRY216 void GLAPIENTRY 217 217 glutPostWindowRedisplay(int win) 218 218 { … … 1205 1205 __glutSetWindow(window); 1206 1206 1207 window->reshape(window->width, window->height); 1207 /* JvdH: DO NOT REMPVE THE EXPLICIT TYPECAST TO THIS GLAPIENTRY */ 1208 /* FUNCTION, OR THE COMPILER WILL NUKE THE STACK WHEN OPTIMIZING! */ 1209 /* VACPP obviously has a bug, and will adjust the ESP after the */ 1210 /* call, but the callee has already done so!!!! */ 1211 ((GLUTreshapeCB)(window->reshape))(window->width, window->height); 1208 1212 window->forceReshape = False; 1209 1210 #ifdef __WIN32OS2__1211 /* JvdH - 03/02/2000 */1212 /* FIXME: This is a rather stupid hack... */1213 /* The client area appears transparent... */1214 /* By twice swapping the ZORDER the client area is repainted... */1215 /* I'd like a better fix, but for now this seems to work */1216 SetWindowPos(window->win,1217 HWND_BOTTOM,1218 0,0,1219 0,0,1220 SWP_NOMOVE | SWP_NOSIZE);1221 1222 SetWindowPos(window->win,1223 HWND_TOP,1224 0,0,1225 0,0,1226 SWP_NOMOVE | SWP_NOSIZE);1227 #endif1228 1213 1229 1214 /* Setting the redisplay bit on the first reshape is … … 1234 1219 happens to the window. */ 1235 1220 workMask |= GLUT_REDISPLAY_WORK; 1236 } 1237 1221 1222 } 1238 1223 1239 1224 /* The code below is more involved than otherwise necessary … … 1260 1245 if (__glutMesaSwapHackSupport) { 1261 1246 if (window->usedSwapBuffers) { 1247 1262 1248 if ((workMask & (GLUT_REPAIR_WORK | GLUT_REDISPLAY_WORK)) == GLUT_REPAIR_WORK) { 1263 1249 SWAP_BUFFERS_WINDOW(window); … … 1282 1268 } 1283 1269 if (workMask & (GLUT_OVERLAY_REDISPLAY_WORK | GLUT_OVERLAY_REPAIR_WORK)) { 1270 1284 1271 window = __glutWindowList[num]; 1285 1272 if (window && window->overlay && … … 1306 1293 if (!window->overlay && window->usedSwapBuffers) { 1307 1294 if ((workMask & (GLUT_REPAIR_WORK | GLUT_REDISPLAY_WORK)) == GLUT_REPAIR_WORK) { 1295 1308 1296 SWAP_BUFFERS_WINDOW(window); 1309 1297 goto skippedDisplayCallback2; … … 1312 1300 } 1313 1301 /* Render to normal plane (and possibly overlay). */ 1302 1314 1303 __glutWindowDamaged = (workMask & (GLUT_OVERLAY_REPAIR_WORK | GLUT_REPAIR_WORK)); 1315 1304 __glutSetWindow(window); … … 1327 1316 1328 1317 if (workMask & GLUT_FINISH_WORK) { 1318 1329 1319 /* Finish work makes sure a glFinish gets done to indirect 1330 1320 rendering contexts. Indirect contexts tend to have much … … 1342 1332 /* Strip out dummy, finish, and debug work bits. */ 1343 1333 window->workMask &= ~(GLUT_DUMMY_WORK | GLUT_FINISH_WORK | GLUT_DEBUG_WORK); 1334 1335 WriteLog("GLUT32: processWindowWorkList -> will now return!\n"); 1336 1344 1337 if (window->workMask) { 1345 1338 /* Leave on work list. */ … … 1352 1345 1353 1346 /* CENTRY */ 1354 void APIENTRY1347 void GLAPIENTRY 1355 1348 glutMainLoop(void) 1356 1349 { 1350 WriteLog("GLUT32 MainLoop entered\n"); 1357 1351 #if !defined(_WIN32) && !defined(__WIN32OS2__) 1358 1352 if (!__glutDisplay) … … 1363 1357 "main loop entered with no windows created."); 1364 1358 for (;;) { 1359 WriteLog("GLUT32 --> LOOP in!\n"); 1365 1360 if (__glutWindowWorkList) { 1366 1361 GLUTwindow *remainder, *work; … … 1373 1368 *beforeEnd = __glutWindowWorkList; 1374 1369 __glutWindowWorkList = remainder; 1375 1370 } 1376 1371 } 1377 1372 } … … 1382 1377 waitForSomething(); 1383 1378 } else { 1379 WriteLog("Calling processEventsAndTimeouts from #1403\n"); 1384 1380 processEventsAndTimeouts(); 1385 } 1386 } 1387 } 1381 WriteLog("processEventsAndTimeouts from #1403 returned!\n"); 1382 } 1383 } 1384 } 1385 1386 WriteLog("MainLoop ended... ???\n"); 1388 1387 } 1389 1388 /* ENDCENTRY */ -
trunk/src/opengl/glut/glut_get.c
r2689 r2996 1 /* $Id: glut_get.c,v 1. 2 2000-02-09 08:46:12jeroen Exp $ */1 /* $Id: glut_get.c,v 1.3 2000-03-04 19:10:14 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997, 1998. */ 3 3 … … 11 11 12 12 /* CENTRY */ 13 int APIENTRY13 int GLAPIENTRY 14 14 glutGet(GLenum param) 15 15 { -
trunk/src/opengl/glut/glut_init.c
r2689 r2996 1 /* $Id: glut_init.c,v 1. 2 2000-02-09 08:46:13jeroen Exp $ */1 /* $Id: glut_init.c,v 1.3 2000-03-04 19:10:15 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 … … 16 16 17 17 #if defined(__WIN32OS2__) 18 #include <windows.h> 18 19 #include "winconst.h" 20 #include "GL\gl.h" 19 21 #undef WH_NB_HOOKS /* Get rid of copiler warning... */ 20 22 #endif … … 199 201 glutInit(int *argcp, char **argv) 200 202 { 203 dprintf(("GLUT32: glutInit()\n")); 204 201 205 char *display = NULL; 202 206 char *str, *geometry = NULL; … … 373 377 glutInitDisplayMode(unsigned int mask) 374 378 { 379 dprintf(("GLUT32: glutInitDisplayMode()\n")); 375 380 __glutDisplayMode = mask; 376 381 } -
trunk/src/opengl/glut/glut_overlay.c
r2689 r2996 1 /* $Id: glut_overlay.c,v 1. 2 2000-02-09 08:46:15 jeroen Exp $ */1 /* $Id: glut_overlay.c,v 1.3 2000-03-04 19:10:15 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1996, 1997. */ 3 3 … … 26 26 #include "layerutil.h" 27 27 28 #if defined(__WIN32OS2__)29 #include "wgl.h"30 #endif28 //#if defined(__WIN32OS2__) 29 //#include "wgl.h" 30 //#endif 31 31 32 32 static Criterion requiredOverlayCriteria[] = -
trunk/src/opengl/glut/glut_term.c
r2689 r2996 1 /* $Id: glut_term.c,v 1. 1 2000-02-09 08:46:18jeroen Exp $ */1 /* $Id: glut_term.c,v 1.2 2000-03-04 19:10:15 jeroen Exp $ */ 2 2 /* 3 3 * GLUT Termination - on exit cleanup any open windows … … 11 11 12 12 13 ODINDEBUGCHANNEL (GLUT32-MAIN) 14 15 ODINFUNCTION3(BOOL, Glut32LibMain, HINSTANCE, hinstDLL, 16 DWORD, fdwReason, 17 LPVOID, ImpLoad) 13 void CDECL Glut32Terminate(void) 18 14 { 19 if(fdwReason==DLL_PROCESS_DETACH)20 {21 15 /* Our app has ended - close all the open windows! */ 22 16 dprintf(("GLUT internal cleanup - numwins %d\n",__glutWindowListSize)); … … 30 24 } 31 25 } 32 }33 34 return TRUE;35 26 } -
trunk/src/opengl/glut/glut_win.c
r2689 r2996 1 /* $Id: glut_win.c,v 1. 2 2000-02-09 08:46:19jeroen Exp $ */1 /* $Id: glut_win.c,v 1.3 2000-03-04 19:10:16 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 … … 17 17 #include "glutint.h" 18 18 19 #if defined(__WIN32OS2__)20 #include "wgl.h"21 #endif19 //#if defined(__WIN32OS2__) 20 //#include "wgl.h" 21 //#endif 22 22 23 23 GLUTwindow *__glutCurrentWindow = NULL; … … 131 131 132 132 /* CENTRY */ 133 int APIENTRY133 int GLAPIENTRY 134 134 glutGetWindow(void) 135 135 { … … 178 178 179 179 /* CENTRY */ 180 void APIENTRY180 void GLAPIENTRY 181 181 glutSetWindow(int win) 182 182 { … … 403 403 } 404 404 405 void APIENTRY405 void GLAPIENTRY 406 406 __glutDefaultDisplay(void) 407 407 { … … 413 413 } 414 414 415 void APIENTRY415 void GLAPIENTRY 416 416 __glutDefaultReshape(int width, int height) 417 417 { … … 718 718 719 719 /* CENTRY */ 720 int APIENTRY720 int GLAPIENTRY 721 721 glutCreateWindow(const char *title) 722 722 { … … 768 768 } 769 769 770 int APIENTRY770 int GLAPIENTRY 771 771 glutCreateSubWindow(int win, int x, int y, int width, int height) 772 772 { … … 860 860 861 861 /* CENTRY */ 862 void APIENTRY862 void GLAPIENTRY 863 863 glutDestroyWindow(int win) 864 864 { … … 903 903 } 904 904 905 void APIENTRY905 void GLAPIENTRY 906 906 glutDisplayFunc(GLUTdisplayCB displayFunc) 907 907 { … … 912 912 } 913 913 914 void APIENTRY914 void GLAPIENTRY 915 915 glutMouseFunc(GLUTmouseCB mouseFunc) 916 916 { … … 934 934 } 935 935 936 void APIENTRY936 void GLAPIENTRY 937 937 glutMotionFunc(GLUTmotionCB motionFunc) 938 938 { … … 965 965 } 966 966 967 void APIENTRY967 void GLAPIENTRY 968 968 glutPassiveMotionFunc(GLUTpassiveCB passiveMotionFunc) 969 969 { … … 980 980 } 981 981 982 void APIENTRY982 void GLAPIENTRY 983 983 glutEntryFunc(GLUTentryCB entryFunc) 984 984 { … … 991 991 } 992 992 993 void APIENTRY993 void GLAPIENTRY 994 994 glutWindowStatusFunc(GLUTwindowStatusCB windowStatusFunc) 995 995 { … … 1003 1003 } 1004 1004 1005 static void 1006 #ifdef __WIN32OS2__ 1007 _Optlink 1008 #endif 1005 static void GLAPIENTRY 1009 1006 visibilityHelper(int status) 1010 1007 { … … 1015 1012 } 1016 1013 1017 void APIENTRY1014 void GLAPIENTRY 1018 1015 glutVisibilityFunc(GLUTvisibilityCB visibilityFunc) 1019 1016 { … … 1025 1022 } 1026 1023 1027 void APIENTRY1024 void GLAPIENTRY 1028 1025 glutReshapeFunc(GLUTreshapeCB reshapeFunc) 1029 1026 { 1027 WriteLog("GLUT32: Setting reshapeFunc to @%08X\n",reshapeFunc); 1030 1028 if (reshapeFunc) { 1031 1029 __glutCurrentWindow->reshape = reshapeFunc; -
trunk/src/opengl/glut/glut_winmisc.c
r2689 r2996 1 /* $Id: glut_winmisc.c,v 1. 2 2000-02-09 08:46:19jeroen Exp $ */1 /* $Id: glut_winmisc.c,v 1.3 2000-03-04 19:10:16 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 … … 20 20 21 21 /* CENTRY */ 22 void APIENTRY22 void GLAPIENTRY 23 23 glutSetWindowTitle(const char *title) 24 24 { … … 37 37 } 38 38 39 void APIENTRY39 void GLAPIENTRY 40 40 glutSetIconTitle(const char *title) 41 41 { … … 53 53 } 54 54 55 void APIENTRY55 void GLAPIENTRY 56 56 glutPositionWindow(int x, int y) 57 57 { … … 63 63 } 64 64 65 void APIENTRY65 void GLAPIENTRY 66 66 glutReshapeWindow(int w, int h) 67 67 { 68 WriteLog("glutReshapeWindow (glut_winmisc)\n"); 68 69 IGNORE_IN_GAME_MODE(); 69 70 if (w <= 0 || h <= 0) … … 76 77 } 77 78 78 void APIENTRY79 void GLAPIENTRY 79 80 glutPopWindow(void) 80 81 { … … 85 86 } 86 87 87 void APIENTRY88 void GLAPIENTRY 88 89 glutPushWindow(void) 89 90 { … … 94 95 } 95 96 96 void APIENTRY97 void GLAPIENTRY 97 98 glutIconifyWindow(void) 98 99 { … … 103 104 } 104 105 105 void APIENTRY106 void GLAPIENTRY 106 107 glutShowWindow(void) 107 108 { … … 111 112 } 112 113 113 void APIENTRY114 void GLAPIENTRY 114 115 glutHideWindow(void) 115 116 { -
trunk/src/opengl/glut/glutint.h
r2689 r2996 1 /* $Id: glutint.h,v 1. 2 2000-02-09 08:46:19jeroen Exp $ */1 /* $Id: glutint.h,v 1.3 2000-03-04 19:10:16 jeroen Exp $ */ 2 2 #ifndef __glutint_h__ 3 3 #define __glutint_h__ … … 253 253 254 254 /* GLUT function types */ 255 typedef void (* APIENTRY GLUTdisplayCB) (void);256 typedef void (* APIENTRY GLUTreshapeCB) (int, int);257 typedef void (* APIENTRY GLUTkeyboardCB) (unsigned char, int, int);258 typedef void (* APIENTRY GLUTmouseCB) (int, int, int, int);259 typedef void (* APIENTRY GLUTmotionCB) (int, int);260 typedef void (* APIENTRY GLUTpassiveCB) (int, int);261 typedef void (* APIENTRY GLUTentryCB) (int);262 typedef void (* APIENTRY GLUTvisibilityCB) (int);263 typedef void (* APIENTRY GLUTwindowStatusCB) (int);264 typedef void (* APIENTRY GLUTidleCB) (void);265 typedef void (* APIENTRY GLUTtimerCB) (int);266 typedef void (* APIENTRY GLUTmenuStateCB) (int);/* DEPRICATED. */267 typedef void (* APIENTRY GLUTmenuStatusCB) (int, int, int);268 typedef void (* APIENTRY GLUTselectCB) (int);269 typedef void (* APIENTRY GLUTspecialCB) (int, int, int);270 typedef void (* APIENTRY GLUTspaceMotionCB) (int, int, int);271 typedef void (* APIENTRY GLUTspaceRotateCB) (int, int, int);272 typedef void (* APIENTRY GLUTspaceButtonCB) (int, int);273 typedef void (* APIENTRY GLUTdialsCB) (int, int);274 typedef void (* APIENTRY GLUTbuttonBoxCB) (int, int);275 typedef void (* APIENTRY GLUTtabletMotionCB) (int, int);276 typedef void (* APIENTRY GLUTtabletButtonCB) (int, int, int, int);277 typedef void (* APIENTRY GLUTjoystickCB) (unsigned int buttonMask, int x, int y, int z);255 typedef void (* GLAPIENTRY GLUTdisplayCB) (void); 256 typedef void (* GLAPIENTRY GLUTreshapeCB) (int, int); 257 typedef void (* GLAPIENTRY GLUTkeyboardCB) (unsigned char, int, int); 258 typedef void (* GLAPIENTRY GLUTmouseCB) (int, int, int, int); 259 typedef void (* GLAPIENTRY GLUTmotionCB) (int, int); 260 typedef void (* GLAPIENTRY GLUTpassiveCB) (int, int); 261 typedef void (* GLAPIENTRY GLUTentryCB) (int); 262 typedef void (* GLAPIENTRY GLUTvisibilityCB) (int); 263 typedef void (* GLAPIENTRY GLUTwindowStatusCB) (int); 264 typedef void (* GLAPIENTRY GLUTidleCB) (void); 265 typedef void (* GLAPIENTRY GLUTtimerCB) (int); 266 typedef void (* GLAPIENTRY GLUTmenuStateCB) (int); /* DEPRICATED. */ 267 typedef void (* GLAPIENTRY GLUTmenuStatusCB) (int, int, int); 268 typedef void (* GLAPIENTRY GLUTselectCB) (int); 269 typedef void (* GLAPIENTRY GLUTspecialCB) (int, int, int); 270 typedef void (* GLAPIENTRY GLUTspaceMotionCB) (int, int, int); 271 typedef void (* GLAPIENTRY GLUTspaceRotateCB) (int, int, int); 272 typedef void (* GLAPIENTRY GLUTspaceButtonCB) (int, int); 273 typedef void (* GLAPIENTRY GLUTdialsCB) (int, int); 274 typedef void (* GLAPIENTRY GLUTbuttonBoxCB) (int, int); 275 typedef void (* GLAPIENTRY GLUTtabletMotionCB) (int, int); 276 typedef void (* GLAPIENTRY GLUTtabletButtonCB) (int, int, int, int); 277 typedef void (* GLAPIENTRY GLUTjoystickCB) (unsigned int buttonMask, int x, int y, int z); 278 278 #ifdef SUPPORT_FORTRAN 279 279 typedef void (*GLUTdisplayFCB) (void); … … 664 664 extern GLUTmenuItem *__glutItemSelected; 665 665 extern GLUTmenu **__glutMenuList; 666 extern void (* APIENTRY __glutMenuStatusFunc) (int, int, int);666 extern void (* GLAPIENTRY __glutMenuStatusFunc) (int, int, int); 667 667 extern void __glutMenuModificationError(void); 668 668 extern void __glutSetMenuItem(GLUTmenuItem * item, … … 746 746 extern void __glutReshapeFunc(GLUTreshapeCB reshapeFunc, 747 747 int callingConvention); 748 extern void APIENTRY __glutDefaultReshape(int, int);748 extern void GLAPIENTRY __glutDefaultReshape(int, int); 749 749 extern GLUTwindow *__glutCreateWindow( 750 750 GLUTwindow * parent, -
trunk/src/opengl/glut/initterm.cpp
r2756 r2996 1 /* $Id: initterm.cpp,v 1. 7 2000-02-11 13:29:29 birdExp $ */1 /* $Id: initterm.cpp,v 1.8 2000-03-04 19:10:16 jeroen Exp $ */ 2 2 3 3 /* … … 31 31 #include <stdio.h> 32 32 #include <string.h> 33 #include < odin.h>33 #include <misc.h> 34 34 #include <win32type.h> 35 35 #include <winconst.h> 36 36 #include <odinlx.h> 37 #include <misc.h> /* PLF Wed 98-03-18 23:18:15 */38 37 39 38 … … 46 45 } 47 46 48 BOOL WINAPI Glut32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID ImpLoad);47 void CDECL Glut32Terminate(void); 49 48 50 //* *****************************************************************************51 //* *****************************************************************************49 //* ******************************************************************************/ 50 //* ******************************************************************************/ 52 51 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) 53 52 { 54 53 switch (fdwReason) 55 54 { 56 case DLL_PROCESS_ATTACH:57 case DLL_THREAD_ATTACH:58 case DLL_THREAD_DETACH:59 return Glut32LibMain(hinstDLL, fdwReason, fImpLoad);55 case DLL_PROCESS_ATTACH: 56 case DLL_THREAD_ATTACH: 57 case DLL_THREAD_DETACH: 58 return TRUE; 60 59 61 case DLL_PROCESS_DETACH:62 Glut32LibMain(hinstDLL, fdwReason, fImpLoad);63 64 60 case DLL_PROCESS_DETACH: 61 Glut32Terminate(); 62 _ctordtorTerm(); 63 return TRUE; 65 64 } 66 65 return FALSE; … … 76 75 /* calling this function. */ 77 76 /****************************************************************************/ 78 unsigned long SYSTEM_DLL_InitTerm(unsigned long hModule, unsigned long77 unsigned long _System _DLL_InitTerm(unsigned long hModule, unsigned long 79 78 ulFlag) 80 79 { 81 size_t i;82 APIRET rc;83 84 80 /*-------------------------------------------------------------------------*/ 85 81 /* If ulFlag is zero then the DLL is being loaded so initialization should */ … … 92 88 _ctordtorInit(); 93 89 94 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/95 96 90 /*******************************************************************/ 97 91 /* A DosExitList routine must be used to clean up if runtime calls */ … … 101 95 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 102 96 return 0UL; 97 98 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ 103 99 104 100 break; … … 117 113 return 1UL; 118 114 } 119 //* *****************************************************************************120 //* *****************************************************************************115 //* ******************************************************************************/ 116 //* ******************************************************************************/ -
trunk/src/opengl/glut/win32_glx.c
r2689 r2996 1 /* $Id: win32_glx.c,v 1. 2 2000-02-09 08:46:22jeroen Exp $ */1 /* $Id: win32_glx.c,v 1.3 2000-03-04 19:10:16 jeroen Exp $ */ 2 2 /* Copyright (c) Nate Robins, 1997. */ 3 3 … … 9 9 #if defined(__WIN32OS2__) 10 10 #include "os2_glx.h" 11 #include "wgl.h"11 //#include "wgl.h" 12 12 #include "pfddefs.h" 13 13 #include <memory.h> -
trunk/src/opengl/glut/win32_winproc.c
r2689 r2996 1 /* $Id: win32_winproc.c,v 1. 2 2000-02-09 08:46:23jeroen Exp $ */1 /* $Id: win32_winproc.c,v 1.3 2000-03-04 19:10:17 jeroen Exp $ */ 2 2 /* Copyright (c) Nate Robins, 1997. */ 3 3 /* portions Copyright (c) Mark Kilgard, 1997, 1998. */ … … 10 10 #include "glutint.h" 11 11 #if defined(__WIN32OS2__) 12 #include "wgl.h"12 //#include "wgl.h" 13 13 #include <ctype.h> 14 14 #endif … … 90 90 #endif 91 91 case WM_PAINT: 92 dprintf(("GLUT32: WM_PAINT processing...\n"));93 92 window = __glutGetWindow(hwnd); 94 93 if (window) { 94 /* 95 95 #ifndef __WIN32OS2__ 96 BeginPaint(hwnd, &ps); /* Must have this for some Win32 reason.*/96 BeginPaint(hwnd, &ps); 97 97 EndPaint(hwnd, &ps); 98 #endif 98 #endif */ 99 99 if (window->win == hwnd) { 100 100 __glutPostRedisplay(window, GLUT_REPAIR_WORK); … … 314 314 handleDelete: 315 315 /* Delete is an ASCII character. */ 316 dprintf(("VK_DELETE - wParam is %d\n",wParam));317 316 key=(unsigned char)127; 318 317 break; … … 356 355 if(fSendKeyStroke) 357 356 { 358 dprintf(("Sending keystroke %d...\n",key));359 360 357 GetCursorPos(&point); 361 358 ScreenToClient(window->win, &point); … … 390 387 /* TODO: take this out once the menu on middle mouse stuff works 391 388 properly. */ 389 /* 392 390 if (button == GLUT_MIDDLE_BUTTON) 393 return 0; 391 return 0;*/ 394 392 GetCursorPos(&point); 395 393 ScreenToClient(hwnd, &point); … … 613 611 614 612 case WM_SIZE: 615 dprintf(("GLUT32: Handling WM_SIZE..."));616 613 window = __glutGetWindow(hwnd); 617 614 if (window) { … … 619 616 height = HIWORD(lParam); 620 617 if (width != window->width || height != window->height) { 621 #if 0 /* Win32 GLUT does not support overlays for now.*/618 #if 0 /* Win32 GLUT does not support overlays for now.*/ 622 619 if (window->overlay) { 623 620 XResizeWindow(__glutDisplay, window->overlay->win, width, height); … … 630 627 to the SetWindowPos request! */ 631 628 GdiFlush(); 632 window->reshape(width, height);629 ((GLUTreshapeCB)(window->reshape))(width, height); 633 630 window->forceReshape = FALSE; 634 631 /* A reshape should be considered like posting a 635 632 repair request. */ 636 dprintf(("GLUT32: WM_SIZE processing -> GLUT_REPAIR_WORK\n"));637 633 __glutPostRedisplay(window, GLUT_REPAIR_WORK); 638 634 } 639 635 } 640 dprintf(("GLUT32: Handled WM_SIZE..."));641 636 return 0; 642 637 -
trunk/src/opengl/makefile
r2961 r2996 1 # $Id: makefile,v 1.1 3 2000-03-01 14:50:16 sandervlExp $1 # $Id: makefile,v 1.14 2000-03-04 19:10:09 jeroen Exp $ 2 2 # 3 3 # PD-Win32 API … … 25 25 !endif 26 26 27 TARGET1 = opengl3228 DTARGET1 = opengl3227 #TARGET1 = opengl32 28 #DTARGET1 = opengl32 29 29 TARGET2 = glu\glu32 30 30 DTARGET2 = glu32 … … 37 37 TARGET6 = 3dfxmesa 38 38 39 OBJS1= opengl32.obj initterm.obj resource.obj39 #OBJS1= opengl32.obj initterm.obj resource.obj 40 40 41 41 #all: $(TARGET1).dll $(TARGET1).lib \ … … 43 43 $(TARGET3).dll $(TARGET3).lib $(TARGET4) $(TARGET6) 44 44 45 $(TARGET1).dll: $(OBJS1) $(TARGET1).def46 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS1) $(TARGET1).def \47 $(PDWIN32_LIB)/gdi32.lib $(PDWIN32_LIB)/kernel32.lib \48 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \49 OS2386.LIB $(RTLLIB_O)50 $(CP) $@ $(PDWIN32_BIN)45 #$(TARGET1).dll: $(OBJS1) $(TARGET1).def 46 # $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS1) $(TARGET1).def \ 47 # $(PDWIN32_LIB)/gdi32.lib $(PDWIN32_LIB)/kernel32.lib \ 48 # $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \ 49 # OS2386.LIB $(RTLLIB_O) 50 # $(CP) $@ $(PDWIN32_BIN) 51 51 52 52 53 $(TARGET1).lib: $(TARGET1)exp.def54 $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET1)exp.def55 $(CP) $@ $(PDWIN32_LIB)53 #$(TARGET1).lib: $(TARGET1)exp.def 54 # $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET1)exp.def 55 # $(CP) $@ $(PDWIN32_LIB) 56 56 57 $(TARGET1)exp.def: $(TARGET1).def58 $(IMPDEF) $** $@57 #$(TARGET1)exp.def: $(TARGET1).def 58 # $(IMPDEF) $** $@ 59 59 60 60 61 resource.asm: $(TARGET1).rc62 $(RC) $(RCFLAGS) -o resource.asm $(TARGET1).rc61 #resource.asm: $(TARGET1).rc 62 # $(RC) $(RCFLAGS) -o resource.asm $(TARGET1).rc 63 63 64 64 … … 101 101 cd ..\.. 102 102 103 lib: $(TARGET1).lib $(PDWIN32_LIB)\$(DTARGET1).lib \104 103 #lib: $(TARGET1).lib $(PDWIN32_LIB)\$(DTARGET1).lib \ 104 lib: $(TARGET2).lib $(PDWIN32_LIB)\$(DTARGET2).lib \ 105 105 $(TARGET3).lib $(PDWIN32_LIB)\$(DTARGET3).lib \ 106 106 $(PDWIN32_LIB)\$(DTARGET4).lib \ 107 $(PDWIN32_LIB)\$(DTARGET5).lib 107 $(PDWIN32_LIB)\$(DTARGET5).lib 108 108 109 $(PDWIN32_LIB)\$(DTARGET1).lib: $(TARGET1).lib110 $(CP) $** $@109 #$(PDWIN32_LIB)\$(DTARGET1).lib: $(TARGET1).lib 110 # $(CP) $** $@ 111 111 112 112 $(PDWIN32_LIB)\$(DTARGET2).lib: $(TARGET2).lib … … 147 147 148 148 clean: 149 $(RM) *.obj *.lib *.dll *.map resource.asm *exp.def \ 150 $(RM) $(PDWIN32_BIN)\$(TARGET1).dll $(PDWIN32_LIB)\$(TARGET1).lib 149 $(RM) *.obj *.lib *.dll *.map resource.asm *exp.def 151 150 cd glut 152 151 $(MAKE_CMD) clean -
trunk/src/opengl/mesa/makefile
r2962 r2996 1 # $Id: makefile,v 1. 3 2000-03-01 18:49:31jeroen Exp $1 # $Id: makefile,v 1.4 2000-03-04 19:10:17 jeroen Exp $ 2 2 # 3 3 # PD-Win32 … … 26 26 27 27 all: $(TARGET).DLL $(TARGET).LIB 28 29 lib: $(TARGET).lib 28 30 29 31 OBJS = \
Note:
See TracChangeset
for help on using the changeset viewer.