Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3208 in orxonox.OLD


Ignore:
Timestamp:
Dec 17, 2004, 9:58:32 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: forgot some printf's, fixed now

Location:
orxonox/trunk/src/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/importer/framework.cc

    r3206 r3208  
    136136            int wW = wHandler.screen->w;
    137137            Vector tmpV (mX, mY, sqrt ( (float) abs(wH * wH/4 - (wW/2-mX) * (wW/2-mX) - (wH/2-mY) * (wH/2-mY)) ));
    138             //      printf ("tmpV: %f, %f, %f\n", tmpV.x, tmpV.y, tmpV.z);
     138            //      PRINTF(0)("tmpV: %f, %f, %f\n", tmpV.x, tmpV.y, tmpV.z);
    139139            p2 = tmpV-M;
    140140            p2.y = -p2.y;
    141141            rotAxis = p1.cross(p2);
    142             //  printf ("rotAxis: %f, %f, %f\n", rotAxis.x, rotAxis.y, rotAxis.z);
     142            //  PRINTF(0)("rotAxis: %f, %f, %f\n", rotAxis.x, rotAxis.y, rotAxis.z);
    143143
    144144            // in case that there is no rotation-axis defined
     
    146146              {
    147147                rotAxis.normalize();
    148                 //              printf ("rotAxis: %f, %f, %f\n", rotAxis.x, rotAxis.y, rotAxis.z, rotAngle);
     148                //              PRINTF(0)("rotAxis: %f, %f, %f\n", rotAxis.x, rotAxis.y, rotAxis.z, rotAngle);
    149149                               
    150150                rotAngle = angle_rad (p1, p2);
     
    154154                //      dir = rotQ.apply(dir);
    155155                //      dir.normalize();
    156                 //      printf ("rotAxis: %f, %f, %f, %f\n", dir.x, dir.y, dir.z, rotAngle);
     156                //      PRINTF(0)("rotAxis: %f, %f, %f, %f\n", dir.x, dir.y, dir.z, rotAngle);
    157157              }
    158158            rotQlast = rotQ;
     
    164164        if (event.button.button == 4)
    165165          {
    166             printf("MouseWheel up\n");
     166            PRINTF(0)("MouseWheel up\n");
    167167            zoomTo *= .5;
    168168          }
    169169        else if (event.button.button == 5)
    170170          {
    171             printf("MouseWheel down\n");
     171            PRINTF(2)("MouseWheel down\n");
    172172            zoomTo *= 2.0;
    173173          }
     
    186186        else
    187187          {
    188             printf("MouseButton %d pressed at (%d,%d).\n",
     188            PRINTF(0)("MouseButton %d pressed at (%d,%d).\n",
    189189                   event.button.button, event.button.x, event.button.y);
    190190            rotatorV = ( (float)wHandler.screen->w/2 -event.button.x) / (float)wHandler.screen->w / 100.0;
     
    199199        else
    200200            {
    201         printf("MouseButton %d released at (%d,%d).\n",
    202                event.button.button, event.button.x, event.button.y);
     201              PRINTF(2)("MouseButton %d released at (%d,%d).\n",
     202                        event.button.button, event.button.x, event.button.y);
    203203            }
    204204        break;
  • orxonox/trunk/src/importer/material.cc

    r3206 r3208  
    8383  strncpy(tmpPName, pName, strlen(pName)-1);
    8484  tmpPName[strlen(pName)-1] = '\0';
    85   printf ("%s\n",tmpPName);
    8685  if (access (tmpPName, F_OK) == 0)
    8786    {
     
    268267  PRINTF(3)("setting illumModel of Material %s to %i\n", this->name, illum);
    269268  this->illumModel = illum;
    270   //  printf ("setting illumModel to: %i\n", illumModel);
     269  //  PRINTF(3)("setting illumModel to: %i\n", illumModel);
    271270}
    272271/**
Note: See TracChangeset for help on using the changeset viewer.