• Create Account

### #ActualVisje

Posted 18 September 2012 - 08:37 AM

Okay thanks this is working

### #2Visje

Posted 18 September 2012 - 08:16 AM

I actually have this :

Which describes the pixel colors of the texture
std::unique_ptr<byte[]> bitmapPixels(new byte[size]);


and I do this to bind these pixels to the texture
m_d3dDeviceContext->UpdateSubresource(this->texture.Get(), 0, &destBox, bitmapPixels.get(), (int)textureWidth*4, 0);


Which works, but I'm trying to convert the values of bitmapPixels to Uint32 to let me insert values like 0x0000FF00 while keeping some of the default colors :/

### #1Visje

Posted 18 September 2012 - 08:15 AM

I actually have this :

Which, as you know, describes the pixel colors of the texture
std::unique_ptr<byte[]> bitmapPixels(new byte[size]);


and I do this to bind these pixels to the texture
m_d3dDeviceContext->UpdateSubresource(this->texture.Get(), 0, &destBox, bitmapPixels.get(), (int)textureWidth*4, 0);


Which works, but I'm trying to convert the values of bitmapPixels to Uint32 to let me insert values like 0x0000FF00 while keeping some of the default colors :/

PARTNERS