Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4078 in orxonox.OLD for orxonox/branches/md2_loader/src/lib


Ignore:
Timestamp:
May 6, 2005, 11:46:20 AM (20 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: fixed some compile errors, altered some variable names, automake now works and did update Makefile.in :)

Location:
orxonox/branches/md2_loader/src/lib/graphics/importer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/lib/graphics/importer/Makefile.in

    r4063 r4078  
    4242subdir = src/lib/graphics/importer
    4343DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
    44         $(srcdir)/Makefile.in
     44        $(srcdir)/Makefile.in TODO
    4545ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    4646am__aclocal_m4_deps = $(top_srcdir)/configure.ac
     
    5454PROGRAMS = $(bin_PROGRAMS)
    5555am_importer_OBJECTS = framework.$(OBJEXT) windowHandler.$(OBJEXT) \
    56         model.$(OBJEXT) objModel.$(OBJEXT) primitive_model.$(OBJEXT) \
    57         array.$(OBJEXT) material.$(OBJEXT) texture.$(OBJEXT) \
    58         graphics_engine.$(OBJEXT) base_object.$(OBJEXT) \
    59         vector.$(OBJEXT) resource_manager.$(OBJEXT) \
    60         text_engine.$(OBJEXT) p_node.$(OBJEXT) null_parent.$(OBJEXT)
     56        model.$(OBJEXT) objModel.$(OBJEXT) md2Model.$(OBJEXT) \
     57        primitive_model.$(OBJEXT) array.$(OBJEXT) material.$(OBJEXT) \
     58        texture.$(OBJEXT) graphics_engine.$(OBJEXT) \
     59        base_object.$(OBJEXT) vector.$(OBJEXT) \
     60        resource_manager.$(OBJEXT) text_engine.$(OBJEXT) \
     61        p_node.$(OBJEXT) null_parent.$(OBJEXT)
    6162importer_OBJECTS = $(am_importer_OBJECTS)
    6263importer_LDADD = $(LDADD)
     
    6869@AMDEP_TRUE@    ./$(DEPDIR)/framework.Po \
    6970@AMDEP_TRUE@    ./$(DEPDIR)/graphics_engine.Po \
    70 @AMDEP_TRUE@    ./$(DEPDIR)/material.Po ./$(DEPDIR)/model.Po \
    71 @AMDEP_TRUE@    ./$(DEPDIR)/null_parent.Po ./$(DEPDIR)/objModel.Po \
    72 @AMDEP_TRUE@    ./$(DEPDIR)/p_node.Po \
     71@AMDEP_TRUE@    ./$(DEPDIR)/material.Po ./$(DEPDIR)/md2Model.Po \
     72@AMDEP_TRUE@    ./$(DEPDIR)/model.Po ./$(DEPDIR)/null_parent.Po \
     73@AMDEP_TRUE@    ./$(DEPDIR)/objModel.Po ./$(DEPDIR)/p_node.Po \
    7374@AMDEP_TRUE@    ./$(DEPDIR)/primitive_model.Po \
    7475@AMDEP_TRUE@    ./$(DEPDIR)/resource_manager.Po \
     
    200201                  model.cc \
    201202                  objModel.cc \
     203                  md2Model.cc \
    202204                  primitive_model.cc \
    203205                  array.cc \
     
    214216noinst_HEADERS = framework.h \
    215217                windowHandler.h \
     218                abstract_model.h \
    216219                model.h \
    217220                objModel.h \
     221                md2Model.h \
    218222                primitive_model.h \
    219223                array.h \
     
    292296@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/graphics_engine.Po@am__quote@
    293297@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/material.Po@am__quote@
     298@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md2Model.Po@am__quote@
    294299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/model.Po@am__quote@
    295300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/null_parent.Po@am__quote@
  • orxonox/branches/md2_loader/src/lib/graphics/importer/abstract_model.h

    r4074 r4078  
    2323
    2424#include "stdincl.h"
     25#include "base_object.h"
     26
    2527
    2628
     
    98100
    99101//! This class defines the basic components of a model
    100 class AbstractModel {
     102class AbstractModel : public BaseObject {
    101103
    102104 public:
  • orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc

    r4077 r4078  
    1616
    1717#include "md2Model.h"
     18
    1819
    1920using namespace std;
     
    5051/**
    5152   \brief standard deconstructor
    52 
    5353        creates a new model loader
    5454*/
     
    5656{
    5757   this->setClassName ("MD2Loader");
    58    // Here we initialize our structures to 0
    59    memset(&m_Header, 0, sizeof(tMd2Header));
    60    // Set the pointers to null
    61    m_pSkins=NULL;
    62    m_pTexCoords=NULL;
    63    m_pTriangles=NULL;
    64    m_pFrames=NULL;
     58   /* initialize all data to initial state */
     59   memset(&this->header, 0, sizeof(tMd2Header));
     60   this->pSkins = NULL;
     61   this->pTexCoords = NULL;
     62   this->pTriangles = NULL;
     63   this->pFrames = NULL;
    6564}
    6665
    6766/**
    6867   \brief standard deconstructor
    69 
    7068*/
    7169MD2Loader::~MD2Loader()
  • orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.h

    r4075 r4078  
    1818
    1919#include "abstract_model.h"
     20#include "base_object.h"
     21#include "stdincl.h"
    2022
    2123
     
    127129
    128130//! A class that handles all of the loading code
    129 class MD2Loader {
     131class MD2Loader : public BaseObject {
    130132
    131133public:
     
    142144  void cleanUp();
    143145 
    144   FILE *m_FilePointer
    145   tMd2Header m_Header;                                      //!< The header data
    146   tMd2Skin *m_pSkins;                                           //!< The skin data
    147   tMd2TexCoord *m_pTexCoords;                           //!< The texture coordinates
    148   tMd2Face *m_pTriangles;                                       //!< Face index information
    149   tMd2Frame *m_pFrames;                                     //!< The frames of animation (vertices)
     146  FILE *pFile
     147  tMd2Header header;                                        //!< The header data
     148  tMd2Skin *pSkins;                                             //!< The skin data
     149  tMd2TexCoord *pTexCoords;                             //!< The texture coordinates
     150  tMd2Face *pTriangles;                                 //!< Face index information
     151  tMd2Frame *pFrames;                                       //!< The frames of animation (vertices)
    150152};
    151153
Note: See TracChangeset for help on using the changeset viewer.