mirror of
https://github.com/g-truc/glm.git
synced 2024-11-13 22:01:46 +00:00
32 lines
408 B
C++
32 lines
408 B
C++
#include <glm/glm.hpp>
|
|
|
|
#if GLM_USE_ANONYMOUS_STRUCT == GLM_ENABLE
|
|
struct vec2;
|
|
|
|
struct _swizzle
|
|
{
|
|
char _buffer[1];
|
|
};
|
|
|
|
struct vec2
|
|
{
|
|
GLM_CONSTEXPR 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;
|
|
}
|