• fullscreen DXGI DX11


    these days i am fullfilling full screen

    https://github.com/rufelt/simpled3d11window

    put this one  in phyreengine interfaced3d11

    http://www.rastertek.com/dx11tut03.html

    this link is useful to understand the initialize dx

    https://msdn.microsoft.com/en-us/library/windows/desktop/ee417025(v=vs.85).aspx

    this is docs in msdn

    终于可以输入中文了。。。。。

    做了个fake full screen

    真全屏会卡在swapchain-present那里 应该是多线程的缘故

    ------------------------

    基本就是用winapi做的 

    这个问题是,去掉边框。。

    LONG lExStyle = GetWindowLong(hwnd, GWL_EXSTYLE);
    lExStyle &= ~(WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE | WS_EX_STATICEDGE);
    SetWindowLong(hwnd, GWL_EXSTYLE, lExStyle);

    http://stackoverflow.com/questions/2398746/removing-window-border

    createwindow 的窗体由style决定,用这个方式可以在运行时改变窗体style 

    用changeDisplaySetting(,CDS_FULLSCREEN);

    具体查msdn

    下一个问题是

    从全屏模式设置回窗口模式

     ---------------------------------------------------------

    项目就用假全屏对付过去了实时切换

    ChangeDisplaySettings(NULL,CDS_RESET);

    DEVMODE dmScreenSettings;
    memset (&dmScreenSettings, 0, sizeof (dmScreenSettings));
    dmScreenSettings.dmSize = sizeof (dmScreenSettings);   
    dmScreenSettings.dmPelsWidth = 1280;
    dmScreenSettings.dmPelsHeight = 720;    
    dmScreenSettings.dmBitsPerPel = 32;      
    dmScreenSettings.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;
    

    ChangeDisplaySettings(&dmScreenSettings,CDS_FULLSCREEN);

    再设置下窗口模式就可以了

    http://stackoverflow.com/questions/3549148/fullscreen-management-with-winapi

    ----------------------------------------------------------------------------------

    但是,这就是一个win的程序啊,根据程序员的道德修养,我还在写真全屏,希望会有进展。。。。

  • 相关阅读:
    Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 (Div. 1)D. Frequency of String
    edu30F. Forbidden Indices
    QQ登录模拟GUI综合
    Thread与Runnable线程继承与实现
    windowsProgram系统强制隐藏解除代码
    最长公共上升子序列(LCIS问题)
    分层图学习笔记 & [JLOI2011]飞行路线题解
    Luogu P1441 砝码称重
    NOIP 2020 复习计划
    浅析BST二叉搜索树
  • 原文地址:https://www.cnblogs.com/minggoddess/p/4366780.html
Copyright © 2020-2023  润新知