This file contains 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> | |
#include <d3d11.h> | |
#include <D3DCompiler.h> | |
bool GetCompiledShaderCode(ID3DBlob **pBlob, const char *pszShaderStr, const char *pszShaderTarget) | |
{ | |
ID3DBlob *pErrorMsgs = NULL; | |
if (!SUCCEEDED(D3DCompile( | |
pszShaderStr, |
This file contains 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 <stdio.h> | |
#include <math.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
enum float_length { | |
FLTLEN_32, | |
FLTLEN_64, | |
FLTLEN_LONG_DOUBLE | |
}; |
This file contains 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
// Shamelessly stolen from https://msdn.microsoft.com/en-us/library/windows/desktop/ms737591(v=vs.85).aspx | |
#define WIN32_LEAN_AND_MEAN | |
// Need to link with Ws2_32.lib, Mswsock.lib, and Advapi32.lib | |
#pragma comment (lib, "Ws2_32.lib") | |
#pragma comment (lib, "Mswsock.lib") | |
#pragma comment (lib, "AdvApi32.lib") | |
template <size_t recvbuflen> |
This file contains 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 <stdio.h> | |
#include <math.h> | |
#include <string.h> | |
#include <stdlib.h> | |
void print_bin(int iteration, int value) | |
{ | |
char buffer[36]; | |
memset(buffer, 0, sizeof(buffer)); | |
This file contains 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
glm::vec3 fetch_point( const point_project_pair& ppp ) | |
{ | |
return ppp.mProjected; | |
} | |
// Returns true if a intersects b | |
bool pointset_intersects( cardinal_plane_normal_t planeType, | |
contact::list_t& contacts, | |
const obb& a, | |
const obb& b, |