SDK Question

Archives Forums/Blitz3D SDK Programming/SDK Question

Reda Borchardt(Posted 2008) [#1]
Hello,

I haven't bought the SDK yet and I have a question.

Will I be able to manage Blitz types using stl vectors?

Example:
vector<BBEntityMesh> kitchenware;
kitchenware.push_back(bbLoadMesh( "media/teapot/teapot.x"));

Kind regards
Reda Borchardt


Moraldi(Posted 2008) [#2]
I think an implementation like this will not have any problem:
class AClass
{
  public:
    AClass();
    AClass(const char *filename);
    ~AClass();
.
.
.
  protected:
    BBEntity mesh;
}
.
.
.

then
vector<AClass *> kitchenware;
kitchenware.push_back((AClass *)new AClass("media/teapot/teapot.x"));

You must implement the second AClass constructor to build the mesh using the bbLoadMesh function


Reda Borchardt(Posted 2008) [#3]
Thank you very much for your prompt reply.