XNA Creators Club Online

sample details

Primitives
Sample
submitted
4/26/2007

Description:

This sample shows how to extend the Spacewar VectorShape code to create PrimitiveBatch, which can be used to easily draw points, lines, and triangles on the screen.

Sample Overview

The Spacewar starter kit includes a "retro mode," which does all of its drawing with points and lines. This sample shows how you can extend the Spacewar VectorShape code to create PrimitiveBatch, which can be used to easily draw points, lines, and triangles on the screen. This functionality can be useful, not only for drawing your game, but also for debugging.

downloads
Framework

GS 2.0

Vertex Shader Version

VS 1.1

Pixel Shader Version

PS 1.1

var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG