Work in progress
91 XNA samples were ported to CNA. Their native and web builds are validated. Web builds were published in this gallery.
Browse the ports and follow progress on GitHub →The playable builds in this gallery use C++ ports and CNA's C++ API; these versions have so far been tested on the Web and Linux desktop. Separately, CNA.NET, the CNA C# binding, runs nearly all of the same samples from their original, unchanged C# source on the Web, desktop and Android. Other platforms have not yet been tested. See the CNA.NET sample collection ↗.
Samples 1–12 of 91
-
Primitives
Points, lines and triangles through a Begin/End batch, the way SpriteBatch works for sprites.
-
Primitives 3D
Reusable cube, sphere, cylinder, torus and teapot geometry, in solid or wireframe.
-
Textures and Colors
Shader Series 2 — combining lighting, vertex colour and texture colour into one pixel.
-
Reach Graphics Demo
Six interactive scenes for XNA's stock effects, models, animation, render targets and SpriteBatch.
-
Sprite Effects
Five animated SpriteBatch pixel effects: desaturation, dissolve, refraction and normal-mapped lighting.
-
Sprite Sheet
A custom content processor packs a cat and seven glow frames into one texture atlas.
-
Shape Rendering
Batched debug drawing for lines, triangles, boxes, spheres and viewing frustums.
-
Input Reporter
Live gamepad state, capabilities, controller selection and configurable thumbstick dead zones.
-
Input Sequence
Buffered keyboard and gamepad input recognition for fighting-game-style moves and combinations.
-
Safe Area
Title-safe screen layout, aligned text and a camera that follows the cat before it reaches the edge.
-
Generated Geometry
Terrain and skydome meshes generated by custom processors in the XNA Content Pipeline.
-
Platformer
A complete three-level platform game with animated sprites, gems, enemies, physics and sound.