| 1 | /************************************************************************************** |
| 2 | # 076 Free License |
| 3 | |
| 4 | Copyright (c) テクニカル諏訪子 |
| 5 | |
| 6 | Permission is hereby granted to any person obtaining a copy of the software |
| 7 | GLSLテスター (the "Software") to use, modify, merge, copy, publish, distribute, |
| 8 | sublicense, and/or sell copies of the Software, subject to the following conditions: |
| 9 | |
| 10 | 1. **Origin Attribution**: |
| 11 | - You must not misrepresent the origin of the Software; you must not claim |
| 12 | you created the original Software. |
| 13 | 2. **Notice Preservation**: |
| 14 | - This license and the above copyright notice must remain intact in all copies |
| 15 | of the source code. |
| 16 | |
| 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
| 18 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A |
| 19 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
| 21 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE |
| 22 | OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 23 | **************************************************************************************/ |
| 24 | #pragma once |
| 25 | |
| 26 | typedef union { |
| 27 | struct { |
| 28 | float x; |
| 29 | float y; |
| 30 | }; |
| 31 | struct { |
| 32 | float u; |
| 33 | float v; |
| 34 | }; |
| 35 | } Vector2; |
| 36 | |
| 37 | typedef union { |
| 38 | struct { |
| 39 | float x; |
| 40 | float y; |
| 41 | float z; |
| 42 | }; |
| 43 | struct { |
| 44 | float r; |
| 45 | float g; |
| 46 | float b; |
| 47 | }; |
| 48 | } Vector3; |
| 49 | |
| 50 | typedef union { |
| 51 | struct { |
| 52 | float x; |
| 53 | float y; |
| 54 | float z; |
| 55 | float w; |
| 56 | }; |
| 57 | struct { |
| 58 | float r; |
| 59 | float g; |
| 60 | float b; |
| 61 | float a; |
| 62 | }; |
| 63 | } Vector4; |