Untitled
public text v1 · immutablevoid OgreCEGUITexture::loadFromMemory(const void* buffPtr, uint buffWidth,
uint buffHeight, CEGUI::Texture::PixelFormat pixelFormat)
{
using namespace Ogre;
Ogre::PixelFormat pf;
switch (pixelFormat)
{
case PF_RGB:
pf = PF_R8G8B8;
break;
case PF_RGBA:
pf = PF_A8R8G8B8;
break;
default:
throw RendererException((utf8*)"Failed to create Texture object from memory: Unknown pixel format.");
}