Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5106 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Aug 23, 2005, 8:09:58 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: top-down shell, as proposed by patrick. This makes sense, becuase the general people knows only shells comming top down

Location:
trunk/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine.cc

    r5090 r5106  
    592592          if( glyphSurf != NULL )
    593593            {
    594 
    595594              SDL_SetAlpha(glyphSurf, 0, 0);
    596595
     
    598597              TexCoord tmpTexCoord;
    599598              tmpTexCoord.minU = (float)tmpRect.x/(float)tmpSurf->w;
    600               tmpTexCoord.maxU = (float)(tmpRect.x +1 +tmpGlyph->width)/(float)tmpSurf->w;
     599              tmpTexCoord.maxU = (float)(tmpRect.x +1 + tmpGlyph->width)/(float)tmpSurf->w;
    601600              tmpTexCoord.minV = (float)tmpRect.y/(float)tmpSurf->w;
    602601              tmpTexCoord.maxV = (float)(tmpRect.y+tmpGlyph->height)/(float)tmpSurf->w;
     
    620619
    621620              // Outputting Glyphs to BMP-files.
    622               /*
    623                 char outname[64];
     621/*
     622                char outname[512];
    624623                if (i < 10)
    625                 sprintf( outname, "glyph-00%d.bmp", i );
     624                sprintf( outname, "%s-glyph-00%d.bmp", this->getName(), i );
    626625                else if (i <100)
    627                 sprintf( outname, "glyph-0%d.bmp", i );
     626                  sprintf( outname, "%s-glyph-0%d.bmp", this->getName(), i );
    628627                else
    629                 sprintf( outname, "glyph-%d.bmp", i );
    630                 SDL_SaveBMP(tmpSurf, outname);
    631               */
     628                  sprintf( outname, "%s-glyph-%d.bmp", this->getName(), i );
     629                SDL_SaveBMP(tmpSurf, outname);*/
     630
    632631            }
    633632        }
     
    712711                  x = 0;
    713712                  y = y + maxLineHeight;
    714                   maxLineHeight = 0;
     713                  //maxLineHeight = 0;
    715714                }
    716715              if (y + maxLineHeight + 1 > size)
  • trunk/src/lib/lang/class_list.cc

    r5105 r5106  
    285285}
    286286
     287/**
     288 * converts a ClassID into a string
     289 * @param classID the ClassID to search for
     290 * @return a String containing the name of the Class, NULL if the Class was not found
     291 */
    287292const char* ClassList::IDToString(ClassID classID)
    288293{
     
    300305}
    301306
     307/**
     308 * converts a String into a ClassID
     309 * @param className the name of the class to search for
     310 * @return the ClassID. CL_NULL, if the class was not found.
     311 */
    302312long ClassList::StringToID(const char* className)
    303313{
Note: See TracChangeset for help on using the changeset viewer.