Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4653 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 18, 2005, 2:44:14 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: still a strange bug in the TYPE-case of the resource manager…
temporarily fixed the importer

Location:
orxonox/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/subprojects/importer/Makefile.am

    r4637 r4653  
    22include $(MAINSRCDIR)/defs/include_paths.am
    33
    4 importer_CPPFLAGS = -DNO_AUDIO
     4importer_CPPFLAGS =
    55
    66importer_LDFLAGS = $(MWINDOWS)
     
    1010importer_LDADD = $(MAINSRCDIR)/lib/event/libORXevent.a \
    1111                 $(MAINSRCDIR)/lib/tinyxml/libtinyxml.a \
     12                 $(MAINSRCDIR)/lib/sound/libORXsound.a \
    1213                 $(MAINSRCDIR)/lib/graphics/importer/libORXimporter.a
    1314
  • orxonox/trunk/src/subprojects/importer/Makefile.in

    r4639 r4653  
    6363importer_DEPENDENCIES = $(MAINSRCDIR)/lib/event/libORXevent.a \
    6464        $(MAINSRCDIR)/lib/tinyxml/libtinyxml.a \
     65        $(MAINSRCDIR)/lib/sound/libORXsound.a \
    6566        $(MAINSRCDIR)/lib/graphics/importer/libORXimporter.a
    6667DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
     
    201202target_vendor = @target_vendor@
    202203MAINSRCDIR = ../..
    203 importer_CPPFLAGS = -DNO_AUDIO
     204importer_CPPFLAGS =
    204205importer_LDFLAGS = $(MWINDOWS)
    205206importer_LDADD = $(MAINSRCDIR)/lib/event/libORXevent.a \
    206207                 $(MAINSRCDIR)/lib/tinyxml/libtinyxml.a \
     208                 $(MAINSRCDIR)/lib/sound/libORXsound.a \
    207209                 $(MAINSRCDIR)/lib/graphics/importer/libORXimporter.a
    208210
  • orxonox/trunk/src/subprojects/importer/importer.cc

    r4649 r4653  
    3232  ResourceManager::getInstance()->addImageDir("./");
    3333
     34  for (int i = 0; i < argc; i++)
     35  {
     36    printf("%s\n", argv[i]);
     37  }
     38  ResourceManager::getInstance()->addImageDir("");
     39
     40
    3441  if (argc>=3)
    3542    obj = new OBJModel (argv[1], atof(argv[2]));
     
    3845  else
    3946    obj = new PrimitiveModel(PRIM_CYLINDER);
     47
     48  ResourceManager::getInstance()->debug();
    4049
    4150  LightManager* lightMan = LightManager::getInstance();
  • orxonox/trunk/src/util/resource_manager.cc

    r4642 r4653  
    129129}
    130130
    131 #ifndef NO_TEXTURE
     131#ifndef NO_TEXTURES
    132132/**
    133133   \brief adds a new Path for Images
     
    223223   tmpType = IMAGE;
    224224#endif /* NO_TEXTURES */
    225 
     225#undef __IF_OK
    226226  return this->load(fileName, tmpType, prio, param1, param2, param3);
    227227}
     
    459459#endif /* NO_TEXTURES */
    460460            default:
    461               PRINTF(1)("NOT YET IMPLEMENTED !!FIX FIX!!\n");
     461              PRINTF(2)("NOT YET IMPLEMENTED !!FIX FIX!!\n");
    462462              return false;
    463463              break;
     
    821821          break;
    822822#endif
     823#ifndef NO_AUDIO
     824        case WAV:
     825          PRINT(0)("SoundFile\n");
     826#endif
    823827        default:
    824           PRINT(0)("SoundFile\n");
     828          PRINT(0)("Do not know this format\n");
    825829          break;
    826830        }
  • orxonox/trunk/src/util/resource_manager.h

    r4637 r4653  
    3434  MD2,                  //!< loading md2-file
    3535#endif /* NO_MODEL */
     36#ifndef NO_TEXT
     37  TTF,                  //!< loading a TrueTypeFont
     38#endif /* NO_TEXT */
    3639#ifndef NO_AUDIO
    3740  WAV,                  //!< loading wav
     
    3942  OGG,                  //!< loading ogg
    4043#endif /* NO_AUDIO */
    41 #ifndef NO_TEXT
    42   TTF,                  //!< loading a TrueTypeFont
    43 #endif /* NO_TEXT */
    4444#ifndef NO_TEXTURES
    4545  IMAGE                 //!< loading an image
Note: See TracChangeset for help on using the changeset viewer.