XNA Creators Club Online

détails de l’échantillon

Primitives
Échantillon
envoyé
26/04/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.

téléchargements
Framework

GS 2.0

Version Vertex Shader

VS 1.1

Version Pixel Shader

PS 1.1

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