Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc @ 4078

Last change on this file since 4078 was 4078, checked in by patrick, 19 years ago

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

File size: 2.5 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Patrick Boenzli
13*/
14
15//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
16
17#include "md2Model.h"
18
19
20using namespace std;
21
22/********************************************************************************
23 *   MD2MODEL                                                                   *
24 ********************************************************************************/
25
26/**
27   \brief standard constructor
28   
29        creates a new model
30*/
31MD2Model::MD2Model () 
32{
33   this->setClassName ("MD2Model");
34}
35
36
37/**
38   \brief standard deconstructor
39
40*/
41MD2Model::~MD2Model () 
42{
43  // delete what has to be deleted here
44}
45
46
47/********************************************************************************
48 *   MD2LOADER                                                                  *
49 ********************************************************************************/
50
51/**
52   \brief standard deconstructor
53        creates a new model loader
54*/
55MD2Loader::MD2Loader()
56{
57   this->setClassName ("MD2Loader");
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;
64}
65
66/**
67   \brief standard deconstructor
68*/
69MD2Loader::~MD2Loader()
70{}
71 
72
73/**
74        \brief this is called by the client to open the .Md2 file, read it, then clean up
75        \param model to load in
76        \param file name to load
77        \param texture name to load
78*/
79bool MD2Loader::importMD2(t3DModel *pModel, char *strFileName, char *strTexture)
80{}
81
82/**
83        \brief This function reads in all of the model's data, except the animation frames
84*/
85void MD2Loader::readMD2Data()
86{}
87
88/**
89        \brief this function fills in the animation list for each animation by name and frame
90        \param model
91*/
92void MD2Loader::parseAnimations(t3DModel *pModel)
93{}
94
95/**
96        \brief this function converts the .md2 structures to our own model and object structures: decompress
97        \param model
98*/
99void MD2Loader::convertDataStructures(t3DModel *pModel)
100{}
101
102
103/**
104        \brief this function conputes the normals of the model
105        \param model
106*/
107void MD2Loader::computeNormals(t3DModel *pModel)
108{}
109
110/**
111        \brief This function cleans up our allocated memory and closes the file
112*/
113void MD2Loader::cleanUp()
114{}
Note: See TracBrowser for help on using the repository browser.