summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 078809d)
raw | patch | inline | side by side (parent: 078809d)
author | ishmal <ishmal@users.sourceforge.net> | |
Tue, 29 Apr 2008 17:57:28 +0000 (17:57 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Tue, 29 Apr 2008 17:57:28 +0000 (17:57 +0000) |
src/extension/internal/pov-out.cpp | patch | blob | history | |
src/extension/internal/pov-out.h | patch | blob | history |
index 1e7d505485c14420ec0c686309e2882078cc45b8..dbfb5267646bc6938556ad31a2f5c34232f0b4c3 100644 (file)
* http://www.povray.org
*
* Authors:
- * Bob Jamison <ishmalius@gmail.com>
+ * Bob Jamison <ishmal@inkscape.org>
*
* Copyright (C) 2004-2008 Authors
*
/**
* Output data to the buffer, printf()-style
*/
-void PovOutput::out(char const *fmt, ...)
+void PovOutput::out(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
*/
void PovOutput::vec2(double a, double b)
{
- out("<");
- out(dstr(a).c_str());
- out(", ");
- out(dstr(b).c_str());
- out(">");
+ out("<%s, %s>", dstr(a).c_str(), dstr(b).c_str());
}
*/
void PovOutput::vec3(double a, double b, double c)
{
- out("<");
- out(dstr(a).c_str());
- out(", ");
- out(dstr(b).c_str());
- out(", ");
- out(dstr(c).c_str());
- out(">");
+ out("<%s, %s, %s>", dstr(a).c_str(), dstr(b).c_str(), dstr(c).c_str());
}
*/
void PovOutput::vec4(double a, double b, double c, double d)
{
- out("<");
- out(dstr(a).c_str());
- out(", ");
- out(dstr(b).c_str());
- out(", ");
- out(dstr(c).c_str());
- out(", ");
- out(dstr(d).c_str());
- out(">");
+ out("<%s, %s, %s, %s>", dstr(a).c_str(), dstr(b).c_str(),
+ dstr(c).c_str(), dstr(d).c_str());
}
index a44bd947ec8c2e06894c0bb9b55df41a67ba9f20..822a55650cdeee0de01291d0dc87b78c42e80ca3 100644 (file)
* the current SVG document.
*
* Authors:
- * Bob Jamison <rjamison@titan.com>
+ * Bob Jamison <ishmal@inkscape.org>
*
* Copyright (C) 2004-2008 Authors
*
/**
* Format text to our output buffer
*/
- void out(char const *fmt, ...) G_GNUC_PRINTF(2,3);
+ void out(const char *fmt, ...) G_GNUC_PRINTF(2,3);
/**
* Output a 2d vector