| 48 | } |
| 49 | |
| 50 | void TextureSegment::GetImageData(ImageData& imageData) |
| 51 | { |
| 52 | int x1 = (int)(mU1 * mTexture->mWidth + 0.5f); |
| 53 | int x2 = (int)(mU2 * mTexture->mWidth + 0.5f); |
| 54 | int y1 = (int)(mV1 * mTexture->mHeight + 0.5f); |
| 55 | int y2 = (int)(mV2 * mTexture->mHeight + 0.5f); |
| 56 | imageData.CreateNew(x2 - x1, y2 - y1); |
| 57 | mTexture->GetBits(x1, y1, x2 - x1, y2 - y1, x2 - x1, imageData.mBits); |
| 58 | } |
| 59 | |
| 60 | void TextureSegment::GetImageData(ImageData& imageData, int destX, int destY) |
| 61 | { |
no test coverage detected