Skip to content
Cole Campbell edited this page Oct 9, 2018 · 2 revisions

The Ultraviolet repository includes a number of sample projects which demonstrate various aspects of the Framework. These projects can be found in their own GitHub repository; there are Visual Studio solution files for each supported target platform.

There are, at present, sixteen sample projects.

Description
Sample 1 Thumbnail 1. Creating an Application
Demonstrates how to create an Ultraviolet context which opens a blank window.
Sample 2 Thumbnail 2. Handling Input
Demonstrates how to create input bindings and respond to events from the keyboard and other input devices.
Sample 3 Thumbnail 3. Rendering Geometry
Demonstrates how to draw a simple 3D scene using the GeometryStream class.
Sample 4 Thumbnail 4. Content Management
Demonstrates how to load content assets, such as textures, from the file system.
Sample 5 Thumbnail 5. Rendering Sprites
Demonstrates how to load and render animated sprites using the SpriteBatch class.
Sample 6 Thumbnail 6. Rendering Text
Demonstrates how to use the TextRenderer class to format and lay out text for rendering.
Sample 7 Thumbnail 7. Playing Music
Demonstrates how to play streaming music files using the SongPlayer class.
Sample 8 Thumbnail 8. Playing Sound Effects
Demonstrates how to play sound effects using the SoundEffectPlayer class.
Sample 9 Thumbnail 9. Managing State with Screens
Demonstrates how to construct a stack of UI screens and use it to manage the state of your application.
Sample 10 Thumbnail 10. Asynchronous Content Loading
Demonstrates how to load content assets in an asynchronous fashion in order to avoid blocking the rendering thread.
Sample 11 Thumbnail 11. Game Pads
Demonstrates how to use game pads as input devices.
Sample 12 Thumbnail 12. UPF
Demonstrates how to create a basic UI with the Ultraviolet Presentation Foundation (UPF).
Sample 13 Thumbnail 13. UPF - Advanced
Demonstrates more advanced concepts within the Ultraviolet Presentation Foundation.
Sample 14 Thumbnail 14. Loading Image Data with Surfaces
Demonstrates how to manipulate two-dimensional image data on the CPU using the Surface2D class.
Sample 15 Thumbnail 15. Render Targets and Buffers
Demonstrates how to render to off-screen render targets, which can subsequently be used as textures.
Sample 16 Thumbnail 16. Custom Text Layout Commands
Demonstrates how to implement custom commands which can influence how text is laid out and rendered.
Clone this wiki locally