- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osg/Camera.cpp
r10970 r13041 61 61 iteratorAdvanced = true; 62 62 }; 63 63 64 64 if (fr.matchSequence("clearMask %i")) 65 65 { … … 95 95 } 96 96 97 Matrix matrix; 97 Matrix matrix; 98 98 if (readMatrix(matrix,fr,"ProjectionMatrix")) 99 99 { … … 149 149 iteratorAdvanced = true; 150 150 } 151 151 152 152 153 153 if (fr.matchSequence("bufferComponent %w {")) … … 157 157 Camera::BufferComponent buffer; 158 158 Camera_matchBufferComponentStr(fr[1].getStr(),buffer); 159 159 160 160 fr += 3; 161 161 162 162 Camera::Attachment& attachment = camera.getBufferAttachmentMap()[buffer]; 163 163 164 164 // read attachment data. 165 165 while (!fr.eof() && fr[0].getNoNestedBrackets()>entry) … … 167 167 bool localAdvance = false; 168 168 169 if (fr.matchSequence("internalFormat %i")) 169 if (fr.matchSequence("internalFormat %i")) 170 170 { 171 171 // In their infinite wisdom, the Apple engineers changed the type … … 191 191 attachment._image = image; 192 192 } 193 194 } 195 196 if (fr.matchSequence("level %i")) 193 194 } 195 196 if (fr.matchSequence("level %i")) 197 197 { 198 198 fr[1].getUInt(attachment._level); … … 201 201 } 202 202 203 if (fr.matchSequence("face %i")) 203 if (fr.matchSequence("face %i")) 204 204 { 205 205 fr[1].getUInt(attachment._face); … … 208 208 } 209 209 210 if (fr.matchSequence("mipMapGeneration TRUE")) 210 if (fr.matchSequence("mipMapGeneration TRUE")) 211 211 { 212 212 attachment._mipMapGeneration = true; … … 215 215 } 216 216 217 if (fr.matchSequence("mipMapGeneration FALSE")) 217 if (fr.matchSequence("mipMapGeneration FALSE")) 218 218 { 219 219 attachment._mipMapGeneration = false; … … 224 224 if (!localAdvance) ++fr; 225 225 } 226 226 227 227 iteratorAdvanced = true; 228 228 }
