/* ----------------------------------------------------------------------------- GSFramework Copyright 2001-2013 Emmanuel Julien. All Rights Reserved. ----------------------------------------------------------------------------- */ #include "core/render_data.h" #include "picture/pict.h" #include "log/log.h" using namespace GS; using namespace GS::Render; //------------------------------------------------------------------------------ bool Texture::Create(const Picture &p, Usage usage) { __LOG_V__ << "Creating texture '" << p.name << "'.\n"; name = p.name; return Create((const char *)p.GetData(), p.GetWidth(), p.GetHeight(), FormatRGBA8, NoAA, usage); } //------------------------------------------------------------------------------