C# Class Ypsilon.Core.Graphics.VectorRenderer

A 3D tri renderer. Currently no support for textures, but could be extended.
Show file Open project: ZaneDubya/YCPU Class Usage Examples

Public Methods

Method Description
DrawTris ( VertexPositionTextureDataColor polygon, ushort indexes, Matrix matrix, Color color, Vector4 data ) : void

Draws the given tri list. This can be massively optimized, I'm sure.

Render ( EffectState effect, Matrix projection, Matrix view, Matrix world, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
VectorRenderer ( GraphicsDevice g, Microsoft.Xna.Framework.Content.ContentManager c ) : System

Private Methods

Method Description
CreateTriBuffer ( int primitiveCount ) : short[]

Method Details

DrawTris() public method

Draws the given tri list. This can be massively optimized, I'm sure.
public DrawTris ( VertexPositionTextureDataColor polygon, ushort indexes, Matrix matrix, Color color, Vector4 data ) : void
polygon VertexPositionTextureDataColor
indexes ushort
matrix Matrix
color Color
data Vector4
return void

Render() public method

public Render ( EffectState effect, Matrix projection, Matrix view, Matrix world, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
effect EffectState
projection Matrix
view Matrix
world Matrix
texture Microsoft.Xna.Framework.Graphics.Texture2D
return void

VectorRenderer() public method

public VectorRenderer ( GraphicsDevice g, Microsoft.Xna.Framework.Content.ContentManager c ) : System
g GraphicsDevice
c Microsoft.Xna.Framework.Content.ContentManager
return System