Get rid of demo timer in PreviewCanvas
This commit is contained in:
parent
9d1b756135
commit
47b2c13c99
1 changed files with 0 additions and 12 deletions
|
@ -28,9 +28,6 @@ sub new {
|
|||
$self->norms(OpenGL::Array->new_list(GL_FLOAT, @norms));
|
||||
}
|
||||
|
||||
my $timer = $self->timer( Wx::Timer->new($self) );
|
||||
$timer->Start(50);
|
||||
|
||||
$self->x_rot(0);
|
||||
$self->y_rot(0);
|
||||
|
||||
|
@ -45,15 +42,6 @@ sub new {
|
|||
$self->Resize( $self->GetSizeWH );
|
||||
$self->Refresh;
|
||||
});
|
||||
EVT_TIMER($self, -1, sub {
|
||||
my ($self, $e) = @_;
|
||||
|
||||
$self->x_rot( $self->x_rot - 1 );
|
||||
$self->y_rot( $self->y_rot + 2 );
|
||||
|
||||
$self->dirty(1);
|
||||
Wx::WakeUpIdle;
|
||||
});
|
||||
EVT_MOUSEWHEEL($self, sub {
|
||||
my ($self, $e) = @_;
|
||||
|
||||
|
|
Loading…
Reference in a new issue