O'Reilly logo

3D Game Development with Microsoft Silverlight 3 Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—transforming media using the GPU

We are going to make some changes to the application. This time, we will show eight ghosts. We will configure some additional parameters to allow hardware acceleration for some operations and we will scale, rotate, and translate them. At the same time, we will be changing their opacity settings:

  1. Stay in the SilverlightMonster project.
  2. Open the XAML code for Ghost.xaml. Remove only the following two lines that define a Grid named LayoutRoot as we want the illustration to be a part of a Canvas instead of a Grid:
    <Grid x:Name="LayoutRoot">
    </Grid>
    
  3. Change the name of the main Canvas from "Layer_3" to "LayoutRoot" (the default value for the root element).
  4. Add the following lines after the first line that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required