summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/dimensionxx/canvas.hpp
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-01 04:45:40 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-01 04:45:40 +0000
commitc19f7101d21353c8278dd9277dbb20a77389272d (patch)
treef9d1582e01cf754acc483f8877aa7bf217e36f1f /libdimensionxx/dimensionxx/canvas.hpp
parent47c128a3106206038e45eb8b8abf6c712f29ac14 (diff)
downloaddimension-c19f7101d21353c8278dd9277dbb20a77389272d.tar.xz
New C++ dmnsn_scene* wrapper and raytracexx test.
Diffstat (limited to 'libdimensionxx/dimensionxx/canvas.hpp')
-rw-r--r--libdimensionxx/dimensionxx/canvas.hpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/libdimensionxx/dimensionxx/canvas.hpp b/libdimensionxx/dimensionxx/canvas.hpp
index 84787ed..f519fbd 100644
--- a/libdimensionxx/dimensionxx/canvas.hpp
+++ b/libdimensionxx/dimensionxx/canvas.hpp
@@ -29,16 +29,14 @@ namespace Dimension
class Canvas
{
public:
- // Allocate a dmnsn_canvas specified width and height.
+ // Allocate a dmnsn_canvas of specified width and height
Canvas(unsigned int width, unsigned int height);
-
- // Wrap an existing canvas.
- explicit Canvas(dmnsn_canvas* canvas) : m_canvas(canvas) { }
-
- // Delete the canvas. (dmnsn_delete_canvas(m_canvas).)
+ // Wrap an existing canvas
+ explicit Canvas(dmnsn_canvas* canvas);
+ // Delete the canvas
virtual ~Canvas();
- // Get the width and height.
+ // Get the width and height
unsigned int width() const;
unsigned int height() const;