Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

878745 Posts in 32935 Topics- by 24344 Members - Latest Member: Distillx

May 22, 2013, 02:26:34 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)drawing primitives in XNA
Pages: [1]
Print
Author Topic: drawing primitives in XNA  (Read 532 times)
DelishusCake
Level 0
***


funky


View Profile
« on: January 13, 2012, 09:59:40 AM »

I'm starting to get into XNA 4/C# development, and was wondering if XNA has a class for drawing geometric primitives: circles, squares,  etc.
Logged
Languard
Manbaby
*


View Profile
« Reply #1 on: January 13, 2012, 11:41:49 AM »

Points, lines, and triangles is all XNA has built in, so for anything else, you'll have to create it.
Logged
knight
Level 3
***

aka dude4k


View Profile
« Reply #2 on: January 14, 2012, 08:21:15 AM »

Na you gotta make those yourself. Drawing convex polygons and circles is relativity easy but if you try to draw anything more complex than that the process gets more complicated.
Logged
DeadPixel
Level 2
**



View Profile WWW
« Reply #3 on: January 14, 2012, 10:37:09 AM »

You can start here with GraphicsDevice.DrawUserPrimitives.  You'll be using a mixture of BasicEffect and one of the Draw* methods on the GraphicsDevice class.  You'll need to create the vertices yourself.

You can also check out the sample on the App Hub site.
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic