My descriptor looks like this:
Code: Select all
driver->getVertexDescriptor("custom")->addAttribute("inPosition", 3, irr::video::EVAS_POSITION, irr::video::EVAT_FLOAT);
driver->getVertexDescriptor("custom")->addAttribute("inNormal", 3, irr::video::EVAS_NORMAL, irr::video::EVAT_FLOAT);
driver->getVertexDescriptor("custom")->addAttribute("inColor", 4, irr::video::EVAS_COLOR, irr::video::EVAT_UBYTE);
driver->getVertexDescriptor("custom")->addAttribute("inTexCoord0", 2, irr::video::EVAS_TEXCOORD0, irr::video::EVAT_FLOAT);
driver->getVertexDescriptor("custom")->addAttribute("inCustom", 3, irr::video::EVAS_CUSTOM, irr::video::EVAT_FLOAT);
Code: Select all
void addVertex(const T& vertex)
void addVertex(const void* vertex)