[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
ptex = TextureManager::getSingleton().createManual( "MyManualTexture", // Name of texture "General", // Name of resource group in which the texture should be created TEX_TYPE_2D, // Texture type 256, // Width 256, // Height 1, // Depth (Must be 1 for two dimensional textures) 0, // Number of mipmaps PF_A8R8G8B8, // Pixel format TU_DYNAMIC_WRITE_ONLY // usage ); |
// Get the PixelBuffer for face 0, mipmap 0. HardwarePixelBufferSharedPtr ptr = tex->getBuffer(0,0); |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |