Ignore:
Timestamp:
Sep 9, 2013, 12:30:11 AM (6 years ago)
Author:
touky
Message:

btPhysTest : Added a new test mode called "CAT_MODE". Try it out at your own risks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/easymesh/easymesh.cpp

    r2816 r2879  
    354354        COPY_VBO;
    355355    }
     356    else if (has_position && has_color && has_texcoord && has_texcoordExt && flagnb == 4)
     357    {
     358        new_vdecl = new VertexDeclaration(VertexStream<vec3,vec4,vec4>(VertexUsage::Position, VertexUsage::Color, VertexUsage::TexCoord));
     359
     360        Array<vec3, vec4, vec4> vertexlist;
     361        for (int i = 0; i < src_mesh->m_vert.Count(); i++)
     362            vertexlist.Push(src_mesh->m_vert[i].m_coord, src_mesh->m_vert[i].m_color, src_mesh->m_vert[i].m_texcoord);
     363
     364        vbo_data = &vertexlist[0];
     365        vbo_bytes = vertexlist.Bytes();
     366        m_vertexcount = vertexlist.Count();
     367
     368        COPY_VBO;
     369    }
     370    else
     371        ASSERT(!saveflags, "Vertex Declaration combination is not implemented for %s, feel free to do so.",
     372           VertexUsage::GetNameList(vflags).C());
    356373
    357374    m_vdatas.Push(vflags, new_vdecl, new_vbo);
Note: See TracChangeset for help on using the changeset viewer.