It's not supported on Vulkan and can be replaced by LINE_STRIP by adding
one extra index at the end.
case POINTS: return GL_POINTS;
case LINES: return GL_LINES;
case LINE_STRIP: return GL_LINE_STRIP;
- case LINE_LOOP: return GL_LINE_LOOP;
case TRIANGLES: return GL_TRIANGLES;
case TRIANGLE_STRIP: return GL_TRIANGLE_STRIP;
case TRIANGLE_FAN: return GL_TRIANGLE_FAN;
{
if(other_type!=prim_type)
return false;
- else if(prim_type==LINE_STRIP || prim_type==LINE_LOOP || prim_type==TRIANGLE_FAN)
+ else if(prim_type==LINE_STRIP || prim_type==TRIANGLE_FAN)
return check_restart(false);
else
return true;
{
if(other.prim_type!=prim_type)
throw invalid_argument("Batch::append");
- if(prim_type==LINE_STRIP || prim_type==LINE_LOOP || prim_type==TRIANGLE_FAN)
+ if(prim_type==LINE_STRIP || prim_type==TRIANGLE_FAN)
check_restart(true);
if(other.data.empty())
pt = POINTS;
else if(conv.get()=="LINES")
pt = LINES;
- else if(conv.get()=="LINE_LOOP")
- pt = LINE_LOOP;
else if(conv.get()=="LINE_STRIP")
pt = LINE_STRIP;
else if(conv.get()=="TRIANGLES")
POINTS,
LINES,
LINE_STRIP,
- LINE_LOOP,
TRIANGLES,
TRIANGLE_STRIP,
TRIANGLE_FAN