CSFML 3.0.0
Main Page
Classes
Files
File List
File Members
Loading...
Searching...
No Matches
include
CSFML
Graphics
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
30
#include <
CSFML/Graphics/Color.h
>
31
#include <
CSFML/Graphics/Transform.h
>
32
#include <
CSFML/System/Vector2.h
>
33
#include <
CSFML/System/Vector3.h
>
34
35
// 2D vectors
36
typedef
sfVector2f
sfGlslVec2
;
37
typedef
sfVector2i
sfGlslIvec2
;
38
39
typedef
struct
40
{
41
bool
x
;
42
bool
y
;
43
}
sfGlslBvec2
;
44
45
// 3D vectors
46
typedef
sfVector3f
sfGlslVec3
;
47
48
typedef
struct
49
{
50
int
x
;
51
int
y
;
52
int
z
;
53
}
sfGlslIvec3
;
54
55
typedef
struct
56
{
57
bool
x
;
58
bool
y
;
59
bool
z
;
60
}
sfGlslBvec3
;
61
62
// 4D vectors
63
typedef
struct
64
{
65
float
x
;
66
float
y
;
67
float
z
;
68
float
w
;
69
}
sfGlslVec4
;
70
71
typedef
struct
72
{
73
int
x
;
74
int
y
;
75
int
z
;
76
int
w
;
77
}
sfGlslIvec4
;
78
79
typedef
struct
80
{
81
bool
x
;
82
bool
y
;
83
bool
z
;
84
bool
w
;
85
}
sfGlslBvec4
;
86
87
// matrices
88
typedef
struct
89
{
90
float
array
[3 * 3];
91
}
sfGlslMat3
;
92
93
typedef
struct
94
{
95
float
array
[4 * 4];
96
}
sfGlslMat4
;
Color.h
sfGlslIvec2
sfVector2i sfGlslIvec2
Definition
Glsl.h:37
sfGlslVec2
sfVector2f sfGlslVec2
Definition
Glsl.h:36
sfGlslVec3
sfVector3f sfGlslVec3
Definition
Glsl.h:46
Transform.h
Vector2.h
Vector3.h
sfGlslBvec2
Definition
Glsl.h:40
sfGlslBvec2::x
bool x
Definition
Glsl.h:41
sfGlslBvec2::y
bool y
Definition
Glsl.h:42
sfGlslBvec3
Definition
Glsl.h:56
sfGlslBvec3::y
bool y
Definition
Glsl.h:58
sfGlslBvec3::z
bool z
Definition
Glsl.h:59
sfGlslBvec3::x
bool x
Definition
Glsl.h:57
sfGlslBvec4
Definition
Glsl.h:80
sfGlslBvec4::w
bool w
Definition
Glsl.h:84
sfGlslBvec4::y
bool y
Definition
Glsl.h:82
sfGlslBvec4::x
bool x
Definition
Glsl.h:81
sfGlslBvec4::z
bool z
Definition
Glsl.h:83
sfGlslIvec3
Definition
Glsl.h:49
sfGlslIvec3::z
int z
Definition
Glsl.h:52
sfGlslIvec3::x
int x
Definition
Glsl.h:50
sfGlslIvec3::y
int y
Definition
Glsl.h:51
sfGlslIvec4
Definition
Glsl.h:72
sfGlslIvec4::z
int z
Definition
Glsl.h:75
sfGlslIvec4::x
int x
Definition
Glsl.h:73
sfGlslIvec4::y
int y
Definition
Glsl.h:74
sfGlslIvec4::w
int w
Definition
Glsl.h:76
sfGlslMat3
Definition
Glsl.h:89
sfGlslMat3::array
float array[3 *3]
Definition
Glsl.h:90
sfGlslMat4
Definition
Glsl.h:94
sfGlslMat4::array
float array[4 *4]
Definition
Glsl.h:95
sfGlslVec4
Definition
Glsl.h:64
sfGlslVec4::z
float z
Definition
Glsl.h:67
sfGlslVec4::w
float w
Definition
Glsl.h:68
sfGlslVec4::y
float y
Definition
Glsl.h:66
sfGlslVec4::x
float x
Definition
Glsl.h:65
sfVector2f
2-component vector of floats
Definition
Vector2.h:60
sfVector2i
2-component vector of integers
Definition
Vector2.h:38
sfVector3f
3-component vector of floats
Definition
Vector3.h:38