XNA Creators Club Online

detalles de la muestra

Primitives
Muestra
enviado
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.

descargas
Estructura

GS 2.0

Versión de Vertex Shader

VS 1.1

Versión de Pixel Shader

PS 1.1

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