Changeset 1901 in orxonox.OLD for orxonox/branches/showroom
- Timestamp:
- May 23, 2004, 11:24:47 PM (21 years ago)
- Location:
- orxonox/branches/showroom/Showroom
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/showroom/Showroom/3dStructs.cpp
r1869 r1901 3 3 4 4 /* Debugging*/ 5 #include <iostream .h>5 #include <iostream> 6 6 7 using namespace std; 7 8 8 9 void C3dModel::Draw(int g_ViewMode) … … 70 71 { 71 72 // Get and set the color that the object is, since it must not have a texture 72 BYTE *pColor = pMaterials[pObject[i].materialID].color; 73 /* linuxFix pb: BYTE not knonw */ 74 int *pColor = pMaterials[pObject[i].materialID].color; 73 75 74 76 // Assign the current color to this model -
orxonox/branches/showroom/Showroom/3dStructs.h
r1870 r1901 40 40 char strName[255]; /* The texture name */ 41 41 char strFile[255]; /* The texture file name */ 42 BYTE color[3]; /* The color of the object (R, G, B) */ 42 /* pb fix: BYTE -> int */ 43 int color[3]; /* The color of the object (R, G, B) */ 43 44 int texureId; /* the texture ID */ 44 45 float uTile; /* u tiling of texture (Currently not used) */ -
orxonox/branches/showroom/Showroom/3dUnit.cpp
r1869 r1901 52 52 /* Draws the Model. If none has been loaded, print an error */ 53 53 if( b3dModelLoaded ) CModel.Draw( mode ); 54 else printf( "No Model for Unit %s loaded! ", sName );54 else printf( "No Model for Unit %s loaded!\n", sName ); 55 55 } 56 56 … … 60 60 if( b3dModelLoaded ) 61 61 CModel.PrintProperties(); 62 else printf( "No Model for Unit %s loaded! ", sName );62 else printf( "No Model for Unit %s loaded!\n", sName ); 63 63 } 64 64 -
orxonox/branches/showroom/Showroom/3ds.cpp
r1869 r1901 56 56 { 57 57 sprintf(strMessage, "Unable to find the file: %s!", strFileName); 58 MessageBox(NULL, strMessage, "Error", MB_OK); 58 /* linuxFix by pb: no MessageBox known by linux */ 59 //MessageBox(NULL, strMessage, "Error", MB_OK); 59 60 return false; 60 61 } … … 71 72 { 72 73 sprintf(strMessage, "Unable to load PRIMARY chuck from file: %s!", strFileName); 73 MessageBox(NULL, strMessage, "Error", MB_OK); 74 /* linuxFix by pb: MessageBox not known... */ 75 //MessageBox(NULL, strMessage, "Error", MB_OK); 74 76 return false; 75 77 } … … 146 148 // If the file version is over 3, give a warning that there could be a problem 147 149 if ((currentChunk.length - currentChunk.bytesRead == 4) && (gBuffer[0] > 0x03)) { 148 MessageBox(NULL, "This 3DS file is over version 3 so it may load incorrectly", "Warning", MB_OK); 150 /* linuxFix by pb: MessageBox not know, using cout */ 151 //MessageBox(NULL, "This 3DS file is over version 3 so it may load incorrectly", "Warning", MB_OK); 152 //sprintf("This 3DS file is over version 3 so it may load incorrectly"); 149 153 } 150 154 break; -
orxonox/branches/showroom/Showroom/showroom.cpp
r1869 r1901 109 109 glMatrixMode( GL_MODELVIEW); 110 110 } 111 112 113 114 int main(int argc, char** argv ) 115 { 116 showroom(argc, argv); 117 return 0; 118 } 119 120
Note: See TracChangeset
for help on using the changeset viewer.