Initial Upload
This commit is contained in:
13
Graphics2/HelperFunctions.h
Normal file
13
Graphics2/HelperFunctions.h
Normal file
@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
// Various helper functions
|
||||
|
||||
using namespace std;
|
||||
|
||||
inline void ThrowIfFailed(HRESULT hr)
|
||||
{
|
||||
if (FAILED(hr))
|
||||
{
|
||||
throw exception();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user