Computer graphics in Game development
Ivan Belyavtsev
19.02.2021
This part of course is going to be boring. There is plenty of preliminary work. We’ll get a somehow working application tomorrow
The 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(REFIID riid, LPVOID *ppv)
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]