gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/canvas-window.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2010年08月01日 19:48:08 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2010年08月01日 19:48:08 +0200
commit5a132340703270e5de65fed6499e475846a56dd5 (patch)
tree963941b3abe7a99cbce0edd4fc17d18c39be93ac /agg-plot/canvas-window.cpp
parent975bbb0229edfb8ca2be826994f5422a0c8d6c38 (diff)
downloadgsl-shell-5a132340703270e5de65fed6499e475846a56dd5.tar.gz
complete the template code for drawable objects.
The class hierarchy is completely parametrized using templates. The Lua binding are there but not tested.
Diffstat (limited to 'agg-plot/canvas-window.cpp')
-rw-r--r--agg-plot/canvas-window.cpp 4
1 files changed, 2 insertions, 2 deletions
diff --git a/agg-plot/canvas-window.cpp b/agg-plot/canvas-window.cpp
index 20c727b5..b8a21e11 100644
--- a/agg-plot/canvas-window.cpp
+++ b/agg-plot/canvas-window.cpp
@@ -175,11 +175,11 @@ int
canvas_window_draw_gener (lua_State *L, bool as_line)
{
canvas_window *win = canvas_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);
const agg::trans_affine& mtx = win->transform();
- obj->apply_transform(mtx, 1.0);
+ obj->apply_transform(mtx);
bool success = win->draw(obj, color, as_line);
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月18日 04:25:40 +0000

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