Outputs a string to the debugger output and stdout
| 103 | |
| 104 | // Outputs a string to the debugger output and stdout |
| 105 | inline void DebugPrint(const std::wstring& str) |
| 106 | { |
| 107 | std::wstring output = str + L"\n"; |
| 108 | OutputDebugStringW(output.c_str()); |
| 109 | std::printf("%ls", output.c_str()); |
| 110 | } |
| 111 | |
| 112 | // Gets an index from an index buffer |
| 113 | inline uint32 GetIndex(const void* indices, uint32 idx, uint32 indexSize) |