Skip to content

Latest commit

 

History

History

readme.md

Introduction to using vector animation in a Win32 client app

This sample demonstrates the use of the Universal Windows Platform (UWP) Visual Layer APIs (Windows.UI.Composition) in a native Win32 C++ App.

The Visual Layer APIs provide a high performance, retained-mode API for graphics, effects, and animations. It's the recommended replacement for DirectComposition in apps that run on Windows 10.

This sample demonstrates how to create a Win32 window using C++/WinRT, then add and animate vector shapes.

app UI

Features

This sample includes the following features:

  • Scenario 1: Create a simple ShapeVisual.
  • Scenario 2: Create a simple path using CompositionPath, Direct2D, and ShapeVisual.
  • Scenario 3: Create a morph animation using ShapeVisual, two CompositionPaths, and an animated CompositionPathGeometry.
  • Scenario 4: Play vector animation output from the LottieViewer tool.

Run the sample

This sample requires:

Known issues

Scenario 4 uses the Windows UI Library. If you get an error while compiling the project, follow these 2 steps to make scenario 4 work:

See also

Visual Layer documentation

API reference: Windows.UI.Composition