Example #1
0
        unsafe private static uvec4[] GetBoneIndexes(EZMVertexbuffer vertexbuffer)
        {
            Passbuffer passbuffer  = vertexbuffer.GetBuffer("blendindices");
            IntPtr     address     = passbuffer.Mapbuffer();
            uvec4 *    pointer     = (uvec4 *)address.ToPointer();
            int        length      = passbuffer.Length();
            var        boneIndexes = new uvec4[length];

            for (int i = 0; i < length; i++)
            {
                boneIndexes[i] = pointer[i];
            }
            passbuffer.Unmapbuffer();
            return(boneIndexes);
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="v"></param>
 public uvec3(uvec4 v)
 {
     this.x = v.x;
     this.y = v.y;
     this.z = v.z;
 }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="v"></param>
 public uvec2(uvec4 v)
 {
     this.x = v.x;
     this.y = v.y;
 }