示例#1
0
文件: stage.cpp 项目: aonorin/KGLT
ActorID Stage::new_actor() {
    ActorID result = ActorManager::manager_new();
    actor(result)->set_parent(this);

    //Tell everyone about the new actor
    signal_actor_created_(result);
    return result;
}
示例#2
0
文件: stage.cpp 项目: chenbk85/KGLT
ActorID Stage::new_actor(MeshID mid) {
    ActorID result = ActorManager::manager_new();

    //If a mesh was specified, set it
    if(mid) {
        actor(result).set_mesh(mid);
    }

    //Tell everyone about the new actor
    signal_actor_created_(result);

    return result;
}
示例#3
0
文件: stage.cpp 项目: aonorin/KGLT
ActorID Stage::new_actor(MeshID mid, bool make_responsive, bool make_collidable) {
    ActorID result = ActorManager::manager_new();
    actor(result)->set_parent(this);

    //If a mesh was specified, set it
    if(mid) {
        actor(result)->set_mesh(mid);
    }

    //Tell everyone about the new actor
    signal_actor_created_(result);

    return result;
}