By Jim Sager, james_sager3@yahoo.com.
The sprite information for that cube displayed is contained in the following code in simple2.cpp:
iMeshWrapper* sprite = engine->CreateMeshWrapper (imeshfact, "MySprite", room, csVector3 (-3, 5, 3));
csMatrix3 m; m.Identity (); m *= 2.;
sprite->GetMovable ()->SetTransform (m);
sprite->GetMovable ()->UpdateMove ();
iSprite3DState* spstate = SCF_QUERY_INTERFACE (sprite->GetMeshObject (), iSprite3DState);
spstate->SetAction ("default");
imeshfact->DecRef ();
spstate->DecRef ();
// The following two calls are not needed since CS_ZBUF_USE and
// Object render priority are the default but they show how you
// can do this.
sprite->SetZBufMode (CS_ZBUF_USE);
sprite->SetRenderPriority
(engine->GetObjectRenderPriority ());
We will be working with and modifying this code