/* $Id$
This file is part of gldbg
-Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions
+Copyright © 2009-2011 Mikko Rasa, Mikkosoft Productions
Distributed under the GPL
*/
-#include <msp/strings/formatter.h>
#include "arraysize.h"
#include "arraystate.h"
#include "bufferstate.h"
#include "enums.h"
+#include "strformat.h"
using namespace std;
-using namespace Msp;
BufferContent::BufferContent():
consistent(true),
if(!result.empty())
result += '_';
- result += format("%c%d%s", kind, i->size, type);
+ result += strformat("%c%d%s", kind, i->size, type);
}
return result;
if(content.stride)
{
const char *what = (content.arrays.front().kind==GL_ELEMENT_ARRAY_BUFFER ? "indices" : "vertices");
- return format("%s, %d %s (%d bytes), %s",
- content.describe(), size/content.stride, what, size, describe_enum(usage, ""));
+ return content.describe()+strformat(", %d %s (%d bytes), %s",
+ size/content.stride, what, size, describe_enum(usage, ""));
}
else
- return format("%d bytes, %s", size, describe_enum(usage, ""));
+ return strformat("%d bytes, %s", size, describe_enum(usage, ""));
}