- Timestamp:
- Oct 13, 2005, 1:04:06 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.cc
r5373 r5374 39 39 40 40 this->setIllum(3); 41 this->setDiffuse( 0,0,0);41 this->setDiffuse(1,1,1); 42 42 this->setAmbient(0,0,0); 43 43 this->setSpecular(.5,.5,.5); -
trunk/src/lib/shell/shell.cc
r5373 r5374 43 43 ->setAlias("hide"); 44 44 SHELL_COMMAND(textsize, Shell, setTextSize) 45 ->describe("Sets the size of the Text (size, linespacing)")45 ->describe("Sets the size of the Text size, linespacing") 46 46 ->defaultValues(1, 15, 0); 47 SHELL_COMMAND(textcolor, Shell, setTextColor) 48 ->describe("Sets the Color of the Shells Text (red, green, blue, alpha)") 49 ->defaultValues(4, SHELL_DEFAULT_TEXT_COLOR); 50 SHELL_COMMAND(backgroundcolor, Shell, setBackgroundColor) 51 ->describe("Sets the Color of the Shells Background (red, green, blue, alpha)") 52 ->defaultValues(4, SHELL_DEFAULT_BACKGROUND_COLOR); 53 SHELL_COMMAND(backgroundimage, Shell, setBackgroundImage) 54 ->describe("sets the background image to load for the Shell"); 47 55 SHELL_COMMAND(font, Shell, setFont) 48 56 ->describe("Sets the font of the Shell") … … 82 90 83 91 this->rebuildText(); 92 84 93 this->setTextColor(SHELL_DEFAULT_TEXT_COLOR); 85 94 this->setBackgroundColor(SHELL_DEFAULT_BACKGROUND_COLOR); … … 221 230 this->backgroundMaterial->setTransparency(a); 222 231 } 232 233 /** 234 * sets a nice background image to the Shell's background 235 * @param fileName the filename of the Image to load 236 */ 237 void Shell::setBackgroundImage(const char* fileName) 238 { 239 this->backgroundMaterial->setDiffuseMap(fileName); 240 } 241 223 242 224 243 /** -
trunk/src/lib/shell/shell.h
r5373 r5374 16 16 17 17 #define SHELL_DEFAULT_FONT "fonts/dpquake_.ttf" 18 #define SHELL_DEFAULT_TEXT_COLOR 1 ,0,0,119 #define SHELL_DEFAULT_BACKGROUND_COLOR 0 ,0,.8,.818 #define SHELL_DEFAULT_TEXT_COLOR 1.0f, 0.0f, 0.0f, 1.0f 19 #define SHELL_DEFAULT_BACKGROUND_COLOR 0.0f, 0.0f, 0.8f, 0.8f 20 20 21 21 // FORWARD DECLARATION … … 58 58 void setTextColor(float r, float g, float b, float a); 59 59 void setBackgroundColor(float r, float g, float b, float a); 60 void setBackgroundImage(const char* fileName); 60 61 61 62 void resetValues(); -
trunk/src/lib/shell/shell_command.cc
r5329 r5374 504 504 objectPointer = objectList->firstElement(); 505 505 } 506 printf("test\n");507 506 // match a function. 508 507 if (commandClass != NULL && (fktPos == 1 || (fktPos == 2 && inputSplits.getCount() >= 3)))
Note: See TracChangeset
for help on using the changeset viewer.