From 5a132340703270e5de65fed6499e475846a56dd5 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Sun, 1 Aug 2010 19:48:08 +0200 Subject: complete the template code for drawable objects. The class hierarchy is completely parametrized using templates. The Lua binding are there but not tested. --- agg-plot/plot-window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'agg-plot/plot-window.cpp') diff --git a/agg-plot/plot-window.cpp b/agg-plot/plot-window.cpp index d1fe86c6..74005134 100644 --- a/agg-plot/plot-window.cpp +++ b/agg-plot/plot-window.cpp @@ -12,7 +12,7 @@ extern "C" { #include "lua-draw.h" #include "colors.h" #include "plot.h" -#include "vertex-source.h" +#include "drawable.h" #include "resource-manager.h" #include "agg-parse-trans.h" @@ -65,7 +65,7 @@ __END_DECLS class plot_window : public canvas_window { public: - typedef plot plot_type; + typedef plot plot_type; plot_window(): canvas_window(colors::white), m_plot() {}; @@ -158,7 +158,7 @@ int plot_window_add_gener (lua_State *L, bool as_line) { plot_window *p = plot_window::check(L, 1); - vertex_source *obj = parse_graph_args (L); + drawable *obj = parse_graph_args (L); agg::rgba8 *color = check_color_rgba8 (L, 3); lua_pushvalue (L, 1); -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /