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