예제 #1
0
파일: LineRenderer.cs 프로젝트: prime31/Nez
		void addVert( int index, Vector2 position, Vector2 texCoord, Color col )
		{
			if( position == Vector2.Zero )
				Debug.break_();
			_vertices.ensureCapacity();
			_vertices.buffer[index].Position = position.toVector3();
			_vertices.buffer[index].TextureCoordinate = texCoord;
			_vertices.buffer[index].Color = col;
			_vertices.length++;
		}