NIF文件导入到场景(VS2008)

来源:互联网 发布:东华软件股票怎么样 编辑:程序博客网 时间:2024/05/18 03:05
    NiStream kStream;    // Load in the scenegraph for our world...    bool bSuccess = kStream.Load(NiApplication::ConvertMediaFilename("WOdRLD.NIF"));    if (!bSuccess)    {        NiMessageBox("WORLD.NIF file could not be loaded!", "NIF Error");        return false;    }    m_spScene = (NiNode*) kStream.GetObjectAt(0);    NIASSERT(NiIsKindOf(NiNode, m_spScene));


 

原创粉丝点击