DrawWireframe Bugs on IOS

I’ve found that drawWireFrame method draws different on ios than desktop.

Here's the code

//on ofApp.h
ofPlanePrimitive plane;
 ofEasyCam cam;


//on ofApp.mm
void ofApp::draw(){
    cam.begin();
    plane.drawWireframe();
    cam.end();
}

And when i draw a sphere,and use

ofNoFill();
ofSetSphereResolution(3);
ofDrawSphere(100);

replace

plane.drawWireframe();

will also have Bugs.

i have test on ios0.90 and ios0.92

This is because the wireframe drawing mode on OS X with OpenGL is not available with OpenGL ES. There isn’t an easy way to emulate this without generating a completely seperate mesh.

So on iOS if you want a wireframe mesh, you’ll need to generate it by hand unfortunately.

We might try and add some helper in the future to do this, but people should be aware that it will have additional overhead as the iOS GL pipeline can’t do it on the GPU

Thanks,theo:),Now i know that’s the OpenGL ES reason