Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6222 in orxonox.OLD for trunk/src/subprojects/importer


Ignore:
Timestamp:
Dec 21, 2005, 1:49:06 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the christmas branche to the trunk
merged with command:
svn merge -r6165:HEAD christmas_branche/ ../trunk/
no conflicts

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      Makefile.in
      Makefile
      configure
      *.kdevelop
      Doxyfile
      config.log
      config.h
      config.status
      stamp-h1
      autom4te.cache
      aclocal.m4
  • trunk/src

    • Property svn:ignore set to
      .deps
      orxonox
      Makefile
      Makefile.in

  • trunk/src/subprojects

    • Property svn:ignore set to
      Makefile
      Makefile.in
      .deps

  • trunk/src/subprojects/importer

    • Property svn:ignore set to
      Makefile
      Makefile.in
      .deps
      importer
      multitex

  • trunk/src/subprojects/importer/Makefile.am

    r5865 r6222  
    2424                  $(MAINSRCDIR)/lib/math/vector.cc \
    2525                  $(MAINSRCDIR)/util/loading/resource_manager.cc \
    26                   $(MAINSRCDIR)/lib/util/ini_parser.cc \
     26                  $(MAINSRCDIR)/lib/parser/ini_parser/ini_parser.cc \
    2727                  $(MAINSRCDIR)/lib/coord/p_node.cc \
    28                   $(MAINSRCDIR)/lib/coord/null_parent.cc \
    2928                  $(MAINSRCDIR)/util/loading/load_param.cc \
    3029                  $(MAINSRCDIR)/util/loading/load_param_description.cc \
     
    5251                  $(MAINSRCDIR)/lib/math/vector.cc \
    5352                  $(MAINSRCDIR)/util/loading/resource_manager.cc \
    54                   $(MAINSRCDIR)/lib/util/ini_parser.cc \
     53                  $(MAINSRCDIR)/lib/parser/ini_parser/ini_parser.cc \
    5554                  $(MAINSRCDIR)/lib/coord/p_node.cc \
    56                   $(MAINSRCDIR)/lib/coord/null_parent.cc \
    5755                  $(MAINSRCDIR)/util/loading/load_param.cc \
    5856                  $(MAINSRCDIR)/util/loading/load_param_description.cc \
  • trunk/src/subprojects/importer/importer.cc

    r4741 r6222  
    2121
    2222#include "objModel.h"
     23#include "md2Model.h"
    2324#include "primitive_model.h"
    2425#include <stdlib.h>
     
    4041
    4142  if (argc>=3)
    42     obj = new OBJModel (argv[1], atof(argv[2]));
     43  {
     44    if( strstr(argv[1], ".obj") != NULL)
     45      obj = new OBJModel (argv[1], atof(argv[2]));
     46    else if( strstr(argv[1], ".md2") != NULL)
     47    {
     48      obj = new MD2Model(argv[1], argv[2]);
     49      ((MD2Model*)obj)->tick(0.1f);
     50    }
     51  }
    4352  else if (argc>=2)
    44     obj = new OBJModel(argv[1]);
     53  {
     54    if( strstr(argv[1], ".obj") != NULL)
     55      obj = new OBJModel(argv[1]);
     56    else if( strstr(argv[1], ".md2") != NULL) {
     57      obj = new MD2Model(argv[1], "fake_texture.bad");
     58      obj = new MD2Model(argv[1], argv[2]);
     59      ((MD2Model*)obj)->tick(0.1f);
     60    }
     61  }
    4562  else
    4663    obj = new PrimitiveModel(PRIM_CYLINDER);
Note: See TracChangeset for help on using the changeset viewer.