Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5381 in orxonox.OLD for branches/2d-recalc/src/lib/shell


Ignore:
Timestamp:
Oct 15, 2005, 7:13:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/2d-recalc: some recalculations.. do not know it i will continue with this, as has certain disadvantages over the old approach… maybe later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2d-recalc/src/lib/shell/shell.cc

    r5380 r5381  
    5757    ->defaultValues(1, SHELL_DEFAULT_FONT);
    5858
     59
    5960/**
    6061 * standard constructor
     
    8182  this->backgroundMaterial = new Material;
    8283  // Element2D and generals
    83   this->textSize = .001;
    84   this->lineSpacing = .001;
     84  this->textSize = 16;
     85  this->lineSpacing = 1;
    8586  this->bActive = false;
    8687  this->fontFile = new char[strlen(SHELL_DEFAULT_FONT)+1];
     
    9697  ShellBuffer::getInstance()->registerShell(this);
    9798}
     99
    98100
    99101/**
     
    115117}
    116118
     119
    117120/**
    118121 * activates the shell
     
    139142}
    140143
     144
    141145/**
    142146 * deactiveates the Shell.
     
    162166  this->bufferOffset = 0;
    163167}
     168
    164169
    165170/**
     
    183188  this->rebuildText();
    184189}
     190
    185191
    186192/**
     
    199205}
    200206
     207
    201208/**
    202209 * sets the color of the Font.
     
    229236  this->backgroundMaterial->setTransparency(a);
    230237}
     238
    231239
    232240/**
     
    271279}
    272280
     281
    273282/**
    274283 * rebuilds the Text's
     
    285294  this->setBufferDisplaySize(this->bufferDisplaySize);
    286295}
     296
    287297
    288298/**
     
    319329}
    320330
     331
    321332/**
    322333 * deletes all the Buffers
     
    334345    // BUFFER FLUSHING
    335346}
     347
    336348
    337349/**
     
    374386}
    375387
     388
    376389/**
    377390 * moves the Display buffer (up or down)
     
    424437}
    425438
     439
    426440/**
    427441 * clears the Shell (empties all buffers)
     
    432446  ShellBuffer::addBufferLineStatic("orxonox - shell\n ==================== \n", NULL);
    433447}
     448
    434449
    435450/**
     
    459474}
    460475
     476
    461477/**
    462478 * displays the Shell
     
    487503}
    488504
     505
    489506///////////////////////
    490507// HELPER FUNCTIONS  //
    491508///////////////////////
    492 
    493509/**
    494510 * calculates the position of a Buffer-Display Line
     
    500516  return Vector(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber -1) + this->textSize, 0);
    501517}
    502 
    503518
    504519
Note: See TracChangeset for help on using the changeset viewer.