1 | package dc::UI::Canvas; |
1 | package DC::UI::Canvas; |
2 | |
2 | |
3 | use strict; |
3 | use strict; |
4 | use utf8; |
4 | use utf8; |
5 | |
5 | |
6 | use List::Util qw(max min); |
6 | use List::Util qw(max min); |
7 | |
7 | |
8 | use dc::OpenGL; |
8 | use DC::OpenGL; |
9 | |
9 | |
10 | our @ISA = dc::UI::Fixed::; |
10 | our @ISA = DC::UI::Fixed::; |
11 | |
11 | |
12 | sub new { |
12 | sub new { |
13 | my ($class, %arg) = @_; |
13 | my ($class, %arg) = @_; |
14 | |
14 | |
15 | my $items = delete $arg{items}; |
15 | my $items = delete $arg{items}; |
… | |
… | |
85 | glEnd; |
85 | glEnd; |
86 | } |
86 | } |
87 | |
87 | |
88 | glPopMatrix; |
88 | glPopMatrix; |
89 | } |
89 | } |
|
|
90 | |
|
|
91 | glLineWidth 1; |
|
|
92 | glPointSize 1; |
90 | } |
93 | } |
91 | |
94 | |
92 | 1 |
95 | 1 |
93 | |
96 | |