- Timestamp:
- Nov 20, 2004, 3:00:24 PM (20 years ago)
- Location:
- orxonox/trunk/importer
- Files:
-
- 5 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/importer/Makefile.am
r2931 r2932 6 6 7 7 bin_PROGRAMS=importer 8 importer_SOURCES=framework.cc windowHandler.cc object.cc array.cc material.cc8 importer_SOURCES=framework.cc windowHandler.cc vector.cc object.cc array.cc material.cc 9 9 10 noinst_HEADERS=framework.h windowHandler.h object.h array.h material.h10 noinst_HEADERS=framework.h windowHandler.h vector.h object.h array.h material.h 11 11 12 12 -
orxonox/trunk/importer/Makefile.in
r2931 r2932 53 53 PROGRAMS = $(bin_PROGRAMS) 54 54 am_importer_OBJECTS = framework.$(OBJEXT) windowHandler.$(OBJEXT) \ 55 object.$(OBJEXT) array.$(OBJEXT) material.$(OBJEXT) 55 vector.$(OBJEXT) object.$(OBJEXT) array.$(OBJEXT) \ 56 material.$(OBJEXT) 56 57 importer_OBJECTS = $(am_importer_OBJECTS) 57 58 importer_LDADD = $(LDADD) … … 61 62 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/array.Po ./$(DEPDIR)/framework.Po \ 62 63 @AMDEP_TRUE@ ./$(DEPDIR)/material.Po ./$(DEPDIR)/object.Po \ 63 @AMDEP_TRUE@ ./$(DEPDIR)/ windowHandler.Po64 @AMDEP_TRUE@ ./$(DEPDIR)/vector.Po ./$(DEPDIR)/windowHandler.Po 64 65 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 65 66 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) … … 151 152 AM_CXXFLAGS = "-I/usr/X11R6/include" 152 153 AM_LDFLAGS = "-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib -lXt -lX11" $(MWINDOWS) 153 importer_SOURCES = framework.cc windowHandler.cc object.cc array.cc material.cc154 noinst_HEADERS = framework.h windowHandler.h object.h array.h material.h154 importer_SOURCES = framework.cc windowHandler.cc vector.cc object.cc array.cc material.cc 155 noinst_HEADERS = framework.h windowHandler.h vector.h object.h array.h material.h 155 156 all: all-am 156 157 … … 223 224 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/material.Po@am__quote@ 224 225 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/object.Po@am__quote@ 226 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vector.Po@am__quote@ 225 227 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/windowHandler.Po@am__quote@ 226 228 -
orxonox/trunk/importer/framework.cc
r2931 r2932 1 1 #include "framework.h" 2 2 3 int verbose = 1;3 int verbose = 4; 4 4 5 5 void DrawGLScene() … … 82 82 break; 83 83 case SDL_MOUSEBUTTONDOWN: 84 printf("MouseButton %d pressed at (%d,%d).\n", 85 event.button.button, event.button.x, event.button.y); 86 rotatorV = ( 250-event.button.x) / 500.0 /100; 87 84 if (event.button.button == 4) 85 printf("MouseWheel up\n"); 86 else if (event.button.button == 5) 87 printf("MouseWheel down\n"); 88 else 89 { 90 printf("MouseButton %d pressed at (%d,%d).\n", 91 event.button.button, event.button.x, event.button.y); 92 rotatorV = ( 250-event.button.x) / 500.0 /100; 93 } 94 88 95 break; 89 case SDL_MOUSEBUTTONUP:96 /* case SDL_MOUSEBUTTONUP: 90 97 printf("MouseButton %d released at (%d,%d).\n", 91 98 event.button.button, event.button.x, event.button.y); 92 93 94 99 break; 95 100 */ 96 101 // If a quit event was recieved 97 102 case SDL_QUIT: -
orxonox/trunk/importer/framework.h
r2931 r2932 4 4 #include "windowHandler.h" // Include the Whandler Basecode 5 5 #include "object.h" 6 6 #include "vector.h" 7 7 8 8 float rotatorP; -
orxonox/trunk/importer/object.cc
r2931 r2932 442 442 443 443 char* texture; 444 texture = strstr (vertex, "/"); 445 texture[0] = '\0'; 446 texture ++; 447 if (verbose>=3) 448 printf ("includeing texture #%i, and mapping it to group texture #%i, textureArray has %i entries.\n", atoi(texture), (atoi(texture)-1 - currentGroup->firstVertexTexture)*3, currentGroup->vTexture->getCount()); 449 glTexCoord2fv(currentGroup->vTexture->getArray()+(atoi(texture)-1 - currentGroup->firstVertexTexture)*2); 450 451 char* normal; 452 if ((normal = strstr (texture, "/")) !=NULL) 453 { 454 normal[0] = '\0'; 455 normal ++; 456 //glArrayElement(atoi(vertex)-1); 457 glNormal3fv(currentGroup->normals->getArray() +(atoi(normal)-1 - currentGroup->firstNormal)*3); 444 if ((texture = strstr (vertex, "/")) != NULL) 445 { 446 texture[0] = '\0'; 447 texture ++; 448 if (verbose>=3) 449 printf ("includeing texture #%i, and mapping it to group texture #%i, textureArray has %i entries.\n", atoi(texture), (atoi(texture)-1 - currentGroup->firstVertexTexture)*3, currentGroup->vTexture->getCount()); 450 glTexCoord2fv(currentGroup->vTexture->getArray()+(atoi(texture)-1 - currentGroup->firstVertexTexture)*2); 451 452 char* normal; 453 if ((normal = strstr (texture, "/")) !=NULL) 454 { 455 normal[0] = '\0'; 456 normal ++; 457 //glArrayElement(atoi(vertex)-1); 458 glNormal3fv(currentGroup->normals->getArray() +(atoi(normal)-1 - currentGroup->firstNormal)*3); 459 } 458 460 } 459 461 if (verbose>=3)
Note: See TracChangeset
for help on using the changeset viewer.