| 2220 | } |
| 2221 | |
| 2222 | void Tr2Sprite2dScene::FlashDefaultTexture() |
| 2223 | { |
| 2224 | if( m_defaultTextureUpdates ) |
| 2225 | { |
| 2226 | uint32_t pixelValue = 0xff000000; |
| 2227 | pixelValue |= m_defaultTextureFlash << 16; |
| 2228 | pixelValue |= m_defaultTextureFlash << 8; |
| 2229 | pixelValue |= m_defaultTextureFlash; |
| 2230 | |
| 2231 | m_defaultTextureFlash += 5; |
| 2232 | m_defaultTextureFlash %= 255; |
| 2233 | |
| 2234 | void* data = NULL; |
| 2235 | unsigned int pitch; |
| 2236 | m_defaultTexture->LockBuffer( data, pitch ); |
| 2237 | |
| 2238 | CCP_ASSERT( data ); |
| 2239 | |
| 2240 | uint32_t* pixels = (uint32_t*)data; |
| 2241 | pixels[0] = pixelValue; |
| 2242 | pixels[1] = pixelValue; |
| 2243 | data = (void*)( (uint8_t*)data + pitch ); |
| 2244 | pixels = (uint32_t*)data; |
| 2245 | pixels[0] = pixelValue; |
| 2246 | pixels[1] = pixelValue; |
| 2247 | |
| 2248 | m_defaultTexture->UnlockBuffer(); |
| 2249 | } |
| 2250 | } |
| 2251 | |
| 2252 | void Tr2Sprite2dScene::RemoveFinishedCurveSets() |
| 2253 | { |
nothing calls this directly
no test coverage detected