Add codes for raytrace example(W.I.P.)

This commit is contained in:
Syoyo Fujita
2017-07-23 19:11:39 +09:00
parent c0beef73a1
commit cd5c5f0ea0
1213 changed files with 309859 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#include <glm/glm.hpp>
#if GLM_HAS_ALIGNED_TYPE
struct vec2;
struct _swizzle
{
char _buffer[1];
};
struct vec2
{
GLM_CONSTEXPR_CTOR vec2() :
x(0), y(0)
{}
union
{
struct { float x, y; };
struct { _swizzle xx; };
};
};
#endif
// Visual C++ has a bug generating the error: fatal error C1001: An internal error has occurred in the compiler.
// vec2 Bar;
int main()
{
return 0;
}