Skip to content

Primitives

Simon (darkside) Jackson edited this page Aug 21, 2020 · 6 revisions

Primitives

Area Submitted Type
Games: 2D Graphics, Games: Graphics 4/26/2007 Code Sample

Description

This sample shows how to implement a PrimitiveBatch class, which can be used to easily draw points, lines, and triangles on the screen.

Sample Overview

Many popular games use a "retro" style that does all of its drawing with points and lines. This sample shows how you can implement a PrimitiveBatch class that can be used to easily draw points, lines, and triangles on the screen. This functionality can be useful not only for drawing a game with a retro style, but also for debugging.

All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).

Download Size Description
PrimitivesSample_4_0 0.03MB Source code and assets for the Primitives Sample (XNA Game Studio 4.0).
PrimitivesSample_4_0.zip 0.03MB Source code and assets for the Primitives Sample (XNA Game Studio 4.0).
Clone this wiki locally