Loading...
Searching...
No Matches
Glsl.h
Go to the documentation of this file.
1
2//
3// SFML - Simple and Fast Multimedia Library
4// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
5//
6// This software is provided 'as-is', without any express or implied warranty.
7// In no event will the authors be held liable for any damages arising from the use of this software.
8//
9// Permission is granted to anyone to use this software for any purpose,
10// including commercial applications, and to alter it and redistribute it freely,
11// subject to the following restrictions:
12//
13// 1. The origin of this software must not be misrepresented;
14// you must not claim that you wrote the original software.
15// If you use this software in a product, an acknowledgment
16// in the product documentation would be appreciated but is not required.
17//
18// 2. Altered source versions must be plainly marked as such,
19// and must not be misrepresented as being the original software.
20//
21// 3. This notice may not be removed or altered from any source distribution.
22//
24
25#pragma once
26
28// Headers
34
35// 2D vectors
38
39typedef struct
40{
41 bool x;
42 bool y;
44
45// 3D vectors
47
48typedef struct
49{
50 int x;
51 int y;
52 int z;
54
55typedef struct
56{
57 bool x;
58 bool y;
59 bool z;
61
62// 4D vectors
63typedef struct
64{
65 float x;
66 float y;
67 float z;
68 float w;
70
71typedef struct
72{
73 int x;
74 int y;
75 int z;
76 int w;
78
79typedef struct
80{
81 bool x;
82 bool y;
83 bool z;
84 bool w;
86
87// matrices
88typedef struct
89{
90 float array[3 * 3];
92
93typedef struct
94{
95 float array[4 * 4];
sfVector2i sfGlslIvec2
Definition Glsl.h:37
sfVector2f sfGlslVec2
Definition Glsl.h:36
sfVector3f sfGlslVec3
Definition Glsl.h:46
bool x
Definition Glsl.h:41
bool y
Definition Glsl.h:42
bool y
Definition Glsl.h:58
bool z
Definition Glsl.h:59
bool x
Definition Glsl.h:57
bool w
Definition Glsl.h:84
bool y
Definition Glsl.h:82
bool x
Definition Glsl.h:81
bool z
Definition Glsl.h:83
int z
Definition Glsl.h:52
int x
Definition Glsl.h:50
int y
Definition Glsl.h:51
int z
Definition Glsl.h:75
int x
Definition Glsl.h:73
int y
Definition Glsl.h:74
int w
Definition Glsl.h:76
float z
Definition Glsl.h:67
float w
Definition Glsl.h:68
float y
Definition Glsl.h:66
float x
Definition Glsl.h:65
2-component vector of floats
Definition Vector2.h:60
2-component vector of integers
Definition Vector2.h:38
3-component vector of floats
Definition Vector3.h:38