| 23 | } |
| 24 | |
| 25 | void TextureSegment::InitFromTexture(Texture* texture) |
| 26 | { |
| 27 | mTexture = texture; |
| 28 | mU1 = 0; |
| 29 | mV1 = 0; |
| 30 | mU2 = 1.0f; |
| 31 | mV2 = 1.0f; |
| 32 | mScaleX = (float) mTexture->mWidth; |
| 33 | mScaleY = (float) mTexture->mHeight; |
| 34 | } |
| 35 | |
| 36 | void TextureSegment::SetBits(int destX, int destY, int destWidth, int destHeight, int srcPitch, uint32* bits) |
| 37 | { |
no outgoing calls
no test coverage detected