This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID3D11Buffer* m_pVertexBuffer; | |
ID3D11Buffer* m_pIndexBuffer; | |
// | |
D3D11_MAPPED_SUBRESOURCE msr = {}; | |
HRESULT hr; | |
// vertices upload | |
hr = m_context->Map(m_pVertexBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &msr); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
const char *strClassName = "UnvisibleWindowClass"; | |
const char *strTitle= " UnvisibleWindow"; | |
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) | |
{ | |
switch (message) | |
{ | |
case WM_DESTROY: |