2017-01-07 12:49:45 +01:00
|
|
|
#include <glm/glm.hpp>
|
|
|
|
|
|
2018-07-31 23:05:48 +02:00
|
|
|
#if GLM_CONFIG_ANONYMOUS_STRUCT == GLM_ENABLE
|
2017-01-04 23:35:02 +01:00
|
|
|
struct vec2;
|
2017-01-04 23:19:48 +01:00
|
|
|
|
2017-01-04 23:35:02 +01:00
|
|
|
struct _swizzle
|
2017-01-04 23:19:48 +01:00
|
|
|
{
|
|
|
|
|
char _buffer[1];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct vec2
|
|
|
|
|
{
|
2018-07-24 23:41:55 +02:00
|
|
|
GLM_CONSTEXPR vec2() :
|
2017-01-04 23:41:35 +01:00
|
|
|
x(0), y(0)
|
2017-01-04 23:19:48 +01:00
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
{
|
2017-01-04 23:35:02 +01:00
|
|
|
struct { float x, y; };
|
|
|
|
|
struct { _swizzle xx; };
|
2017-01-04 23:19:48 +01:00
|
|
|
};
|
|
|
|
|
};
|
2017-01-07 12:49:45 +01:00
|
|
|
#endif
|
2017-01-04 23:19:48 +01:00
|
|
|
|
2017-01-04 22:54:15 +01:00
|
|
|
// Visual C++ has a bug generating the error: fatal error C1001: An internal error has occurred in the compiler.
|
2017-01-07 12:15:08 +01:00
|
|
|
// vec2 Bar;
|
2016-09-25 10:29:08 +02:00
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
2016-09-25 10:35:30 +02:00
|
|
|
return 0;
|
2016-09-25 10:29:08 +02:00
|
|
|
}
|