C# 클래스 Ypsilon.Core.Graphics.VectorRenderer

A 3D tri renderer. Currently no support for textures, but could be extended.
파일 보기 프로젝트 열기: ZaneDubya/YCPU 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
CreateTriBuffer ( int primitiveCount ) : short[]

메소드 상세

DrawTris() 공개 메소드

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
리턴 void

Render() 공개 메소드

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
리턴 void

VectorRenderer() 공개 메소드

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