Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2773 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Nov 10, 2004, 12:03:51 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/importer: better selfstanding ability of object and array classes, now start with
./importer [filename.obj]

Location:
orxonox/branches/importer/importer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/importer/importer/array.h

    r2760 r2773  
    1 #include "windowHandler.h"
    2 
     1//#include "windowHandler.h"
     2#include <GL/gl.h>
     3#include <GL/glu.h>
     4#include <fstream.h>
    35class Array
    46{
  • orxonox/branches/importer/importer/framework.cc

    r2768 r2773  
    4141
    4242
    43   obj = new Object ();
     43  obj = new Object (argv[1]);
    4444
    4545  // Build the font from a TGA image font.tga in the data directory
  • orxonox/branches/importer/importer/object.cc

    r2769 r2773  
    66
    77  importFile ("reaphigh.obj");
    8  
    98
    10  
    11   glColor3f(1.0,0,0);
    12   /*  glBegin(GL_QUADS);
    13   printf ("face-count %i\n", faces->getCount());
    14   for (int i=0; i<=faces->getCount();++i)
    15     {
    16       glArrayElement((int)faces->getArray()[i] -1);
    17    }
    18    glEnd();*/
     9  finalize();
     10}
     11
     12Object::Object(char* fileName)
     13{
     14  initialize();
     15
     16  importFile (fileName);
     17
    1918  finalize();
    2019}
     
    5049{
    5150  glCallList (listNumber);
    52 
    5351}
    5452
     
    175173    glEnd();
    176174  faceMode = 1;
    177   printf ("%f\n", (float)rand()/2000000000.0);
    178175  glColor3f((float)rand()/2000000000.0,(float)rand()/2000000000.0,(float)rand()/2000000000.0);
    179176}
  • orxonox/branches/importer/importer/object.h

    r2769 r2773  
    1 #include "windowHandler.h"
     1#ifndef OBJECT_H
     2#define OBJECT_H
     3
     4#include <GL/gl.h>
     5#include <GL/glu.h>
     6
    27#include "array.h"
    38#include <fstream.h>
     
    3843  bool addGLElement (char* elementString);
    3944};
     45
     46#endif
Note: See TracChangeset for help on using the changeset viewer.