/* $Id$
This file is part of gldbg
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
+Copyright © 2009-2011 Mikko Rasa, Mikkosoft Productions
Distributed under the GPL
*/
-#include <msp/strings/formatter.h>
#include "enums.h"
+#include "strformat.h"
#include "texturestate.h"
using namespace std;
-using namespace Msp;
TexImageState::TexImageState():
width(0),
string TexImageState::describe() const
{
- string descr = format("%d", width);
+ string descr = strformat("%d", width);
if(height)
{
- descr += format("x%d", height);
+ descr += strformat("x%d", height);
if(depth)
- descr += format("x%d", height);
+ descr += strformat("x%d", height);
}
- descr += format(", %s", describe_enum(internal_format, "PixelFormat"));
+ descr += strformat(", %s", describe_enum(internal_format, "PixelFormat"));
return descr;
}
if(images.empty())
descr += ", undefined";
else
- descr += format(", %s", images.front().describe());
+ descr += ", "+images.front().describe();
return descr;
}
{
if(const TextureState *tex = get_current_texture(target))
{
- string descr = format("%d ", tex->id);
+ string descr = strformat("%d ", tex->id);
if(tex->images.empty())
descr += "(undefined)";
else
- descr += format("(%s)", tex->images.front().describe());
+ descr += "("+tex->images.front().describe()+")";
return descr;
}
else