qt中创建空白界面(osg版)

  • Post author:
  • Post category:其他


创建qt空白界面(osg版)

#include <osgWidget/Util>
#include <osgWidget/WindowManager>

const unsigned int MASK_2D = 0xF0000000;

int main() {
    osgViewer::Viewer viewer;

    osgWidget::WindowManager* wm = new osgWidget::WindowManager(
        &viewer,
        1280.0f,
        1024.0f,
        MASK_2D,
        osgWidget::WindowManager::WM_PICK_DEBUG
    );

    wm->setPointerFocusMode(osgWidget::WindowManager::PFM_SLOPPY);

    return osgWidget::createExample(viewer, wm);
}



版权声明:本文为qq_45531709原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。