Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2034 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Jun 23, 2004, 9:35:37 PM (20 years ago)
Author:
john
Message:

Ich habe die 3ds Model Funktion hinzugefügt.

Funktioniert bislang nur, falls sich eine Datei test.3ds im gleichen Verzeichnis befindet!!!

Location:
orxonox/branches/john/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/john/src/player.cc

    r1957 r2034  
    2929  xCor = yCor = zCor = 0;
    3030  shootLaser = new ShootLaser;
    31   shootRocket = new ShootRocket;
     31  shootRocket = new ShootRocket;
     32  // Loads the 3ds Model, John
     33  TestModel.Import3ds();
    3234}
    3335
     
    105107  glTranslatef(xCor, yCor, 3.0);
    106108  glScalef(1.0, 3.0, 1.0);
    107   glutWireCube(1.0);
     109  // Draws the TestModel as a Wireframe, John
     110  TestModel.Draw( GL_LINE_STRIP );
    108111  glPopMatrix();
    109112  /* draw all the shoots additionaly */
  • orxonox/branches/john/src/player.h

    r1956 r2034  
    99#include "shoot_rocket.h"
    1010#include "data_tank.h"
     11/* John */
     12#include "3dUnit.h"
    1113
    1214class Player {
     
    2224 
    2325  float collisionRadius;
    24 
     26  // Contains the 3d Date, John
     27  C3dUnit TestModel;
     28 
    2529  /* this player wanna shoot? so include a ref to ShootLaser */
    2630  ShootLaser* shootLaser;
     
    3741  void drawPlayer(void);
    3842
     43
    3944 private:
    4045
Note: See TracChangeset for help on using the changeset viewer.