Animation not starting during launching via SDL
Posted: 30 Jul 2024, 15:53
This code is run properly via the launcher but not via SDL
I have the animation
that is triggered by a bonded property that changes inside the view model
Inside the SDL I have the buffers that helped me to solve a similar problem but with clipped objects, that moved outside from the clipped section
Are there any limitations and features for using animation when running through SDL? Or what could be the reason that animation does not work?
I have the animation
Code: Select all
<Storyboard x:Key="UpDownStoryboard">
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"
To="0" Duration="0:0:1"
From="-100"/>
</Storyboard>
</UserControl.Resources>
Code: Select all
<Style TargetType="local:cMessageSectionView">
<Style.Triggers>
<DataTrigger Binding="{Binding DataContext.IsInitialAnimation, ElementName=AssistantScreen}" Value="True">
<DataTrigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource UpDownStoryboard}"/>
</DataTrigger.EnterActions>
</DataTrigger>
</Style.Triggers>
</Style>
Code: Select all
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
Are there any limitations and features for using animation when running through SDL? Or what could be the reason that animation does not work?