예제 #1
0
        public override void UnPrepareInstanced(RendererContext rc, VertexBufferLayoutKind[] vblks)
        {
            rc._2DVertexBufferArray.BindVertexBufferArray();

            for (int i = 0; i < vblks.Length; i++)
                rc.DisableVertexAttribute((int)vblks[i].AttributeID);

            rc._2DVertexBufferArray.UnbindVertexBufferArray();
        }
예제 #2
0
        public override void UnPrepareInstanced(RendererContext rc, VertexBufferLayoutKind[] vblks)
        {
            if (MyModel != null)
            {
                foreach (Mesh msh in MyModel.Meshes)
                {
                    msh.m_VertexBufferArray.BindVertexBufferArray();

                    foreach (VertexBufferLayoutKind vblk in vblks)
                        rc.DisableVertexAttribute((int)vblk.AttributeID);

                    msh.m_VertexBufferArray.UnbindVertexBufferArray();
                }
            }
            else
                this.ErrorCount++;
        }