Computer graphics in Game development
Ivan Belyavtsev
20.11.2020
TODO: Add a repo
premake vs2019
)DX12 installation check
projectThe Microsoft Component Object Model (COM) is a platform-independent, distributed, object-oriented system for creating binary software components that can interact[1].
All COM interfaces inherit from the IUnknown
interface.
IUnknown
interface has the next functions:
QueryInterface
AddRef
Release
[1]Use the IID_PPV_ARGS
macro to get both arguments
Microsoft::WRL::ComPtr is a C++ template smart-pointer for COM objects that is used extensively in Windows Runtime (WinRT) C++ programming.
wrl/client.h
Microsoft::WRL::ComPtr
WNDCLASS
or WNDCLASSEX
instanceRegisterClass
or RegisterClassEx
callCreateWindow
or CreateWindowEx
and keep HWND
resultsShowWindows
to present [3]GetMessage
or PeekMessage
TranslateMessage
to make the message readableDispatchMessage
to handling (DispatchMessage
calls the windows procedure from WNDCLASS
) [3]