extracted rendering struct for textured box example