SMesh question.

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Guest

SMesh question.

Post by Guest »

Why, does SMesh return IMeshBuffers when getMeshBuffer(); is called. I thought SMeshs were compleatly modifiable. But if a IMeshBuffer is returned, you are unable to modify that buffer.... Leaving only the option of creating a NEW SMesh, and push_back() new SMeshBuffers.??.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

That's because it derives from IMesh. If you know, that you put in ony modifiyble buffers like SMeshbuffer, simply cast them.
Post Reply