How come getVertices is void?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
MZoltan32
Posts: 7
Joined: Wed Jul 31, 2019 2:30 pm

How come getVertices is void?

Post by MZoltan32 »

CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How come getVertices is void?

Post by CuteAlien »

Because the results depends on getVertexType(). So you have to cast to S3DVertex*, S3DVertex2TCoords* or S3DVertexTangents*.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply