diff --git a/DerClouProfiData.zip b/DerClouProfiData.zip
new file mode 100644
index 0000000..1dde50a
Binary files /dev/null and b/DerClouProfiData.zip differ
diff --git a/DerClouProfiData/DATA/ANTIETA.GRE b/DerClouProfiData/DATA/ANTIETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/ANTIETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/ANTIETA.SPO b/DerClouProfiData/DATA/ANTIETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/ANTIETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/ANTIETA0.DAT b/DerClouProfiData/DATA/ANTIETA0.DAT
new file mode 100644
index 0000000..de84705
Binary files /dev/null and b/DerClouProfiData/DATA/ANTIETA0.DAT differ
diff --git a/DerClouProfiData/DATA/ANTIETA0.LFD b/DerClouProfiData/DATA/ANTIETA0.LFD
new file mode 100644
index 0000000..1529f8a
--- /dev/null
+++ b/DerClouProfiData/DATA/ANTIETA0.LFD
@@ -0,0 +1 @@
+������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/ANTIETA0.REL b/DerClouProfiData/DATA/ANTIETA0.REL
new file mode 100644
index 0000000..d23e4aa
--- /dev/null
+++ b/DerClouProfiData/DATA/ANTIETA0.REL
@@ -0,0 +1,385 @@
+RELF
+RTAB
+80011
+RTAB
+80010
+RTAB
+80007
+80093
+9614
+200
+80094
+9606
+100
+80102
+9602
+150
+80095
+9606
+150
+80099
+9602
+300
+80099
+9613
+90
+80094
+9620
+150
+RTAB
+80006
+RTAB
+80005
+80106
+80099
+-1
+80099
+80106
+-1
+80106
+80094
+-1
+80094
+80106
+-1
+80106
+80093
+-1
+80093
+80106
+-1
+RTAB
+80004
+80080
+9102
+-1
+80068
+9102
+-1
+RTAB
+80003
+508007
+80086
+-1
+508007
+80085
+-1
+508007
+80084
+-1
+508007
+80083
+-1
+508007
+80082
+-1
+508007
+80081
+-1
+508007
+80080
+-1
+508007
+80079
+-1
+508007
+80078
+-1
+508007
+80077
+-1
+508007
+80076
+-1
+508007
+80075
+-1
+508007
+80074
+-1
+508007
+80073
+-1
+508007
+80072
+-1
+508007
+80071
+-1
+508007
+80033
+-1
+508007
+80032
+-1
+508007
+80031
+-1
+508007
+80030
+-1
+508007
+80029
+-1
+508007
+80028
+-1
+508007
+80027
+-1
+508007
+80026
+-1
+508007
+80025
+-1
+508007
+80024
+-1
+508007
+80023
+-1
+508007
+80022
+-1
+508007
+80021
+-1
+508007
+80020
+-1
+508007
+80019
+-1
+508007
+80018
+-1
+508007
+80017
+-1
+508007
+80016
+-1
+508007
+80015
+-1
+508007
+80014
+-1
+508007
+80013
+-1
+508007
+80012
+-1
+508007
+80011
+-1
+508007
+80010
+-1
+508007
+80009
+-1
+508007
+80008
+-1
+508007
+80007
+-1
+508007
+80006
+-1
+508007
+80005
+-1
+508007
+80004
+-1
+508007
+80003
+-1
+508007
+80002
+-1
+508007
+80001
+-1
+508007
+80034
+-1
+508007
+80035
+-1
+508007
+80036
+-1
+508007
+80037
+-1
+508007
+80038
+-1
+508007
+80039
+-1
+508007
+80040
+-1
+508007
+80041
+-1
+508007
+80042
+-1
+508007
+80043
+-1
+508007
+80044
+-1
+508007
+80045
+-1
+508007
+80046
+-1
+508007
+80047
+-1
+508007
+80048
+-1
+508007
+80049
+-1
+508007
+80050
+-1
+508007
+80051
+-1
+508007
+80052
+-1
+508007
+80053
+-1
+508007
+80054
+-1
+508007
+80055
+-1
+508007
+80056
+-1
+508007
+80057
+-1
+508007
+80058
+-1
+508007
+80059
+-1
+508007
+80060
+-1
+508007
+80061
+-1
+508007
+80062
+-1
+508007
+80063
+-1
+508007
+80064
+-1
+508007
+80065
+-1
+508007
+80066
+-1
+508007
+80067
+-1
+508007
+80068
+-1
+508007
+80069
+-1
+508007
+80070
+-1
+508007
+80093
+-1
+508007
+80094
+-1
+508007
+80095
+-1
+508007
+80096
+-1
+508007
+80097
+-1
+508007
+80098
+-1
+508007
+80099
+-1
+508007
+80100
+-1
+508007
+80101
+-1
+508007
+80102
+-1
+508007
+80103
+-1
+508007
+80104
+-1
+508007
+80105
+-1
+508007
+80106
+-1
+508007
+80107
+-1
+508007
+80108
+-1
+508007
+80109
+-1
+508007
+80110
+-1
+508007
+80111
+-1
+508007
+80112
+-1
+508007
+80113
+-1
+508007
+80114
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/AUNTETA.GRE b/DerClouProfiData/DATA/AUNTETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/AUNTETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/AUNTETA.SPO b/DerClouProfiData/DATA/AUNTETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/AUNTETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/AUNTETA0.DAT b/DerClouProfiData/DATA/AUNTETA0.DAT
new file mode 100644
index 0000000..295a985
Binary files /dev/null and b/DerClouProfiData/DATA/AUNTETA0.DAT differ
diff --git a/DerClouProfiData/DATA/AUNTETA0.LFD b/DerClouProfiData/DATA/AUNTETA0.LFD
new file mode 100644
index 0000000..b574944
--- /dev/null
+++ b/DerClouProfiData/DATA/AUNTETA0.LFD
@@ -0,0 +1 @@
+���������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/AUNTETA0.REL b/DerClouProfiData/DATA/AUNTETA0.REL
new file mode 100644
index 0000000..58acc32
--- /dev/null
+++ b/DerClouProfiData/DATA/AUNTETA0.REL
@@ -0,0 +1,304 @@
+RELF
+RTAB
+40011
+RTAB
+40010
+RTAB
+40007
+40071
+9611
+35
+40085
+9604
+60
+40081
+9604
+40
+40080
+9608
+20
+40081
+9608
+30
+40075
+9604
+40
+40073
+9604
+60
+40073
+9608
+10
+40075
+9604
+110
+40071
+9604
+60
+40079
+9602
+128
+RTAB
+40006
+RTAB
+40005
+RTAB
+40004
+40053
+9102
+-1
+40029
+9102
+-1
+RTAB
+40003
+508003
+40085
+-1
+508003
+40084
+-1
+508003
+40083
+-1
+508003
+40082
+-1
+508003
+40081
+-1
+508003
+40080
+-1
+508003
+40079
+-1
+508003
+40078
+-1
+508003
+40077
+-1
+508003
+40076
+-1
+508003
+40075
+-1
+508003
+40073
+-1
+508003
+40071
+-1
+508003
+40070
+-1
+508003
+40069
+-1
+508003
+40068
+-1
+508003
+40067
+-1
+508003
+40066
+-1
+508003
+40065
+-1
+508003
+40064
+-1
+508003
+40063
+-1
+508003
+40062
+-1
+508003
+40061
+-1
+508003
+40060
+-1
+508003
+40059
+-1
+508003
+40058
+-1
+508003
+40057
+-1
+508003
+40056
+-1
+508003
+40055
+-1
+508003
+40054
+-1
+508003
+40053
+-1
+508003
+40052
+-1
+508003
+40051
+-1
+508003
+40050
+-1
+508003
+40049
+-1
+508003
+40048
+-1
+508003
+40047
+-1
+508003
+40046
+-1
+508003
+40045
+-1
+508003
+40044
+-1
+508003
+40043
+-1
+508003
+40042
+-1
+508003
+40041
+-1
+508003
+40040
+-1
+508003
+40039
+-1
+508003
+40038
+-1
+508003
+40037
+-1
+508003
+40036
+-1
+508003
+40035
+-1
+508003
+40034
+-1
+508003
+40033
+-1
+508003
+40032
+-1
+508003
+40031
+-1
+508003
+40030
+-1
+508003
+40029
+-1
+508003
+40028
+-1
+508003
+40027
+-1
+508003
+40026
+-1
+508003
+40025
+-1
+508003
+40024
+-1
+508003
+40023
+-1
+508003
+40022
+-1
+508003
+40021
+-1
+508003
+40020
+-1
+508003
+40019
+-1
+508003
+40018
+-1
+508003
+40017
+-1
+508003
+40016
+-1
+508003
+40015
+-1
+508003
+40014
+-1
+508003
+40013
+-1
+508003
+40012
+-1
+508003
+40011
+-1
+508003
+40010
+-1
+508003
+40009
+-1
+508003
+40001
+-1
+508003
+40002
+-1
+508003
+40003
+-1
+508003
+40004
+-1
+508003
+40005
+-1
+508003
+40006
+-1
+508003
+40007
+-1
+508003
+40008
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BAKEETA.GRE b/DerClouProfiData/DATA/BAKEETA.GRE
new file mode 100644
index 0000000..716f9d9
--- /dev/null
+++ b/DerClouProfiData/DATA/BAKEETA.GRE
@@ -0,0 +1,14 @@
+RELF
+RTAB
+3
+530073
+530073
+508101
+520104
+520104
+508102
+RTAB
+2
+RTAB
+1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BAKEETA.SPO b/DerClouProfiData/DATA/BAKEETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/BAKEETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BAKEETA0.DAT b/DerClouProfiData/DATA/BAKEETA0.DAT
new file mode 100644
index 0000000..aef0e76
Binary files /dev/null and b/DerClouProfiData/DATA/BAKEETA0.DAT differ
diff --git a/DerClouProfiData/DATA/BAKEETA0.LFD b/DerClouProfiData/DATA/BAKEETA0.LFD
new file mode 100644
index 0000000..7017451
--- /dev/null
+++ b/DerClouProfiData/DATA/BAKEETA0.LFD
@@ -0,0 +1 @@
+������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BAKEETA0.REL b/DerClouProfiData/DATA/BAKEETA0.REL
new file mode 100644
index 0000000..52a5d79
--- /dev/null
+++ b/DerClouProfiData/DATA/BAKEETA0.REL
@@ -0,0 +1,425 @@
+RELF
+RTAB
+520010
+RTAB
+520007
+520107
+9611
+10
+520118
+9600
+1
+520117
+9600
+1
+520116
+9600
+5
+520115
+9600
+100
+520113
+9600
+500
+520112
+9609
+5
+RTAB
+520006
+RTAB
+520005
+RTAB
+520004
+520055
+9102
+-1
+520074
+9102
+-1
+520075
+9102
+-1
+520080
+9102
+-1
+520098
+9102
+-1
+RTAB
+520003
+508101
+520123
+-1
+508101
+520122
+-1
+508101
+520121
+-1
+508101
+520120
+-1
+508101
+520119
+-1
+508101
+520118
+-1
+508101
+520117
+-1
+508101
+520116
+-1
+508101
+520115
+-1
+508101
+520114
+-1
+508101
+520113
+-1
+508101
+520112
+-1
+508101
+520111
+-1
+508101
+520110
+-1
+508101
+520109
+-1
+508101
+520108
+-1
+508101
+520107
+-1
+508101
+520106
+-1
+508101
+520105
+-1
+508101
+520001
+-1
+508101
+520002
+-1
+508101
+520003
+-1
+508101
+520004
+-1
+508101
+520005
+-1
+508101
+520006
+-1
+508101
+520007
+-1
+508101
+520008
+-1
+508101
+520009
+-1
+508101
+520010
+-1
+508101
+520011
+-1
+508101
+520012
+-1
+508101
+520013
+-1
+508101
+520014
+-1
+508101
+520015
+-1
+508101
+520016
+-1
+508101
+520017
+-1
+508101
+520018
+-1
+508101
+520019
+-1
+508101
+520020
+-1
+508101
+520021
+-1
+508101
+520022
+-1
+508101
+520023
+-1
+508101
+520024
+-1
+508101
+520025
+-1
+508101
+520026
+-1
+508101
+520027
+-1
+508101
+520028
+-1
+508101
+520029
+-1
+508101
+520030
+-1
+508101
+520031
+-1
+508101
+520032
+-1
+508101
+520033
+-1
+508101
+520034
+-1
+508101
+520035
+-1
+508101
+520036
+-1
+508101
+520037
+-1
+508101
+520038
+-1
+508101
+520039
+-1
+508101
+520040
+-1
+508101
+520041
+-1
+508101
+520042
+-1
+508101
+520043
+-1
+508101
+520044
+-1
+508101
+520045
+-1
+508101
+520046
+-1
+508101
+520047
+-1
+508101
+520048
+-1
+508101
+520049
+-1
+508101
+520050
+-1
+508101
+520051
+-1
+508101
+520052
+-1
+508101
+520053
+-1
+508101
+520054
+-1
+508101
+520055
+-1
+508101
+520056
+-1
+508101
+520057
+-1
+508101
+520058
+-1
+508101
+520059
+-1
+508101
+520060
+-1
+508101
+520061
+-1
+508101
+520062
+-1
+508101
+520063
+-1
+508101
+520064
+-1
+508101
+520065
+-1
+508101
+520066
+-1
+508101
+520067
+-1
+508101
+520068
+-1
+508101
+520069
+-1
+508101
+520070
+-1
+508101
+520071
+-1
+508101
+520072
+-1
+508101
+520073
+-1
+508101
+520074
+-1
+508101
+520075
+-1
+508101
+520076
+-1
+508101
+520077
+-1
+508101
+520078
+-1
+508101
+520079
+-1
+508101
+520080
+-1
+508101
+520081
+-1
+508101
+520082
+-1
+508101
+520083
+-1
+508101
+520084
+-1
+508101
+520085
+-1
+508101
+520086
+-1
+508101
+520087
+-1
+508101
+520088
+-1
+508101
+520089
+-1
+508101
+520090
+-1
+508101
+520091
+-1
+508101
+520092
+-1
+508101
+520093
+-1
+508101
+520094
+-1
+508101
+520095
+-1
+508101
+520096
+-1
+508101
+520097
+-1
+508101
+520098
+-1
+508101
+520099
+-1
+508101
+520100
+-1
+508101
+520101
+-1
+508101
+520102
+-1
+508101
+520103
+-1
+508101
+520104
+-1
+508101
+520124
+-1
+508101
+520125
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BAKEETA1.DAT b/DerClouProfiData/DATA/BAKEETA1.DAT
new file mode 100644
index 0000000..9f7aaf6
Binary files /dev/null and b/DerClouProfiData/DATA/BAKEETA1.DAT differ
diff --git a/DerClouProfiData/DATA/BAKEETA1.LFD b/DerClouProfiData/DATA/BAKEETA1.LFD
new file mode 100644
index 0000000..ca9525a
--- /dev/null
+++ b/DerClouProfiData/DATA/BAKEETA1.LFD
@@ -0,0 +1 @@
+�����������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BAKEETA1.REL b/DerClouProfiData/DATA/BAKEETA1.REL
new file mode 100644
index 0000000..771ca77
--- /dev/null
+++ b/DerClouProfiData/DATA/BAKEETA1.REL
@@ -0,0 +1,440 @@
+RELF
+RTAB
+530010
+RTAB
+530007
+530133
+9606
+250
+530129
+9602
+100
+530124
+9608
+20
+530124
+9602
+80
+530133
+9637
+3500
+530131
+9600
+50
+RTAB
+530006
+RTAB
+530005
+RTAB
+530004
+530075
+9102
+-1
+530079
+9102
+-1
+530100
+9102
+-1
+530106
+9102
+-1
+530111
+9102
+-1
+RTAB
+530003
+508102
+530129
+-1
+508102
+530128
+-1
+508102
+530127
+-1
+508102
+530125
+-1
+508102
+530124
+-1
+508102
+530123
+-1
+508102
+530119
+-1
+508102
+530118
+-1
+508102
+530117
+-1
+508102
+530116
+-1
+508102
+530115
+-1
+508102
+530072
+-1
+508102
+530071
+-1
+508102
+530070
+-1
+508102
+530069
+-1
+508102
+530068
+-1
+508102
+530067
+-1
+508102
+530066
+-1
+508102
+530065
+-1
+508102
+530064
+-1
+508102
+530063
+-1
+508102
+530062
+-1
+508102
+530061
+-1
+508102
+530060
+-1
+508102
+530059
+-1
+508102
+530058
+-1
+508102
+530057
+-1
+508102
+530056
+-1
+508102
+530055
+-1
+508102
+530054
+-1
+508102
+530053
+-1
+508102
+530052
+-1
+508102
+530051
+-1
+508102
+530050
+-1
+508102
+530049
+-1
+508102
+530048
+-1
+508102
+530047
+-1
+508102
+530046
+-1
+508102
+530045
+-1
+508102
+530044
+-1
+508102
+530043
+-1
+508102
+530042
+-1
+508102
+530041
+-1
+508102
+530040
+-1
+508102
+530039
+-1
+508102
+530038
+-1
+508102
+530037
+-1
+508102
+530036
+-1
+508102
+530035
+-1
+508102
+530034
+-1
+508102
+530033
+-1
+508102
+530032
+-1
+508102
+530031
+-1
+508102
+530030
+-1
+508102
+530029
+-1
+508102
+530028
+-1
+508102
+530027
+-1
+508102
+530026
+-1
+508102
+530025
+-1
+508102
+530024
+-1
+508102
+530023
+-1
+508102
+530022
+-1
+508102
+530021
+-1
+508102
+530020
+-1
+508102
+530019
+-1
+508102
+530018
+-1
+508102
+530017
+-1
+508102
+530016
+-1
+508102
+530015
+-1
+508102
+530014
+-1
+508102
+530013
+-1
+508102
+530012
+-1
+508102
+530011
+-1
+508102
+530010
+-1
+508102
+530009
+-1
+508102
+530008
+-1
+508102
+530007
+-1
+508102
+530006
+-1
+508102
+530005
+-1
+508102
+530004
+-1
+508102
+530003
+-1
+508102
+530002
+-1
+508102
+530001
+-1
+508102
+530073
+-1
+508102
+530074
+-1
+508102
+530075
+-1
+508102
+530076
+-1
+508102
+530077
+-1
+508102
+530078
+-1
+508102
+530079
+-1
+508102
+530080
+-1
+508102
+530081
+-1
+508102
+530082
+-1
+508102
+530083
+-1
+508102
+530084
+-1
+508102
+530085
+-1
+508102
+530086
+-1
+508102
+530087
+-1
+508102
+530088
+-1
+508102
+530089
+-1
+508102
+530090
+-1
+508102
+530091
+-1
+508102
+530092
+-1
+508102
+530093
+-1
+508102
+530094
+-1
+508102
+530095
+-1
+508102
+530096
+-1
+508102
+530097
+-1
+508102
+530098
+-1
+508102
+530099
+-1
+508102
+530100
+-1
+508102
+530101
+-1
+508102
+530102
+-1
+508102
+530103
+-1
+508102
+530104
+-1
+508102
+530105
+-1
+508102
+530106
+-1
+508102
+530107
+-1
+508102
+530108
+-1
+508102
+530109
+-1
+508102
+530110
+-1
+508102
+530111
+-1
+508102
+530112
+-1
+508102
+530113
+-1
+508102
+530114
+-1
+508102
+530130
+-1
+508102
+530131
+-1
+508102
+530132
+-1
+508102
+530133
+-1
+508102
+530134
+-1
+508102
+530135
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BANKETA.GRE b/DerClouProfiData/DATA/BANKETA.GRE
new file mode 100644
index 0000000..68cd0f3
--- /dev/null
+++ b/DerClouProfiData/DATA/BANKETA.GRE
@@ -0,0 +1,20 @@
+RELF
+RTAB
+1
+509017
+400232
+250
+509017
+400227
+280
+RTAB
+2
+400232
+400232
+250
+400227
+400227
+280
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BANKETA.GUA b/DerClouProfiData/DATA/BANKETA.GUA
new file mode 100644
index 0000000..23ad25c
--- /dev/null
+++ b/DerClouProfiData/DATA/BANKETA.GUA
@@ -0,0 +1,331 @@
+ACLI
+508500
+ACTI
+1
+12
+2
+ACTI
+1
+4
+4
+ACTI
+1
+7
+2
+ACTI
+8
+24
+400228
+ACTI
+10
+15
+400228
+ACTI
+9
+24
+400228
+ACTI
+1
+8
+8
+ACTI
+1
+5
+2
+ACTI
+10
+15
+400119
+ACTI
+8
+9
+400119
+ACTI
+1
+1
+8
+ACTI
+1
+13
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+400119
+ACTI
+1
+31
+2
+ACTI
+1
+3
+8
+ACTI
+1
+6
+2
+ACTI
+10
+15
+400155
+ACTI
+1
+19
+8
+ACTI
+1
+21
+1
+ACTI
+1
+4
+8
+ACTI
+10
+15
+400204
+ACTI
+2
+114
+ACTI
+10
+15
+400204
+ACTI
+1
+10
+1
+ACTI
+1
+26
+4
+ACTI
+1
+6
+1
+ACTI
+10
+15
+400119
+ACTI
+8
+9
+400119
+ACTI
+1
+14
+1
+ACTI
+1
+1
+2
+ACTI
+9
+9
+400119
+ACTI
+1
+4
+1
+ACTI
+1
+10
+8
+ACTI
+10
+15
+400139
+ACTI
+1
+75
+1
+ACTI
+1
+14
+4
+ACTI
+10
+15
+400211
+ACTI
+1
+10
+2
+ACTI
+1
+4
+8
+ACTI
+1
+25
+2
+ACTI
+1
+9
+4
+ACTI
+1
+16
+2
+ACTI
+10
+15
+400227
+ACTI
+1
+4
+8
+ACTI
+1
+5
+2
+ACLI
+508501
+ACTI
+1
+3
+4
+ACTI
+1
+3
+2
+ACTI
+1
+1
+4
+ACTI
+10
+15
+400198
+ACTI
+1
+2
+8
+ACTI
+1
+7
+2
+ACTI
+8
+24
+400229
+ACTI
+10
+15
+400229
+ACTI
+9
+24
+400229
+ACTI
+1
+4
+8
+ACTI
+1
+39
+2
+ACTI
+1
+2
+8
+ACTI
+1
+7
+2
+ACTI
+1
+1
+4
+ACTI
+8
+24
+400231
+ACTI
+10
+15
+400231
+ACTI
+9
+24
+400231
+ACTI
+1
+19
+2
+ACTI
+1
+57
+4
+ACTI
+1
+83
+1
+ACTI
+10
+15
+400155
+ACTI
+1
+85
+2
+ACTI
+1
+13
+4
+ACTI
+1
+6
+2
+ACTI
+10
+15
+400232
+ACTI
+1
+82
+8
+ACTI
+1
+28
+1
+ACTI
+1
+2
+8
+ACTI
+10
+15
+400239
+ACTI
+1
+14
+1
+ACTI
+1
+1
+4
+ACTI
+1
+31
+1
+ACTI
+1
+1
+8
+ACTI
+10
+15
+400236
+ACTI
+1
+10
+1
+ACTI
+1
+17
+4
diff --git a/DerClouProfiData/DATA/BANKETA.SPO b/DerClouProfiData/DATA/BANKETA.SPO
new file mode 100644
index 0000000..9e8b6f9
--- /dev/null
+++ b/DerClouProfiData/DATA/BANKETA.SPO
@@ -0,0 +1,80 @@
+6
+32
+1
+400231
+1
+398
+104
+32
+1
+400231
+1
+363
+104
+16
+3
+400231
+7
+519
+39
+520
+55
+520
+72
+520
+86
+519
+104
+519
+128
+519
+143
+16
+3
+400231
+6
+499
+143
+499
+127
+499
+111
+498
+95
+499
+79
+498
+63
+16
+3
+400231
+5
+199
+175
+199
+159
+199
+143
+199
+126
+199
+110
+16
+1
+400231
+7
+176
+102
+159
+104
+144
+103
+127
+103
+113
+103
+111
+119
+128
+119
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BANKETA0.DAT b/DerClouProfiData/DATA/BANKETA0.DAT
new file mode 100644
index 0000000..725902d
Binary files /dev/null and b/DerClouProfiData/DATA/BANKETA0.DAT differ
diff --git a/DerClouProfiData/DATA/BANKETA0.LFD b/DerClouProfiData/DATA/BANKETA0.LFD
new file mode 100644
index 0000000..fb87fe3
--- /dev/null
+++ b/DerClouProfiData/DATA/BANKETA0.LFD
@@ -0,0 +1 @@
+������������������������������������������������������������������������������������������������������																���
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BANKETA0.REL b/DerClouProfiData/DATA/BANKETA0.REL
new file mode 100644
index 0000000..ba60fb4
--- /dev/null
+++ b/DerClouProfiData/DATA/BANKETA0.REL
@@ -0,0 +1,907 @@
+RELF
+RTAB
+400011
+RTAB
+400010
+508039
+400246
+-1
+508039
+400245
+-1
+508039
+400244
+-1
+508039
+400243
+-1
+508039
+400242
+-1
+RTAB
+400007
+400208
+9602
+5000
+400209
+9602
+3000
+400210
+9602
+2000
+400211
+9602
+9000
+400212
+9602
+1000
+400213
+9602
+10000
+400214
+9601
+30000
+400215
+9602
+60000
+400215
+9601
+290000
+400216
+9602
+20000
+RTAB
+400006
+400224
+400231
+-1
+400231
+400224
+-1
+400223
+400231
+-1
+400231
+400223
+-1
+400225
+400231
+-1
+400231
+400225
+-1
+400226
+400231
+-1
+400231
+400226
+-1
+400240
+400231
+-1
+400231
+400240
+-1
+400241
+400231
+-1
+400231
+400241
+-1
+RTAB
+400005
+400238
+400228
+-1
+400228
+400238
+-1
+400237
+400228
+-1
+400228
+400237
+-1
+400236
+400228
+-1
+400228
+400236
+-1
+400239
+400228
+-1
+400228
+400239
+-1
+400204
+400228
+-1
+400228
+400204
+-1
+400155
+400228
+-1
+400228
+400155
+-1
+400216
+400230
+-1
+400230
+400216
+-1
+400215
+400230
+-1
+400230
+400215
+-1
+400214
+400230
+-1
+400230
+400214
+-1
+400213
+400230
+-1
+400230
+400213
+-1
+400231
+400229
+-1
+400229
+400231
+-1
+RTAB
+400004
+400204
+9102
+-1
+400093
+9102
+-1
+400094
+9102
+-1
+400119
+9102
+-1
+400132
+9102
+-1
+400139
+9102
+-1
+400155
+9102
+-1
+RTAB
+400003
+508039
+400227
+-1
+508039
+400226
+-1
+508039
+400225
+-1
+508039
+400224
+-1
+508039
+400223
+-1
+508039
+400212
+-1
+508039
+400211
+-1
+508039
+400210
+-1
+508039
+400209
+-1
+508039
+400208
+-1
+508039
+400207
+-1
+508039
+400206
+-1
+508039
+400205
+-1
+508039
+400204
+-1
+508039
+400203
+-1
+508039
+400202
+-1
+508039
+400201
+-1
+508039
+400200
+-1
+508039
+400199
+-1
+508039
+400198
+-1
+508039
+400197
+-1
+508039
+400196
+-1
+508039
+400195
+-1
+508039
+400194
+-1
+508039
+400193
+-1
+508039
+400192
+-1
+508039
+400191
+-1
+508039
+400190
+-1
+508039
+400189
+-1
+508039
+400188
+-1
+508039
+400187
+-1
+508039
+400186
+-1
+508039
+400185
+-1
+508039
+400184
+-1
+508039
+400183
+-1
+508039
+400182
+-1
+508039
+400181
+-1
+508039
+400180
+-1
+508039
+400179
+-1
+508039
+400178
+-1
+508039
+400177
+-1
+508039
+400176
+-1
+508039
+400175
+-1
+508039
+400174
+-1
+508039
+400173
+-1
+508039
+400001
+-1
+508039
+400002
+-1
+508039
+400003
+-1
+508039
+400004
+-1
+508039
+400005
+-1
+508039
+400006
+-1
+508039
+400007
+-1
+508039
+400008
+-1
+508039
+400009
+-1
+508039
+400010
+-1
+508039
+400011
+-1
+508039
+400012
+-1
+508039
+400013
+-1
+508039
+400014
+-1
+508039
+400015
+-1
+508039
+400016
+-1
+508039
+400017
+-1
+508039
+400018
+-1
+508039
+400019
+-1
+508039
+400020
+-1
+508039
+400021
+-1
+508039
+400022
+-1
+508039
+400023
+-1
+508039
+400024
+-1
+508039
+400025
+-1
+508039
+400026
+-1
+508039
+400027
+-1
+508039
+400028
+-1
+508039
+400029
+-1
+508039
+400030
+-1
+508039
+400031
+-1
+508039
+400032
+-1
+508039
+400033
+-1
+508039
+400034
+-1
+508039
+400035
+-1
+508039
+400036
+-1
+508039
+400037
+-1
+508039
+400038
+-1
+508039
+400039
+-1
+508039
+400040
+-1
+508039
+400041
+-1
+508039
+400042
+-1
+508039
+400043
+-1
+508039
+400044
+-1
+508039
+400045
+-1
+508039
+400046
+-1
+508039
+400047
+-1
+508039
+400048
+-1
+508039
+400049
+-1
+508039
+400050
+-1
+508039
+400051
+-1
+508039
+400052
+-1
+508039
+400053
+-1
+508039
+400054
+-1
+508039
+400055
+-1
+508039
+400056
+-1
+508039
+400057
+-1
+508039
+400058
+-1
+508039
+400059
+-1
+508039
+400060
+-1
+508039
+400061
+-1
+508039
+400062
+-1
+508039
+400063
+-1
+508039
+400064
+-1
+508039
+400065
+-1
+508039
+400066
+-1
+508039
+400067
+-1
+508039
+400068
+-1
+508039
+400069
+-1
+508039
+400070
+-1
+508039
+400071
+-1
+508039
+400072
+-1
+508039
+400073
+-1
+508039
+400074
+-1
+508039
+400075
+-1
+508039
+400076
+-1
+508039
+400077
+-1
+508039
+400078
+-1
+508039
+400079
+-1
+508039
+400080
+-1
+508039
+400081
+-1
+508039
+400082
+-1
+508039
+400083
+-1
+508039
+400084
+-1
+508039
+400085
+-1
+508039
+400086
+-1
+508039
+400087
+-1
+508039
+400088
+-1
+508039
+400089
+-1
+508039
+400090
+-1
+508039
+400091
+-1
+508039
+400092
+-1
+508039
+400093
+-1
+508039
+400094
+-1
+508039
+400095
+-1
+508039
+400096
+-1
+508039
+400097
+-1
+508039
+400098
+-1
+508039
+400099
+-1
+508039
+400100
+-1
+508039
+400101
+-1
+508039
+400102
+-1
+508039
+400103
+-1
+508039
+400104
+-1
+508039
+400105
+-1
+508039
+400106
+-1
+508039
+400107
+-1
+508039
+400108
+-1
+508039
+400109
+-1
+508039
+400110
+-1
+508039
+400111
+-1
+508039
+400112
+-1
+508039
+400113
+-1
+508039
+400114
+-1
+508039
+400115
+-1
+508039
+400116
+-1
+508039
+400117
+-1
+508039
+400118
+-1
+508039
+400119
+-1
+508039
+400120
+-1
+508039
+400121
+-1
+508039
+400122
+-1
+508039
+400123
+-1
+508039
+400124
+-1
+508039
+400125
+-1
+508039
+400126
+-1
+508039
+400127
+-1
+508039
+400128
+-1
+508039
+400129
+-1
+508039
+400130
+-1
+508039
+400131
+-1
+508039
+400132
+-1
+508039
+400133
+-1
+508039
+400134
+-1
+508039
+400135
+-1
+508039
+400136
+-1
+508039
+400137
+-1
+508039
+400138
+-1
+508039
+400139
+-1
+508039
+400140
+-1
+508039
+400141
+-1
+508039
+400142
+-1
+508039
+400143
+-1
+508039
+400144
+-1
+508039
+400145
+-1
+508039
+400146
+-1
+508039
+400147
+-1
+508039
+400148
+-1
+508039
+400149
+-1
+508039
+400150
+-1
+508039
+400151
+-1
+508039
+400152
+-1
+508039
+400153
+-1
+508039
+400154
+-1
+508039
+400155
+-1
+508039
+400156
+-1
+508039
+400157
+-1
+508039
+400158
+-1
+508039
+400159
+-1
+508039
+400160
+-1
+508039
+400161
+-1
+508039
+400162
+-1
+508039
+400163
+-1
+508039
+400164
+-1
+508039
+400165
+-1
+508039
+400166
+-1
+508039
+400167
+-1
+508039
+400168
+-1
+508039
+400169
+-1
+508039
+400170
+-1
+508039
+400171
+-1
+508039
+400172
+-1
+508039
+400213
+-1
+508039
+400214
+-1
+508039
+400215
+-1
+508039
+400216
+-1
+508039
+400217
+-1
+508039
+400218
+-1
+508039
+400219
+-1
+508039
+400220
+-1
+508039
+400221
+-1
+508039
+400222
+-1
+508039
+400228
+-1
+508039
+400229
+-1
+508039
+400230
+-1
+508039
+400231
+-1
+508039
+400232
+-1
+508039
+400233
+-1
+508039
+400234
+-1
+508039
+400235
+-1
+508039
+400236
+-1
+508039
+400237
+-1
+508039
+400238
+-1
+508039
+400239
+-1
+508039
+400240
+-1
+508039
+400241
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BRITETA.GRE b/DerClouProfiData/DATA/BRITETA.GRE
new file mode 100644
index 0000000..390846d
--- /dev/null
+++ b/DerClouProfiData/DATA/BRITETA.GRE
@@ -0,0 +1,20 @@
+RELF
+RTAB
+1
+509013
+320252
+320
+RTAB
+2
+320252
+320252
+320
+RTAB
+3
+320223
+320223
+508032
+330213
+330213
+508031
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BRITETA.GUA b/DerClouProfiData/DATA/BRITETA.GUA
new file mode 100644
index 0000000..b719e30
--- /dev/null
+++ b/DerClouProfiData/DATA/BRITETA.GUA
@@ -0,0 +1,485 @@
+ACLI
+508500
+ACTI
+1
+13
+8
+ACTI
+1
+15
+2
+ACTI
+1
+11
+8
+ACTI
+1
+16
+2
+ACTI
+1
+3
+8
+ACTI
+1
+16
+2
+ACTI
+10
+15
+320210
+ACTI
+1
+11
+1
+ACTI
+1
+19
+8
+ACTI
+1
+3
+1
+ACTI
+1
+1
+8
+ACTI
+10
+15
+320225
+ACTI
+1
+31
+1
+ACTI
+1
+1
+8
+ACTI
+10
+15
+320224
+ACTI
+1
+28
+1
+ACTI
+1
+1
+8
+ACTI
+10
+15
+320099
+ACTI
+10
+15
+320100
+ACTI
+2
+210
+ACTI
+1
+21
+1
+ACTI
+1
+2
+4
+ACTI
+1
+9
+1
+ACTI
+1
+1
+8
+ACTI
+10
+15
+320228
+ACTI
+1
+29
+1
+ACTI
+1
+1
+8
+ACTI
+10
+15
+320229
+ACTI
+2
+75
+ACTI
+1
+14
+1
+ACTI
+1
+22
+4
+ACTI
+1
+2
+1
+ACTI
+10
+15
+320144
+ACTI
+1
+11
+4
+ACTI
+1
+36
+2
+ACTI
+1
+19
+4
+ACTI
+1
+60
+2
+ACTI
+10
+15
+320252
+ACTI
+1
+3
+8
+ACTI
+1
+5
+2
+ACLI
+508502
+ACTI
+1
+30
+1
+ACTI
+1
+17
+8
+ACTI
+1
+5
+1
+ACTI
+10
+15
+330145
+ACTI
+8
+9
+330145
+ACTI
+1
+15
+1
+ACTI
+1
+2
+2
+ACTI
+9
+9
+330145
+ACTI
+1
+9
+1
+ACTI
+1
+3
+8
+ACTI
+1
+7
+1
+ACTI
+1
+3
+8
+ACTI
+10
+15
+330222
+ACTI
+1
+40
+1
+ACTI
+1
+1
+4
+ACTI
+1
+14
+1
+ACTI
+1
+1
+8
+ACTI
+10
+15
+330223
+ACTI
+1
+6
+1
+ACTI
+1
+19
+4
+ACTI
+10
+15
+330243
+ACTI
+1
+9
+1
+ACTI
+1
+16
+8
+ACTI
+1
+15
+1
+ACTI
+1
+3
+8
+ACTI
+10
+15
+330225
+ACTI
+1
+23
+1
+ACTI
+1
+17
+4
+ACTI
+1
+4
+1
+ACTI
+10
+15
+330218
+ACTI
+1
+13
+8
+ACTI
+1
+17
+1
+ACTI
+1
+3
+4
+ACTI
+1
+3
+1
+ACTI
+10
+15
+330124
+ACTI
+1
+2
+2
+ACTI
+1
+3
+8
+ACTI
+1
+142
+2
+ACTI
+1
+2
+4
+ACTI
+1
+4
+2
+ACTI
+10
+15
+330145
+ACTI
+8
+9
+330145
+ACTI
+1
+16
+2
+ACTI
+1
+3
+1
+ACTI
+9
+9
+330145
+ACTI
+1
+27
+2
+ACTI
+1
+17
+8
+ACTI
+10
+15
+330197
+ACTI
+8
+9
+330197
+ACTI
+1
+2
+2
+ACTI
+1
+12
+8
+ACTI
+1
+16
+2
+ACTI
+8
+24
+330242
+ACTI
+10
+15
+330242
+ACTI
+9
+24
+330242
+ACTI
+1
+40
+1
+ACTI
+1
+11
+8
+ACTI
+1
+5
+1
+ACTI
+1
+7
+8
+ACTI
+1
+1
+1
+ACTI
+10
+15
+330155
+ACTI
+1
+2
+2
+ACTI
+1
+12
+4
+ACTI
+1
+23
+2
+ACTI
+1
+15
+8
+ACTI
+2
+360
+ACTI
+1
+19
+4
+ACTI
+1
+4
+2
+ACTI
+1
+3
+4
+ACTI
+1
+1
+2
+ACTI
+1
+12
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+330197
+ACTI
+1
+9
+2
+ACTI
+1
+35
+4
+ACTI
+1
+7
+2
+ACTI
+8
+24
+330241
+ACTI
+10
+15
+330241
+ACTI
+9
+24
+330241
+ACTI
+1
+1
+8
+ACTI
+1
+11
+1
diff --git a/DerClouProfiData/DATA/BRITETA.SPO b/DerClouProfiData/DATA/BRITETA.SPO
new file mode 100644
index 0000000..68ac233
--- /dev/null
+++ b/DerClouProfiData/DATA/BRITETA.SPO
@@ -0,0 +1,112 @@
+15
+48
+1
+320237
+1
+53
+147
+32
+1
+320237
+1
+110
+157
+48
+1
+320237
+1
+271
+125
+48
+1
+320237
+1
+318
+125
+32
+1
+320237
+1
+542
+108
+48
+1
+320237
+1
+569
+15
+48
+1
+320236
+1
+429
+113
+48
+1
+320237
+1
+53
+147
+32
+1
+320237
+1
+542
+108
+48
+1
+320237
+1
+569
+15
+48
+1
+320236
+1
+429
+113
+32
+1
+330240
+1
+448
+160
+32
+4
+330241
+8
+428
+61
+396
+61
+364
+61
+332
+61
+300
+61
+268
+61
+236
+61
+204
+61
+48
+1
+330242
+1
+94
+143
+32
+2
+330240
+4
+208
+126
+208
+140
+208
+156
+208
+172
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BRITETA0.DAT b/DerClouProfiData/DATA/BRITETA0.DAT
new file mode 100644
index 0000000..5fb2f4b
Binary files /dev/null and b/DerClouProfiData/DATA/BRITETA0.DAT differ
diff --git a/DerClouProfiData/DATA/BRITETA0.LFD b/DerClouProfiData/DATA/BRITETA0.LFD
new file mode 100644
index 0000000..3394bad
--- /dev/null
+++ b/DerClouProfiData/DATA/BRITETA0.LFD
@@ -0,0 +1 @@
+�����������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BRITETA0.REL b/DerClouProfiData/DATA/BRITETA0.REL
new file mode 100644
index 0000000..81f2349
--- /dev/null
+++ b/DerClouProfiData/DATA/BRITETA0.REL
@@ -0,0 +1,1010 @@
+RELF
+RTAB
+320008
+RTAB
+320009
+RTAB
+320011
+RTAB
+320010
+508031
+320258
+-1
+508031
+320257
+-1
+RTAB
+320007
+320222
+9606
+1000
+320221
+9606
+1500
+320222
+9607
+1500
+320221
+9607
+1500
+320255
+9607
+50
+320256
+9607
+50
+320240
+9607
+100
+320238
+9606
+200
+320239
+9607
+300
+320241
+9607
+300
+320242
+9606
+540
+320242
+9607
+400
+320220
+9607
+1000
+320219
+9607
+1000
+320218
+9606
+100
+320218
+9607
+200
+320217
+9606
+500
+RTAB
+320006
+320234
+320236
+-1
+320236
+320234
+-1
+320233
+320237
+-1
+320237
+320233
+-1
+320232
+320237
+-1
+320237
+320232
+-1
+320250
+320237
+-1
+320237
+320250
+-1
+320249
+320237
+-1
+320237
+320249
+-1
+320251
+320237
+-1
+320237
+320251
+-1
+320235
+320237
+-1
+320237
+320235
+-1
+RTAB
+320005
+320242
+320253
+-1
+320253
+320242
+-1
+320241
+320253
+-1
+320253
+320241
+-1
+320218
+320253
+-1
+320253
+320218
+-1
+320217
+320253
+-1
+320253
+320217
+-1
+320222
+320254
+-1
+320254
+320222
+-1
+320221
+320254
+-1
+320254
+320221
+-1
+320227
+320254
+-1
+320254
+320227
+-1
+320226
+320254
+-1
+320254
+320226
+-1
+320225
+320254
+-1
+320254
+320225
+-1
+320099
+320254
+-1
+320254
+320099
+-1
+320100
+320254
+-1
+320254
+320100
+-1
+320228
+320254
+-1
+320254
+320228
+-1
+320229
+320254
+-1
+320254
+320229
+-1
+320230
+320254
+-1
+320254
+320230
+-1
+320231
+320254
+-1
+320254
+320231
+-1
+320236
+320254
+-1
+320254
+320236
+-1
+RTAB
+320004
+320144
+9102
+-1
+320135
+9102
+-1
+320100
+9102
+-1
+320099
+9102
+-1
+320126
+9102
+-1
+320183
+9102
+-1
+320192
+9102
+-1
+320200
+9102
+-1
+320210
+9102
+-1
+RTAB
+320003
+508031
+320242
+-1
+508031
+320241
+-1
+508031
+320240
+-1
+508031
+320239
+-1
+508031
+320238
+-1
+508031
+320237
+-1
+508031
+320236
+-1
+508031
+320235
+-1
+508031
+320234
+-1
+508031
+320233
+-1
+508031
+320232
+-1
+508031
+320231
+-1
+508031
+320230
+-1
+508031
+320229
+-1
+508031
+320228
+-1
+508031
+320227
+-1
+508031
+320226
+-1
+508031
+320225
+-1
+508031
+320224
+-1
+508031
+320222
+-1
+508031
+320221
+-1
+508031
+320220
+-1
+508031
+320219
+-1
+508031
+320218
+-1
+508031
+320217
+-1
+508031
+320150
+-1
+508031
+320149
+-1
+508031
+320148
+-1
+508031
+320147
+-1
+508031
+320146
+-1
+508031
+320145
+-1
+508031
+320144
+-1
+508031
+320143
+-1
+508031
+320142
+-1
+508031
+320141
+-1
+508031
+320140
+-1
+508031
+320139
+-1
+508031
+320138
+-1
+508031
+320137
+-1
+508031
+320136
+-1
+508031
+320135
+-1
+508031
+320134
+-1
+508031
+320133
+-1
+508031
+320132
+-1
+508031
+320131
+-1
+508031
+320130
+-1
+508031
+320129
+-1
+508031
+320128
+-1
+508031
+320127
+-1
+508031
+320120
+-1
+508031
+320119
+-1
+508031
+320118
+-1
+508031
+320117
+-1
+508031
+320116
+-1
+508031
+320115
+-1
+508031
+320114
+-1
+508031
+320113
+-1
+508031
+320112
+-1
+508031
+320111
+-1
+508031
+320110
+-1
+508031
+320109
+-1
+508031
+320108
+-1
+508031
+320107
+-1
+508031
+320106
+-1
+508031
+320105
+-1
+508031
+320104
+-1
+508031
+320103
+-1
+508031
+320102
+-1
+508031
+320101
+-1
+508031
+320100
+-1
+508031
+320099
+-1
+508031
+320098
+-1
+508031
+320097
+-1
+508031
+320096
+-1
+508031
+320095
+-1
+508031
+320094
+-1
+508031
+320093
+-1
+508031
+320092
+-1
+508031
+320091
+-1
+508031
+320090
+-1
+508031
+320089
+-1
+508031
+320088
+-1
+508031
+320087
+-1
+508031
+320086
+-1
+508031
+320085
+-1
+508031
+320084
+-1
+508031
+320083
+-1
+508031
+320082
+-1
+508031
+320081
+-1
+508031
+320080
+-1
+508031
+320079
+-1
+508031
+320078
+-1
+508031
+320077
+-1
+508031
+320076
+-1
+508031
+320075
+-1
+508031
+320074
+-1
+508031
+320073
+-1
+508031
+320072
+-1
+508031
+320071
+-1
+508031
+320070
+-1
+508031
+320069
+-1
+508031
+320068
+-1
+508031
+320067
+-1
+508031
+320066
+-1
+508031
+320065
+-1
+508031
+320064
+-1
+508031
+320063
+-1
+508031
+320062
+-1
+508031
+320061
+-1
+508031
+320060
+-1
+508031
+320059
+-1
+508031
+320058
+-1
+508031
+320057
+-1
+508031
+320056
+-1
+508031
+320055
+-1
+508031
+320054
+-1
+508031
+320053
+-1
+508031
+320052
+-1
+508031
+320051
+-1
+508031
+320050
+-1
+508031
+320049
+-1
+508031
+320048
+-1
+508031
+320047
+-1
+508031
+320046
+-1
+508031
+320045
+-1
+508031
+320044
+-1
+508031
+320043
+-1
+508031
+320042
+-1
+508031
+320041
+-1
+508031
+320040
+-1
+508031
+320039
+-1
+508031
+320038
+-1
+508031
+320037
+-1
+508031
+320036
+-1
+508031
+320035
+-1
+508031
+320034
+-1
+508031
+320033
+-1
+508031
+320032
+-1
+508031
+320031
+-1
+508031
+320030
+-1
+508031
+320029
+-1
+508031
+320028
+-1
+508031
+320027
+-1
+508031
+320026
+-1
+508031
+320025
+-1
+508031
+320024
+-1
+508031
+320023
+-1
+508031
+320022
+-1
+508031
+320021
+-1
+508031
+320020
+-1
+508031
+320019
+-1
+508031
+320018
+-1
+508031
+320017
+-1
+508031
+320016
+-1
+508031
+320015
+-1
+508031
+320014
+-1
+508031
+320013
+-1
+508031
+320012
+-1
+508031
+320011
+-1
+508031
+320010
+-1
+508031
+320009
+-1
+508031
+320008
+-1
+508031
+320007
+-1
+508031
+320006
+-1
+508031
+320005
+-1
+508031
+320004
+-1
+508031
+320003
+-1
+508031
+320002
+-1
+508031
+320001
+-1
+508031
+320121
+-1
+508031
+320122
+-1
+508031
+320123
+-1
+508031
+320124
+-1
+508031
+320125
+-1
+508031
+320126
+-1
+508031
+320151
+-1
+508031
+320152
+-1
+508031
+320153
+-1
+508031
+320154
+-1
+508031
+320155
+-1
+508031
+320156
+-1
+508031
+320157
+-1
+508031
+320158
+-1
+508031
+320159
+-1
+508031
+320160
+-1
+508031
+320161
+-1
+508031
+320162
+-1
+508031
+320163
+-1
+508031
+320164
+-1
+508031
+320165
+-1
+508031
+320166
+-1
+508031
+320167
+-1
+508031
+320168
+-1
+508031
+320169
+-1
+508031
+320170
+-1
+508031
+320171
+-1
+508031
+320172
+-1
+508031
+320173
+-1
+508031
+320174
+-1
+508031
+320175
+-1
+508031
+320176
+-1
+508031
+320177
+-1
+508031
+320178
+-1
+508031
+320179
+-1
+508031
+320180
+-1
+508031
+320181
+-1
+508031
+320182
+-1
+508031
+320183
+-1
+508031
+320184
+-1
+508031
+320185
+-1
+508031
+320186
+-1
+508031
+320187
+-1
+508031
+320188
+-1
+508031
+320189
+-1
+508031
+320190
+-1
+508031
+320191
+-1
+508031
+320192
+-1
+508031
+320193
+-1
+508031
+320194
+-1
+508031
+320195
+-1
+508031
+320196
+-1
+508031
+320197
+-1
+508031
+320198
+-1
+508031
+320199
+-1
+508031
+320200
+-1
+508031
+320201
+-1
+508031
+320202
+-1
+508031
+320203
+-1
+508031
+320204
+-1
+508031
+320205
+-1
+508031
+320206
+-1
+508031
+320207
+-1
+508031
+320208
+-1
+508031
+320209
+-1
+508031
+320210
+-1
+508031
+320211
+-1
+508031
+320212
+-1
+508031
+320213
+-1
+508031
+320214
+-1
+508031
+320215
+-1
+508031
+320216
+-1
+508031
+320223
+-1
+508031
+320243
+-1
+508031
+320244
+-1
+508031
+320245
+-1
+508031
+320246
+-1
+508031
+320247
+-1
+508031
+320248
+-1
+508031
+320249
+-1
+508031
+320250
+-1
+508031
+320251
+-1
+508031
+320252
+-1
+508031
+320253
+-1
+508031
+320254
+-1
+508031
+320255
+-1
+508031
+320256
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BRITETA1.DAT b/DerClouProfiData/DATA/BRITETA1.DAT
new file mode 100644
index 0000000..10454fb
Binary files /dev/null and b/DerClouProfiData/DATA/BRITETA1.DAT differ
diff --git a/DerClouProfiData/DATA/BRITETA1.LFD b/DerClouProfiData/DATA/BRITETA1.LFD
new file mode 100644
index 0000000..073d83e
--- /dev/null
+++ b/DerClouProfiData/DATA/BRITETA1.LFD
@@ -0,0 +1 @@
+���������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BRITETA1.REL b/DerClouProfiData/DATA/BRITETA1.REL
new file mode 100644
index 0000000..9e114e1
--- /dev/null
+++ b/DerClouProfiData/DATA/BRITETA1.REL
@@ -0,0 +1,943 @@
+RELF
+RTAB
+330011
+RTAB
+330010
+508032
+330249
+-1
+508032
+330250
+-1
+508032
+330251
+-1
+RTAB
+330007
+330222
+9631
+10000
+330226
+9625
+20000
+330215
+9624
+15000
+330229
+9606
+500
+330228
+9606
+500
+330226
+9607
+100
+330227
+9606
+90
+330227
+9607
+100
+330223
+9607
+2500
+330225
+9607
+2500
+330224
+9607
+100
+330217
+9607
+100
+330219
+9607
+100
+330221
+9607
+100
+330220
+9606
+100
+330218
+9607
+1000
+330215
+9607
+150
+330214
+9607
+2600
+330214
+9606
+2500
+330216
+9607
+2500
+330238
+9605
+7500
+330237
+9605
+2500
+330234
+9605
+5000
+RTAB
+330006
+330241
+330248
+-1
+330248
+330241
+-1
+330241
+330247
+-1
+330247
+330241
+-1
+330242
+330244
+-1
+330244
+330242
+-1
+330240
+330246
+-1
+330246
+330240
+-1
+330240
+330245
+-1
+330245
+330240
+-1
+RTAB
+330005
+330243
+330226
+-1
+330226
+330243
+-1
+330243
+330222
+-1
+330222
+330243
+-1
+330243
+330223
+-1
+330223
+330243
+-1
+330243
+330225
+-1
+330225
+330243
+-1
+330243
+330218
+-1
+330218
+330243
+-1
+330239
+330215
+-1
+330215
+330239
+-1
+330239
+330214
+-1
+330214
+330239
+-1
+330239
+330216
+-1
+330216
+330239
+-1
+330239
+330240
+-1
+330240
+330239
+-1
+RTAB
+330004
+330124
+9102
+-1
+330134
+9102
+-1
+330145
+9102
+-1
+330155
+9102
+-1
+330165
+9102
+-1
+330197
+9102
+-1
+330207
+9102
+-1
+RTAB
+330003
+508032
+330248
+-1
+508032
+330247
+-1
+508032
+330246
+-1
+508032
+330245
+-1
+508032
+330244
+-1
+508032
+330243
+-1
+508032
+330242
+-1
+508032
+330241
+-1
+508032
+330240
+-1
+508032
+330239
+-1
+508032
+330238
+-1
+508032
+330237
+-1
+508032
+330236
+-1
+508032
+330235
+-1
+508032
+330234
+-1
+508032
+330233
+-1
+508032
+330232
+-1
+508032
+330231
+-1
+508032
+330230
+-1
+508032
+330229
+-1
+508032
+330228
+-1
+508032
+330227
+-1
+508032
+330226
+-1
+508032
+330225
+-1
+508032
+330224
+-1
+508032
+330223
+-1
+508032
+330222
+-1
+508032
+330221
+-1
+508032
+330220
+-1
+508032
+330219
+-1
+508032
+330218
+-1
+508032
+330217
+-1
+508032
+330216
+-1
+508032
+330215
+-1
+508032
+330214
+-1
+508032
+330213
+-1
+508032
+330001
+-1
+508032
+330002
+-1
+508032
+330003
+-1
+508032
+330004
+-1
+508032
+330005
+-1
+508032
+330006
+-1
+508032
+330007
+-1
+508032
+330008
+-1
+508032
+330009
+-1
+508032
+330010
+-1
+508032
+330011
+-1
+508032
+330012
+-1
+508032
+330013
+-1
+508032
+330014
+-1
+508032
+330015
+-1
+508032
+330016
+-1
+508032
+330017
+-1
+508032
+330018
+-1
+508032
+330019
+-1
+508032
+330020
+-1
+508032
+330021
+-1
+508032
+330022
+-1
+508032
+330023
+-1
+508032
+330024
+-1
+508032
+330025
+-1
+508032
+330026
+-1
+508032
+330027
+-1
+508032
+330028
+-1
+508032
+330029
+-1
+508032
+330030
+-1
+508032
+330031
+-1
+508032
+330032
+-1
+508032
+330033
+-1
+508032
+330034
+-1
+508032
+330035
+-1
+508032
+330036
+-1
+508032
+330037
+-1
+508032
+330038
+-1
+508032
+330039
+-1
+508032
+330040
+-1
+508032
+330041
+-1
+508032
+330042
+-1
+508032
+330043
+-1
+508032
+330044
+-1
+508032
+330045
+-1
+508032
+330046
+-1
+508032
+330047
+-1
+508032
+330048
+-1
+508032
+330049
+-1
+508032
+330050
+-1
+508032
+330051
+-1
+508032
+330052
+-1
+508032
+330053
+-1
+508032
+330054
+-1
+508032
+330055
+-1
+508032
+330056
+-1
+508032
+330057
+-1
+508032
+330058
+-1
+508032
+330059
+-1
+508032
+330060
+-1
+508032
+330061
+-1
+508032
+330062
+-1
+508032
+330063
+-1
+508032
+330064
+-1
+508032
+330065
+-1
+508032
+330066
+-1
+508032
+330067
+-1
+508032
+330068
+-1
+508032
+330069
+-1
+508032
+330070
+-1
+508032
+330071
+-1
+508032
+330072
+-1
+508032
+330073
+-1
+508032
+330074
+-1
+508032
+330075
+-1
+508032
+330076
+-1
+508032
+330077
+-1
+508032
+330078
+-1
+508032
+330079
+-1
+508032
+330080
+-1
+508032
+330081
+-1
+508032
+330082
+-1
+508032
+330083
+-1
+508032
+330084
+-1
+508032
+330085
+-1
+508032
+330086
+-1
+508032
+330087
+-1
+508032
+330088
+-1
+508032
+330089
+-1
+508032
+330090
+-1
+508032
+330091
+-1
+508032
+330092
+-1
+508032
+330093
+-1
+508032
+330094
+-1
+508032
+330095
+-1
+508032
+330096
+-1
+508032
+330097
+-1
+508032
+330098
+-1
+508032
+330099
+-1
+508032
+330100
+-1
+508032
+330101
+-1
+508032
+330102
+-1
+508032
+330103
+-1
+508032
+330104
+-1
+508032
+330105
+-1
+508032
+330106
+-1
+508032
+330107
+-1
+508032
+330108
+-1
+508032
+330109
+-1
+508032
+330110
+-1
+508032
+330111
+-1
+508032
+330112
+-1
+508032
+330113
+-1
+508032
+330114
+-1
+508032
+330115
+-1
+508032
+330116
+-1
+508032
+330117
+-1
+508032
+330118
+-1
+508032
+330119
+-1
+508032
+330120
+-1
+508032
+330121
+-1
+508032
+330122
+-1
+508032
+330123
+-1
+508032
+330124
+-1
+508032
+330125
+-1
+508032
+330126
+-1
+508032
+330127
+-1
+508032
+330128
+-1
+508032
+330129
+-1
+508032
+330130
+-1
+508032
+330131
+-1
+508032
+330132
+-1
+508032
+330133
+-1
+508032
+330134
+-1
+508032
+330135
+-1
+508032
+330136
+-1
+508032
+330137
+-1
+508032
+330138
+-1
+508032
+330139
+-1
+508032
+330140
+-1
+508032
+330141
+-1
+508032
+330142
+-1
+508032
+330143
+-1
+508032
+330144
+-1
+508032
+330145
+-1
+508032
+330146
+-1
+508032
+330147
+-1
+508032
+330148
+-1
+508032
+330149
+-1
+508032
+330150
+-1
+508032
+330151
+-1
+508032
+330152
+-1
+508032
+330153
+-1
+508032
+330154
+-1
+508032
+330155
+-1
+508032
+330156
+-1
+508032
+330157
+-1
+508032
+330158
+-1
+508032
+330159
+-1
+508032
+330160
+-1
+508032
+330161
+-1
+508032
+330162
+-1
+508032
+330163
+-1
+508032
+330164
+-1
+508032
+330165
+-1
+508032
+330166
+-1
+508032
+330167
+-1
+508032
+330168
+-1
+508032
+330169
+-1
+508032
+330170
+-1
+508032
+330171
+-1
+508032
+330172
+-1
+508032
+330173
+-1
+508032
+330174
+-1
+508032
+330175
+-1
+508032
+330176
+-1
+508032
+330177
+-1
+508032
+330178
+-1
+508032
+330179
+-1
+508032
+330180
+-1
+508032
+330181
+-1
+508032
+330182
+-1
+508032
+330183
+-1
+508032
+330184
+-1
+508032
+330185
+-1
+508032
+330186
+-1
+508032
+330187
+-1
+508032
+330188
+-1
+508032
+330189
+-1
+508032
+330190
+-1
+508032
+330191
+-1
+508032
+330192
+-1
+508032
+330193
+-1
+508032
+330194
+-1
+508032
+330195
+-1
+508032
+330196
+-1
+508032
+330197
+-1
+508032
+330198
+-1
+508032
+330199
+-1
+508032
+330200
+-1
+508032
+330201
+-1
+508032
+330202
+-1
+508032
+330203
+-1
+508032
+330204
+-1
+508032
+330205
+-1
+508032
+330206
+-1
+508032
+330207
+-1
+508032
+330208
+-1
+508032
+330209
+-1
+508032
+330210
+-1
+508032
+330211
+-1
+508032
+330212
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BUCKETA.GRE b/DerClouProfiData/DATA/BUCKETA.GRE
new file mode 100644
index 0000000..215c698
--- /dev/null
+++ b/DerClouProfiData/DATA/BUCKETA.GRE
@@ -0,0 +1,26 @@
+RELF
+RTAB
+3
+650233
+650233
+508113
+650232
+650232
+508113
+640259
+640259
+508114
+640260
+640260
+508114
+RTAB
+2
+640298
+640298
+1800
+RTAB
+1
+509107
+640298
+1800
+
diff --git a/DerClouProfiData/DATA/BUCKETA.GUA b/DerClouProfiData/DATA/BUCKETA.GUA
new file mode 100644
index 0000000..da4de1a
--- /dev/null
+++ b/DerClouProfiData/DATA/BUCKETA.GUA
@@ -0,0 +1,269 @@
+ACLI
+508500
+ACTI
+1
+11
+1
+ACTI
+1
+18
+8
+ACTI
+10
+15
+640209
+ACTI
+8
+21
+640209
+ACTI
+1
+2
+1
+ACTI
+1
+13
+8
+ACTI
+1
+4
+1
+ACTI
+10
+15
+640298
+ACTI
+1
+4
+2
+ACTI
+1
+15
+4
+ACTI
+1
+1
+8
+ACTI
+9
+21
+640209
+ACTI
+1
+8
+4
+ACTI
+1
+74
+2
+ACTI
+1
+1
+4
+ACTI
+1
+11
+2
+ACTI
+10
+15
+640163
+ACTI
+8
+9
+640163
+ACTI
+1
+15
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+640163
+ACTI
+1
+3
+2
+ACTI
+1
+6
+4
+ACTI
+1
+27
+2
+ACTI
+1
+48
+8
+ACTI
+2
+360
+ACTI
+10
+15
+640166
+ACTI
+10
+15
+640165
+ACTI
+1
+48
+4
+ACTI
+1
+31
+2
+ACTI
+1
+3
+8
+ACTI
+2
+15
+ACTI
+1
+1
+1
+ACTI
+1
+1
+4
+ACTI
+1
+56
+1
+ACTI
+1
+3
+8
+ACTI
+1
+4
+1
+ACTI
+10
+15
+640163
+ACTI
+8
+9
+640163
+ACTI
+1
+1
+1
+ACTI
+1
+1
+8
+ACTI
+1
+19
+1
+ACTI
+1
+5
+2
+ACTI
+9
+9
+640163
+ACTI
+1
+60
+1
+ACTI
+1
+8
+4
+ACTI
+1
+11
+1
+ACLI
+508501
+ACTI
+1
+18
+8
+ACTI
+1
+40
+2
+ACTI
+1
+3
+4
+ACTI
+2
+60
+ACTI
+1
+16
+4
+ACTI
+1
+21
+1
+ACTI
+1
+1
+8
+ACTI
+10
+15
+640295
+ACTI
+1
+19
+1
+ACTI
+2
+48
+ACLI
+508502
+ACTI
+1
+5
+1
+ACTI
+1
+49
+8
+ACTI
+1
+57
+2
+ACTI
+1
+24
+4
+ACTI
+1
+28
+1
+ACTI
+2
+360
+ACTI
+1
+14
+2
+ACTI
+1
+49
+4
+ACTI
+1
+38
+1
+ACTI
+1
+24
+8
diff --git a/DerClouProfiData/DATA/BUCKETA.SPO b/DerClouProfiData/DATA/BUCKETA.SPO
new file mode 100644
index 0000000..950756f
--- /dev/null
+++ b/DerClouProfiData/DATA/BUCKETA.SPO
@@ -0,0 +1,93 @@
+14
+32
+1
+640271
+1
+148
+152
+32
+1
+640271
+1
+220
+150
+32
+1
+640270
+1
+361
+97
+32
+1
+640270
+1
+361
+130
+32
+1
+640270
+1
+361
+163
+32
+1
+640270
+1
+297
+97
+32
+1
+640270
+1
+297
+130
+32
+1
+640270
+1
+297
+163
+48
+1
+640272
+1
+350
+9
+16
+1
+650286
+1
+289
+36
+32
+1
+650286
+1
+169
+47
+32
+1
+650287
+1
+279
+77
+48
+1
+650285
+1
+422
+50
+32
+5
+650285
+5
+498
+71
+497
+51
+495
+29
+495
+54
+496
+77
diff --git a/DerClouProfiData/DATA/BUCKETA0.DAT b/DerClouProfiData/DATA/BUCKETA0.DAT
new file mode 100644
index 0000000..e357339
Binary files /dev/null and b/DerClouProfiData/DATA/BUCKETA0.DAT differ
diff --git a/DerClouProfiData/DATA/BUCKETA0.LFD b/DerClouProfiData/DATA/BUCKETA0.LFD
new file mode 100644
index 0000000..c6d56ba
Binary files /dev/null and b/DerClouProfiData/DATA/BUCKETA0.LFD differ
diff --git a/DerClouProfiData/DATA/BUCKETA0.REL b/DerClouProfiData/DATA/BUCKETA0.REL
new file mode 100644
index 0000000..90d0c7a
--- /dev/null
+++ b/DerClouProfiData/DATA/BUCKETA0.REL
@@ -0,0 +1,1241 @@
+RELF
+RTAB
+640010
+508113
+640333
+-1
+508113
+640332
+-1
+508113
+640331
+-1
+508113
+640330
+-1
+RTAB
+640007
+640311
+9600
+110
+640310
+9600
+21
+640309
+9600
+21
+640308
+9600
+200
+640307
+9600
+160
+640306
+9600
+300
+640305
+9600
+210
+640304
+9600
+390
+640294
+9605
+100
+640293
+9605
+100
+640292
+9605
+100
+640291
+9605
+100
+640290
+9605
+300
+640289
+9605
+100
+640288
+9605
+150
+640287
+9605
+150
+640286
+9605
+300
+640276
+9600
+2
+640264
+9600
+5
+640275
+9602
+160
+640312
+9603
+400
+640261
+9604
+1
+640267
+9608
+250
+640295
+9603
+300
+640268
+9608
+270
+640269
+9608
+210
+640273
+9602
+210
+640273
+9608
+110
+640296
+9606
+600
+640297
+9606
+400
+RTAB
+640006
+640324
+640271
+-1
+640271
+640324
+-1
+640325
+640271
+-1
+640271
+640325
+-1
+640328
+640270
+-1
+640270
+640328
+-1
+640326
+640270
+-1
+640270
+640326
+-1
+640327
+640270
+-1
+640270
+640327
+-1
+640329
+640270
+-1
+640270
+640329
+-1
+RTAB
+640005
+640315
+640274
+-1
+640274
+640315
+-1
+640316
+640274
+-1
+640274
+640316
+-1
+640317
+640274
+-1
+640274
+640317
+-1
+640318
+640274
+-1
+640274
+640318
+-1
+640319
+640274
+-1
+640274
+640319
+-1
+640320
+640274
+-1
+640274
+640320
+-1
+640321
+640274
+-1
+640274
+640321
+-1
+640322
+640274
+-1
+640274
+640322
+-1
+640104
+640266
+-1
+640266
+640104
+-1
+640113
+640265
+-1
+640265
+640113
+-1
+RTAB
+640004
+640104
+640104
+-1
+640113
+9102
+-1
+640123
+9102
+-1
+640129
+9102
+-1
+640141
+9102
+-1
+640163
+9102
+-1
+640164
+9102
+-1
+640165
+9102
+-1
+640166
+9102
+-1
+640209
+640209
+-1
+640219
+9102
+-1
+640234
+640234
+-1
+640240
+9102
+-1
+640254
+9102
+-1
+RTAB
+640003
+508113
+640334
+-1
+508113
+640329
+-1
+508113
+640328
+-1
+508113
+640327
+-1
+508113
+640326
+-1
+508113
+640325
+-1
+508113
+640324
+-1
+508113
+640322
+-1
+508113
+640321
+-1
+508113
+640320
+-1
+508113
+640319
+-1
+508113
+640318
+-1
+508113
+640317
+-1
+508113
+640316
+-1
+508113
+640315
+-1
+508113
+640314
+-1
+508113
+640313
+-1
+508113
+640312
+-1
+508113
+640311
+-1
+508113
+640310
+-1
+508113
+640309
+-1
+508113
+640308
+-1
+508113
+640307
+-1
+508113
+640306
+-1
+508113
+640305
+-1
+508113
+640304
+-1
+508113
+640303
+-1
+508113
+640302
+-1
+508113
+640301
+-1
+508113
+640300
+-1
+508113
+640299
+-1
+508113
+640298
+-1
+508113
+640297
+-1
+508113
+640296
+-1
+508113
+640295
+-1
+508113
+640294
+-1
+508113
+640293
+-1
+508113
+640292
+-1
+508113
+640291
+-1
+508113
+640290
+-1
+508113
+640289
+-1
+508113
+640288
+-1
+508113
+640287
+-1
+508113
+640286
+-1
+508113
+640285
+-1
+508113
+640284
+-1
+508113
+640283
+-1
+508113
+640282
+-1
+508113
+640281
+-1
+508113
+640280
+-1
+508113
+640279
+-1
+508113
+640278
+-1
+508113
+640277
+-1
+508113
+640276
+-1
+508113
+640275
+-1
+508113
+640274
+-1
+508113
+640273
+-1
+508113
+640272
+-1
+508113
+640271
+-1
+508113
+640270
+-1
+508113
+640269
+-1
+508113
+640268
+-1
+508113
+640267
+-1
+508113
+640266
+-1
+508113
+640265
+-1
+508113
+640264
+-1
+508113
+640263
+-1
+508113
+640262
+-1
+508113
+640261
+-1
+508113
+640260
+-1
+508113
+640259
+-1
+508113
+640258
+-1
+508113
+640001
+-1
+508113
+640002
+-1
+508113
+640003
+-1
+508113
+640004
+-1
+508113
+640005
+-1
+508113
+640006
+-1
+508113
+640007
+-1
+508113
+640008
+-1
+508113
+640009
+-1
+508113
+640010
+-1
+508113
+640011
+-1
+508113
+640012
+-1
+508113
+640013
+-1
+508113
+640014
+-1
+508113
+640015
+-1
+508113
+640016
+-1
+508113
+640017
+-1
+508113
+640018
+-1
+508113
+640019
+-1
+508113
+640020
+-1
+508113
+640021
+-1
+508113
+640022
+-1
+508113
+640023
+-1
+508113
+640024
+-1
+508113
+640025
+-1
+508113
+640026
+-1
+508113
+640027
+-1
+508113
+640028
+-1
+508113
+640029
+-1
+508113
+640030
+-1
+508113
+640031
+-1
+508113
+640032
+-1
+508113
+640033
+-1
+508113
+640034
+-1
+508113
+640035
+-1
+508113
+640036
+-1
+508113
+640037
+-1
+508113
+640038
+-1
+508113
+640039
+-1
+508113
+640040
+-1
+508113
+640041
+-1
+508113
+640042
+-1
+508113
+640043
+-1
+508113
+640044
+-1
+508113
+640045
+-1
+508113
+640046
+-1
+508113
+640047
+-1
+508113
+640048
+-1
+508113
+640049
+-1
+508113
+640050
+-1
+508113
+640051
+-1
+508113
+640052
+-1
+508113
+640053
+-1
+508113
+640054
+-1
+508113
+640055
+-1
+508113
+640056
+-1
+508113
+640057
+-1
+508113
+640058
+-1
+508113
+640059
+-1
+508113
+640060
+-1
+508113
+640061
+-1
+508113
+640062
+-1
+508113
+640063
+-1
+508113
+640064
+-1
+508113
+640065
+-1
+508113
+640066
+-1
+508113
+640067
+-1
+508113
+640068
+-1
+508113
+640069
+-1
+508113
+640070
+-1
+508113
+640071
+-1
+508113
+640072
+-1
+508113
+640073
+-1
+508113
+640074
+-1
+508113
+640075
+-1
+508113
+640076
+-1
+508113
+640077
+-1
+508113
+640078
+-1
+508113
+640079
+-1
+508113
+640080
+-1
+508113
+640081
+-1
+508113
+640082
+-1
+508113
+640083
+-1
+508113
+640084
+-1
+508113
+640085
+-1
+508113
+640086
+-1
+508113
+640087
+-1
+508113
+640088
+-1
+508113
+640089
+-1
+508113
+640090
+-1
+508113
+640091
+-1
+508113
+640092
+-1
+508113
+640093
+-1
+508113
+640094
+-1
+508113
+640095
+-1
+508113
+640096
+-1
+508113
+640097
+-1
+508113
+640098
+-1
+508113
+640099
+-1
+508113
+640100
+-1
+508113
+640101
+-1
+508113
+640102
+-1
+508113
+640103
+-1
+508113
+640104
+-1
+508113
+640105
+-1
+508113
+640106
+-1
+508113
+640107
+-1
+508113
+640108
+-1
+508113
+640109
+-1
+508113
+640110
+-1
+508113
+640111
+-1
+508113
+640112
+-1
+508113
+640113
+-1
+508113
+640114
+-1
+508113
+640115
+-1
+508113
+640116
+-1
+508113
+640117
+-1
+508113
+640118
+-1
+508113
+640119
+-1
+508113
+640120
+-1
+508113
+640121
+-1
+508113
+640122
+-1
+508113
+640123
+-1
+508113
+640124
+-1
+508113
+640125
+-1
+508113
+640126
+-1
+508113
+640127
+-1
+508113
+640128
+-1
+508113
+640129
+-1
+508113
+640130
+-1
+508113
+640131
+-1
+508113
+640132
+-1
+508113
+640133
+-1
+508113
+640134
+-1
+508113
+640135
+-1
+508113
+640136
+-1
+508113
+640137
+-1
+508113
+640138
+-1
+508113
+640139
+-1
+508113
+640140
+-1
+508113
+640141
+-1
+508113
+640142
+-1
+508113
+640143
+-1
+508113
+640144
+-1
+508113
+640145
+-1
+508113
+640146
+-1
+508113
+640147
+-1
+508113
+640148
+-1
+508113
+640149
+-1
+508113
+640150
+-1
+508113
+640151
+-1
+508113
+640152
+-1
+508113
+640153
+-1
+508113
+640154
+-1
+508113
+640155
+-1
+508113
+640156
+-1
+508113
+640157
+-1
+508113
+640158
+-1
+508113
+640159
+-1
+508113
+640160
+-1
+508113
+640161
+-1
+508113
+640162
+-1
+508113
+640163
+-1
+508113
+640164
+-1
+508113
+640165
+-1
+508113
+640166
+-1
+508113
+640167
+-1
+508113
+640168
+-1
+508113
+640169
+-1
+508113
+640170
+-1
+508113
+640171
+-1
+508113
+640172
+-1
+508113
+640173
+-1
+508113
+640174
+-1
+508113
+640175
+-1
+508113
+640176
+-1
+508113
+640177
+-1
+508113
+640178
+-1
+508113
+640179
+-1
+508113
+640180
+-1
+508113
+640181
+-1
+508113
+640182
+-1
+508113
+640183
+-1
+508113
+640184
+-1
+508113
+640185
+-1
+508113
+640186
+-1
+508113
+640187
+-1
+508113
+640188
+-1
+508113
+640189
+-1
+508113
+640190
+-1
+508113
+640191
+-1
+508113
+640192
+-1
+508113
+640193
+-1
+508113
+640194
+-1
+508113
+640195
+-1
+508113
+640196
+-1
+508113
+640197
+-1
+508113
+640198
+-1
+508113
+640199
+-1
+508113
+640200
+-1
+508113
+640201
+-1
+508113
+640202
+-1
+508113
+640203
+-1
+508113
+640204
+-1
+508113
+640205
+-1
+508113
+640206
+-1
+508113
+640207
+-1
+508113
+640208
+-1
+508113
+640209
+-1
+508113
+640210
+-1
+508113
+640211
+-1
+508113
+640212
+-1
+508113
+640213
+-1
+508113
+640214
+-1
+508113
+640215
+-1
+508113
+640216
+-1
+508113
+640217
+-1
+508113
+640218
+-1
+508113
+640219
+-1
+508113
+640220
+-1
+508113
+640221
+-1
+508113
+640222
+-1
+508113
+640223
+-1
+508113
+640224
+-1
+508113
+640225
+-1
+508113
+640226
+-1
+508113
+640227
+-1
+508113
+640228
+-1
+508113
+640229
+-1
+508113
+640230
+-1
+508113
+640231
+-1
+508113
+640232
+-1
+508113
+640233
+-1
+508113
+640234
+-1
+508113
+640235
+-1
+508113
+640236
+-1
+508113
+640237
+-1
+508113
+640238
+-1
+508113
+640239
+-1
+508113
+640240
+-1
+508113
+640241
+-1
+508113
+640242
+-1
+508113
+640243
+-1
+508113
+640244
+-1
+508113
+640245
+-1
+508113
+640246
+-1
+508113
+640247
+-1
+508113
+640248
+-1
+508113
+640249
+-1
+508113
+640250
+-1
+508113
+640251
+-1
+508113
+640252
+-1
+508113
+640253
+-1
+508113
+640254
+-1
+508113
+640255
+-1
+508113
+640256
+-1
+508113
+640257
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BUCKETA1.DAT b/DerClouProfiData/DATA/BUCKETA1.DAT
new file mode 100644
index 0000000..36b3be3
Binary files /dev/null and b/DerClouProfiData/DATA/BUCKETA1.DAT differ
diff --git a/DerClouProfiData/DATA/BUCKETA1.LFD b/DerClouProfiData/DATA/BUCKETA1.LFD
new file mode 100644
index 0000000..ffb310e
Binary files /dev/null and b/DerClouProfiData/DATA/BUCKETA1.LFD differ
diff --git a/DerClouProfiData/DATA/BUCKETA1.REL b/DerClouProfiData/DATA/BUCKETA1.REL
new file mode 100644
index 0000000..43d4cc3
--- /dev/null
+++ b/DerClouProfiData/DATA/BUCKETA1.REL
@@ -0,0 +1,1049 @@
+RELF
+RTAB
+650010
+508114
+650304
+-1
+508114
+650303
+-1
+RTAB
+650007
+650248
+9605
+300
+650249
+9605
+2200
+650250
+9605
+1900
+650251
+9605
+300
+650252
+9605
+1400
+650253
+9605
+200
+650254
+9600
+5
+650255
+9600
+160
+650256
+9600
+800
+650257
+9600
+100
+650259
+9605
+200
+650263
+9608
+5
+650265
+9602
+20
+650265
+9608
+4
+650264
+9608
+2000
+650282
+9603
+1600
+650283
+9601
+2360
+650283
+9602
+2310
+650283
+9604
+4370
+650264
+9647
+1600
+650268
+9606
+2
+RTAB
+650006
+650285
+650295
+-1
+650295
+650285
+-1
+650285
+650294
+-1
+650294
+650285
+-1
+650287
+650292
+-1
+650292
+650287
+-1
+650286
+650291
+-1
+650291
+650286
+-1
+650286
+650293
+-1
+650293
+650286
+-1
+RTAB
+650005
+650289
+650286
+-1
+650286
+650289
+-1
+650288
+650129
+-1
+650129
+650288
+-1
+650290
+650134
+-1
+650134
+650290
+-1
+650290
+650150
+-1
+650150
+650290
+-1
+RTAB
+650004
+650105
+650105
+-1
+650106
+9102
+-1
+650120
+9102
+-1
+650125
+9102
+-1
+650129
+9102
+-1
+650134
+9102
+-1
+650150
+9102
+-1
+650158
+9102
+-1
+650221
+9102
+-1
+650222
+9102
+-1
+RTAB
+650003
+508114
+650295
+-1
+508114
+650294
+-1
+508114
+650293
+-1
+508114
+650292
+-1
+508114
+650291
+-1
+508114
+650290
+-1
+508114
+650289
+-1
+508114
+650288
+-1
+508114
+650287
+-1
+508114
+650286
+-1
+508114
+650285
+-1
+508114
+650235
+-1
+508114
+650234
+-1
+508114
+650096
+-1
+508114
+650095
+-1
+508114
+650094
+-1
+508114
+650093
+-1
+508114
+650092
+-1
+508114
+650091
+-1
+508114
+650090
+-1
+508114
+650089
+-1
+508114
+650088
+-1
+508114
+650087
+-1
+508114
+650086
+-1
+508114
+650085
+-1
+508114
+650084
+-1
+508114
+650083
+-1
+508114
+650082
+-1
+508114
+650081
+-1
+508114
+650080
+-1
+508114
+650079
+-1
+508114
+650078
+-1
+508114
+650077
+-1
+508114
+650076
+-1
+508114
+650075
+-1
+508114
+650074
+-1
+508114
+650073
+-1
+508114
+650072
+-1
+508114
+650071
+-1
+508114
+650070
+-1
+508114
+650069
+-1
+508114
+650068
+-1
+508114
+650067
+-1
+508114
+650066
+-1
+508114
+650065
+-1
+508114
+650064
+-1
+508114
+650063
+-1
+508114
+650062
+-1
+508114
+650061
+-1
+508114
+650060
+-1
+508114
+650059
+-1
+508114
+650058
+-1
+508114
+650057
+-1
+508114
+650056
+-1
+508114
+650055
+-1
+508114
+650054
+-1
+508114
+650053
+-1
+508114
+650052
+-1
+508114
+650051
+-1
+508114
+650050
+-1
+508114
+650049
+-1
+508114
+650048
+-1
+508114
+650047
+-1
+508114
+650046
+-1
+508114
+650045
+-1
+508114
+650044
+-1
+508114
+650043
+-1
+508114
+650042
+-1
+508114
+650041
+-1
+508114
+650040
+-1
+508114
+650039
+-1
+508114
+650038
+-1
+508114
+650037
+-1
+508114
+650036
+-1
+508114
+650035
+-1
+508114
+650034
+-1
+508114
+650033
+-1
+508114
+650032
+-1
+508114
+650031
+-1
+508114
+650030
+-1
+508114
+650029
+-1
+508114
+650028
+-1
+508114
+650027
+-1
+508114
+650026
+-1
+508114
+650025
+-1
+508114
+650024
+-1
+508114
+650023
+-1
+508114
+650022
+-1
+508114
+650021
+-1
+508114
+650020
+-1
+508114
+650019
+-1
+508114
+650018
+-1
+508114
+650017
+-1
+508114
+650016
+-1
+508114
+650015
+-1
+508114
+650014
+-1
+508114
+650013
+-1
+508114
+650012
+-1
+508114
+650011
+-1
+508114
+650010
+-1
+508114
+650009
+-1
+508114
+650105
+-1
+508114
+650106
+-1
+508114
+650107
+-1
+508114
+650108
+-1
+508114
+650109
+-1
+508114
+650110
+-1
+508114
+650111
+-1
+508114
+650112
+-1
+508114
+650113
+-1
+508114
+650114
+-1
+508114
+650115
+-1
+508114
+650116
+-1
+508114
+650117
+-1
+508114
+650118
+-1
+508114
+650119
+-1
+508114
+650120
+-1
+508114
+650121
+-1
+508114
+650122
+-1
+508114
+650123
+-1
+508114
+650124
+-1
+508114
+650125
+-1
+508114
+650126
+-1
+508114
+650127
+-1
+508114
+650128
+-1
+508114
+650129
+-1
+508114
+650130
+-1
+508114
+650131
+-1
+508114
+650132
+-1
+508114
+650133
+-1
+508114
+650134
+-1
+508114
+650135
+-1
+508114
+650136
+-1
+508114
+650137
+-1
+508114
+650138
+-1
+508114
+650139
+-1
+508114
+650140
+-1
+508114
+650141
+-1
+508114
+650142
+-1
+508114
+650143
+-1
+508114
+650144
+-1
+508114
+650145
+-1
+508114
+650146
+-1
+508114
+650147
+-1
+508114
+650148
+-1
+508114
+650149
+-1
+508114
+650150
+-1
+508114
+650151
+-1
+508114
+650152
+-1
+508114
+650153
+-1
+508114
+650154
+-1
+508114
+650155
+-1
+508114
+650156
+-1
+508114
+650157
+-1
+508114
+650158
+-1
+508114
+650159
+-1
+508114
+650160
+-1
+508114
+650161
+-1
+508114
+650162
+-1
+508114
+650163
+-1
+508114
+650164
+-1
+508114
+650165
+-1
+508114
+650166
+-1
+508114
+650167
+-1
+508114
+650168
+-1
+508114
+650169
+-1
+508114
+650170
+-1
+508114
+650171
+-1
+508114
+650172
+-1
+508114
+650173
+-1
+508114
+650174
+-1
+508114
+650175
+-1
+508114
+650176
+-1
+508114
+650177
+-1
+508114
+650178
+-1
+508114
+650179
+-1
+508114
+650180
+-1
+508114
+650181
+-1
+508114
+650182
+-1
+508114
+650183
+-1
+508114
+650184
+-1
+508114
+650185
+-1
+508114
+650186
+-1
+508114
+650187
+-1
+508114
+650188
+-1
+508114
+650189
+-1
+508114
+650190
+-1
+508114
+650191
+-1
+508114
+650192
+-1
+508114
+650193
+-1
+508114
+650194
+-1
+508114
+650195
+-1
+508114
+650196
+-1
+508114
+650197
+-1
+508114
+650198
+-1
+508114
+650199
+-1
+508114
+650200
+-1
+508114
+650201
+-1
+508114
+650202
+-1
+508114
+650203
+-1
+508114
+650204
+-1
+508114
+650205
+-1
+508114
+650206
+-1
+508114
+650207
+-1
+508114
+650208
+-1
+508114
+650209
+-1
+508114
+650210
+-1
+508114
+650211
+-1
+508114
+650212
+-1
+508114
+650213
+-1
+508114
+650214
+-1
+508114
+650215
+-1
+508114
+650216
+-1
+508114
+650217
+-1
+508114
+650218
+-1
+508114
+650219
+-1
+508114
+650220
+-1
+508114
+650221
+-1
+508114
+650222
+-1
+508114
+650223
+-1
+508114
+650224
+-1
+508114
+650225
+-1
+508114
+650226
+-1
+508114
+650227
+-1
+508114
+650228
+-1
+508114
+650229
+-1
+508114
+650230
+-1
+508114
+650231
+-1
+508114
+650232
+-1
+508114
+650233
+-1
+508114
+650008
+-1
+508114
+650007
+-1
+508114
+650006
+-1
+508114
+650005
+-1
+508114
+650004
+-1
+508114
+650003
+-1
+508114
+650002
+-1
+508114
+650001
+-1
+508114
+650236
+-1
+508114
+650237
+-1
+508114
+650238
+-1
+508114
+650239
+-1
+508114
+650240
+-1
+508114
+650241
+-1
+508114
+650242
+-1
+508114
+650243
+-1
+508114
+650244
+-1
+508114
+650245
+-1
+508114
+650246
+-1
+508114
+650247
+-1
+508114
+650248
+-1
+508114
+650249
+-1
+508114
+650250
+-1
+508114
+650251
+-1
+508114
+650252
+-1
+508114
+650253
+-1
+508114
+650254
+-1
+508114
+650255
+-1
+508114
+650256
+-1
+508114
+650257
+-1
+508114
+650258
+-1
+508114
+650259
+-1
+508114
+650260
+-1
+508114
+650261
+-1
+508114
+650262
+-1
+508114
+650263
+-1
+508114
+650264
+-1
+508114
+650265
+-1
+508114
+650266
+-1
+508114
+650267
+-1
+508114
+650268
+-1
+508114
+650269
+-1
+508114
+650270
+-1
+508114
+650271
+-1
+508114
+650272
+-1
+508114
+650273
+-1
+508114
+650274
+-1
+508114
+650275
+-1
+508114
+650276
+-1
+508114
+650277
+-1
+508114
+650278
+-1
+508114
+650279
+-1
+508114
+650280
+-1
+508114
+650281
+-1
+508114
+650282
+-1
+508114
+650283
+-1
+508114
+650284
+-1
+508114
+650296
+-1
+508114
+650297
+-1
+508114
+650298
+-1
+508114
+650299
+-1
+508114
+650300
+-1
+508114
+650301
+-1
+508114
+650302
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BULCETA.GRE b/DerClouProfiData/DATA/BULCETA.GRE
new file mode 100644
index 0000000..82b47fa
--- /dev/null
+++ b/DerClouProfiData/DATA/BULCETA.GRE
@@ -0,0 +1,20 @@
+RELF
+RTAB
+3
+660293
+660293
+508116
+670111
+670111
+508115
+RTAB
+2
+660281
+660281
+550
+RTAB
+1
+509108
+660281
+550
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BULCETA.GUA b/DerClouProfiData/DATA/BULCETA.GUA
new file mode 100644
index 0000000..95fc073
--- /dev/null
+++ b/DerClouProfiData/DATA/BULCETA.GUA
@@ -0,0 +1,282 @@
+ACLI
+508500
+ACTI
+2
+180
+ACTI
+1
+85
+8
+ACTI
+1
+234
+2
+ACTI
+1
+4
+4
+ACTI
+1
+224
+1
+ACTI
+1
+81
+4
+ACTI
+1
+10
+1
+ACLI
+508501
+ACTI
+2
+180
+ACTI
+1
+14
+4
+ACTI
+1
+68
+2
+ACTI
+1
+36
+4
+ACTI
+1
+7
+1
+ACTI
+10
+15
+660133
+ACTI
+8
+21
+660133
+ACTI
+1
+1
+8
+ACTI
+1
+18
+1
+ACTI
+1
+4
+2
+ACTI
+9
+21
+660133
+ACTI
+1
+5
+4
+ACTI
+10
+15
+660281
+ACTI
+1
+15
+1
+ACTI
+1
+5
+8
+ACTI
+1
+5
+1
+ACTI
+10
+15
+660132
+ACTI
+8
+21
+660132
+ACTI
+1
+14
+1
+ACTI
+1
+2
+2
+ACTI
+9
+21
+660132
+ACTI
+1
+19
+1
+ACTI
+10
+15
+660131
+ACTI
+8
+21
+660131
+ACTI
+1
+17
+1
+ACTI
+1
+5
+2
+ACTI
+9
+21
+660131
+ACTI
+1
+19
+1
+ACTI
+10
+15
+660130
+ACTI
+8
+21
+660130
+ACTI
+1
+14
+1
+ACTI
+1
+1
+2
+ACTI
+9
+21
+660130
+ACTI
+1
+18
+1
+ACTI
+10
+15
+660129
+ACTI
+8
+21
+660129
+ACTI
+1
+17
+1
+ACTI
+1
+2
+2
+ACTI
+9
+21
+660129
+ACTI
+1
+17
+1
+ACTI
+10
+15
+660128
+ACTI
+8
+21
+660128
+ACTI
+1
+16
+1
+ACTI
+1
+1
+2
+ACTI
+9
+21
+660128
+ACTI
+1
+10
+1
+ACTI
+1
+13
+8
+ACTI
+2
+60
+ACTI
+1
+6
+8
+ACTI
+10
+15
+660175
+ACTI
+8
+21
+660175
+ACTI
+1
+13
+8
+ACTI
+1
+1
+4
+ACTI
+9
+21
+660175
+ACTI
+1
+7
+8
+ACTI
+1
+123
+2
+ACTI
+1
+11
+8
+ACLI
+508502
+ACTI
+1
+14
+8
+ACTI
+1
+185
+1
+ACTI
+1
+15
+4
+ACTI
+1
+185
+2
+ACTI
+2
+360
+ACTI
+1
+1
+8
diff --git a/DerClouProfiData/DATA/BULCETA.SPO b/DerClouProfiData/DATA/BULCETA.SPO
new file mode 100644
index 0000000..e0aa21d
--- /dev/null
+++ b/DerClouProfiData/DATA/BULCETA.SPO
@@ -0,0 +1,60 @@
+6
+32
+1
+660289
+1
+386
+166
+48
+1
+660289
+1
+441
+157
+32
+1
+660288
+1
+470
+30
+32
+5
+670222
+6
+430
+83
+448
+99
+464
+113
+483
+130
+463
+110
+446
+95
+16
+6
+670194
+7
+205
+81
+204
+92
+203
+103
+203
+112
+202
+103
+202
+95
+202
+87
+48
+1
+670193
+1
+226
+23
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BULCETA0.DAT b/DerClouProfiData/DATA/BULCETA0.DAT
new file mode 100644
index 0000000..7486307
Binary files /dev/null and b/DerClouProfiData/DATA/BULCETA0.DAT differ
diff --git a/DerClouProfiData/DATA/BULCETA0.LFD b/DerClouProfiData/DATA/BULCETA0.LFD
new file mode 100644
index 0000000..cae1d84
--- /dev/null
+++ b/DerClouProfiData/DATA/BULCETA0.LFD
@@ -0,0 +1 @@
+���������������������������������������������������������Ņ��������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BULCETA0.REL b/DerClouProfiData/DATA/BULCETA0.REL
new file mode 100644
index 0000000..de50b38
--- /dev/null
+++ b/DerClouProfiData/DATA/BULCETA0.REL
@@ -0,0 +1,1052 @@
+RELF
+RTAB
+660010
+508115
+660306
+-1
+508115
+660305
+-1
+508115
+660304
+-1
+508115
+660303
+-1
+508115
+660302
+-1
+508115
+660301
+-1
+508115
+660300
+-1
+508115
+660299
+-1
+508115
+660298
+-1
+508115
+660297
+-1
+508115
+660296
+-1
+508115
+660295
+-1
+508115
+660294
+-1
+RTAB
+660007
+RTAB
+660006
+660289
+660291
+-1
+660291
+660289
+-1
+660289
+660292
+-1
+660292
+660289
+-1
+660288
+660290
+-1
+660290
+660288
+-1
+RTAB
+660005
+660284
+660288
+-1
+660288
+660284
+-1
+660283
+660039
+-1
+660039
+660283
+-1
+660282
+660229
+-1
+660229
+660282
+-1
+660282
+660228
+-1
+660228
+660282
+-1
+660282
+660090
+-1
+660090
+660282
+-1
+660282
+660091
+-1
+660091
+660282
+-1
+660282
+660225
+-1
+660225
+660282
+-1
+660282
+660226
+-1
+660226
+660282
+-1
+660282
+660224
+-1
+660224
+660282
+-1
+RTAB
+660004
+660213
+660213
+-1
+660195
+660195
+-1
+660175
+660175
+-1
+660170
+660170
+-1
+660161
+660161
+-1
+660156
+660156
+-1
+660141
+660141
+-1
+660133
+660133
+-1
+660132
+660132
+-1
+660131
+660131
+-1
+660130
+660130
+-1
+660129
+660129
+-1
+660128
+660128
+-1
+660091
+660091
+-1
+660090
+660090
+-1
+660039
+660039
+-1
+RTAB
+660003
+508115
+660243
+-1
+508115
+660242
+-1
+508115
+660241
+-1
+508115
+660240
+-1
+508115
+660239
+-1
+508115
+660238
+-1
+508115
+660237
+-1
+508115
+660236
+-1
+508115
+660235
+-1
+508115
+660234
+-1
+508115
+660233
+-1
+508115
+660232
+-1
+508115
+660231
+-1
+508115
+660230
+-1
+508115
+660229
+-1
+508115
+660228
+-1
+508115
+660227
+-1
+508115
+660226
+-1
+508115
+660225
+-1
+508115
+660224
+-1
+508115
+660223
+-1
+508115
+660222
+-1
+508115
+660221
+-1
+508115
+660220
+-1
+508115
+660219
+-1
+508115
+660218
+-1
+508115
+660217
+-1
+508115
+660216
+-1
+508115
+660215
+-1
+508115
+660214
+-1
+508115
+660213
+-1
+508115
+660212
+-1
+508115
+660211
+-1
+508115
+660210
+-1
+508115
+660209
+-1
+508115
+660208
+-1
+508115
+660207
+-1
+508115
+660206
+-1
+508115
+660205
+-1
+508115
+660204
+-1
+508115
+660203
+-1
+508115
+660202
+-1
+508115
+660201
+-1
+508115
+660200
+-1
+508115
+660199
+-1
+508115
+660198
+-1
+508115
+660197
+-1
+508115
+660196
+-1
+508115
+660195
+-1
+508115
+660194
+-1
+508115
+660193
+-1
+508115
+660192
+-1
+508115
+660191
+-1
+508115
+660190
+-1
+508115
+660189
+-1
+508115
+660188
+-1
+508115
+660187
+-1
+508115
+660186
+-1
+508115
+660185
+-1
+508115
+660184
+-1
+508115
+660183
+-1
+508115
+660182
+-1
+508115
+660181
+-1
+508115
+660180
+-1
+508115
+660179
+-1
+508115
+660178
+-1
+508115
+660177
+-1
+508115
+660176
+-1
+508115
+660175
+-1
+508115
+660174
+-1
+508115
+660173
+-1
+508115
+660172
+-1
+508115
+660171
+-1
+508115
+660170
+-1
+508115
+660169
+-1
+508115
+660168
+-1
+508115
+660167
+-1
+508115
+660166
+-1
+508115
+660165
+-1
+508115
+660164
+-1
+508115
+660163
+-1
+508115
+660162
+-1
+508115
+660161
+-1
+508115
+660160
+-1
+508115
+660159
+-1
+508115
+660158
+-1
+508115
+660157
+-1
+508115
+660156
+-1
+508115
+660155
+-1
+508115
+660154
+-1
+508115
+660153
+-1
+508115
+660152
+-1
+508115
+660151
+-1
+508115
+660150
+-1
+508115
+660149
+-1
+508115
+660148
+-1
+508115
+660147
+-1
+508115
+660146
+-1
+508115
+660145
+-1
+508115
+660144
+-1
+508115
+660143
+-1
+508115
+660142
+-1
+508115
+660141
+-1
+508115
+660140
+-1
+508115
+660139
+-1
+508115
+660138
+-1
+508115
+660137
+-1
+508115
+660136
+-1
+508115
+660135
+-1
+508115
+660134
+-1
+508115
+660133
+-1
+508115
+660132
+-1
+508115
+660131
+-1
+508115
+660130
+-1
+508115
+660129
+-1
+508115
+660128
+-1
+508115
+660127
+-1
+508115
+660126
+-1
+508115
+660125
+-1
+508115
+660124
+-1
+508115
+660123
+-1
+508115
+660122
+-1
+508115
+660121
+-1
+508115
+660120
+-1
+508115
+660119
+-1
+508115
+660118
+-1
+508115
+660117
+-1
+508115
+660116
+-1
+508115
+660115
+-1
+508115
+660114
+-1
+508115
+660113
+-1
+508115
+660112
+-1
+508115
+660111
+-1
+508115
+660110
+-1
+508115
+660109
+-1
+508115
+660108
+-1
+508115
+660107
+-1
+508115
+660106
+-1
+508115
+660105
+-1
+508115
+660104
+-1
+508115
+660103
+-1
+508115
+660102
+-1
+508115
+660101
+-1
+508115
+660100
+-1
+508115
+660099
+-1
+508115
+660098
+-1
+508115
+660097
+-1
+508115
+660096
+-1
+508115
+660095
+-1
+508115
+660094
+-1
+508115
+660093
+-1
+508115
+660092
+-1
+508115
+660091
+-1
+508115
+660090
+-1
+508115
+660089
+-1
+508115
+660088
+-1
+508115
+660087
+-1
+508115
+660086
+-1
+508115
+660085
+-1
+508115
+660084
+-1
+508115
+660083
+-1
+508115
+660082
+-1
+508115
+660081
+-1
+508115
+660080
+-1
+508115
+660079
+-1
+508115
+660078
+-1
+508115
+660077
+-1
+508115
+660076
+-1
+508115
+660075
+-1
+508115
+660074
+-1
+508115
+660073
+-1
+508115
+660072
+-1
+508115
+660071
+-1
+508115
+660070
+-1
+508115
+660069
+-1
+508115
+660068
+-1
+508115
+660067
+-1
+508115
+660066
+-1
+508115
+660065
+-1
+508115
+660064
+-1
+508115
+660063
+-1
+508115
+660062
+-1
+508115
+660061
+-1
+508115
+660060
+-1
+508115
+660059
+-1
+508115
+660058
+-1
+508115
+660057
+-1
+508115
+660056
+-1
+508115
+660055
+-1
+508115
+660054
+-1
+508115
+660053
+-1
+508115
+660052
+-1
+508115
+660051
+-1
+508115
+660050
+-1
+508115
+660049
+-1
+508115
+660048
+-1
+508115
+660047
+-1
+508115
+660046
+-1
+508115
+660045
+-1
+508115
+660044
+-1
+508115
+660043
+-1
+508115
+660042
+-1
+508115
+660041
+-1
+508115
+660040
+-1
+508115
+660039
+-1
+508115
+660038
+-1
+508115
+660037
+-1
+508115
+660036
+-1
+508115
+660035
+-1
+508115
+660034
+-1
+508115
+660033
+-1
+508115
+660032
+-1
+508115
+660031
+-1
+508115
+660030
+-1
+508115
+660029
+-1
+508115
+660028
+-1
+508115
+660027
+-1
+508115
+660026
+-1
+508115
+660025
+-1
+508115
+660024
+-1
+508115
+660023
+-1
+508115
+660022
+-1
+508115
+660021
+-1
+508115
+660020
+-1
+508115
+660019
+-1
+508115
+660018
+-1
+508115
+660017
+-1
+508115
+660016
+-1
+508115
+660015
+-1
+508115
+660014
+-1
+508115
+660013
+-1
+508115
+660012
+-1
+508115
+660011
+-1
+508115
+660010
+-1
+508115
+660009
+-1
+508115
+660008
+-1
+508115
+660007
+-1
+508115
+660006
+-1
+508115
+660005
+-1
+508115
+660004
+-1
+508115
+660003
+-1
+508115
+660002
+-1
+508115
+660001
+-1
+508115
+660244
+-1
+508115
+660245
+-1
+508115
+660246
+-1
+508115
+660247
+-1
+508115
+660248
+-1
+508115
+660249
+-1
+508115
+660250
+-1
+508115
+660251
+-1
+508115
+660252
+-1
+508115
+660253
+-1
+508115
+660254
+-1
+508115
+660255
+-1
+508115
+660256
+-1
+508115
+660257
+-1
+508115
+660258
+-1
+508115
+660259
+-1
+508115
+660260
+-1
+508115
+660261
+-1
+508115
+660262
+-1
+508115
+660263
+-1
+508115
+660264
+-1
+508115
+660265
+-1
+508115
+660266
+-1
+508115
+660267
+-1
+508115
+660268
+-1
+508115
+660269
+-1
+508115
+660270
+-1
+508115
+660271
+-1
+508115
+660272
+-1
+508115
+660273
+-1
+508115
+660274
+-1
+508115
+660275
+-1
+508115
+660276
+-1
+508115
+660277
+-1
+508115
+660278
+-1
+508115
+660279
+-1
+508115
+660280
+-1
+508115
+660281
+-1
+508115
+660282
+-1
+508115
+660283
+-1
+508115
+660284
+-1
+508115
+660285
+-1
+508115
+660286
+-1
+508115
+660287
+-1
+508115
+660288
+-1
+508115
+660289
+-1
+508115
+660290
+-1
+508115
+660291
+-1
+508115
+660292
+-1
+508115
+660293
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BULCETA1.DAT b/DerClouProfiData/DATA/BULCETA1.DAT
new file mode 100644
index 0000000..2d5ffe0
Binary files /dev/null and b/DerClouProfiData/DATA/BULCETA1.DAT differ
diff --git a/DerClouProfiData/DATA/BULCETA1.LFD b/DerClouProfiData/DATA/BULCETA1.LFD
new file mode 100644
index 0000000..f50fca0
--- /dev/null
+++ b/DerClouProfiData/DATA/BULCETA1.LFD
@@ -0,0 +1 @@
+��������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/BULCETA1.REL b/DerClouProfiData/DATA/BULCETA1.REL
new file mode 100644
index 0000000..282cadb
--- /dev/null
+++ b/DerClouProfiData/DATA/BULCETA1.REL
@@ -0,0 +1,755 @@
+RELF
+RTAB
+670010
+508116
+670228
+-1
+508116
+670229
+-1
+RTAB
+670007
+670224
+9646
+100000
+RTAB
+670006
+670196
+670194
+-1
+670194
+670196
+-1
+670197
+670193
+-1
+670193
+670197
+-1
+670195
+670222
+-1
+670222
+670195
+-1
+RTAB
+670005
+670163
+670192
+-1
+670192
+670163
+-1
+670224
+670190
+-1
+670190
+670224
+-1
+670162
+670191
+-1
+670191
+670162
+-1
+RTAB
+670004
+670179
+670179
+-1
+670178
+670178
+-1
+670163
+670163
+-1
+670162
+670162
+-1
+670139
+670139
+-1
+RTAB
+670003
+508116
+670227
+-1
+508116
+670226
+-1
+508116
+670225
+-1
+508116
+670224
+-1
+508116
+670223
+-1
+508116
+670222
+-1
+508116
+670221
+-1
+508116
+670220
+-1
+508116
+670219
+-1
+508116
+670218
+-1
+508116
+670217
+-1
+508116
+670216
+-1
+508116
+670215
+-1
+508116
+670214
+-1
+508116
+670213
+-1
+508116
+670212
+-1
+508116
+670211
+-1
+508116
+670210
+-1
+508116
+670209
+-1
+508116
+670208
+-1
+508116
+670207
+-1
+508116
+670206
+-1
+508116
+670205
+-1
+508116
+670204
+-1
+508116
+670203
+-1
+508116
+670202
+-1
+508116
+670201
+-1
+508116
+670200
+-1
+508116
+670199
+-1
+508116
+670198
+-1
+508116
+670197
+-1
+508116
+670196
+-1
+508116
+670195
+-1
+508116
+670194
+-1
+508116
+670193
+-1
+508116
+670192
+-1
+508116
+670191
+-1
+508116
+670190
+-1
+508116
+670189
+-1
+508116
+670188
+-1
+508116
+670187
+-1
+508116
+670186
+-1
+508116
+670185
+-1
+508116
+670184
+-1
+508116
+670183
+-1
+508116
+670182
+-1
+508116
+670181
+-1
+508116
+670180
+-1
+508116
+670179
+-1
+508116
+670178
+-1
+508116
+670177
+-1
+508116
+670176
+-1
+508116
+670175
+-1
+508116
+670174
+-1
+508116
+670173
+-1
+508116
+670172
+-1
+508116
+670171
+-1
+508116
+670170
+-1
+508116
+670169
+-1
+508116
+670168
+-1
+508116
+670167
+-1
+508116
+670166
+-1
+508116
+670165
+-1
+508116
+670164
+-1
+508116
+670163
+-1
+508116
+670162
+-1
+508116
+670161
+-1
+508116
+670160
+-1
+508116
+670159
+-1
+508116
+670158
+-1
+508116
+670157
+-1
+508116
+670156
+-1
+508116
+670155
+-1
+508116
+670154
+-1
+508116
+670153
+-1
+508116
+670152
+-1
+508116
+670151
+-1
+508116
+670150
+-1
+508116
+670149
+-1
+508116
+670148
+-1
+508116
+670147
+-1
+508116
+670146
+-1
+508116
+670145
+-1
+508116
+670144
+-1
+508116
+670143
+-1
+508116
+670142
+-1
+508116
+670141
+-1
+508116
+670140
+-1
+508116
+670139
+-1
+508116
+670138
+-1
+508116
+670137
+-1
+508116
+670136
+-1
+508116
+670135
+-1
+508116
+670134
+-1
+508116
+670133
+-1
+508116
+670132
+-1
+508116
+670131
+-1
+508116
+670130
+-1
+508116
+670129
+-1
+508116
+670128
+-1
+508116
+670127
+-1
+508116
+670126
+-1
+508116
+670125
+-1
+508116
+670124
+-1
+508116
+670123
+-1
+508116
+670122
+-1
+508116
+670121
+-1
+508116
+670120
+-1
+508116
+670119
+-1
+508116
+670118
+-1
+508116
+670117
+-1
+508116
+670116
+-1
+508116
+670115
+-1
+508116
+670114
+-1
+508116
+670113
+-1
+508116
+670112
+-1
+508116
+670001
+-1
+508116
+670002
+-1
+508116
+670003
+-1
+508116
+670004
+-1
+508116
+670005
+-1
+508116
+670006
+-1
+508116
+670007
+-1
+508116
+670008
+-1
+508116
+670009
+-1
+508116
+670010
+-1
+508116
+670011
+-1
+508116
+670012
+-1
+508116
+670013
+-1
+508116
+670014
+-1
+508116
+670015
+-1
+508116
+670016
+-1
+508116
+670017
+-1
+508116
+670018
+-1
+508116
+670019
+-1
+508116
+670020
+-1
+508116
+670021
+-1
+508116
+670022
+-1
+508116
+670023
+-1
+508116
+670024
+-1
+508116
+670025
+-1
+508116
+670026
+-1
+508116
+670027
+-1
+508116
+670028
+-1
+508116
+670029
+-1
+508116
+670030
+-1
+508116
+670031
+-1
+508116
+670032
+-1
+508116
+670033
+-1
+508116
+670034
+-1
+508116
+670035
+-1
+508116
+670036
+-1
+508116
+670037
+-1
+508116
+670038
+-1
+508116
+670039
+-1
+508116
+670040
+-1
+508116
+670041
+-1
+508116
+670042
+-1
+508116
+670043
+-1
+508116
+670044
+-1
+508116
+670045
+-1
+508116
+670046
+-1
+508116
+670047
+-1
+508116
+670048
+-1
+508116
+670049
+-1
+508116
+670050
+-1
+508116
+670051
+-1
+508116
+670052
+-1
+508116
+670053
+-1
+508116
+670054
+-1
+508116
+670055
+-1
+508116
+670056
+-1
+508116
+670057
+-1
+508116
+670058
+-1
+508116
+670059
+-1
+508116
+670060
+-1
+508116
+670061
+-1
+508116
+670062
+-1
+508116
+670063
+-1
+508116
+670064
+-1
+508116
+670065
+-1
+508116
+670066
+-1
+508116
+670067
+-1
+508116
+670068
+-1
+508116
+670069
+-1
+508116
+670070
+-1
+508116
+670071
+-1
+508116
+670072
+-1
+508116
+670073
+-1
+508116
+670074
+-1
+508116
+670075
+-1
+508116
+670076
+-1
+508116
+670077
+-1
+508116
+670078
+-1
+508116
+670079
+-1
+508116
+670080
+-1
+508116
+670081
+-1
+508116
+670082
+-1
+508116
+670083
+-1
+508116
+670084
+-1
+508116
+670085
+-1
+508116
+670086
+-1
+508116
+670087
+-1
+508116
+670088
+-1
+508116
+670089
+-1
+508116
+670090
+-1
+508116
+670091
+-1
+508116
+670092
+-1
+508116
+670093
+-1
+508116
+670094
+-1
+508116
+670095
+-1
+508116
+670096
+-1
+508116
+670097
+-1
+508116
+670098
+-1
+508116
+670099
+-1
+508116
+670100
+-1
+508116
+670101
+-1
+508116
+670102
+-1
+508116
+670103
+-1
+508116
+670104
+-1
+508116
+670105
+-1
+508116
+670106
+-1
+508116
+670107
+-1
+508116
+670108
+-1
+508116
+670109
+-1
+508116
+670110
+-1
+508116
+670111
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/CHISETA.GRE b/DerClouProfiData/DATA/CHISETA.GRE
new file mode 100644
index 0000000..9a0019d
--- /dev/null
+++ b/DerClouProfiData/DATA/CHISETA.GRE
@@ -0,0 +1,14 @@
+RELF
+RTAB
+1
+509011
+260145
+300
+RTAB
+2
+260145
+260145
+300
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/CHISETA.GUA b/DerClouProfiData/DATA/CHISETA.GUA
new file mode 100644
index 0000000..f8887f5
--- /dev/null
+++ b/DerClouProfiData/DATA/CHISETA.GUA
@@ -0,0 +1,221 @@
+ACLI
+508500
+ACTI
+1
+20
+8
+ACTI
+1
+4
+1
+ACTI
+1
+7
+8
+ACTI
+1
+15
+1
+ACTI
+8
+24
+260146
+ACTI
+10
+15
+260146
+ACTI
+9
+24
+260146
+ACTI
+1
+5
+8
+ACTI
+1
+18
+1
+ACTI
+1
+7
+4
+ACTI
+10
+15
+260096
+ACTI
+1
+12
+8
+ACTI
+1
+16
+1
+ACTI
+10
+15
+260019
+ACTI
+1
+15
+2
+ACTI
+1
+10
+8
+ACTI
+10
+15
+260082
+ACTI
+8
+9
+260082
+ACTI
+1
+2
+2
+ACTI
+1
+13
+8
+ACTI
+1
+1
+4
+ACTI
+9
+9
+260082
+ACTI
+1
+10
+1
+ACTI
+8
+24
+260147
+ACTI
+10
+15
+260147
+ACTI
+9
+24
+260147
+ACTI
+1
+9
+2
+ACTI
+1
+2
+4
+ACTI
+10
+15
+260082
+ACTI
+8
+9
+260082
+ACTI
+1
+11
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+260082
+ACTI
+1
+32
+2
+ACTI
+1
+31
+8
+ACTI
+1
+9
+2
+ACTI
+1
+1
+8
+ACTI
+10
+15
+260069
+ACTI
+2
+204
+ACTI
+1
+10
+2
+ACTI
+1
+43
+4
+ACTI
+1
+1
+1
+ACTI
+10
+15
+260140
+ACTI
+1
+12
+2
+ACTI
+1
+4
+4
+ACTI
+8
+24
+260148
+ACTI
+10
+15
+260148
+ACTI
+9
+24
+260148
+ACTI
+1
+10
+1
+ACTI
+1
+38
+4
+ACTI
+1
+4
+1
+ACTI
+10
+15
+260145
+ACTI
+1
+5
+8
+ACTI
+1
+11
+1
+ACTI
+1
+1
+8
diff --git a/DerClouProfiData/DATA/CHISETA.SPO b/DerClouProfiData/DATA/CHISETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/CHISETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/CHISETA0.DAT b/DerClouProfiData/DATA/CHISETA0.DAT
new file mode 100644
index 0000000..2595239
Binary files /dev/null and b/DerClouProfiData/DATA/CHISETA0.DAT differ
diff --git a/DerClouProfiData/DATA/CHISETA0.LFD b/DerClouProfiData/DATA/CHISETA0.LFD
new file mode 100644
index 0000000..57a79fe
--- /dev/null
+++ b/DerClouProfiData/DATA/CHISETA0.LFD
@@ -0,0 +1 @@
+��������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/CHISETA0.REL b/DerClouProfiData/DATA/CHISETA0.REL
new file mode 100644
index 0000000..06d1b2c
--- /dev/null
+++ b/DerClouProfiData/DATA/CHISETA0.REL
@@ -0,0 +1,632 @@
+RELF
+RTAB
+260008
+RTAB
+260009
+RTAB
+260011
+RTAB
+260010
+508025
+260161
+-1
+508025
+260162
+-1
+508025
+260163
+-1
+RTAB
+260007
+260140
+9607
+900
+260143
+9607
+1500
+260141
+9607
+3000
+260142
+9607
+1900
+260144
+9607
+2100
+260151
+9600
+900
+260150
+9600
+1000
+260149
+9605
+2000
+260153
+9609
+700
+RTAB
+260006
+RTAB
+260005
+260019
+260147
+-1
+260147
+260019
+-1
+260123
+260148
+-1
+260148
+260123
+-1
+260111
+260148
+-1
+260148
+260111
+-1
+260082
+260148
+-1
+260148
+260082
+-1
+260096
+260148
+-1
+260148
+260096
+-1
+260069
+260148
+-1
+260148
+260069
+-1
+260142
+260146
+-1
+260146
+260142
+-1
+260144
+260146
+-1
+260146
+260144
+-1
+260140
+260146
+-1
+260146
+260140
+-1
+260143
+260146
+-1
+260146
+260143
+-1
+260141
+260146
+-1
+260146
+260141
+-1
+260149
+260146
+-1
+260146
+260149
+-1
+260150
+260146
+-1
+260146
+260150
+-1
+260151
+260146
+-1
+260146
+260151
+-1
+RTAB
+260004
+260123
+9102
+-1
+260069
+9102
+-1
+260019
+9102
+-1
+260082
+9102
+-1
+260096
+9102
+-1
+260111
+9102
+-1
+RTAB
+260003
+508025
+260151
+-1
+508025
+260150
+-1
+508025
+260149
+-1
+508025
+260148
+-1
+508025
+260147
+-1
+508025
+260146
+-1
+508025
+260145
+-1
+508025
+260144
+-1
+508025
+260143
+-1
+508025
+260142
+-1
+508025
+260141
+-1
+508025
+260140
+-1
+508025
+260139
+-1
+508025
+260138
+-1
+508025
+260137
+-1
+508025
+260136
+-1
+508025
+260135
+-1
+508025
+260134
+-1
+508025
+260133
+-1
+508025
+260132
+-1
+508025
+260131
+-1
+508025
+260130
+-1
+508025
+260129
+-1
+508025
+260128
+-1
+508025
+260127
+-1
+508025
+260126
+-1
+508025
+260125
+-1
+508025
+260124
+-1
+508025
+260123
+-1
+508025
+260122
+-1
+508025
+260121
+-1
+508025
+260078
+-1
+508025
+260077
+-1
+508025
+260076
+-1
+508025
+260075
+-1
+508025
+260074
+-1
+508025
+260073
+-1
+508025
+260072
+-1
+508025
+260071
+-1
+508025
+260070
+-1
+508025
+260069
+-1
+508025
+260068
+-1
+508025
+260067
+-1
+508025
+260066
+-1
+508025
+260065
+-1
+508025
+260064
+-1
+508025
+260063
+-1
+508025
+260062
+-1
+508025
+260061
+-1
+508025
+260060
+-1
+508025
+260059
+-1
+508025
+260058
+-1
+508025
+260057
+-1
+508025
+260056
+-1
+508025
+260055
+-1
+508025
+260054
+-1
+508025
+260053
+-1
+508025
+260052
+-1
+508025
+260051
+-1
+508025
+260050
+-1
+508025
+260049
+-1
+508025
+260048
+-1
+508025
+260047
+-1
+508025
+260046
+-1
+508025
+260045
+-1
+508025
+260044
+-1
+508025
+260043
+-1
+508025
+260042
+-1
+508025
+260041
+-1
+508025
+260040
+-1
+508025
+260039
+-1
+508025
+260038
+-1
+508025
+260037
+-1
+508025
+260036
+-1
+508025
+260035
+-1
+508025
+260034
+-1
+508025
+260033
+-1
+508025
+260032
+-1
+508025
+260031
+-1
+508025
+260030
+-1
+508025
+260029
+-1
+508025
+260028
+-1
+508025
+260027
+-1
+508025
+260026
+-1
+508025
+260025
+-1
+508025
+260024
+-1
+508025
+260023
+-1
+508025
+260022
+-1
+508025
+260021
+-1
+508025
+260020
+-1
+508025
+260019
+-1
+508025
+260018
+-1
+508025
+260017
+-1
+508025
+260016
+-1
+508025
+260015
+-1
+508025
+260014
+-1
+508025
+260013
+-1
+508025
+260012
+-1
+508025
+260011
+-1
+508025
+260010
+-1
+508025
+260009
+-1
+508025
+260008
+-1
+508025
+260007
+-1
+508025
+260006
+-1
+508025
+260005
+-1
+508025
+260004
+-1
+508025
+260003
+-1
+508025
+260002
+-1
+508025
+260001
+-1
+508025
+260079
+-1
+508025
+260080
+-1
+508025
+260081
+-1
+508025
+260082
+-1
+508025
+260083
+-1
+508025
+260084
+-1
+508025
+260085
+-1
+508025
+260086
+-1
+508025
+260087
+-1
+508025
+260088
+-1
+508025
+260089
+-1
+508025
+260090
+-1
+508025
+260091
+-1
+508025
+260092
+-1
+508025
+260093
+-1
+508025
+260094
+-1
+508025
+260095
+-1
+508025
+260096
+-1
+508025
+260097
+-1
+508025
+260098
+-1
+508025
+260099
+-1
+508025
+260100
+-1
+508025
+260101
+-1
+508025
+260102
+-1
+508025
+260103
+-1
+508025
+260104
+-1
+508025
+260105
+-1
+508025
+260106
+-1
+508025
+260107
+-1
+508025
+260108
+-1
+508025
+260109
+-1
+508025
+260110
+-1
+508025
+260111
+-1
+508025
+260112
+-1
+508025
+260113
+-1
+508025
+260114
+-1
+508025
+260115
+-1
+508025
+260116
+-1
+508025
+260117
+-1
+508025
+260118
+-1
+508025
+260119
+-1
+508025
+260120
+-1
+508025
+260152
+-1
+508025
+260153
+-1
+508025
+260156
+-1
+508025
+260157
+-1
+508025
+260158
+-1
+508025
+260159
+-1
+508025
+260160
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/DOWNETA.GRE b/DerClouProfiData/DATA/DOWNETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/DOWNETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/DOWNETA.GUA b/DerClouProfiData/DATA/DOWNETA.GUA
new file mode 100644
index 0000000..2b40a47
--- /dev/null
+++ b/DerClouProfiData/DATA/DOWNETA.GUA
@@ -0,0 +1,46 @@
+ACLI
+508500
+ACTI
+1
+40
+2
+ACTI
+1
+11
+8
+ACTI
+1
+52
+2
+ACTI
+1
+15
+4
+ACTI
+1
+30
+2
+ACTI
+1
+1
+8
+ACTI
+2
+66
+ACTI
+1
+21
+8
+ACTI
+1
+169
+1
+ACTI
+1
+18
+4
+ACTI
+1
+47
+2
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/DOWNETA.SPO b/DerClouProfiData/DATA/DOWNETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/DOWNETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/DOWNETA0.DAT b/DerClouProfiData/DATA/DOWNETA0.DAT
new file mode 100644
index 0000000..43b994f
Binary files /dev/null and b/DerClouProfiData/DATA/DOWNETA0.DAT differ
diff --git a/DerClouProfiData/DATA/DOWNETA0.LFD b/DerClouProfiData/DATA/DOWNETA0.LFD
new file mode 100644
index 0000000..e7f08cb
Binary files /dev/null and b/DerClouProfiData/DATA/DOWNETA0.LFD differ
diff --git a/DerClouProfiData/DATA/DOWNETA0.REL b/DerClouProfiData/DATA/DOWNETA0.REL
new file mode 100644
index 0000000..1f194e3
--- /dev/null
+++ b/DerClouProfiData/DATA/DOWNETA0.REL
@@ -0,0 +1,785 @@
+RELF
+RTAB
+580010
+508107
+580234
+-1
+508107
+580232
+-1
+508107
+580233
+-1
+508107
+580235
+-1
+508107
+580236
+-1
+RTAB
+580007
+580215
+9636
+0
+580223
+9609
+1
+580222
+9600
+500
+580221
+9600
+500
+580206
+9600
+50
+RTAB
+580006
+RTAB
+580005
+580200
+580192
+-1
+580192
+580200
+-1
+580201
+580128
+-1
+580128
+580201
+-1
+580202
+580129
+-1
+580129
+580202
+-1
+580202
+580196
+-1
+580196
+580202
+-1
+RTAB
+580004
+580226
+9102
+-1
+580182
+9102
+-1
+580170
+9102
+-1
+580143
+9102
+-1
+580129
+580129
+-1
+580128
+9102
+-1
+580054
+9102
+-1
+580064
+9102
+-1
+580089
+9102
+-1
+RTAB
+580003
+508107
+580231
+-1
+508107
+580230
+-1
+508107
+580229
+-1
+508107
+580228
+-1
+508107
+580227
+-1
+508107
+580226
+-1
+508107
+580225
+-1
+508107
+580223
+-1
+508107
+580222
+-1
+508107
+580221
+-1
+508107
+580220
+-1
+508107
+580219
+-1
+508107
+580218
+-1
+508107
+580217
+-1
+508107
+580216
+-1
+508107
+580215
+-1
+508107
+580214
+-1
+508107
+580213
+-1
+508107
+580212
+-1
+508107
+580211
+-1
+508107
+580210
+-1
+508107
+580209
+-1
+508107
+580208
+-1
+508107
+580207
+-1
+508107
+580206
+-1
+508107
+580205
+-1
+508107
+580204
+-1
+508107
+580203
+-1
+508107
+580202
+-1
+508107
+580201
+-1
+508107
+580200
+-1
+508107
+580199
+-1
+508107
+580198
+-1
+508107
+580197
+-1
+508107
+580196
+-1
+508107
+580195
+-1
+508107
+580194
+-1
+508107
+580193
+-1
+508107
+580192
+-1
+508107
+580190
+-1
+508107
+580189
+-1
+508107
+580188
+-1
+508107
+580187
+-1
+508107
+580186
+-1
+508107
+580185
+-1
+508107
+580184
+-1
+508107
+580183
+-1
+508107
+580182
+-1
+508107
+580181
+-1
+508107
+580180
+-1
+508107
+580179
+-1
+508107
+580178
+-1
+508107
+580177
+-1
+508107
+580176
+-1
+508107
+580175
+-1
+508107
+580174
+-1
+508107
+580173
+-1
+508107
+580172
+-1
+508107
+580171
+-1
+508107
+580170
+-1
+508107
+580169
+-1
+508107
+580168
+-1
+508107
+580167
+-1
+508107
+580166
+-1
+508107
+580165
+-1
+508107
+580164
+-1
+508107
+580163
+-1
+508107
+580162
+-1
+508107
+580161
+-1
+508107
+580160
+-1
+508107
+580159
+-1
+508107
+580158
+-1
+508107
+580157
+-1
+508107
+580156
+-1
+508107
+580155
+-1
+508107
+580154
+-1
+508107
+580153
+-1
+508107
+580152
+-1
+508107
+580151
+-1
+508107
+580150
+-1
+508107
+580149
+-1
+508107
+580148
+-1
+508107
+580147
+-1
+508107
+580146
+-1
+508107
+580145
+-1
+508107
+580144
+-1
+508107
+580143
+-1
+508107
+580142
+-1
+508107
+580141
+-1
+508107
+580140
+-1
+508107
+580139
+-1
+508107
+580138
+-1
+508107
+580137
+-1
+508107
+580136
+-1
+508107
+580135
+-1
+508107
+580134
+-1
+508107
+580133
+-1
+508107
+580132
+-1
+508107
+580131
+-1
+508107
+580130
+-1
+508107
+580129
+-1
+508107
+580128
+-1
+508107
+580127
+-1
+508107
+580126
+-1
+508107
+580125
+-1
+508107
+580124
+-1
+508107
+580123
+-1
+508107
+580122
+-1
+508107
+580121
+-1
+508107
+580120
+-1
+508107
+580119
+-1
+508107
+580118
+-1
+508107
+580117
+-1
+508107
+580116
+-1
+508107
+580115
+-1
+508107
+580114
+-1
+508107
+580113
+-1
+508107
+580112
+-1
+508107
+580111
+-1
+508107
+580110
+-1
+508107
+580109
+-1
+508107
+580108
+-1
+508107
+580107
+-1
+508107
+580106
+-1
+508107
+580105
+-1
+508107
+580104
+-1
+508107
+580103
+-1
+508107
+580102
+-1
+508107
+580101
+-1
+508107
+580100
+-1
+508107
+580099
+-1
+508107
+580098
+-1
+508107
+580097
+-1
+508107
+580096
+-1
+508107
+580095
+-1
+508107
+580094
+-1
+508107
+580001
+-1
+508107
+580002
+-1
+508107
+580003
+-1
+508107
+580004
+-1
+508107
+580005
+-1
+508107
+580006
+-1
+508107
+580007
+-1
+508107
+580008
+-1
+508107
+580009
+-1
+508107
+580010
+-1
+508107
+580011
+-1
+508107
+580012
+-1
+508107
+580013
+-1
+508107
+580014
+-1
+508107
+580015
+-1
+508107
+580016
+-1
+508107
+580017
+-1
+508107
+580018
+-1
+508107
+580019
+-1
+508107
+580020
+-1
+508107
+580021
+-1
+508107
+580022
+-1
+508107
+580023
+-1
+508107
+580024
+-1
+508107
+580025
+-1
+508107
+580026
+-1
+508107
+580027
+-1
+508107
+580028
+-1
+508107
+580029
+-1
+508107
+580030
+-1
+508107
+580031
+-1
+508107
+580032
+-1
+508107
+580033
+-1
+508107
+580034
+-1
+508107
+580035
+-1
+508107
+580036
+-1
+508107
+580037
+-1
+508107
+580038
+-1
+508107
+580039
+-1
+508107
+580040
+-1
+508107
+580041
+-1
+508107
+580042
+-1
+508107
+580043
+-1
+508107
+580044
+-1
+508107
+580045
+-1
+508107
+580046
+-1
+508107
+580047
+-1
+508107
+580048
+-1
+508107
+580049
+-1
+508107
+580050
+-1
+508107
+580051
+-1
+508107
+580052
+-1
+508107
+580053
+-1
+508107
+580054
+-1
+508107
+580055
+-1
+508107
+580056
+-1
+508107
+580057
+-1
+508107
+580058
+-1
+508107
+580059
+-1
+508107
+580060
+-1
+508107
+580061
+-1
+508107
+580062
+-1
+508107
+580063
+-1
+508107
+580064
+-1
+508107
+580065
+-1
+508107
+580066
+-1
+508107
+580067
+-1
+508107
+580068
+-1
+508107
+580069
+-1
+508107
+580070
+-1
+508107
+580071
+-1
+508107
+580072
+-1
+508107
+580073
+-1
+508107
+580074
+-1
+508107
+580075
+-1
+508107
+580076
+-1
+508107
+580077
+-1
+508107
+580078
+-1
+508107
+580079
+-1
+508107
+580080
+-1
+508107
+580081
+-1
+508107
+580082
+-1
+508107
+580083
+-1
+508107
+580084
+-1
+508107
+580085
+-1
+508107
+580086
+-1
+508107
+580087
+-1
+508107
+580088
+-1
+508107
+580089
+-1
+508107
+580090
+-1
+508107
+580091
+-1
+508107
+580092
+-1
+508107
+580093
+-1
+508107
+580191
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/HAMHETA.GRE b/DerClouProfiData/DATA/HAMHETA.GRE
new file mode 100644
index 0000000..9d34bda
--- /dev/null
+++ b/DerClouProfiData/DATA/HAMHETA.GRE
@@ -0,0 +1,14 @@
+RELF
+RTAB
+1
+509009
+200207
+640
+RTAB
+2
+200207
+200207
+640
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/HAMHETA.GUA b/DerClouProfiData/DATA/HAMHETA.GUA
new file mode 100644
index 0000000..098675f
--- /dev/null
+++ b/DerClouProfiData/DATA/HAMHETA.GUA
@@ -0,0 +1,448 @@
+ACLI
+508500
+ACTI
+1
+1
+2
+ACTI
+8
+24
+200204
+ACTI
+10
+15
+200204
+ACTI
+9
+24
+200204
+ACTI
+1
+16
+8
+ACTI
+1
+12
+1
+ACTI
+1
+2
+8
+ACTI
+10
+15
+200174
+ACTI
+8
+21
+200174
+ACTI
+1
+12
+8
+ACTI
+1
+1
+4
+ACTI
+9
+21
+200174
+ACTI
+1
+11
+2
+ACTI
+1
+5
+8
+ACTI
+1
+43
+2
+ACTI
+1
+5
+4
+ACTI
+10
+15
+200192
+ACTI
+8
+9
+200192
+ACTI
+1
+12
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+200192
+ACTI
+1
+3
+4
+ACTI
+1
+7
+2
+ACTI
+8
+18
+200203
+ACTI
+2
+105
+ACTI
+1
+1
+1
+ACTI
+1
+1
+2
+ACTI
+9
+18
+200203
+ACTI
+1
+7
+1
+ACTI
+1
+3
+8
+ACTI
+10
+15
+200192
+ACTI
+8
+9
+200192
+ACTI
+1
+13
+8
+ACTI
+1
+1
+4
+ACTI
+9
+9
+200192
+ACTI
+1
+2
+8
+ACTI
+1
+14
+2
+ACTI
+10
+15
+200233
+ACTI
+1
+9
+1
+ACTI
+1
+27
+8
+ACTI
+1
+9
+2
+ACTI
+10
+15
+200234
+ACTI
+1
+6
+1
+ACTI
+1
+7
+8
+ACTI
+10
+15
+200216
+ACTI
+1
+33
+1
+ACTI
+1
+14
+8
+ACTI
+10
+15
+200215
+ACTI
+1
+34
+1
+ACTI
+1
+1
+8
+ACTI
+10
+15
+200214
+ACTI
+1
+21
+4
+ACTI
+1
+17
+2
+ACTI
+1
+2
+8
+ACTI
+10
+15
+200221
+ACTI
+1
+4
+4
+ACTI
+10
+15
+200220
+ACTI
+1
+22
+1
+ACTI
+1
+7
+4
+ACTI
+1
+6
+1
+ACTI
+10
+15
+200193
+ACTI
+8
+9
+200193
+ACTI
+1
+15
+1
+ACTI
+1
+2
+2
+ACTI
+9
+9
+200193
+ACTI
+1
+40
+1
+ACTI
+1
+1
+8
+ACTI
+2
+360
+ACTI
+1
+38
+1
+ACTI
+1
+2
+4
+ACTI
+1
+5
+1
+ACTI
+10
+15
+200173
+ACTI
+1
+30
+2
+ACTI
+1
+21
+4
+ACTI
+10
+15
+200151
+ACTI
+8
+21
+200151
+ACTI
+1
+1
+1
+ACTI
+1
+14
+4
+ACTI
+1
+1
+8
+ACTI
+9
+21
+200151
+ACTI
+1
+23
+1
+ACTI
+1
+9
+4
+ACTI
+1
+6
+1
+ACTI
+10
+15
+200149
+ACTI
+1
+8
+2
+ACTI
+1
+5
+4
+ACTI
+10
+15
+200207
+ACTI
+1
+20
+2
+ACTI
+1
+3
+8
+ACTI
+1
+15
+2
+ACTI
+1
+1
+4
+ACTI
+8
+9
+200245
+ACTI
+9
+9
+200245
+ACTI
+1
+6
+8
+ACTI
+1
+32
+2
+ACTI
+1
+10
+4
+ACTI
+1
+2
+2
+ACTI
+8
+15
+200205
+ACTI
+10
+15
+200205
+ACTI
+9
+15
+200205
+ACTI
+1
+7
+8
+ACTI
+1
+8
+2
+ACTI
+10
+15
+200150
+ACTI
+8
+21
+200150
+ACTI
+1
+13
+2
+ACTI
+1
+1
+1
+ACTI
+9
+21
+200150
+ACTI
+1
+5
+2
+ACTI
+1
+3
+4
+ACTI
+1
+17
+2
+ACTI
+1
+4
+4
+ACTI
+1
+4
+2
diff --git a/DerClouProfiData/DATA/HAMHETA.SPO b/DerClouProfiData/DATA/HAMHETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/HAMHETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/HAMHETA0.DAT b/DerClouProfiData/DATA/HAMHETA0.DAT
new file mode 100644
index 0000000..d7ea1d6
Binary files /dev/null and b/DerClouProfiData/DATA/HAMHETA0.DAT differ
diff --git a/DerClouProfiData/DATA/HAMHETA0.LFD b/DerClouProfiData/DATA/HAMHETA0.LFD
new file mode 100644
index 0000000..8a40c7a
--- /dev/null
+++ b/DerClouProfiData/DATA/HAMHETA0.LFD
@@ -0,0 +1 @@
+������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/HAMHETA0.REL b/DerClouProfiData/DATA/HAMHETA0.REL
new file mode 100644
index 0000000..6184349
--- /dev/null
+++ b/DerClouProfiData/DATA/HAMHETA0.REL
@@ -0,0 +1,1001 @@
+RELF
+RTAB
+200010
+508019
+200251
+-1
+508019
+200250
+-1
+508019
+200249
+-1
+508019
+200248
+-1
+508019
+200246
+-1
+RTAB
+200007
+200203
+9608
+2
+200221
+9619
+8100
+200220
+9607
+1700
+200244
+9602
+40
+200245
+9608
+5
+200242
+9600
+600
+200241
+9600
+100
+200240
+9600
+450
+200239
+9600
+50
+200238
+9600
+100
+200237
+9600
+300
+200236
+9600
+50
+200235
+9600
+200
+200234
+9600
+1000
+200233
+9600
+700
+200232
+9600
+2200
+200231
+9605
+2000
+200230
+9605
+1000
+200229
+9605
+1800
+200228
+9605
+3000
+RTAB
+200006
+RTAB
+200005
+200206
+200244
+-1
+200244
+200206
+-1
+200206
+200245
+-1
+200245
+200206
+-1
+200206
+200173
+-1
+200173
+200206
+-1
+200206
+200150
+-1
+200150
+200206
+-1
+200206
+200149
+-1
+200149
+200206
+-1
+200205
+200216
+-1
+200216
+200205
+-1
+200205
+200215
+-1
+200215
+200205
+-1
+200205
+200214
+-1
+200214
+200205
+-1
+200205
+200218
+-1
+200218
+200205
+-1
+200205
+200217
+-1
+200217
+200205
+-1
+200205
+200219
+-1
+200219
+200205
+-1
+200204
+200228
+-1
+200228
+200204
+-1
+200204
+200229
+-1
+200229
+200204
+-1
+200204
+200230
+-1
+200230
+200204
+-1
+200204
+200231
+-1
+200231
+200204
+-1
+200204
+200240
+-1
+200240
+200204
+-1
+200204
+200241
+-1
+200241
+200204
+-1
+200204
+200239
+-1
+200239
+200204
+-1
+200204
+200238
+-1
+200238
+200204
+-1
+200204
+200232
+-1
+200232
+200204
+-1
+200204
+200234
+-1
+200234
+200204
+-1
+200204
+200233
+-1
+200233
+200204
+-1
+200204
+200221
+-1
+200221
+200204
+-1
+200204
+200220
+-1
+200220
+200204
+-1
+200204
+200193
+-1
+200193
+200204
+-1
+200204
+200174
+-1
+200174
+200204
+-1
+RTAB
+200004
+200193
+9102
+-1
+200192
+9102
+-1
+200174
+200174
+-1
+200173
+9102
+-1
+200151
+200151
+-1
+200150
+200150
+-1
+200149
+9103
+-1
+200133
+200133
+-1
+200132
+9103
+-1
+RTAB
+200003
+508019
+200245
+-1
+508019
+200244
+-1
+508019
+200243
+-1
+508019
+200242
+-1
+508019
+200241
+-1
+508019
+200240
+-1
+508019
+200239
+-1
+508019
+200238
+-1
+508019
+200237
+-1
+508019
+200236
+-1
+508019
+200235
+-1
+508019
+200234
+-1
+508019
+200233
+-1
+508019
+200232
+-1
+508019
+200231
+-1
+508019
+200230
+-1
+508019
+200229
+-1
+508019
+200228
+-1
+508019
+200227
+-1
+508019
+200226
+-1
+508019
+200225
+-1
+508019
+200224
+-1
+508019
+200221
+-1
+508019
+200220
+-1
+508019
+200219
+-1
+508019
+200218
+-1
+508019
+200217
+-1
+508019
+200216
+-1
+508019
+200215
+-1
+508019
+200214
+-1
+508019
+200213
+-1
+508019
+200212
+-1
+508019
+200211
+-1
+508019
+200210
+-1
+508019
+200209
+-1
+508019
+200208
+-1
+508019
+200207
+-1
+508019
+200206
+-1
+508019
+200205
+-1
+508019
+200204
+-1
+508019
+200203
+-1
+508019
+200202
+-1
+508019
+200201
+-1
+508019
+200200
+-1
+508019
+200199
+-1
+508019
+200198
+-1
+508019
+200197
+-1
+508019
+200196
+-1
+508019
+200195
+-1
+508019
+200194
+-1
+508019
+200193
+-1
+508019
+200192
+-1
+508019
+200191
+-1
+508019
+200190
+-1
+508019
+200189
+-1
+508019
+200188
+-1
+508019
+200187
+-1
+508019
+200186
+-1
+508019
+200185
+-1
+508019
+200184
+-1
+508019
+200183
+-1
+508019
+200182
+-1
+508019
+200181
+-1
+508019
+200180
+-1
+508019
+200179
+-1
+508019
+200178
+-1
+508019
+200177
+-1
+508019
+200176
+-1
+508019
+200175
+-1
+508019
+200174
+-1
+508019
+200173
+-1
+508019
+200172
+-1
+508019
+200171
+-1
+508019
+200170
+-1
+508019
+200169
+-1
+508019
+200168
+-1
+508019
+200167
+-1
+508019
+200166
+-1
+508019
+200165
+-1
+508019
+200164
+-1
+508019
+200163
+-1
+508019
+200162
+-1
+508019
+200161
+-1
+508019
+200160
+-1
+508019
+200159
+-1
+508019
+200158
+-1
+508019
+200157
+-1
+508019
+200156
+-1
+508019
+200155
+-1
+508019
+200154
+-1
+508019
+200153
+-1
+508019
+200152
+-1
+508019
+200151
+-1
+508019
+200150
+-1
+508019
+200149
+-1
+508019
+200148
+-1
+508019
+200147
+-1
+508019
+200146
+-1
+508019
+200145
+-1
+508019
+200144
+-1
+508019
+200143
+-1
+508019
+200142
+-1
+508019
+200141
+-1
+508019
+200140
+-1
+508019
+200139
+-1
+508019
+200138
+-1
+508019
+200137
+-1
+508019
+200136
+-1
+508019
+200135
+-1
+508019
+200134
+-1
+508019
+200133
+-1
+508019
+200132
+-1
+508019
+200131
+-1
+508019
+200130
+-1
+508019
+200129
+-1
+508019
+200128
+-1
+508019
+200127
+-1
+508019
+200126
+-1
+508019
+200125
+-1
+508019
+200124
+-1
+508019
+200123
+-1
+508019
+200122
+-1
+508019
+200121
+-1
+508019
+200120
+-1
+508019
+200119
+-1
+508019
+200118
+-1
+508019
+200117
+-1
+508019
+200116
+-1
+508019
+200115
+-1
+508019
+200114
+-1
+508019
+200113
+-1
+508019
+200112
+-1
+508019
+200111
+-1
+508019
+200110
+-1
+508019
+200109
+-1
+508019
+200108
+-1
+508019
+200107
+-1
+508019
+200106
+-1
+508019
+200105
+-1
+508019
+200104
+-1
+508019
+200103
+-1
+508019
+200102
+-1
+508019
+200101
+-1
+508019
+200100
+-1
+508019
+200099
+-1
+508019
+200098
+-1
+508019
+200097
+-1
+508019
+200096
+-1
+508019
+200095
+-1
+508019
+200094
+-1
+508019
+200093
+-1
+508019
+200092
+-1
+508019
+200091
+-1
+508019
+200090
+-1
+508019
+200089
+-1
+508019
+200088
+-1
+508019
+200087
+-1
+508019
+200086
+-1
+508019
+200085
+-1
+508019
+200084
+-1
+508019
+200083
+-1
+508019
+200082
+-1
+508019
+200081
+-1
+508019
+200080
+-1
+508019
+200079
+-1
+508019
+200078
+-1
+508019
+200077
+-1
+508019
+200076
+-1
+508019
+200075
+-1
+508019
+200074
+-1
+508019
+200073
+-1
+508019
+200072
+-1
+508019
+200071
+-1
+508019
+200070
+-1
+508019
+200069
+-1
+508019
+200068
+-1
+508019
+200067
+-1
+508019
+200066
+-1
+508019
+200065
+-1
+508019
+200064
+-1
+508019
+200063
+-1
+508019
+200062
+-1
+508019
+200061
+-1
+508019
+200060
+-1
+508019
+200059
+-1
+508019
+200058
+-1
+508019
+200057
+-1
+508019
+200056
+-1
+508019
+200055
+-1
+508019
+200054
+-1
+508019
+200053
+-1
+508019
+200052
+-1
+508019
+200051
+-1
+508019
+200050
+-1
+508019
+200049
+-1
+508019
+200048
+-1
+508019
+200047
+-1
+508019
+200046
+-1
+508019
+200045
+-1
+508019
+200044
+-1
+508019
+200043
+-1
+508019
+200042
+-1
+508019
+200041
+-1
+508019
+200040
+-1
+508019
+200039
+-1
+508019
+200038
+-1
+508019
+200037
+-1
+508019
+200036
+-1
+508019
+200035
+-1
+508019
+200034
+-1
+508019
+200033
+-1
+508019
+200032
+-1
+508019
+200031
+-1
+508019
+200030
+-1
+508019
+200029
+-1
+508019
+200028
+-1
+508019
+200027
+-1
+508019
+200026
+-1
+508019
+200025
+-1
+508019
+200024
+-1
+508019
+200023
+-1
+508019
+200022
+-1
+508019
+200021
+-1
+508019
+200020
+-1
+508019
+200019
+-1
+508019
+200018
+-1
+508019
+200017
+-1
+508019
+200016
+-1
+508019
+200015
+-1
+508019
+200014
+-1
+508019
+200013
+-1
+508019
+200012
+-1
+508019
+200011
+-1
+508019
+200010
+-1
+508019
+200009
+-1
+508019
+200008
+-1
+508019
+200007
+-1
+508019
+200006
+-1
+508019
+200005
+-1
+508019
+200004
+-1
+508019
+200003
+-1
+508019
+200002
+-1
+508019
+200001
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/JUWEETA.GRE b/DerClouProfiData/DATA/JUWEETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/JUWEETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/JUWEETA.SPO b/DerClouProfiData/DATA/JUWEETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/JUWEETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/JUWEETA0.DAT b/DerClouProfiData/DATA/JUWEETA0.DAT
new file mode 100644
index 0000000..20654fb
Binary files /dev/null and b/DerClouProfiData/DATA/JUWEETA0.DAT differ
diff --git a/DerClouProfiData/DATA/JUWEETA0.LFD b/DerClouProfiData/DATA/JUWEETA0.LFD
new file mode 100644
index 0000000..4f8b3c7
--- /dev/null
+++ b/DerClouProfiData/DATA/JUWEETA0.LFD
@@ -0,0 +1 @@
+���������������������������������������������������������������������������������������������������������������							��������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/JUWEETA0.REL b/DerClouProfiData/DATA/JUWEETA0.REL
new file mode 100644
index 0000000..23710fe
--- /dev/null
+++ b/DerClouProfiData/DATA/JUWEETA0.REL
@@ -0,0 +1,442 @@
+RELF
+RTAB
+60011
+RTAB
+60010
+RTAB
+60007
+60115
+9603
+300
+60106
+9600
+100
+60113
+9600
+150
+60105
+9601
+1100
+60105
+9602
+600
+60114
+9612
+1060
+60114
+9603
+100
+60117
+9602
+96
+60105
+9603
+1090
+60116
+9602
+120
+RTAB
+60006
+RTAB
+60005
+60103
+60087
+-1
+60087
+60103
+-1
+60104
+60115
+-1
+60115
+60104
+-1
+60104
+60114
+-1
+60114
+60104
+-1
+60104
+60113
+-1
+60113
+60104
+-1
+60104
+60106
+-1
+60106
+60104
+-1
+60104
+60105
+-1
+60105
+60104
+-1
+RTAB
+60004
+60060
+9102
+-1
+60087
+9102
+-1
+60094
+9102
+-1
+RTAB
+60003
+508005
+60117
+-1
+508005
+60112
+-1
+508005
+60111
+-1
+508005
+60110
+-1
+508005
+60109
+-1
+508005
+60108
+-1
+508005
+60107
+-1
+508005
+60106
+-1
+508005
+60105
+-1
+508005
+60104
+-1
+508005
+60103
+-1
+508005
+60102
+-1
+508005
+60001
+-1
+508005
+60002
+-1
+508005
+60003
+-1
+508005
+60004
+-1
+508005
+60005
+-1
+508005
+60006
+-1
+508005
+60007
+-1
+508005
+60008
+-1
+508005
+60009
+-1
+508005
+60010
+-1
+508005
+60011
+-1
+508005
+60012
+-1
+508005
+60013
+-1
+508005
+60014
+-1
+508005
+60015
+-1
+508005
+60016
+-1
+508005
+60017
+-1
+508005
+60018
+-1
+508005
+60019
+-1
+508005
+60020
+-1
+508005
+60021
+-1
+508005
+60022
+-1
+508005
+60023
+-1
+508005
+60024
+-1
+508005
+60025
+-1
+508005
+60026
+-1
+508005
+60027
+-1
+508005
+60028
+-1
+508005
+60029
+-1
+508005
+60030
+-1
+508005
+60031
+-1
+508005
+60032
+-1
+508005
+60033
+-1
+508005
+60034
+-1
+508005
+60035
+-1
+508005
+60036
+-1
+508005
+60037
+-1
+508005
+60038
+-1
+508005
+60039
+-1
+508005
+60040
+-1
+508005
+60041
+-1
+508005
+60042
+-1
+508005
+60043
+-1
+508005
+60044
+-1
+508005
+60045
+-1
+508005
+60046
+-1
+508005
+60047
+-1
+508005
+60048
+-1
+508005
+60049
+-1
+508005
+60050
+-1
+508005
+60051
+-1
+508005
+60052
+-1
+508005
+60053
+-1
+508005
+60054
+-1
+508005
+60055
+-1
+508005
+60056
+-1
+508005
+60057
+-1
+508005
+60058
+-1
+508005
+60059
+-1
+508005
+60060
+-1
+508005
+60061
+-1
+508005
+60062
+-1
+508005
+60063
+-1
+508005
+60064
+-1
+508005
+60065
+-1
+508005
+60066
+-1
+508005
+60067
+-1
+508005
+60068
+-1
+508005
+60069
+-1
+508005
+60070
+-1
+508005
+60071
+-1
+508005
+60072
+-1
+508005
+60073
+-1
+508005
+60074
+-1
+508005
+60075
+-1
+508005
+60076
+-1
+508005
+60077
+-1
+508005
+60078
+-1
+508005
+60079
+-1
+508005
+60080
+-1
+508005
+60081
+-1
+508005
+60082
+-1
+508005
+60083
+-1
+508005
+60084
+-1
+508005
+60085
+-1
+508005
+60086
+-1
+508005
+60087
+-1
+508005
+60088
+-1
+508005
+60089
+-1
+508005
+60090
+-1
+508005
+60091
+-1
+508005
+60092
+-1
+508005
+60093
+-1
+508005
+60094
+-1
+508005
+60095
+-1
+508005
+60096
+-1
+508005
+60097
+-1
+508005
+60098
+-1
+508005
+60099
+-1
+508005
+60100
+-1
+508005
+60101
+-1
+508005
+60113
+-1
+508005
+60114
+-1
+508005
+60115
+-1
+508005
+60116
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KASEETA.GRE b/DerClouProfiData/DATA/KASEETA.GRE
new file mode 100644
index 0000000..c27855e
--- /dev/null
+++ b/DerClouProfiData/DATA/KASEETA.GRE
@@ -0,0 +1,38 @@
+RELF
+RTAB
+1
+509019
+440236
+3600
+509019
+460290
+3600
+RTAB
+2
+440236
+440236
+3600
+460290
+460290
+3600
+RTAB
+3
+440235
+440235
+508045
+460119
+460119
+508044
+460132
+460132
+508046
+460120
+460120
+508046
+470141
+470141
+508045
+470142
+470142
+508045
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KASEETA.GUA b/DerClouProfiData/DATA/KASEETA.GUA
new file mode 100644
index 0000000..10b5064
--- /dev/null
+++ b/DerClouProfiData/DATA/KASEETA.GUA
@@ -0,0 +1,862 @@
+ACLI
+508500
+ACTI
+1
+3
+4
+ACTI
+10
+15
+440113
+ACTI
+10
+15
+440114
+ACTI
+1
+21
+1
+ACTI
+1
+18
+8
+ACTI
+1
+71
+1
+ACTI
+1
+1
+4
+ACTI
+10
+15
+440167
+ACTI
+1
+29
+1
+ACTI
+1
+1
+4
+ACTI
+10
+15
+440166
+ACTI
+1
+6
+8
+ACTI
+2
+360
+ACTI
+1
+48
+2
+ACTI
+1
+2
+4
+ACTI
+1
+67
+2
+ACTI
+1
+1
+8
+ACTI
+2
+360
+ACTI
+1
+123
+2
+ACTI
+1
+1
+8
+ACTI
+2
+360
+ACTI
+1
+4
+4
+ACTI
+10
+15
+440171
+ACTI
+1
+58
+1
+ACTI
+1
+1
+4
+ACTI
+10
+15
+440170
+ACTI
+1
+30
+1
+ACTI
+1
+7
+4
+ACTI
+1
+29
+1
+ACTI
+1
+7
+4
+ACTI
+1
+3
+4
+ACTI
+10
+15
+440113
+ACTI
+10
+15
+440114
+ACTI
+1
+21
+1
+ACTI
+1
+18
+8
+ACTI
+1
+71
+1
+ACTI
+1
+1
+4
+ACTI
+10
+15
+440167
+ACTI
+1
+29
+1
+ACTI
+1
+1
+4
+ACTI
+10
+15
+440166
+ACTI
+1
+6
+8
+ACTI
+2
+360
+ACTI
+1
+48
+2
+ACTI
+1
+2
+4
+ACTI
+1
+67
+2
+ACTI
+1
+1
+8
+ACTI
+2
+360
+ACTI
+1
+123
+2
+ACTI
+1
+1
+8
+ACTI
+2
+360
+ACTI
+1
+4
+4
+ACTI
+10
+15
+440171
+ACTI
+1
+58
+1
+ACTI
+1
+1
+4
+ACTI
+10
+15
+440170
+ACTI
+1
+30
+1
+ACTI
+1
+7
+4
+ACTI
+1
+29
+1
+ACTI
+1
+7
+4
+ACLI
+508501
+ACTI
+1
+6
+8
+ACTI
+2
+360
+ACTI
+1
+10
+4
+ACTI
+1
+26
+2
+ACTI
+1
+29
+8
+ACTI
+1
+28
+1
+ACTI
+1
+7
+8
+ACTI
+10
+15
+440113
+ACTI
+10
+15
+440114
+ACTI
+1
+27
+1
+ACTI
+1
+49
+4
+ACTI
+1
+87
+1
+ACTI
+1
+1
+8
+ACTI
+10
+15
+440148
+ACTI
+1
+10
+1
+ACTI
+1
+10
+4
+ACTI
+1
+5
+1
+ACTI
+10
+15
+440169
+ACTI
+1
+8
+4
+ACTI
+1
+37
+2
+ACTI
+1
+2
+4
+ACTI
+10
+15
+440242
+ACTI
+1
+49
+2
+ACTI
+1
+5
+8
+ACTI
+1
+45
+2
+ACTI
+1
+1
+4
+ACTI
+10
+15
+440236
+ACTI
+1
+84
+2
+ACTI
+1
+15
+2
+ACTI
+1
+3
+8
+ACTI
+1
+15
+2
+ACTI
+2
+180
+ACTI
+1
+9
+8
+ACTI
+1
+84
+1
+ACTI
+1
+33
+8
+ACTI
+1
+4
+2
+ACTI
+10
+15
+440195
+ACTI
+8
+21
+440195
+ACTI
+1
+1
+8
+ACTI
+1
+15
+2
+ACTI
+1
+1
+1
+ACTI
+9
+21
+440195
+ACTI
+1
+18
+8
+ACTI
+1
+33
+2
+ACTI
+10
+15
+440208
+ACTI
+1
+11
+8
+ACTI
+1
+23
+1
+ACTI
+1
+5
+8
+ACTI
+10
+15
+440170
+ACTI
+1
+34
+4
+ACTI
+1
+12
+1
+ACTI
+10
+15
+440195
+ACTI
+8
+21
+440195
+ACTI
+1
+15
+1
+ACTI
+1
+2
+2
+ACTI
+9
+21
+440195
+ACTI
+1
+5
+1
+ACTI
+1
+19
+4
+ACTI
+1
+28
+1
+ACTI
+1
+5
+8
+ACLI
+508502
+ACTI
+1
+13
+2
+ACTI
+8
+24
+460291
+ACTI
+10
+15
+460291
+ACTI
+9
+24
+460291
+ACTI
+1
+52
+1
+ACTI
+1
+13
+4
+ACTI
+1
+11
+1
+ACTI
+10
+15
+460154
+ACTI
+1
+28
+8
+ACTI
+1
+51
+1
+ACTI
+1
+4
+8
+ACTI
+10
+15
+460271
+ACTI
+1
+30
+1
+ACTI
+1
+34
+4
+ACTI
+1
+30
+1
+ACTI
+1
+2
+4
+ACTI
+1
+16
+1
+ACTI
+10
+15
+460189
+ACTI
+8
+9
+460189
+ACTI
+1
+15
+1
+ACTI
+1
+3
+2
+ACTI
+9
+9
+460189
+ACTI
+1
+23
+1
+ACTI
+1
+1
+8
+ACTI
+2
+180
+ACTI
+1
+19
+2
+ACTI
+1
+1
+4
+ACTI
+1
+5
+2
+ACTI
+10
+15
+460189
+ACTI
+8
+9
+460189
+ACTI
+1
+14
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+460189
+ACTI
+1
+9
+2
+ACTI
+1
+6
+8
+ACTI
+10
+15
+460190
+ACTI
+8
+21
+460190
+ACTI
+1
+14
+8
+ACTI
+1
+2
+4
+ACTI
+9
+21
+460190
+ACTI
+1
+3
+2
+ACTI
+10
+15
+460290
+ACTI
+1
+19
+8
+ACTI
+1
+9
+1
+ACTI
+1
+14
+8
+ACTI
+1
+5
+1
+ACTI
+10
+15
+460225
+ACTI
+8
+9
+460225
+ACTI
+1
+16
+1
+ACTI
+1
+3
+2
+ACTI
+9
+9
+460225
+ACTI
+1
+2
+1
+ACTI
+1
+2
+4
+ACTI
+8
+9
+460240
+ACTI
+9
+9
+460240
+ACTI
+1
+2
+8
+ACTI
+1
+4
+2
+ACTI
+10
+15
+460225
+ACTI
+8
+9
+460225
+ACTI
+1
+13
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+460225
+ACTI
+1
+5
+2
+ACTI
+1
+31
+4
+ACTI
+1
+5
+2
+ACTI
+1
+3
+4
+ACTI
+10
+15
+460190
+ACTI
+8
+21
+460190
+ACTI
+1
+13
+4
+ACTI
+1
+1
+8
+ACTI
+9
+21
+460190
+ACTI
+1
+28
+2
+ACTI
+1
+27
+8
+ACTI
+1
+38
+2
+ACTI
+1
+6
+8
+ACTI
+10
+15
+460271
+ACTI
+8
+9
+460271
+ACTI
+1
+1
+1
+ACTI
+1
+13
+8
+ACTI
+2
+180
+ACTI
+1
+15
+4
+ACTI
+1
+2
+8
+ACTI
+9
+9
+460271
+ACTI
+1
+56
+2
+ACTI
+1
+35
+4
+ACTI
+1
+7
+1
+ACTI
+10
+15
+460154
+ACTI
+8
+9
+460154
+ACTI
+1
+1
+8
+ACTI
+1
+15
+1
+ACTI
+2
+180
+ACTI
+1
+16
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+460154
+ACTI
+1
+42
+2
+ACTI
+1
+13
+8
+ACTI
+2
+180
diff --git a/DerClouProfiData/DATA/KASEETA.SPO b/DerClouProfiData/DATA/KASEETA.SPO
new file mode 100644
index 0000000..b8fa860
--- /dev/null
+++ b/DerClouProfiData/DATA/KASEETA.SPO
@@ -0,0 +1,86 @@
+12
+32
+4
+460291
+4
+285
+105
+320
+105
+355
+105
+390
+105
+48
+1
+440221
+1
+254
+205
+48
+1
+440221
+1
+302
+205
+48
+1
+440228
+1
+254
+205
+48
+1
+440228
+1
+302
+205
+32
+6
+440228
+4
+248
+64
+282
+64
+317
+64
+352
+64
+32
+1
+470217
+1
+494
+50
+48
+1
+470217
+1
+158
+146
+48
+1
+470218
+1
+160
+27
+48
+1
+470218
+1
+92
+41
+32
+1
+470219
+1
+455
+123
+48
+1
+470219
+1
+72
+109
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KASEETA0.DAT b/DerClouProfiData/DATA/KASEETA0.DAT
new file mode 100644
index 0000000..5ab97d7
Binary files /dev/null and b/DerClouProfiData/DATA/KASEETA0.DAT differ
diff --git a/DerClouProfiData/DATA/KASEETA0.LFD b/DerClouProfiData/DATA/KASEETA0.LFD
new file mode 100644
index 0000000..c0081ce
--- /dev/null
+++ b/DerClouProfiData/DATA/KASEETA0.LFD
@@ -0,0 +1 @@
+������������������  ����������������� ��������� ������� ������������ ��������������  
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KASEETA0.REL b/DerClouProfiData/DATA/KASEETA0.REL
new file mode 100644
index 0000000..1883dcb
--- /dev/null
+++ b/DerClouProfiData/DATA/KASEETA0.REL
@@ -0,0 +1,881 @@
+RELF
+RTAB
+440010
+508044
+440249
+-1
+508044
+440248
+-1
+508044
+440247
+-1
+508044
+440246
+-1
+508044
+440244
+-1
+RTAB
+440007
+440243
+9600
+2
+440242
+9600
+1
+440218
+9600
+1
+440217
+9600
+1
+440213
+9604
+2
+440222
+9608
+1
+440230
+9602
+2
+440233
+9608
+1
+RTAB
+440006
+440223
+440228
+-1
+440228
+440223
+-1
+440224
+440228
+-1
+440228
+440224
+-1
+440225
+440228
+-1
+440228
+440225
+-1
+440226
+440228
+-1
+440228
+440226
+-1
+440223
+440221
+-1
+440221
+440223
+-1
+440224
+440221
+-1
+440221
+440224
+-1
+RTAB
+440005
+440227
+440171
+-1
+440171
+440227
+-1
+440164
+440227
+-1
+440227
+440164
+-1
+440168
+440227
+-1
+440227
+440168
+-1
+440148
+440227
+-1
+440227
+440148
+-1
+440113
+440220
+-1
+440220
+440113
+-1
+440114
+440220
+-1
+440220
+440114
+-1
+440233
+440220
+-1
+440220
+440233
+-1
+440169
+440220
+-1
+440220
+440169
+-1
+RTAB
+440004
+440114
+440114
+-1
+440113
+440113
+-1
+440148
+9102
+-1
+440164
+9102
+-1
+440195
+440195
+-1
+440208
+440208
+-1
+RTAB
+440003
+508044
+440243
+-1
+508044
+440242
+-1
+508044
+440241
+-1
+508044
+440240
+-1
+508044
+440239
+-1
+508044
+440238
+-1
+508044
+440237
+-1
+508044
+440236
+-1
+508044
+440235
+-1
+508044
+440234
+-1
+508044
+440233
+-1
+508044
+440232
+-1
+508044
+440231
+-1
+508044
+440230
+-1
+508044
+440229
+-1
+508044
+440228
+-1
+508044
+440227
+-1
+508044
+440226
+-1
+508044
+440225
+-1
+508044
+440224
+-1
+508044
+440223
+-1
+508044
+440222
+-1
+508044
+440221
+-1
+508044
+440220
+-1
+508044
+440219
+-1
+508044
+440218
+-1
+508044
+440217
+-1
+508044
+440216
+-1
+508044
+440215
+-1
+508044
+440214
+-1
+508044
+440213
+-1
+508044
+440126
+-1
+508044
+440125
+-1
+508044
+440124
+-1
+508044
+440123
+-1
+508044
+440122
+-1
+508044
+440121
+-1
+508044
+440120
+-1
+508044
+440119
+-1
+508044
+440118
+-1
+508044
+440117
+-1
+508044
+440116
+-1
+508044
+440115
+-1
+508044
+440114
+-1
+508044
+440113
+-1
+508044
+440112
+-1
+508044
+440111
+-1
+508044
+440110
+-1
+508044
+440109
+-1
+508044
+440108
+-1
+508044
+440107
+-1
+508044
+440106
+-1
+508044
+440105
+-1
+508044
+440104
+-1
+508044
+440103
+-1
+508044
+440102
+-1
+508044
+440101
+-1
+508044
+440100
+-1
+508044
+440099
+-1
+508044
+440098
+-1
+508044
+440097
+-1
+508044
+440096
+-1
+508044
+440095
+-1
+508044
+440094
+-1
+508044
+440093
+-1
+508044
+440092
+-1
+508044
+440091
+-1
+508044
+440090
+-1
+508044
+440089
+-1
+508044
+440088
+-1
+508044
+440087
+-1
+508044
+440086
+-1
+508044
+440085
+-1
+508044
+440084
+-1
+508044
+440083
+-1
+508044
+440082
+-1
+508044
+440081
+-1
+508044
+440080
+-1
+508044
+440079
+-1
+508044
+440078
+-1
+508044
+440077
+-1
+508044
+440076
+-1
+508044
+440075
+-1
+508044
+440074
+-1
+508044
+440073
+-1
+508044
+440072
+-1
+508044
+440071
+-1
+508044
+440070
+-1
+508044
+440069
+-1
+508044
+440068
+-1
+508044
+440067
+-1
+508044
+440066
+-1
+508044
+440065
+-1
+508044
+440064
+-1
+508044
+440063
+-1
+508044
+440062
+-1
+508044
+440061
+-1
+508044
+440060
+-1
+508044
+440059
+-1
+508044
+440058
+-1
+508044
+440057
+-1
+508044
+440056
+-1
+508044
+440055
+-1
+508044
+440054
+-1
+508044
+440053
+-1
+508044
+440052
+-1
+508044
+440051
+-1
+508044
+440050
+-1
+508044
+440049
+-1
+508044
+440048
+-1
+508044
+440047
+-1
+508044
+440046
+-1
+508044
+440045
+-1
+508044
+440044
+-1
+508044
+440043
+-1
+508044
+440042
+-1
+508044
+440041
+-1
+508044
+440040
+-1
+508044
+440039
+-1
+508044
+440038
+-1
+508044
+440037
+-1
+508044
+440036
+-1
+508044
+440035
+-1
+508044
+440034
+-1
+508044
+440033
+-1
+508044
+440032
+-1
+508044
+440031
+-1
+508044
+440030
+-1
+508044
+440029
+-1
+508044
+440028
+-1
+508044
+440027
+-1
+508044
+440026
+-1
+508044
+440025
+-1
+508044
+440024
+-1
+508044
+440023
+-1
+508044
+440022
+-1
+508044
+440021
+-1
+508044
+440020
+-1
+508044
+440019
+-1
+508044
+440018
+-1
+508044
+440017
+-1
+508044
+440016
+-1
+508044
+440015
+-1
+508044
+440014
+-1
+508044
+440013
+-1
+508044
+440012
+-1
+508044
+440011
+-1
+508044
+440010
+-1
+508044
+440009
+-1
+508044
+440008
+-1
+508044
+440007
+-1
+508044
+440006
+-1
+508044
+440005
+-1
+508044
+440004
+-1
+508044
+440003
+-1
+508044
+440002
+-1
+508044
+440001
+-1
+508044
+440127
+-1
+508044
+440128
+-1
+508044
+440129
+-1
+508044
+440130
+-1
+508044
+440131
+-1
+508044
+440132
+-1
+508044
+440133
+-1
+508044
+440134
+-1
+508044
+440135
+-1
+508044
+440136
+-1
+508044
+440137
+-1
+508044
+440138
+-1
+508044
+440139
+-1
+508044
+440140
+-1
+508044
+440141
+-1
+508044
+440142
+-1
+508044
+440143
+-1
+508044
+440144
+-1
+508044
+440145
+-1
+508044
+440146
+-1
+508044
+440147
+-1
+508044
+440148
+-1
+508044
+440149
+-1
+508044
+440150
+-1
+508044
+440151
+-1
+508044
+440152
+-1
+508044
+440153
+-1
+508044
+440154
+-1
+508044
+440155
+-1
+508044
+440156
+-1
+508044
+440157
+-1
+508044
+440158
+-1
+508044
+440159
+-1
+508044
+440160
+-1
+508044
+440161
+-1
+508044
+440162
+-1
+508044
+440163
+-1
+508044
+440164
+-1
+508044
+440165
+-1
+508044
+440166
+-1
+508044
+440167
+-1
+508044
+440168
+-1
+508044
+440169
+-1
+508044
+440170
+-1
+508044
+440171
+-1
+508044
+440173
+-1
+508044
+440174
+-1
+508044
+440175
+-1
+508044
+440176
+-1
+508044
+440177
+-1
+508044
+440178
+-1
+508044
+440179
+-1
+508044
+440180
+-1
+508044
+440181
+-1
+508044
+440182
+-1
+508044
+440183
+-1
+508044
+440184
+-1
+508044
+440185
+-1
+508044
+440186
+-1
+508044
+440187
+-1
+508044
+440188
+-1
+508044
+440189
+-1
+508044
+440190
+-1
+508044
+440191
+-1
+508044
+440192
+-1
+508044
+440193
+-1
+508044
+440194
+-1
+508044
+440195
+-1
+508044
+440196
+-1
+508044
+440197
+-1
+508044
+440198
+-1
+508044
+440199
+-1
+508044
+440200
+-1
+508044
+440201
+-1
+508044
+440202
+-1
+508044
+440203
+-1
+508044
+440204
+-1
+508044
+440205
+-1
+508044
+440206
+-1
+508044
+440207
+-1
+508044
+440208
+-1
+508044
+440209
+-1
+508044
+440210
+-1
+508044
+440211
+-1
+508044
+440212
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KASEETA1.DAT b/DerClouProfiData/DATA/KASEETA1.DAT
new file mode 100644
index 0000000..6c6acfa
Binary files /dev/null and b/DerClouProfiData/DATA/KASEETA1.DAT differ
diff --git a/DerClouProfiData/DATA/KASEETA1.LFD b/DerClouProfiData/DATA/KASEETA1.LFD
new file mode 100644
index 0000000..72c4ef3
--- /dev/null
+++ b/DerClouProfiData/DATA/KASEETA1.LFD
@@ -0,0 +1 @@
+������������������  ������������������������� �������� ������������������ �������� ��������������������                    
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KASEETA1.REL b/DerClouProfiData/DATA/KASEETA1.REL
new file mode 100644
index 0000000..a439fc5
--- /dev/null
+++ b/DerClouProfiData/DATA/KASEETA1.REL
@@ -0,0 +1,986 @@
+RELF
+RTAB
+460010
+508045
+460302
+-1
+508045
+460301
+-1
+508045
+460299
+-1
+508045
+460298
+-1
+508045
+460297
+-1
+508045
+460296
+-1
+508045
+460295
+-1
+508045
+460294
+-1
+508045
+460293
+-1
+RTAB
+460007
+460248
+9600
+1
+460247
+9600
+1
+460246
+9600
+1
+460245
+9600
+1
+460241
+9604
+2
+460240
+9608
+1
+460221
+9608
+1
+460284
+9602
+4
+460285
+9608
+3
+460289
+9604
+4
+RTAB
+460006
+460291
+460249
+-1
+460249
+460291
+-1
+460291
+460292
+-1
+460292
+460291
+-1
+RTAB
+460005
+RTAB
+460004
+460273
+9102
+-1
+460272
+9102
+-1
+460271
+9102
+-1
+460225
+9102
+-1
+460190
+9102
+-1
+460189
+9102
+-1
+460154
+9102
+-1
+460146
+9102
+-1
+460138
+9102
+-1
+RTAB
+460003
+508045
+460290
+-1
+508045
+460289
+-1
+508045
+460288
+-1
+508045
+460287
+-1
+508045
+460286
+-1
+508045
+460285
+-1
+508045
+460284
+-1
+508045
+460283
+-1
+508045
+460282
+-1
+508045
+460281
+-1
+508045
+460280
+-1
+508045
+460279
+-1
+508045
+460278
+-1
+508045
+460277
+-1
+508045
+460276
+-1
+508045
+460275
+-1
+508045
+460274
+-1
+508045
+460273
+-1
+508045
+460272
+-1
+508045
+460271
+-1
+508045
+460270
+-1
+508045
+460269
+-1
+508045
+460268
+-1
+508045
+460267
+-1
+508045
+460266
+-1
+508045
+460265
+-1
+508045
+460264
+-1
+508045
+460263
+-1
+508045
+460262
+-1
+508045
+460261
+-1
+508045
+460260
+-1
+508045
+460259
+-1
+508045
+460258
+-1
+508045
+460257
+-1
+508045
+460256
+-1
+508045
+460255
+-1
+508045
+460254
+-1
+508045
+460253
+-1
+508045
+460252
+-1
+508045
+460251
+-1
+508045
+460250
+-1
+508045
+460249
+-1
+508045
+460248
+-1
+508045
+460247
+-1
+508045
+460246
+-1
+508045
+460245
+-1
+508045
+460244
+-1
+508045
+460243
+-1
+508045
+460242
+-1
+508045
+460241
+-1
+508045
+460240
+-1
+508045
+460239
+-1
+508045
+460238
+-1
+508045
+460237
+-1
+508045
+460236
+-1
+508045
+460235
+-1
+508045
+460234
+-1
+508045
+460233
+-1
+508045
+460232
+-1
+508045
+460231
+-1
+508045
+460230
+-1
+508045
+460229
+-1
+508045
+460228
+-1
+508045
+460227
+-1
+508045
+460226
+-1
+508045
+460225
+-1
+508045
+460224
+-1
+508045
+460223
+-1
+508045
+460222
+-1
+508045
+460221
+-1
+508045
+460220
+-1
+508045
+460219
+-1
+508045
+460218
+-1
+508045
+460217
+-1
+508045
+460216
+-1
+508045
+460215
+-1
+508045
+460214
+-1
+508045
+460213
+-1
+508045
+460212
+-1
+508045
+460211
+-1
+508045
+460210
+-1
+508045
+460209
+-1
+508045
+460208
+-1
+508045
+460207
+-1
+508045
+460206
+-1
+508045
+460205
+-1
+508045
+460204
+-1
+508045
+460203
+-1
+508045
+460202
+-1
+508045
+460201
+-1
+508045
+460200
+-1
+508045
+460199
+-1
+508045
+460198
+-1
+508045
+460197
+-1
+508045
+460196
+-1
+508045
+460195
+-1
+508045
+460194
+-1
+508045
+460193
+-1
+508045
+460192
+-1
+508045
+460191
+-1
+508045
+460190
+-1
+508045
+460189
+-1
+508045
+460188
+-1
+508045
+460187
+-1
+508045
+460186
+-1
+508045
+460185
+-1
+508045
+460184
+-1
+508045
+460183
+-1
+508045
+460182
+-1
+508045
+460181
+-1
+508045
+460180
+-1
+508045
+460179
+-1
+508045
+460178
+-1
+508045
+460177
+-1
+508045
+460176
+-1
+508045
+460175
+-1
+508045
+460174
+-1
+508045
+460173
+-1
+508045
+460172
+-1
+508045
+460171
+-1
+508045
+460170
+-1
+508045
+460169
+-1
+508045
+460168
+-1
+508045
+460167
+-1
+508045
+460166
+-1
+508045
+460165
+-1
+508045
+460164
+-1
+508045
+460163
+-1
+508045
+460162
+-1
+508045
+460161
+-1
+508045
+460160
+-1
+508045
+460159
+-1
+508045
+460158
+-1
+508045
+460157
+-1
+508045
+460156
+-1
+508045
+460155
+-1
+508045
+460154
+-1
+508045
+460153
+-1
+508045
+460152
+-1
+508045
+460151
+-1
+508045
+460150
+-1
+508045
+460149
+-1
+508045
+460148
+-1
+508045
+460147
+-1
+508045
+460146
+-1
+508045
+460145
+-1
+508045
+460144
+-1
+508045
+460143
+-1
+508045
+460142
+-1
+508045
+460141
+-1
+508045
+460140
+-1
+508045
+460139
+-1
+508045
+460138
+-1
+508045
+460137
+-1
+508045
+460136
+-1
+508045
+460135
+-1
+508045
+460134
+-1
+508045
+460133
+-1
+508045
+460132
+-1
+508045
+460131
+-1
+508045
+460130
+-1
+508045
+460129
+-1
+508045
+460128
+-1
+508045
+460127
+-1
+508045
+460126
+-1
+508045
+460125
+-1
+508045
+460124
+-1
+508045
+460123
+-1
+508045
+460122
+-1
+508045
+460121
+-1
+508045
+460120
+-1
+508045
+460119
+-1
+508045
+460001
+-1
+508045
+460002
+-1
+508045
+460003
+-1
+508045
+460004
+-1
+508045
+460005
+-1
+508045
+460006
+-1
+508045
+460007
+-1
+508045
+460008
+-1
+508045
+460009
+-1
+508045
+460010
+-1
+508045
+460011
+-1
+508045
+460012
+-1
+508045
+460013
+-1
+508045
+460014
+-1
+508045
+460015
+-1
+508045
+460016
+-1
+508045
+460017
+-1
+508045
+460018
+-1
+508045
+460019
+-1
+508045
+460020
+-1
+508045
+460021
+-1
+508045
+460022
+-1
+508045
+460023
+-1
+508045
+460024
+-1
+508045
+460025
+-1
+508045
+460026
+-1
+508045
+460027
+-1
+508045
+460028
+-1
+508045
+460029
+-1
+508045
+460030
+-1
+508045
+460031
+-1
+508045
+460032
+-1
+508045
+460033
+-1
+508045
+460034
+-1
+508045
+460035
+-1
+508045
+460036
+-1
+508045
+460037
+-1
+508045
+460038
+-1
+508045
+460039
+-1
+508045
+460040
+-1
+508045
+460041
+-1
+508045
+460042
+-1
+508045
+460043
+-1
+508045
+460044
+-1
+508045
+460045
+-1
+508045
+460046
+-1
+508045
+460047
+-1
+508045
+460048
+-1
+508045
+460049
+-1
+508045
+460050
+-1
+508045
+460051
+-1
+508045
+460052
+-1
+508045
+460053
+-1
+508045
+460054
+-1
+508045
+460055
+-1
+508045
+460056
+-1
+508045
+460057
+-1
+508045
+460058
+-1
+508045
+460059
+-1
+508045
+460060
+-1
+508045
+460061
+-1
+508045
+460062
+-1
+508045
+460063
+-1
+508045
+460064
+-1
+508045
+460065
+-1
+508045
+460066
+-1
+508045
+460067
+-1
+508045
+460068
+-1
+508045
+460069
+-1
+508045
+460070
+-1
+508045
+460071
+-1
+508045
+460072
+-1
+508045
+460073
+-1
+508045
+460074
+-1
+508045
+460075
+-1
+508045
+460076
+-1
+508045
+460077
+-1
+508045
+460078
+-1
+508045
+460079
+-1
+508045
+460080
+-1
+508045
+460081
+-1
+508045
+460082
+-1
+508045
+460083
+-1
+508045
+460084
+-1
+508045
+460085
+-1
+508045
+460086
+-1
+508045
+460087
+-1
+508045
+460088
+-1
+508045
+460089
+-1
+508045
+460090
+-1
+508045
+460091
+-1
+508045
+460092
+-1
+508045
+460093
+-1
+508045
+460094
+-1
+508045
+460095
+-1
+508045
+460096
+-1
+508045
+460097
+-1
+508045
+460098
+-1
+508045
+460099
+-1
+508045
+460100
+-1
+508045
+460101
+-1
+508045
+460102
+-1
+508045
+460103
+-1
+508045
+460104
+-1
+508045
+460105
+-1
+508045
+460106
+-1
+508045
+460107
+-1
+508045
+460108
+-1
+508045
+460109
+-1
+508045
+460110
+-1
+508045
+460111
+-1
+508045
+460112
+-1
+508045
+460113
+-1
+508045
+460114
+-1
+508045
+460115
+-1
+508045
+460116
+-1
+508045
+460117
+-1
+508045
+460118
+-1
+508045
+460291
+-1
+508045
+460292
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KASEETA2.DAT b/DerClouProfiData/DATA/KASEETA2.DAT
new file mode 100644
index 0000000..a6c81db
Binary files /dev/null and b/DerClouProfiData/DATA/KASEETA2.DAT differ
diff --git a/DerClouProfiData/DATA/KASEETA2.LFD b/DerClouProfiData/DATA/KASEETA2.LFD
new file mode 100644
index 0000000..98d81d0
--- /dev/null
+++ b/DerClouProfiData/DATA/KASEETA2.LFD
@@ -0,0 +1 @@
+�������    �������� ����������������������� ������������������� ������������� ������������ �������������������                     
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KASEETA2.REL b/DerClouProfiData/DATA/KASEETA2.REL
new file mode 100644
index 0000000..c856827
--- /dev/null
+++ b/DerClouProfiData/DATA/KASEETA2.REL
@@ -0,0 +1,791 @@
+RELF
+RTAB
+470010
+RTAB
+470007
+470221
+9608
+2
+470176
+9601
+200
+470172
+9636
+300000
+RTAB
+470006
+470171
+470218
+-1
+470218
+470171
+-1
+470168
+470218
+-1
+470218
+470168
+-1
+470169
+470219
+-1
+470219
+470169
+-1
+470215
+470217
+-1
+470217
+470215
+-1
+470170
+470217
+-1
+470217
+470170
+-1
+470216
+470219
+-1
+470219
+470216
+-1
+RTAB
+470005
+470198
+470214
+-1
+470214
+470198
+-1
+470221
+470214
+-1
+470214
+470221
+-1
+470172
+470214
+-1
+470214
+470172
+-1
+470164
+470214
+-1
+470214
+470164
+-1
+470176
+470214
+-1
+470214
+470176
+-1
+RTAB
+470004
+470212
+470212
+-1
+470198
+470198
+-1
+470197
+470197
+-1
+470164
+470164
+-1
+470151
+470151
+-1
+RTAB
+470003
+508046
+470229
+-1
+508046
+470228
+-1
+508046
+470227
+-1
+508046
+470226
+-1
+508046
+470225
+-1
+508046
+470224
+-1
+508046
+470223
+-1
+508046
+470222
+-1
+508046
+470221
+-1
+508046
+470220
+-1
+508046
+470219
+-1
+508046
+470218
+-1
+508046
+470217
+-1
+508046
+470216
+-1
+508046
+470215
+-1
+508046
+470214
+-1
+508046
+470213
+-1
+508046
+470212
+-1
+508046
+470211
+-1
+508046
+470210
+-1
+508046
+470209
+-1
+508046
+470208
+-1
+508046
+470207
+-1
+508046
+470206
+-1
+508046
+470205
+-1
+508046
+470204
+-1
+508046
+470203
+-1
+508046
+470202
+-1
+508046
+470201
+-1
+508046
+470200
+-1
+508046
+470199
+-1
+508046
+470198
+-1
+508046
+470197
+-1
+508046
+470196
+-1
+508046
+470195
+-1
+508046
+470194
+-1
+508046
+470193
+-1
+508046
+470192
+-1
+508046
+470191
+-1
+508046
+470190
+-1
+508046
+470189
+-1
+508046
+470188
+-1
+508046
+470187
+-1
+508046
+470186
+-1
+508046
+470185
+-1
+508046
+470184
+-1
+508046
+470183
+-1
+508046
+470182
+-1
+508046
+470181
+-1
+508046
+470180
+-1
+508046
+470179
+-1
+508046
+470178
+-1
+508046
+470177
+-1
+508046
+470176
+-1
+508046
+470175
+-1
+508046
+470174
+-1
+508046
+470173
+-1
+508046
+470172
+-1
+508046
+470171
+-1
+508046
+470170
+-1
+508046
+470169
+-1
+508046
+470168
+-1
+508046
+470167
+-1
+508046
+470166
+-1
+508046
+470165
+-1
+508046
+470164
+-1
+508046
+470163
+-1
+508046
+470162
+-1
+508046
+470161
+-1
+508046
+470160
+-1
+508046
+470159
+-1
+508046
+470158
+-1
+508046
+470157
+-1
+508046
+470156
+-1
+508046
+470155
+-1
+508046
+470154
+-1
+508046
+470153
+-1
+508046
+470152
+-1
+508046
+470151
+-1
+508046
+470150
+-1
+508046
+470149
+-1
+508046
+470148
+-1
+508046
+470147
+-1
+508046
+470146
+-1
+508046
+470145
+-1
+508046
+470144
+-1
+508046
+470143
+-1
+508046
+470142
+-1
+508046
+470141
+-1
+508046
+470001
+-1
+508046
+470002
+-1
+508046
+470003
+-1
+508046
+470004
+-1
+508046
+470005
+-1
+508046
+470006
+-1
+508046
+470007
+-1
+508046
+470008
+-1
+508046
+470009
+-1
+508046
+470010
+-1
+508046
+470011
+-1
+508046
+470012
+-1
+508046
+470013
+-1
+508046
+470014
+-1
+508046
+470015
+-1
+508046
+470016
+-1
+508046
+470017
+-1
+508046
+470018
+-1
+508046
+470019
+-1
+508046
+470020
+-1
+508046
+470021
+-1
+508046
+470022
+-1
+508046
+470023
+-1
+508046
+470024
+-1
+508046
+470025
+-1
+508046
+470026
+-1
+508046
+470027
+-1
+508046
+470028
+-1
+508046
+470029
+-1
+508046
+470030
+-1
+508046
+470031
+-1
+508046
+470032
+-1
+508046
+470033
+-1
+508046
+470034
+-1
+508046
+470035
+-1
+508046
+470036
+-1
+508046
+470037
+-1
+508046
+470038
+-1
+508046
+470039
+-1
+508046
+470040
+-1
+508046
+470041
+-1
+508046
+470042
+-1
+508046
+470043
+-1
+508046
+470044
+-1
+508046
+470045
+-1
+508046
+470046
+-1
+508046
+470047
+-1
+508046
+470048
+-1
+508046
+470049
+-1
+508046
+470050
+-1
+508046
+470051
+-1
+508046
+470052
+-1
+508046
+470053
+-1
+508046
+470054
+-1
+508046
+470055
+-1
+508046
+470056
+-1
+508046
+470057
+-1
+508046
+470058
+-1
+508046
+470059
+-1
+508046
+470060
+-1
+508046
+470061
+-1
+508046
+470062
+-1
+508046
+470063
+-1
+508046
+470064
+-1
+508046
+470065
+-1
+508046
+470066
+-1
+508046
+470067
+-1
+508046
+470068
+-1
+508046
+470069
+-1
+508046
+470070
+-1
+508046
+470071
+-1
+508046
+470072
+-1
+508046
+470073
+-1
+508046
+470074
+-1
+508046
+470075
+-1
+508046
+470076
+-1
+508046
+470077
+-1
+508046
+470078
+-1
+508046
+470079
+-1
+508046
+470080
+-1
+508046
+470081
+-1
+508046
+470082
+-1
+508046
+470083
+-1
+508046
+470084
+-1
+508046
+470085
+-1
+508046
+470086
+-1
+508046
+470087
+-1
+508046
+470088
+-1
+508046
+470089
+-1
+508046
+470090
+-1
+508046
+470091
+-1
+508046
+470092
+-1
+508046
+470093
+-1
+508046
+470094
+-1
+508046
+470095
+-1
+508046
+470096
+-1
+508046
+470097
+-1
+508046
+470098
+-1
+508046
+470099
+-1
+508046
+470100
+-1
+508046
+470101
+-1
+508046
+470102
+-1
+508046
+470103
+-1
+508046
+470104
+-1
+508046
+470105
+-1
+508046
+470106
+-1
+508046
+470107
+-1
+508046
+470108
+-1
+508046
+470109
+-1
+508046
+470110
+-1
+508046
+470111
+-1
+508046
+470112
+-1
+508046
+470113
+-1
+508046
+470114
+-1
+508046
+470115
+-1
+508046
+470116
+-1
+508046
+470117
+-1
+508046
+470118
+-1
+508046
+470119
+-1
+508046
+470120
+-1
+508046
+470121
+-1
+508046
+470122
+-1
+508046
+470123
+-1
+508046
+470124
+-1
+508046
+470125
+-1
+508046
+470126
+-1
+508046
+470127
+-1
+508046
+470128
+-1
+508046
+470129
+-1
+508046
+470130
+-1
+508046
+470131
+-1
+508046
+470132
+-1
+508046
+470133
+-1
+508046
+470134
+-1
+508046
+470135
+-1
+508046
+470136
+-1
+508046
+470137
+-1
+508046
+470138
+-1
+508046
+470139
+-1
+508046
+470140
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KENWETA.GRE b/DerClouProfiData/DATA/KENWETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/KENWETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KENWETA.GUA b/DerClouProfiData/DATA/KENWETA.GUA
new file mode 100644
index 0000000..08d987e
--- /dev/null
+++ b/DerClouProfiData/DATA/KENWETA.GUA
@@ -0,0 +1,273 @@
+ACLI
+508500
+ACTI
+1
+29
+2
+ACTI
+1
+4
+8
+ACTI
+1
+5
+2
+ACTI
+10
+15
+170104
+ACTI
+8
+9
+170104
+ACTI
+1
+14
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+170104
+ACTI
+1
+7
+4
+ACTI
+8
+24
+170167
+ACTI
+10
+15
+170167
+ACTI
+9
+24
+170167
+ACTI
+1
+34
+2
+ACTI
+1
+7
+4
+ACTI
+10
+15
+170105
+ACTI
+1
+9
+8
+ACTI
+1
+30
+2
+ACTI
+1
+1
+4
+ACTI
+8
+24
+170179
+ACTI
+10
+15
+170179
+ACTI
+9
+24
+170179
+ACTI
+1
+26
+8
+ACTI
+1
+23
+1
+ACTI
+1
+2
+8
+ACTI
+10
+15
+170192
+ACTI
+1
+32
+1
+ACTI
+1
+1
+4
+ACTI
+1
+1
+8
+ACTI
+10
+15
+170191
+ACTI
+1
+8
+1
+ACTI
+1
+22
+4
+ACTI
+1
+3
+1
+ACTI
+10
+15
+170104
+ACTI
+8
+9
+170104
+ACTI
+1
+14
+1
+ACTI
+1
+1
+2
+ACTI
+9
+9
+170104
+ACTI
+1
+31
+1
+ACTI
+1
+16
+8
+ACTI
+2
+105
+ACTI
+1
+28
+1
+ACTI
+1
+16
+4
+ACTI
+1
+6
+1
+ACTI
+10
+15
+170101
+ACTI
+8
+9
+170101
+ACTI
+1
+16
+1
+ACTI
+1
+1
+2
+ACTI
+9
+9
+170101
+ACTI
+1
+10
+1
+ACTI
+1
+13
+4
+ACTI
+1
+33
+1
+ACTI
+8
+15
+170166
+ACTI
+10
+15
+170166
+ACTI
+9
+15
+170166
+ACTI
+1
+19
+8
+ACTI
+1
+17
+2
+ACTI
+10
+15
+170212
+ACTI
+1
+8
+4
+ACTI
+1
+27
+2
+ACTI
+1
+2
+8
+ACTI
+1
+1
+2
+ACTI
+10
+15
+170101
+ACTI
+8
+9
+170101
+ACTI
+1
+13
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+170101
+ACTI
+1
+4
+4
+ACTI
+1
+34
+2
diff --git a/DerClouProfiData/DATA/KENWETA.SPO b/DerClouProfiData/DATA/KENWETA.SPO
new file mode 100644
index 0000000..89383e3
--- /dev/null
+++ b/DerClouProfiData/DATA/KENWETA.SPO
@@ -0,0 +1,36 @@
+3
+32
+4
+170179
+3
+128
+43
+127
+64
+126
+72
+32
+4
+170179
+4
+224
+34
+224
+49
+224
+64
+224
+72
+32
+4
+170179
+4
+353
+35
+352
+48
+352
+63
+352
+72
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KENWETA0.DAT b/DerClouProfiData/DATA/KENWETA0.DAT
new file mode 100644
index 0000000..099b0c3
Binary files /dev/null and b/DerClouProfiData/DATA/KENWETA0.DAT differ
diff --git a/DerClouProfiData/DATA/KENWETA0.LFD b/DerClouProfiData/DATA/KENWETA0.LFD
new file mode 100644
index 0000000..6be35a8
--- /dev/null
+++ b/DerClouProfiData/DATA/KENWETA0.LFD
@@ -0,0 +1 @@
+������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/KENWETA0.REL b/DerClouProfiData/DATA/KENWETA0.REL
new file mode 100644
index 0000000..dc2805b
--- /dev/null
+++ b/DerClouProfiData/DATA/KENWETA0.REL
@@ -0,0 +1,846 @@
+RELF
+RTAB
+170011
+RTAB
+170010
+508016
+170218
+-1
+508016
+170216
+-1
+508016
+170217
+-1
+RTAB
+170007
+170183
+9600
+800
+170182
+9600
+1300
+170181
+9600
+3000
+170180
+9600
+600
+170176
+9600
+5200
+170175
+9600
+3900
+170174
+9600
+7100
+170173
+9600
+4200
+170172
+9600
+1300
+170171
+9600
+900
+170170
+9600
+1200
+170169
+9600
+800
+170168
+9600
+1000
+170197
+9605
+2200
+170198
+9605
+400
+170199
+9605
+890
+170200
+9605
+1100
+170212
+9602
+830
+RTAB
+170006
+170179
+170213
+-1
+170213
+170179
+-1
+170179
+170214
+-1
+170214
+170179
+-1
+170179
+170215
+-1
+170215
+170179
+-1
+RTAB
+170005
+170102
+170166
+-1
+170166
+170102
+-1
+170104
+170166
+-1
+170166
+170104
+-1
+170187
+170167
+-1
+170167
+170187
+-1
+170188
+170167
+-1
+170167
+170188
+-1
+170189
+170167
+-1
+170167
+170189
+-1
+170190
+170167
+-1
+170167
+170190
+-1
+170191
+170167
+-1
+170167
+170191
+-1
+170192
+170167
+-1
+170167
+170192
+-1
+170168
+170167
+-1
+170167
+170168
+-1
+170169
+170167
+-1
+170167
+170169
+-1
+170170
+170167
+-1
+170167
+170170
+-1
+170171
+170167
+-1
+170167
+170171
+-1
+170172
+170167
+-1
+170167
+170172
+-1
+170173
+170167
+-1
+170167
+170173
+-1
+170174
+170167
+-1
+170167
+170174
+-1
+170175
+170167
+-1
+170167
+170175
+-1
+170176
+170167
+-1
+170167
+170176
+-1
+RTAB
+170004
+170105
+9102
+-1
+170104
+9102
+-1
+170103
+9102
+-1
+170102
+9102
+-1
+170101
+9102
+-1
+170084
+170084
+-1
+RTAB
+170003
+508016
+170215
+-1
+508016
+170214
+-1
+508016
+170183
+-1
+508016
+170182
+-1
+508016
+170181
+-1
+508016
+170180
+-1
+508016
+170179
+-1
+508016
+170176
+-1
+508016
+170175
+-1
+508016
+170174
+-1
+508016
+170173
+-1
+508016
+170172
+-1
+508016
+170171
+-1
+508016
+170170
+-1
+508016
+170169
+-1
+508016
+170168
+-1
+508016
+170167
+-1
+508016
+170166
+-1
+508016
+170165
+-1
+508016
+170164
+-1
+508016
+170163
+-1
+508016
+170162
+-1
+508016
+170161
+-1
+508016
+170160
+-1
+508016
+170159
+-1
+508016
+170158
+-1
+508016
+170157
+-1
+508016
+170156
+-1
+508016
+170155
+-1
+508016
+170154
+-1
+508016
+170153
+-1
+508016
+170152
+-1
+508016
+170151
+-1
+508016
+170150
+-1
+508016
+170149
+-1
+508016
+170148
+-1
+508016
+170147
+-1
+508016
+170146
+-1
+508016
+170145
+-1
+508016
+170144
+-1
+508016
+170143
+-1
+508016
+170142
+-1
+508016
+170141
+-1
+508016
+170140
+-1
+508016
+170139
+-1
+508016
+170138
+-1
+508016
+170137
+-1
+508016
+170136
+-1
+508016
+170135
+-1
+508016
+170134
+-1
+508016
+170133
+-1
+508016
+170132
+-1
+508016
+170131
+-1
+508016
+170130
+-1
+508016
+170129
+-1
+508016
+170128
+-1
+508016
+170127
+-1
+508016
+170126
+-1
+508016
+170125
+-1
+508016
+170124
+-1
+508016
+170123
+-1
+508016
+170122
+-1
+508016
+170121
+-1
+508016
+170120
+-1
+508016
+170119
+-1
+508016
+170118
+-1
+508016
+170117
+-1
+508016
+170116
+-1
+508016
+170115
+-1
+508016
+170114
+-1
+508016
+170113
+-1
+508016
+170112
+-1
+508016
+170111
+-1
+508016
+170110
+-1
+508016
+170109
+-1
+508016
+170108
+-1
+508016
+170107
+-1
+508016
+170106
+-1
+508016
+170105
+-1
+508016
+170104
+-1
+508016
+170103
+-1
+508016
+170102
+-1
+508016
+170101
+-1
+508016
+170100
+-1
+508016
+170099
+-1
+508016
+170098
+-1
+508016
+170097
+-1
+508016
+170096
+-1
+508016
+170095
+-1
+508016
+170094
+-1
+508016
+170093
+-1
+508016
+170092
+-1
+508016
+170091
+-1
+508016
+170090
+-1
+508016
+170089
+-1
+508016
+170088
+-1
+508016
+170087
+-1
+508016
+170086
+-1
+508016
+170085
+-1
+508016
+170084
+-1
+508016
+170083
+-1
+508016
+170082
+-1
+508016
+170081
+-1
+508016
+170080
+-1
+508016
+170079
+-1
+508016
+170078
+-1
+508016
+170077
+-1
+508016
+170076
+-1
+508016
+170075
+-1
+508016
+170074
+-1
+508016
+170073
+-1
+508016
+170072
+-1
+508016
+170071
+-1
+508016
+170070
+-1
+508016
+170069
+-1
+508016
+170068
+-1
+508016
+170067
+-1
+508016
+170066
+-1
+508016
+170065
+-1
+508016
+170064
+-1
+508016
+170063
+-1
+508016
+170062
+-1
+508016
+170061
+-1
+508016
+170060
+-1
+508016
+170059
+-1
+508016
+170058
+-1
+508016
+170057
+-1
+508016
+170056
+-1
+508016
+170055
+-1
+508016
+170054
+-1
+508016
+170053
+-1
+508016
+170052
+-1
+508016
+170051
+-1
+508016
+170050
+-1
+508016
+170049
+-1
+508016
+170048
+-1
+508016
+170047
+-1
+508016
+170046
+-1
+508016
+170045
+-1
+508016
+170044
+-1
+508016
+170043
+-1
+508016
+170042
+-1
+508016
+170041
+-1
+508016
+170040
+-1
+508016
+170039
+-1
+508016
+170038
+-1
+508016
+170037
+-1
+508016
+170036
+-1
+508016
+170035
+-1
+508016
+170034
+-1
+508016
+170033
+-1
+508016
+170032
+-1
+508016
+170031
+-1
+508016
+170030
+-1
+508016
+170029
+-1
+508016
+170028
+-1
+508016
+170027
+-1
+508016
+170026
+-1
+508016
+170025
+-1
+508016
+170024
+-1
+508016
+170023
+-1
+508016
+170022
+-1
+508016
+170021
+-1
+508016
+170020
+-1
+508016
+170019
+-1
+508016
+170018
+-1
+508016
+170017
+-1
+508016
+170016
+-1
+508016
+170015
+-1
+508016
+170014
+-1
+508016
+170013
+-1
+508016
+170012
+-1
+508016
+170011
+-1
+508016
+170010
+-1
+508016
+170009
+-1
+508016
+170008
+-1
+508016
+170007
+-1
+508016
+170006
+-1
+508016
+170005
+-1
+508016
+170004
+-1
+508016
+170003
+-1
+508016
+170002
+-1
+508016
+170001
+-1
+508016
+170187
+-1
+508016
+170188
+-1
+508016
+170189
+-1
+508016
+170190
+-1
+508016
+170191
+-1
+508016
+170192
+-1
+508016
+170193
+-1
+508016
+170194
+-1
+508016
+170195
+-1
+508016
+170196
+-1
+508016
+170197
+-1
+508016
+170198
+-1
+508016
+170199
+-1
+508016
+170200
+-1
+508016
+170201
+-1
+508016
+170202
+-1
+508016
+170203
+-1
+508016
+170204
+-1
+508016
+170205
+-1
+508016
+170206
+-1
+508016
+170207
+-1
+508016
+170208
+-1
+508016
+170209
+-1
+508016
+170210
+-1
+508016
+170211
+-1
+508016
+170212
+-1
+508016
+170213
+-1
diff --git a/DerClouProfiData/DATA/MARXETA.GRE b/DerClouProfiData/DATA/MARXETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/MARXETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/MARXETA.GUA b/DerClouProfiData/DATA/MARXETA.GUA
new file mode 100644
index 0000000..d4d7fb9
--- /dev/null
+++ b/DerClouProfiData/DATA/MARXETA.GUA
@@ -0,0 +1,29 @@
+ACLI
+508500
+ACTI
+1
+143
+2
+ACTI
+1
+4
+8
+ACTI
+2
+60
+ACTI
+1
+143
+1
+ACTI
+1
+5
+4
+ACTI
+10
+15
+140071
+ACTI
+1
+1
+8
diff --git a/DerClouProfiData/DATA/MARXETA.SPO b/DerClouProfiData/DATA/MARXETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/MARXETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/MARXETA0.DAT b/DerClouProfiData/DATA/MARXETA0.DAT
new file mode 100644
index 0000000..5f5d144
Binary files /dev/null and b/DerClouProfiData/DATA/MARXETA0.DAT differ
diff --git a/DerClouProfiData/DATA/MARXETA0.LFD b/DerClouProfiData/DATA/MARXETA0.LFD
new file mode 100644
index 0000000..136fac9
Binary files /dev/null and b/DerClouProfiData/DATA/MARXETA0.LFD differ
diff --git a/DerClouProfiData/DATA/MARXETA0.REL b/DerClouProfiData/DATA/MARXETA0.REL
new file mode 100644
index 0000000..5acb7c9
--- /dev/null
+++ b/DerClouProfiData/DATA/MARXETA0.REL
@@ -0,0 +1,314 @@
+RELF
+RTAB
+140011
+RTAB
+140009
+RTAB
+140008
+RTAB
+140010
+508013
+140097
+-1
+508013
+140096
+-1
+508013
+140095
+-1
+RTAB
+140007
+140071
+9618
+1300
+RTAB
+140006
+RTAB
+140005
+RTAB
+140004
+RTAB
+140003
+508013
+140094
+-1
+508013
+140093
+-1
+508013
+140092
+-1
+508013
+140091
+-1
+508013
+140090
+-1
+508013
+140089
+-1
+508013
+140088
+-1
+508013
+140087
+-1
+508013
+140086
+-1
+508013
+140085
+-1
+508013
+140084
+-1
+508013
+140083
+-1
+508013
+140082
+-1
+508013
+140081
+-1
+508013
+140080
+-1
+508013
+140079
+-1
+508013
+140078
+-1
+508013
+140077
+-1
+508013
+140076
+-1
+508013
+140075
+-1
+508013
+140074
+-1
+508013
+140073
+-1
+508013
+140072
+-1
+508013
+140058
+-1
+508013
+140001
+-1
+508013
+140002
+-1
+508013
+140003
+-1
+508013
+140004
+-1
+508013
+140005
+-1
+508013
+140006
+-1
+508013
+140007
+-1
+508013
+140008
+-1
+508013
+140009
+-1
+508013
+140010
+-1
+508013
+140011
+-1
+508013
+140012
+-1
+508013
+140013
+-1
+508013
+140014
+-1
+508013
+140015
+-1
+508013
+140016
+-1
+508013
+140017
+-1
+508013
+140018
+-1
+508013
+140019
+-1
+508013
+140020
+-1
+508013
+140021
+-1
+508013
+140022
+-1
+508013
+140023
+-1
+508013
+140024
+-1
+508013
+140025
+-1
+508013
+140026
+-1
+508013
+140027
+-1
+508013
+140028
+-1
+508013
+140029
+-1
+508013
+140030
+-1
+508013
+140031
+-1
+508013
+140032
+-1
+508013
+140033
+-1
+508013
+140034
+-1
+508013
+140035
+-1
+508013
+140036
+-1
+508013
+140037
+-1
+508013
+140038
+-1
+508013
+140039
+-1
+508013
+140040
+-1
+508013
+140041
+-1
+508013
+140042
+-1
+508013
+140043
+-1
+508013
+140044
+-1
+508013
+140045
+-1
+508013
+140046
+-1
+508013
+140047
+-1
+508013
+140048
+-1
+508013
+140049
+-1
+508013
+140050
+-1
+508013
+140051
+-1
+508013
+140052
+-1
+508013
+140053
+-1
+508013
+140054
+-1
+508013
+140055
+-1
+508013
+140056
+-1
+508013
+140057
+-1
+508013
+140059
+-1
+508013
+140060
+-1
+508013
+140061
+-1
+508013
+140062
+-1
+508013
+140063
+-1
+508013
+140064
+-1
+508013
+140065
+-1
+508013
+140066
+-1
+508013
+140067
+-1
+508013
+140068
+-1
+508013
+140069
+-1
+508013
+140070
+-1
+508013
+140071
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/NATIETA.GRE b/DerClouProfiData/DATA/NATIETA.GRE
new file mode 100644
index 0000000..a0632bc
--- /dev/null
+++ b/DerClouProfiData/DATA/NATIETA.GRE
@@ -0,0 +1,14 @@
+RELF
+RTAB
+1
+509015
+360276
+500
+RTAB
+2
+360276
+360276
+500
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/NATIETA.GUA b/DerClouProfiData/DATA/NATIETA.GUA
new file mode 100644
index 0000000..c1f5962
--- /dev/null
+++ b/DerClouProfiData/DATA/NATIETA.GUA
@@ -0,0 +1,172 @@
+ACLI
+508500
+ACTI
+1
+86
+1
+ACTI
+1
+27
+8
+ACTI
+1
+15
+2
+ACTI
+1
+3
+8
+ACTI
+2
+60
+ACTI
+2
+60
+ACTI
+1
+12
+4
+ACTI
+1
+88
+2
+ACTI
+1
+1
+8
+ACTI
+10
+15
+360190
+ACTI
+1
+14
+4
+ACTI
+1
+11
+2
+ACTI
+10
+15
+360241
+ACTI
+8
+9
+360241
+ACTI
+1
+15
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+360241
+ACTI
+1
+5
+2
+ACTI
+1
+4
+4
+ACTI
+1
+94
+2
+ACTI
+1
+7
+8
+ACTI
+1
+14
+2
+ACTI
+1
+2
+4
+ACTI
+8
+33
+360271
+ACTI
+10
+15
+360271
+ACTI
+9
+33
+360271
+ACTI
+1
+11
+8
+ACTI
+1
+104
+1
+ACTI
+1
+3
+8
+ACTI
+10
+15
+360195
+ACTI
+1
+15
+4
+ACTI
+1
+10
+1
+ACTI
+10
+15
+360241
+ACTI
+8
+9
+360241
+ACTI
+1
+14
+1
+ACTI
+1
+1
+2
+ACTI
+9
+9
+360241
+ACTI
+1
+2
+1
+ACTI
+1
+1
+4
+ACTI
+10
+15
+360276
+ACTI
+1
+5
+1
+ACTI
+1
+4
+4
+ACTI
+1
+21
+1
diff --git a/DerClouProfiData/DATA/NATIETA.SPO b/DerClouProfiData/DATA/NATIETA.SPO
new file mode 100644
index 0000000..2f994da
--- /dev/null
+++ b/DerClouProfiData/DATA/NATIETA.SPO
@@ -0,0 +1,116 @@
+16
+16
+3
+360277
+3
+591
+162
+590
+176
+589
+187
+32
+1
+360272
+1
+542
+31
+16
+1
+360275
+1
+239
+117
+16
+1
+360275
+1
+223
+117
+16
+1
+360275
+1
+207
+117
+16
+1
+360275
+1
+191
+117
+16
+1
+360275
+1
+175
+117
+16
+1
+360274
+1
+463
+119
+16
+1
+360274
+1
+447
+119
+16
+1
+360274
+1
+431
+119
+16
+1
+360274
+1
+415
+119
+16
+1
+360274
+1
+399
+119
+32
+1
+360274
+3
+126
+95
+94
+95
+62
+95
+32
+1
+360274
+3
+540
+81
+508
+81
+484
+81
+32
+1
+360273
+4
+349
+164
+317
+164
+290
+164
+260
+164
+32
+1
+360277
+1
+82
+170
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/NATIETA0.DAT b/DerClouProfiData/DATA/NATIETA0.DAT
new file mode 100644
index 0000000..d2c3936
Binary files /dev/null and b/DerClouProfiData/DATA/NATIETA0.DAT differ
diff --git a/DerClouProfiData/DATA/NATIETA0.LFD b/DerClouProfiData/DATA/NATIETA0.LFD
new file mode 100644
index 0000000..fa0f090
--- /dev/null
+++ b/DerClouProfiData/DATA/NATIETA0.LFD
@@ -0,0 +1 @@
+������������������������������������������������������������������Ņ�������������������������Ņ�����Ņ������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/NATIETA0.REL b/DerClouProfiData/DATA/NATIETA0.REL
new file mode 100644
index 0000000..989e0f2
--- /dev/null
+++ b/DerClouProfiData/DATA/NATIETA0.REL
@@ -0,0 +1,1147 @@
+RELF
+RTAB
+360011
+RTAB
+360010
+508035
+360307
+-1
+508035
+360308
+-1
+508035
+360309
+-1
+508035
+360310
+-1
+RTAB
+360007
+360311
+9607
+4000
+360247
+9600
+4000
+360248
+9600
+6000
+360249
+9600
+7000
+360250
+9600
+5000
+360251
+9600
+5000
+360252
+9600
+6000
+360253
+9600
+6000
+360254
+9600
+3000
+360255
+9600
+5000
+360256
+9600
+30000
+360257
+9600
+30000
+360258
+9600
+35000
+360259
+9600
+5000
+360260
+9600
+300
+360261
+9600
+700
+360262
+9600
+900
+360263
+9600
+1000
+360264
+9600
+1000
+360265
+9600
+300
+360266
+9600
+500
+360267
+9600
+400
+360268
+9600
+600
+360269
+9600
+9000
+360270
+9600
+1000
+360278
+9600
+100
+360279
+9600
+100
+360280
+9600
+200
+RTAB
+360006
+360285
+360273
+-1
+360273
+360285
+-1
+360286
+360273
+-1
+360273
+360286
+-1
+360289
+360272
+-1
+360272
+360289
+-1
+360288
+360277
+-1
+360277
+360288
+-1
+360287
+360277
+-1
+360277
+360287
+-1
+360292
+360275
+-1
+360275
+360292
+-1
+360293
+360274
+-1
+360274
+360293
+-1
+360290
+360274
+-1
+360274
+360290
+-1
+360291
+360274
+-1
+360274
+360291
+-1
+360312
+360277
+-1
+360277
+360312
+-1
+RTAB
+360005
+360277
+360271
+-1
+360271
+360277
+-1
+360258
+360271
+-1
+360271
+360258
+-1
+360256
+360271
+-1
+360271
+360256
+-1
+360257
+360271
+-1
+360271
+360257
+-1
+RTAB
+360004
+360241
+9102
+-1
+360198
+9102
+-1
+360195
+9102
+-1
+360190
+9102
+-1
+360116
+9102
+-1
+360117
+9102
+-1
+360124
+9102
+-1
+360138
+9102
+-1
+360149
+9102
+-1
+360175
+9102
+-1
+360228
+9102
+-1
+360235
+9102
+-1
+RTAB
+360003
+508035
+360311
+-1
+508035
+360295
+-1
+508035
+360294
+-1
+508035
+360293
+-1
+508035
+360292
+-1
+508035
+360291
+-1
+508035
+360290
+-1
+508035
+360289
+-1
+508035
+360288
+-1
+508035
+360287
+-1
+508035
+360286
+-1
+508035
+360285
+-1
+508035
+360284
+-1
+508035
+360283
+-1
+508035
+360282
+-1
+508035
+360281
+-1
+508035
+360246
+-1
+508035
+360245
+-1
+508035
+360244
+-1
+508035
+360243
+-1
+508035
+360242
+-1
+508035
+360241
+-1
+508035
+360240
+-1
+508035
+360239
+-1
+508035
+360203
+-1
+508035
+360202
+-1
+508035
+360201
+-1
+508035
+360200
+-1
+508035
+360199
+-1
+508035
+360198
+-1
+508035
+360197
+-1
+508035
+360196
+-1
+508035
+360195
+-1
+508035
+360194
+-1
+508035
+360193
+-1
+508035
+360192
+-1
+508035
+360191
+-1
+508035
+360190
+-1
+508035
+360189
+-1
+508035
+360188
+-1
+508035
+360001
+-1
+508035
+360002
+-1
+508035
+360003
+-1
+508035
+360004
+-1
+508035
+360005
+-1
+508035
+360006
+-1
+508035
+360007
+-1
+508035
+360008
+-1
+508035
+360009
+-1
+508035
+360010
+-1
+508035
+360011
+-1
+508035
+360012
+-1
+508035
+360013
+-1
+508035
+360014
+-1
+508035
+360015
+-1
+508035
+360016
+-1
+508035
+360017
+-1
+508035
+360018
+-1
+508035
+360019
+-1
+508035
+360020
+-1
+508035
+360021
+-1
+508035
+360022
+-1
+508035
+360023
+-1
+508035
+360024
+-1
+508035
+360025
+-1
+508035
+360026
+-1
+508035
+360027
+-1
+508035
+360028
+-1
+508035
+360029
+-1
+508035
+360030
+-1
+508035
+360031
+-1
+508035
+360032
+-1
+508035
+360033
+-1
+508035
+360034
+-1
+508035
+360035
+-1
+508035
+360036
+-1
+508035
+360037
+-1
+508035
+360038
+-1
+508035
+360039
+-1
+508035
+360040
+-1
+508035
+360041
+-1
+508035
+360042
+-1
+508035
+360043
+-1
+508035
+360044
+-1
+508035
+360045
+-1
+508035
+360046
+-1
+508035
+360047
+-1
+508035
+360048
+-1
+508035
+360049
+-1
+508035
+360050
+-1
+508035
+360051
+-1
+508035
+360052
+-1
+508035
+360053
+-1
+508035
+360054
+-1
+508035
+360055
+-1
+508035
+360056
+-1
+508035
+360057
+-1
+508035
+360058
+-1
+508035
+360059
+-1
+508035
+360060
+-1
+508035
+360061
+-1
+508035
+360062
+-1
+508035
+360063
+-1
+508035
+360064
+-1
+508035
+360065
+-1
+508035
+360066
+-1
+508035
+360067
+-1
+508035
+360068
+-1
+508035
+360069
+-1
+508035
+360070
+-1
+508035
+360071
+-1
+508035
+360072
+-1
+508035
+360073
+-1
+508035
+360074
+-1
+508035
+360075
+-1
+508035
+360076
+-1
+508035
+360077
+-1
+508035
+360078
+-1
+508035
+360079
+-1
+508035
+360080
+-1
+508035
+360081
+-1
+508035
+360082
+-1
+508035
+360083
+-1
+508035
+360084
+-1
+508035
+360085
+-1
+508035
+360086
+-1
+508035
+360087
+-1
+508035
+360088
+-1
+508035
+360089
+-1
+508035
+360090
+-1
+508035
+360091
+-1
+508035
+360092
+-1
+508035
+360093
+-1
+508035
+360094
+-1
+508035
+360095
+-1
+508035
+360096
+-1
+508035
+360097
+-1
+508035
+360098
+-1
+508035
+360099
+-1
+508035
+360100
+-1
+508035
+360101
+-1
+508035
+360102
+-1
+508035
+360103
+-1
+508035
+360104
+-1
+508035
+360105
+-1
+508035
+360106
+-1
+508035
+360107
+-1
+508035
+360108
+-1
+508035
+360109
+-1
+508035
+360110
+-1
+508035
+360111
+-1
+508035
+360112
+-1
+508035
+360113
+-1
+508035
+360114
+-1
+508035
+360115
+-1
+508035
+360116
+-1
+508035
+360117
+-1
+508035
+360118
+-1
+508035
+360119
+-1
+508035
+360120
+-1
+508035
+360121
+-1
+508035
+360122
+-1
+508035
+360123
+-1
+508035
+360124
+-1
+508035
+360125
+-1
+508035
+360126
+-1
+508035
+360127
+-1
+508035
+360128
+-1
+508035
+360129
+-1
+508035
+360130
+-1
+508035
+360131
+-1
+508035
+360132
+-1
+508035
+360133
+-1
+508035
+360134
+-1
+508035
+360135
+-1
+508035
+360136
+-1
+508035
+360137
+-1
+508035
+360138
+-1
+508035
+360139
+-1
+508035
+360140
+-1
+508035
+360141
+-1
+508035
+360142
+-1
+508035
+360143
+-1
+508035
+360144
+-1
+508035
+360145
+-1
+508035
+360146
+-1
+508035
+360147
+-1
+508035
+360148
+-1
+508035
+360149
+-1
+508035
+360150
+-1
+508035
+360151
+-1
+508035
+360152
+-1
+508035
+360153
+-1
+508035
+360154
+-1
+508035
+360155
+-1
+508035
+360156
+-1
+508035
+360157
+-1
+508035
+360158
+-1
+508035
+360159
+-1
+508035
+360160
+-1
+508035
+360161
+-1
+508035
+360162
+-1
+508035
+360163
+-1
+508035
+360164
+-1
+508035
+360165
+-1
+508035
+360166
+-1
+508035
+360167
+-1
+508035
+360168
+-1
+508035
+360169
+-1
+508035
+360170
+-1
+508035
+360171
+-1
+508035
+360172
+-1
+508035
+360173
+-1
+508035
+360174
+-1
+508035
+360175
+-1
+508035
+360176
+-1
+508035
+360177
+-1
+508035
+360178
+-1
+508035
+360179
+-1
+508035
+360180
+-1
+508035
+360181
+-1
+508035
+360182
+-1
+508035
+360183
+-1
+508035
+360184
+-1
+508035
+360185
+-1
+508035
+360186
+-1
+508035
+360187
+-1
+508035
+360204
+-1
+508035
+360205
+-1
+508035
+360206
+-1
+508035
+360207
+-1
+508035
+360208
+-1
+508035
+360209
+-1
+508035
+360210
+-1
+508035
+360211
+-1
+508035
+360212
+-1
+508035
+360213
+-1
+508035
+360214
+-1
+508035
+360215
+-1
+508035
+360216
+-1
+508035
+360217
+-1
+508035
+360218
+-1
+508035
+360219
+-1
+508035
+360220
+-1
+508035
+360221
+-1
+508035
+360222
+-1
+508035
+360223
+-1
+508035
+360224
+-1
+508035
+360225
+-1
+508035
+360226
+-1
+508035
+360227
+-1
+508035
+360228
+-1
+508035
+360229
+-1
+508035
+360230
+-1
+508035
+360231
+-1
+508035
+360232
+-1
+508035
+360233
+-1
+508035
+360234
+-1
+508035
+360235
+-1
+508035
+360236
+-1
+508035
+360237
+-1
+508035
+360238
+-1
+508035
+360247
+-1
+508035
+360248
+-1
+508035
+360249
+-1
+508035
+360250
+-1
+508035
+360251
+-1
+508035
+360252
+-1
+508035
+360253
+-1
+508035
+360254
+-1
+508035
+360255
+-1
+508035
+360256
+-1
+508035
+360257
+-1
+508035
+360258
+-1
+508035
+360259
+-1
+508035
+360260
+-1
+508035
+360261
+-1
+508035
+360262
+-1
+508035
+360263
+-1
+508035
+360264
+-1
+508035
+360265
+-1
+508035
+360266
+-1
+508035
+360267
+-1
+508035
+360268
+-1
+508035
+360269
+-1
+508035
+360270
+-1
+508035
+360271
+-1
+508035
+360272
+-1
+508035
+360273
+-1
+508035
+360274
+-1
+508035
+360275
+-1
+508035
+360276
+-1
+508035
+360277
+-1
+508035
+360278
+-1
+508035
+360279
+-1
+508035
+360280
+-1
+508035
+360296
+-1
+508035
+360297
+-1
+508035
+360298
+-1
+508035
+360299
+-1
+508035
+360300
+-1
+508035
+360301
+-1
+508035
+360302
+-1
+508035
+360303
+-1
+508035
+360312
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/NATUETA.GRE b/DerClouProfiData/DATA/NATUETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/NATUETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/NATUETA.GUA b/DerClouProfiData/DATA/NATUETA.GUA
new file mode 100644
index 0000000..12548b4
--- /dev/null
+++ b/DerClouProfiData/DATA/NATUETA.GUA
@@ -0,0 +1,121 @@
+ACLI
+508500
+ACTI
+1
+68
+2
+ACTI
+1
+48
+8
+ACTI
+1
+4
+2
+ACTI
+10
+15
+340162
+ACTI
+1
+18
+1
+ACTI
+1
+12
+8
+ACTI
+1
+6
+1
+ACTI
+10
+15
+340242
+ACTI
+1
+13
+8
+ACTI
+1
+17
+1
+ACTI
+1
+13
+4
+ACTI
+1
+5
+1
+ACTI
+10
+15
+340241
+ACTI
+1
+12
+8
+ACTI
+1
+3
+2
+ACTI
+1
+10
+8
+ACTI
+10
+15
+340047
+ACTI
+10
+15
+340046
+ACTI
+2
+192
+ACTI
+1
+18
+1
+ACTI
+1
+9
+4
+ACTI
+1
+2
+1
+ACTI
+1
+23
+4
+ACTI
+1
+16
+1
+ACTI
+1
+2
+4
+ACTI
+1
+5
+1
+ACTI
+10
+15
+340163
+ACTI
+1
+5
+2
+ACTI
+1
+48
+4
+ACTI
+1
+7
+2
diff --git a/DerClouProfiData/DATA/NATUETA.SPO b/DerClouProfiData/DATA/NATUETA.SPO
new file mode 100644
index 0000000..86b28fe
--- /dev/null
+++ b/DerClouProfiData/DATA/NATUETA.SPO
@@ -0,0 +1,62 @@
+9
+32
+1
+340243
+1
+60
+162
+48
+1
+340243
+1
+334
+80
+48
+1
+340243
+1
+286
+80
+32
+1
+340243
+1
+320
+216
+32
+1
+340243
+1
+289
+216
+32
+1
+340243
+1
+518
+141
+16
+1
+340243
+0
+32
+10
+340243
+2
+484
+34
+484
+75
+16
+3
+340243
+4
+166
+151
+148
+152
+130
+151
+128
+168
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/NATUETA0.DAT b/DerClouProfiData/DATA/NATUETA0.DAT
new file mode 100644
index 0000000..90d1c7a
Binary files /dev/null and b/DerClouProfiData/DATA/NATUETA0.DAT differ
diff --git a/DerClouProfiData/DATA/NATUETA0.LFD b/DerClouProfiData/DATA/NATUETA0.LFD
new file mode 100644
index 0000000..7e5d5b6
--- /dev/null
+++ b/DerClouProfiData/DATA/NATUETA0.LFD
@@ -0,0 +1 @@
+������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/NATUETA0.REL b/DerClouProfiData/DATA/NATUETA0.REL
new file mode 100644
index 0000000..aadb904
--- /dev/null
+++ b/DerClouProfiData/DATA/NATUETA0.REL
@@ -0,0 +1,946 @@
+RELF
+RTAB
+340011
+RTAB
+340010
+508033
+340263
+-1
+508033
+340262
+-1
+RTAB
+340007
+340232
+9628
+7000
+340234
+9629
+1800
+340245
+9608
+423
+340235
+9606
+600
+340236
+9606
+1230
+340238
+9606
+640
+340237
+9606
+1860
+340242
+9606
+135
+340241
+9606
+510
+340232
+9606
+1500
+340234
+9606
+200
+340233
+9606
+2900
+RTAB
+340006
+340243
+340258
+-1
+340258
+340243
+-1
+340243
+340259
+-1
+340259
+340243
+-1
+340243
+340257
+-1
+340257
+340243
+-1
+340243
+340256
+-1
+340256
+340243
+-1
+340243
+340254
+-1
+340254
+340243
+-1
+340243
+340255
+-1
+340255
+340243
+-1
+340243
+340253
+-1
+340253
+340243
+-1
+340243
+340251
+-1
+340251
+340243
+-1
+340243
+340252
+-1
+340252
+340243
+-1
+RTAB
+340005
+340228
+340243
+-1
+340243
+340228
+-1
+340228
+340232
+-1
+340232
+340228
+-1
+340228
+340234
+-1
+340234
+340228
+-1
+340228
+340233
+-1
+340233
+340228
+-1
+RTAB
+340004
+340223
+9102
+-1
+340214
+9102
+-1
+340201
+9102
+-1
+340200
+9102
+-1
+340163
+9102
+-1
+340162
+9102
+-1
+340161
+9102
+-1
+340046
+340046
+-1
+340047
+340047
+-1
+RTAB
+340003
+508033
+340261
+-1
+508033
+340260
+-1
+508033
+340259
+-1
+508033
+340258
+-1
+508033
+340257
+-1
+508033
+340256
+-1
+508033
+340255
+-1
+508033
+340254
+-1
+508033
+340253
+-1
+508033
+340252
+-1
+508033
+340251
+-1
+508033
+340250
+-1
+508033
+340249
+-1
+508033
+340248
+-1
+508033
+340247
+-1
+508033
+340246
+-1
+508033
+340245
+-1
+508033
+340244
+-1
+508033
+340243
+-1
+508033
+340227
+-1
+508033
+340226
+-1
+508033
+340225
+-1
+508033
+340224
+-1
+508033
+340223
+-1
+508033
+340222
+-1
+508033
+340221
+-1
+508033
+340220
+-1
+508033
+340219
+-1
+508033
+340218
+-1
+508033
+340217
+-1
+508033
+340216
+-1
+508033
+340215
+-1
+508033
+340214
+-1
+508033
+340213
+-1
+508033
+340212
+-1
+508033
+340211
+-1
+508033
+340210
+-1
+508033
+340209
+-1
+508033
+340208
+-1
+508033
+340207
+-1
+508033
+340206
+-1
+508033
+340205
+-1
+508033
+340204
+-1
+508033
+340203
+-1
+508033
+340202
+-1
+508033
+340201
+-1
+508033
+340200
+-1
+508033
+340199
+-1
+508033
+340198
+-1
+508033
+340197
+-1
+508033
+340196
+-1
+508033
+340195
+-1
+508033
+340194
+-1
+508033
+340193
+-1
+508033
+340192
+-1
+508033
+340191
+-1
+508033
+340190
+-1
+508033
+340189
+-1
+508033
+340188
+-1
+508033
+340187
+-1
+508033
+340186
+-1
+508033
+340185
+-1
+508033
+340184
+-1
+508033
+340183
+-1
+508033
+340182
+-1
+508033
+340181
+-1
+508033
+340180
+-1
+508033
+340179
+-1
+508033
+340178
+-1
+508033
+340177
+-1
+508033
+340176
+-1
+508033
+340175
+-1
+508033
+340174
+-1
+508033
+340173
+-1
+508033
+340172
+-1
+508033
+340171
+-1
+508033
+340170
+-1
+508033
+340169
+-1
+508033
+340168
+-1
+508033
+340167
+-1
+508033
+340166
+-1
+508033
+340165
+-1
+508033
+340164
+-1
+508033
+340163
+-1
+508033
+340162
+-1
+508033
+340161
+-1
+508033
+340160
+-1
+508033
+340159
+-1
+508033
+340158
+-1
+508033
+340157
+-1
+508033
+340156
+-1
+508033
+340155
+-1
+508033
+340154
+-1
+508033
+340153
+-1
+508033
+340152
+-1
+508033
+340151
+-1
+508033
+340150
+-1
+508033
+340149
+-1
+508033
+340148
+-1
+508033
+340147
+-1
+508033
+340146
+-1
+508033
+340145
+-1
+508033
+340144
+-1
+508033
+340143
+-1
+508033
+340142
+-1
+508033
+340141
+-1
+508033
+340140
+-1
+508033
+340139
+-1
+508033
+340138
+-1
+508033
+340137
+-1
+508033
+340136
+-1
+508033
+340135
+-1
+508033
+340134
+-1
+508033
+340133
+-1
+508033
+340132
+-1
+508033
+340131
+-1
+508033
+340130
+-1
+508033
+340129
+-1
+508033
+340128
+-1
+508033
+340127
+-1
+508033
+340126
+-1
+508033
+340125
+-1
+508033
+340124
+-1
+508033
+340123
+-1
+508033
+340122
+-1
+508033
+340121
+-1
+508033
+340120
+-1
+508033
+340119
+-1
+508033
+340118
+-1
+508033
+340117
+-1
+508033
+340116
+-1
+508033
+340115
+-1
+508033
+340114
+-1
+508033
+340113
+-1
+508033
+340112
+-1
+508033
+340111
+-1
+508033
+340110
+-1
+508033
+340109
+-1
+508033
+340108
+-1
+508033
+340107
+-1
+508033
+340032
+-1
+508033
+340031
+-1
+508033
+340030
+-1
+508033
+340029
+-1
+508033
+340028
+-1
+508033
+340027
+-1
+508033
+340026
+-1
+508033
+340025
+-1
+508033
+340024
+-1
+508033
+340023
+-1
+508033
+340022
+-1
+508033
+340021
+-1
+508033
+340020
+-1
+508033
+340019
+-1
+508033
+340018
+-1
+508033
+340017
+-1
+508033
+340016
+-1
+508033
+340015
+-1
+508033
+340014
+-1
+508033
+340013
+-1
+508033
+340012
+-1
+508033
+340011
+-1
+508033
+340010
+-1
+508033
+340009
+-1
+508033
+340008
+-1
+508033
+340007
+-1
+508033
+340006
+-1
+508033
+340005
+-1
+508033
+340004
+-1
+508033
+340003
+-1
+508033
+340002
+-1
+508033
+340001
+-1
+508033
+340033
+-1
+508033
+340034
+-1
+508033
+340035
+-1
+508033
+340036
+-1
+508033
+340037
+-1
+508033
+340038
+-1
+508033
+340039
+-1
+508033
+340040
+-1
+508033
+340041
+-1
+508033
+340042
+-1
+508033
+340043
+-1
+508033
+340044
+-1
+508033
+340045
+-1
+508033
+340046
+-1
+508033
+340047
+-1
+508033
+340048
+-1
+508033
+340049
+-1
+508033
+340050
+-1
+508033
+340051
+-1
+508033
+340052
+-1
+508033
+340053
+-1
+508033
+340054
+-1
+508033
+340055
+-1
+508033
+340056
+-1
+508033
+340057
+-1
+508033
+340058
+-1
+508033
+340059
+-1
+508033
+340060
+-1
+508033
+340061
+-1
+508033
+340062
+-1
+508033
+340063
+-1
+508033
+340064
+-1
+508033
+340065
+-1
+508033
+340066
+-1
+508033
+340067
+-1
+508033
+340068
+-1
+508033
+340069
+-1
+508033
+340070
+-1
+508033
+340071
+-1
+508033
+340072
+-1
+508033
+340073
+-1
+508033
+340074
+-1
+508033
+340075
+-1
+508033
+340076
+-1
+508033
+340077
+-1
+508033
+340078
+-1
+508033
+340079
+-1
+508033
+340080
+-1
+508033
+340081
+-1
+508033
+340082
+-1
+508033
+340083
+-1
+508033
+340084
+-1
+508033
+340085
+-1
+508033
+340086
+-1
+508033
+340087
+-1
+508033
+340088
+-1
+508033
+340089
+-1
+508033
+340090
+-1
+508033
+340091
+-1
+508033
+340092
+-1
+508033
+340093
+-1
+508033
+340094
+-1
+508033
+340095
+-1
+508033
+340096
+-1
+508033
+340097
+-1
+508033
+340098
+-1
+508033
+340099
+-1
+508033
+340100
+-1
+508033
+340101
+-1
+508033
+340102
+-1
+508033
+340103
+-1
+508033
+340104
+-1
+508033
+340105
+-1
+508033
+340106
+-1
+508033
+340228
+-1
+508033
+340229
+-1
+508033
+340230
+-1
+508033
+340231
+-1
+508033
+340232
+-1
+508033
+340233
+-1
+508033
+340234
+-1
+508033
+340235
+-1
+508033
+340236
+-1
+508033
+340237
+-1
+508033
+340238
+-1
+508033
+340239
+-1
+508033
+340240
+-1
+508033
+340241
+-1
+508033
+340242
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/OSTEETA.GRE b/DerClouProfiData/DATA/OSTEETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/OSTEETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/OSTEETA.GUA b/DerClouProfiData/DATA/OSTEETA.GUA
new file mode 100644
index 0000000..33109b7
--- /dev/null
+++ b/DerClouProfiData/DATA/OSTEETA.GUA
@@ -0,0 +1,465 @@
+ACLI
+508500
+ACTI
+1
+14
+8
+ACTI
+1
+14
+2
+ACTI
+1
+1
+8
+ACTI
+10
+15
+230214
+ACTI
+1
+3
+4
+ACTI
+1
+30
+2
+ACTI
+1
+3
+8
+ACTI
+10
+15
+230072
+ACTI
+1
+19
+2
+ACTI
+1
+2
+4
+ACTI
+1
+9
+2
+ACTI
+1
+2
+8
+ACTI
+1
+12
+4
+ACTI
+2
+15
+ACTI
+1
+25
+1
+ACTI
+2
+15
+ACTI
+1
+23
+1
+ACTI
+1
+25
+4
+ACTI
+10
+15
+230140
+ACTI
+8
+9
+230140
+ACTI
+1
+11
+4
+ACTI
+10
+15
+230181
+ACTI
+1
+14
+8
+ACTI
+1
+1
+4
+ACTI
+9
+9
+230140
+ACTI
+1
+6
+8
+ACTI
+1
+71
+2
+ACTI
+1
+2
+8
+ACTI
+1
+1
+2
+ACTI
+10
+15
+230162
+ACTI
+8
+21
+230162
+ACTI
+1
+13
+2
+ACTI
+1
+1
+1
+ACTI
+9
+21
+230162
+ACTI
+1
+27
+2
+ACTI
+1
+19
+8
+ACTI
+1
+4
+1
+ACTI
+10
+15
+230184
+ACTI
+1
+5
+2
+ACTI
+10
+15
+230185
+ACTI
+1
+23
+8
+ACTI
+1
+4
+2
+ACTI
+1
+1
+8
+ACTI
+10
+15
+230213
+ACTI
+1
+13
+2
+ACTI
+1
+15
+4
+ACTI
+1
+6
+2
+ACTI
+10
+15
+230189
+ACTI
+1
+2
+1
+ACTI
+1
+22
+4
+ACTI
+1
+1
+2
+ACTI
+10
+15
+230188
+ACTI
+1
+12
+4
+ACTI
+1
+14
+1
+ACTI
+1
+4
+4
+ACTI
+10
+15
+230175
+ACTI
+8
+9
+230175
+ACTI
+1
+13
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+230175
+ACTI
+1
+16
+4
+ACTI
+1
+9
+2
+ACTI
+8
+15
+230179
+ACTI
+10
+15
+230179
+ACTI
+9
+15
+230179
+ACTI
+1
+8
+1
+ACTI
+1
+10
+8
+ACTI
+1
+26
+1
+ACTI
+1
+7
+4
+ACTI
+8
+9
+230186
+ACTI
+2
+15
+ACTI
+1
+2
+8
+ACTI
+1
+7
+1
+ACTI
+1
+1
+4
+ACTI
+8
+9
+230187
+ACTI
+9
+9
+230187
+ACTI
+1
+2
+8
+ACTI
+1
+7
+2
+ACTI
+1
+3
+4
+ACTI
+9
+9
+230186
+ACTI
+1
+13
+8
+ACTI
+1
+25
+2
+ACTI
+1
+1
+8
+ACTI
+10
+15
+230175
+ACTI
+8
+9
+230175
+ACTI
+1
+14
+8
+ACTI
+1
+1
+4
+ACTI
+9
+9
+230175
+ACTI
+1
+8
+1
+ACTI
+1
+46
+8
+ACTI
+1
+5
+2
+ACTI
+1
+5
+8
+ACTI
+10
+15
+230213
+ACTI
+2
+90
+ACTI
+1
+6
+1
+ACTI
+1
+42
+4
+ACTI
+1
+22
+1
+ACTI
+1
+2
+4
+ACTI
+1
+6
+1
+ACTI
+10
+15
+230162
+ACTI
+8
+21
+230162
+ACTI
+1
+1
+8
+ACTI
+1
+14
+1
+ACTI
+1
+1
+2
+ACTI
+9
+21
+230162
+ACTI
+1
+75
+1
+ACTI
+1
+3
+4
+ACTI
+1
+5
+1
+ACTI
+2
+15
+ACTI
+1
+9
+8
+ACTI
+1
+14
+1
+ACTI
+1
+4
+4
+ACTI
+1
+5
+1
+ACTI
+10
+15
+230123
+ACTI
+1
+5
+8
+ACTI
+1
+5
+2
+ACTI
+1
+5
+8
diff --git a/DerClouProfiData/DATA/OSTEETA.SPO b/DerClouProfiData/DATA/OSTEETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/OSTEETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/OSTEETA0.DAT b/DerClouProfiData/DATA/OSTEETA0.DAT
new file mode 100644
index 0000000..054bc9b
Binary files /dev/null and b/DerClouProfiData/DATA/OSTEETA0.DAT differ
diff --git a/DerClouProfiData/DATA/OSTEETA0.LFD b/DerClouProfiData/DATA/OSTEETA0.LFD
new file mode 100644
index 0000000..0108a43
--- /dev/null
+++ b/DerClouProfiData/DATA/OSTEETA0.LFD
@@ -0,0 +1 @@
+����������������������������������������������������������������������������������Ǉ����������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/OSTEETA0.REL b/DerClouProfiData/DATA/OSTEETA0.REL
new file mode 100644
index 0000000..418a874
--- /dev/null
+++ b/DerClouProfiData/DATA/OSTEETA0.REL
@@ -0,0 +1,844 @@
+RELF
+RTAB
+230011
+RTAB
+230010
+508022
+230222
+-1
+508022
+230218
+-1
+508022
+230217
+-1
+508022
+230216
+-1
+RTAB
+230007
+230188
+9600
+400
+230189
+9600
+600
+230190
+9600
+300
+230191
+9600
+1500
+230192
+9600
+900
+230193
+9600
+900
+230194
+9600
+1100
+230195
+9600
+200
+230202
+9605
+3000
+230203
+9605
+2600
+230205
+9605
+5000
+230187
+9602
+200
+230186
+9602
+100
+230184
+9607
+1000
+230185
+9607
+200
+230182
+9607
+700
+230183
+9623
+2000
+RTAB
+230006
+RTAB
+230005
+230205
+230180
+-1
+230180
+230205
+-1
+230202
+230180
+-1
+230180
+230202
+-1
+230203
+230180
+-1
+230180
+230203
+-1
+230184
+230180
+-1
+230180
+230184
+-1
+230185
+230180
+-1
+230180
+230185
+-1
+230133
+230179
+-1
+230179
+230133
+-1
+230188
+230179
+-1
+230179
+230188
+-1
+230189
+230179
+-1
+230179
+230189
+-1
+230213
+230179
+-1
+230179
+230213
+-1
+230215
+230179
+-1
+230179
+230215
+-1
+230214
+230179
+-1
+230179
+230214
+-1
+230212
+230179
+-1
+230179
+230212
+-1
+230182
+230179
+-1
+230179
+230182
+-1
+230183
+230179
+-1
+230179
+230183
+-1
+230181
+230179
+-1
+230179
+230181
+-1
+230191
+230179
+-1
+230179
+230191
+-1
+230192
+230179
+-1
+230179
+230192
+-1
+RTAB
+230004
+230175
+9102
+-1
+230140
+9102
+-1
+230133
+230133
+-1
+230123
+9102
+-1
+230072
+230072
+-1
+RTAB
+230003
+508022
+230178
+-1
+508022
+230177
+-1
+508022
+230176
+-1
+508022
+230175
+-1
+508022
+230174
+-1
+508022
+230173
+-1
+508022
+230172
+-1
+508022
+230171
+-1
+508022
+230170
+-1
+508022
+230169
+-1
+508022
+230168
+-1
+508022
+230167
+-1
+508022
+230166
+-1
+508022
+230165
+-1
+508022
+230164
+-1
+508022
+230163
+-1
+508022
+230162
+-1
+508022
+230161
+-1
+508022
+230160
+-1
+508022
+230159
+-1
+508022
+230158
+-1
+508022
+230157
+-1
+508022
+230156
+-1
+508022
+230155
+-1
+508022
+230154
+-1
+508022
+230153
+-1
+508022
+230152
+-1
+508022
+230151
+-1
+508022
+230150
+-1
+508022
+230149
+-1
+508022
+230148
+-1
+508022
+230147
+-1
+508022
+230146
+-1
+508022
+230145
+-1
+508022
+230144
+-1
+508022
+230143
+-1
+508022
+230142
+-1
+508022
+230141
+-1
+508022
+230140
+-1
+508022
+230139
+-1
+508022
+230138
+-1
+508022
+230137
+-1
+508022
+230136
+-1
+508022
+230135
+-1
+508022
+230134
+-1
+508022
+230133
+-1
+508022
+230132
+-1
+508022
+230131
+-1
+508022
+230130
+-1
+508022
+230129
+-1
+508022
+230128
+-1
+508022
+230127
+-1
+508022
+230126
+-1
+508022
+230125
+-1
+508022
+230124
+-1
+508022
+230123
+-1
+508022
+230122
+-1
+508022
+230121
+-1
+508022
+230120
+-1
+508022
+230119
+-1
+508022
+230118
+-1
+508022
+230117
+-1
+508022
+230116
+-1
+508022
+230115
+-1
+508022
+230114
+-1
+508022
+230113
+-1
+508022
+230112
+-1
+508022
+230111
+-1
+508022
+230110
+-1
+508022
+230109
+-1
+508022
+230108
+-1
+508022
+230107
+-1
+508022
+230106
+-1
+508022
+230105
+-1
+508022
+230104
+-1
+508022
+230103
+-1
+508022
+230102
+-1
+508022
+230101
+-1
+508022
+230100
+-1
+508022
+230099
+-1
+508022
+230098
+-1
+508022
+230097
+-1
+508022
+230096
+-1
+508022
+230095
+-1
+508022
+230094
+-1
+508022
+230093
+-1
+508022
+230092
+-1
+508022
+230091
+-1
+508022
+230090
+-1
+508022
+230089
+-1
+508022
+230088
+-1
+508022
+230087
+-1
+508022
+230086
+-1
+508022
+230085
+-1
+508022
+230084
+-1
+508022
+230083
+-1
+508022
+230082
+-1
+508022
+230081
+-1
+508022
+230080
+-1
+508022
+230079
+-1
+508022
+230078
+-1
+508022
+230077
+-1
+508022
+230076
+-1
+508022
+230075
+-1
+508022
+230074
+-1
+508022
+230073
+-1
+508022
+230072
+-1
+508022
+230071
+-1
+508022
+230070
+-1
+508022
+230069
+-1
+508022
+230068
+-1
+508022
+230067
+-1
+508022
+230066
+-1
+508022
+230065
+-1
+508022
+230064
+-1
+508022
+230063
+-1
+508022
+230062
+-1
+508022
+230061
+-1
+508022
+230060
+-1
+508022
+230059
+-1
+508022
+230058
+-1
+508022
+230057
+-1
+508022
+230056
+-1
+508022
+230055
+-1
+508022
+230054
+-1
+508022
+230053
+-1
+508022
+230052
+-1
+508022
+230051
+-1
+508022
+230050
+-1
+508022
+230049
+-1
+508022
+230048
+-1
+508022
+230047
+-1
+508022
+230046
+-1
+508022
+230045
+-1
+508022
+230044
+-1
+508022
+230043
+-1
+508022
+230042
+-1
+508022
+230041
+-1
+508022
+230040
+-1
+508022
+230039
+-1
+508022
+230038
+-1
+508022
+230037
+-1
+508022
+230036
+-1
+508022
+230035
+-1
+508022
+230034
+-1
+508022
+230033
+-1
+508022
+230032
+-1
+508022
+230031
+-1
+508022
+230030
+-1
+508022
+230029
+-1
+508022
+230028
+-1
+508022
+230027
+-1
+508022
+230026
+-1
+508022
+230025
+-1
+508022
+230024
+-1
+508022
+230023
+-1
+508022
+230022
+-1
+508022
+230021
+-1
+508022
+230020
+-1
+508022
+230019
+-1
+508022
+230018
+-1
+508022
+230017
+-1
+508022
+230016
+-1
+508022
+230015
+-1
+508022
+230014
+-1
+508022
+230013
+-1
+508022
+230012
+-1
+508022
+230011
+-1
+508022
+230010
+-1
+508022
+230009
+-1
+508022
+230008
+-1
+508022
+230007
+-1
+508022
+230006
+-1
+508022
+230005
+-1
+508022
+230004
+-1
+508022
+230003
+-1
+508022
+230002
+-1
+508022
+230001
+-1
+508022
+230179
+-1
+508022
+230180
+-1
+508022
+230181
+-1
+508022
+230182
+-1
+508022
+230183
+-1
+508022
+230184
+-1
+508022
+230185
+-1
+508022
+230186
+-1
+508022
+230187
+-1
+508022
+230188
+-1
+508022
+230189
+-1
+508022
+230190
+-1
+508022
+230191
+-1
+508022
+230192
+-1
+508022
+230193
+-1
+508022
+230194
+-1
+508022
+230195
+-1
+508022
+230196
+-1
+508022
+230197
+-1
+508022
+230198
+-1
+508022
+230199
+-1
+508022
+230200
+-1
+508022
+230202
+-1
+508022
+230203
+-1
+508022
+230205
+-1
+508022
+230206
+-1
+508022
+230207
+-1
+508022
+230208
+-1
+508022
+230209
+-1
+508022
+230210
+-1
+508022
+230211
+-1
+508022
+230212
+-1
+508022
+230213
+-1
+508022
+230214
+-1
+508022
+230215
+-1
+508022
+230219
+-1
+508022
+230220
+-1
+508022
+230221
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/SENIETA.GRE b/DerClouProfiData/DATA/SENIETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/SENIETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/SENIETA.SPO b/DerClouProfiData/DATA/SENIETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/SENIETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/SENIETA0.DAT b/DerClouProfiData/DATA/SENIETA0.DAT
new file mode 100644
index 0000000..6a19899
Binary files /dev/null and b/DerClouProfiData/DATA/SENIETA0.DAT differ
diff --git a/DerClouProfiData/DATA/SENIETA0.LFD b/DerClouProfiData/DATA/SENIETA0.LFD
new file mode 100644
index 0000000..f3a8cd3
--- /dev/null
+++ b/DerClouProfiData/DATA/SENIETA0.LFD
@@ -0,0 +1 @@
+���������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/SENIETA0.REL b/DerClouProfiData/DATA/SENIETA0.REL
new file mode 100644
index 0000000..bcb9ac1
--- /dev/null
+++ b/DerClouProfiData/DATA/SENIETA0.REL
@@ -0,0 +1,881 @@
+RELF
+RTAB
+120011
+RTAB
+120008
+RTAB
+120009
+RTAB
+120010
+508011
+120259
+-1
+508011
+120260
+-1
+RTAB
+120007
+120187
+9617
+20
+120180
+9616
+729
+120258
+9604
+70
+120194
+9602
+100
+120190
+9608
+40
+120187
+9608
+100
+120184
+9608
+10
+120250
+9602
+311
+120253
+9608
+14
+120179
+9602
+105
+120181
+9608
+30
+120252
+9600
+50
+RTAB
+120006
+RTAB
+120005
+RTAB
+120004
+120173
+9102
+-1
+120160
+9102
+-1
+120149
+9102
+-1
+120132
+9102
+-1
+120131
+9102
+-1
+120084
+9102
+-1
+120198
+120198
+-1
+120204
+120204
+-1
+120229
+120229
+-1
+RTAB
+120003
+508011
+120267
+-1
+508011
+120266
+-1
+508011
+120265
+-1
+508011
+120264
+-1
+508011
+120263
+-1
+508011
+120262
+-1
+508011
+120261
+-1
+508011
+120258
+-1
+508011
+120176
+-1
+508011
+120175
+-1
+508011
+120174
+-1
+508011
+120173
+-1
+508011
+120172
+-1
+508011
+120171
+-1
+508011
+120170
+-1
+508011
+120169
+-1
+508011
+120168
+-1
+508011
+120167
+-1
+508011
+120166
+-1
+508011
+120165
+-1
+508011
+120164
+-1
+508011
+120163
+-1
+508011
+120162
+-1
+508011
+120161
+-1
+508011
+120160
+-1
+508011
+120159
+-1
+508011
+120158
+-1
+508011
+120157
+-1
+508011
+120156
+-1
+508011
+120151
+-1
+508011
+120150
+-1
+508011
+120149
+-1
+508011
+120148
+-1
+508011
+120147
+-1
+508011
+120146
+-1
+508011
+120145
+-1
+508011
+120144
+-1
+508011
+120143
+-1
+508011
+120142
+-1
+508011
+120141
+-1
+508011
+120140
+-1
+508011
+120139
+-1
+508011
+120138
+-1
+508011
+120137
+-1
+508011
+120136
+-1
+508011
+120135
+-1
+508011
+120134
+-1
+508011
+120133
+-1
+508011
+120132
+-1
+508011
+120131
+-1
+508011
+120130
+-1
+508011
+120129
+-1
+508011
+120128
+-1
+508011
+120127
+-1
+508011
+120126
+-1
+508011
+120125
+-1
+508011
+120124
+-1
+508011
+120123
+-1
+508011
+120122
+-1
+508011
+120121
+-1
+508011
+120120
+-1
+508011
+120119
+-1
+508011
+120118
+-1
+508011
+120117
+-1
+508011
+120116
+-1
+508011
+120115
+-1
+508011
+120114
+-1
+508011
+120113
+-1
+508011
+120112
+-1
+508011
+120111
+-1
+508011
+120110
+-1
+508011
+120109
+-1
+508011
+120108
+-1
+508011
+120107
+-1
+508011
+120106
+-1
+508011
+120105
+-1
+508011
+120104
+-1
+508011
+120103
+-1
+508011
+120102
+-1
+508011
+120101
+-1
+508011
+120100
+-1
+508011
+120099
+-1
+508011
+120098
+-1
+508011
+120097
+-1
+508011
+120096
+-1
+508011
+120095
+-1
+508011
+120094
+-1
+508011
+120093
+-1
+508011
+120092
+-1
+508011
+120091
+-1
+508011
+120090
+-1
+508011
+120089
+-1
+508011
+120088
+-1
+508011
+120087
+-1
+508011
+120086
+-1
+508011
+120085
+-1
+508011
+120084
+-1
+508011
+120083
+-1
+508011
+120082
+-1
+508011
+120081
+-1
+508011
+120080
+-1
+508011
+120079
+-1
+508011
+120078
+-1
+508011
+120077
+-1
+508011
+120076
+-1
+508011
+120075
+-1
+508011
+120074
+-1
+508011
+120073
+-1
+508011
+120072
+-1
+508011
+120071
+-1
+508011
+120070
+-1
+508011
+120069
+-1
+508011
+120068
+-1
+508011
+120067
+-1
+508011
+120045
+-1
+508011
+120044
+-1
+508011
+120043
+-1
+508011
+120042
+-1
+508011
+120041
+-1
+508011
+120040
+-1
+508011
+120039
+-1
+508011
+120038
+-1
+508011
+120037
+-1
+508011
+120036
+-1
+508011
+120035
+-1
+508011
+120034
+-1
+508011
+120033
+-1
+508011
+120032
+-1
+508011
+120031
+-1
+508011
+120030
+-1
+508011
+120029
+-1
+508011
+120028
+-1
+508011
+120027
+-1
+508011
+120026
+-1
+508011
+120025
+-1
+508011
+120024
+-1
+508011
+120023
+-1
+508011
+120022
+-1
+508011
+120021
+-1
+508011
+120020
+-1
+508011
+120019
+-1
+508011
+120018
+-1
+508011
+120017
+-1
+508011
+120016
+-1
+508011
+120015
+-1
+508011
+120014
+-1
+508011
+120013
+-1
+508011
+120012
+-1
+508011
+120011
+-1
+508011
+120010
+-1
+508011
+120009
+-1
+508011
+120008
+-1
+508011
+120007
+-1
+508011
+120006
+-1
+508011
+120005
+-1
+508011
+120004
+-1
+508011
+120003
+-1
+508011
+120002
+-1
+508011
+120001
+-1
+508011
+120046
+-1
+508011
+120047
+-1
+508011
+120048
+-1
+508011
+120049
+-1
+508011
+120050
+-1
+508011
+120051
+-1
+508011
+120052
+-1
+508011
+120053
+-1
+508011
+120054
+-1
+508011
+120055
+-1
+508011
+120056
+-1
+508011
+120057
+-1
+508011
+120058
+-1
+508011
+120059
+-1
+508011
+120060
+-1
+508011
+120061
+-1
+508011
+120062
+-1
+508011
+120063
+-1
+508011
+120064
+-1
+508011
+120065
+-1
+508011
+120066
+-1
+508011
+120152
+-1
+508011
+120153
+-1
+508011
+120154
+-1
+508011
+120155
+-1
+508011
+120177
+-1
+508011
+120178
+-1
+508011
+120179
+-1
+508011
+120180
+-1
+508011
+120181
+-1
+508011
+120182
+-1
+508011
+120183
+-1
+508011
+120184
+-1
+508011
+120185
+-1
+508011
+120186
+-1
+508011
+120187
+-1
+508011
+120188
+-1
+508011
+120189
+-1
+508011
+120190
+-1
+508011
+120191
+-1
+508011
+120192
+-1
+508011
+120193
+-1
+508011
+120194
+-1
+508011
+120195
+-1
+508011
+120196
+-1
+508011
+120197
+-1
+508011
+120198
+-1
+508011
+120199
+-1
+508011
+120200
+-1
+508011
+120201
+-1
+508011
+120202
+-1
+508011
+120203
+-1
+508011
+120204
+-1
+508011
+120205
+-1
+508011
+120206
+-1
+508011
+120207
+-1
+508011
+120208
+-1
+508011
+120209
+-1
+508011
+120210
+-1
+508011
+120211
+-1
+508011
+120212
+-1
+508011
+120213
+-1
+508011
+120214
+-1
+508011
+120215
+-1
+508011
+120216
+-1
+508011
+120217
+-1
+508011
+120218
+-1
+508011
+120219
+-1
+508011
+120220
+-1
+508011
+120221
+-1
+508011
+120222
+-1
+508011
+120223
+-1
+508011
+120224
+-1
+508011
+120225
+-1
+508011
+120226
+-1
+508011
+120227
+-1
+508011
+120228
+-1
+508011
+120229
+-1
+508011
+120230
+-1
+508011
+120231
+-1
+508011
+120232
+-1
+508011
+120233
+-1
+508011
+120234
+-1
+508011
+120235
+-1
+508011
+120236
+-1
+508011
+120237
+-1
+508011
+120238
+-1
+508011
+120239
+-1
+508011
+120240
+-1
+508011
+120241
+-1
+508011
+120242
+-1
+508011
+120243
+-1
+508011
+120244
+-1
+508011
+120245
+-1
+508011
+120246
+-1
+508011
+120247
+-1
+508011
+120248
+-1
+508011
+120249
+-1
+508011
+120250
+-1
+508011
+120251
+-1
+508011
+120252
+-1
+508011
+120253
+-1
+508011
+120255
+-1
+508011
+120256
+-1
+508011
+120257
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/SOTHETA.GRE b/DerClouProfiData/DATA/SOTHETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/SOTHETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/SOTHETA.GUA b/DerClouProfiData/DATA/SOTHETA.GUA
new file mode 100644
index 0000000..e55cc43
--- /dev/null
+++ b/DerClouProfiData/DATA/SOTHETA.GUA
@@ -0,0 +1,545 @@
+ACLI
+508500
+ACTI
+1
+56
+8
+ACTI
+1
+6
+2
+ACTI
+1
+6
+8
+ACTI
+10
+15
+290062
+ACTI
+1
+13
+4
+ACTI
+1
+11
+2
+ACTI
+10
+15
+290137
+ACTI
+1
+7
+1
+ACTI
+1
+55
+4
+ACTI
+1
+7
+2
+ACTI
+10
+15
+290125
+ACTI
+1
+14
+1
+ACTI
+1
+39
+8
+ACTI
+1
+6
+1
+ACTI
+10
+15
+290111
+ACTI
+8
+9
+290111
+ACTI
+1
+14
+1
+ACTI
+1
+1
+2
+ACTI
+9
+9
+290111
+ACTI
+1
+5
+1
+ACTI
+1
+25
+8
+ACTI
+1
+28
+1
+ACTI
+1
+1
+8
+ACTI
+2
+630
+ACTI
+1
+32
+1
+ACTI
+1
+71
+4
+ACTI
+1
+8
+2
+ACTI
+1
+4
+4
+ACTI
+10
+15
+290166
+ACTI
+1
+21
+2
+ACTI
+1
+1
+8
+ACTI
+1
+1
+4
+ACTI
+10
+15
+290167
+ACTI
+1
+1
+8
+ACTI
+1
+19
+2
+ACTI
+1
+1
+4
+ACTI
+10
+15
+290168
+ACTI
+1
+6
+8
+ACTI
+10
+15
+290211
+ACTI
+1
+13
+2
+ACTI
+1
+42
+8
+ACTI
+1
+5
+2
+ACTI
+10
+15
+290111
+ACTI
+8
+9
+290111
+ACTI
+1
+1
+8
+ACTI
+1
+14
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+290111
+ACTI
+1
+7
+2
+ACTI
+1
+53
+4
+ACTI
+1
+7
+2
+ACTI
+8
+24
+290207
+ACTI
+10
+15
+290207
+ACTI
+9
+24
+290207
+ACTI
+1
+12
+1
+ACTI
+1
+20
+8
+ACLI
+508501
+ACTI
+1
+9
+2
+ACTI
+8
+24
+290209
+ACTI
+10
+15
+290209
+ACTI
+9
+24
+290209
+ACTI
+1
+3
+1
+ACTI
+1
+3
+4
+ACTI
+10
+15
+290144
+ACTI
+8
+9
+290144
+ACTI
+1
+12
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+290144
+ACTI
+1
+13
+4
+ACTI
+8
+24
+290208
+ACTI
+10
+15
+290208
+ACTI
+9
+24
+290208
+ACTI
+1
+24
+2
+ACTI
+1
+2
+8
+ACTI
+1
+9
+2
+ACTI
+1
+2
+4
+ACTI
+8
+9
+290202
+ACTI
+9
+9
+290202
+ACTI
+1
+10
+2
+ACTI
+1
+8
+8
+ACTI
+1
+2
+2
+ACTI
+1
+5
+8
+ACTI
+10
+15
+290150
+ACTI
+8
+9
+290150
+ACTI
+1
+14
+8
+ACTI
+1
+1
+4
+ACTI
+9
+9
+290150
+ACTI
+1
+21
+1
+ACTI
+1
+1
+4
+ACTI
+10
+15
+290210
+ACTI
+1
+3
+8
+ACTI
+1
+16
+2
+ACTI
+1
+2
+8
+ACTI
+10
+15
+290204
+ACTI
+1
+14
+2
+ACTI
+10
+15
+290217
+ACTI
+1
+46
+8
+ACTI
+1
+32
+1
+ACTI
+1
+1
+8
+ACTI
+2
+60
+ACTI
+1
+30
+1
+ACTI
+1
+13
+4
+ACTI
+1
+5
+1
+ACTI
+10
+15
+290137
+ACTI
+1
+3
+2
+ACTI
+1
+1
+4
+ACTI
+8
+9
+290206
+ACTI
+9
+9
+290206
+ACTI
+1
+5
+2
+ACTI
+1
+1
+4
+ACTI
+1
+28
+2
+ACTI
+1
+5
+4
+ACTI
+1
+17
+2
+ACTI
+1
+2
+8
+ACTI
+2
+129
+ACTI
+1
+10
+4
+ACTI
+1
+13
+1
+ACTI
+1
+22
+4
+ACTI
+1
+17
+2
+ACTI
+1
+3
+4
+ACTI
+10
+15
+290150
+ACTI
+8
+9
+290150
+ACTI
+1
+1
+2
+ACTI
+1
+12
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+290150
+ACTI
+1
+34
+1
+ACTI
+1
+2
+4
+ACTI
+1
+11
+1
+ACTI
+1
+2
+8
+ACTI
+10
+15
+290144
+ACTI
+8
+9
+290144
+ACTI
+1
+13
+8
+ACTI
+1
+1
+4
+ACTI
+9
+9
+290144
+ACTI
+1
+6
+1
+ACTI
+1
+2
+8
diff --git a/DerClouProfiData/DATA/SOTHETA.SPO b/DerClouProfiData/DATA/SOTHETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/SOTHETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/SOTHETA0.DAT b/DerClouProfiData/DATA/SOTHETA0.DAT
new file mode 100644
index 0000000..2204d1b
Binary files /dev/null and b/DerClouProfiData/DATA/SOTHETA0.DAT differ
diff --git a/DerClouProfiData/DATA/SOTHETA0.LFD b/DerClouProfiData/DATA/SOTHETA0.LFD
new file mode 100644
index 0000000..bb2cc42
--- /dev/null
+++ b/DerClouProfiData/DATA/SOTHETA0.LFD
@@ -0,0 +1 @@
+����������������������������������������������������������������������������������������������������������������������������												�������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/SOTHETA0.REL b/DerClouProfiData/DATA/SOTHETA0.REL
new file mode 100644
index 0000000..74e91e7
--- /dev/null
+++ b/DerClouProfiData/DATA/SOTHETA0.REL
@@ -0,0 +1,884 @@
+RELF
+RTAB
+290011
+RTAB
+290008
+RTAB
+290009
+RTAB
+290010
+508028
+290220
+-1
+508028
+290221
+-1
+508028
+290222
+-1
+508028
+290227
+-1
+508028
+290228
+-1
+508028
+290229
+-1
+RTAB
+290007
+290210
+9600
+221
+290212
+9609
+30
+290213
+9609
+90
+290214
+9609
+60
+290216
+9605
+1000
+290217
+9600
+300
+290166
+9607
+400
+290167
+9607
+200
+290168
+9606
+100
+290168
+9626
+1100
+290211
+9602
+90
+290202
+9606
+390
+290203
+9602
+190
+290204
+9607
+640
+290205
+9607
+100
+290205
+9603
+600
+290205
+9621
+700
+290206
+9603
+900
+RTAB
+290006
+RTAB
+290005
+290208
+290217
+-1
+290217
+290208
+-1
+290208
+290210
+-1
+290210
+290208
+-1
+290208
+290216
+-1
+290216
+290208
+-1
+290208
+290206
+-1
+290206
+290208
+-1
+290208
+290205
+-1
+290205
+290208
+-1
+290208
+290204
+-1
+290204
+290208
+-1
+290208
+290202
+-1
+290202
+290208
+-1
+290209
+290197
+-1
+290197
+290209
+-1
+290209
+290198
+-1
+290198
+290209
+-1
+290209
+290199
+-1
+290199
+290209
+-1
+290209
+290200
+-1
+290200
+290209
+-1
+290209
+290201
+-1
+290201
+290209
+-1
+290209
+290196
+-1
+290196
+290209
+-1
+290209
+290195
+-1
+290195
+290209
+-1
+290209
+290194
+-1
+290194
+290209
+-1
+290209
+290111
+-1
+290111
+290209
+-1
+290207
+290166
+-1
+290166
+290207
+-1
+290207
+290167
+-1
+290167
+290207
+-1
+290207
+290168
+-1
+290168
+290207
+-1
+RTAB
+290004
+290125
+9102
+-1
+290111
+9102
+-1
+290062
+9102
+-1
+290137
+9102
+-1
+290144
+9102
+-1
+290150
+9102
+-1
+RTAB
+290003
+508028
+290226
+-1
+508028
+290225
+-1
+508028
+290224
+-1
+508028
+290223
+-1
+508028
+290210
+-1
+508028
+290209
+-1
+508028
+290208
+-1
+508028
+290207
+-1
+508028
+290206
+-1
+508028
+290205
+-1
+508028
+290204
+-1
+508028
+290203
+-1
+508028
+290202
+-1
+508028
+290201
+-1
+508028
+290200
+-1
+508028
+290199
+-1
+508028
+290198
+-1
+508028
+290197
+-1
+508028
+290196
+-1
+508028
+290195
+-1
+508028
+290194
+-1
+508028
+290172
+-1
+508028
+290171
+-1
+508028
+290170
+-1
+508028
+290169
+-1
+508028
+290168
+-1
+508028
+290167
+-1
+508028
+290166
+-1
+508028
+290134
+-1
+508028
+290133
+-1
+508028
+290132
+-1
+508028
+290131
+-1
+508028
+290130
+-1
+508028
+290129
+-1
+508028
+290128
+-1
+508028
+290127
+-1
+508028
+290126
+-1
+508028
+290125
+-1
+508028
+290124
+-1
+508028
+290123
+-1
+508028
+290122
+-1
+508028
+290121
+-1
+508028
+290120
+-1
+508028
+290119
+-1
+508028
+290118
+-1
+508028
+290117
+-1
+508028
+290116
+-1
+508028
+290115
+-1
+508028
+290114
+-1
+508028
+290113
+-1
+508028
+290112
+-1
+508028
+290111
+-1
+508028
+290110
+-1
+508028
+290109
+-1
+508028
+290108
+-1
+508028
+290107
+-1
+508028
+290106
+-1
+508028
+290105
+-1
+508028
+290104
+-1
+508028
+290103
+-1
+508028
+290102
+-1
+508028
+290101
+-1
+508028
+290100
+-1
+508028
+290099
+-1
+508028
+290098
+-1
+508028
+290097
+-1
+508028
+290096
+-1
+508028
+290095
+-1
+508028
+290094
+-1
+508028
+290093
+-1
+508028
+290092
+-1
+508028
+290091
+-1
+508028
+290090
+-1
+508028
+290089
+-1
+508028
+290088
+-1
+508028
+290087
+-1
+508028
+290086
+-1
+508028
+290085
+-1
+508028
+290084
+-1
+508028
+290083
+-1
+508028
+290082
+-1
+508028
+290081
+-1
+508028
+290080
+-1
+508028
+290079
+-1
+508028
+290078
+-1
+508028
+290077
+-1
+508028
+290076
+-1
+508028
+290075
+-1
+508028
+290074
+-1
+508028
+290073
+-1
+508028
+290072
+-1
+508028
+290071
+-1
+508028
+290070
+-1
+508028
+290069
+-1
+508028
+290068
+-1
+508028
+290067
+-1
+508028
+290066
+-1
+508028
+290065
+-1
+508028
+290064
+-1
+508028
+290063
+-1
+508028
+290062
+-1
+508028
+290061
+-1
+508028
+290060
+-1
+508028
+290059
+-1
+508028
+290058
+-1
+508028
+290057
+-1
+508028
+290056
+-1
+508028
+290055
+-1
+508028
+290054
+-1
+508028
+290053
+-1
+508028
+290052
+-1
+508028
+290051
+-1
+508028
+290050
+-1
+508028
+290049
+-1
+508028
+290048
+-1
+508028
+290001
+-1
+508028
+290002
+-1
+508028
+290003
+-1
+508028
+290004
+-1
+508028
+290005
+-1
+508028
+290006
+-1
+508028
+290007
+-1
+508028
+290008
+-1
+508028
+290009
+-1
+508028
+290010
+-1
+508028
+290011
+-1
+508028
+290012
+-1
+508028
+290013
+-1
+508028
+290014
+-1
+508028
+290015
+-1
+508028
+290016
+-1
+508028
+290017
+-1
+508028
+290018
+-1
+508028
+290019
+-1
+508028
+290020
+-1
+508028
+290021
+-1
+508028
+290022
+-1
+508028
+290023
+-1
+508028
+290024
+-1
+508028
+290025
+-1
+508028
+290026
+-1
+508028
+290027
+-1
+508028
+290028
+-1
+508028
+290029
+-1
+508028
+290030
+-1
+508028
+290031
+-1
+508028
+290032
+-1
+508028
+290033
+-1
+508028
+290034
+-1
+508028
+290035
+-1
+508028
+290036
+-1
+508028
+290037
+-1
+508028
+290038
+-1
+508028
+290039
+-1
+508028
+290040
+-1
+508028
+290041
+-1
+508028
+290042
+-1
+508028
+290043
+-1
+508028
+290044
+-1
+508028
+290045
+-1
+508028
+290046
+-1
+508028
+290047
+-1
+508028
+290135
+-1
+508028
+290136
+-1
+508028
+290137
+-1
+508028
+290138
+-1
+508028
+290139
+-1
+508028
+290140
+-1
+508028
+290141
+-1
+508028
+290142
+-1
+508028
+290143
+-1
+508028
+290144
+-1
+508028
+290145
+-1
+508028
+290146
+-1
+508028
+290147
+-1
+508028
+290148
+-1
+508028
+290149
+-1
+508028
+290150
+-1
+508028
+290151
+-1
+508028
+290152
+-1
+508028
+290153
+-1
+508028
+290154
+-1
+508028
+290155
+-1
+508028
+290156
+-1
+508028
+290157
+-1
+508028
+290158
+-1
+508028
+290159
+-1
+508028
+290160
+-1
+508028
+290161
+-1
+508028
+290162
+-1
+508028
+290163
+-1
+508028
+290164
+-1
+508028
+290165
+-1
+508028
+290173
+-1
+508028
+290174
+-1
+508028
+290175
+-1
+508028
+290176
+-1
+508028
+290177
+-1
+508028
+290178
+-1
+508028
+290181
+-1
+508028
+290182
+-1
+508028
+290183
+-1
+508028
+290184
+-1
+508028
+290185
+-1
+508028
+290186
+-1
+508028
+290188
+-1
+508028
+290189
+-1
+508028
+290190
+-1
+508028
+290191
+-1
+508028
+290192
+-1
+508028
+290193
+-1
+508028
+290211
+-1
+508028
+290212
+-1
+508028
+290213
+-1
+508028
+290214
+-1
+508028
+290215
+-1
+508028
+290216
+-1
+508028
+290217
+-1
+508028
+290218
+-1
+508028
+290219
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TATEETA.GRE b/DerClouProfiData/DATA/TATEETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/TATEETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TATEETA.GUA b/DerClouProfiData/DATA/TATEETA.GUA
new file mode 100644
index 0000000..60fec6a
--- /dev/null
+++ b/DerClouProfiData/DATA/TATEETA.GUA
@@ -0,0 +1,105 @@
+ACLI
+508500
+ACTI
+2
+60
+ACTI
+1
+4
+8
+ACTI
+10
+15
+620180
+ACTI
+8
+21
+620180
+ACTI
+1
+15
+8
+ACTI
+1
+2
+4
+ACTI
+9
+21
+620180
+ACTI
+1
+23
+1
+ACTI
+1
+3
+8
+ACTI
+1
+124
+1
+ACTI
+1
+78
+4
+ACTI
+2
+30
+ACTI
+1
+78
+8
+ACTI
+1
+275
+2
+ACTI
+2
+33
+ACTI
+1
+127
+1
+ACTI
+1
+2
+8
+ACTI
+2
+51
+ACTI
+1
+1
+1
+ACTI
+1
+7
+4
+ACTI
+10
+15
+620180
+ACTI
+8
+21
+620180
+ACTI
+1
+13
+4
+ACTI
+1
+1
+8
+ACTI
+9
+21
+620180
+ACTI
+1
+3
+4
+ACTI
+2
+6
diff --git a/DerClouProfiData/DATA/TATEETA.SPO b/DerClouProfiData/DATA/TATEETA.SPO
new file mode 100644
index 0000000..348bed9
--- /dev/null
+++ b/DerClouProfiData/DATA/TATEETA.SPO
@@ -0,0 +1,74 @@
+10
+32
+1
+486257
+1
+433
+37
+32
+1
+486257
+1
+490
+38
+32
+1
+486257
+1
+85
+37
+32
+1
+486257
+1
+154
+38
+48
+2
+486257
+4
+248
+179
+288
+180
+325
+181
+283
+179
+48
+5
+620257
+4
+238
+178
+284
+177
+331
+177
+285
+175
+32
+1
+620257
+1
+436
+37
+32
+1
+620257
+1
+492
+37
+32
+1
+620257
+1
+156
+36
+32
+1
+620257
+1
+89
+36
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TATEETA0.DAT b/DerClouProfiData/DATA/TATEETA0.DAT
new file mode 100644
index 0000000..93645e2
Binary files /dev/null and b/DerClouProfiData/DATA/TATEETA0.DAT differ
diff --git a/DerClouProfiData/DATA/TATEETA0.LFD b/DerClouProfiData/DATA/TATEETA0.LFD
new file mode 100644
index 0000000..e9ac7e9
Binary files /dev/null and b/DerClouProfiData/DATA/TATEETA0.LFD differ
diff --git a/DerClouProfiData/DATA/TATEETA0.REL b/DerClouProfiData/DATA/TATEETA0.REL
new file mode 100644
index 0000000..3d921c1
--- /dev/null
+++ b/DerClouProfiData/DATA/TATEETA0.REL
@@ -0,0 +1,968 @@
+RELF
+RTAB
+620010
+508111
+620264
+-1
+508111
+620263
+-1
+508111
+620262
+-1
+508111
+620261
+-1
+508111
+620260
+-1
+RTAB
+620007
+620217
+9605
+700
+620218
+9605
+900
+620219
+9605
+160
+620220
+9605
+100
+620221
+9605
+150
+620222
+9605
+100
+620223
+9605
+1700
+620224
+9605
+1900
+620225
+9600
+1000
+620226
+9600
+1200
+620227
+9600
+1000
+620228
+9600
+1100
+620229
+9600
+2000
+620230
+9600
+3000
+620231
+9600
+150
+620232
+9600
+150
+620233
+9600
+100
+620234
+9600
+200
+620235
+9600
+200
+620236
+9602
+160
+620237
+9602
+190
+RTAB
+620006
+620257
+620256
+-1
+620256
+620257
+-1
+620257
+620255
+-1
+620255
+620257
+-1
+620257
+620253
+-1
+620253
+620257
+-1
+620257
+620254
+-1
+620254
+620257
+-1
+620257
+620252
+-1
+620252
+620257
+-1
+620257
+620251
+-1
+620251
+620257
+-1
+RTAB
+620005
+620187
+620258
+-1
+620258
+620187
+-1
+620159
+620258
+-1
+620258
+620159
+-1
+620158
+620258
+-1
+620258
+620158
+-1
+620120
+620258
+-1
+620258
+620120
+-1
+620123
+620258
+-1
+620258
+620123
+-1
+620206
+620259
+-1
+620259
+620206
+-1
+RTAB
+620004
+620206
+9102
+-1
+620187
+9102
+-1
+620180
+620180
+-1
+620159
+9102
+-1
+620158
+9102
+-1
+620120
+9102
+-1
+620121
+9102
+-1
+620122
+9102
+-1
+620123
+9102
+-1
+RTAB
+620003
+508111
+620208
+-1
+508111
+620207
+-1
+508111
+620206
+-1
+508111
+620205
+-1
+508111
+620204
+-1
+508111
+620203
+-1
+508111
+620202
+-1
+508111
+620201
+-1
+508111
+620200
+-1
+508111
+620199
+-1
+508111
+620198
+-1
+508111
+620197
+-1
+508111
+620196
+-1
+508111
+620195
+-1
+508111
+620194
+-1
+508111
+620193
+-1
+508111
+620192
+-1
+508111
+620191
+-1
+508111
+620190
+-1
+508111
+620189
+-1
+508111
+620188
+-1
+508111
+620187
+-1
+508111
+620186
+-1
+508111
+620185
+-1
+508111
+620184
+-1
+508111
+620183
+-1
+508111
+620182
+-1
+508111
+620181
+-1
+508111
+620180
+-1
+508111
+620179
+-1
+508111
+620178
+-1
+508111
+620177
+-1
+508111
+620176
+-1
+508111
+620175
+-1
+508111
+620174
+-1
+508111
+620173
+-1
+508111
+620172
+-1
+508111
+620171
+-1
+508111
+620170
+-1
+508111
+620169
+-1
+508111
+620168
+-1
+508111
+620167
+-1
+508111
+620166
+-1
+508111
+620165
+-1
+508111
+620164
+-1
+508111
+620163
+-1
+508111
+620162
+-1
+508111
+620161
+-1
+508111
+620160
+-1
+508111
+620159
+-1
+508111
+620158
+-1
+508111
+620157
+-1
+508111
+620156
+-1
+508111
+620155
+-1
+508111
+620154
+-1
+508111
+620153
+-1
+508111
+620152
+-1
+508111
+620151
+-1
+508111
+620150
+-1
+508111
+620149
+-1
+508111
+620148
+-1
+508111
+620097
+-1
+508111
+620096
+-1
+508111
+620095
+-1
+508111
+620094
+-1
+508111
+620093
+-1
+508111
+620092
+-1
+508111
+620091
+-1
+508111
+620090
+-1
+508111
+620089
+-1
+508111
+620088
+-1
+508111
+620087
+-1
+508111
+620086
+-1
+508111
+620085
+-1
+508111
+620084
+-1
+508111
+620083
+-1
+508111
+620082
+-1
+508111
+620081
+-1
+508111
+620080
+-1
+508111
+620079
+-1
+508111
+620078
+-1
+508111
+620077
+-1
+508111
+620076
+-1
+508111
+620075
+-1
+508111
+620074
+-1
+508111
+620073
+-1
+508111
+620072
+-1
+508111
+620071
+-1
+508111
+620070
+-1
+508111
+620069
+-1
+508111
+620068
+-1
+508111
+620067
+-1
+508111
+620066
+-1
+508111
+620065
+-1
+508111
+620064
+-1
+508111
+620063
+-1
+508111
+620062
+-1
+508111
+620061
+-1
+508111
+620060
+-1
+508111
+620059
+-1
+508111
+620058
+-1
+508111
+620057
+-1
+508111
+620056
+-1
+508111
+620055
+-1
+508111
+620054
+-1
+508111
+620053
+-1
+508111
+620052
+-1
+508111
+620051
+-1
+508111
+620050
+-1
+508111
+620049
+-1
+508111
+620048
+-1
+508111
+620047
+-1
+508111
+620046
+-1
+508111
+620045
+-1
+508111
+620044
+-1
+508111
+620043
+-1
+508111
+620042
+-1
+508111
+620041
+-1
+508111
+620040
+-1
+508111
+620039
+-1
+508111
+620038
+-1
+508111
+620037
+-1
+508111
+620036
+-1
+508111
+620035
+-1
+508111
+620034
+-1
+508111
+620033
+-1
+508111
+620032
+-1
+508111
+620031
+-1
+508111
+620030
+-1
+508111
+620029
+-1
+508111
+620028
+-1
+508111
+620027
+-1
+508111
+620026
+-1
+508111
+620025
+-1
+508111
+620024
+-1
+508111
+620023
+-1
+508111
+620022
+-1
+508111
+620021
+-1
+508111
+620020
+-1
+508111
+620019
+-1
+508111
+620018
+-1
+508111
+620017
+-1
+508111
+620016
+-1
+508111
+620015
+-1
+508111
+620014
+-1
+508111
+620013
+-1
+508111
+620012
+-1
+508111
+620011
+-1
+508111
+620010
+-1
+508111
+620009
+-1
+508111
+620008
+-1
+508111
+620007
+-1
+508111
+620006
+-1
+508111
+620005
+-1
+508111
+620004
+-1
+508111
+620003
+-1
+508111
+620002
+-1
+508111
+620001
+-1
+508111
+620098
+-1
+508111
+620099
+-1
+508111
+620100
+-1
+508111
+620101
+-1
+508111
+620102
+-1
+508111
+620103
+-1
+508111
+620104
+-1
+508111
+620105
+-1
+508111
+620106
+-1
+508111
+620107
+-1
+508111
+620108
+-1
+508111
+620109
+-1
+508111
+620110
+-1
+508111
+620111
+-1
+508111
+620112
+-1
+508111
+620113
+-1
+508111
+620114
+-1
+508111
+620115
+-1
+508111
+620116
+-1
+508111
+620117
+-1
+508111
+620118
+-1
+508111
+620119
+-1
+508111
+620120
+-1
+508111
+620121
+-1
+508111
+620122
+-1
+508111
+620123
+-1
+508111
+620124
+-1
+508111
+620125
+-1
+508111
+620126
+-1
+508111
+620127
+-1
+508111
+620128
+-1
+508111
+620129
+-1
+508111
+620130
+-1
+508111
+620131
+-1
+508111
+620132
+-1
+508111
+620133
+-1
+508111
+620134
+-1
+508111
+620135
+-1
+508111
+620136
+-1
+508111
+620137
+-1
+508111
+620138
+-1
+508111
+620139
+-1
+508111
+620140
+-1
+508111
+620141
+-1
+508111
+620142
+-1
+508111
+620143
+-1
+508111
+620144
+-1
+508111
+620145
+-1
+508111
+620146
+-1
+508111
+620147
+-1
+508111
+620209
+-1
+508111
+620210
+-1
+508111
+620211
+-1
+508111
+620212
+-1
+508111
+620213
+-1
+508111
+620214
+-1
+508111
+620215
+-1
+508111
+620216
+-1
+508111
+620217
+-1
+508111
+620218
+-1
+508111
+620219
+-1
+508111
+620220
+-1
+508111
+620221
+-1
+508111
+620222
+-1
+508111
+620223
+-1
+508111
+620224
+-1
+508111
+620225
+-1
+508111
+620226
+-1
+508111
+620227
+-1
+508111
+620228
+-1
+508111
+620229
+-1
+508111
+620230
+-1
+508111
+620231
+-1
+508111
+620232
+-1
+508111
+620233
+-1
+508111
+620234
+-1
+508111
+620235
+-1
+508111
+620236
+-1
+508111
+620237
+-1
+508111
+620238
+-1
+508111
+620239
+-1
+508111
+620240
+-1
+508111
+620241
+-1
+508111
+620242
+-1
+508111
+620243
+-1
+508111
+620244
+-1
+508111
+620245
+-1
+508111
+620246
+-1
+508111
+620247
+-1
+508111
+620248
+-1
+508111
+620249
+-1
+508111
+620250
+-1
+508111
+620251
+-1
+508111
+620252
+-1
+508111
+620253
+-1
+508111
+620254
+-1
+508111
+620255
+-1
+508111
+620256
+-1
+508111
+620257
+-1
+508111
+620258
+-1
+508111
+620259
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TCBUILD.DAT b/DerClouProfiData/DATA/TCBUILD.DAT
new file mode 100644
index 0000000..cfc316d
Binary files /dev/null and b/DerClouProfiData/DATA/TCBUILD.DAT differ
diff --git a/DerClouProfiData/DATA/TCBUILD.REL b/DerClouProfiData/DATA/TCBUILD.REL
new file mode 100644
index 0000000..7f5dab7
--- /dev/null
+++ b/DerClouProfiData/DATA/TCBUILD.REL
@@ -0,0 +1,305 @@
+RELF
+RTAB
+500003
+509108
+508502
+508116
+509108
+508501
+508115
+509108
+508500
+508115
+509107
+508502
+508114
+509107
+508501
+508113
+509107
+508500
+508113
+509106
+508500
+508111
+509105
+508500
+508109
+509104
+508500
+508107
+509103
+508500
+508105
+509102
+508500
+508103
+509018
+508501
+508041
+509018
+508500
+508041
+509017
+508501
+508039
+509017
+508500
+508039
+509016
+508500
+508037
+509015
+508500
+508035
+509014
+508500
+508033
+509013
+508502
+508032
+509013
+508500
+508031
+509012
+508501
+508028
+509012
+508500
+508028
+509011
+508500
+508025
+509010
+508500
+508022
+509009
+508500
+508019
+509008
+508500
+508016
+509007
+508502
+508015
+509007
+508501
+508014
+509007
+508500
+508014
+509006
+508500
+508013
+509019
+508502
+508045
+509019
+508501
+508044
+509019
+508500
+508044
+RTAB
+500002
+509108
+508116
+-1
+509108
+508115
+-1
+509107
+508114
+-1
+509107
+508113
+-1
+509106
+508111
+-1
+509105
+508109
+-1
+509104
+508107
+-1
+509103
+508105
+-1
+509102
+508103
+-1
+509101
+508102
+-1
+509101
+508101
+-1
+509019
+508046
+-1
+509019
+508045
+-1
+509019
+508044
+-1
+509018
+508043
+-1
+509018
+508042
+-1
+509018
+508041
+-1
+509017
+508039
+-1
+509016
+508037
+-1
+509015
+508035
+-1
+509014
+508033
+-1
+509013
+508032
+-1
+509013
+508031
+-1
+509012
+508028
+-1
+509011
+508025
+-1
+509010
+508022
+-1
+509009
+508019
+-1
+509008
+508016
+-1
+509007
+508015
+-1
+509007
+508014
+-1
+509006
+508013
+-1
+509005
+508011
+-1
+509004
+508010
+-1
+509004
+508009
+-1
+509003
+508007
+-1
+509002
+508005
+-1
+509001
+508003
+-1
+509000
+508001
+-1
+RTAB
+500001
+509108
+508115
+-1
+509107
+508113
+-1
+509106
+508111
+-1
+509105
+508109
+-1
+509104
+508107
+-1
+509103
+508105
+-1
+509102
+508103
+-1
+509101
+508101
+-1
+509019
+508044
+-1
+509018
+508041
+-1
+509017
+508039
+-1
+509016
+508037
+-1
+509015
+508035
+-1
+509014
+508033
+-1
+509013
+508031
+-1
+509012
+508028
+-1
+509011
+508025
+-1
+509010
+508022
+-1
+509009
+508019
+-1
+509008
+508016
+-1
+509007
+508014
+-1
+509006
+508013
+-1
+509005
+508011
+-1
+509004
+508009
+-1
+509003
+508007
+-1
+509002
+508005
+-1
+509001
+508003
+-1
+509000
+508001
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TCMAIN.DAT b/DerClouProfiData/DATA/TCMAIN.DAT
new file mode 100644
index 0000000..cad0c6b
Binary files /dev/null and b/DerClouProfiData/DATA/TCMAIN.DAT differ
diff --git a/DerClouProfiData/DATA/TCMAIN.REL b/DerClouProfiData/DATA/TCMAIN.REL
new file mode 100644
index 0000000..482fa84
--- /dev/null
+++ b/DerClouProfiData/DATA/TCMAIN.REL
@@ -0,0 +1,1791 @@
+RELF
+RTAB
+20
+9832
+100
+-1
+RTAB
+19
+RTAB
+18
+RTAB
+17
+RTAB
+16
+RTAB
+15
+9523
+176
+30
+9522
+175
+30
+9520
+177
+20
+9517
+176
+180
+9516
+176
+110
+9515
+176
+90
+9513
+174
+50
+9512
+174
+60
+9511
+176
+60
+9509
+179
+40
+9505
+176
+40
+9525
+179
+10
+9501
+179
+10
+9502
+174
+100
+9520
+9519
+-1
+9520
+9518
+-1
+9512
+9519
+-1
+9511
+9519
+-1
+9505
+9519
+-1
+9516
+9521
+-1
+9515
+9521
+-1
+RTAB
+14
+9304
+9501
+4
+9301
+9501
+2
+9288
+9501
+2
+9276
+9501
+6
+9277
+9501
+5
+9306
+9501
+6
+9273
+9501
+4
+9224
+9501
+4
+9214
+9501
+6
+9260
+9501
+3
+9213
+9501
+8
+9212
+9501
+11
+9210
+9501
+8
+9211
+9501
+5
+9234
+9501
+2
+9207
+9501
+11
+9205
+9501
+5
+9228
+9501
+3
+9204
+9501
+3
+9243
+9501
+4
+9240
+9501
+3
+9203
+9501
+3
+9262
+9501
+3
+9202
+9501
+7
+9201
+9501
+3
+9250
+9501
+3
+9254
+9501
+300
+RTAB
+13
+9304
+9510
+65
+9301
+9510
+25
+9288
+9510
+55
+9276
+9510
+60
+9277
+9510
+65
+9277
+9503
+85
+9213
+9520
+20
+9212
+9520
+10
+9210
+9520
+20
+9211
+9520
+20
+9266
+9528
+10
+9234
+9504
+190
+9234
+9503
+200
+9234
+9524
+10
+9234
+9501
+200
+9207
+9517
+10
+9207
+9522
+253
+9207
+9505
+160
+9207
+9516
+130
+9207
+9515
+120
+9205
+9517
+10
+9205
+9522
+253
+9205
+9505
+160
+9205
+9516
+120
+9205
+9515
+110
+9228
+9511
+170
+9228
+9522
+253
+9228
+9505
+140
+9228
+9516
+110
+9228
+9515
+100
+9204
+9514
+42
+9204
+9510
+72
+9243
+9504
+175
+9243
+9510
+70
+9243
+9524
+10
+9243
+9503
+175
+9243
+9501
+170
+9240
+9510
+55
+9203
+9510
+72
+9262
+9510
+70
+9262
+9503
+80
+9202
+9523
+230
+9202
+9512
+150
+9202
+9513
+10
+9202
+9522
+253
+9272
+9509
+30
+9272
+9525
+160
+9272
+9501
+100
+9201
+9502
+10
+9201
+9504
+150
+9201
+9510
+50
+9201
+9525
+70
+9201
+9501
+70
+9250
+9502
+10
+9250
+9510
+50
+9254
+9510
+70
+RTAB
+12
+9304
+9510
+40
+9301
+9510
+25
+9288
+9510
+30
+9276
+9510
+35
+9277
+9510
+32
+9277
+9503
+30
+9213
+9520
+30
+9212
+9520
+30
+9210
+9520
+30
+9211
+9520
+30
+9266
+9528
+1
+9234
+9504
+90
+9234
+9503
+90
+9234
+9524
+20
+9234
+9501
+210
+9207
+9517
+10
+9207
+9522
+30
+9207
+9505
+50
+9207
+9516
+60
+9207
+9515
+70
+9205
+9517
+10
+9205
+9522
+30
+9205
+9505
+55
+9205
+9516
+60
+9205
+9515
+65
+9228
+9511
+110
+9228
+9522
+30
+9228
+9505
+50
+9228
+9516
+55
+9228
+9515
+60
+9204
+9514
+20
+9204
+9510
+40
+9243
+9504
+70
+9243
+9510
+40
+9243
+9524
+20
+9243
+9503
+76
+9243
+9501
+180
+9240
+9510
+30
+9203
+9510
+40
+9262
+9510
+36
+9262
+9503
+40
+9202
+9523
+130
+9202
+9512
+40
+9202
+9513
+20
+9202
+9522
+10
+9272
+9509
+100
+9272
+9525
+190
+9272
+9501
+210
+9201
+9502
+10
+9201
+9504
+40
+9201
+9510
+30
+9201
+9525
+120
+9201
+9501
+150
+9250
+9502
+10
+9250
+9510
+30
+9254
+9510
+85
+RTAB
+11
+9510
+9304
+11
+9304
+9510
+11
+9510
+9301
+5
+9301
+9510
+5
+9510
+9288
+9
+9288
+9510
+9
+9510
+9276
+28
+9276
+9510
+28
+9510
+9277
+8
+9277
+9510
+8
+9503
+9277
+18
+9277
+9503
+18
+9520
+9213
+25
+9213
+9520
+25
+9520
+9212
+114
+9212
+9520
+114
+9520
+9210
+74
+9210
+9520
+74
+9520
+9211
+37
+9211
+9520
+37
+9528
+9266
+2
+9266
+9528
+2
+9504
+9234
+14
+9234
+9504
+14
+9503
+9234
+13
+9234
+9503
+13
+9524
+9234
+50
+9234
+9524
+50
+9501
+9234
+15
+9234
+9501
+15
+9517
+9207
+540
+9207
+9517
+540
+9522
+9207
+75
+9207
+9522
+75
+9505
+9207
+500
+9207
+9505
+500
+9516
+9207
+960
+9207
+9516
+960
+9515
+9207
+1350
+9207
+9515
+1350
+9522
+9205
+55
+9205
+9522
+55
+9505
+9205
+380
+9205
+9505
+380
+9516
+9205
+660
+9205
+9516
+660
+9515
+9205
+1050
+9205
+9515
+1050
+9517
+9205
+480
+9205
+9517
+480
+9511
+9228
+750
+9228
+9511
+750
+9522
+9228
+50
+9228
+9522
+50
+9505
+9228
+240
+9228
+9505
+240
+9516
+9228
+270
+9228
+9516
+270
+9515
+9228
+600
+9228
+9515
+600
+9514
+9204
+6
+9204
+9514
+6
+9510
+9204
+8
+9204
+9510
+8
+9504
+9243
+8
+9243
+9504
+8
+9510
+9243
+7
+9243
+9510
+7
+9524
+9243
+30
+9243
+9524
+30
+9503
+9243
+7
+9243
+9503
+7
+9501
+9243
+9
+9243
+9501
+9
+9510
+9240
+6
+9240
+9510
+6
+9510
+9203
+8
+9203
+9510
+8
+9510
+9262
+10
+9262
+9510
+10
+9503
+9262
+15
+9262
+9503
+15
+9523
+9202
+22
+9202
+9523
+22
+9512
+9202
+30
+9202
+9512
+30
+9513
+9202
+75
+9202
+9513
+75
+9522
+9202
+20
+9202
+9522
+20
+9509
+9272
+25
+9272
+9509
+25
+9525
+9272
+10
+9272
+9525
+10
+9501
+9272
+15
+9272
+9501
+15
+9502
+9201
+18
+9201
+9502
+18
+9504
+9201
+30
+9201
+9504
+30
+9510
+9201
+15
+9201
+9510
+15
+9525
+9201
+30
+9201
+9525
+30
+9501
+9201
+45
+9201
+9501
+45
+9502
+9250
+20
+9250
+9502
+20
+9510
+9250
+15
+9250
+9510
+15
+9510
+9254
+60
+9254
+9510
+60
+RTAB
+10
+30
+9854
+-1
+30
+9851
+-1
+30
+9843
+-1
+30
+9824
+-1
+30
+9807
+-1
+30
+9821
+-1
+30
+9847
+-1
+30
+9823
+-1
+30
+9822
+-1
+30
+9820
+-1
+30
+9825
+-1
+30
+9814
+-1
+30
+9844
+-1
+30
+9845
+-1
+30
+9827
+-1
+30
+9836
+-1
+30
+9840
+-1
+30
+9848
+-1
+RTAB
+9
+RTAB
+8
+9801
+9801
+-1
+RTAB
+7
+9801
+9801
+-1
+RTAB
+6
+9858
+152
+-1
+9858
+143
+-1
+9858
+95
+-1
+9857
+143
+-1
+9857
+99
+-1
+9856
+151
+-1
+9856
+99
+-1
+9855
+143
+-1
+9855
+147
+-1
+9855
+99
+-1
+9854
+147
+-1
+9854
+143
+-1
+9853
+99
+-1
+9853
+97
+-1
+9853
+116
+-1
+9852
+97
+-1
+9852
+151
+-1
+9852
+143
+-1
+9851
+151
+-1
+9851
+143
+-1
+9850
+95
+-1
+9850
+99
+-1
+9850
+152
+-1
+9849
+99
+-1
+9849
+147
+-1
+9849
+95
+-1
+9817
+114
+-1
+9817
+97
+-1
+9817
+116
+-1
+9848
+99
+-1
+9848
+117
+-1
+9848
+116
+-1
+9844
+95
+-1
+9844
+127
+-1
+9844
+125
+-1
+9842
+99
+-1
+9842
+143
+-1
+9842
+117
+-1
+9841
+99
+-1
+9841
+108
+-1
+9841
+96
+-1
+9840
+143
+-1
+9840
+99
+-1
+9839
+151
+-1
+9839
+143
+-1
+9839
+135
+-1
+9838
+143
+-1
+9838
+102
+-1
+9838
+151
+-1
+9837
+151
+-1
+9837
+99
+-1
+9837
+102
+-1
+9836
+143
+-1
+9836
+142
+-1
+9836
+99
+-1
+9835
+143
+-1
+9835
+145
+-1
+9835
+144
+-1
+9834
+155
+-1
+9834
+151
+-1
+9834
+146
+-1
+9833
+99
+-1
+9833
+151
+-1
+9833
+95
+-1
+9831
+99
+-1
+9831
+116
+-1
+9831
+151
+-1
+9830
+143
+-1
+9830
+151
+-1
+9829
+143
+-1
+9829
+151
+-1
+9828
+95
+-1
+9828
+99
+-1
+9827
+143
+-1
+9827
+151
+-1
+9826
+143
+-1
+9826
+133
+-1
+9826
+131
+-1
+9825
+95
+-1
+9825
+97
+-1
+9824
+143
+-1
+9824
+101
+-1
+9847
+102
+-1
+9847
+143
+-1
+9847
+99
+-1
+9823
+143
+-1
+9823
+102
+-1
+9822
+99
+-1
+9822
+102
+-1
+9821
+152
+-1
+9821
+99
+-1
+9821
+143
+-1
+9820
+155
+-1
+9820
+146
+-1
+9819
+143
+-1
+9819
+108
+-1
+9819
+106
+-1
+9818
+143
+-1
+9818
+99
+-1
+9818
+97
+-1
+9816
+99
+-1
+9816
+97
+-1
+9816
+95
+-1
+9815
+99
+-1
+9815
+151
+-1
+9815
+101
+-1
+9814
+97
+-1
+9814
+146
+-1
+9814
+147
+-1
+9813
+151
+-1
+9813
+143
+-1
+9811
+143
+-1
+9811
+101
+-1
+9811
+104
+-1
+9810
+99
+-1
+9810
+151
+-1
+9808
+143
+-1
+9808
+97
+-1
+9808
+102
+-1
+9804
+99
+-1
+9804
+151
+-1
+9804
+101
+-1
+9812
+151
+-1
+9812
+99
+-1
+9809
+99
+-1
+9809
+151
+-1
+9809
+108
+-1
+9807
+97
+-1
+9807
+102
+-1
+9806
+99
+-1
+9806
+102
+-1
+9806
+151
+-1
+9832
+99
+-1
+9832
+145
+-1
+9832
+96
+-1
+9802
+99
+-1
+9802
+145
+-1
+9802
+144
+-1
+RTAB
+5
+RTAB
+4
+9801
+9525
+-1
+9801
+9501
+-1
+9824
+9518
+-1
+9824
+9510
+-1
+9824
+9506
+-1
+9824
+9504
+-1
+9824
+9503
+-1
+9832
+26
+-1
+9832
+20
+-1
+9832
+6
+-1
+9832
+19
+-1
+9832
+17
+-1
+9832
+14
+-1
+9832
+11
+-1
+9832
+1
+-1
+113
+9817
+-1
+9817
+113
+-1
+102
+9823
+-1
+9823
+102
+-1
+102
+9822
+-1
+9822
+102
+-1
+143
+9843
+-1
+9843
+143
+-1
+148
+9825
+-1
+9825
+148
+-1
+101
+9824
+-1
+9824
+101
+-1
+143
+9821
+-1
+9821
+143
+-1
+142
+9844
+-1
+9844
+142
+-1
+99
+9845
+-1
+9845
+99
+-1
+146
+9820
+-1
+9820
+146
+-1
+147
+9814
+-1
+9814
+147
+-1
+100
+9832
+-1
+9832
+100
+-1
+9857
+174
+150
+9857
+176
+130
+9857
+173
+160
+9856
+175
+180
+9856
+173
+200
+9855
+177
+80
+9855
+178
+100
+9855
+179
+150
+9855
+173
+130
+9854
+174
+200
+9854
+176
+180
+9853
+173
+150
+9851
+178
+240
+9851
+173
+100
+9850
+176
+130
+9850
+178
+200
+9850
+179
+210
+9850
+173
+195
+9849
+174
+120
+9849
+177
+30
+9849
+179
+180
+9803
+178
+255
+9803
+179
+250
+9848
+175
+100
+9848
+176
+120
+9848
+178
+100
+9845
+176
+110
+9845
+178
+90
+9843
+176
+60
+9843
+178
+50
+9842
+178
+200
+9841
+176
+80
+9841
+174
+200
+9841
+177
+180
+9840
+173
+110
+9839
+174
+170
+9839
+178
+130
+9839
+179
+170
+9838
+178
+170
+9838
+174
+200
+9838
+179
+160
+9837
+177
+230
+9837
+173
+200
+9836
+176
+40
+9836
+177
+70
+9836
+174
+90
+9835
+179
+140
+9835
+173
+230
+9834
+178
+70
+9834
+174
+130
+9834
+176
+220
+9833
+174
+170
+9833
+178
+120
+9833
+179
+120
+9831
+179
+90
+9831
+173
+160
+9830
+176
+120
+9830
+177
+130
+9830
+174
+120
+9830
+178
+100
+9829
+177
+80
+9829
+173
+180
+9828
+174
+140
+9828
+176
+100
+9827
+175
+100
+9827
+176
+30
+9826
+176
+60
+9826
+175
+220
+9819
+179
+110
+9819
+173
+130
+9818
+174
+130
+9818
+177
+170
+9818
+173
+140
+9816
+174
+40
+9816
+179
+170
+9816
+173
+220
+9815
+174
+190
+9815
+177
+150
+9814
+173
+20
+9814
+178
+240
+9813
+179
+200
+9813
+173
+130
+9812
+177
+140
+9812
+179
+230
+9811
+175
+180
+9811
+179
+130
+9811
+173
+70
+9810
+174
+90
+9810
+177
+220
+9810
+178
+60
+9809
+174
+210
+9809
+179
+150
+9809
+173
+100
+9809
+178
+190
+9808
+176
+200
+9808
+177
+90
+9806
+174
+30
+9806
+177
+170
+9805
+175
+140
+9805
+174
+230
+9805
+176
+240
+9805
+178
+200
+9804
+179
+170
+9804
+175
+220
+9804
+178
+150
+9832
+173
+210
+9802
+174
+20
+9802
+179
+50
+9802
+173
+160
+9801
+174
+40
+9801
+176
+20
+9801
+177
+30
+9801
+178
+50
+RTAB
+3
+RTAB
+2
+RTAB
+1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TCSTORY.PC b/DerClouProfiData/DATA/TCSTORY.PC
new file mode 100644
index 0000000..0208949
Binary files /dev/null and b/DerClouProfiData/DATA/TCSTORY.PC differ
diff --git a/DerClouProfiData/DATA/TOBAETA.GRE b/DerClouProfiData/DATA/TOBAETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/TOBAETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOBAETA.SPO b/DerClouProfiData/DATA/TOBAETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/TOBAETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOBAETA0.DAT b/DerClouProfiData/DATA/TOBAETA0.DAT
new file mode 100644
index 0000000..8a3fd41
Binary files /dev/null and b/DerClouProfiData/DATA/TOBAETA0.DAT differ
diff --git a/DerClouProfiData/DATA/TOBAETA0.GRE b/DerClouProfiData/DATA/TOBAETA0.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/TOBAETA0.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOBAETA0.LFD b/DerClouProfiData/DATA/TOBAETA0.LFD
new file mode 100644
index 0000000..fb6fcd8
--- /dev/null
+++ b/DerClouProfiData/DATA/TOBAETA0.LFD
@@ -0,0 +1 @@
+������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOBAETA0.REL b/DerClouProfiData/DATA/TOBAETA0.REL
new file mode 100644
index 0000000..26e7c56
--- /dev/null
+++ b/DerClouProfiData/DATA/TOBAETA0.REL
@@ -0,0 +1,145 @@
+RELF
+RTAB
+20011
+RTAB
+20010
+RTAB
+20007
+20036
+9602
+90
+20039
+9602
+190
+20036
+9610
+100
+RTAB
+20006
+RTAB
+20005
+RTAB
+20004
+20032
+9102
+-1
+RTAB
+20003
+508001
+20039
+-1
+508001
+20038
+-1
+508001
+20037
+-1
+508001
+20036
+-1
+508001
+20035
+-1
+508001
+20034
+-1
+508001
+20033
+-1
+508001
+20032
+-1
+508001
+20031
+-1
+508001
+20030
+-1
+508001
+20029
+-1
+508001
+20028
+-1
+508001
+20027
+-1
+508001
+20026
+-1
+508001
+20025
+-1
+508001
+20024
+-1
+508001
+20023
+-1
+508001
+20022
+-1
+508001
+20021
+-1
+508001
+20020
+-1
+508001
+20019
+-1
+508001
+20018
+-1
+508001
+20017
+-1
+508001
+20016
+-1
+508001
+20015
+-1
+508001
+20014
+-1
+508001
+20013
+-1
+508001
+20012
+-1
+508001
+20011
+-1
+508001
+20010
+-1
+508001
+20009
+-1
+508001
+20008
+-1
+508001
+20007
+-1
+508001
+20006
+-1
+508001
+20005
+-1
+508001
+20004
+-1
+508001
+20003
+-1
+508001
+20002
+-1
+508001
+20001
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOWEETA.GRE b/DerClouProfiData/DATA/TOWEETA.GRE
new file mode 100644
index 0000000..d7f299b
--- /dev/null
+++ b/DerClouProfiData/DATA/TOWEETA.GRE
@@ -0,0 +1,26 @@
+RELF
+RTAB
+1
+509018
+420155
+380
+RTAB
+2
+420155
+420155
+380
+RTAB
+3
+450175
+450175
+508042
+430178
+430178
+508041
+430179
+430179
+508043
+420144
+420144
+508042
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOWEETA.GUA b/DerClouProfiData/DATA/TOWEETA.GUA
new file mode 100644
index 0000000..8e93b28
--- /dev/null
+++ b/DerClouProfiData/DATA/TOWEETA.GUA
@@ -0,0 +1,363 @@
+ACLI
+508500
+ACTI
+1
+24
+4
+ACTI
+1
+4
+1
+ACTI
+1
+4
+4
+ACTI
+10
+15
+420155
+ACTI
+1
+4
+8
+ACTI
+1
+19
+2
+ACTI
+10
+15
+420134
+ACTI
+8
+9
+420134
+ACTI
+1
+14
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+420134
+ACTI
+1
+82
+2
+ACTI
+1
+25
+8
+ACTI
+2
+405
+ACTI
+1
+19
+8
+ACTI
+10
+15
+420133
+ACTI
+8
+9
+420133
+ACTI
+1
+13
+8
+ACTI
+1
+1
+4
+ACTI
+9
+9
+420133
+ACTI
+1
+59
+1
+ACTI
+1
+10
+8
+ACTI
+2
+180
+ACTI
+1
+55
+1
+ACTI
+1
+8
+4
+ACTI
+1
+1
+1
+ACTI
+1
+3
+4
+ACTI
+10
+15
+420132
+ACTI
+8
+9
+420132
+ACTI
+1
+13
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+420132
+ACTI
+1
+10
+4
+ACTI
+1
+17
+1
+ACTI
+10
+15
+420097
+ACTI
+1
+10
+2
+ACTI
+1
+5
+4
+ACTI
+1
+12
+2
+ACTI
+1
+4
+4
+ACLI
+508501
+ACTI
+1
+6
+8
+ACTI
+1
+11
+2
+ACTI
+8
+24
+420146
+ACTI
+10
+15
+420146
+ACTI
+9
+24
+420146
+ACTI
+1
+20
+1
+ACTI
+1
+5
+8
+ACTI
+1
+10
+1
+ACTI
+10
+15
+420099
+ACTI
+8
+9
+420099
+ACTI
+1
+15
+1
+ACTI
+1
+3
+2
+ACTI
+9
+9
+420099
+ACTI
+1
+5
+4
+ACTI
+8
+24
+420145
+ACTI
+10
+15
+420145
+ACTI
+9
+24
+420145
+ACTI
+1
+28
+1
+ACTI
+1
+6
+8
+ACTI
+2
+180
+ACTI
+2
+3
+ACTI
+1
+24
+1
+ACTI
+10
+15
+420098
+ACTI
+1
+52
+2
+ACTI
+10
+15
+420099
+ACTI
+1
+1
+4
+ACTI
+1
+52
+1
+ACTI
+10
+15
+420098
+ACTI
+8
+9
+420098
+ACTI
+1
+1
+8
+ACTI
+1
+15
+1
+ACTI
+1
+3
+2
+ACTI
+9
+9
+420098
+ACTI
+1
+20
+1
+ACTI
+1
+7
+8
+ACTI
+10
+15
+420132
+ACTI
+8
+9
+420132
+ACTI
+1
+22
+8
+ACTI
+2
+225
+ACTI
+1
+23
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+420132
+ACTI
+1
+44
+4
+ACTI
+1
+20
+2
+ACTI
+10
+15
+420134
+ACTI
+8
+9
+420134
+ACTI
+1
+1
+8
+ACTI
+1
+13
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+420134
+ACTI
+1
+83
+2
+ACTI
+1
+24
+8
diff --git a/DerClouProfiData/DATA/TOWEETA.SPO b/DerClouProfiData/DATA/TOWEETA.SPO
new file mode 100644
index 0000000..7793870
--- /dev/null
+++ b/DerClouProfiData/DATA/TOWEETA.SPO
@@ -0,0 +1,108 @@
+15
+32
+4
+450165
+3
+160
+180
+192
+180
+224
+180
+32
+5
+450164
+3
+70
+112
+70
+144
+70
+176
+32
+1
+450166
+1
+229
+24
+48
+1
+450165
+1
+273
+41
+48
+1
+420146
+1
+303
+31
+32
+1
+420125
+1
+227
+103
+32
+1
+420125
+1
+109
+114
+16
+6
+420125
+3
+47
+117
+47
+101
+47
+85
+48
+1
+430191
+1
+71
+153
+48
+1
+430193
+1
+177
+16
+32
+1
+430193
+1
+215
+56
+48
+1
+430189
+1
+160
+144
+32
+1
+430189
+1
+198
+184
+32
+4
+430190
+3
+319
+104
+287
+104
+255
+104
+32
+1
+430192
+1
+105
+50
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOWEETA0.DAT b/DerClouProfiData/DATA/TOWEETA0.DAT
new file mode 100644
index 0000000..14c7c7c
Binary files /dev/null and b/DerClouProfiData/DATA/TOWEETA0.DAT differ
diff --git a/DerClouProfiData/DATA/TOWEETA0.LFD b/DerClouProfiData/DATA/TOWEETA0.LFD
new file mode 100644
index 0000000..ab527b0
--- /dev/null
+++ b/DerClouProfiData/DATA/TOWEETA0.LFD
@@ -0,0 +1 @@
+�����������������������������������Ņ����������������������������������Ņ��������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOWEETA0.REL b/DerClouProfiData/DATA/TOWEETA0.REL
new file mode 100644
index 0000000..3ef0bbd
--- /dev/null
+++ b/DerClouProfiData/DATA/TOWEETA0.REL
@@ -0,0 +1,545 @@
+RELF
+RTAB
+420010
+508041
+420163
+-1
+508041
+420162
+-1
+508041
+420161
+-1
+508041
+420160
+-1
+RTAB
+420007
+RTAB
+420006
+420159
+420146
+-1
+420146
+420159
+-1
+420157
+420145
+-1
+420145
+420157
+-1
+420156
+420145
+-1
+420145
+420156
+-1
+420158
+420145
+-1
+420145
+420158
+-1
+RTAB
+420005
+RTAB
+420004
+420097
+420097
+-1
+420098
+9102
+-1
+420099
+9102
+-1
+420132
+9102
+-1
+420133
+9102
+-1
+420134
+9102
+-1
+RTAB
+420003
+508041
+420001
+-1
+508041
+420002
+-1
+508041
+420003
+-1
+508041
+420004
+-1
+508041
+420005
+-1
+508041
+420006
+-1
+508041
+420007
+-1
+508041
+420008
+-1
+508041
+420009
+-1
+508041
+420010
+-1
+508041
+420011
+-1
+508041
+420012
+-1
+508041
+420013
+-1
+508041
+420014
+-1
+508041
+420015
+-1
+508041
+420016
+-1
+508041
+420017
+-1
+508041
+420018
+-1
+508041
+420019
+-1
+508041
+420020
+-1
+508041
+420021
+-1
+508041
+420022
+-1
+508041
+420023
+-1
+508041
+420024
+-1
+508041
+420025
+-1
+508041
+420026
+-1
+508041
+420027
+-1
+508041
+420028
+-1
+508041
+420029
+-1
+508041
+420030
+-1
+508041
+420031
+-1
+508041
+420032
+-1
+508041
+420033
+-1
+508041
+420034
+-1
+508041
+420035
+-1
+508041
+420036
+-1
+508041
+420037
+-1
+508041
+420038
+-1
+508041
+420039
+-1
+508041
+420040
+-1
+508041
+420041
+-1
+508041
+420042
+-1
+508041
+420043
+-1
+508041
+420044
+-1
+508041
+420045
+-1
+508041
+420046
+-1
+508041
+420047
+-1
+508041
+420048
+-1
+508041
+420049
+-1
+508041
+420050
+-1
+508041
+420051
+-1
+508041
+420052
+-1
+508041
+420053
+-1
+508041
+420054
+-1
+508041
+420055
+-1
+508041
+420056
+-1
+508041
+420057
+-1
+508041
+420058
+-1
+508041
+420059
+-1
+508041
+420060
+-1
+508041
+420061
+-1
+508041
+420062
+-1
+508041
+420063
+-1
+508041
+420064
+-1
+508041
+420065
+-1
+508041
+420066
+-1
+508041
+420067
+-1
+508041
+420068
+-1
+508041
+420069
+-1
+508041
+420070
+-1
+508041
+420071
+-1
+508041
+420072
+-1
+508041
+420073
+-1
+508041
+420074
+-1
+508041
+420075
+-1
+508041
+420076
+-1
+508041
+420077
+-1
+508041
+420078
+-1
+508041
+420079
+-1
+508041
+420080
+-1
+508041
+420081
+-1
+508041
+420082
+-1
+508041
+420083
+-1
+508041
+420084
+-1
+508041
+420085
+-1
+508041
+420086
+-1
+508041
+420087
+-1
+508041
+420088
+-1
+508041
+420089
+-1
+508041
+420090
+-1
+508041
+420091
+-1
+508041
+420092
+-1
+508041
+420093
+-1
+508041
+420094
+-1
+508041
+420095
+-1
+508041
+420096
+-1
+508041
+420097
+-1
+508041
+420098
+-1
+508041
+420099
+-1
+508041
+420100
+-1
+508041
+420101
+-1
+508041
+420102
+-1
+508041
+420103
+-1
+508041
+420104
+-1
+508041
+420105
+-1
+508041
+420106
+-1
+508041
+420107
+-1
+508041
+420108
+-1
+508041
+420109
+-1
+508041
+420110
+-1
+508041
+420111
+-1
+508041
+420112
+-1
+508041
+420113
+-1
+508041
+420114
+-1
+508041
+420115
+-1
+508041
+420116
+-1
+508041
+420117
+-1
+508041
+420118
+-1
+508041
+420119
+-1
+508041
+420120
+-1
+508041
+420121
+-1
+508041
+420122
+-1
+508041
+420123
+-1
+508041
+420124
+-1
+508041
+420125
+-1
+508041
+420126
+-1
+508041
+420127
+-1
+508041
+420128
+-1
+508041
+420129
+-1
+508041
+420130
+-1
+508041
+420131
+-1
+508041
+420132
+-1
+508041
+420133
+-1
+508041
+420134
+-1
+508041
+420135
+-1
+508041
+420136
+-1
+508041
+420137
+-1
+508041
+420138
+-1
+508041
+420139
+-1
+508041
+420140
+-1
+508041
+420141
+-1
+508041
+420142
+-1
+508041
+420143
+-1
+508041
+420144
+-1
+508041
+420145
+-1
+508041
+420146
+-1
+508041
+420147
+-1
+508041
+420148
+-1
+508041
+420149
+-1
+508041
+420150
+-1
+508041
+420151
+-1
+508041
+420152
+-1
+508041
+420153
+-1
+508041
+420154
+-1
+508041
+420155
+-1
+508041
+420156
+-1
+508041
+420157
+-1
+508041
+420158
+-1
+508041
+420159
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOWEETA1.DAT b/DerClouProfiData/DATA/TOWEETA1.DAT
new file mode 100644
index 0000000..e0b7923
Binary files /dev/null and b/DerClouProfiData/DATA/TOWEETA1.DAT differ
diff --git a/DerClouProfiData/DATA/TOWEETA1.LFD b/DerClouProfiData/DATA/TOWEETA1.LFD
new file mode 100644
index 0000000..e88eacd
--- /dev/null
+++ b/DerClouProfiData/DATA/TOWEETA1.LFD
@@ -0,0 +1 @@
+�������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOWEETA1.REL b/DerClouProfiData/DATA/TOWEETA1.REL
new file mode 100644
index 0000000..db45ad3
--- /dev/null
+++ b/DerClouProfiData/DATA/TOWEETA1.REL
@@ -0,0 +1,683 @@
+RELF
+RTAB
+430010
+RTAB
+430007
+RTAB
+430006
+430184
+430190
+-1
+430190
+430184
+-1
+430185
+430190
+-1
+430190
+430185
+-1
+430180
+430192
+-1
+430192
+430180
+-1
+430182
+430189
+-1
+430189
+430182
+-1
+430181
+430193
+-1
+430193
+430181
+-1
+430183
+430191
+-1
+430191
+430183
+-1
+RTAB
+430005
+430143
+430186
+-1
+430186
+430143
+-1
+430148
+430188
+-1
+430188
+430148
+-1
+430146
+430187
+-1
+430187
+430146
+-1
+RTAB
+430004
+430142
+430142
+-1
+430143
+430143
+-1
+430144
+430144
+-1
+430145
+430145
+-1
+430146
+9102
+-1
+430147
+9102
+-1
+430148
+9102
+-1
+430149
+9102
+-1
+RTAB
+430003
+508042
+430001
+-1
+508042
+430002
+-1
+508042
+430003
+-1
+508042
+430004
+-1
+508042
+430005
+-1
+508042
+430006
+-1
+508042
+430007
+-1
+508042
+430008
+-1
+508042
+430009
+-1
+508042
+430010
+-1
+508042
+430011
+-1
+508042
+430012
+-1
+508042
+430013
+-1
+508042
+430014
+-1
+508042
+430015
+-1
+508042
+430016
+-1
+508042
+430017
+-1
+508042
+430018
+-1
+508042
+430019
+-1
+508042
+430020
+-1
+508042
+430021
+-1
+508042
+430022
+-1
+508042
+430023
+-1
+508042
+430024
+-1
+508042
+430025
+-1
+508042
+430026
+-1
+508042
+430027
+-1
+508042
+430028
+-1
+508042
+430029
+-1
+508042
+430030
+-1
+508042
+430031
+-1
+508042
+430032
+-1
+508042
+430033
+-1
+508042
+430034
+-1
+508042
+430035
+-1
+508042
+430036
+-1
+508042
+430037
+-1
+508042
+430038
+-1
+508042
+430039
+-1
+508042
+430040
+-1
+508042
+430041
+-1
+508042
+430042
+-1
+508042
+430043
+-1
+508042
+430044
+-1
+508042
+430045
+-1
+508042
+430046
+-1
+508042
+430047
+-1
+508042
+430048
+-1
+508042
+430049
+-1
+508042
+430050
+-1
+508042
+430051
+-1
+508042
+430052
+-1
+508042
+430053
+-1
+508042
+430054
+-1
+508042
+430055
+-1
+508042
+430056
+-1
+508042
+430057
+-1
+508042
+430058
+-1
+508042
+430059
+-1
+508042
+430060
+-1
+508042
+430061
+-1
+508042
+430062
+-1
+508042
+430063
+-1
+508042
+430064
+-1
+508042
+430065
+-1
+508042
+430066
+-1
+508042
+430067
+-1
+508042
+430068
+-1
+508042
+430069
+-1
+508042
+430070
+-1
+508042
+430071
+-1
+508042
+430072
+-1
+508042
+430073
+-1
+508042
+430074
+-1
+508042
+430075
+-1
+508042
+430076
+-1
+508042
+430077
+-1
+508042
+430078
+-1
+508042
+430079
+-1
+508042
+430080
+-1
+508042
+430081
+-1
+508042
+430082
+-1
+508042
+430083
+-1
+508042
+430084
+-1
+508042
+430085
+-1
+508042
+430086
+-1
+508042
+430087
+-1
+508042
+430088
+-1
+508042
+430089
+-1
+508042
+430090
+-1
+508042
+430091
+-1
+508042
+430092
+-1
+508042
+430093
+-1
+508042
+430094
+-1
+508042
+430095
+-1
+508042
+430096
+-1
+508042
+430097
+-1
+508042
+430098
+-1
+508042
+430099
+-1
+508042
+430100
+-1
+508042
+430101
+-1
+508042
+430102
+-1
+508042
+430103
+-1
+508042
+430104
+-1
+508042
+430105
+-1
+508042
+430106
+-1
+508042
+430107
+-1
+508042
+430108
+-1
+508042
+430109
+-1
+508042
+430110
+-1
+508042
+430111
+-1
+508042
+430112
+-1
+508042
+430113
+-1
+508042
+430114
+-1
+508042
+430115
+-1
+508042
+430116
+-1
+508042
+430117
+-1
+508042
+430118
+-1
+508042
+430119
+-1
+508042
+430120
+-1
+508042
+430121
+-1
+508042
+430122
+-1
+508042
+430123
+-1
+508042
+430124
+-1
+508042
+430125
+-1
+508042
+430126
+-1
+508042
+430127
+-1
+508042
+430128
+-1
+508042
+430129
+-1
+508042
+430130
+-1
+508042
+430131
+-1
+508042
+430132
+-1
+508042
+430133
+-1
+508042
+430134
+-1
+508042
+430135
+-1
+508042
+430136
+-1
+508042
+430137
+-1
+508042
+430138
+-1
+508042
+430139
+-1
+508042
+430140
+-1
+508042
+430141
+-1
+508042
+430142
+-1
+508042
+430143
+-1
+508042
+430144
+-1
+508042
+430145
+-1
+508042
+430146
+-1
+508042
+430147
+-1
+508042
+430148
+-1
+508042
+430149
+-1
+508042
+430150
+-1
+508042
+430151
+-1
+508042
+430152
+-1
+508042
+430153
+-1
+508042
+430154
+-1
+508042
+430155
+-1
+508042
+430156
+-1
+508042
+430157
+-1
+508042
+430158
+-1
+508042
+430159
+-1
+508042
+430160
+-1
+508042
+430161
+-1
+508042
+430162
+-1
+508042
+430163
+-1
+508042
+430164
+-1
+508042
+430165
+-1
+508042
+430166
+-1
+508042
+430167
+-1
+508042
+430168
+-1
+508042
+430169
+-1
+508042
+430170
+-1
+508042
+430171
+-1
+508042
+430172
+-1
+508042
+430173
+-1
+508042
+430174
+-1
+508042
+430175
+-1
+508042
+430176
+-1
+508042
+430177
+-1
+508042
+430178
+-1
+508042
+430179
+-1
+508042
+430180
+-1
+508042
+430181
+-1
+508042
+430182
+-1
+508042
+430183
+-1
+508042
+430184
+-1
+508042
+430185
+-1
+508042
+430186
+-1
+508042
+430187
+-1
+508042
+430188
+-1
+508042
+430189
+-1
+508042
+430190
+-1
+508042
+430191
+-1
+508042
+430192
+-1
+508042
+430193
+-1
+508042
+430194
+-1
+508042
+430195
+-1
+508042
+430196
+-1
+508042
+430197
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOWEETA2.DAT b/DerClouProfiData/DATA/TOWEETA2.DAT
new file mode 100644
index 0000000..393c504
Binary files /dev/null and b/DerClouProfiData/DATA/TOWEETA2.DAT differ
diff --git a/DerClouProfiData/DATA/TOWEETA2.LFD b/DerClouProfiData/DATA/TOWEETA2.LFD
new file mode 100644
index 0000000..5a22c03
--- /dev/null
+++ b/DerClouProfiData/DATA/TOWEETA2.LFD
@@ -0,0 +1 @@
+������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TOWEETA2.REL b/DerClouProfiData/DATA/TOWEETA2.REL
new file mode 100644
index 0000000..cd7a204
--- /dev/null
+++ b/DerClouProfiData/DATA/TOWEETA2.REL
@@ -0,0 +1,629 @@
+RELF
+RTAB
+450010
+RTAB
+450007
+450176
+9608
+10
+450163
+9633
+850000
+RTAB
+450006
+450166
+450170
+-1
+450170
+450166
+-1
+450164
+450174
+-1
+450174
+450164
+-1
+450165
+450173
+-1
+450173
+450165
+-1
+450165
+450172
+-1
+450172
+450165
+-1
+450165
+450171
+-1
+450171
+450165
+-1
+RTAB
+450005
+450163
+450167
+-1
+450167
+450163
+-1
+450163
+450168
+-1
+450168
+450163
+-1
+450159
+450169
+-1
+450169
+450159
+-1
+RTAB
+450004
+450159
+450159
+-1
+450135
+450135
+-1
+450134
+9103
+-1
+450133
+450133
+-1
+RTAB
+450003
+508043
+450175
+-1
+508043
+450174
+-1
+508043
+450173
+-1
+508043
+450172
+-1
+508043
+450171
+-1
+508043
+450170
+-1
+508043
+450169
+-1
+508043
+450168
+-1
+508043
+450167
+-1
+508043
+450166
+-1
+508043
+450165
+-1
+508043
+450164
+-1
+508043
+450163
+-1
+508043
+450162
+-1
+508043
+450161
+-1
+508043
+450160
+-1
+508043
+450159
+-1
+508043
+450158
+-1
+508043
+450157
+-1
+508043
+450156
+-1
+508043
+450155
+-1
+508043
+450154
+-1
+508043
+450153
+-1
+508043
+450152
+-1
+508043
+450151
+-1
+508043
+450150
+-1
+508043
+450149
+-1
+508043
+450148
+-1
+508043
+450147
+-1
+508043
+450146
+-1
+508043
+450145
+-1
+508043
+450144
+-1
+508043
+450143
+-1
+508043
+450142
+-1
+508043
+450141
+-1
+508043
+450140
+-1
+508043
+450139
+-1
+508043
+450138
+-1
+508043
+450137
+-1
+508043
+450136
+-1
+508043
+450135
+-1
+508043
+450134
+-1
+508043
+450133
+-1
+508043
+450132
+-1
+508043
+450131
+-1
+508043
+450130
+-1
+508043
+450129
+-1
+508043
+450128
+-1
+508043
+450127
+-1
+508043
+450126
+-1
+508043
+450125
+-1
+508043
+450124
+-1
+508043
+450123
+-1
+508043
+450122
+-1
+508043
+450121
+-1
+508043
+450120
+-1
+508043
+450119
+-1
+508043
+450118
+-1
+508043
+450117
+-1
+508043
+450116
+-1
+508043
+450115
+-1
+508043
+450114
+-1
+508043
+450113
+-1
+508043
+450112
+-1
+508043
+450111
+-1
+508043
+450110
+-1
+508043
+450109
+-1
+508043
+450108
+-1
+508043
+450107
+-1
+508043
+450106
+-1
+508043
+450105
+-1
+508043
+450104
+-1
+508043
+450103
+-1
+508043
+450102
+-1
+508043
+450101
+-1
+508043
+450100
+-1
+508043
+450099
+-1
+508043
+450098
+-1
+508043
+450097
+-1
+508043
+450096
+-1
+508043
+450095
+-1
+508043
+450094
+-1
+508043
+450093
+-1
+508043
+450092
+-1
+508043
+450091
+-1
+508043
+450090
+-1
+508043
+450089
+-1
+508043
+450088
+-1
+508043
+450087
+-1
+508043
+450086
+-1
+508043
+450085
+-1
+508043
+450084
+-1
+508043
+450083
+-1
+508043
+450082
+-1
+508043
+450081
+-1
+508043
+450080
+-1
+508043
+450079
+-1
+508043
+450078
+-1
+508043
+450077
+-1
+508043
+450076
+-1
+508043
+450075
+-1
+508043
+450074
+-1
+508043
+450073
+-1
+508043
+450072
+-1
+508043
+450071
+-1
+508043
+450070
+-1
+508043
+450069
+-1
+508043
+450068
+-1
+508043
+450067
+-1
+508043
+450066
+-1
+508043
+450065
+-1
+508043
+450064
+-1
+508043
+450063
+-1
+508043
+450062
+-1
+508043
+450061
+-1
+508043
+450060
+-1
+508043
+450059
+-1
+508043
+450058
+-1
+508043
+450057
+-1
+508043
+450056
+-1
+508043
+450055
+-1
+508043
+450054
+-1
+508043
+450053
+-1
+508043
+450052
+-1
+508043
+450051
+-1
+508043
+450050
+-1
+508043
+450049
+-1
+508043
+450048
+-1
+508043
+450047
+-1
+508043
+450046
+-1
+508043
+450045
+-1
+508043
+450044
+-1
+508043
+450043
+-1
+508043
+450042
+-1
+508043
+450041
+-1
+508043
+450040
+-1
+508043
+450039
+-1
+508043
+450038
+-1
+508043
+450037
+-1
+508043
+450036
+-1
+508043
+450035
+-1
+508043
+450034
+-1
+508043
+450033
+-1
+508043
+450032
+-1
+508043
+450031
+-1
+508043
+450030
+-1
+508043
+450029
+-1
+508043
+450028
+-1
+508043
+450027
+-1
+508043
+450026
+-1
+508043
+450025
+-1
+508043
+450024
+-1
+508043
+450023
+-1
+508043
+450022
+-1
+508043
+450021
+-1
+508043
+450020
+-1
+508043
+450019
+-1
+508043
+450018
+-1
+508043
+450017
+-1
+508043
+450016
+-1
+508043
+450015
+-1
+508043
+450014
+-1
+508043
+450013
+-1
+508043
+450012
+-1
+508043
+450011
+-1
+508043
+450010
+-1
+508043
+450009
+-1
+508043
+450008
+-1
+508043
+450007
+-1
+508043
+450006
+-1
+508043
+450005
+-1
+508043
+450004
+-1
+508043
+450003
+-1
+508043
+450002
+-1
+508043
+450001
+-1
+508043
+450176
+-1
+508043
+450177
+-1
+508043
+450178
+-1
+508043
+450179
+-1
+508043
+450180
+-1
+508043
+450181
+-1
+508043
+450182
+-1
+508043
+450183
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TRAIETA.GRE b/DerClouProfiData/DATA/TRAIETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/TRAIETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TRAIETA.GUA b/DerClouProfiData/DATA/TRAIETA.GUA
new file mode 100644
index 0000000..016e5f4
--- /dev/null
+++ b/DerClouProfiData/DATA/TRAIETA.GUA
@@ -0,0 +1,48 @@
+ACLI
+508500
+ACTI
+2
+360
+ACTI
+1
+22
+2
+ACTI
+1
+9
+8
+ACTI
+1
+22
+1
+ACTI
+1
+1
+8
+ACTI
+2
+360
+ACTI
+1
+25
+1
+ACTI
+1
+12
+4
+ACTI
+1
+1
+1
+ACTI
+10
+15
+600083
+ACTI
+1
+26
+2
+ACTI
+1
+2
+8
diff --git a/DerClouProfiData/DATA/TRAIETA.SPO b/DerClouProfiData/DATA/TRAIETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/TRAIETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TRAIETA0.DAT b/DerClouProfiData/DATA/TRAIETA0.DAT
new file mode 100644
index 0000000..9da3173
Binary files /dev/null and b/DerClouProfiData/DATA/TRAIETA0.DAT differ
diff --git a/DerClouProfiData/DATA/TRAIETA0.LFD b/DerClouProfiData/DATA/TRAIETA0.LFD
new file mode 100644
index 0000000..2c1f201
Binary files /dev/null and b/DerClouProfiData/DATA/TRAIETA0.LFD differ
diff --git a/DerClouProfiData/DATA/TRAIETA0.REL b/DerClouProfiData/DATA/TRAIETA0.REL
new file mode 100644
index 0000000..2a5bfef
--- /dev/null
+++ b/DerClouProfiData/DATA/TRAIETA0.REL
@@ -0,0 +1,482 @@
+RELF
+RTAB
+600010
+508109
+600145
+-1
+RTAB
+600007
+600138
+9602
+5000
+600139
+9602
+5000
+600140
+9602
+5000
+600142
+9602
+5000
+600141
+9602
+5000
+600136
+9601
+10000
+RTAB
+600006
+RTAB
+600005
+RTAB
+600004
+600066
+9103
+-1
+600073
+9103
+-1
+600083
+9103
+-1
+600084
+9103
+-1
+600085
+9103
+-1
+RTAB
+600003
+508109
+600144
+-1
+508109
+600143
+-1
+508109
+600142
+-1
+508109
+600141
+-1
+508109
+600140
+-1
+508109
+600139
+-1
+508109
+600138
+-1
+508109
+600137
+-1
+508109
+600136
+-1
+508109
+600135
+-1
+508109
+600134
+-1
+508109
+600133
+-1
+508109
+600132
+-1
+508109
+600131
+-1
+508109
+600130
+-1
+508109
+600129
+-1
+508109
+600128
+-1
+508109
+600127
+-1
+508109
+600126
+-1
+508109
+600125
+-1
+508109
+600124
+-1
+508109
+600123
+-1
+508109
+600122
+-1
+508109
+600121
+-1
+508109
+600120
+-1
+508109
+600119
+-1
+508109
+600118
+-1
+508109
+600001
+-1
+508109
+600002
+-1
+508109
+600003
+-1
+508109
+600004
+-1
+508109
+600005
+-1
+508109
+600006
+-1
+508109
+600007
+-1
+508109
+600008
+-1
+508109
+600009
+-1
+508109
+600010
+-1
+508109
+600011
+-1
+508109
+600012
+-1
+508109
+600013
+-1
+508109
+600014
+-1
+508109
+600015
+-1
+508109
+600016
+-1
+508109
+600017
+-1
+508109
+600018
+-1
+508109
+600019
+-1
+508109
+600020
+-1
+508109
+600021
+-1
+508109
+600022
+-1
+508109
+600023
+-1
+508109
+600024
+-1
+508109
+600025
+-1
+508109
+600026
+-1
+508109
+600027
+-1
+508109
+600028
+-1
+508109
+600029
+-1
+508109
+600030
+-1
+508109
+600031
+-1
+508109
+600032
+-1
+508109
+600033
+-1
+508109
+600034
+-1
+508109
+600035
+-1
+508109
+600036
+-1
+508109
+600037
+-1
+508109
+600038
+-1
+508109
+600039
+-1
+508109
+600040
+-1
+508109
+600041
+-1
+508109
+600042
+-1
+508109
+600043
+-1
+508109
+600044
+-1
+508109
+600045
+-1
+508109
+600046
+-1
+508109
+600047
+-1
+508109
+600048
+-1
+508109
+600049
+-1
+508109
+600050
+-1
+508109
+600051
+-1
+508109
+600052
+-1
+508109
+600053
+-1
+508109
+600054
+-1
+508109
+600055
+-1
+508109
+600056
+-1
+508109
+600057
+-1
+508109
+600058
+-1
+508109
+600059
+-1
+508109
+600060
+-1
+508109
+600061
+-1
+508109
+600062
+-1
+508109
+600063
+-1
+508109
+600064
+-1
+508109
+600065
+-1
+508109
+600066
+-1
+508109
+600067
+-1
+508109
+600068
+-1
+508109
+600069
+-1
+508109
+600070
+-1
+508109
+600071
+-1
+508109
+600072
+-1
+508109
+600073
+-1
+508109
+600074
+-1
+508109
+600075
+-1
+508109
+600076
+-1
+508109
+600077
+-1
+508109
+600078
+-1
+508109
+600079
+-1
+508109
+600080
+-1
+508109
+600081
+-1
+508109
+600082
+-1
+508109
+600083
+-1
+508109
+600084
+-1
+508109
+600085
+-1
+508109
+600086
+-1
+508109
+600087
+-1
+508109
+600088
+-1
+508109
+600089
+-1
+508109
+600090
+-1
+508109
+600091
+-1
+508109
+600092
+-1
+508109
+600093
+-1
+508109
+600094
+-1
+508109
+600095
+-1
+508109
+600096
+-1
+508109
+600097
+-1
+508109
+600098
+-1
+508109
+600099
+-1
+508109
+600100
+-1
+508109
+600101
+-1
+508109
+600102
+-1
+508109
+600103
+-1
+508109
+600104
+-1
+508109
+600105
+-1
+508109
+600106
+-1
+508109
+600107
+-1
+508109
+600108
+-1
+508109
+600109
+-1
+508109
+600110
+-1
+508109
+600111
+-1
+508109
+600112
+-1
+508109
+600113
+-1
+508109
+600114
+-1
+508109
+600115
+-1
+508109
+600116
+-1
+508109
+600117
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TRANETA.GRE b/DerClouProfiData/DATA/TRANETA.GRE
new file mode 100644
index 0000000..2be4611
--- /dev/null
+++ b/DerClouProfiData/DATA/TRANETA.GRE
@@ -0,0 +1,14 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+110134
+110134
+508009
+100132
+100132
+508010
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TRANETA.SPO b/DerClouProfiData/DATA/TRANETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/TRANETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TRANETA0.DAT b/DerClouProfiData/DATA/TRANETA0.DAT
new file mode 100644
index 0000000..2b3987c
Binary files /dev/null and b/DerClouProfiData/DATA/TRANETA0.DAT differ
diff --git a/DerClouProfiData/DATA/TRANETA0.LFD b/DerClouProfiData/DATA/TRANETA0.LFD
new file mode 100644
index 0000000..c51c0de
--- /dev/null
+++ b/DerClouProfiData/DATA/TRANETA0.LFD
@@ -0,0 +1 @@
+��������������������������������������������������������������������������������������������������������`����������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TRANETA0.REL b/DerClouProfiData/DATA/TRANETA0.REL
new file mode 100644
index 0000000..f74c860
--- /dev/null
+++ b/DerClouProfiData/DATA/TRANETA0.REL
@@ -0,0 +1,527 @@
+RELF
+RTAB
+100008
+RTAB
+100009
+RTAB
+100011
+RTAB
+100010
+RTAB
+100007
+100151
+9600
+80
+100152
+9600
+90
+100153
+9608
+20
+100138
+9608
+12
+100139
+9606
+8
+100140
+9604
+9
+100142
+9608
+13
+RTAB
+100006
+RTAB
+100005
+RTAB
+100004
+100074
+100074
+-1
+100105
+100105
+-1
+100106
+100106
+-1
+100127
+9102
+-1
+RTAB
+100003
+508009
+100156
+-1
+508009
+100155
+-1
+508009
+100154
+-1
+508009
+100001
+-1
+508009
+100002
+-1
+508009
+100003
+-1
+508009
+100004
+-1
+508009
+100005
+-1
+508009
+100006
+-1
+508009
+100007
+-1
+508009
+100008
+-1
+508009
+100009
+-1
+508009
+100010
+-1
+508009
+100011
+-1
+508009
+100012
+-1
+508009
+100013
+-1
+508009
+100014
+-1
+508009
+100015
+-1
+508009
+100016
+-1
+508009
+100017
+-1
+508009
+100018
+-1
+508009
+100019
+-1
+508009
+100020
+-1
+508009
+100021
+-1
+508009
+100022
+-1
+508009
+100023
+-1
+508009
+100024
+-1
+508009
+100025
+-1
+508009
+100026
+-1
+508009
+100027
+-1
+508009
+100028
+-1
+508009
+100029
+-1
+508009
+100030
+-1
+508009
+100031
+-1
+508009
+100032
+-1
+508009
+100033
+-1
+508009
+100034
+-1
+508009
+100035
+-1
+508009
+100036
+-1
+508009
+100037
+-1
+508009
+100038
+-1
+508009
+100039
+-1
+508009
+100040
+-1
+508009
+100041
+-1
+508009
+100042
+-1
+508009
+100043
+-1
+508009
+100044
+-1
+508009
+100045
+-1
+508009
+100046
+-1
+508009
+100047
+-1
+508009
+100048
+-1
+508009
+100049
+-1
+508009
+100050
+-1
+508009
+100051
+-1
+508009
+100052
+-1
+508009
+100053
+-1
+508009
+100054
+-1
+508009
+100055
+-1
+508009
+100056
+-1
+508009
+100057
+-1
+508009
+100058
+-1
+508009
+100059
+-1
+508009
+100060
+-1
+508009
+100061
+-1
+508009
+100062
+-1
+508009
+100063
+-1
+508009
+100064
+-1
+508009
+100065
+-1
+508009
+100066
+-1
+508009
+100067
+-1
+508009
+100068
+-1
+508009
+100069
+-1
+508009
+100070
+-1
+508009
+100071
+-1
+508009
+100072
+-1
+508009
+100073
+-1
+508009
+100074
+-1
+508009
+100075
+-1
+508009
+100076
+-1
+508009
+100077
+-1
+508009
+100078
+-1
+508009
+100079
+-1
+508009
+100080
+-1
+508009
+100081
+-1
+508009
+100082
+-1
+508009
+100083
+-1
+508009
+100084
+-1
+508009
+100085
+-1
+508009
+100086
+-1
+508009
+100087
+-1
+508009
+100088
+-1
+508009
+100089
+-1
+508009
+100090
+-1
+508009
+100091
+-1
+508009
+100092
+-1
+508009
+100093
+-1
+508009
+100094
+-1
+508009
+100095
+-1
+508009
+100096
+-1
+508009
+100097
+-1
+508009
+100098
+-1
+508009
+100099
+-1
+508009
+100100
+-1
+508009
+100101
+-1
+508009
+100102
+-1
+508009
+100103
+-1
+508009
+100104
+-1
+508009
+100105
+-1
+508009
+100106
+-1
+508009
+100107
+-1
+508009
+100108
+-1
+508009
+100109
+-1
+508009
+100110
+-1
+508009
+100111
+-1
+508009
+100112
+-1
+508009
+100113
+-1
+508009
+100114
+-1
+508009
+100115
+-1
+508009
+100116
+-1
+508009
+100117
+-1
+508009
+100118
+-1
+508009
+100119
+-1
+508009
+100120
+-1
+508009
+100121
+-1
+508009
+100122
+-1
+508009
+100123
+-1
+508009
+100124
+-1
+508009
+100125
+-1
+508009
+100126
+-1
+508009
+100127
+-1
+508009
+100128
+-1
+508009
+100129
+-1
+508009
+100130
+-1
+508009
+100131
+-1
+508009
+100132
+-1
+508009
+100133
+-1
+508009
+100134
+-1
+508009
+100135
+-1
+508009
+100136
+-1
+508009
+100137
+-1
+508009
+100138
+-1
+508009
+100139
+-1
+508009
+100140
+-1
+508009
+100141
+-1
+508009
+100142
+-1
+508009
+100143
+-1
+508009
+100144
+-1
+508009
+100145
+-1
+508009
+100146
+-1
+508009
+100147
+-1
+508009
+100148
+-1
+508009
+100149
+-1
+508009
+100151
+-1
+508009
+100152
+-1
+508009
+100153
+-1
+508009
+100157
+-1
+508009
+100158
+-1
+508009
+100159
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TRANETA1.DAT b/DerClouProfiData/DATA/TRANETA1.DAT
new file mode 100644
index 0000000..51bb51b
Binary files /dev/null and b/DerClouProfiData/DATA/TRANETA1.DAT differ
diff --git a/DerClouProfiData/DATA/TRANETA1.LFD b/DerClouProfiData/DATA/TRANETA1.LFD
new file mode 100644
index 0000000..8616f47
--- /dev/null
+++ b/DerClouProfiData/DATA/TRANETA1.LFD
@@ -0,0 +1 @@
+�������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TRANETA1.REL b/DerClouProfiData/DATA/TRANETA1.REL
new file mode 100644
index 0000000..74d8d38
--- /dev/null
+++ b/DerClouProfiData/DATA/TRANETA1.REL
@@ -0,0 +1,556 @@
+RELF
+RTAB
+110011
+RTAB
+110010
+RTAB
+110007
+110138
+9608
+6
+110138
+9602
+3
+110158
+9608
+3
+110142
+9608
+10
+110141
+9602
+90
+110157
+9617
+5
+110158
+9615
+40
+RTAB
+110006
+RTAB
+110005
+RTAB
+110004
+110109
+9102
+-1
+110105
+9102
+-1
+110088
+9102
+-1
+110113
+9102
+-1
+110119
+9102
+-1
+RTAB
+110003
+508010
+110168
+-1
+508010
+110167
+-1
+508010
+110166
+-1
+508010
+110161
+-1
+508010
+110160
+-1
+508010
+110159
+-1
+508010
+110158
+-1
+508010
+110157
+-1
+508010
+110156
+-1
+508010
+110155
+-1
+508010
+110154
+-1
+508010
+110153
+-1
+508010
+110152
+-1
+508010
+110151
+-1
+508010
+110150
+-1
+508010
+110149
+-1
+508010
+110148
+-1
+508010
+110147
+-1
+508010
+110146
+-1
+508010
+110145
+-1
+508010
+110144
+-1
+508010
+110143
+-1
+508010
+110142
+-1
+508010
+110141
+-1
+508010
+110140
+-1
+508010
+110139
+-1
+508010
+110138
+-1
+508010
+110137
+-1
+508010
+110136
+-1
+508010
+110135
+-1
+508010
+110134
+-1
+508010
+110111
+-1
+508010
+110110
+-1
+508010
+110109
+-1
+508010
+110108
+-1
+508010
+110107
+-1
+508010
+110106
+-1
+508010
+110105
+-1
+508010
+110104
+-1
+508010
+110103
+-1
+508010
+110102
+-1
+508010
+110101
+-1
+508010
+110100
+-1
+508010
+110099
+-1
+508010
+110098
+-1
+508010
+110097
+-1
+508010
+110096
+-1
+508010
+110095
+-1
+508010
+110094
+-1
+508010
+110093
+-1
+508010
+110092
+-1
+508010
+110091
+-1
+508010
+110090
+-1
+508010
+110089
+-1
+508010
+110088
+-1
+508010
+110087
+-1
+508010
+110086
+-1
+508010
+110085
+-1
+508010
+110084
+-1
+508010
+110083
+-1
+508010
+110082
+-1
+508010
+110081
+-1
+508010
+110080
+-1
+508010
+110079
+-1
+508010
+110078
+-1
+508010
+110077
+-1
+508010
+110076
+-1
+508010
+110075
+-1
+508010
+110074
+-1
+508010
+110073
+-1
+508010
+110072
+-1
+508010
+110071
+-1
+508010
+110070
+-1
+508010
+110069
+-1
+508010
+110068
+-1
+508010
+110067
+-1
+508010
+110066
+-1
+508010
+110065
+-1
+508010
+110064
+-1
+508010
+110063
+-1
+508010
+110062
+-1
+508010
+110061
+-1
+508010
+110060
+-1
+508010
+110059
+-1
+508010
+110058
+-1
+508010
+110057
+-1
+508010
+110056
+-1
+508010
+110055
+-1
+508010
+110054
+-1
+508010
+110053
+-1
+508010
+110052
+-1
+508010
+110051
+-1
+508010
+110050
+-1
+508010
+110049
+-1
+508010
+110048
+-1
+508010
+110047
+-1
+508010
+110046
+-1
+508010
+110045
+-1
+508010
+110044
+-1
+508010
+110043
+-1
+508010
+110042
+-1
+508010
+110041
+-1
+508010
+110040
+-1
+508010
+110039
+-1
+508010
+110038
+-1
+508010
+110037
+-1
+508010
+110036
+-1
+508010
+110035
+-1
+508010
+110034
+-1
+508010
+110033
+-1
+508010
+110032
+-1
+508010
+110031
+-1
+508010
+110030
+-1
+508010
+110029
+-1
+508010
+110028
+-1
+508010
+110027
+-1
+508010
+110026
+-1
+508010
+110025
+-1
+508010
+110024
+-1
+508010
+110023
+-1
+508010
+110022
+-1
+508010
+110021
+-1
+508010
+110020
+-1
+508010
+110019
+-1
+508010
+110018
+-1
+508010
+110017
+-1
+508010
+110016
+-1
+508010
+110015
+-1
+508010
+110014
+-1
+508010
+110013
+-1
+508010
+110012
+-1
+508010
+110011
+-1
+508010
+110010
+-1
+508010
+110009
+-1
+508010
+110008
+-1
+508010
+110007
+-1
+508010
+110006
+-1
+508010
+110005
+-1
+508010
+110004
+-1
+508010
+110003
+-1
+508010
+110002
+-1
+508010
+110001
+-1
+508010
+110112
+-1
+508010
+110113
+-1
+508010
+110114
+-1
+508010
+110115
+-1
+508010
+110116
+-1
+508010
+110117
+-1
+508010
+110118
+-1
+508010
+110119
+-1
+508010
+110120
+-1
+508010
+110121
+-1
+508010
+110122
+-1
+508010
+110123
+-1
+508010
+110124
+-1
+508010
+110125
+-1
+508010
+110126
+-1
+508010
+110127
+-1
+508010
+110128
+-1
+508010
+110129
+-1
+508010
+110130
+-1
+508010
+110131
+-1
+508010
+110132
+-1
+508010
+110133
+-1
+508010
+110162
+-1
+508010
+110163
+-1
+508010
+110164
+-1
+508010
+110165
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TUSSETA.GRE b/DerClouProfiData/DATA/TUSSETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/TUSSETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TUSSETA.GUA b/DerClouProfiData/DATA/TUSSETA.GUA
new file mode 100644
index 0000000..d206d86
--- /dev/null
+++ b/DerClouProfiData/DATA/TUSSETA.GUA
@@ -0,0 +1,175 @@
+ACLI
+508500
+ACTI
+1
+19
+2
+ACTI
+1
+12
+4
+ACTI
+1
+9
+2
+ACTI
+10
+15
+540072
+ACTI
+8
+9
+540072
+ACTI
+1
+18
+2
+ACTI
+1
+3
+1
+ACTI
+9
+9
+540072
+ACTI
+1
+22
+2
+ACTI
+1
+13
+8
+ACTI
+2
+180
+ACTI
+1
+4
+8
+ACTI
+10
+15
+540104
+ACTI
+8
+9
+540104
+ACTI
+1
+16
+8
+ACTI
+1
+4
+4
+ACTI
+9
+9
+540104
+ACTI
+1
+1
+1
+ACTI
+1
+30
+8
+ACTI
+1
+12
+1
+ACTI
+1
+4
+8
+ACTI
+2
+309
+ACTI
+1
+37
+1
+ACTI
+1
+16
+4
+ACTI
+1
+7
+1
+ACTI
+10
+15
+540074
+ACTI
+8
+9
+540074
+ACTI
+1
+14
+1
+ACTI
+1
+1
+2
+ACTI
+9
+9
+540074
+ACTI
+1
+7
+1
+ACTI
+1
+14
+4
+ACTI
+1
+9
+1
+ACTI
+1
+2
+8
+ACTI
+2
+39
+ACTI
+1
+1
+1
+ACTI
+1
+7
+4
+ACTI
+10
+15
+540073
+ACTI
+8
+9
+540073
+ACTI
+1
+12
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+540073
+ACTI
+1
+5
+4
+ACTI
+1
+22
+2
diff --git a/DerClouProfiData/DATA/TUSSETA.SPO b/DerClouProfiData/DATA/TUSSETA.SPO
new file mode 100644
index 0000000..1cccfb1
--- /dev/null
+++ b/DerClouProfiData/DATA/TUSSETA.SPO
@@ -0,0 +1,44 @@
+6
+32
+4
+540189
+4
+66
+60
+95
+60
+126
+60
+157
+59
+48
+1
+540189
+1
+211
+33
+48
+1
+540189
+1
+262
+36
+32
+1
+540189
+1
+149
+131
+32
+1
+540189
+1
+206
+132
+32
+1
+540189
+1
+274
+132
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TUSSETA0.DAT b/DerClouProfiData/DATA/TUSSETA0.DAT
new file mode 100644
index 0000000..f558f25
Binary files /dev/null and b/DerClouProfiData/DATA/TUSSETA0.DAT differ
diff --git a/DerClouProfiData/DATA/TUSSETA0.LFD b/DerClouProfiData/DATA/TUSSETA0.LFD
new file mode 100644
index 0000000..e67c26b
--- /dev/null
+++ b/DerClouProfiData/DATA/TUSSETA0.LFD
@@ -0,0 +1 @@
+���������������������������������������������������������������������������������������������������������������������												�������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/TUSSETA0.REL b/DerClouProfiData/DATA/TUSSETA0.REL
new file mode 100644
index 0000000..42f2cf8
--- /dev/null
+++ b/DerClouProfiData/DATA/TUSSETA0.REL
@@ -0,0 +1,794 @@
+RELF
+RTAB
+540010
+508103
+540210
+-1
+508103
+540209
+-1
+508103
+540208
+-1
+508103
+540207
+-1
+RTAB
+540007
+540185
+9645
+200
+540184
+9643
+350
+540183
+9642
+400
+540177
+9640
+40
+540176
+9641
+300
+540175
+9638
+100
+540170
+9644
+50
+540169
+9639
+1000
+540201
+9602
+1
+540205
+9602
+200
+540206
+9608
+10
+540204
+9602
+5
+540204
+9608
+5
+RTAB
+540006
+540193
+540189
+-1
+540189
+540193
+-1
+540192
+540189
+-1
+540189
+540192
+-1
+540195
+540189
+-1
+540189
+540195
+-1
+540196
+540189
+-1
+540189
+540196
+-1
+540194
+540189
+-1
+540189
+540194
+-1
+540198
+540189
+-1
+540189
+540198
+-1
+540197
+540189
+-1
+540189
+540197
+-1
+540199
+540189
+-1
+540189
+540199
+-1
+RTAB
+540005
+540115
+540190
+-1
+540190
+540115
+-1
+540116
+540190
+-1
+540190
+540116
+-1
+540164
+540190
+-1
+540190
+540164
+-1
+540165
+540190
+-1
+540190
+540165
+-1
+540166
+540190
+-1
+540190
+540166
+-1
+540114
+540191
+-1
+540191
+540114
+-1
+RTAB
+540004
+540147
+9102
+-1
+540144
+9102
+-1
+540116
+9102
+-1
+540115
+9102
+-1
+540114
+540114
+-1
+540104
+9102
+-1
+540074
+9102
+-1
+540073
+9102
+-1
+540072
+9102
+-1
+RTAB
+540003
+508103
+540206
+-1
+508103
+540205
+-1
+508103
+540204
+-1
+508103
+540203
+-1
+508103
+540202
+-1
+508103
+540201
+-1
+508103
+540200
+-1
+508103
+540199
+-1
+508103
+540198
+-1
+508103
+540197
+-1
+508103
+540196
+-1
+508103
+540195
+-1
+508103
+540194
+-1
+508103
+540193
+-1
+508103
+540192
+-1
+508103
+540191
+-1
+508103
+540190
+-1
+508103
+540189
+-1
+508103
+540188
+-1
+508103
+540187
+-1
+508103
+540186
+-1
+508103
+540185
+-1
+508103
+540184
+-1
+508103
+540183
+-1
+508103
+540182
+-1
+508103
+540181
+-1
+508103
+540180
+-1
+508103
+540179
+-1
+508103
+540178
+-1
+508103
+540177
+-1
+508103
+540176
+-1
+508103
+540175
+-1
+508103
+540174
+-1
+508103
+540173
+-1
+508103
+540172
+-1
+508103
+540171
+-1
+508103
+540170
+-1
+508103
+540169
+-1
+508103
+540168
+-1
+508103
+540167
+-1
+508103
+540166
+-1
+508103
+540165
+-1
+508103
+540164
+-1
+508103
+540163
+-1
+508103
+540162
+-1
+508103
+540161
+-1
+508103
+540160
+-1
+508103
+540159
+-1
+508103
+540158
+-1
+508103
+540157
+-1
+508103
+540156
+-1
+508103
+540155
+-1
+508103
+540154
+-1
+508103
+540153
+-1
+508103
+540152
+-1
+508103
+540151
+-1
+508103
+540150
+-1
+508103
+540149
+-1
+508103
+540148
+-1
+508103
+540147
+-1
+508103
+540146
+-1
+508103
+540145
+-1
+508103
+540144
+-1
+508103
+540143
+-1
+508103
+540142
+-1
+508103
+540141
+-1
+508103
+540140
+-1
+508103
+540139
+-1
+508103
+540138
+-1
+508103
+540137
+-1
+508103
+540136
+-1
+508103
+540135
+-1
+508103
+540134
+-1
+508103
+540133
+-1
+508103
+540132
+-1
+508103
+540131
+-1
+508103
+540130
+-1
+508103
+540129
+-1
+508103
+540128
+-1
+508103
+540127
+-1
+508103
+540126
+-1
+508103
+540125
+-1
+508103
+540124
+-1
+508103
+540123
+-1
+508103
+540122
+-1
+508103
+540121
+-1
+508103
+540120
+-1
+508103
+540119
+-1
+508103
+540118
+-1
+508103
+540117
+-1
+508103
+540116
+-1
+508103
+540115
+-1
+508103
+540114
+-1
+508103
+540113
+-1
+508103
+540112
+-1
+508103
+540111
+-1
+508103
+540110
+-1
+508103
+540109
+-1
+508103
+540108
+-1
+508103
+540107
+-1
+508103
+540106
+-1
+508103
+540105
+-1
+508103
+540104
+-1
+508103
+540103
+-1
+508103
+540102
+-1
+508103
+540101
+-1
+508103
+540100
+-1
+508103
+540099
+-1
+508103
+540098
+-1
+508103
+540097
+-1
+508103
+540096
+-1
+508103
+540095
+-1
+508103
+540094
+-1
+508103
+540093
+-1
+508103
+540092
+-1
+508103
+540091
+-1
+508103
+540090
+-1
+508103
+540089
+-1
+508103
+540088
+-1
+508103
+540087
+-1
+508103
+540086
+-1
+508103
+540085
+-1
+508103
+540084
+-1
+508103
+540083
+-1
+508103
+540082
+-1
+508103
+540081
+-1
+508103
+540080
+-1
+508103
+540079
+-1
+508103
+540078
+-1
+508103
+540077
+-1
+508103
+540076
+-1
+508103
+540075
+-1
+508103
+540074
+-1
+508103
+540073
+-1
+508103
+540072
+-1
+508103
+540071
+-1
+508103
+540070
+-1
+508103
+540069
+-1
+508103
+540068
+-1
+508103
+540067
+-1
+508103
+540066
+-1
+508103
+540065
+-1
+508103
+540064
+-1
+508103
+540063
+-1
+508103
+540062
+-1
+508103
+540061
+-1
+508103
+540060
+-1
+508103
+540059
+-1
+508103
+540058
+-1
+508103
+540057
+-1
+508103
+540056
+-1
+508103
+540055
+-1
+508103
+540054
+-1
+508103
+540053
+-1
+508103
+540052
+-1
+508103
+540051
+-1
+508103
+540050
+-1
+508103
+540049
+-1
+508103
+540048
+-1
+508103
+540047
+-1
+508103
+540046
+-1
+508103
+540045
+-1
+508103
+540044
+-1
+508103
+540043
+-1
+508103
+540042
+-1
+508103
+540041
+-1
+508103
+540040
+-1
+508103
+540039
+-1
+508103
+540038
+-1
+508103
+540037
+-1
+508103
+540036
+-1
+508103
+540035
+-1
+508103
+540034
+-1
+508103
+540033
+-1
+508103
+540032
+-1
+508103
+540031
+-1
+508103
+540030
+-1
+508103
+540029
+-1
+508103
+540028
+-1
+508103
+540027
+-1
+508103
+540026
+-1
+508103
+540025
+-1
+508103
+540024
+-1
+508103
+540023
+-1
+508103
+540022
+-1
+508103
+540021
+-1
+508103
+540020
+-1
+508103
+540019
+-1
+508103
+540018
+-1
+508103
+540017
+-1
+508103
+540016
+-1
+508103
+540015
+-1
+508103
+540014
+-1
+508103
+540013
+-1
+508103
+540012
+-1
+508103
+540011
+-1
+508103
+540010
+-1
+508103
+540009
+-1
+508103
+540008
+-1
+508103
+540007
+-1
+508103
+540006
+-1
+508103
+540005
+-1
+508103
+540004
+-1
+508103
+540003
+-1
+508103
+540002
+-1
+508103
+540001
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/VICTETA.GRE b/DerClouProfiData/DATA/VICTETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/VICTETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/VICTETA.GUA b/DerClouProfiData/DATA/VICTETA.GUA
new file mode 100644
index 0000000..742691a
--- /dev/null
+++ b/DerClouProfiData/DATA/VICTETA.GUA
@@ -0,0 +1,288 @@
+ACLI
+508500
+ACTI
+1
+30
+2
+ACTI
+1
+4
+4
+ACTI
+8
+24
+380231
+ACTI
+10
+15
+380231
+ACTI
+9
+24
+380231
+ACTI
+1
+14
+8
+ACTI
+1
+2
+2
+ACTI
+10
+15
+380210
+ACTI
+8
+9
+380210
+ACTI
+1
+15
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+380210
+ACTI
+1
+4
+2
+ACTI
+1
+16
+8
+ACTI
+2
+360
+ACTI
+1
+27
+4
+ACTI
+1
+3
+1
+ACTI
+1
+4
+4
+ACTI
+8
+33
+380250
+ACTI
+10
+15
+380250
+ACTI
+9
+33
+380250
+ACTI
+1
+1
+8
+ACTI
+1
+32
+2
+ACTI
+1
+1
+4
+ACTI
+8
+33
+380249
+ACTI
+10
+15
+380249
+ACTI
+9
+33
+380249
+ACTI
+1
+18
+1
+ACTI
+1
+6
+4
+ACTI
+10
+15
+380158
+ACTI
+8
+9
+380158
+ACTI
+1
+13
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+380158
+ACTI
+1
+4
+4
+ACTI
+1
+156
+1
+ACTI
+1
+13
+4
+ACTI
+1
+4
+1
+ACTI
+10
+15
+380219
+ACTI
+1
+13
+8
+ACTI
+1
+79
+1
+ACTI
+1
+5
+8
+ACTI
+10
+15
+380125
+ACTI
+1
+69
+2
+ACTI
+1
+2
+4
+ACTI
+1
+171
+2
+ACTI
+1
+2
+8
+ACTI
+10
+15
+380158
+ACTI
+8
+9
+380158
+ACTI
+1
+1
+1
+ACTI
+1
+13
+8
+ACTI
+1
+1
+4
+ACTI
+9
+9
+380158
+ACTI
+1
+19
+8
+ACTI
+1
+17
+1
+ACTI
+10
+15
+380210
+ACTI
+8
+9
+380210
+ACTI
+1
+1
+8
+ACTI
+1
+16
+1
+ACTI
+1
+3
+2
+ACTI
+9
+9
+380210
+ACTI
+1
+25
+1
+ACTI
+1
+31
+8
+ACTI
+10
+15
+380253
+ACTI
+2
+201
+ACTI
+1
+10
+1
+ACTI
+1
+47
+4
+ACTI
+8
+9
+380230
+ACTI
+9
+9
+380230
+ACTI
+1
+5
+8
+ACTI
+1
+4
+2
+ACTI
+1
+1
+8
diff --git a/DerClouProfiData/DATA/VICTETA.SPO b/DerClouProfiData/DATA/VICTETA.SPO
new file mode 100644
index 0000000..2c9f650
--- /dev/null
+++ b/DerClouProfiData/DATA/VICTETA.SPO
@@ -0,0 +1,52 @@
+3
+48
+1
+380265
+1
+65
+107
+48
+3
+380231
+3
+250
+130
+280
+130
+310
+130
+32
+2
+380231
+15
+59
+49
+91
+49
+123
+49
+155
+49
+187
+49
+219
+49
+251
+49
+283
+49
+315
+49
+347
+49
+379
+49
+411
+49
+443
+49
+475
+49
+507
+49
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/VICTETA0.DAT b/DerClouProfiData/DATA/VICTETA0.DAT
new file mode 100644
index 0000000..bf82e17
Binary files /dev/null and b/DerClouProfiData/DATA/VICTETA0.DAT differ
diff --git a/DerClouProfiData/DATA/VICTETA0.LFD b/DerClouProfiData/DATA/VICTETA0.LFD
new file mode 100644
index 0000000..2c821fb
--- /dev/null
+++ b/DerClouProfiData/DATA/VICTETA0.LFD
@@ -0,0 +1 @@
+��������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/VICTETA0.REL b/DerClouProfiData/DATA/VICTETA0.REL
new file mode 100644
index 0000000..f7f0272
--- /dev/null
+++ b/DerClouProfiData/DATA/VICTETA0.REL
@@ -0,0 +1,1093 @@
+RELF
+RTAB
+380011
+RTAB
+380010
+508037
+380270
+-1
+508037
+380269
+-1
+508037
+380267
+-1
+508037
+380268
+-1
+RTAB
+380007
+380230
+9602
+1500
+380229
+9602
+3000
+380248
+9609
+600
+380247
+9609
+500
+380227
+9632
+1500
+380227
+9606
+1000
+380228
+9607
+1000
+380245
+9600
+1400
+380244
+9600
+1600
+380226
+9607
+3900
+380225
+9607
+3900
+380224
+9606
+3600
+380223
+9607
+1700
+380223
+9606
+1900
+380222
+9607
+2700
+380222
+9606
+900
+380221
+9607
+3400
+380220
+9607
+3300
+380219
+9607
+900
+380219
+9606
+1600
+380219
+9603
+1000
+380218
+9607
+2900
+380218
+9606
+1000
+380217
+9606
+3100
+380216
+9607
+3600
+380243
+9600
+500
+380242
+9600
+500
+380241
+9600
+1500
+380240
+9600
+900
+380239
+9600
+500
+380238
+9600
+1100
+380237
+9605
+1000
+380236
+9605
+2000
+380235
+9605
+1000
+RTAB
+380006
+380265
+380266
+-1
+380266
+380265
+-1
+380259
+380231
+-1
+380231
+380259
+-1
+380260
+380231
+-1
+380231
+380260
+-1
+380262
+380231
+-1
+380231
+380262
+-1
+380264
+380231
+-1
+380231
+380264
+-1
+380263
+380231
+-1
+380231
+380263
+-1
+380261
+380231
+-1
+380231
+380261
+-1
+RTAB
+380005
+380255
+380249
+-1
+380249
+380255
+-1
+380256
+380249
+-1
+380249
+380256
+-1
+380253
+380249
+-1
+380249
+380253
+-1
+380252
+380249
+-1
+380249
+380252
+-1
+380251
+380249
+-1
+380249
+380251
+-1
+380254
+380249
+-1
+380249
+380254
+-1
+380258
+380249
+-1
+380249
+380258
+-1
+380257
+380249
+-1
+380249
+380257
+-1
+380243
+380250
+-1
+380250
+380243
+-1
+380241
+380250
+-1
+380250
+380241
+-1
+380242
+380250
+-1
+380250
+380242
+-1
+380240
+380250
+-1
+380250
+380240
+-1
+380238
+380250
+-1
+380250
+380238
+-1
+380239
+380250
+-1
+380250
+380239
+-1
+380245
+380250
+-1
+380250
+380245
+-1
+380244
+380250
+-1
+380250
+380244
+-1
+380219
+380250
+-1
+380250
+380219
+-1
+RTAB
+380004
+380096
+9102
+-1
+380097
+9102
+-1
+380125
+9102
+-1
+380158
+9102
+-1
+380183
+9102
+-1
+380194
+9102
+-1
+380210
+9102
+-1
+RTAB
+380003
+508037
+380266
+-1
+508037
+380265
+-1
+508037
+380250
+-1
+508037
+380249
+-1
+508037
+380248
+-1
+508037
+380247
+-1
+508037
+380246
+-1
+508037
+380245
+-1
+508037
+380244
+-1
+508037
+380243
+-1
+508037
+380242
+-1
+508037
+380241
+-1
+508037
+380240
+-1
+508037
+380239
+-1
+508037
+380238
+-1
+508037
+380237
+-1
+508037
+380236
+-1
+508037
+380235
+-1
+508037
+380234
+-1
+508037
+380233
+-1
+508037
+380232
+-1
+508037
+380231
+-1
+508037
+380230
+-1
+508037
+380229
+-1
+508037
+380228
+-1
+508037
+380227
+-1
+508037
+380226
+-1
+508037
+380225
+-1
+508037
+380224
+-1
+508037
+380223
+-1
+508037
+380222
+-1
+508037
+380221
+-1
+508037
+380220
+-1
+508037
+380219
+-1
+508037
+380218
+-1
+508037
+380217
+-1
+508037
+380216
+-1
+508037
+380001
+-1
+508037
+380002
+-1
+508037
+380003
+-1
+508037
+380004
+-1
+508037
+380005
+-1
+508037
+380006
+-1
+508037
+380007
+-1
+508037
+380008
+-1
+508037
+380009
+-1
+508037
+380010
+-1
+508037
+380011
+-1
+508037
+380012
+-1
+508037
+380013
+-1
+508037
+380014
+-1
+508037
+380015
+-1
+508037
+380016
+-1
+508037
+380017
+-1
+508037
+380018
+-1
+508037
+380019
+-1
+508037
+380020
+-1
+508037
+380021
+-1
+508037
+380022
+-1
+508037
+380023
+-1
+508037
+380024
+-1
+508037
+380025
+-1
+508037
+380026
+-1
+508037
+380027
+-1
+508037
+380028
+-1
+508037
+380029
+-1
+508037
+380030
+-1
+508037
+380031
+-1
+508037
+380032
+-1
+508037
+380033
+-1
+508037
+380034
+-1
+508037
+380035
+-1
+508037
+380036
+-1
+508037
+380037
+-1
+508037
+380038
+-1
+508037
+380039
+-1
+508037
+380040
+-1
+508037
+380041
+-1
+508037
+380042
+-1
+508037
+380043
+-1
+508037
+380044
+-1
+508037
+380045
+-1
+508037
+380046
+-1
+508037
+380047
+-1
+508037
+380048
+-1
+508037
+380049
+-1
+508037
+380050
+-1
+508037
+380051
+-1
+508037
+380052
+-1
+508037
+380053
+-1
+508037
+380054
+-1
+508037
+380055
+-1
+508037
+380056
+-1
+508037
+380057
+-1
+508037
+380058
+-1
+508037
+380059
+-1
+508037
+380060
+-1
+508037
+380061
+-1
+508037
+380062
+-1
+508037
+380063
+-1
+508037
+380064
+-1
+508037
+380065
+-1
+508037
+380066
+-1
+508037
+380067
+-1
+508037
+380068
+-1
+508037
+380069
+-1
+508037
+380070
+-1
+508037
+380071
+-1
+508037
+380072
+-1
+508037
+380073
+-1
+508037
+380074
+-1
+508037
+380075
+-1
+508037
+380076
+-1
+508037
+380077
+-1
+508037
+380078
+-1
+508037
+380079
+-1
+508037
+380080
+-1
+508037
+380081
+-1
+508037
+380082
+-1
+508037
+380083
+-1
+508037
+380084
+-1
+508037
+380085
+-1
+508037
+380086
+-1
+508037
+380087
+-1
+508037
+380088
+-1
+508037
+380089
+-1
+508037
+380090
+-1
+508037
+380091
+-1
+508037
+380092
+-1
+508037
+380093
+-1
+508037
+380094
+-1
+508037
+380095
+-1
+508037
+380096
+-1
+508037
+380097
+-1
+508037
+380098
+-1
+508037
+380099
+-1
+508037
+380100
+-1
+508037
+380101
+-1
+508037
+380102
+-1
+508037
+380103
+-1
+508037
+380104
+-1
+508037
+380105
+-1
+508037
+380106
+-1
+508037
+380107
+-1
+508037
+380108
+-1
+508037
+380109
+-1
+508037
+380110
+-1
+508037
+380111
+-1
+508037
+380112
+-1
+508037
+380113
+-1
+508037
+380114
+-1
+508037
+380115
+-1
+508037
+380116
+-1
+508037
+380117
+-1
+508037
+380118
+-1
+508037
+380119
+-1
+508037
+380120
+-1
+508037
+380121
+-1
+508037
+380122
+-1
+508037
+380123
+-1
+508037
+380124
+-1
+508037
+380125
+-1
+508037
+380126
+-1
+508037
+380127
+-1
+508037
+380128
+-1
+508037
+380129
+-1
+508037
+380130
+-1
+508037
+380131
+-1
+508037
+380132
+-1
+508037
+380133
+-1
+508037
+380134
+-1
+508037
+380135
+-1
+508037
+380136
+-1
+508037
+380137
+-1
+508037
+380138
+-1
+508037
+380139
+-1
+508037
+380140
+-1
+508037
+380141
+-1
+508037
+380142
+-1
+508037
+380143
+-1
+508037
+380144
+-1
+508037
+380145
+-1
+508037
+380146
+-1
+508037
+380147
+-1
+508037
+380148
+-1
+508037
+380149
+-1
+508037
+380150
+-1
+508037
+380151
+-1
+508037
+380152
+-1
+508037
+380153
+-1
+508037
+380154
+-1
+508037
+380155
+-1
+508037
+380156
+-1
+508037
+380157
+-1
+508037
+380158
+-1
+508037
+380159
+-1
+508037
+380160
+-1
+508037
+380161
+-1
+508037
+380162
+-1
+508037
+380163
+-1
+508037
+380164
+-1
+508037
+380165
+-1
+508037
+380166
+-1
+508037
+380167
+-1
+508037
+380168
+-1
+508037
+380169
+-1
+508037
+380170
+-1
+508037
+380171
+-1
+508037
+380172
+-1
+508037
+380173
+-1
+508037
+380174
+-1
+508037
+380175
+-1
+508037
+380176
+-1
+508037
+380177
+-1
+508037
+380178
+-1
+508037
+380179
+-1
+508037
+380180
+-1
+508037
+380181
+-1
+508037
+380182
+-1
+508037
+380183
+-1
+508037
+380184
+-1
+508037
+380185
+-1
+508037
+380186
+-1
+508037
+380187
+-1
+508037
+380188
+-1
+508037
+380189
+-1
+508037
+380190
+-1
+508037
+380191
+-1
+508037
+380192
+-1
+508037
+380193
+-1
+508037
+380194
+-1
+508037
+380195
+-1
+508037
+380196
+-1
+508037
+380197
+-1
+508037
+380198
+-1
+508037
+380199
+-1
+508037
+380200
+-1
+508037
+380201
+-1
+508037
+380202
+-1
+508037
+380203
+-1
+508037
+380204
+-1
+508037
+380205
+-1
+508037
+380206
+-1
+508037
+380207
+-1
+508037
+380208
+-1
+508037
+380209
+-1
+508037
+380210
+-1
+508037
+380211
+-1
+508037
+380212
+-1
+508037
+380213
+-1
+508037
+380214
+-1
+508037
+380215
+-1
+508037
+380251
+-1
+508037
+380252
+-1
+508037
+380253
+-1
+508037
+380254
+-1
+508037
+380255
+-1
+508037
+380256
+-1
+508037
+380257
+-1
+508037
+380258
+-1
+508037
+380259
+-1
+508037
+380260
+-1
+508037
+380261
+-1
+508037
+380262
+-1
+508037
+380263
+-1
+508037
+380264
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/VILLETA.GRE b/DerClouProfiData/DATA/VILLETA.GRE
new file mode 100644
index 0000000..733651b
--- /dev/null
+++ b/DerClouProfiData/DATA/VILLETA.GRE
@@ -0,0 +1,14 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+160197
+160197
+508014
+150183
+150183
+508015
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/VILLETA.GUA b/DerClouProfiData/DATA/VILLETA.GUA
new file mode 100644
index 0000000..0bee1d1
--- /dev/null
+++ b/DerClouProfiData/DATA/VILLETA.GUA
@@ -0,0 +1,607 @@
+ACLI
+508500
+ACTI
+1
+15
+8
+ACTI
+1
+25
+2
+ACTI
+10
+15
+150149
+ACTI
+8
+9
+150149
+ACTI
+1
+13
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+150149
+ACTI
+1
+4
+2
+ACTI
+1
+33
+4
+ACTI
+1
+4
+2
+ACTI
+1
+3
+4
+ACTI
+10
+15
+150128
+ACTI
+8
+9
+150128
+ACTI
+1
+1
+1
+ACTI
+1
+12
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+150128
+ACTI
+1
+7
+2
+ACTI
+1
+4
+4
+ACTI
+1
+13
+2
+ACTI
+8
+18
+150188
+ACTI
+2
+90
+ACTI
+1
+1
+1
+ACTI
+1
+1
+2
+ACTI
+9
+18
+150188
+ACTI
+1
+19
+1
+ACTI
+1
+7
+4
+ACTI
+1
+5
+1
+ACTI
+1
+1
+4
+ACTI
+1
+3
+1
+ACTI
+10
+15
+150120
+ACTI
+8
+9
+150120
+ACTI
+1
+1
+1
+ACTI
+1
+1
+8
+ACTI
+1
+14
+1
+ACTI
+1
+1
+2
+ACTI
+9
+9
+150120
+ACTI
+1
+19
+1
+ACTI
+1
+24
+8
+ACTI
+1
+9
+1
+ACTI
+1
+1
+8
+ACTI
+1
+1
+1
+ACTI
+1
+2
+8
+ACTI
+10
+15
+150162
+ACTI
+8
+9
+150162
+ACTI
+1
+1
+1
+ACTI
+1
+14
+8
+ACTI
+1
+2
+4
+ACTI
+9
+9
+150162
+ACTI
+1
+4
+8
+ACTI
+1
+7
+2
+ACLI
+508501
+ACTI
+1
+17
+8
+ACTI
+1
+19
+2
+ACTI
+1
+5
+8
+ACTI
+10
+15
+150069
+ACTI
+8
+9
+150069
+ACTI
+1
+12
+8
+ACTI
+2
+90
+ACTI
+1
+15
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+150069
+ACTI
+1
+18
+4
+ACTI
+1
+16
+1
+ACTI
+1
+1
+4
+ACTI
+1
+8
+1
+ACTI
+10
+15
+150154
+ACTI
+8
+9
+150154
+ACTI
+1
+41
+1
+ACTI
+8
+15
+150201
+ACTI
+10
+15
+150201
+ACTI
+9
+15
+150201
+ACTI
+1
+44
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+150154
+ACTI
+1
+9
+4
+ACTI
+8
+15
+150200
+ACTI
+10
+15
+150200
+ACTI
+9
+15
+150200
+ACTI
+1
+3
+8
+ACTI
+1
+3
+2
+ACTI
+1
+5
+8
+ACLI
+508502
+ACTI
+1
+24
+2
+ACTI
+1
+3
+8
+ACTI
+1
+4
+2
+ACTI
+10
+15
+160096
+ACTI
+1
+1
+1
+ACTI
+1
+1
+2
+ACTI
+8
+9
+160096
+ACTI
+1
+15
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+160096
+ACTI
+1
+50
+2
+ACTI
+10
+15
+160141
+ACTI
+8
+9
+160141
+ACTI
+1
+15
+2
+ACTI
+1
+1
+1
+ACTI
+9
+9
+160141
+ACTI
+1
+8
+8
+ACTI
+1
+12
+2
+ACTI
+1
+2
+8
+ACTI
+10
+15
+160172
+ACTI
+8
+9
+160172
+ACTI
+1
+40
+8
+ACTI
+1
+12
+2
+ACTI
+1
+9
+8
+ACTI
+1
+9
+2
+ACTI
+1
+1
+4
+ACTI
+10
+15
+160192
+ACTI
+1
+10
+1
+ACTI
+1
+6
+4
+ACTI
+1
+9
+1
+ACTI
+1
+27
+4
+ACTI
+1
+2
+1
+ACTI
+1
+16
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+160172
+ACTI
+1
+3
+4
+ACTI
+1
+7
+1
+ACTI
+1
+9
+4
+ACTI
+1
+6
+1
+ACTI
+10
+15
+160141
+ACTI
+8
+9
+160141
+ACTI
+1
+1
+1
+ACTI
+1
+1
+8
+ACTI
+1
+16
+1
+ACTI
+1
+3
+2
+ACTI
+9
+9
+160141
+ACTI
+1
+43
+1
+ACTI
+1
+1
+8
+ACTI
+1
+8
+1
+ACTI
+10
+15
+160096
+ACTI
+8
+9
+160096
+ACTI
+1
+15
+1
+ACTI
+1
+2
+2
+ACTI
+9
+9
+160096
+ACTI
+1
+6
+1
+ACTI
+1
+10
+8
+ACTI
+10
+15
+160127
+ACTI
+8
+9
+160127
+ACTI
+1
+21
+8
+ACTI
+1
+13
+1
+ACTI
+10
+15
+160119
+ACTI
+1
+13
+2
+ACTI
+1
+22
+4
+ACTI
+1
+1
+8
+ACTI
+9
+9
+160127
+ACTI
+1
+15
+4
+ACTI
+1
+21
+1
+ACTI
+1
+5
+4
+ACTI
+2
+30
+ACTI
+1
+7
+8
diff --git a/DerClouProfiData/DATA/VILLETA.SPO b/DerClouProfiData/DATA/VILLETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/VILLETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/VILLETA0.DAT b/DerClouProfiData/DATA/VILLETA0.DAT
new file mode 100644
index 0000000..f82f4bd
Binary files /dev/null and b/DerClouProfiData/DATA/VILLETA0.DAT differ
diff --git a/DerClouProfiData/DATA/VILLETA0.LFD b/DerClouProfiData/DATA/VILLETA0.LFD
new file mode 100644
index 0000000..4a18a45
--- /dev/null
+++ b/DerClouProfiData/DATA/VILLETA0.LFD
@@ -0,0 +1 @@
+����������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/VILLETA0.REL b/DerClouProfiData/DATA/VILLETA0.REL
new file mode 100644
index 0000000..d379417
--- /dev/null
+++ b/DerClouProfiData/DATA/VILLETA0.REL
@@ -0,0 +1,719 @@
+RELF
+RTAB
+150011
+RTAB
+150009
+RTAB
+150008
+RTAB
+150010
+508014
+150208
+-1
+508014
+150209
+-1
+508014
+150210
+-1
+508014
+150212
+-1
+RTAB
+150007
+150207
+9602
+1
+150184
+9602
+50
+150180
+9600
+500
+150187
+9600
+110
+150202
+9604
+16
+RTAB
+150006
+RTAB
+150005
+150200
+150149
+-1
+150149
+150200
+-1
+150201
+150197
+-1
+150197
+150201
+-1
+150201
+150195
+-1
+150195
+150201
+-1
+150201
+150069
+-1
+150069
+150201
+-1
+150201
+150194
+-1
+150194
+150201
+-1
+RTAB
+150004
+150162
+9102
+-1
+150154
+9102
+-1
+150149
+9102
+-1
+150140
+9102
+-1
+150128
+9102
+-1
+150120
+9102
+-1
+150069
+9102
+-1
+150083
+9102
+-1
+RTAB
+150003
+508014
+150213
+-1
+508014
+150207
+-1
+508014
+150200
+-1
+508014
+150197
+-1
+508014
+150196
+-1
+508014
+150195
+-1
+508014
+150194
+-1
+508014
+150192
+-1
+508014
+150191
+-1
+508014
+150190
+-1
+508014
+150189
+-1
+508014
+150188
+-1
+508014
+150182
+-1
+508014
+150181
+-1
+508014
+150167
+-1
+508014
+150166
+-1
+508014
+150165
+-1
+508014
+150164
+-1
+508014
+150163
+-1
+508014
+150162
+-1
+508014
+150161
+-1
+508014
+150160
+-1
+508014
+150159
+-1
+508014
+150158
+-1
+508014
+150157
+-1
+508014
+150156
+-1
+508014
+150155
+-1
+508014
+150154
+-1
+508014
+150153
+-1
+508014
+150152
+-1
+508014
+150151
+-1
+508014
+150150
+-1
+508014
+150149
+-1
+508014
+150148
+-1
+508014
+150147
+-1
+508014
+150146
+-1
+508014
+150145
+-1
+508014
+150144
+-1
+508014
+150143
+-1
+508014
+150142
+-1
+508014
+150141
+-1
+508014
+150140
+-1
+508014
+150139
+-1
+508014
+150138
+-1
+508014
+150137
+-1
+508014
+150136
+-1
+508014
+150135
+-1
+508014
+150134
+-1
+508014
+150133
+-1
+508014
+150132
+-1
+508014
+150131
+-1
+508014
+150130
+-1
+508014
+150129
+-1
+508014
+150128
+-1
+508014
+150127
+-1
+508014
+150126
+-1
+508014
+150125
+-1
+508014
+150124
+-1
+508014
+150123
+-1
+508014
+150122
+-1
+508014
+150121
+-1
+508014
+150120
+-1
+508014
+150119
+-1
+508014
+150118
+-1
+508014
+150117
+-1
+508014
+150059
+-1
+508014
+150058
+-1
+508014
+150057
+-1
+508014
+150056
+-1
+508014
+150055
+-1
+508014
+150054
+-1
+508014
+150053
+-1
+508014
+150052
+-1
+508014
+150051
+-1
+508014
+150050
+-1
+508014
+150049
+-1
+508014
+150048
+-1
+508014
+150047
+-1
+508014
+150001
+-1
+508014
+150002
+-1
+508014
+150003
+-1
+508014
+150004
+-1
+508014
+150005
+-1
+508014
+150006
+-1
+508014
+150007
+-1
+508014
+150008
+-1
+508014
+150009
+-1
+508014
+150010
+-1
+508014
+150011
+-1
+508014
+150012
+-1
+508014
+150013
+-1
+508014
+150014
+-1
+508014
+150015
+-1
+508014
+150016
+-1
+508014
+150017
+-1
+508014
+150018
+-1
+508014
+150019
+-1
+508014
+150020
+-1
+508014
+150021
+-1
+508014
+150022
+-1
+508014
+150023
+-1
+508014
+150024
+-1
+508014
+150025
+-1
+508014
+150026
+-1
+508014
+150027
+-1
+508014
+150028
+-1
+508014
+150029
+-1
+508014
+150030
+-1
+508014
+150031
+-1
+508014
+150032
+-1
+508014
+150033
+-1
+508014
+150034
+-1
+508014
+150035
+-1
+508014
+150036
+-1
+508014
+150037
+-1
+508014
+150038
+-1
+508014
+150039
+-1
+508014
+150040
+-1
+508014
+150041
+-1
+508014
+150042
+-1
+508014
+150043
+-1
+508014
+150044
+-1
+508014
+150045
+-1
+508014
+150046
+-1
+508014
+150060
+-1
+508014
+150061
+-1
+508014
+150062
+-1
+508014
+150063
+-1
+508014
+150064
+-1
+508014
+150065
+-1
+508014
+150066
+-1
+508014
+150067
+-1
+508014
+150068
+-1
+508014
+150069
+-1
+508014
+150070
+-1
+508014
+150071
+-1
+508014
+150072
+-1
+508014
+150073
+-1
+508014
+150074
+-1
+508014
+150075
+-1
+508014
+150076
+-1
+508014
+150077
+-1
+508014
+150078
+-1
+508014
+150079
+-1
+508014
+150080
+-1
+508014
+150081
+-1
+508014
+150082
+-1
+508014
+150083
+-1
+508014
+150084
+-1
+508014
+150085
+-1
+508014
+150086
+-1
+508014
+150087
+-1
+508014
+150088
+-1
+508014
+150089
+-1
+508014
+150090
+-1
+508014
+150091
+-1
+508014
+150092
+-1
+508014
+150093
+-1
+508014
+150094
+-1
+508014
+150095
+-1
+508014
+150096
+-1
+508014
+150097
+-1
+508014
+150098
+-1
+508014
+150099
+-1
+508014
+150100
+-1
+508014
+150101
+-1
+508014
+150102
+-1
+508014
+150103
+-1
+508014
+150104
+-1
+508014
+150105
+-1
+508014
+150106
+-1
+508014
+150107
+-1
+508014
+150108
+-1
+508014
+150109
+-1
+508014
+150110
+-1
+508014
+150111
+-1
+508014
+150112
+-1
+508014
+150113
+-1
+508014
+150114
+-1
+508014
+150115
+-1
+508014
+150116
+-1
+508014
+150168
+-1
+508014
+150169
+-1
+508014
+150170
+-1
+508014
+150171
+-1
+508014
+150172
+-1
+508014
+150173
+-1
+508014
+150174
+-1
+508014
+150175
+-1
+508014
+150176
+-1
+508014
+150177
+-1
+508014
+150178
+-1
+508014
+150179
+-1
+508014
+150180
+-1
+508014
+150183
+-1
+508014
+150184
+-1
+508014
+150185
+-1
+508014
+150186
+-1
+508014
+150187
+-1
+508014
+150193
+-1
+508014
+150201
+-1
+508014
+150202
+-1
+508014
+150203
+-1
+508014
+150204
+-1
+508014
+150205
+-1
+508014
+150206
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/VILLETA1.DAT b/DerClouProfiData/DATA/VILLETA1.DAT
new file mode 100644
index 0000000..cc191af
Binary files /dev/null and b/DerClouProfiData/DATA/VILLETA1.DAT differ
diff --git a/DerClouProfiData/DATA/VILLETA1.LFD b/DerClouProfiData/DATA/VILLETA1.LFD
new file mode 100644
index 0000000..89a97d1
--- /dev/null
+++ b/DerClouProfiData/DATA/VILLETA1.LFD
@@ -0,0 +1 @@
+�������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/VILLETA1.REL b/DerClouProfiData/DATA/VILLETA1.REL
new file mode 100644
index 0000000..2ec7478
--- /dev/null
+++ b/DerClouProfiData/DATA/VILLETA1.REL
@@ -0,0 +1,745 @@
+RELF
+RTAB
+160011
+RTAB
+160010
+508015
+160210
+-1
+508015
+160211
+-1
+508015
+160212
+-1
+508015
+160213
+-1
+508015
+160214
+-1
+RTAB
+160007
+160209
+9609
+9
+160205
+9600
+90
+160204
+9600
+20
+160203
+9605
+160
+160198
+9600
+40
+160190
+9600
+60
+160196
+9600
+30
+160192
+9635
+200000
+160192
+9602
+123
+160201
+9608
+9
+160199
+9607
+99
+RTAB
+160006
+RTAB
+160005
+160190
+160195
+-1
+160195
+160190
+-1
+160196
+160195
+-1
+160195
+160196
+-1
+160198
+160195
+-1
+160195
+160198
+-1
+160192
+160195
+-1
+160195
+160192
+-1
+160203
+160195
+-1
+160195
+160203
+-1
+RTAB
+160004
+160096
+9102
+-1
+160109
+9102
+-1
+160119
+9102
+-1
+160127
+9102
+-1
+160141
+9102
+-1
+160166
+9102
+-1
+160172
+9102
+-1
+160182
+9102
+-1
+RTAB
+160003
+508015
+160209
+-1
+508015
+160208
+-1
+508015
+160207
+-1
+508015
+160206
+-1
+508015
+160205
+-1
+508015
+160204
+-1
+508015
+160203
+-1
+508015
+160202
+-1
+508015
+160201
+-1
+508015
+160200
+-1
+508015
+160199
+-1
+508015
+160198
+-1
+508015
+160197
+-1
+508015
+160190
+-1
+508015
+160189
+-1
+508015
+160188
+-1
+508015
+160187
+-1
+508015
+160186
+-1
+508015
+160092
+-1
+508015
+160091
+-1
+508015
+160090
+-1
+508015
+160089
+-1
+508015
+160088
+-1
+508015
+160087
+-1
+508015
+160086
+-1
+508015
+160085
+-1
+508015
+160084
+-1
+508015
+160083
+-1
+508015
+160082
+-1
+508015
+160081
+-1
+508015
+160080
+-1
+508015
+160079
+-1
+508015
+160078
+-1
+508015
+160077
+-1
+508015
+160076
+-1
+508015
+160075
+-1
+508015
+160074
+-1
+508015
+160073
+-1
+508015
+160072
+-1
+508015
+160071
+-1
+508015
+160070
+-1
+508015
+160069
+-1
+508015
+160068
+-1
+508015
+160067
+-1
+508015
+160066
+-1
+508015
+160065
+-1
+508015
+160064
+-1
+508015
+160063
+-1
+508015
+160062
+-1
+508015
+160061
+-1
+508015
+160060
+-1
+508015
+160059
+-1
+508015
+160058
+-1
+508015
+160057
+-1
+508015
+160056
+-1
+508015
+160055
+-1
+508015
+160054
+-1
+508015
+160053
+-1
+508015
+160052
+-1
+508015
+160051
+-1
+508015
+160050
+-1
+508015
+160049
+-1
+508015
+160048
+-1
+508015
+160047
+-1
+508015
+160046
+-1
+508015
+160045
+-1
+508015
+160044
+-1
+508015
+160043
+-1
+508015
+160042
+-1
+508015
+160041
+-1
+508015
+160040
+-1
+508015
+160039
+-1
+508015
+160038
+-1
+508015
+160037
+-1
+508015
+160036
+-1
+508015
+160035
+-1
+508015
+160034
+-1
+508015
+160033
+-1
+508015
+160032
+-1
+508015
+160031
+-1
+508015
+160030
+-1
+508015
+160029
+-1
+508015
+160028
+-1
+508015
+160027
+-1
+508015
+160026
+-1
+508015
+160025
+-1
+508015
+160024
+-1
+508015
+160023
+-1
+508015
+160022
+-1
+508015
+160021
+-1
+508015
+160020
+-1
+508015
+160019
+-1
+508015
+160018
+-1
+508015
+160017
+-1
+508015
+160016
+-1
+508015
+160015
+-1
+508015
+160014
+-1
+508015
+160013
+-1
+508015
+160012
+-1
+508015
+160011
+-1
+508015
+160010
+-1
+508015
+160009
+-1
+508015
+160008
+-1
+508015
+160007
+-1
+508015
+160006
+-1
+508015
+160005
+-1
+508015
+160004
+-1
+508015
+160003
+-1
+508015
+160002
+-1
+508015
+160001
+-1
+508015
+160093
+-1
+508015
+160094
+-1
+508015
+160095
+-1
+508015
+160096
+-1
+508015
+160097
+-1
+508015
+160098
+-1
+508015
+160099
+-1
+508015
+160100
+-1
+508015
+160101
+-1
+508015
+160102
+-1
+508015
+160103
+-1
+508015
+160104
+-1
+508015
+160105
+-1
+508015
+160106
+-1
+508015
+160107
+-1
+508015
+160108
+-1
+508015
+160109
+-1
+508015
+160110
+-1
+508015
+160111
+-1
+508015
+160112
+-1
+508015
+160113
+-1
+508015
+160114
+-1
+508015
+160115
+-1
+508015
+160116
+-1
+508015
+160117
+-1
+508015
+160118
+-1
+508015
+160119
+-1
+508015
+160120
+-1
+508015
+160121
+-1
+508015
+160122
+-1
+508015
+160123
+-1
+508015
+160124
+-1
+508015
+160125
+-1
+508015
+160126
+-1
+508015
+160127
+-1
+508015
+160128
+-1
+508015
+160129
+-1
+508015
+160130
+-1
+508015
+160131
+-1
+508015
+160132
+-1
+508015
+160133
+-1
+508015
+160134
+-1
+508015
+160135
+-1
+508015
+160136
+-1
+508015
+160137
+-1
+508015
+160138
+-1
+508015
+160139
+-1
+508015
+160140
+-1
+508015
+160141
+-1
+508015
+160142
+-1
+508015
+160143
+-1
+508015
+160144
+-1
+508015
+160145
+-1
+508015
+160146
+-1
+508015
+160147
+-1
+508015
+160148
+-1
+508015
+160149
+-1
+508015
+160150
+-1
+508015
+160151
+-1
+508015
+160152
+-1
+508015
+160153
+-1
+508015
+160154
+-1
+508015
+160155
+-1
+508015
+160156
+-1
+508015
+160157
+-1
+508015
+160158
+-1
+508015
+160159
+-1
+508015
+160160
+-1
+508015
+160161
+-1
+508015
+160162
+-1
+508015
+160163
+-1
+508015
+160164
+-1
+508015
+160165
+-1
+508015
+160166
+-1
+508015
+160167
+-1
+508015
+160168
+-1
+508015
+160169
+-1
+508015
+160170
+-1
+508015
+160171
+-1
+508015
+160172
+-1
+508015
+160173
+-1
+508015
+160174
+-1
+508015
+160175
+-1
+508015
+160176
+-1
+508015
+160177
+-1
+508015
+160178
+-1
+508015
+160179
+-1
+508015
+160180
+-1
+508015
+160181
+-1
+508015
+160182
+-1
+508015
+160183
+-1
+508015
+160184
+-1
+508015
+160185
+-1
+508015
+160191
+-1
+508015
+160192
+-1
+508015
+160193
+-1
+508015
+160194
+-1
+508015
+160195
+-1
+508015
+160196
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/WESTETA.GRE b/DerClouProfiData/DATA/WESTETA.GRE
new file mode 100644
index 0000000..a41c24e
--- /dev/null
+++ b/DerClouProfiData/DATA/WESTETA.GRE
@@ -0,0 +1,8 @@
+RELF
+RTAB
+1
+RTAB
+2
+RTAB
+3
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/WESTETA.GUA b/DerClouProfiData/DATA/WESTETA.GUA
new file mode 100644
index 0000000..a2c25da
--- /dev/null
+++ b/DerClouProfiData/DATA/WESTETA.GUA
@@ -0,0 +1,50 @@
+ACLI
+508500
+ACTI
+2
+90
+ACTI
+1
+14
+2
+ACTI
+1
+4
+4
+ACTI
+10
+15
+560038
+ACTI
+1
+16
+8
+ACTI
+1
+107
+2
+ACTI
+2
+90
+ACTI
+1
+5
+8
+ACTI
+1
+142
+1
+ACTI
+2
+90
+ACTI
+1
+17
+4
+ACTI
+1
+21
+2
+ACTI
+2
+21
diff --git a/DerClouProfiData/DATA/WESTETA.SPO b/DerClouProfiData/DATA/WESTETA.SPO
new file mode 100644
index 0000000..e7011d9
--- /dev/null
+++ b/DerClouProfiData/DATA/WESTETA.SPO
@@ -0,0 +1,2 @@
+0
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATA/WESTETA0.DAT b/DerClouProfiData/DATA/WESTETA0.DAT
new file mode 100644
index 0000000..a6b05d6
Binary files /dev/null and b/DerClouProfiData/DATA/WESTETA0.DAT differ
diff --git a/DerClouProfiData/DATA/WESTETA0.LFD b/DerClouProfiData/DATA/WESTETA0.LFD
new file mode 100644
index 0000000..52fa752
Binary files /dev/null and b/DerClouProfiData/DATA/WESTETA0.LFD differ
diff --git a/DerClouProfiData/DATA/WESTETA0.REL b/DerClouProfiData/DATA/WESTETA0.REL
new file mode 100644
index 0000000..212a822
--- /dev/null
+++ b/DerClouProfiData/DATA/WESTETA0.REL
@@ -0,0 +1,533 @@
+RELF
+RTAB
+560010
+508105
+560162
+-1
+508105
+560161
+-1
+508105
+560160
+-1
+508105
+560159
+-1
+RTAB
+560007
+560145
+9602
+546
+560136
+9602
+100
+560136
+9619
+300
+560144
+9648
+11000
+560150
+9605
+400
+560151
+9605
+100
+560152
+9605
+100
+RTAB
+560006
+RTAB
+560005
+RTAB
+560004
+560105
+9102
+-1
+560084
+9102
+-1
+560038
+9102
+-1
+560099
+9102
+-1
+RTAB
+560003
+508105
+560114
+-1
+508105
+560113
+-1
+508105
+560112
+-1
+508105
+560111
+-1
+508105
+560110
+-1
+508105
+560109
+-1
+508105
+560108
+-1
+508105
+560107
+-1
+508105
+560106
+-1
+508105
+560105
+-1
+508105
+560104
+-1
+508105
+560089
+-1
+508105
+560088
+-1
+508105
+560087
+-1
+508105
+560086
+-1
+508105
+560085
+-1
+508105
+560084
+-1
+508105
+560083
+-1
+508105
+560082
+-1
+508105
+560081
+-1
+508105
+560080
+-1
+508105
+560079
+-1
+508105
+560078
+-1
+508105
+560077
+-1
+508105
+560076
+-1
+508105
+560075
+-1
+508105
+560074
+-1
+508105
+560073
+-1
+508105
+560072
+-1
+508105
+560071
+-1
+508105
+560070
+-1
+508105
+560069
+-1
+508105
+560068
+-1
+508105
+560067
+-1
+508105
+560066
+-1
+508105
+560065
+-1
+508105
+560064
+-1
+508105
+560063
+-1
+508105
+560062
+-1
+508105
+560061
+-1
+508105
+560060
+-1
+508105
+560059
+-1
+508105
+560058
+-1
+508105
+560057
+-1
+508105
+560056
+-1
+508105
+560055
+-1
+508105
+560054
+-1
+508105
+560053
+-1
+508105
+560052
+-1
+508105
+560051
+-1
+508105
+560050
+-1
+508105
+560049
+-1
+508105
+560048
+-1
+508105
+560047
+-1
+508105
+560046
+-1
+508105
+560045
+-1
+508105
+560044
+-1
+508105
+560043
+-1
+508105
+560042
+-1
+508105
+560041
+-1
+508105
+560005
+-1
+508105
+560004
+-1
+508105
+560003
+-1
+508105
+560002
+-1
+508105
+560001
+-1
+508105
+560006
+-1
+508105
+560007
+-1
+508105
+560008
+-1
+508105
+560009
+-1
+508105
+560010
+-1
+508105
+560011
+-1
+508105
+560012
+-1
+508105
+560013
+-1
+508105
+560014
+-1
+508105
+560015
+-1
+508105
+560016
+-1
+508105
+560017
+-1
+508105
+560018
+-1
+508105
+560019
+-1
+508105
+560020
+-1
+508105
+560021
+-1
+508105
+560022
+-1
+508105
+560023
+-1
+508105
+560024
+-1
+508105
+560025
+-1
+508105
+560026
+-1
+508105
+560027
+-1
+508105
+560028
+-1
+508105
+560029
+-1
+508105
+560030
+-1
+508105
+560031
+-1
+508105
+560032
+-1
+508105
+560033
+-1
+508105
+560034
+-1
+508105
+560035
+-1
+508105
+560036
+-1
+508105
+560037
+-1
+508105
+560038
+-1
+508105
+560039
+-1
+508105
+560040
+-1
+508105
+560090
+-1
+508105
+560091
+-1
+508105
+560092
+-1
+508105
+560093
+-1
+508105
+560094
+-1
+508105
+560095
+-1
+508105
+560096
+-1
+508105
+560097
+-1
+508105
+560098
+-1
+508105
+560099
+-1
+508105
+560100
+-1
+508105
+560101
+-1
+508105
+560102
+-1
+508105
+560103
+-1
+508105
+560115
+-1
+508105
+560116
+-1
+508105
+560117
+-1
+508105
+560118
+-1
+508105
+560119
+-1
+508105
+560120
+-1
+508105
+560121
+-1
+508105
+560122
+-1
+508105
+560123
+-1
+508105
+560124
+-1
+508105
+560125
+-1
+508105
+560126
+-1
+508105
+560127
+-1
+508105
+560128
+-1
+508105
+560129
+-1
+508105
+560130
+-1
+508105
+560131
+-1
+508105
+560132
+-1
+508105
+560133
+-1
+508105
+560134
+-1
+508105
+560135
+-1
+508105
+560136
+-1
+508105
+560137
+-1
+508105
+560138
+-1
+508105
+560139
+-1
+508105
+560140
+-1
+508105
+560141
+-1
+508105
+560142
+-1
+508105
+560143
+-1
+508105
+560144
+-1
+508105
+560145
+-1
+508105
+560146
+-1
+508105
+560147
+-1
+508105
+560148
+-1
+508105
+560149
+-1
+508105
+560150
+-1
+508105
+560151
+-1
+508105
+560152
+-1
+508105
+560153
+-1
+508105
+560154
+-1
+508105
+560155
+-1
+508105
+560156
+-1
+508105
+560157
+-1
+508105
+560158
+-1
+
\ No newline at end of file
diff --git a/DerClouProfiData/DATADISK/ANTIETA.PLL b/DerClouProfiData/DATADISK/ANTIETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/ANTIETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/AUNTETA.PLL b/DerClouProfiData/DATADISK/AUNTETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/AUNTETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/BAKEETA.PLL b/DerClouProfiData/DATADISK/BAKEETA.PLL
new file mode 100644
index 0000000..1874828
--- /dev/null
+++ b/DerClouProfiData/DATADISK/BAKEETA.PLL
@@ -0,0 +1 @@
+0
diff --git a/DerClouProfiData/DATADISK/BANKETA.PLL b/DerClouProfiData/DATADISK/BANKETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/BANKETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/BRITETA.PLL b/DerClouProfiData/DATADISK/BRITETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/BRITETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/BUCKETA.PLL b/DerClouProfiData/DATADISK/BUCKETA.PLL
new file mode 100644
index 0000000..1874828
--- /dev/null
+++ b/DerClouProfiData/DATADISK/BUCKETA.PLL
@@ -0,0 +1 @@
+0
diff --git a/DerClouProfiData/DATADISK/BULCETA.PLL b/DerClouProfiData/DATADISK/BULCETA.PLL
new file mode 100644
index 0000000..1874828
--- /dev/null
+++ b/DerClouProfiData/DATADISK/BULCETA.PLL
@@ -0,0 +1 @@
+0
diff --git a/DerClouProfiData/DATADISK/CHISETA.PLL b/DerClouProfiData/DATADISK/CHISETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/CHISETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/DOWNETA.PLL b/DerClouProfiData/DATADISK/DOWNETA.PLL
new file mode 100644
index 0000000..1874828
--- /dev/null
+++ b/DerClouProfiData/DATADISK/DOWNETA.PLL
@@ -0,0 +1 @@
+0
diff --git a/DerClouProfiData/DATADISK/GAMES.LST b/DerClouProfiData/DATADISK/GAMES.LST
new file mode 100644
index 0000000..14cb5c2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/GAMES.LST
@@ -0,0 +1,4 @@
+<Spielstand 1>
+<Spielstand 2>
+<Spielstand 3>
+<Spielstand 4>
diff --git a/DerClouProfiData/DATADISK/HAMHETA.PLL b/DerClouProfiData/DATADISK/HAMHETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/HAMHETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/JUWEETA.PLL b/DerClouProfiData/DATADISK/JUWEETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/JUWEETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/KASEETA.PLL b/DerClouProfiData/DATADISK/KASEETA.PLL
new file mode 100644
index 0000000..06915ca
--- /dev/null
+++ b/DerClouProfiData/DATADISK/KASEETA.PLL
@@ -0,0 +1,3 @@
+15
+
+
diff --git a/DerClouProfiData/DATADISK/KASEETA1.PLN b/DerClouProfiData/DATADISK/KASEETA1.PLN
new file mode 100644
index 0000000..f84a927
--- /dev/null
+++ b/DerClouProfiData/DATADISK/KASEETA1.PLN
@@ -0,0 +1,972 @@
+SYS 
+HAND
+9801
+HAND
+9803
+HAND
+9805
+HAND
+9832
+HAND
+508500
+HAND
+508501
+HAND
+508502
+TOOB
+9525
+9501
+9502
+9503
+9504
+9505
+9506
+9507
+9508
+9509
+9510
+9511
+9512
+9513
+9514
+9515
+9516
+9517
+9518
+9519
+9520
+9521
+9522
+9523
+9524
+9526
+9527
+TOOE
+ACLI
+9801
+ACLI
+9803
+ACTI
+1
+72
+8
+ACTI
+2
+180
+ACTI
+1
+11
+8
+ACTI
+1
+22
+2
+ACTI
+1
+3
+8
+ACTI
+5
+75
+9509
+508500
+ACTI
+1
+21
+2
+ACTI
+3
+15
+9805
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9801
+ACTI
+1
+65
+2
+ACTI
+1
+12
+4
+ACTI
+1
+67
+2
+ACTI
+1
+15
+8
+ACTI
+1
+12
+2
+ACTI
+2
+225
+ACTI
+1
+12
+2
+ACTI
+1
+3
+4
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+33
+4
+ACTI
+1
+23
+1
+ACTI
+1
+43
+4
+ACTI
+1
+14
+2
+ACTI
+1
+7
+4
+ACTI
+1
+68
+2
+ACTI
+1
+1
+8
+ACTI
+5
+75
+9509
+508501
+ACTI
+3
+15
+9832
+ACTI
+1
+15
+2
+ACTI
+5
+24
+508044
+440235
+ACTI
+1
+15
+1
+ACTI
+1
+3
+8
+ACTI
+2
+666
+ACTI
+1
+14
+8
+ACTI
+1
+13
+1
+ACTI
+1
+7
+8
+ACTI
+5
+75
+9509
+508502
+ACTI
+1
+20
+8
+ACTI
+1
+34
+1
+ACTI
+3
+15
+9801
+ACTI
+3
+15
+9832
+ACTI
+4
+1
+9801
+ACTI
+3
+15
+9805
+ACTI
+1
+91
+1
+ACTI
+1
+36
+4
+ACTI
+1
+33
+1
+ACTI
+1
+1
+8
+ACTI
+4
+1
+9805
+ACTI
+1
+22
+8
+ACTI
+1
+3
+2
+ACTI
+5
+6
+9528
+460290
+ACTI
+2
+618
+ACTI
+5
+6
+9528
+460290
+ACTI
+2
+714
+ACTI
+4
+1
+9805
+ACTI
+1
+18
+8
+ACTI
+1
+9
+1
+ACTI
+1
+14
+8
+ACTI
+1
+14
+2
+ACTI
+5
+24
+508045
+460132
+ACTI
+1
+29
+1
+ACTI
+1
+8
+8
+ACTI
+1
+52
+1
+ACTI
+1
+20
+4
+ACTI
+1
+22
+2
+ACTI
+1
+39
+4
+ACTI
+1
+34
+2
+ACTI
+1
+7
+2
+ACTI
+1
+3
+4
+ACTI
+8
+15
+470172
+ACTI
+6
+9
+9636
+470172
+ACTI
+1
+3
+8
+ACTI
+1
+41
+1
+ACTI
+1
+39
+8
+ACTI
+1
+22
+1
+ACTI
+1
+19
+8
+ACTI
+1
+66
+2
+ACTI
+1
+7
+4
+ACTI
+1
+12
+2
+ACTI
+5
+24
+508046
+470141
+ACTI
+1
+10
+1
+ACTI
+1
+32
+4
+ACTI
+1
+5
+2
+ACTI
+1
+17
+4
+ACTI
+1
+30
+2
+ACTI
+1
+29
+8
+ACTI
+1
+138
+2
+ACTI
+1
+40
+4
+ACTI
+1
+15
+2
+ACTI
+5
+24
+508045
+460119
+ACTI
+1
+98
+1
+ACTI
+1
+53
+8
+ACTI
+1
+29
+1
+ACTI
+4
+1
+9805
+ACTI
+1
+40
+8
+ACLI
+9805
+ACTI
+1
+86
+8
+ACTI
+4
+1
+9803
+ACTI
+1
+17
+8
+ACTI
+1
+88
+1
+ACTI
+1
+5
+4
+ACTI
+5
+159
+9524
+440170
+ACTI
+8
+6
+440170
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+34
+4
+ACTI
+1
+11
+1
+ACTI
+5
+96
+9512
+440195
+ACTI
+8
+21
+440195
+ACTI
+1
+7
+2
+ACTI
+1
+6
+4
+ACTI
+1
+2
+1
+ACTI
+1
+1
+8
+ACTI
+2
+702
+ACTI
+4
+1
+9803
+ACTI
+1
+7
+8
+ACTI
+1
+20
+1
+ACTI
+1
+46
+4
+ACTI
+1
+96
+2
+ACTI
+5
+24
+508044
+440235
+ACTI
+1
+13
+1
+ACTI
+1
+41
+8
+ACTI
+1
+140
+1
+ACTI
+1
+30
+4
+ACTI
+1
+30
+1
+ACTI
+1
+3
+8
+ACTI
+5
+96
+9512
+460190
+ACTI
+8
+21
+460190
+ACTI
+1
+1
+8
+ACTI
+1
+1
+1
+ACTI
+1
+30
+8
+ACTI
+1
+9
+1
+ACTI
+1
+15
+8
+ACTI
+1
+5
+2
+ACTI
+3
+15
+9803
+ACTI
+4
+1
+9801
+ACTI
+1
+13
+2
+ACTI
+5
+24
+508045
+460132
+ACTI
+1
+31
+1
+ACTI
+1
+7
+8
+ACTI
+1
+50
+1
+ACTI
+1
+20
+4
+ACTI
+1
+20
+2
+ACTI
+1
+5
+4
+ACTI
+5
+96
+9512
+470151
+ACTI
+8
+21
+470151
+ACTI
+1
+1
+2
+ACTI
+1
+34
+4
+ACTI
+1
+13
+2
+ACTI
+5
+246
+9513
+470164
+ACTI
+8
+21
+470164
+ACTI
+1
+28
+2
+ACTI
+1
+4
+4
+ACTI
+5
+1539
+9517
+470172
+ACTI
+1
+4
+8
+ACTI
+3
+15
+9803
+ACTI
+3
+15
+9803
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9801
+ACTI
+1
+42
+1
+ACTI
+1
+23
+8
+ACTI
+1
+1
+2
+ACTI
+1
+15
+8
+ACTI
+1
+22
+1
+ACTI
+1
+20
+8
+ACTI
+1
+56
+2
+ACTI
+1
+6
+4
+ACTI
+1
+27
+2
+ACTI
+5
+24
+508046
+470141
+ACTI
+1
+10
+1
+ACTI
+1
+49
+4
+ACTI
+1
+30
+2
+ACTI
+1
+28
+8
+ACTI
+1
+139
+2
+ACTI
+1
+40
+4
+ACTI
+1
+14
+2
+ACTI
+5
+24
+508045
+460119
+ACTI
+1
+96
+1
+ACTI
+1
+57
+8
+ACTI
+1
+32
+1
+ACTI
+1
+7
+8
+ACTI
+4
+1
+9801
+ACTI
+5
+72
+9522
+440113
+ACTI
+5
+72
+9522
+440114
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9803
+ACTI
+1
+23
+8
+ACTI
+1
+4
+1
+ACTI
+1
+8
+8
+ACLI
+9832
+ACTI
+1
+55
+8
+ACTI
+4
+1
+9803
+ACTI
+1
+35
+8
+ACTI
+1
+75
+1
+ACTI
+2
+195
+ACTI
+2
+15
+ACTI
+1
+12
+1
+ACTI
+1
+4
+4
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+24
+4
+ACTI
+2
+540
+ACTI
+4
+1
+9803
+ACTI
+1
+8
+4
+ACTI
+1
+26
+1
+ACTI
+1
+47
+4
+ACTI
+1
+68
+2
+ACTI
+1
+4
+8
+ACTI
+1
+4
+2
+ACTI
+2
+15
+ACTI
+1
+93
+1
+ACTI
+1
+8
+4
+ACTI
+1
+3
+1
+ACTI
+5
+6
+9528
+440236
+ACTI
+1
+1
+8
+ACTI
+2
+2697
+ACTI
+1
+1
+2
+ACTI
+1
+1
+1
+ACTI
+5
+6
+9528
+440236
+ACTI
+4
+1
+9805
+ACTI
+1
+27
+8
+ACTI
+1
+18
+2
+ACTI
+1
+28
+8
+ACTI
+1
+25
+1
+ACTI
+1
+1
+8
+ACTI
+1
+19
+8
+ACTI
+1
+4
+1
+ACTI
+1
+13
+8
+ACTI
+1
+10
+1
+ACTI
+1
+9
+8
diff --git a/DerClouProfiData/DATADISK/KASEETA2.PLN b/DerClouProfiData/DATADISK/KASEETA2.PLN
new file mode 100644
index 0000000..f84a927
--- /dev/null
+++ b/DerClouProfiData/DATADISK/KASEETA2.PLN
@@ -0,0 +1,972 @@
+SYS 
+HAND
+9801
+HAND
+9803
+HAND
+9805
+HAND
+9832
+HAND
+508500
+HAND
+508501
+HAND
+508502
+TOOB
+9525
+9501
+9502
+9503
+9504
+9505
+9506
+9507
+9508
+9509
+9510
+9511
+9512
+9513
+9514
+9515
+9516
+9517
+9518
+9519
+9520
+9521
+9522
+9523
+9524
+9526
+9527
+TOOE
+ACLI
+9801
+ACLI
+9803
+ACTI
+1
+72
+8
+ACTI
+2
+180
+ACTI
+1
+11
+8
+ACTI
+1
+22
+2
+ACTI
+1
+3
+8
+ACTI
+5
+75
+9509
+508500
+ACTI
+1
+21
+2
+ACTI
+3
+15
+9805
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9801
+ACTI
+1
+65
+2
+ACTI
+1
+12
+4
+ACTI
+1
+67
+2
+ACTI
+1
+15
+8
+ACTI
+1
+12
+2
+ACTI
+2
+225
+ACTI
+1
+12
+2
+ACTI
+1
+3
+4
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+33
+4
+ACTI
+1
+23
+1
+ACTI
+1
+43
+4
+ACTI
+1
+14
+2
+ACTI
+1
+7
+4
+ACTI
+1
+68
+2
+ACTI
+1
+1
+8
+ACTI
+5
+75
+9509
+508501
+ACTI
+3
+15
+9832
+ACTI
+1
+15
+2
+ACTI
+5
+24
+508044
+440235
+ACTI
+1
+15
+1
+ACTI
+1
+3
+8
+ACTI
+2
+666
+ACTI
+1
+14
+8
+ACTI
+1
+13
+1
+ACTI
+1
+7
+8
+ACTI
+5
+75
+9509
+508502
+ACTI
+1
+20
+8
+ACTI
+1
+34
+1
+ACTI
+3
+15
+9801
+ACTI
+3
+15
+9832
+ACTI
+4
+1
+9801
+ACTI
+3
+15
+9805
+ACTI
+1
+91
+1
+ACTI
+1
+36
+4
+ACTI
+1
+33
+1
+ACTI
+1
+1
+8
+ACTI
+4
+1
+9805
+ACTI
+1
+22
+8
+ACTI
+1
+3
+2
+ACTI
+5
+6
+9528
+460290
+ACTI
+2
+618
+ACTI
+5
+6
+9528
+460290
+ACTI
+2
+714
+ACTI
+4
+1
+9805
+ACTI
+1
+18
+8
+ACTI
+1
+9
+1
+ACTI
+1
+14
+8
+ACTI
+1
+14
+2
+ACTI
+5
+24
+508045
+460132
+ACTI
+1
+29
+1
+ACTI
+1
+8
+8
+ACTI
+1
+52
+1
+ACTI
+1
+20
+4
+ACTI
+1
+22
+2
+ACTI
+1
+39
+4
+ACTI
+1
+34
+2
+ACTI
+1
+7
+2
+ACTI
+1
+3
+4
+ACTI
+8
+15
+470172
+ACTI
+6
+9
+9636
+470172
+ACTI
+1
+3
+8
+ACTI
+1
+41
+1
+ACTI
+1
+39
+8
+ACTI
+1
+22
+1
+ACTI
+1
+19
+8
+ACTI
+1
+66
+2
+ACTI
+1
+7
+4
+ACTI
+1
+12
+2
+ACTI
+5
+24
+508046
+470141
+ACTI
+1
+10
+1
+ACTI
+1
+32
+4
+ACTI
+1
+5
+2
+ACTI
+1
+17
+4
+ACTI
+1
+30
+2
+ACTI
+1
+29
+8
+ACTI
+1
+138
+2
+ACTI
+1
+40
+4
+ACTI
+1
+15
+2
+ACTI
+5
+24
+508045
+460119
+ACTI
+1
+98
+1
+ACTI
+1
+53
+8
+ACTI
+1
+29
+1
+ACTI
+4
+1
+9805
+ACTI
+1
+40
+8
+ACLI
+9805
+ACTI
+1
+86
+8
+ACTI
+4
+1
+9803
+ACTI
+1
+17
+8
+ACTI
+1
+88
+1
+ACTI
+1
+5
+4
+ACTI
+5
+159
+9524
+440170
+ACTI
+8
+6
+440170
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+34
+4
+ACTI
+1
+11
+1
+ACTI
+5
+96
+9512
+440195
+ACTI
+8
+21
+440195
+ACTI
+1
+7
+2
+ACTI
+1
+6
+4
+ACTI
+1
+2
+1
+ACTI
+1
+1
+8
+ACTI
+2
+702
+ACTI
+4
+1
+9803
+ACTI
+1
+7
+8
+ACTI
+1
+20
+1
+ACTI
+1
+46
+4
+ACTI
+1
+96
+2
+ACTI
+5
+24
+508044
+440235
+ACTI
+1
+13
+1
+ACTI
+1
+41
+8
+ACTI
+1
+140
+1
+ACTI
+1
+30
+4
+ACTI
+1
+30
+1
+ACTI
+1
+3
+8
+ACTI
+5
+96
+9512
+460190
+ACTI
+8
+21
+460190
+ACTI
+1
+1
+8
+ACTI
+1
+1
+1
+ACTI
+1
+30
+8
+ACTI
+1
+9
+1
+ACTI
+1
+15
+8
+ACTI
+1
+5
+2
+ACTI
+3
+15
+9803
+ACTI
+4
+1
+9801
+ACTI
+1
+13
+2
+ACTI
+5
+24
+508045
+460132
+ACTI
+1
+31
+1
+ACTI
+1
+7
+8
+ACTI
+1
+50
+1
+ACTI
+1
+20
+4
+ACTI
+1
+20
+2
+ACTI
+1
+5
+4
+ACTI
+5
+96
+9512
+470151
+ACTI
+8
+21
+470151
+ACTI
+1
+1
+2
+ACTI
+1
+34
+4
+ACTI
+1
+13
+2
+ACTI
+5
+246
+9513
+470164
+ACTI
+8
+21
+470164
+ACTI
+1
+28
+2
+ACTI
+1
+4
+4
+ACTI
+5
+1539
+9517
+470172
+ACTI
+1
+4
+8
+ACTI
+3
+15
+9803
+ACTI
+3
+15
+9803
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9801
+ACTI
+1
+42
+1
+ACTI
+1
+23
+8
+ACTI
+1
+1
+2
+ACTI
+1
+15
+8
+ACTI
+1
+22
+1
+ACTI
+1
+20
+8
+ACTI
+1
+56
+2
+ACTI
+1
+6
+4
+ACTI
+1
+27
+2
+ACTI
+5
+24
+508046
+470141
+ACTI
+1
+10
+1
+ACTI
+1
+49
+4
+ACTI
+1
+30
+2
+ACTI
+1
+28
+8
+ACTI
+1
+139
+2
+ACTI
+1
+40
+4
+ACTI
+1
+14
+2
+ACTI
+5
+24
+508045
+460119
+ACTI
+1
+96
+1
+ACTI
+1
+57
+8
+ACTI
+1
+32
+1
+ACTI
+1
+7
+8
+ACTI
+4
+1
+9801
+ACTI
+5
+72
+9522
+440113
+ACTI
+5
+72
+9522
+440114
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9803
+ACTI
+1
+23
+8
+ACTI
+1
+4
+1
+ACTI
+1
+8
+8
+ACLI
+9832
+ACTI
+1
+55
+8
+ACTI
+4
+1
+9803
+ACTI
+1
+35
+8
+ACTI
+1
+75
+1
+ACTI
+2
+195
+ACTI
+2
+15
+ACTI
+1
+12
+1
+ACTI
+1
+4
+4
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+24
+4
+ACTI
+2
+540
+ACTI
+4
+1
+9803
+ACTI
+1
+8
+4
+ACTI
+1
+26
+1
+ACTI
+1
+47
+4
+ACTI
+1
+68
+2
+ACTI
+1
+4
+8
+ACTI
+1
+4
+2
+ACTI
+2
+15
+ACTI
+1
+93
+1
+ACTI
+1
+8
+4
+ACTI
+1
+3
+1
+ACTI
+5
+6
+9528
+440236
+ACTI
+1
+1
+8
+ACTI
+2
+2697
+ACTI
+1
+1
+2
+ACTI
+1
+1
+1
+ACTI
+5
+6
+9528
+440236
+ACTI
+4
+1
+9805
+ACTI
+1
+27
+8
+ACTI
+1
+18
+2
+ACTI
+1
+28
+8
+ACTI
+1
+25
+1
+ACTI
+1
+1
+8
+ACTI
+1
+19
+8
+ACTI
+1
+4
+1
+ACTI
+1
+13
+8
+ACTI
+1
+10
+1
+ACTI
+1
+9
+8
diff --git a/DerClouProfiData/DATADISK/KASEETA3.PLN b/DerClouProfiData/DATADISK/KASEETA3.PLN
new file mode 100644
index 0000000..f84a927
--- /dev/null
+++ b/DerClouProfiData/DATADISK/KASEETA3.PLN
@@ -0,0 +1,972 @@
+SYS 
+HAND
+9801
+HAND
+9803
+HAND
+9805
+HAND
+9832
+HAND
+508500
+HAND
+508501
+HAND
+508502
+TOOB
+9525
+9501
+9502
+9503
+9504
+9505
+9506
+9507
+9508
+9509
+9510
+9511
+9512
+9513
+9514
+9515
+9516
+9517
+9518
+9519
+9520
+9521
+9522
+9523
+9524
+9526
+9527
+TOOE
+ACLI
+9801
+ACLI
+9803
+ACTI
+1
+72
+8
+ACTI
+2
+180
+ACTI
+1
+11
+8
+ACTI
+1
+22
+2
+ACTI
+1
+3
+8
+ACTI
+5
+75
+9509
+508500
+ACTI
+1
+21
+2
+ACTI
+3
+15
+9805
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9801
+ACTI
+1
+65
+2
+ACTI
+1
+12
+4
+ACTI
+1
+67
+2
+ACTI
+1
+15
+8
+ACTI
+1
+12
+2
+ACTI
+2
+225
+ACTI
+1
+12
+2
+ACTI
+1
+3
+4
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+33
+4
+ACTI
+1
+23
+1
+ACTI
+1
+43
+4
+ACTI
+1
+14
+2
+ACTI
+1
+7
+4
+ACTI
+1
+68
+2
+ACTI
+1
+1
+8
+ACTI
+5
+75
+9509
+508501
+ACTI
+3
+15
+9832
+ACTI
+1
+15
+2
+ACTI
+5
+24
+508044
+440235
+ACTI
+1
+15
+1
+ACTI
+1
+3
+8
+ACTI
+2
+666
+ACTI
+1
+14
+8
+ACTI
+1
+13
+1
+ACTI
+1
+7
+8
+ACTI
+5
+75
+9509
+508502
+ACTI
+1
+20
+8
+ACTI
+1
+34
+1
+ACTI
+3
+15
+9801
+ACTI
+3
+15
+9832
+ACTI
+4
+1
+9801
+ACTI
+3
+15
+9805
+ACTI
+1
+91
+1
+ACTI
+1
+36
+4
+ACTI
+1
+33
+1
+ACTI
+1
+1
+8
+ACTI
+4
+1
+9805
+ACTI
+1
+22
+8
+ACTI
+1
+3
+2
+ACTI
+5
+6
+9528
+460290
+ACTI
+2
+618
+ACTI
+5
+6
+9528
+460290
+ACTI
+2
+714
+ACTI
+4
+1
+9805
+ACTI
+1
+18
+8
+ACTI
+1
+9
+1
+ACTI
+1
+14
+8
+ACTI
+1
+14
+2
+ACTI
+5
+24
+508045
+460132
+ACTI
+1
+29
+1
+ACTI
+1
+8
+8
+ACTI
+1
+52
+1
+ACTI
+1
+20
+4
+ACTI
+1
+22
+2
+ACTI
+1
+39
+4
+ACTI
+1
+34
+2
+ACTI
+1
+7
+2
+ACTI
+1
+3
+4
+ACTI
+8
+15
+470172
+ACTI
+6
+9
+9636
+470172
+ACTI
+1
+3
+8
+ACTI
+1
+41
+1
+ACTI
+1
+39
+8
+ACTI
+1
+22
+1
+ACTI
+1
+19
+8
+ACTI
+1
+66
+2
+ACTI
+1
+7
+4
+ACTI
+1
+12
+2
+ACTI
+5
+24
+508046
+470141
+ACTI
+1
+10
+1
+ACTI
+1
+32
+4
+ACTI
+1
+5
+2
+ACTI
+1
+17
+4
+ACTI
+1
+30
+2
+ACTI
+1
+29
+8
+ACTI
+1
+138
+2
+ACTI
+1
+40
+4
+ACTI
+1
+15
+2
+ACTI
+5
+24
+508045
+460119
+ACTI
+1
+98
+1
+ACTI
+1
+53
+8
+ACTI
+1
+29
+1
+ACTI
+4
+1
+9805
+ACTI
+1
+40
+8
+ACLI
+9805
+ACTI
+1
+86
+8
+ACTI
+4
+1
+9803
+ACTI
+1
+17
+8
+ACTI
+1
+88
+1
+ACTI
+1
+5
+4
+ACTI
+5
+159
+9524
+440170
+ACTI
+8
+6
+440170
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+34
+4
+ACTI
+1
+11
+1
+ACTI
+5
+96
+9512
+440195
+ACTI
+8
+21
+440195
+ACTI
+1
+7
+2
+ACTI
+1
+6
+4
+ACTI
+1
+2
+1
+ACTI
+1
+1
+8
+ACTI
+2
+702
+ACTI
+4
+1
+9803
+ACTI
+1
+7
+8
+ACTI
+1
+20
+1
+ACTI
+1
+46
+4
+ACTI
+1
+96
+2
+ACTI
+5
+24
+508044
+440235
+ACTI
+1
+13
+1
+ACTI
+1
+41
+8
+ACTI
+1
+140
+1
+ACTI
+1
+30
+4
+ACTI
+1
+30
+1
+ACTI
+1
+3
+8
+ACTI
+5
+96
+9512
+460190
+ACTI
+8
+21
+460190
+ACTI
+1
+1
+8
+ACTI
+1
+1
+1
+ACTI
+1
+30
+8
+ACTI
+1
+9
+1
+ACTI
+1
+15
+8
+ACTI
+1
+5
+2
+ACTI
+3
+15
+9803
+ACTI
+4
+1
+9801
+ACTI
+1
+13
+2
+ACTI
+5
+24
+508045
+460132
+ACTI
+1
+31
+1
+ACTI
+1
+7
+8
+ACTI
+1
+50
+1
+ACTI
+1
+20
+4
+ACTI
+1
+20
+2
+ACTI
+1
+5
+4
+ACTI
+5
+96
+9512
+470151
+ACTI
+8
+21
+470151
+ACTI
+1
+1
+2
+ACTI
+1
+34
+4
+ACTI
+1
+13
+2
+ACTI
+5
+246
+9513
+470164
+ACTI
+8
+21
+470164
+ACTI
+1
+28
+2
+ACTI
+1
+4
+4
+ACTI
+5
+1539
+9517
+470172
+ACTI
+1
+4
+8
+ACTI
+3
+15
+9803
+ACTI
+3
+15
+9803
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9801
+ACTI
+1
+42
+1
+ACTI
+1
+23
+8
+ACTI
+1
+1
+2
+ACTI
+1
+15
+8
+ACTI
+1
+22
+1
+ACTI
+1
+20
+8
+ACTI
+1
+56
+2
+ACTI
+1
+6
+4
+ACTI
+1
+27
+2
+ACTI
+5
+24
+508046
+470141
+ACTI
+1
+10
+1
+ACTI
+1
+49
+4
+ACTI
+1
+30
+2
+ACTI
+1
+28
+8
+ACTI
+1
+139
+2
+ACTI
+1
+40
+4
+ACTI
+1
+14
+2
+ACTI
+5
+24
+508045
+460119
+ACTI
+1
+96
+1
+ACTI
+1
+57
+8
+ACTI
+1
+32
+1
+ACTI
+1
+7
+8
+ACTI
+4
+1
+9801
+ACTI
+5
+72
+9522
+440113
+ACTI
+5
+72
+9522
+440114
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9803
+ACTI
+1
+23
+8
+ACTI
+1
+4
+1
+ACTI
+1
+8
+8
+ACLI
+9832
+ACTI
+1
+55
+8
+ACTI
+4
+1
+9803
+ACTI
+1
+35
+8
+ACTI
+1
+75
+1
+ACTI
+2
+195
+ACTI
+2
+15
+ACTI
+1
+12
+1
+ACTI
+1
+4
+4
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+24
+4
+ACTI
+2
+540
+ACTI
+4
+1
+9803
+ACTI
+1
+8
+4
+ACTI
+1
+26
+1
+ACTI
+1
+47
+4
+ACTI
+1
+68
+2
+ACTI
+1
+4
+8
+ACTI
+1
+4
+2
+ACTI
+2
+15
+ACTI
+1
+93
+1
+ACTI
+1
+8
+4
+ACTI
+1
+3
+1
+ACTI
+5
+6
+9528
+440236
+ACTI
+1
+1
+8
+ACTI
+2
+2697
+ACTI
+1
+1
+2
+ACTI
+1
+1
+1
+ACTI
+5
+6
+9528
+440236
+ACTI
+4
+1
+9805
+ACTI
+1
+27
+8
+ACTI
+1
+18
+2
+ACTI
+1
+28
+8
+ACTI
+1
+25
+1
+ACTI
+1
+1
+8
+ACTI
+1
+19
+8
+ACTI
+1
+4
+1
+ACTI
+1
+13
+8
+ACTI
+1
+10
+1
+ACTI
+1
+9
+8
diff --git a/DerClouProfiData/DATADISK/KASEETA4.PLN b/DerClouProfiData/DATADISK/KASEETA4.PLN
new file mode 100644
index 0000000..f84a927
--- /dev/null
+++ b/DerClouProfiData/DATADISK/KASEETA4.PLN
@@ -0,0 +1,972 @@
+SYS 
+HAND
+9801
+HAND
+9803
+HAND
+9805
+HAND
+9832
+HAND
+508500
+HAND
+508501
+HAND
+508502
+TOOB
+9525
+9501
+9502
+9503
+9504
+9505
+9506
+9507
+9508
+9509
+9510
+9511
+9512
+9513
+9514
+9515
+9516
+9517
+9518
+9519
+9520
+9521
+9522
+9523
+9524
+9526
+9527
+TOOE
+ACLI
+9801
+ACLI
+9803
+ACTI
+1
+72
+8
+ACTI
+2
+180
+ACTI
+1
+11
+8
+ACTI
+1
+22
+2
+ACTI
+1
+3
+8
+ACTI
+5
+75
+9509
+508500
+ACTI
+1
+21
+2
+ACTI
+3
+15
+9805
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9801
+ACTI
+1
+65
+2
+ACTI
+1
+12
+4
+ACTI
+1
+67
+2
+ACTI
+1
+15
+8
+ACTI
+1
+12
+2
+ACTI
+2
+225
+ACTI
+1
+12
+2
+ACTI
+1
+3
+4
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+33
+4
+ACTI
+1
+23
+1
+ACTI
+1
+43
+4
+ACTI
+1
+14
+2
+ACTI
+1
+7
+4
+ACTI
+1
+68
+2
+ACTI
+1
+1
+8
+ACTI
+5
+75
+9509
+508501
+ACTI
+3
+15
+9832
+ACTI
+1
+15
+2
+ACTI
+5
+24
+508044
+440235
+ACTI
+1
+15
+1
+ACTI
+1
+3
+8
+ACTI
+2
+666
+ACTI
+1
+14
+8
+ACTI
+1
+13
+1
+ACTI
+1
+7
+8
+ACTI
+5
+75
+9509
+508502
+ACTI
+1
+20
+8
+ACTI
+1
+34
+1
+ACTI
+3
+15
+9801
+ACTI
+3
+15
+9832
+ACTI
+4
+1
+9801
+ACTI
+3
+15
+9805
+ACTI
+1
+91
+1
+ACTI
+1
+36
+4
+ACTI
+1
+33
+1
+ACTI
+1
+1
+8
+ACTI
+4
+1
+9805
+ACTI
+1
+22
+8
+ACTI
+1
+3
+2
+ACTI
+5
+6
+9528
+460290
+ACTI
+2
+618
+ACTI
+5
+6
+9528
+460290
+ACTI
+2
+714
+ACTI
+4
+1
+9805
+ACTI
+1
+18
+8
+ACTI
+1
+9
+1
+ACTI
+1
+14
+8
+ACTI
+1
+14
+2
+ACTI
+5
+24
+508045
+460132
+ACTI
+1
+29
+1
+ACTI
+1
+8
+8
+ACTI
+1
+52
+1
+ACTI
+1
+20
+4
+ACTI
+1
+22
+2
+ACTI
+1
+39
+4
+ACTI
+1
+34
+2
+ACTI
+1
+7
+2
+ACTI
+1
+3
+4
+ACTI
+8
+15
+470172
+ACTI
+6
+9
+9636
+470172
+ACTI
+1
+3
+8
+ACTI
+1
+41
+1
+ACTI
+1
+39
+8
+ACTI
+1
+22
+1
+ACTI
+1
+19
+8
+ACTI
+1
+66
+2
+ACTI
+1
+7
+4
+ACTI
+1
+12
+2
+ACTI
+5
+24
+508046
+470141
+ACTI
+1
+10
+1
+ACTI
+1
+32
+4
+ACTI
+1
+5
+2
+ACTI
+1
+17
+4
+ACTI
+1
+30
+2
+ACTI
+1
+29
+8
+ACTI
+1
+138
+2
+ACTI
+1
+40
+4
+ACTI
+1
+15
+2
+ACTI
+5
+24
+508045
+460119
+ACTI
+1
+98
+1
+ACTI
+1
+53
+8
+ACTI
+1
+29
+1
+ACTI
+4
+1
+9805
+ACTI
+1
+40
+8
+ACLI
+9805
+ACTI
+1
+86
+8
+ACTI
+4
+1
+9803
+ACTI
+1
+17
+8
+ACTI
+1
+88
+1
+ACTI
+1
+5
+4
+ACTI
+5
+159
+9524
+440170
+ACTI
+8
+6
+440170
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+34
+4
+ACTI
+1
+11
+1
+ACTI
+5
+96
+9512
+440195
+ACTI
+8
+21
+440195
+ACTI
+1
+7
+2
+ACTI
+1
+6
+4
+ACTI
+1
+2
+1
+ACTI
+1
+1
+8
+ACTI
+2
+702
+ACTI
+4
+1
+9803
+ACTI
+1
+7
+8
+ACTI
+1
+20
+1
+ACTI
+1
+46
+4
+ACTI
+1
+96
+2
+ACTI
+5
+24
+508044
+440235
+ACTI
+1
+13
+1
+ACTI
+1
+41
+8
+ACTI
+1
+140
+1
+ACTI
+1
+30
+4
+ACTI
+1
+30
+1
+ACTI
+1
+3
+8
+ACTI
+5
+96
+9512
+460190
+ACTI
+8
+21
+460190
+ACTI
+1
+1
+8
+ACTI
+1
+1
+1
+ACTI
+1
+30
+8
+ACTI
+1
+9
+1
+ACTI
+1
+15
+8
+ACTI
+1
+5
+2
+ACTI
+3
+15
+9803
+ACTI
+4
+1
+9801
+ACTI
+1
+13
+2
+ACTI
+5
+24
+508045
+460132
+ACTI
+1
+31
+1
+ACTI
+1
+7
+8
+ACTI
+1
+50
+1
+ACTI
+1
+20
+4
+ACTI
+1
+20
+2
+ACTI
+1
+5
+4
+ACTI
+5
+96
+9512
+470151
+ACTI
+8
+21
+470151
+ACTI
+1
+1
+2
+ACTI
+1
+34
+4
+ACTI
+1
+13
+2
+ACTI
+5
+246
+9513
+470164
+ACTI
+8
+21
+470164
+ACTI
+1
+28
+2
+ACTI
+1
+4
+4
+ACTI
+5
+1539
+9517
+470172
+ACTI
+1
+4
+8
+ACTI
+3
+15
+9803
+ACTI
+3
+15
+9803
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9801
+ACTI
+1
+42
+1
+ACTI
+1
+23
+8
+ACTI
+1
+1
+2
+ACTI
+1
+15
+8
+ACTI
+1
+22
+1
+ACTI
+1
+20
+8
+ACTI
+1
+56
+2
+ACTI
+1
+6
+4
+ACTI
+1
+27
+2
+ACTI
+5
+24
+508046
+470141
+ACTI
+1
+10
+1
+ACTI
+1
+49
+4
+ACTI
+1
+30
+2
+ACTI
+1
+28
+8
+ACTI
+1
+139
+2
+ACTI
+1
+40
+4
+ACTI
+1
+14
+2
+ACTI
+5
+24
+508045
+460119
+ACTI
+1
+96
+1
+ACTI
+1
+57
+8
+ACTI
+1
+32
+1
+ACTI
+1
+7
+8
+ACTI
+4
+1
+9801
+ACTI
+5
+72
+9522
+440113
+ACTI
+5
+72
+9522
+440114
+ACTI
+3
+15
+9832
+ACTI
+3
+15
+9803
+ACTI
+1
+23
+8
+ACTI
+1
+4
+1
+ACTI
+1
+8
+8
+ACLI
+9832
+ACTI
+1
+55
+8
+ACTI
+4
+1
+9803
+ACTI
+1
+35
+8
+ACTI
+1
+75
+1
+ACTI
+2
+195
+ACTI
+2
+15
+ACTI
+1
+12
+1
+ACTI
+1
+4
+4
+ACTI
+5
+18
+0
+440170
+ACTI
+1
+24
+4
+ACTI
+2
+540
+ACTI
+4
+1
+9803
+ACTI
+1
+8
+4
+ACTI
+1
+26
+1
+ACTI
+1
+47
+4
+ACTI
+1
+68
+2
+ACTI
+1
+4
+8
+ACTI
+1
+4
+2
+ACTI
+2
+15
+ACTI
+1
+93
+1
+ACTI
+1
+8
+4
+ACTI
+1
+3
+1
+ACTI
+5
+6
+9528
+440236
+ACTI
+1
+1
+8
+ACTI
+2
+2697
+ACTI
+1
+1
+2
+ACTI
+1
+1
+1
+ACTI
+5
+6
+9528
+440236
+ACTI
+4
+1
+9805
+ACTI
+1
+27
+8
+ACTI
+1
+18
+2
+ACTI
+1
+28
+8
+ACTI
+1
+25
+1
+ACTI
+1
+1
+8
+ACTI
+1
+19
+8
+ACTI
+1
+4
+1
+ACTI
+1
+13
+8
+ACTI
+1
+10
+1
+ACTI
+1
+9
+8
diff --git a/DerClouProfiData/DATADISK/KENWETA.PLL b/DerClouProfiData/DATADISK/KENWETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/KENWETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/MARXETA.PLL b/DerClouProfiData/DATADISK/MARXETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/MARXETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/NATIETA.PLL b/DerClouProfiData/DATADISK/NATIETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/NATIETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/NATUETA.PLL b/DerClouProfiData/DATADISK/NATUETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/NATUETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/ORIGIN.LST b/DerClouProfiData/DATADISK/ORIGIN.LST
new file mode 100644
index 0000000..14cb5c2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/ORIGIN.LST
@@ -0,0 +1,4 @@
+<Spielstand 1>
+<Spielstand 2>
+<Spielstand 3>
+<Spielstand 4>
diff --git a/DerClouProfiData/DATADISK/OSTEETA.PLL b/DerClouProfiData/DATADISK/OSTEETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/OSTEETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/SENIETA.PLL b/DerClouProfiData/DATADISK/SENIETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/SENIETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/SOTHETA.PLL b/DerClouProfiData/DATADISK/SOTHETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/SOTHETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/TATEETA.PLL b/DerClouProfiData/DATADISK/TATEETA.PLL
new file mode 100644
index 0000000..1874828
--- /dev/null
+++ b/DerClouProfiData/DATADISK/TATEETA.PLL
@@ -0,0 +1 @@
+0
diff --git a/DerClouProfiData/DATADISK/TOBAETA.PLL b/DerClouProfiData/DATADISK/TOBAETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/TOBAETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/TOWEETA.PLL b/DerClouProfiData/DATADISK/TOWEETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/TOWEETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/TRAIETA.PLL b/DerClouProfiData/DATADISK/TRAIETA.PLL
new file mode 100644
index 0000000..1874828
--- /dev/null
+++ b/DerClouProfiData/DATADISK/TRAIETA.PLL
@@ -0,0 +1 @@
+0
diff --git a/DerClouProfiData/DATADISK/TRANETA.PLL b/DerClouProfiData/DATADISK/TRANETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/TRANETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/TUSSETA.PLL b/DerClouProfiData/DATADISK/TUSSETA.PLL
new file mode 100644
index 0000000..1874828
--- /dev/null
+++ b/DerClouProfiData/DATADISK/TUSSETA.PLL
@@ -0,0 +1 @@
+0
diff --git a/DerClouProfiData/DATADISK/VICTETA.PLL b/DerClouProfiData/DATADISK/VICTETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/VICTETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/VILLETA.PLL b/DerClouProfiData/DATADISK/VILLETA.PLL
new file mode 100644
index 0000000..b63bdd2
--- /dev/null
+++ b/DerClouProfiData/DATADISK/VILLETA.PLL
@@ -0,0 +1,2 @@
+0
+
diff --git a/DerClouProfiData/DATADISK/WESTETA.PLL b/DerClouProfiData/DATADISK/WESTETA.PLL
new file mode 100644
index 0000000..1874828
--- /dev/null
+++ b/DerClouProfiData/DATADISK/WESTETA.PLL
@@ -0,0 +1 @@
+0
diff --git a/DerClouProfiData/INTROPIX/AN1_1.ANM b/DerClouProfiData/INTROPIX/AN1_1.ANM
new file mode 100644
index 0000000..d4c6d04
Binary files /dev/null and b/DerClouProfiData/INTROPIX/AN1_1.ANM differ
diff --git a/DerClouProfiData/INTROPIX/AN2_4.ANM b/DerClouProfiData/INTROPIX/AN2_4.ANM
new file mode 100644
index 0000000..8dfef6c
Binary files /dev/null and b/DerClouProfiData/INTROPIX/AN2_4.ANM differ
diff --git a/DerClouProfiData/INTROPIX/AN3_11.ANM b/DerClouProfiData/INTROPIX/AN3_11.ANM
new file mode 100644
index 0000000..81dff52
Binary files /dev/null and b/DerClouProfiData/INTROPIX/AN3_11.ANM differ
diff --git a/DerClouProfiData/INTROPIX/AN4_11.ANM b/DerClouProfiData/INTROPIX/AN4_11.ANM
new file mode 100644
index 0000000..fe15384
Binary files /dev/null and b/DerClouProfiData/INTROPIX/AN4_11.ANM differ
diff --git a/DerClouProfiData/INTROPIX/AN5_11.ANM b/DerClouProfiData/INTROPIX/AN5_11.ANM
new file mode 100644
index 0000000..a8a135d
Binary files /dev/null and b/DerClouProfiData/INTROPIX/AN5_11.ANM differ
diff --git a/DerClouProfiData/PICTURES/ABBEY.OBJ b/DerClouProfiData/PICTURES/ABBEY.OBJ
new file mode 100644
index 0000000..ecb7382
Binary files /dev/null and b/DerClouProfiData/PICTURES/ABBEY.OBJ differ
diff --git a/DerClouProfiData/PICTURES/ACTION b/DerClouProfiData/PICTURES/ACTION
new file mode 100644
index 0000000..43d3ade
Binary files /dev/null and b/DerClouProfiData/PICTURES/ACTION differ
diff --git a/DerClouProfiData/PICTURES/ALLMAXI b/DerClouProfiData/PICTURES/ALLMAXI
new file mode 100644
index 0000000..4d16953
Binary files /dev/null and b/DerClouProfiData/PICTURES/ALLMAXI differ
diff --git a/DerClouProfiData/PICTURES/AUTOMAP b/DerClouProfiData/PICTURES/AUTOMAP
new file mode 100644
index 0000000..bcdc4ff
Binary files /dev/null and b/DerClouProfiData/PICTURES/AUTOMAP differ
diff --git a/DerClouProfiData/PICTURES/BAHNHOF b/DerClouProfiData/PICTURES/BAHNHOF
new file mode 100644
index 0000000..5f5ada2
Binary files /dev/null and b/DerClouProfiData/PICTURES/BAHNHOF differ
diff --git a/DerClouProfiData/PICTURES/BAHNHOF.ANI b/DerClouProfiData/PICTURES/BAHNHOF.ANI
new file mode 100644
index 0000000..191328f
Binary files /dev/null and b/DerClouProfiData/PICTURES/BAHNHOF.ANI differ
diff --git a/DerClouProfiData/PICTURES/BENTLEY.CAR b/DerClouProfiData/PICTURES/BENTLEY.CAR
new file mode 100644
index 0000000..aa04b5d
Binary files /dev/null and b/DerClouProfiData/PICTURES/BENTLEY.CAR differ
diff --git a/DerClouProfiData/PICTURES/BIRTHDAY b/DerClouProfiData/PICTURES/BIRTHDAY
new file mode 100644
index 0000000..27b72a6
Binary files /dev/null and b/DerClouProfiData/PICTURES/BIRTHDAY differ
diff --git a/DerClouProfiData/PICTURES/BODEN0 b/DerClouProfiData/PICTURES/BODEN0
new file mode 100644
index 0000000..7ad81f3
Binary files /dev/null and b/DerClouProfiData/PICTURES/BODEN0 differ
diff --git a/DerClouProfiData/PICTURES/BODEN1 b/DerClouProfiData/PICTURES/BODEN1
new file mode 100644
index 0000000..75aadb0
Binary files /dev/null and b/DerClouProfiData/PICTURES/BODEN1 differ
diff --git a/DerClouProfiData/PICTURES/BODEN2 b/DerClouProfiData/PICTURES/BODEN2
new file mode 100644
index 0000000..150a260
Binary files /dev/null and b/DerClouProfiData/PICTURES/BODEN2 differ
diff --git a/DerClouProfiData/PICTURES/BODEN3 b/DerClouProfiData/PICTURES/BODEN3
new file mode 100644
index 0000000..95a643b
Binary files /dev/null and b/DerClouProfiData/PICTURES/BODEN3 differ
diff --git a/DerClouProfiData/PICTURES/BUBBLE b/DerClouProfiData/PICTURES/BUBBLE
new file mode 100644
index 0000000..5b338bc
Binary files /dev/null and b/DerClouProfiData/PICTURES/BUBBLE differ
diff --git a/DerClouProfiData/PICTURES/BUBBLE.FNT b/DerClouProfiData/PICTURES/BUBBLE.FNT
new file mode 100644
index 0000000..bef2477
Binary files /dev/null and b/DerClouProfiData/PICTURES/BUBBLE.FNT differ
diff --git a/DerClouProfiData/PICTURES/BULL.OBJ b/DerClouProfiData/PICTURES/BULL.OBJ
new file mode 100644
index 0000000..2ac61ba
Binary files /dev/null and b/DerClouProfiData/PICTURES/BULL.OBJ differ
diff --git a/DerClouProfiData/PICTURES/CADILLAC b/DerClouProfiData/PICTURES/CADILLAC
new file mode 100644
index 0000000..6f163da
Binary files /dev/null and b/DerClouProfiData/PICTURES/CADILLAC differ
diff --git a/DerClouProfiData/PICTURES/CEMETERY b/DerClouProfiData/PICTURES/CEMETERY
new file mode 100644
index 0000000..f069d14
Binary files /dev/null and b/DerClouProfiData/PICTURES/CEMETERY differ
diff --git a/DerClouProfiData/PICTURES/CEMETERY.ANI b/DerClouProfiData/PICTURES/CEMETERY.ANI
new file mode 100644
index 0000000..a5f7b29
Binary files /dev/null and b/DerClouProfiData/PICTURES/CEMETERY.ANI differ
diff --git a/DerClouProfiData/PICTURES/CLUDO b/DerClouProfiData/PICTURES/CLUDO
new file mode 100644
index 0000000..410dca6
Binary files /dev/null and b/DerClouProfiData/PICTURES/CLUDO differ
diff --git a/DerClouProfiData/PICTURES/COMING b/DerClouProfiData/PICTURES/COMING
new file mode 100644
index 0000000..b91f3e3
Binary files /dev/null and b/DerClouProfiData/PICTURES/COMING differ
diff --git a/DerClouProfiData/PICTURES/CRACKS b/DerClouProfiData/PICTURES/CRACKS
new file mode 100644
index 0000000..0d507e6
Binary files /dev/null and b/DerClouProfiData/PICTURES/CRACKS differ
diff --git a/DerClouProfiData/PICTURES/DART b/DerClouProfiData/PICTURES/DART
new file mode 100644
index 0000000..b0236cc
Binary files /dev/null and b/DerClouProfiData/PICTURES/DART differ
diff --git a/DerClouProfiData/PICTURES/EXPLOSI1.ANI b/DerClouProfiData/PICTURES/EXPLOSI1.ANI
new file mode 100644
index 0000000..b84940f
Binary files /dev/null and b/DerClouProfiData/PICTURES/EXPLOSI1.ANI differ
diff --git a/DerClouProfiData/PICTURES/EXPLOSI2.ANI b/DerClouProfiData/PICTURES/EXPLOSI2.ANI
new file mode 100644
index 0000000..40bf8f9
Binary files /dev/null and b/DerClouProfiData/PICTURES/EXPLOSI2.ANI differ
diff --git a/DerClouProfiData/PICTURES/FACES1 b/DerClouProfiData/PICTURES/FACES1
new file mode 100644
index 0000000..30f89d2
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES1 differ
diff --git a/DerClouProfiData/PICTURES/FACES10 b/DerClouProfiData/PICTURES/FACES10
new file mode 100644
index 0000000..0601600
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES10 differ
diff --git a/DerClouProfiData/PICTURES/FACES11 b/DerClouProfiData/PICTURES/FACES11
new file mode 100644
index 0000000..7b01eb4
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES11 differ
diff --git a/DerClouProfiData/PICTURES/FACES2 b/DerClouProfiData/PICTURES/FACES2
new file mode 100644
index 0000000..e0245bf
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES2 differ
diff --git a/DerClouProfiData/PICTURES/FACES3 b/DerClouProfiData/PICTURES/FACES3
new file mode 100644
index 0000000..c0eeed8
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES3 differ
diff --git a/DerClouProfiData/PICTURES/FACES4 b/DerClouProfiData/PICTURES/FACES4
new file mode 100644
index 0000000..dd8f02b
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES4 differ
diff --git a/DerClouProfiData/PICTURES/FACES5 b/DerClouProfiData/PICTURES/FACES5
new file mode 100644
index 0000000..69466cc
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES5 differ
diff --git a/DerClouProfiData/PICTURES/FACES6 b/DerClouProfiData/PICTURES/FACES6
new file mode 100644
index 0000000..d83ac20
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES6 differ
diff --git a/DerClouProfiData/PICTURES/FACES7 b/DerClouProfiData/PICTURES/FACES7
new file mode 100644
index 0000000..5883387
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES7 differ
diff --git a/DerClouProfiData/PICTURES/FACES8 b/DerClouProfiData/PICTURES/FACES8
new file mode 100644
index 0000000..b591043
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES8 differ
diff --git a/DerClouProfiData/PICTURES/FACES9 b/DerClouProfiData/PICTURES/FACES9
new file mode 100644
index 0000000..d266ddc
Binary files /dev/null and b/DerClouProfiData/PICTURES/FACES9 differ
diff --git a/DerClouProfiData/PICTURES/FAMILY b/DerClouProfiData/PICTURES/FAMILY
new file mode 100644
index 0000000..dbfda16
Binary files /dev/null and b/DerClouProfiData/PICTURES/FAMILY differ
diff --git a/DerClouProfiData/PICTURES/FIAT b/DerClouProfiData/PICTURES/FIAT
new file mode 100644
index 0000000..3f418cd
Binary files /dev/null and b/DerClouProfiData/PICTURES/FIAT differ
diff --git a/DerClouProfiData/PICTURES/FIAT.CAR b/DerClouProfiData/PICTURES/FIAT.CAR
new file mode 100644
index 0000000..7e0dc18
Binary files /dev/null and b/DerClouProfiData/PICTURES/FIAT.CAR differ
diff --git a/DerClouProfiData/PICTURES/FONT b/DerClouProfiData/PICTURES/FONT
new file mode 100644
index 0000000..dc01375
Binary files /dev/null and b/DerClouProfiData/PICTURES/FONT differ
diff --git a/DerClouProfiData/PICTURES/FORD.CAR b/DerClouProfiData/PICTURES/FORD.CAR
new file mode 100644
index 0000000..ed798c2
Binary files /dev/null and b/DerClouProfiData/PICTURES/FORD.CAR differ
diff --git a/DerClouProfiData/PICTURES/FUNK b/DerClouProfiData/PICTURES/FUNK
new file mode 100644
index 0000000..3ccf699
Binary files /dev/null and b/DerClouProfiData/PICTURES/FUNK differ
diff --git a/DerClouProfiData/PICTURES/GARAGE b/DerClouProfiData/PICTURES/GARAGE
new file mode 100644
index 0000000..8d2f3ae
Binary files /dev/null and b/DerClouProfiData/PICTURES/GARAGE differ
diff --git a/DerClouProfiData/PICTURES/HEHLER1 b/DerClouProfiData/PICTURES/HEHLER1
new file mode 100644
index 0000000..6ec1f8f
Binary files /dev/null and b/DerClouProfiData/PICTURES/HEHLER1 differ
diff --git a/DerClouProfiData/PICTURES/HEHLER2 b/DerClouProfiData/PICTURES/HEHLER2
new file mode 100644
index 0000000..b9137e2
Binary files /dev/null and b/DerClouProfiData/PICTURES/HEHLER2 differ
diff --git a/DerClouProfiData/PICTURES/HEHLER3 b/DerClouProfiData/PICTURES/HEHLER3
new file mode 100644
index 0000000..969781e
Binary files /dev/null and b/DerClouProfiData/PICTURES/HEHLER3 differ
diff --git a/DerClouProfiData/PICTURES/HOTEL b/DerClouProfiData/PICTURES/HOTEL
new file mode 100644
index 0000000..1a4c535
Binary files /dev/null and b/DerClouProfiData/PICTURES/HOTEL differ
diff --git a/DerClouProfiData/PICTURES/JAGUAR b/DerClouProfiData/PICTURES/JAGUAR
new file mode 100644
index 0000000..85ad4a3
Binary files /dev/null and b/DerClouProfiData/PICTURES/JAGUAR differ
diff --git a/DerClouProfiData/PICTURES/JEEP b/DerClouProfiData/PICTURES/JEEP
new file mode 100644
index 0000000..accd4ad
Binary files /dev/null and b/DerClouProfiData/PICTURES/JEEP differ
diff --git a/DerClouProfiData/PICTURES/KASERNE b/DerClouProfiData/PICTURES/KASERNE
new file mode 100644
index 0000000..dab40bf
Binary files /dev/null and b/DerClouProfiData/PICTURES/KASERNE differ
diff --git a/DerClouProfiData/PICTURES/KASERNE.ANI b/DerClouProfiData/PICTURES/KASERNE.ANI
new file mode 100644
index 0000000..62ebf80
Binary files /dev/null and b/DerClouProfiData/PICTURES/KASERNE.ANI differ
diff --git a/DerClouProfiData/PICTURES/KLOSTER b/DerClouProfiData/PICTURES/KLOSTER
new file mode 100644
index 0000000..f35634f
Binary files /dev/null and b/DerClouProfiData/PICTURES/KLOSTER differ
diff --git a/DerClouProfiData/PICTURES/KLOSTER.ANI b/DerClouProfiData/PICTURES/KLOSTER.ANI
new file mode 100644
index 0000000..4f4d4a8
Binary files /dev/null and b/DerClouProfiData/PICTURES/KLOSTER.ANI differ
diff --git a/DerClouProfiData/PICTURES/KUSS b/DerClouProfiData/PICTURES/KUSS
new file mode 100644
index 0000000..27f456f
Binary files /dev/null and b/DerClouProfiData/PICTURES/KUSS differ
diff --git a/DerClouProfiData/PICTURES/LACK.ANI b/DerClouProfiData/PICTURES/LACK.ANI
new file mode 100644
index 0000000..4c3d65f
Binary files /dev/null and b/DerClouProfiData/PICTURES/LACK.ANI differ
diff --git a/DerClouProfiData/PICTURES/MAFIA b/DerClouProfiData/PICTURES/MAFIA
new file mode 100644
index 0000000..d85b62b
Binary files /dev/null and b/DerClouProfiData/PICTURES/MAFIA differ
diff --git a/DerClouProfiData/PICTURES/MARCSMIH b/DerClouProfiData/PICTURES/MARCSMIH
new file mode 100644
index 0000000..cf66200
Binary files /dev/null and b/DerClouProfiData/PICTURES/MARCSMIH differ
diff --git a/DerClouProfiData/PICTURES/MATTBART b/DerClouProfiData/PICTURES/MATTBART
new file mode 100644
index 0000000..6a49cf8
Binary files /dev/null and b/DerClouProfiData/PICTURES/MATTBART differ
diff --git a/DerClouProfiData/PICTURES/MENU b/DerClouProfiData/PICTURES/MENU
new file mode 100644
index 0000000..1a21e4a
Binary files /dev/null and b/DerClouProfiData/PICTURES/MENU differ
diff --git a/DerClouProfiData/PICTURES/MENU.FNT b/DerClouProfiData/PICTURES/MENU.FNT
new file mode 100644
index 0000000..b4c46ae
Binary files /dev/null and b/DerClouProfiData/PICTURES/MENU.FNT differ
diff --git a/DerClouProfiData/PICTURES/MORRIS b/DerClouProfiData/PICTURES/MORRIS
new file mode 100644
index 0000000..5453e33
Binary files /dev/null and b/DerClouProfiData/PICTURES/MORRIS differ
diff --git a/DerClouProfiData/PICTURES/OBJECT10 b/DerClouProfiData/PICTURES/OBJECT10
new file mode 100644
index 0000000..27f2763
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECT10 differ
diff --git a/DerClouProfiData/PICTURES/OBJECT11 b/DerClouProfiData/PICTURES/OBJECT11
new file mode 100644
index 0000000..e45092d
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECT11 differ
diff --git a/DerClouProfiData/PICTURES/OBJECT12 b/DerClouProfiData/PICTURES/OBJECT12
new file mode 100644
index 0000000..cb4ebe3
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECT12 differ
diff --git a/DerClouProfiData/PICTURES/OBJECT13 b/DerClouProfiData/PICTURES/OBJECT13
new file mode 100644
index 0000000..9af5550
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECT13 differ
diff --git a/DerClouProfiData/PICTURES/OBJECT14 b/DerClouProfiData/PICTURES/OBJECT14
new file mode 100644
index 0000000..bb9f9ed
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECT14 differ
diff --git a/DerClouProfiData/PICTURES/OBJECT15 b/DerClouProfiData/PICTURES/OBJECT15
new file mode 100644
index 0000000..57c75a1
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECT15 differ
diff --git a/DerClouProfiData/PICTURES/OBJECT16 b/DerClouProfiData/PICTURES/OBJECT16
new file mode 100644
index 0000000..92cd91a
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECT16 differ
diff --git a/DerClouProfiData/PICTURES/OBJECT17 b/DerClouProfiData/PICTURES/OBJECT17
new file mode 100644
index 0000000..6a7346a
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECT17 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTE1 b/DerClouProfiData/PICTURES/OBJECTE1
new file mode 100644
index 0000000..9193854
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTE1 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTE2 b/DerClouProfiData/PICTURES/OBJECTE2
new file mode 100644
index 0000000..aeb3018
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTE2 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTE3 b/DerClouProfiData/PICTURES/OBJECTE3
new file mode 100644
index 0000000..ca840e8
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTE3 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTE4 b/DerClouProfiData/PICTURES/OBJECTE4
new file mode 100644
index 0000000..6b3d237
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTE4 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTE5 b/DerClouProfiData/PICTURES/OBJECTE5
new file mode 100644
index 0000000..d612364
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTE5 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTS1 b/DerClouProfiData/PICTURES/OBJECTS1
new file mode 100644
index 0000000..2b01344
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTS1 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTS2 b/DerClouProfiData/PICTURES/OBJECTS2
new file mode 100644
index 0000000..c2e8b02
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTS2 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTS3 b/DerClouProfiData/PICTURES/OBJECTS3
new file mode 100644
index 0000000..f727f74
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTS3 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTS4 b/DerClouProfiData/PICTURES/OBJECTS4
new file mode 100644
index 0000000..a513f9f
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTS4 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTS5 b/DerClouProfiData/PICTURES/OBJECTS5
new file mode 100644
index 0000000..0868ed2
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTS5 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTS6 b/DerClouProfiData/PICTURES/OBJECTS6
new file mode 100644
index 0000000..3cf81cb
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTS6 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTS7 b/DerClouProfiData/PICTURES/OBJECTS7
new file mode 100644
index 0000000..4318a24
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTS7 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTS8 b/DerClouProfiData/PICTURES/OBJECTS8
new file mode 100644
index 0000000..10e6aea
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTS8 differ
diff --git a/DerClouProfiData/PICTURES/OBJECTS9 b/DerClouProfiData/PICTURES/OBJECTS9
new file mode 100644
index 0000000..ea24172
Binary files /dev/null and b/DerClouProfiData/PICTURES/OBJECTS9 differ
diff --git a/DerClouProfiData/PICTURES/OPEL b/DerClouProfiData/PICTURES/OPEL
new file mode 100644
index 0000000..d55f13a
Binary files /dev/null and b/DerClouProfiData/PICTURES/OPEL differ
diff --git a/DerClouProfiData/PICTURES/ORGANISA b/DerClouProfiData/PICTURES/ORGANISA
new file mode 100644
index 0000000..18d4e9e
Binary files /dev/null and b/DerClouProfiData/PICTURES/ORGANISA differ
diff --git a/DerClouProfiData/PICTURES/PARKING b/DerClouProfiData/PICTURES/PARKING
new file mode 100644
index 0000000..f01bcd3
Binary files /dev/null and b/DerClouProfiData/PICTURES/PARKING differ
diff --git a/DerClouProfiData/PICTURES/POLICE b/DerClouProfiData/PICTURES/POLICE
new file mode 100644
index 0000000..765ba5f
Binary files /dev/null and b/DerClouProfiData/PICTURES/POLICE differ
diff --git a/DerClouProfiData/PICTURES/POLICE.ANI b/DerClouProfiData/PICTURES/POLICE.ANI
new file mode 100644
index 0000000..1a87a9a
Binary files /dev/null and b/DerClouProfiData/PICTURES/POLICE.ANI differ
diff --git a/DerClouProfiData/PICTURES/PONTIAC b/DerClouProfiData/PICTURES/PONTIAC
new file mode 100644
index 0000000..acae100
Binary files /dev/null and b/DerClouProfiData/PICTURES/PONTIAC differ
diff --git a/DerClouProfiData/PICTURES/PRISON b/DerClouProfiData/PICTURES/PRISON
new file mode 100644
index 0000000..ef1df0e
Binary files /dev/null and b/DerClouProfiData/PICTURES/PRISON differ
diff --git a/DerClouProfiData/PICTURES/PUB b/DerClouProfiData/PICTURES/PUB
new file mode 100644
index 0000000..e9b751c
Binary files /dev/null and b/DerClouProfiData/PICTURES/PUB differ
diff --git a/DerClouProfiData/PICTURES/PUB.ANI b/DerClouProfiData/PICTURES/PUB.ANI
new file mode 100644
index 0000000..0ed22ff
Binary files /dev/null and b/DerClouProfiData/PICTURES/PUB.ANI differ
diff --git a/DerClouProfiData/PICTURES/REP.ANI b/DerClouProfiData/PICTURES/REP.ANI
new file mode 100644
index 0000000..17c3288
Binary files /dev/null and b/DerClouProfiData/PICTURES/REP.ANI differ
diff --git a/DerClouProfiData/PICTURES/REZEPTIO b/DerClouProfiData/PICTURES/REZEPTIO
new file mode 100644
index 0000000..77410aa
Binary files /dev/null and b/DerClouProfiData/PICTURES/REZEPTIO differ
diff --git a/DerClouProfiData/PICTURES/ROVER.CAR b/DerClouProfiData/PICTURES/ROVER.CAR
new file mode 100644
index 0000000..4393a93
Binary files /dev/null and b/DerClouProfiData/PICTURES/ROVER.CAR differ
diff --git a/DerClouProfiData/PICTURES/SABIEN b/DerClouProfiData/PICTURES/SABIEN
new file mode 100644
index 0000000..13f03b1
Binary files /dev/null and b/DerClouProfiData/PICTURES/SABIEN differ
diff --git a/DerClouProfiData/PICTURES/SHAMPTO2 b/DerClouProfiData/PICTURES/SHAMPTO2
new file mode 100644
index 0000000..2530e82
Binary files /dev/null and b/DerClouProfiData/PICTURES/SHAMPTO2 differ
diff --git a/DerClouProfiData/PICTURES/SHAMPTON b/DerClouProfiData/PICTURES/SHAMPTON
new file mode 100644
index 0000000..983ba7a
Binary files /dev/null and b/DerClouProfiData/PICTURES/SHAMPTON differ
diff --git a/DerClouProfiData/PICTURES/SKY1 b/DerClouProfiData/PICTURES/SKY1
new file mode 100644
index 0000000..3f83794
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY1 differ
diff --git a/DerClouProfiData/PICTURES/SKY1.ANI b/DerClouProfiData/PICTURES/SKY1.ANI
new file mode 100644
index 0000000..9e955dd
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY1.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY10 b/DerClouProfiData/PICTURES/SKY10
new file mode 100644
index 0000000..89b4819
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY10 differ
diff --git a/DerClouProfiData/PICTURES/SKY10.ANI b/DerClouProfiData/PICTURES/SKY10.ANI
new file mode 100644
index 0000000..f89e51b
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY10.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY11 b/DerClouProfiData/PICTURES/SKY11
new file mode 100644
index 0000000..363bbcd
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY11 differ
diff --git a/DerClouProfiData/PICTURES/SKY11.ANI b/DerClouProfiData/PICTURES/SKY11.ANI
new file mode 100644
index 0000000..bad128f
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY11.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY12 b/DerClouProfiData/PICTURES/SKY12
new file mode 100644
index 0000000..da12f1b
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY12 differ
diff --git a/DerClouProfiData/PICTURES/SKY12.ANI b/DerClouProfiData/PICTURES/SKY12.ANI
new file mode 100644
index 0000000..369c453
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY12.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY13 b/DerClouProfiData/PICTURES/SKY13
new file mode 100644
index 0000000..1063d20
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY13 differ
diff --git a/DerClouProfiData/PICTURES/SKY13.ANI b/DerClouProfiData/PICTURES/SKY13.ANI
new file mode 100644
index 0000000..11681ed
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY13.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY14 b/DerClouProfiData/PICTURES/SKY14
new file mode 100644
index 0000000..2396f32
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY14 differ
diff --git a/DerClouProfiData/PICTURES/SKY14.ANI b/DerClouProfiData/PICTURES/SKY14.ANI
new file mode 100644
index 0000000..b2e8179
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY14.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY15 b/DerClouProfiData/PICTURES/SKY15
new file mode 100644
index 0000000..c0f2488
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY15 differ
diff --git a/DerClouProfiData/PICTURES/SKY15.ANI b/DerClouProfiData/PICTURES/SKY15.ANI
new file mode 100644
index 0000000..7aee187
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY15.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY16 b/DerClouProfiData/PICTURES/SKY16
new file mode 100644
index 0000000..6d04a03
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY16 differ
diff --git a/DerClouProfiData/PICTURES/SKY16.ANI b/DerClouProfiData/PICTURES/SKY16.ANI
new file mode 100644
index 0000000..42b42dc
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY16.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY17 b/DerClouProfiData/PICTURES/SKY17
new file mode 100644
index 0000000..02ddaae
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY17 differ
diff --git a/DerClouProfiData/PICTURES/SKY17.ANI b/DerClouProfiData/PICTURES/SKY17.ANI
new file mode 100644
index 0000000..a4c627d
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY17.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY18 b/DerClouProfiData/PICTURES/SKY18
new file mode 100644
index 0000000..9413d5c
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY18 differ
diff --git a/DerClouProfiData/PICTURES/SKY18.ANI b/DerClouProfiData/PICTURES/SKY18.ANI
new file mode 100644
index 0000000..2a9559e
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY18.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY19 b/DerClouProfiData/PICTURES/SKY19
new file mode 100644
index 0000000..aa45c79
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY19 differ
diff --git a/DerClouProfiData/PICTURES/SKY19.ANI b/DerClouProfiData/PICTURES/SKY19.ANI
new file mode 100644
index 0000000..d245f12
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY19.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY2 b/DerClouProfiData/PICTURES/SKY2
new file mode 100644
index 0000000..0f2a45e
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY2 differ
diff --git a/DerClouProfiData/PICTURES/SKY2.ANI b/DerClouProfiData/PICTURES/SKY2.ANI
new file mode 100644
index 0000000..5b1d1b6
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY2.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY21 b/DerClouProfiData/PICTURES/SKY21
new file mode 100644
index 0000000..7a9af50
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY21 differ
diff --git a/DerClouProfiData/PICTURES/SKY21.ANI b/DerClouProfiData/PICTURES/SKY21.ANI
new file mode 100644
index 0000000..14e3830
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY21.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY22 b/DerClouProfiData/PICTURES/SKY22
new file mode 100644
index 0000000..f22d8f2
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY22 differ
diff --git a/DerClouProfiData/PICTURES/SKY22.ANI b/DerClouProfiData/PICTURES/SKY22.ANI
new file mode 100644
index 0000000..1448e8a
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY22.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY23 b/DerClouProfiData/PICTURES/SKY23
new file mode 100644
index 0000000..7a7cf33
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY23 differ
diff --git a/DerClouProfiData/PICTURES/SKY23.ANI b/DerClouProfiData/PICTURES/SKY23.ANI
new file mode 100644
index 0000000..19223e2
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY23.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY24 b/DerClouProfiData/PICTURES/SKY24
new file mode 100644
index 0000000..d2865f8
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY24 differ
diff --git a/DerClouProfiData/PICTURES/SKY24.ANI b/DerClouProfiData/PICTURES/SKY24.ANI
new file mode 100644
index 0000000..9e6fb49
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY24.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY25 b/DerClouProfiData/PICTURES/SKY25
new file mode 100644
index 0000000..cdceb1d
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY25 differ
diff --git a/DerClouProfiData/PICTURES/SKY25.ANI b/DerClouProfiData/PICTURES/SKY25.ANI
new file mode 100644
index 0000000..cdb0f95
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY25.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY26 b/DerClouProfiData/PICTURES/SKY26
new file mode 100644
index 0000000..ec6e5cf
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY26 differ
diff --git a/DerClouProfiData/PICTURES/SKY26.ANI b/DerClouProfiData/PICTURES/SKY26.ANI
new file mode 100644
index 0000000..3d5314b
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY26.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY27 b/DerClouProfiData/PICTURES/SKY27
new file mode 100644
index 0000000..16ffaa6
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY27 differ
diff --git a/DerClouProfiData/PICTURES/SKY27.ANI b/DerClouProfiData/PICTURES/SKY27.ANI
new file mode 100644
index 0000000..bcbfeb9
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY27.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY28 b/DerClouProfiData/PICTURES/SKY28
new file mode 100644
index 0000000..db07e7d
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY28 differ
diff --git a/DerClouProfiData/PICTURES/SKY28.ANI b/DerClouProfiData/PICTURES/SKY28.ANI
new file mode 100644
index 0000000..12bd4f1
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY28.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY3 b/DerClouProfiData/PICTURES/SKY3
new file mode 100644
index 0000000..a84bd1b
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY3 differ
diff --git a/DerClouProfiData/PICTURES/SKY3.ANI b/DerClouProfiData/PICTURES/SKY3.ANI
new file mode 100644
index 0000000..c97c130
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY3.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY4 b/DerClouProfiData/PICTURES/SKY4
new file mode 100644
index 0000000..e3a8529
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY4 differ
diff --git a/DerClouProfiData/PICTURES/SKY4.ANI b/DerClouProfiData/PICTURES/SKY4.ANI
new file mode 100644
index 0000000..421733f
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY4.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY5 b/DerClouProfiData/PICTURES/SKY5
new file mode 100644
index 0000000..037f80e
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY5 differ
diff --git a/DerClouProfiData/PICTURES/SKY5.ANI b/DerClouProfiData/PICTURES/SKY5.ANI
new file mode 100644
index 0000000..97209e4
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY5.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY6 b/DerClouProfiData/PICTURES/SKY6
new file mode 100644
index 0000000..872c638
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY6 differ
diff --git a/DerClouProfiData/PICTURES/SKY6.ANI b/DerClouProfiData/PICTURES/SKY6.ANI
new file mode 100644
index 0000000..4deb73e
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY6.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY7 b/DerClouProfiData/PICTURES/SKY7
new file mode 100644
index 0000000..1e24506
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY7 differ
diff --git a/DerClouProfiData/PICTURES/SKY7.ANI b/DerClouProfiData/PICTURES/SKY7.ANI
new file mode 100644
index 0000000..141a336
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY7.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY8 b/DerClouProfiData/PICTURES/SKY8
new file mode 100644
index 0000000..fe31064
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY8 differ
diff --git a/DerClouProfiData/PICTURES/SKY8.ANI b/DerClouProfiData/PICTURES/SKY8.ANI
new file mode 100644
index 0000000..6d147bf
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY8.ANI differ
diff --git a/DerClouProfiData/PICTURES/SKY9 b/DerClouProfiData/PICTURES/SKY9
new file mode 100644
index 0000000..b18317e
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY9 differ
diff --git a/DerClouProfiData/PICTURES/SKY9.ANI b/DerClouProfiData/PICTURES/SKY9.ANI
new file mode 100644
index 0000000..32a591b
Binary files /dev/null and b/DerClouProfiData/PICTURES/SKY9.ANI differ
diff --git a/DerClouProfiData/PICTURES/SLEEP.ANI b/DerClouProfiData/PICTURES/SLEEP.ANI
new file mode 100644
index 0000000..dcb9b10
Binary files /dev/null and b/DerClouProfiData/PICTURES/SLEEP.ANI differ
diff --git a/DerClouProfiData/PICTURES/SPAZIERN b/DerClouProfiData/PICTURES/SPAZIERN
new file mode 100644
index 0000000..8e9c777
Binary files /dev/null and b/DerClouProfiData/PICTURES/SPAZIERN differ
diff --git a/DerClouProfiData/PICTURES/SPOT b/DerClouProfiData/PICTURES/SPOT
new file mode 100644
index 0000000..310ca31
Binary files /dev/null and b/DerClouProfiData/PICTURES/SPOT differ
diff --git a/DerClouProfiData/PICTURES/STANDARD b/DerClouProfiData/PICTURES/STANDARD
new file mode 100644
index 0000000..3217be6
Binary files /dev/null and b/DerClouProfiData/PICTURES/STANDARD differ
diff --git a/DerClouProfiData/PICTURES/STREET1 b/DerClouProfiData/PICTURES/STREET1
new file mode 100644
index 0000000..054fc17
Binary files /dev/null and b/DerClouProfiData/PICTURES/STREET1 differ
diff --git a/DerClouProfiData/PICTURES/STREET1.ANI b/DerClouProfiData/PICTURES/STREET1.ANI
new file mode 100644
index 0000000..52fc769
Binary files /dev/null and b/DerClouProfiData/PICTURES/STREET1.ANI differ
diff --git a/DerClouProfiData/PICTURES/STREET2 b/DerClouProfiData/PICTURES/STREET2
new file mode 100644
index 0000000..d9a8913
Binary files /dev/null and b/DerClouProfiData/PICTURES/STREET2 differ
diff --git a/DerClouProfiData/PICTURES/STREET2.ANI b/DerClouProfiData/PICTURES/STREET2.ANI
new file mode 100644
index 0000000..9487efe
Binary files /dev/null and b/DerClouProfiData/PICTURES/STREET2.ANI differ
diff --git a/DerClouProfiData/PICTURES/TAXI b/DerClouProfiData/PICTURES/TAXI
new file mode 100644
index 0000000..48239f8
Binary files /dev/null and b/DerClouProfiData/PICTURES/TAXI differ
diff --git a/DerClouProfiData/PICTURES/TELEPHON b/DerClouProfiData/PICTURES/TELEPHON
new file mode 100644
index 0000000..6f69340
Binary files /dev/null and b/DerClouProfiData/PICTURES/TELEPHON differ
diff --git a/DerClouProfiData/PICTURES/THEEND b/DerClouProfiData/PICTURES/THEEND
new file mode 100644
index 0000000..1ac4690
Binary files /dev/null and b/DerClouProfiData/PICTURES/THEEND differ
diff --git a/DerClouProfiData/PICTURES/TOOLS1 b/DerClouProfiData/PICTURES/TOOLS1
new file mode 100644
index 0000000..aba4590
Binary files /dev/null and b/DerClouProfiData/PICTURES/TOOLS1 differ
diff --git a/DerClouProfiData/PICTURES/TOOLS2 b/DerClouProfiData/PICTURES/TOOLS2
new file mode 100644
index 0000000..f1ad867
Binary files /dev/null and b/DerClouProfiData/PICTURES/TOOLS2 differ
diff --git a/DerClouProfiData/PICTURES/TOOLS3 b/DerClouProfiData/PICTURES/TOOLS3
new file mode 100644
index 0000000..971f920
Binary files /dev/null and b/DerClouProfiData/PICTURES/TOOLS3 differ
diff --git a/DerClouProfiData/PICTURES/TOOLS4 b/DerClouProfiData/PICTURES/TOOLS4
new file mode 100644
index 0000000..a2f8251
Binary files /dev/null and b/DerClouProfiData/PICTURES/TOOLS4 differ
diff --git a/DerClouProfiData/PICTURES/TOOLS5 b/DerClouProfiData/PICTURES/TOOLS5
new file mode 100644
index 0000000..c0b328c
Binary files /dev/null and b/DerClouProfiData/PICTURES/TOOLS5 differ
diff --git a/DerClouProfiData/PICTURES/TRAIN.OBJ b/DerClouProfiData/PICTURES/TRAIN.OBJ
new file mode 100644
index 0000000..7757174
Binary files /dev/null and b/DerClouProfiData/PICTURES/TRAIN.OBJ differ
diff --git a/DerClouProfiData/PICTURES/TRAIN48.OBJ b/DerClouProfiData/PICTURES/TRAIN48.OBJ
new file mode 100644
index 0000000..206e268
Binary files /dev/null and b/DerClouProfiData/PICTURES/TRAIN48.OBJ differ
diff --git a/DerClouProfiData/PICTURES/TRIUMPH b/DerClouProfiData/PICTURES/TRIUMPH
new file mode 100644
index 0000000..8363a0d
Binary files /dev/null and b/DerClouProfiData/PICTURES/TRIUMPH differ
diff --git a/DerClouProfiData/PICTURES/TUSS.OBJ b/DerClouProfiData/PICTURES/TUSS.OBJ
new file mode 100644
index 0000000..0fd3acc
Binary files /dev/null and b/DerClouProfiData/PICTURES/TUSS.OBJ differ
diff --git a/DerClouProfiData/PICTURES/VANS b/DerClouProfiData/PICTURES/VANS
new file mode 100644
index 0000000..9a680f8
Binary files /dev/null and b/DerClouProfiData/PICTURES/VANS differ
diff --git a/DerClouProfiData/PICTURES/VANS.ANI b/DerClouProfiData/PICTURES/VANS.ANI
new file mode 100644
index 0000000..da47a7d
Binary files /dev/null and b/DerClouProfiData/PICTURES/VANS.ANI differ
diff --git a/DerClouProfiData/PICTURES/WALRUS b/DerClouProfiData/PICTURES/WALRUS
new file mode 100644
index 0000000..22279ce
Binary files /dev/null and b/DerClouProfiData/PICTURES/WALRUS differ
diff --git a/DerClouProfiData/PICTURES/WALRUS.ANI b/DerClouProfiData/PICTURES/WALRUS.ANI
new file mode 100644
index 0000000..93b25f8
Binary files /dev/null and b/DerClouProfiData/PICTURES/WALRUS.ANI differ
diff --git a/DerClouProfiData/PICTURES/WERKZEUG b/DerClouProfiData/PICTURES/WERKZEUG
new file mode 100644
index 0000000..bd42cfb
Binary files /dev/null and b/DerClouProfiData/PICTURES/WERKZEUG differ
diff --git a/DerClouProfiData/PICTURES/WHISKY b/DerClouProfiData/PICTURES/WHISKY
new file mode 100644
index 0000000..956f3b8
Binary files /dev/null and b/DerClouProfiData/PICTURES/WHISKY differ
diff --git a/DerClouProfiData/PICTURES/WOHNUNG b/DerClouProfiData/PICTURES/WOHNUNG
new file mode 100644
index 0000000..a29998e
Binary files /dev/null and b/DerClouProfiData/PICTURES/WOHNUNG differ
diff --git a/DerClouProfiData/PICTURES/WOHNUNG.ANI b/DerClouProfiData/PICTURES/WOHNUNG.ANI
new file mode 100644
index 0000000..416e56a
Binary files /dev/null and b/DerClouProfiData/PICTURES/WOHNUNG.ANI differ
diff --git a/DerClouProfiData/PICTURES/ZEITUNG b/DerClouProfiData/PICTURES/ZEITUNG
new file mode 100644
index 0000000..0406d78
Binary files /dev/null and b/DerClouProfiData/PICTURES/ZEITUNG differ
diff --git a/DerClouProfiData/PublicLicenceContract.txt b/DerClouProfiData/PublicLicenceContract.txt
new file mode 100644
index 0000000..8394fdd
--- /dev/null
+++ b/DerClouProfiData/PublicLicenceContract.txt
@@ -0,0 +1,94 @@
+Allgemeine �ffentliche Lizenzbestimmungen
+
+
+Lizenznehmer:
+Zum Lizenznehmer wird jeder, der die vom Lizenzgeber zur Verf�gung gestellten
+Unterlagen (Sourcecodes, Grafiken, Musik etc.) des Produktes verbreitet und/oder ver�ndert.	
+
+Lizenzgeber: 
+neo Software Produktions GmbH
+Wienerbergstra�e 9/1
+A-1100 Wien
+�sterreich
+
+I.
+Allgemeines
+
+Produkt: Ein Computer- Onlinespiel mit dem (Arbeits-)Titel "Xxxxxx" f�r Windows 95/98/NT, 
+Windows 2000 und kompatible Computer Systeme, basierend auf anh�ngigem Konzept.
+
+Gegenstand der Lizenz ist die �ffentliche Weiterentwicklung und Ver�nderung des Produktes 
+durch Lizenznehmer.
+
+
+II.
+Verg�tung
+
+Der Lizenzgeber erh�lt f�r die zur Verf�gungstellung des Produktes keinerlei Verg�tung.
+
+Der Lizenzgeber erh�lt bei Fertigstellung durch Lizenznehmer innerhalb von 14 Kalendertagen 
+nach Fertigstellung eine Kopie aller ver�nderten oder f�r das Produkt neu erstellten Unterlagen 
+(Sourcecodes, Grafiken, Grafik Rohdaten) sowie ein lauff�higes Master der neuen Version f�r 
+seinen eigenen Bedarf an seine offizielle Email Adresse "office@neo.at" mit dem Betreff 
+"Open Source" und dem Produktnamen.
+
+Jede durch Lizenznehmer erstellte Version muss in zwei Versionen kostenlos und �ffentlich 
+zug�ngig gemacht werden:
+
+� Binary Distribution:
+Enth�lt ein installierbares Master UND diese Lizenzbestimmungen in Form dieser DOC Datei.
+
+� Developer's Distribution:
+Enth�lt alle Sourcecodes, alles Bild und Ton Material das zur Weiterentwicklung verwendet 
+wurde UND diese Lizenzbestimmungen in Form dieser DOC Datei.
+
+ III.
+Rechte und Pflichten
+
+Der Lizenzgeber �bertr�gt den Lizenznehmern r�umlich und zeitlich unbeschr�nkt das nicht 
+exklusive Recht, die unter diese Bestimmungen fallenden Versionen des Produktes zur G�nze 
+auf Datentr�gern jeder heute (insbes., jedoch nicht nur, CD-ROM, DVD, CD-V, Laserdisc usw.) 
+und zuk�nftig technisch realisierbaren Konfiguration (insbes., jedoch nicht nur PC-Chip, 
+Diskette, magnetooptische Speicher, Band, Online usw.) umfassend und ausschlie�lich nichtkommerziell 
+zu vervielf�ltigen und/oder zu verbreiten, und zwar in jeder heute und zuk�nftig technisch m�glichen 
+Form sowie das nicht exklusive Recht, die Versionen der Produktion zur G�nze ausschlie�lich 
+unentgeltlich in jeder heute und k�nftig technisch m�glichen Art (insbes., jedoch nicht nur 
+Online, �ber das Internet oder sonstige Netzwerke, Online-Dienste, CD-ROM oder �hnliche 
+Multimedia-Tr�ger usw.) zu verbreiten.
+
+Lizenznehmer d�rfen den urspr�nglichen Namen des Produktes nicht ver�ndern und die neuen Versionen
+ausschlie�lich durch Zus�tze kenntlich machen.
+
+Beispiel Original Name:
+Der Clou!
+
+Beispiele Versions Name:
+Der Clou! - Windows Version V1.0
+Der Clou! - Beute f�r Alle...
+
+Lizenznehmer m�ssen in jeder Version in der branchen�blichen Form auf den Lizenzgeber hinweisen. 
+Ausschlie�lich hierf�r ist den Lizenznehmern die Benutzung der Wortbildmarke "neo" des Lizenzgebers 
+bis auf Widerruf gestattet. 
+
+Die Vermerke "basierend auf der Originalversion von neo Software" und 
+"Details dar�ber finden Sie unter www.neo.at" m�ssen deutlich lesbar im Installationsteil und nach 
+dem Start des Produktes am Bildschirm dargestellt werden. Eine inhaltlich unver�nderte �bersetzung dieser 
+Phrasen in andere Sprachen ist zul�ssig.
+
+
+IV.
+Gew�hrleistung und Haftung
+
+In keinem Fall kann der Lizenzgeber f�r irgendwelche Sch�den, Folgesch�den, Forderungen etc. haftbar 
+gemacht werden, die durch die von Lizenzgeber erstmals ver�ffentlichte Version oder eine durch Lizenznehmer 
+erstellte Version des Produktes entstanden sind. Im zweiten Falle sind die Lizenznehmer verpflichtet, den 
+Lizenzgeber vollkommen schadlos zu halten.
+
+
+ V.
+Schlussbestimmungen
+
+Diese Bedingungen unterliegen dem Recht der Republik �sterreich.
+
+Gerichtsstand ist Wien.
+
diff --git a/DerClouProfiData/ReadMe-SDL.txt b/DerClouProfiData/ReadMe-SDL.txt
new file mode 100644
index 0000000..1669736
--- /dev/null
+++ b/DerClouProfiData/ReadMe-SDL.txt
@@ -0,0 +1,13 @@
+
+Please distribute this file with the SDL runtime environment:
+
+The Simple DirectMedia Layer (SDL for short) is a cross-platfrom library
+designed to make it easy to write multi-media software, such as games and
+emulators.
+
+The Simple DirectMedia Layer library source code is available from:
+http://www.libsdl.org/
+
+This library is distributed under the terms of the GNU LGPL license:
+http://www.gnu.org/copyleft/lesser.html
+
diff --git a/DerClouProfiData/SAMPLES/BIRTHD1.VOC b/DerClouProfiData/SAMPLES/BIRTHD1.VOC
new file mode 100644
index 0000000..ea5dd69
Binary files /dev/null and b/DerClouProfiData/SAMPLES/BIRTHD1.VOC differ
diff --git a/DerClouProfiData/SAMPLES/BIRTHD2.VOC b/DerClouProfiData/SAMPLES/BIRTHD2.VOC
new file mode 100644
index 0000000..ea650de
Binary files /dev/null and b/DerClouProfiData/SAMPLES/BIRTHD2.VOC differ
diff --git a/DerClouProfiData/SAMPLES/BRILLE.VOC b/DerClouProfiData/SAMPLES/BRILLE.VOC
new file mode 100644
index 0000000..4fb3ade
Binary files /dev/null and b/DerClouProfiData/SAMPLES/BRILLE.VOC differ
diff --git a/DerClouProfiData/SAMPLES/CHURCH.VOC b/DerClouProfiData/SAMPLES/CHURCH.VOC
new file mode 100644
index 0000000..4fa7aba
Binary files /dev/null and b/DerClouProfiData/SAMPLES/CHURCH.VOC differ
diff --git a/DerClouProfiData/SAMPLES/DARTH.VOC b/DerClouProfiData/SAMPLES/DARTH.VOC
new file mode 100644
index 0000000..319bcf2
Binary files /dev/null and b/DerClouProfiData/SAMPLES/DARTH.VOC differ
diff --git a/DerClouProfiData/SAMPLES/EXPLOSIO.VOC b/DerClouProfiData/SAMPLES/EXPLOSIO.VOC
new file mode 100644
index 0000000..7e815b8
Binary files /dev/null and b/DerClouProfiData/SAMPLES/EXPLOSIO.VOC differ
diff --git a/DerClouProfiData/SAMPLES/FLUCHT.VOC b/DerClouProfiData/SAMPLES/FLUCHT.VOC
new file mode 100644
index 0000000..8147133
Binary files /dev/null and b/DerClouProfiData/SAMPLES/FLUCHT.VOC differ
diff --git a/DerClouProfiData/SAMPLES/KLOPFEN.VOC b/DerClouProfiData/SAMPLES/KLOPFEN.VOC
new file mode 100644
index 0000000..21a20f6
Binary files /dev/null and b/DerClouProfiData/SAMPLES/KLOPFEN.VOC differ
diff --git a/DerClouProfiData/SAMPLES/MARTHORN.VOC b/DerClouProfiData/SAMPLES/MARTHORN.VOC
new file mode 100644
index 0000000..0b8dc5e
Binary files /dev/null and b/DerClouProfiData/SAMPLES/MARTHORN.VOC differ
diff --git a/DerClouProfiData/SAMPLES/RING.VOC b/DerClouProfiData/SAMPLES/RING.VOC
new file mode 100644
index 0000000..6822a40
Binary files /dev/null and b/DerClouProfiData/SAMPLES/RING.VOC differ
diff --git a/DerClouProfiData/SAMPLES/SIRENE.VOC b/DerClouProfiData/SAMPLES/SIRENE.VOC
new file mode 100644
index 0000000..2d61693
Binary files /dev/null and b/DerClouProfiData/SAMPLES/SIRENE.VOC differ
diff --git a/DerClouProfiData/SAMPLES/STREICH.VOC b/DerClouProfiData/SAMPLES/STREICH.VOC
new file mode 100644
index 0000000..6880a43
Binary files /dev/null and b/DerClouProfiData/SAMPLES/STREICH.VOC differ
diff --git a/DerClouProfiData/SAMPLES/TAXI.VOC b/DerClouProfiData/SAMPLES/TAXI.VOC
new file mode 100644
index 0000000..5560cea
Binary files /dev/null and b/DerClouProfiData/SAMPLES/TAXI.VOC differ
diff --git a/DerClouProfiData/SAMPLES/WC.VOC b/DerClouProfiData/SAMPLES/WC.VOC
new file mode 100644
index 0000000..8bd430e
Binary files /dev/null and b/DerClouProfiData/SAMPLES/WC.VOC differ
diff --git a/DerClouProfiData/SDL.dll b/DerClouProfiData/SDL.dll
new file mode 100644
index 0000000..69fd61e
Binary files /dev/null and b/DerClouProfiData/SDL.dll differ
diff --git a/DerClouProfiData/SOUNDS/BAR1.BK b/DerClouProfiData/SOUNDS/BAR1.BK
new file mode 100644
index 0000000..f1aff56
Binary files /dev/null and b/DerClouProfiData/SOUNDS/BAR1.BK differ
diff --git a/DerClouProfiData/SOUNDS/BAR2.BK b/DerClouProfiData/SOUNDS/BAR2.BK
new file mode 100644
index 0000000..ff31676
Binary files /dev/null and b/DerClouProfiData/SOUNDS/BAR2.BK differ
diff --git a/DerClouProfiData/SOUNDS/BRUCH1.BK b/DerClouProfiData/SOUNDS/BRUCH1.BK
new file mode 100644
index 0000000..ebfefce
Binary files /dev/null and b/DerClouProfiData/SOUNDS/BRUCH1.BK differ
diff --git a/DerClouProfiData/SOUNDS/BRUCH2.BK b/DerClouProfiData/SOUNDS/BRUCH2.BK
new file mode 100644
index 0000000..e555888
Binary files /dev/null and b/DerClouProfiData/SOUNDS/BRUCH2.BK differ
diff --git a/DerClouProfiData/SOUNDS/CARS.BK b/DerClouProfiData/SOUNDS/CARS.BK
new file mode 100644
index 0000000..6b3f44b
Binary files /dev/null and b/DerClouProfiData/SOUNDS/CARS.BK differ
diff --git a/DerClouProfiData/SOUNDS/CT_VOICE.DRV b/DerClouProfiData/SOUNDS/CT_VOICE.DRV
new file mode 100644
index 0000000..f104ecd
Binary files /dev/null and b/DerClouProfiData/SOUNDS/CT_VOICE.DRV differ
diff --git a/DerClouProfiData/SOUNDS/DEALER.BK b/DerClouProfiData/SOUNDS/DEALER.BK
new file mode 100644
index 0000000..637227f
Binary files /dev/null and b/DerClouProfiData/SOUNDS/DEALER.BK differ
diff --git a/DerClouProfiData/SOUNDS/END.BK b/DerClouProfiData/SOUNDS/END.BK
new file mode 100644
index 0000000..4639cc2
Binary files /dev/null and b/DerClouProfiData/SOUNDS/END.BK differ
diff --git a/DerClouProfiData/SOUNDS/FAHNDUNG.BK b/DerClouProfiData/SOUNDS/FAHNDUNG.BK
new file mode 100644
index 0000000..b2cea79
Binary files /dev/null and b/DerClouProfiData/SOUNDS/FAHNDUNG.BK differ
diff --git a/DerClouProfiData/SOUNDS/FAILED.BK b/DerClouProfiData/SOUNDS/FAILED.BK
new file mode 100644
index 0000000..f1bff16
Binary files /dev/null and b/DerClouProfiData/SOUNDS/FAILED.BK differ
diff --git a/DerClouProfiData/SOUNDS/FINAL.BK b/DerClouProfiData/SOUNDS/FINAL.BK
new file mode 100644
index 0000000..e0d7e79
Binary files /dev/null and b/DerClouProfiData/SOUNDS/FINAL.BK differ
diff --git a/DerClouProfiData/SOUNDS/GLUDO.BK b/DerClouProfiData/SOUNDS/GLUDO.BK
new file mode 100644
index 0000000..eea9d9c
Binary files /dev/null and b/DerClouProfiData/SOUNDS/GLUDO.BK differ
diff --git a/DerClouProfiData/SOUNDS/HOTEL.BK b/DerClouProfiData/SOUNDS/HOTEL.BK
new file mode 100644
index 0000000..172d508
Binary files /dev/null and b/DerClouProfiData/SOUNDS/HOTEL.BK differ
diff --git a/DerClouProfiData/SOUNDS/INVEST.BK b/DerClouProfiData/SOUNDS/INVEST.BK
new file mode 100644
index 0000000..c8f9a4d
Binary files /dev/null and b/DerClouProfiData/SOUNDS/INVEST.BK differ
diff --git a/DerClouProfiData/SOUNDS/MALOYA.BK b/DerClouProfiData/SOUNDS/MALOYA.BK
new file mode 100644
index 0000000..200961d
Binary files /dev/null and b/DerClouProfiData/SOUNDS/MALOYA.BK differ
diff --git a/DerClouProfiData/SOUNDS/OK.BK b/DerClouProfiData/SOUNDS/OK.BK
new file mode 100644
index 0000000..6d1094c
Binary files /dev/null and b/DerClouProfiData/SOUNDS/OK.BK differ
diff --git a/DerClouProfiData/SOUNDS/PARKER.BK b/DerClouProfiData/SOUNDS/PARKER.BK
new file mode 100644
index 0000000..72908de
Binary files /dev/null and b/DerClouProfiData/SOUNDS/PARKER.BK differ
diff --git a/DerClouProfiData/SOUNDS/SABIEN.BK b/DerClouProfiData/SOUNDS/SABIEN.BK
new file mode 100644
index 0000000..48a5270
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SABIEN.BK differ
diff --git a/DerClouProfiData/SOUNDS/SHOP.BK b/DerClouProfiData/SOUNDS/SHOP.BK
new file mode 100644
index 0000000..dc4d1e2
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SHOP.BK differ
diff --git a/DerClouProfiData/SOUNDS/SND21.BK b/DerClouProfiData/SOUNDS/SND21.BK
new file mode 100644
index 0000000..6295430
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SND21.BK differ
diff --git a/DerClouProfiData/SOUNDS/SND22.BK b/DerClouProfiData/SOUNDS/SND22.BK
new file mode 100644
index 0000000..5727686
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SND22.BK differ
diff --git a/DerClouProfiData/SOUNDS/SND23.BK b/DerClouProfiData/SOUNDS/SND23.BK
new file mode 100644
index 0000000..242d4bc
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SND23.BK differ
diff --git a/DerClouProfiData/SOUNDS/SND24.BK b/DerClouProfiData/SOUNDS/SND24.BK
new file mode 100644
index 0000000..4091255
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SND24.BK differ
diff --git a/DerClouProfiData/SOUNDS/SND25.BK b/DerClouProfiData/SOUNDS/SND25.BK
new file mode 100644
index 0000000..49f0119
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SND25.BK differ
diff --git a/DerClouProfiData/SOUNDS/SND26.BK b/DerClouProfiData/SOUNDS/SND26.BK
new file mode 100644
index 0000000..7b56729
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SND26.BK differ
diff --git a/DerClouProfiData/SOUNDS/SND27.BK b/DerClouProfiData/SOUNDS/SND27.BK
new file mode 100644
index 0000000..077eb93
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SND27.BK differ
diff --git a/DerClouProfiData/SOUNDS/SND28.BK b/DerClouProfiData/SOUNDS/SND28.BK
new file mode 100644
index 0000000..e54e730
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SND28.BK differ
diff --git a/DerClouProfiData/SOUNDS/SOUTH.BK b/DerClouProfiData/SOUNDS/SOUTH.BK
new file mode 100644
index 0000000..1baa9cb
Binary files /dev/null and b/DerClouProfiData/SOUNDS/SOUTH.BK differ
diff --git a/DerClouProfiData/SOUNDS/STREET1.BK b/DerClouProfiData/SOUNDS/STREET1.BK
new file mode 100644
index 0000000..1471291
Binary files /dev/null and b/DerClouProfiData/SOUNDS/STREET1.BK differ
diff --git a/DerClouProfiData/SOUNDS/STREET2.BK b/DerClouProfiData/SOUNDS/STREET2.BK
new file mode 100644
index 0000000..c6f3496
Binary files /dev/null and b/DerClouProfiData/SOUNDS/STREET2.BK differ
diff --git a/DerClouProfiData/SOUNDS/STREET3.BK b/DerClouProfiData/SOUNDS/STREET3.BK
new file mode 100644
index 0000000..1e7549f
Binary files /dev/null and b/DerClouProfiData/SOUNDS/STREET3.BK differ
diff --git a/DerClouProfiData/SOUNDS/THECL.CFG b/DerClouProfiData/SOUNDS/THECL.CFG
new file mode 100644
index 0000000..fc54568
--- /dev/null
+++ b/DerClouProfiData/SOUNDS/THECL.CFG
@@ -0,0 +1 @@
+ G
\ No newline at end of file
diff --git a/DerClouProfiData/SOUNDS/TITLE.BK b/DerClouProfiData/SOUNDS/TITLE.BK
new file mode 100644
index 0000000..66b0c0e
Binary files /dev/null and b/DerClouProfiData/SOUNDS/TITLE.BK differ
diff --git a/DerClouProfiData/TEXTS/ABILITYD.TXT b/DerClouProfiData/TEXTS/ABILITYD.TXT
new file mode 100644
index 0000000..3a016e1
Binary files /dev/null and b/DerClouProfiData/TEXTS/ABILITYD.TXT differ
diff --git a/DerClouProfiData/TEXTS/ANIMD.TXT b/DerClouProfiData/TEXTS/ANIMD.TXT
new file mode 100644
index 0000000..d2c054c
Binary files /dev/null and b/DerClouProfiData/TEXTS/ANIMD.TXT differ
diff --git a/DerClouProfiData/TEXTS/BUSINESD.TXT b/DerClouProfiData/TEXTS/BUSINESD.TXT
new file mode 100644
index 0000000..5343f87
Binary files /dev/null and b/DerClouProfiData/TEXTS/BUSINESD.TXT differ
diff --git a/DerClouProfiData/TEXTS/CDROMD.TXT b/DerClouProfiData/TEXTS/CDROMD.TXT
new file mode 100644
index 0000000..a19026c
--- /dev/null
+++ b/DerClouProfiData/TEXTS/CDROMD.TXT
@@ -0,0 +1 @@
+V=:!09*84!!*FxGBYAGYEYGBYACYExV8<99<:;4<'0xGBYABYEYGBY@DYExV!=0*>0,*%904&0xGBY@GYEYGBY@@YExV!=4;>&*3:'*>0,xGBY@@YEYGMYEYExV7xGBYMYEYGBYLYExV40===xGBYDEYEYGBYDGYExV&!*FE*:91xEYEYEYEYFLYExV&!*FD*:91*ExEYAEYEYEY@AYExV&!*FD*84!!*ExGMYEYEYGMYGYExV&!*FD*:91*DxEY@@YEYDYGLYExV%:9<*84!!*GxGMYDMYEYGMYGDYExV%:9<*84!!*FxGMYGDYEYGMYGAYExV%:9<*84!!*AxGMYGAYEYGMYGCYExV%:9<*84!!*@xGMYGBYEYGMYFFYExV%:9<*84!!*CxGMYFFYEYGMYAGYExV7'<22&*84!!*DxGMYAFYEYGMYABYExV7'<22&*84!!*GxGMYABYEYGMYALYExV43!0'*800!<;2*7'<22&xCYFGYEYCYABYExV7'<22&*8'*"=<&>,xCYABYEYCY@CYExV>9:&!0'xCY@CYEYBYMYExV84!!*&!4,&*=:9,xBYLYEYBYGAYExV0#<9*84!!xGMY@BYEYGLYMYExV0#<9*84!!*DxGLYDFYEYGLYDBYExV0#<9*:91*84!!xDYGLYEYDYF@YExV14;;0'*FxGLYFBYEYGLYADYExV9:7= 109xBYGMYEYBYAEYExV&4<9:'*84!!*ExGLYAGYEYGLYAMYExV&4<9:'*:91*84!!*ExDYFCYEYDYACYExV6499*84!!*ExGLY@GYEYGLY@BYExV34=;1 ;2xBYAAYEYLYBYExV'041*!<80&*ExLYDGYEYDEYMYExV'041*!<80&*DxDEYDAYEYDEYGCYExV4''0&!*:91*84!!*ExDYALYEYDY@FYExV4''0&!*84!!*ExGLY@MYEYFEYFYExV4''0&!*:91*84!!*DxDY@BYEYGYEYFExV<;*%'<&:;*:91*ExGYEYAEYGYCYExV@!=*:91*ExGYCYEYGYGGYExV@!=*:91*DxGYGGYEYGYGLYExV@!=*84!!*ExFEYFYEYFEYDAYExV@!=*:91*GxGYGLYEYGYFAYExV@!=*:91*FxGYFAYEYGYAGYExV@!=*:91*AxGYAFYEYGYA@YExV@!=*:91*@xGYA@YEYGYALYExV@!=*84!!*DxFEYDAYEYFEYDCYExV@!=*:91*CxGYALYEYFYGYExV@!=*:91*BxFY@YEYFYGBYExV'4<1*:91*84!!*ExFYFEYEYFY@DYExV'4<1*84!!*DxFEYFFYEYFEYFCYExV'4<1*84!!*GxFEYFBYEYFEYAEYExV'4<1*:91*84!!*DxFY@DYEYAY@YExV'4<1*:91*84!!*GxAYDEYEYAYGAYExV14'!*:91*84!!*ExAYFEYEYAYFBYExV14'!*?4020'*ExAYAGYEY@YAEYFExV14'!*?4020'*Dx@YAEYAEYCYD@YExV!=0*0;1*8:;4&!0',xCYGDYEYCYFGYExV8:';<;2*84!!*ExDEYFEYEYDEYAGYExV8:';<;2*84!!*DxDEYAAYEYDDYMYExV2':#0*84!!*ExFEYACYEYFEYAMYExV2':#0*:91*84!!*ExDDYDEYEYDDYGAYExV2':#0*84!!*DxFEYAMYEYFEY@GYF@xV2':#0*84!!*GxFEY@FYEYFEY@AYExV2':#0*:91*84!!*DxDDYGAYEYDDYFCYExV&!D*:91*ExDDYFMYEYDDYAGYExV&!D*:91*DxDDYAFYEYDDY@FYExV&!D*84!!*ExFEY@@YEYFEY@BYExV&!D*84!!*DxFEY@BYEYFEY@MYAExV&!D*84!!*GxFDYDYEYFDYFYExV&!D*84!!*FxFDYGYAEYFDYMYExV&!*G*:91*ExDDY@CYEYDGYDAYExV&!*G*;:!*:91*ExDGYDLYEYDGYF@YExV#0'%4&&!*7'<03xDGYFMYEYDGYADYExV&!*F*:91*ExDGYAGYEYDFYGGYExV&!*A*:91*ExDFYGGYEYDFYGMYExV&!*A*:91*DxDFYFEYEYDFYAGYExV&!*A*:91*GxDFYAGYEYDFYALYExV&!*@*:91*ExDFY@AYEYDAYGLYExV&!*C*:91*ExDAYFDYEYDAYAAYExV&!*B*:91*ExDAYACYEYD@YD@YExV&!*M*84!!*ExD@YDLYEYDCYGYExV&!*M*:91*ExDCYAYEYDCYDFYExV&!*L*:91*ExDCYDAYEYDCYGAYExV&!*L*:91*DxDCYGCYEYDCYFDYExV&!*DE*:91*ExDCYFGYEYDCY@DYExV&!*DD*:91*ExDCY@GYEYDCY@MYExV&!*DF*:91*ExDBYEYEYDBYDGYExV&!*DA*:91*ExDBYDAYEYDBYDMYExV&!*DA*420;!*ExV&!*DA*:91*DxDBYDLYEYDBYAMYExV&!*D@*:91*;:!*ExDBY@DYEYDMYAYExV&!*D@*84!!*;:!*ExFDYDEYEYFDYGEYExV&!*D@*:91*;:!*DxDMYAYEYDMYDEYExV&!*D@*:91*ExDMYDFYEYDMYFCYExV&!*D@*:91*DxDMYFMYEYDLYFDYExV&!*DC*:91*ExDLYF@YEYDLYABYExV&!*DC*:91*DxDLYALYEYGEYDYExV&!*DB*:91*ExGEYAYEYGEYGAYExV&!*DB*:91*DxGEYGBYEYGEYFEYExV&!*DM*:91*ExGEYF@YEYGDYGDYExV&!*DM*:91*DxGDYGFYEYGDYG@YExV&!*DL*:91*ExGDYGMYEYGGYGYExV&!*GE*:91*ExGGY@YEYGGYFDYExV&!*GE"*:91*ExGGYFFYEYGGY@FYExV&!*GD*:91xGFYEYEYGFYBYExV&!*GG*84!!xFDYGMYEYFDYAEYExV&!*GF*84!!xGFYLYEYGFYFEYExV&!*GG:*84!!xFDYAEYEYFDY@DYExV&!*GF:*84!!xGFYFGYEYGFYAFYExV&!*GA*:91*ExGFYA@YEYGFY@BYExV&!*GA*84!!*ExFDY@GYEYFDY@AYExV&!*GA*84!!*DxFDY@MYEYFGYDYExV&!*GA*84!!*GxFGYFYEYFGYCYExV&!*GA*:91*DxGFY@LYEYGAYGYExV&!*GA*84!!*FxFGYCYEYFGYLYExV&!*GA*:91*GxGAY@YEYGAYDFYExV&!*GA*:91*FxGAYDAYEYGAYGGYExV&!*GA:*:91*FxGAYGAYEYGAYFFYExV&!*G@*:91*ExGAYF@YEYGAYADYExV&!*G@*:91*DxGAYACYEYG@YFYExV&!*G@*84!!*ExFGYDFYEYFGYD@YExV&!*G@*:91*GxG@YAYEYG@YMYExV&!*GC*:91*ExG@YLYEYG@YDFYExV&!*GC*:91*DxG@YDCYEYG@YFFYExV&!*GB*:91*ExG@YFBYEYG@Y@@YExV&!*GM*:91*ExG@Y@CYEYGCYDDYExV&!*GM*:91*DxGCYDCYEYGCYGAYExV&!*GL*:91*ExGCYGLYEYGCYFCYExV!=0*0;1*%'<&:;xGCYAEYEYGCY@EYExV!=0*0;1*8:;4&!0',xGCY@GYEYGBYFYEx+x
\ No newline at end of file
diff --git a/DerClouProfiData/TEXTS/COLL.LST b/DerClouProfiData/TEXTS/COLL.LST
new file mode 100644
index 0000000..e1d1d30
--- /dev/null
+++ b/DerClouProfiData/TEXTS/COLL.LST
@@ -0,0 +1,194 @@
+; Collection List
+; Amiga conventions
+; CollId, Filename , Width, Height, Pri, Depth, DiskNr, Length, Usage
+; PC conventions
+; CollId, Filename, Width, Height, ColorsBegin, ColorsEnd
+; PC conventions Profidisk
+; CollId, Filename, Width, Height, ColorsBegin, ColorsEnd, fromDisk
+1,sky1,320,140,0,191,0
+2,sky2,320,140,0,191,0
+3,sky3,320,140,0,191,0
+4,sky4,320,140,0,191,0
+5,sky5,320,140,0,191,0
+6,sky6,320,140,0,191,0
+7,sky7,320,140,0,191,0
+8,sky8,320,140,0,191,0
+9,sky9,320,140,0,191,0
+10,sky10,320,140,0,191,0
+11,sky11,320,140,0,191,0
+12,sky12,320,140,0,191,0
+13,sky13,320,140,0,191,0
+14,sky14,320,140,0,191,0
+15,sky15,320,140,0,191,0
+16,sky16,320,140,0,191,0
+17,sky17,320,140,0,191,0
+18,sky18,320,140,0,191,0
+19,sky19,320,140,0,191,0
+20,sky1.ani,320,15,0,191,0
+21,sky2.ani,288,25,0,191,0
+22,sky3.ani,64,17,0,191,0
+23,sky4.ani,176,84,0,191,0
+24,sky5.ani,128,28,0,191,0
+25,sky6.ani,128,32,0,191,0
+26,sky7.ani,320,72,0,191,0
+27,sky8.ani,208,84,0,191,0
+28,sky9.ani,192,28,0,191,0
+29,sky10.ani,160,26,0,191,0
+30,sky11.ani,128,40,0,191,0
+31,sky12.ani,128,39,0,191,0
+32,sky13.ani,128,31,0,191,0
+33,sky14.ani,320,30,0,191,0
+34,sky15.ani,64,38,0,191,0
+35,sky16.ani,96,10,0,191,0
+36,sky17.ani,128,25,0,191,0
+37,sky18.ani,64,17,0,191,0
+38,sky19.ani,48,19,0,191,0
+39,garage,320,140,0,191,0
+40,parking,320,140,0,191,0
+41,vans,320,140,0,191,0
+42,kaserne,320,140,0,191,0
+43,kloster,320,140,0,191,0
+44,mafia,320,140,0,191,0
+45,police,320,140,0,191,0
+46,pub,320,140,0,191,0
+47,street1,320,140,0,191,0
+48,street2,320,140,0,191,0
+49,walrus,320,140,0,191,0
+50,hotel,320,140,0,191,0
+51,wohnung,320,140,0,191,0
+52,hehler1,320,140,0,191,0
+53,hehler2,320,140,0,191,0
+54,hehler3,320,140,0,191,0
+55,werkzeug,320,140,0,191,0
+56,sabien,320,140,0,191,0
+57,vans.ani,160,34,0,191,0
+58,kaserne.ani,96,30,0,191,0
+59,kloster.ani,264,72,0,191,0
+60,police.ani,280,82,0,191,0
+61,pub.ani,240,29,0,191,0
+62,street1.ani,160,72,0,191,0
+63,street2.ani,182,49,0,191,0
+64,walrus.ani,192,53,0,191,0
+65,wohnung.ani,84,28,0,191,0
+66,taxi,320,140,0,191,0
+67,cludo,80,64,0,191,0
+68,prison,80,64,0,191,0
+69,whisky,80,96,0,191,0
+70,spaziern,80,64,0,191,0
+71,birthday,240,20,0,191,0
+72,kuss,80,64,0,191,0
+73,telephon,80,64,0,191,0
+74,cracks,168,62,0,191,0
+75,sleep.ani,240,64,0,191,0
+76,cemetery,320,140,0,191,0
+77,cemetery.ani,240,56,0,191,0
+78,shampton,320,140,0,191,0
+79,landmatt,72,76,0,191,0
+80,family,96,95,0,191,0
+81,theend,112,24,0,191,0
+82,shampto2,320,140,0,191,0
+83,rezeptio,320,140,0,191,0
+84,rezeptio.ani,320,60,0,191,0
+85,cadillac,224,66,0,191,0
+86,jeep,144,86,0,191,0
+87,triumph,168,69,0,191,0
+88,opel,176,68,0,191,0
+89,standard,168,69,0,191,0
+90,jaguar,176,69,0,191,0
+91,pontiac,216,78,0,191,0
+92,fiat,160,71,0,191,0
+93,morris,176,78,0,191,0
+94,marcsmih,320,140,0,191,0
+95,explosi1.ani,320,128,0,191,0
+96,explosi2.ani,320,64,0,191,0
+97,rep.ani,240,128,0,191,0
+98,lack.ani,240,128,0,191,0
+99,faces1,310,134,192,223,0
+100,faces2,186,67,192,223,0
+101,faces3,248,134,192,223,0
+102,faces4,310,134,192,223,0
+103,faces5,124,67,192,223,0
+104,faces6,124,67,192,223,0
+105,faces7,248,134,192,223,0
+106,faces8,248,67,192,223,0
+107,faces9,248,67,192,223,0
+108,faces10,248,67,192,223,0
+109,tools1,186,134,192,223,0
+110,tools2,310,134,192,223,0
+111,tools3,248,134,192,223,0
+112,tools4,248,67,192,223,0
+113,objects1,186,67,192,223,0
+114,objects2,186,134,192,223,0
+115,objects3,124,67,192,223,0
+116,objects4,310,134,192,223,0
+117,objects5,310,67,192,223,0
+118,objects6,62,67,192,223,0
+119,objects7,62,67,192,223,0
+120,objects8,124,67,192,223,0
+121,objects9,62,67,192,223,0
+122,object10,124,67,192,223,0
+123,object11,62,67,192,223,0
+124,object12,62,67,192,223,0
+125,object13,62,67,192,223,0
+126,object14,62,67,192,223,0
+127,object15,62,67,192,223,0
+128,menu,320,120,192,246,0
+129,bubble,264,133,224,227,0
+130,coming,320,140,0,191,0
+131,bahnhof,320,140,0,191,0
+132,bahnhof.ani,198,72,0,191,0
+133,mattbart,62,67,192,223,0
+134,tools5,186,67,192,223,0
+135,funk,62,67,192,223,0
+136,organisa,320,140,0,191,0
+137,allmaxi,320,182,128,191,0
+138,leer,0,0,0,0,0
+139,boden1,320,32,0,0,0
+140,boden0,320,32,0,0,0
+141,objecte1,320,192,0,127,0
+142,objecte2,288,192,0,127,0
+143,objecte3,288,32,0,127,0
+144,objecte4,288,144,0,127,0
+145,objecte5,320,32,0,127,0
+146,objecte1,320,192,0,127,0
+147,action,320,140,0,255,0
+148,automap,320,140,0,191,0
+149,dart,124,124,0,191,0
+; added cars
+150,bentley.car,208,68,0,191,1
+151,fiat.car,242,124,0,191,1
+152,ford.car,152,80,0,191,1
+153,rover.car,168,80,0,191,1
+;added persons
+154,faces11,310,134,192,223,1
+; added outside
+155,sky21,320,140,0,191,1
+156,sky22,318,138,0,191,1
+157,sky23,316,140,0,191,1
+158,sky24,320,140,0,191,1
+159,sky25,320,140,0,191,1
+160,sky26,320,140,0,191,1
+161,sky27,320,140,0,191,1
+162,sky28,320,140,0,191,1
+; added outside anim
+163,sky21.ani,192,40,0,191,1
+164,sky22.ani,280,44,0,191,1
+165,sky23.ani,192,26,0,191,1
+166,sky24.ani,192,70,0,191,1
+167,sky25.ani,200,70,0,191,1
+168,sky26.ani,96,22,0,191,1
+169,sky27.ani,160,44,0,191,1
+170,sky28.ani,160,58,0,191,1
+; added loot
+171,object16,186,67,192,223,1
+172,object17,62,67,192,223,1
+; added inside
+173,abbey.obj,320,192,0,127,1
+174,tuss.obj,320,192,0,127,1
+175,train.obj,320,192,0,127,1
+176,bull.obj,320,192,0,127,1
+177,train48.obj,288,48,0,127,1
+; added ground
+178,boden2,320,32,0,0,1
+179,boden3,160,32,0,0,1
+
diff --git a/DerClouProfiData/TEXTS/DEMOD.TXT b/DerClouProfiData/TEXTS/DEMOD.TXT
new file mode 100644
index 0000000..16f97ac
--- /dev/null
+++ b/DerClouProfiData/TEXTS/DEMOD.TXT
@@ -0,0 +1,116 @@
+#Matt_Start
+;
+Ich kam vor einigen Stunden in London an, mit
+zehn Pfund in der Tasche. Ich kannte nur eine
+Person, an die ich mich wenden konnte: Briggs.
+Er hat einen ehrenwerten Beruf - er ist ein
+Dieb. Und er lebt nicht schlecht. Es stand f�r
+mich fest, da� auch ich diese Karriere 
+einschlagen w�rde.
+Er versprach mir, mich beim n�chsten Einbruch
+mitzunehmen, um Erfahrungen sammeln zu k�nnen.
+Wir verabredeten uns vor dem Autoh�ndler
+Marc Smith. Das war der Start meiner Karriere
+als Dieb.
+Oh, entschuldigen Sie bitte, bevor ich es
+vergesse. Mein Name ist Matt.
+;
+#Briggs_1
+;
+Hallo Matt! Sehr gut, da� Du hergefunden hast.
+Darf ich Dir vorstellen: das ist Tony Allen.
+;
+#Matt_Hi
+;
+Hallo Tony.
+;
+#Tony_Hi
+;
+Hallo Matt.
+;
+#Briggs_1_2
+;
+Kommen wir gleich zur Sache: Matt, wir haben
+Dich angerufen, weil wir wieder ein paar Pfund
+gebrauchen k�nnten.
+Tony hat sich schon ein paar Geb�ude n�her unter
+die Lupe genommen...
+;
+#Tony_1
+;
+Naja, ich hab mir 4 Objekte n�her angeschaut:
+Den Juwellier in der Oxford Street, 
+Aunt Emma's Shop in South East,
+Kennwood House und die
+Bank of England.
+M�chtest Du genauere Infos �ber ein Geb�ude
+haben?
+;
+#Matt_1
+*Den Juwellier in der Oxford Street?
+*Wie l�uft Aunt Emma's Shop?
+*Was ist das Kennwoord House?
+*Erz�hle was �ber die Bank of England!
+*Danke sch�n!
+;
+#Tony_Juw
+Ein nettes Gesch�ft in einer guten Gegend. In der
+Auslage habe ich auch ein paar Prunkst�cke
+gesehen... Golduhren, Edelsteine und andere
+Klunker! K�nnte ein erfolgreicher Bruch werden,
+nur etwas risikoreich.
+;
+#Tony_Aunt
+Ein kleiner gutgehender Laden. Sie haben sehr gute
+Sandwichses. Das Rezept k�nnte eine Menge Geld
+bringen.
+;
+#Tony_Ken
+Ha! Ha! Man merkt, Du bist nicht aus London.
+Kenwood ist ein ehemaliges Landhaus, vollgestopft
+mit Bildern von irgendwelchen ber�hmten Malern.
+;
+#Tony_Bank
+Goldbarren Matt, Goldbarren, Goldbarren,
+GOLDBARREN...!
+Nach DER Bank hast Du ausgesorgt!
+;
+#Briggs_2
+Gute Arbeit, Tony. Ich werde mich jetzt um einen
+Abnehmer f�r die Ware k�mmern... hab schon einen
+Hehler im Visier - hei�t Frank Maloya und soll
+gute Verbindungen haben...
+;
+#Tony_2
+Gut, dann k�mmere ich mich um das Werkzeug...
+Was werden wir alles brauchen?
+;
+#Briggs_3
+Drei Paar Handschuhe, Chloroform, zwei Dietriche,
+eine Rohrzange und eine Handbohrmaschine. Das
+sollte vorerst reichen.
+;
+#Tony_3
+Gut, besorge ich. 
+;
+#Briggs_4
+;
+Solange Tony sich um die Werkzeuge k�mmert,
+solltest Du, Matt, den vorbestellten Wagen bei
+Marc Smith abholen. Hier hast Du etwas Geld, 
+damit Du die Zielgeb�ude nochmal beobachten
+kannst. Lektion eins: Beobachten ist der
+halbe Einbruch. Eine gute Observation 
+verringert das Risiko, erwischt zu werden.
+Wir melden uns dann bei Dir. Also bis sp�ter.
+;
+#Tony_Bye
+;
+Bye, Matt.
+;
+#Matt_Bye
+;
+Bye, Tony.
+^
+
+
diff --git a/DerClouProfiData/TEXTS/HOUSEDED.TXT b/DerClouProfiData/TEXTS/HOUSEDED.TXT
new file mode 100644
index 0000000..13ed2ee
Binary files /dev/null and b/DerClouProfiData/TEXTS/HOUSEDED.TXT differ
diff --git a/DerClouProfiData/TEXTS/INVESTID.TXT b/DerClouProfiData/TEXTS/INVESTID.TXT
new file mode 100644
index 0000000..79ad674
Binary files /dev/null and b/DerClouProfiData/TEXTS/INVESTID.TXT differ
diff --git a/DerClouProfiData/TEXTS/LIVINGS.LST b/DerClouProfiData/TEXTS/LIVINGS.LST
new file mode 100644
index 0000000..6d96fe6
--- /dev/null
+++ b/DerClouProfiData/TEXTS/LIVINGS.LST
@@ -0,0 +1,8 @@
+Person_1,redmax,14,14,1,1
+Person_2,bluemax,14,14,1,1
+Person_3,greenmax,14,14,1,1
+Person_4,bluemax,14,14,1,1
+Police_5,bullemax,14,14,1,1
+Police_6,bullemax,14,14,1,1
+Police_7,bullemax,14,14,1,1
+Police_8,bullemax,14,14,1,1
diff --git a/DerClouProfiData/TEXTS/LOCATION.LST b/DerClouProfiData/TEXTS/LOCATION.LST
new file mode 100644
index 0000000..a8772aa
--- /dev/null
+++ b/DerClouProfiData/TEXTS/LOCATION.LST
@@ -0,0 +1,82 @@
+Holland Street
+Cars & Vans, Wellington Road
+Watling Street
+Hotelzimmer
+Fat Man's Pub
+Cars & Vans B�ro
+Werkzeugh�ndler
+Polizeistation
+Taxi
+Kiosk
+Kiosk, Fulham
+Tante Emma Laden
+Tante Emma Laden, South East, Waterloo
+Juwelier
+Juwelier, Oxford Street
+Old Curiosity Shop
+Old Curiosity Shop, Kensington Church Str.
+Pink Villa
+Pink Villa, Limehouse
+Seniorenheim
+Seniorenheim, Maida Vale
+Highgate
+Highgate, Highgate Cemetery
+Grab von Karl Marx, Highgate Cemetery
+Villa
+Villa, Lillie Road, Chelsea
+Kenwood House
+Kenwood House, Hampstead Lane
+Ham House
+Ham House, Richmond
+Osterly Park House
+Osterly Park House, Isleworth
+Chiswick House
+Chiswick House, Turnham Green
+Suterby's
+Suterby's, Bond Street
+British Museum
+British Museum, Great Russel Street
+Natural Museum
+Natural Museum, Cromwell Road
+National Galery
+National Galery, Trafalgar Square
+Victoria & Albert Museum
+Victoria & Albert Museum, South Kensington
+Bank of England
+Bank of England, City of London
+Tower of London
+Tower of London, City of London
+Ugley Dog Hotel
+Walrus & the yellow shades
+Cars & Vans Werkstatt
+Cars & Vans Parkplatz
+Mrs. Parker
+Mr. Maloya
+Mr. Pooly
+Lambeth Road
+Fat Man's Pub, Stanford Street
+The End
+Victoria Station
+Polizei, B�ro
+Kloster St. Christopher
+Lisson Grove 17
+Sabien Pardo
+Southhampton
+Gef�ngnis
+Starford Kaserne
+Starford Kaserne, London
+221 B Baker Street
+221 B Baker Street, Regent's Park
+Madame Tussaud
+Madame Tussaud, Marylebone Road
+Westminster Abbey
+Westminster Abbey, Westminster
+Downing Street 10
+Downing Street 10, Whitehall
+Postzug
+Tate Gallery
+Tate Gallery, Millbank
+Buckingham Palace
+Buckingham Palace, The Mall
+Bulstrode Chemestry Ltd
+Bulstrode Chemestry Ltd, Isle of Dogs
diff --git a/DerClouProfiData/TEXTS/LOOKD.TXT b/DerClouProfiData/TEXTS/LOOKD.TXT
new file mode 100644
index 0000000..b71ecb5
Binary files /dev/null and b/DerClouProfiData/TEXTS/LOOKD.TXT differ
diff --git a/DerClouProfiData/TEXTS/MENUD.TXT b/DerClouProfiData/TEXTS/MENUD.TXT
new file mode 100644
index 0000000..6dfe01b
Binary files /dev/null and b/DerClouProfiData/TEXTS/MENUD.TXT differ
diff --git a/DerClouProfiData/TEXTS/PICT.LST b/DerClouProfiData/TEXTS/PICT.LST
new file mode 100644
index 0000000..ae116a5
--- /dev/null
+++ b/DerClouProfiData/TEXTS/PICT.LST
@@ -0,0 +1,257 @@
+; Picture List for Der Clou!
+; PictId, CollId, XOffset, YOffset, Width, Height, DestX, DestY
+1,129,0,0,240,54,80,0
+2,94,0,0,320,140,0,0
+3,136,0,0,320,140,0,0
+4,66,0,0,320,140,0,0
+5,129,0,0,240,54,80,0
+6,129,0,0,240,54,80,0
+7,99,0,67,62,67,0,0
+8,49,0,0,320,140,0,0
+9,129,0,79,48,29,59,10
+10,129,0,54,48,25,59,10
+11,0,0,0,0,0,0,0
+12,129,48,54,216,54,104,0
+13,129,48,54,216,54,104,0
+14,129,48,54,216,54,104,0
+15,129,48,54,216,54,104,0
+16,0,0,0,0,0,0,0
+17,0,0,0,0,0,0,0
+18,0,0,0,0,0,0,0
+19,0,0,0,0,0,0,0
+20,0,0,0,0,0,0,0
+21,128,0,60,320,60,0,140
+22,128,0,60,320,60,0,140
+23,128,0,0,320,60,0,140
+24,128,0,0,320,60,0,140
+25,129,0,116,32,17,280,0
+26,39,0,0,320,140,0,0
+27,40,0,0,320,140,0,0
+28,1,0,0,320,140,0,0
+29,2,0,0,320,140,0,0
+30,3,0,0,320,140,0,0
+31,4,0,0,320,140,0,0
+32,5,0,0,320,140,0,0
+33,6,0,0,320,140,0,0
+34,7,0,0,320,140,0,0
+35,8,0,0,320,140,0,0
+36,9,0,0,320,140,0,0
+37,10,0,0,320,140,0,0
+38,11,0,0,320,140,0,0
+39,12,0,0,320,140,0,0
+40,13,0,0,320,140,0,0
+41,14,0,0,320,140,0,0
+42,15,0,0,320,140,0,0
+43,16,0,0,320,140,0,0
+44,17,0,0,320,140,0,0
+45,18,0,0,320,140,0,0
+46,86,0,0,144,86,88,52
+47,87,0,0,168,69,76,60
+48,85,0,0,224,66,48,60
+49,88,0,0,176,68,72,60
+50,89,0,0,168,69,76,60
+51,90,0,0,176,69,72,60
+52,91,0,0,216,78,52,60
+53,92,0,0,160,71,80,60
+54,93,0,0,176,78,72,60
+55,0,0,0,0,0,0,0
+56,99,62,0,62,67,0,0
+56,99,248,0,62,67,0,0
+58,41,0,0,320,140,0,0
+59,102,248,0,62,67,0,0
+60,99,0,0,62,67,0,0
+61,101,124,67,62,67,0,0
+62,104,62,0,62,67,0,0
+63,107,0,0,62,67,0,0
+64,99,124,0,62,67,0,0
+65,99,186,0,62,67,0,0
+66,99,62,67,62,67,0,0
+66,99,124,67,62,67,0,0
+68,99,186,67,62,67,0,0
+69,99,248,67,62,67,0,0
+70,107,62,0,62,67,0,0
+71,107,124,0,62,67,0,0
+72,100,0,0,62,67,0,0
+73,100,62,67,62,67,0,0
+74,100,124,67,62,67,0,0
+75,101,0,0,62,67,0,0
+76,101,62,0,62,67,0,0
+77,101,124,0,62,67,0,0
+78,101,186,0,62,67,0,0
+79,101,0,67,62,67,0,0
+80,101,62,67,62,67,0,0
+81,101,186,67,62,67,0,0
+82,108,62,0,62,67,0,0
+83,108,0,0,62,67,0,0
+84,102,0,0,62,67,0,0
+85,102,62,0,62,67,0,0
+86,102,124,0,62,67,0,0
+87,102,186,0,62,67,0,0
+88,102,0,67,62,67,0,0
+89,102,62,67,62,67,0,0
+90,0,0,0,0,0,0,0
+91,102,186,67,62,67,0,0
+92,103,0,0,62,67,0,0
+93,103,62,0,62,67,0,0
+94,104,0,0,62,67,0,0
+95,76,0,0,320,140,0,0
+96,134,62,0,62,67,0,0
+97,111,186,67,62,67,0,0
+98,111,124,67,62,67,0,0
+99,111,62,67,62,67,0,0
+100,111,0,67,62,67,0,0
+101,111,124,0,62,67,0,0
+102,111,0,0,62,67,0,0
+103,111,62,0,62,67,0,0
+104,109,0,0,62,67,0,0
+105,109,124,67,62,67,0,0
+106,109,62,0,62,67,0,0
+107,109,124,0,62,67,0,0
+108,110,0,0,62,67,0,0
+109,110,62,0,62,67,0,0
+110,110,124,0,62,67,0,0
+111,110,186,0,62,67,0,0
+112,110,248,0,62,67,0,0
+113,0,0,0,0,0,0,0
+114,110,0,67,62,67,0,0
+115,110,62,67,62,67,0,0
+116,110,124,67,62,67,0,0
+117, 110,186,67,62,67,0,0
+118,110,248,67,62,67,0,0
+119,112,62,0,62,67,0,0
+120,112,0,0,62,67,0,0
+121,111,186,0,62,67,0,0
+122,134,124,0,62,67,0,0
+123,105,186,67,62,67,0,0
+124,106,0,0,62,67,0,0
+125,105,0,67,62,67,0,0
+126,105,124,67,62,67,0,0
+127,105,124,0,62,67,0,0
+128,105,186,0,62,67,0,0
+129,105,62,67,62,67,0,0
+130,105,0,0,62,67,0,0
+131,105,62,0,62,67,0,0
+132,106,124,0,62,67,0,0
+133,106,62,0,62,67,0,0
+134,83,0,0,320,140,0,0
+135,19,0,0,320,140,0,0
+136,108,186,0,62,67,0,0
+137,52,0,0,320,140,0,0
+138,53,0,0,320,140,0,0
+139,54,0,0,320,140,0,0
+140,46,0,0,320,140,0,0
+141,49,0,0,320,140,0,0
+142,47,0,0,320,140,0,0
+143,55,0,0,320,140,0,0
+144,109,0,67,62,67,0,0
+145,129,0,108,64,8,240,5
+146,129,64,108,64,8,240,50
+147,135,0,0,62,67,0,0
+148,102,124,67,62,67,0,0
+149,108,124,0,62,67,0,0
+150,131,0,0,320,140,0,0
+151,109,62,67,62,67,0,0
+152,80,0,0,96,95,115,45
+153,67,0,0,80,64,120,60
+154,148,0,0,320,140,0,0
+155,107,186,0,62,67,0,0
+156,42,0,0,320,140,0,0
+157,72,0,0,80,64,120,34
+158,56,0,0,320,140,0,0
+159,0,0,0,0,0,0,0
+160,0,0,0,0,0,0,0
+161,45,0,0,320,140,0,0
+162,74,0,0,168,62,75,60
+163,78,0,0,320,140,0,0
+164,81,0,0,112,24,104,55
+165,70,0,0,80,64,120,60
+166,0,0,0,0,0,0,0
+167,43,0,0,320,140,0,0
+168,44,0,0,320,140,0,0
+169,68,0,0,80,64,50,50
+170,69,0,0,80,96,50,50
+171,48,0,0,320,140,0,0
+172,71,0,0,240,20,40,50
+173,50,0,0,320,140,0,0
+174,74,0,0,168,62,70,50
+175,73,0,0,80,64,120,40
+176,95,0,0,80,64,120,60
+177,113,0,0,62,67,0,0
+178,113,62,0,62,67,0,0
+179,114,62,0,62,67,0,0
+180,114,0,0,62,67,0,0
+181,114,62,67,62,67,0,0
+182,114,0,67,62,67,0,0
+183,115,62,0,62,67,0,0
+184,115,0,0,62,67,0,0
+185,116,0,0,62,67,0,0
+186,116,124,67,62,67,0,0
+187,116,62,67,62,67,0,0
+188,116,0,67,62,67,0,0
+189,116,124,0,62,67,0,0
+190,116,62,0,62,67,0,0
+191,116,186,67,62,67,0,0
+192,116,248,0,62,67,0,0
+193,117,0,0,62,67,0,0
+194,117,124,0,62,67,0,0
+195,117,186,0,62,67,0,0
+196,117,248,0,62,67,0,0
+197,117,62,0,62,67,0,0
+198,118,0,0,62,67,0,0
+199,119,0,0,62,67,0,0
+200,120,0,0,62,67,0,0
+201,120,62,0,62,67,0,0
+202,122,0,0,62,67,0,0
+203,122,62,0,62,67,0,0
+204,123,0,0,62,67,0,0
+205,124,0,0,62,67,0,0
+206,125,0,0,62,67,0,0
+207,126,0,0,62,67,0,0
+208,127,0,0,62,67,0,0
+209,113,0,0,62,67,0,0
+210,121,0,0,62,67,0,0
+211,147,80,0,80,64,120,61
+212,75,0,0,80,64,70,50
+213,147,160,0,80,64,20,61
+214,0,0,0,0,0,0,0
+215,147,240,0,80,64,220,61
+216,0,0,0,0,0,0,0
+217,147,0,0,80,64,20,61
+218,0,0,0,0,0,0,0
+219,51,0,0,320,140,0,0
+220,81,0,0,112,24,0,0
+221,149,0,0,124,124,98,16
+222,116,184,0,62,67,0,0
+223,133,0,0,62,67,0,0
+224,130,0,0,320,140,0,0
+225,106,186,0,62,67,0,0
+226,112,186,0,62,67,0,0
+227,82,0,0,320,140,0,0
+228,153,0,0,168,79,76,55
+229,152,0,0,152,80,84,60
+230,150,0,0,208,68,56,70
+231,151,0,0,242,124,39,10
+232,154,62,67,62,67,0,0
+233,154,0,0,62,67,0,0
+234,154,124,0,62,67,0,0
+235,154,0,67,62,67,0,0
+236,154,186,0,62,67,0,0
+237,154,248,0,62,67,0,0
+238,154,124,67,62,67,0,0
+239,154,186,67,62,67,0,0
+240,154,248,67,62,67,0,0
+241,154,62,0,62,67,0,0
+242,171,124,0,62,67,0,0
+243,171,0,0,62,67,0,0
+244,171,62,0,62,67,0,0
+245,172,0,0,62,67,0,0
+; pict
+246,155,0,0,320,140,0,0
+247,156,0,0,318,138,0,0
+248,157,0,0,316,140,0,0
+249,158,0,0,320,140,0,0
+250,159,0,0,320,140,0,0
+251,160,0,0,320,140,0,0
+252,161,0,0,320,140,0,0
+253,162,0,0,320,140,0,0
+
diff --git a/DerClouProfiData/TEXTS/PLAND.TXT b/DerClouProfiData/TEXTS/PLAND.TXT
new file mode 100644
index 0000000..2262660
Binary files /dev/null and b/DerClouProfiData/TEXTS/PLAND.TXT differ
diff --git a/DerClouProfiData/TEXTS/PRESENTD.TXT b/DerClouProfiData/TEXTS/PRESENTD.TXT
new file mode 100644
index 0000000..f59d5ea
Binary files /dev/null and b/DerClouProfiData/TEXTS/PRESENTD.TXT differ
diff --git a/DerClouProfiData/TEXTS/STORY_0D.TXT b/DerClouProfiData/TEXTS/STORY_0D.TXT
new file mode 100644
index 0000000..355dd13
Binary files /dev/null and b/DerClouProfiData/TEXTS/STORY_0D.TXT differ
diff --git a/DerClouProfiData/TEXTS/STORY_1D.TXT b/DerClouProfiData/TEXTS/STORY_1D.TXT
new file mode 100644
index 0000000..69bc39a
Binary files /dev/null and b/DerClouProfiData/TEXTS/STORY_1D.TXT differ
diff --git a/DerClouProfiData/TEXTS/TALK_0D.TXT b/DerClouProfiData/TEXTS/TALK_0D.TXT
new file mode 100644
index 0000000..356cf36
Binary files /dev/null and b/DerClouProfiData/TEXTS/TALK_0D.TXT differ
diff --git a/DerClouProfiData/TEXTS/TALK_1D.TXT b/DerClouProfiData/TEXTS/TALK_1D.TXT
new file mode 100644
index 0000000..96eacbc
Binary files /dev/null and b/DerClouProfiData/TEXTS/TALK_1D.TXT differ
diff --git a/DerClouProfiData/TEXTS/TCMAINED.TXT b/DerClouProfiData/TEXTS/TCMAINED.TXT
new file mode 100644
index 0000000..d7bd8c2
Binary files /dev/null and b/DerClouProfiData/TEXTS/TCMAINED.TXT differ
diff --git a/DerClouProfiData/TEXTS/TCMAINOD.TXT b/DerClouProfiData/TEXTS/TCMAINOD.TXT
new file mode 100644
index 0000000..27b4b31
Binary files /dev/null and b/DerClouProfiData/TEXTS/TCMAINOD.TXT differ
diff --git a/DerClouProfiData/TEXTS/TEMPLATE.LST b/DerClouProfiData/TEXTS/TEMPLATE.LST
new file mode 100644
index 0000000..cc69e5d
--- /dev/null
+++ b/DerClouProfiData/TEXTS/TEMPLATE.LST
@@ -0,0 +1,7 @@
+redmax,14,14,0,266
+bluemax,14,14,72,195
+greenmax,14,14,144,124
+bullemax,14,14,216,53
+
+
+
diff --git a/DerClouProfiData/TEXTS/TEXTS.LST b/DerClouProfiData/TEXTS/TEXTS.LST
new file mode 100644
index 0000000..805cda4
--- /dev/null
+++ b/DerClouProfiData/TEXTS/TEXTS.LST
@@ -0,0 +1,18 @@
+menu
+tcmaino
+busines
+housede
+theclou
+investi
+cdrom
+tcmaine
+anim
+present
+story_0
+plan
+tools
+look
+ability
+story_1
+talk_0
+talk_1
diff --git a/DerClouProfiData/TEXTS/THECLOUD.TXT b/DerClouProfiData/TEXTS/THECLOUD.TXT
new file mode 100644
index 0000000..b04755a
Binary files /dev/null and b/DerClouProfiData/TEXTS/THECLOUD.TXT differ
diff --git a/DerClouProfiData/TEXTS/TOOLSD.TXT b/DerClouProfiData/TEXTS/TOOLSD.TXT
new file mode 100644
index 0000000..116448b
Binary files /dev/null and b/DerClouProfiData/TEXTS/TOOLSD.TXT differ
diff --git a/DerClouProfiData/clou.log b/DerClouProfiData/clou.log
new file mode 100644
index 0000000..87eaabe
--- /dev/null
+++ b/DerClouProfiData/clou.log
@@ -0,0 +1 @@
+WARNING! Memory Leak (528 bytes)
diff --git a/DerClouProfiData/cosp-0.5a-win32.exe b/DerClouProfiData/cosp-0.5a-win32.exe
new file mode 100644
index 0000000..a436cd6
Binary files /dev/null and b/DerClouProfiData/cosp-0.5a-win32.exe differ
diff --git a/DerClouProfiData/cosp-0.5a.txt b/DerClouProfiData/cosp-0.5a.txt
new file mode 100644
index 0000000..bcd0a48
--- /dev/null
+++ b/DerClouProfiData/cosp-0.5a.txt
@@ -0,0 +1,104 @@
+Der Clou! Open Source Project V0.5a (2017-10-31)
+
+http://sourceforge.net/projects/cosp
+
+================================================================================
+  CREDITS
+================================================================================
+
+Idea & concept:  ...and avoid panic by
+Programming:     Helmut Gaberschek, Kaweh Kazemi
+Graphics:        Markus Hudolin
+Story:           Karam Nada
+Sound & music:   Hannes Seifert
+
+SDL conversion:  Oliver Gantert (LucyG)
+Contributions:   Baris Elmas (devkid82)
+                 Ronny Thiemann (templer)
+                 Thomas Trummer (LordSkaven)
+Playtesting:     Baris Elmas (devkid82) - first to finish German version
+                 Martin Banas (srandista) - first to finish Czech version
+                 Neno - the bug reporter :)
+
+IFF ANIM decoder C++ class by Markus Wolf (murkymind.de)
+Ported to C by Oliver Gantert.
+
+Sound playback by Vasco Alexandre da Silva Costa and Jens Granseuer
+ ( http://web.ist.utl.pt/~ist62669/theclue )
+HSC music player by Thomas Trummer
+The fmopl YM3812 emulator from MAME is under a no distribution for profit
+license contained in the included 'mame.txt' file.
+
+================================================================================
+  CHANGES/FIXES
+================================================================================
+
+v0.5a (2017-10-31)
+- fix: crash on planning Natural Museum (LucyG, reported by Neno)
+- fix: crash on visiting Buckingham Palace (LucyG, reported by Neno)
+- SDL_mixer removed (wasn't used anyway)
+
+v0.5 (2017-10-29)
+- new: joystick support (see clou.cfg) (LucyG)
+- new: support CDROM speech as WAV files (experimental) (LucyG)
+- fix: guard paths and alarm connections missing (LucyG, reported by Neno)
+
+v0.4f (2017-10-28)
+- fix: missing percentage on progressbars in the thinking bubble (LucyG)
+
+v0.4e (2015-01-10)
+- fix: crash with Czech localization when talking to Dan Stanford (LucyG,
+       reported by srandista)
+- fix: crash in exploding Jaguar scene (devkid82)
+- new: use mouse wheel to scroll text in bubbles (devkid82)
+
+v0.4d (2015-01-04)
+- fix: crash on executing Chiswick House (LucyG)
+
+v0.4c (2014-07-17)
+- new: intro for CD version with voice (LucyG)
+- fix: fade music volume while playing voice from CD (LucyG)
+
+v0.4b (2014-07-14)
+- new: take screenshots (BMP) with F12 (LucyG)
+- new: use custom mouse arrow (templer)
+- fix: standard disk version crashed (templer)
+
+v0.4a (2014-07-13)
+- fix: playing the CD version without CD in drive crashed (LucyG)
+
+v0.4 (2014-07-12)
+- fix: several random crashes when entering planing mode (LucyG)
+- new: config file (cosp.cfg) replaces command line parameters (LucyG)
+- new: more flexible gfx filtering "system" (LucyG)
+- fix: fullscreen modes with letterboxing (LucyG)
+- new: borrowed music and sample player from Mr da Silva Costa (LucyG)
+- fix: some changes to the sample player (LucyG)
+- fix: intro now with sound and music, no voice yet (LucyG)
+- new: automatic version detection, same exe for all versions (templer)
+- fix: savegame compatibility improved (templer)
+- new: CD-ROM handling (templer)
+- new: config parameter to disable font shadow (LucyG)
+- new: config parameter to skip intro (LucyG)
+
+v0.3 (2014-07-04)
+- fix: better timing, input handling, gfx refresh (LucyG)
+- fix: abilities corrupted (LucyG)
+- fix: dealers didn't buy anything (LucyG)
+- new: play intro animations (LucyG)
+- now also compiles with Visual C++ 2010 Express
+
+v0.2a (2014-06-27)
+- fix: no collision on background color (templer)
+- new: automatic language detection (templer)
+- replaced xmsCopyXXX macros with memcpy for clarity (LucyG)
+
+v0.2 (2014-06-25)
+- fix: load/save functionality fixed (templer)
+- fix: mouse handling (templer)
+
+v0.1d (2003-12-04)
+- initial release
+- compiled with lcc-win32
+
+================================================================================
diff --git a/DerClouProfiData/cosp.cfg b/DerClouProfiData/cosp.cfg
new file mode 100644
index 0000000..8e67a35
--- /dev/null
+++ b/DerClouProfiData/cosp.cfg
@@ -0,0 +1,48 @@
+;   _________  _______
+;  / ___/ __ \/ __/ _ \      Der Clou!
+; / /__/ /_/ /\ \/ ___/ Open Source Project
+; \___/\____/___/_/ http://cosp.sourceforge.net
+;  Based on the original by neo Software GmbH
+
+;=== Configuration
+
+;--- Disable intro (0=no, 1=yes)
+
+nointro = 0
+
+;--- Screen or window size (min. 320x200)
+
+screenwidth = 960
+screenheight = 600
+
+;--- Use fullscreen mode (0=no, 1=yes)
+
+fullscreen = 0
+
+;--- Use Scale2x/3x/4x upscaling (0=no, 1=yes)
+
+scale2x = 1
+
+;--- Disable font shadows for better readability in scaled modes
+
+nofontshadow = 1
+
+;--- Music & Sound Volume (0=off, 255=max)
+
+musicvolume = 150
+soundvolume = 150
+
+;--- Joystick (0=off, 1=device #1, 2=device #2, ...)
+
+usejoystick = 0
+
+;--- Cheats (0=no, 42=yes)
+
+;demo = 0
+;storyoff = 0
+;fullenv = 0
+;leveldesign = 0
+;guarddesign = 0
+;nosamples = 0
+;nocollision = 0
+;showrooms = 0
diff --git a/DerClouProfiData/mame.txt b/DerClouProfiData/mame.txt
new file mode 100644
index 0000000..1ed42e3
--- /dev/null
+++ b/DerClouProfiData/mame.txt
@@ -0,0 +1,187 @@
+
+                 M.A.M.E.  -  Multiple Arcade Machine Emulator
+          Copyright (C) 1997-2005 by Nicola Salmoria and The MAME Team
+
+Many people have helped with this project--directly, or by releasing the source
+code for the drivers they have written. We are not trying to take credit that
+isn't ours. See the Acknowledgments section for a list of contributors. Please
+note, however, that the list is largely incomplete. Also see the comments in
+the source code to see the people who contributed to specific drivers. That
+list, too, may be incomplete. We apologize for any omission.
+
+All trademarks cited in this document are property of their respective owners.
+
+
+For usage instructions, please consult the file windows.txt
+
+
+Usage and Distribution License
+------------------------------
+
+I. Purpose
+----------
+   MAME is strictly a non-profit project. Its main purpose is to be a reference
+   to the inner workings of the emulated arcade machines. This is done for
+   educational purposes and to prevent many historical games from sinking into
+   oblivion once the hardware they run on stops working. Of course to preserve
+   the games, you must also be able to actually play them; you can consider
+   that a nice side effect.
+   It is not our intention to infringe on any copyrights or patents on the
+   original games. All of MAME's source code is either our own or freely
+   available. To operate, the emulator requires images of the original ROMs
+   from the arcade machines, which must be provided by the user. No portions of
+   the original ROM codes are included in the executable.
+
+II. Cost
+--------
+   MAME is free. Its source code is free. Selling either is not allowed.
+
+III. ROM Images
+---------------
+   ROM images are copyrighted material. Most of them cannot be distributed
+   freely. Distribution of MAME on the same physical medium as illegal copies
+   of ROM images is strictly forbidden.
+   You are not allowed to distribute MAME in any form if you sell, advertise,
+   or publicize CD-ROMs or other media containing illegal copies of ROM images.
+   This restriction applies even if you don't make money, directly or
+   indirectly, from those activities. You are allowed to make ROMs and MAME
+   available for download on the same website, but only if you warn users about
+   the ROMs's copyright status, and make it clear that users must not download
+   ROMs unless they are legally entitled to do so.
+
+IV. Source Code Distribution
+----------------------------
+   If you distribute the binary (compiled) version of MAME, you should also
+   distribute the source code. If you can't do that, you must provide a link
+   to a site where the source can be obtained.
+
+V. Distribution Integrity
+-------------------------
+   This chapter applies to the official MAME distribution. See below for
+   limitations on the distribution of derivative works.
+   MAME must be distributed only in the original archives. You are not allowed
+   to distribute a modified version, nor to remove and/or add files to the
+   archive.
+
+VI. Reuse of Source Code
+--------------------------
+   This chapter might not apply to specific portions of MAME (e.g. CPU
+   emulators) which bear different copyright notices.
+   The source code cannot be used in a commercial product without the written
+   authorization of the authors. Use in non-commercial products is allowed, and
+   indeed encouraged.  If you use portions of the MAME source code in your
+   program, however, you must make the full source code freely available as
+   well.
+   Usage of the _information_ contained in the source code is free for any use.
+   However, given the amount of time and energy it took to collect this
+   information, if you find new information we would appreciate if you made it
+   freely available as well.
+
+VII. Derivative Works
+---------------------
+   Derivative works are allowed, provided their source code is freely
+   available. However, these works are discouraged. MAME is a continuously-
+   -evolving project. It is in your best interests to submit your contributions
+   to the MAME development team, so they may be integrated into the main
+   distribution.
+   There are some specific modifications to the source code which go against
+   the spirit of the project. They are NOT considered a derivative work, and
+   distribution of executables containing them is strictly forbidden. Such
+   modifications include, but are not limited to:
+   - enabling games that are disabled
+   - changing the ROM verification commands so that they report missing games
+   - removing the startup information screens
+   If you make a derivative work, you are not allowed to call it MAME. You must
+   use a different name to make clear that it is a MAME derivative, not an
+   official distribution from the MAME team. Simply calling it MAME followed or
+   preceded by a punctuation mark (e.g. MAME+) is not sufficient. The name must
+   be clearly distinct (e.g. REMAME). The version number must also match the
+   number of the official MAME version from which you derived your version.
+
+
+How to Contact Us
+-----------------
+
+The official MAME homepage is http://www.mame.net/  You can always find the
+latest release there, including beta versions and information on things being
+worked on. Also, a totally legal and free ROM set of Robby Roto is available
+on the same page.
+
+Submissions should be sent to Santeri Saarimaa ( gridle@mbnet.fi )
+
+If you have bugs to report, check the MAME Testing Project at
+http://www.mametesters.org
+
+If you can't get the emulator to work, you are on your own. First of all, read
+the docs carefully. If you still can't find an answer to your question, try
+checking the beginner's sections that many emulation pages have, or ask on the
+appropriate Usenet newsgroups (e.g. comp.emulators.misc) or on the official
+MAME message board at http://www.mame.net/msg/
+
+For help in compiling MAME, check these pages:
+http://www.mame.net/compile.html
+http://www.mameworld.net
+
+
+
+Acknowledgments
+---------------
+
+First of all, thanks to Allard van der Bas for
+starting the Arcade Emulation Programming Repository at
+http://valhalla.ph.tn.tudelft.nl/emul8
+Without the Repository, I would never have even tried to write an emulator.
+Unfortunately, the original Repository is now closed, but its spirit lives
+on in MAME.
+
+Z80 emulator Copyright (c) 1998 Juergen Buchmueller, all rights reserved.
+M6502 emulator Copyright (c) 1998 Juergen Buchmueller, all rights reserved.
+Hu6280 Copyright (c) 1999 Bryan McPhail
+I86 emulator by David Hedley, modified by Fabrice Frances
+M6809 emulator by John Butler, based on L.C. Benschop's 6809 Simulator V09.
+M6808 based on L.C. Benschop's 6809 Simulator V09.
+M68000 emulator Copyright 1999 Karl Stenerud.  All rights reserved.
+80x86 M68000 emulator Copyright 1998, Mike Coates, Darren Olafson.
+8039 emulator by Mirko Buffoni, based on 8048 emulator by Dan Boris.
+T-11 emulator Copyright (C) Aaron Giles 1998
+TMS34010 emulator by Alex Pasadyn and Zsolt Vasvari.
+TMS9900 emulator by Andy Jones, based on original code by Ton Brouwer.
+Cinematronics CPU emulator by Jeff Mitchell, Zonn Moore, Neil Bradley.
+Atari AVG/DVG emulation based on VECSIM by Hedley Rainnie, Eric Smith and
+Al Kossow.
+
+TMS5220 emulator by Frank Palazzolo.
+AY-3-8910 emulation based on various code snippets by Ville Hallik,
+  Michael Cuddy, Tatsuyuki Satoh, Fabrice Frances, Nicola Salmoria.
+YM-2203, YM-2151, YM3812 emulation by Tatsuyuki Satoh.
+POKEY emulator by Ron Fries.
+Many thanks to Eric Smith, Hedley Rainnie and Sean Trowbridge for information
+   on the Pokey random number generator.
+NES sound hardware info by Matthew Conte.
+YM2610 emulation by Hiromitsu Shioya.
+
+Background art by Peter Hirschberg
+
+Allegro library by Shawn Hargreaves, 1994/97
+SEAL Synthetic Audio Library API Interface Copyright (C) 1995, 1996
+   Carlos Hasan. All Rights Reserved.
+Video modes created using Tweak 1.6b by Robert Schmidt, who also wrote
+   TwkUser.c.
+"inflate" code for zip file support by Mark Adler.
+
+DOS executable compressed with UPX by Markus F.X.J. Oberhumer & Laszlo Molnar,
+    http://upx.sourceforge.net/
+
+Big thanks to Gary Walton for too many things
+   to mention.
+
+Thanks to Brian Deuel, Neil Bradley, and the Retrocade dev team for allowing us
+to use Retrocade's game history database.
+
+Thanks to Richard Bush for info on several games.
+
+Thanks to Dave (www.finalburn.com) for info on After Burner.
+
+and thanks to everyone else I forgot.
+
+
diff --git a/SDL2-2.0.8-win32-x64.zip b/SDL2-2.0.8-win32-x64.zip
new file mode 100644
index 0000000..b2aaf8e
Binary files /dev/null and b/SDL2-2.0.8-win32-x64.zip differ
diff --git a/SDL2-2.0.8.zip b/SDL2-2.0.8.zip
new file mode 100644
index 0000000..ba8fba0
Binary files /dev/null and b/SDL2-2.0.8.zip differ
diff --git a/SDL2-devel-2.0.8-VC.zip b/SDL2-devel-2.0.8-VC.zip
new file mode 100644
index 0000000..14927e2
Binary files /dev/null and b/SDL2-devel-2.0.8-VC.zip differ
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/BUGS.txt b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/BUGS.txt
new file mode 100644
index 0000000..57d953f
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/BUGS.txt
@@ -0,0 +1,16 @@
+
+Bugs are now managed in the SDL bug tracker, here:
+
+    https://bugzilla.libsdl.org/
+
+You may report bugs there, and search to see if a given issue has already
+ been reported, discussed, and maybe even fixed.
+
+
+You may also find help at the SDL forums/mailing list:
+
+    https://discourse.libsdl.org/
+
+Bug reports are welcome here, but we really appreciate if you use Bugzilla, as
+ bugs discussed on the mailing list may be forgotten or missed.
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/COPYING.txt b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/COPYING.txt
new file mode 100644
index 0000000..44a60ed
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/COPYING.txt
@@ -0,0 +1,20 @@
+
+Simple DirectMedia Layer
+Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+  
+This software is provided 'as-is', without any express or implied
+warranty.  In no event will the authors be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+  
+1. The origin of this software must not be misrepresented; you must not
+   claim that you wrote the original software. If you use this software
+   in a product, an acknowledgment in the product documentation would be
+   appreciated but is not required. 
+2. Altered source versions must be plainly marked as such, and must not be
+   misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/README-SDL.txt b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/README-SDL.txt
new file mode 100644
index 0000000..2984b14
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/README-SDL.txt
@@ -0,0 +1,13 @@
+
+Please distribute this file with the SDL runtime environment:
+
+The Simple DirectMedia Layer (SDL for short) is a cross-platform library
+designed to make it easy to write multi-media software, such as games
+and emulators.
+
+The Simple DirectMedia Layer library source code is available from:
+https://www.libsdl.org/
+
+This library is distributed under the terms of the zlib license:
+http://www.zlib.net/zlib_license.html
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/README.txt b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/README.txt
new file mode 100644
index 0000000..e8630c7
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/README.txt
@@ -0,0 +1,21 @@
+
+                         Simple DirectMedia Layer
+
+                                  (SDL)
+
+                                Version 2.0
+
+---
+https://www.libsdl.org/
+
+Simple DirectMedia Layer is a cross-platform development library designed
+to provide low level access to audio, keyboard, mouse, joystick, and graphics
+hardware via OpenGL and Direct3D. It is used by video playback software,
+emulators, and popular games including Valve's award winning catalog
+and many Humble Bundle games.
+
+More extensive documentation is available in the docs directory, starting
+with README.md
+
+Enjoy!
+	Sam Lantinga				(slouken@libsdl.org)
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/WhatsNew.txt b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/WhatsNew.txt
new file mode 100644
index 0000000..c574946
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/WhatsNew.txt
@@ -0,0 +1,393 @@
+
+This is a list of major changes in SDL's version history.
+
+---------------------------------------------------------------------------
+2.0.8:
+---------------------------------------------------------------------------
+
+General:
+* Added SDL_fmod() and SDL_log10()
+* Each of the SDL math functions now has the corresponding float version
+* Added SDL_SetYUVConversionMode() and SDL_GetYUVConversionMode() to control the formula used when converting to and from YUV colorspace. The options are JPEG, BT.601, and BT.709
+
+Windows:
+* Implemented WASAPI support on Windows UWP and removed the deprecated XAudio2 implementation
+* Added resampling support on WASAPI on Windows 7 and above
+
+Windows UWP:
+* Added SDL_WinRTGetDeviceFamily() to find out what type of device your application is running on
+
+Mac OS X:
+* Added support for the Vulkan SDK for Mac:
+  https://www.lunarg.com/lunarg-releases-vulkan-sdk-1-0-69-0-for-mac/
+* Added support for OpenGL ES using ANGLE when it's available
+
+Mac OS X / iOS / tvOS:
+* Added a Metal 2D render implementation
+* Added SDL_RenderGetMetalLayer() and SDL_RenderGetMetalCommandEncoder() to insert your own drawing into SDL rendering when using the Metal implementation
+
+iOS:
+* Added the hint SDL_HINT_IOS_HIDE_HOME_INDICATOR to control whether the home indicator bar on iPhone X should be hidden. This defaults to dimming the indicator for fullscreen applications and showing the indicator for windowed applications.
+
+iOS / Android:
+* Added the hint SDL_HINT_RETURN_KEY_HIDES_IME to control whether the return key on the software keyboard should hide the keyboard or send a key event (the default)
+
+Android:
+* SDL now supports building with Android Studio and Gradle by default, and the old Ant project is available in android-project-ant
+* SDL now requires the API 19 SDK to build, but can still target devices down to API 14 (Android 4.0.1)
+* Added SDL_IsAndroidTV() to tell whether the application is running on Android TV
+
+Android / tvOS:
+* Added the hint SDL_HINT_TV_REMOTE_AS_JOYSTICK to control whether TV remotes should be listed as joystick devices (the default) or send keyboard events.
+
+Linux:
+* Added the hint SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR to control whether the X server should skip the compositor for the SDL application. This defaults to "1"
+* Added the hint SDL_HINT_VIDEO_DOUBLE_BUFFER to control whether the Raspberry Pi and KMSDRM video drivers should use double or triple buffering (the default)
+
+
+---------------------------------------------------------------------------
+2.0.7:
+---------------------------------------------------------------------------
+
+General:
+* Added audio stream conversion functions:
+	SDL_NewAudioStream
+	SDL_AudioStreamPut
+	SDL_AudioStreamGet
+	SDL_AudioStreamAvailable
+	SDL_AudioStreamFlush
+	SDL_AudioStreamClear
+	SDL_FreeAudioStream
+* Added functions to query and set the SDL memory allocation functions:
+	SDL_GetMemoryFunctions()
+	SDL_SetMemoryFunctions()
+	SDL_GetNumAllocations()
+* Added locking functions for multi-threaded access to the joystick and game controller APIs:
+	SDL_LockJoysticks()
+	SDL_UnlockJoysticks()
+* The following functions are now thread-safe:
+	SDL_SetEventFilter()
+	SDL_GetEventFilter()
+	SDL_AddEventWatch()
+	SDL_DelEventWatch()
+
+
+General:
+---------------------------------------------------------------------------
+2.0.6:
+---------------------------------------------------------------------------
+
+General:
+* Added cross-platform Vulkan graphics support in SDL_vulkan.h
+	SDL_Vulkan_LoadLibrary()
+	SDL_Vulkan_GetVkGetInstanceProcAddr()
+	SDL_Vulkan_GetInstanceExtensions()
+	SDL_Vulkan_CreateSurface()
+	SDL_Vulkan_GetDrawableSize()
+	SDL_Vulkan_UnloadLibrary()
+  This is all the platform-specific code you need to bring up Vulkan on all SDL platforms. You can look at an example in test/testvulkan.c
+* Added SDL_ComposeCustomBlendMode() to create custom blend modes for 2D rendering
+* Added SDL_HasNEON() which returns whether the CPU has NEON instruction support
+* Added support for many game controllers, including the Nintendo Switch Pro Controller
+* Added support for inverted axes and separate axis directions in game controller mappings
+* Added functions to return information about a joystick before it's opened:
+	SDL_JoystickGetDeviceVendor()
+	SDL_JoystickGetDeviceProduct()
+	SDL_JoystickGetDeviceProductVersion()
+	SDL_JoystickGetDeviceType()
+	SDL_JoystickGetDeviceInstanceID()
+* Added functions to return information about an open joystick:
+	SDL_JoystickGetVendor()
+	SDL_JoystickGetProduct()
+	SDL_JoystickGetProductVersion()
+	SDL_JoystickGetType()
+	SDL_JoystickGetAxisInitialState()
+* Added functions to return information about an open game controller:
+	SDL_GameControllerGetVendor()
+	SDL_GameControllerGetProduct()
+	SDL_GameControllerGetProductVersion()
+* Added SDL_GameControllerNumMappings() and SDL_GameControllerMappingForIndex() to be able to enumerate the built-in game controller mappings
+* Added SDL_LoadFile() and SDL_LoadFile_RW() to load a file into memory
+* Added SDL_DuplicateSurface() to make a copy of a surface
+* Added an experimental JACK audio driver
+* Implemented non-power-of-two audio resampling, optionally using libsamplerate to perform the resampling
+* Added the hint SDL_HINT_AUDIO_RESAMPLING_MODE to control the quality of resampling
+* Added the hint SDL_HINT_RENDER_LOGICAL_SIZE_MODE to control the scaling policy for SDL_RenderSetLogicalSize():
+	"0" or "letterbox" - Uses letterbox/sidebars to fit the entire rendering on screen (the default)
+	"1" or "overscan"  - Will zoom the rendering so it fills the entire screen, allowing edges to be drawn offscreen
+* Added the hints SDL_HINT_MOUSE_NORMAL_SPEED_SCALE and SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE to scale the mouse speed when being read from raw mouse input
+* Added the hint SDL_HINT_TOUCH_MOUSE_EVENTS to control whether SDL will synthesize mouse events from touch events
+
+Windows:
+* The new default audio driver on Windows is WASAPI and supports hot-plugging devices and changing the default audio device
+* The old XAudio2 audio driver is deprecated and will be removed in the next release
+* Added hints SDL_HINT_WINDOWS_INTRESOURCE_ICON and SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL to specify a custom icon resource ID for SDL windows
+* The hint SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING is now on by default for compatibility with .NET languages and various Windows debuggers
+* Updated the GUID format for game controller mappings, older mappings will be automatically converted on load
+* Implemented the SDL_WINDOW_ALWAYS_ON_TOP flag on Windows
+
+Linux:
+* Added an experimental KMS/DRM video driver for embedded development
+
+iOS:
+* Added a hint SDL_HINT_AUDIO_CATEGORY to control the audio category, determining whether the phone mute switch affects the audio
+
+---------------------------------------------------------------------------
+2.0.5:
+---------------------------------------------------------------------------
+
+General:
+* Implemented audio capture support for some platforms
+* Added SDL_DequeueAudio() to retrieve audio when buffer queuing is turned on for audio capture
+* Added events for dragging and dropping text
+* Added events for dragging and dropping multiple items
+* By default the click raising a window will not be delivered to the SDL application. You can set the hint SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH to "1" to allow that click through to the window.
+* Saving a surface with an alpha channel as a BMP will use a newer BMP format that supports alpha information. You can set the hint SDL_HINT_BMP_SAVE_LEGACY_FORMAT to "1" to use the old format.
+* Added SDL_GetHintBoolean() to get the boolean value of a hint
+* Added SDL_RenderSetIntegerScale() to set whether to smoothly scale or use integral multiples of the viewport size when scaling the rendering output
+* Added SDL_CreateRGBSurfaceWithFormat() and SDL_CreateRGBSurfaceWithFormatFrom() to create an SDL surface with a specific pixel format
+* Added SDL_GetDisplayUsableBounds() which returns the area usable for windows. For example, on Mac OS X, this subtracts the area occupied by the menu bar and dock.
+* Added SDL_GetWindowBordersSize() which returns the size of the window's borders around the client area
+* Added a window event SDL_WINDOWEVENT_HIT_TEST when a window had a hit test that wasn't SDL_HITTEST_NORMAL (e.g. in the title bar or window frame)
+* Added SDL_SetWindowResizable() to change whether a window is resizable
+* Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity() to affect the window transparency
+* Added SDL_SetWindowModalFor() to set a window as modal for another window
+* Added support for AUDIO_U16LSB and AUDIO_U16MSB to SDL_MixAudioFormat()
+* Fixed flipped images when reading back from target textures when using the OpenGL renderer
+* Fixed texture color modulation with SDL_BLENDMODE_NONE when using the OpenGL renderer
+* Fixed bug where the alpha value of colorkeys was ignored when blitting in some cases
+
+Windows:
+* Added a hint SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING to prevent SDL from raising a debugger exception to name threads. This exception can cause problems with .NET applications when running under a debugger.
+* The hint SDL_HINT_THREAD_STACK_SIZE is now supported on Windows
+* Fixed XBox controller triggers automatically being pulled at startup
+* The first icon from the executable is used as the default window icon at runtime
+* Fixed SDL log messages being printed twice if SDL was built with C library support
+* Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL applications don't affect text input into other applications.
+
+Mac OS X:
+* Fixed selecting the dummy video driver
+* The caps lock key now generates a pressed event when pressed and a released event when released, instead of a press/release event pair when pressed.
+* Fixed mouse wheel events on Mac OS X 10.12
+* The audio driver has been updated to use AVFoundation for better compatibility with newer versions of Mac OS X
+
+Linux:
+* Added support for the Fcitx IME
+* Added a window event SDL_WINDOWEVENT_TAKE_FOCUS when a window manager asks the SDL window whether it wants to take focus.
+* Refresh rates are now rounded instead of truncated, e.g. 59.94 Hz is rounded up to 60 Hz instead of 59.
+* Added initial support for touchscreens on Raspberry Pi
+
+OpenBSD:
+* SDL_GetBasePath() is now implemented on OpenBSD
+
+iOS:
+* Added support for dynamically loaded objects on iOS 8 and newer
+
+tvOS:
+* Added support for Apple TV
+* Added a hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION to control whether he Apple TV remote's joystick axes will automatically match the rotation of the remote.  
+
+Android:
+* Fixed SDL not resizing window when Android screen resolution changes
+* Corrected the joystick Z axis reporting for the accelerometer
+
+Emscripten (running in a web browser):
+* Many bug fixes and improvements
+
+
+---------------------------------------------------------------------------
+2.0.4:
+---------------------------------------------------------------------------
+
+General:
+* Added support for web applications using Emscripten, see docs/README-emscripten.md for more information
+* Added support for web applications using Native Client (NaCl), see docs/README-nacl.md for more information
+* Added an API to queue audio instead of using the audio callback:
+    SDL_QueueAudio(), SDL_GetQueuedAudioSize(), SDL_ClearQueuedAudio()
+* Added events for audio device hot plug support:
+    SDL_AUDIODEVICEADDED, SDL_AUDIODEVICEREMOVED
+* Added SDL_PointInRect()
+* Added SDL_HasAVX2() to detect CPUs with AVX2 support
+* Added SDL_SetWindowHitTest() to let apps treat parts of their SDL window like traditional window decorations (drag areas, resize areas)
+* Added SDL_GetGrabbedWindow() to get the window that currently has input grab, if any
+* Added SDL_RenderIsClipEnabled() to tell whether clipping is currently enabled in a renderer
+* Added SDL_CaptureMouse() to capture the mouse to get events while the mouse is not in your window
+* Added SDL_WarpMouseGlobal() to warp the mouse cursor in global screen space
+* Added SDL_GetGlobalMouseState() to get the current mouse state outside of an SDL window
+* Added a direction field to mouse wheel events to tell whether they are flipped (natural) or not
+* Added GL_CONTEXT_RELEASE_BEHAVIOR GL attribute (maps to [WGL|GLX]_ARB_context_flush_control extension)
+* Added EGL_KHR_create_context support to allow OpenGL ES version selection on some platforms
+* Added NV12 and NV21 YUV texture support for OpenGL and OpenGL ES 2.0 renderers
+* Added a Vivante video driver that is used on various SoC platforms
+* Added an event SDL_RENDER_DEVICE_RESET that is sent from the D3D renderers when the D3D device is lost, and from Android's event loop when the GLES context had to be recreated
+* Added a hint SDL_HINT_NO_SIGNAL_HANDLERS to disable SDL's built in signal handling
+* Added a hint SDL_HINT_THREAD_STACK_SIZE to set the stack size of SDL's threads
+* Added SDL_sqrtf(), SDL_tan(), and SDL_tanf() to the stdlib routines
+* Improved support for WAV and BMP files with unusual chunks in them
+* Renamed SDL_assert_data to SDL_AssertData and SDL_assert_state to SDL_AssertState
+* Added a hint SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN to prevent window interaction while cursor is hidden
+* Added SDL_GetDisplayDPI() to get the DPI information for a display
+* Added SDL_JoystickCurrentPowerLevel() to get the battery level of a joystick
+* Added SDL_JoystickFromInstanceID(), as a helper function, to get the SDL_Joystick* that an event is referring to.
+* Added SDL_GameControllerFromInstanceID(), as a helper function, to get the SDL_GameController* that an event is referring to.
+
+Windows:
+* Added support for Windows Phone 8.1 and Windows 10/UWP (Universal Windows Platform)
+* Timer resolution is now 1 ms by default, adjustable with the SDL_HINT_TIMER_RESOLUTION hint
+* SDLmain no longer depends on the C runtime, so you can use the same .lib in both Debug and Release builds
+* Added SDL_SetWindowsMessageHook() to set a function to be called for every windows message before TranslateMessage()
+* Added a hint SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP to control whether SDL_PumpEvents() processes the Windows message loop
+* You can distinguish between real mouse and touch events by looking for SDL_TOUCH_MOUSEID in the mouse event "which" field
+* SDL_SysWMinfo now contains the window HDC
+* Added support for Unicode command line options
+* Prevent beeping when Alt-key combos are pressed
+* SDL_SetTextInputRect() re-positions the OS-rendered IME
+* Added a hint SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4 to prevent generating SDL_WINDOWEVENT_CLOSE events when Alt-F4 is pressed
+* Added a hint SDL_HINT_XINPUT_USE_OLD_JOYSTICK_MAPPING to use the old axis and button mapping for XInput devices (deprecated)
+
+Mac OS X:
+* Implemented drag-and-drop support
+* Improved joystick hot-plug detection
+* The SDL_WINDOWEVENT_EXPOSED window event is triggered in the appropriate situations
+* Fixed relative mouse mode when the application loses/regains focus
+* Fixed bugs related to transitioning to and from Spaces-aware fullscreen-desktop mode
+* Fixed the refresh rate of display modes
+* SDL_SysWMInfo is now ARC-compatible
+* Added a hint SDL_HINT_MAC_BACKGROUND_APP to prevent forcing the application to become a foreground process
+
+Linux:
+* Enabled building with Mir and Wayland support by default.
+* Added IBus IME support
+* Added a hint SDL_HINT_IME_INTERNAL_EDITING to control whether IBus should handle text editing internally instead of sending SDL_TEXTEDITING events
+* Added a hint SDL_HINT_VIDEO_X11_NET_WM_PING to allow disabling _NET_WM_PING protocol handling in SDL_CreateWindow()
+* Added support for multiple audio devices when using Pulseaudio
+* Fixed duplicate mouse events when using relative mouse motion
+
+iOS:
+* Added support for iOS 8
+* The SDL_WINDOW_ALLOW_HIGHDPI window flag now enables high-dpi support, and SDL_GL_GetDrawableSize() or SDL_GetRendererOutputSize() gets the window resolution in pixels
+* SDL_GetWindowSize() and display mode sizes are in the "DPI-independent points" / "screen coordinates" coordinate space rather than pixels (matches OS X behavior)
+* Added native resolution support for the iPhone 6 Plus
+* Added support for MFi game controllers
+* Added support for the hint SDL_HINT_ACCELEROMETER_AS_JOYSTICK
+* Added sRGB OpenGL ES context support on iOS 7+
+* Added support for SDL_DisableScreenSaver(), SDL_EnableScreenSaver() and the hint SDL_HINT_VIDEO_ALLOW_SCREENSAVER
+* SDL_SysWMinfo now contains the OpenGL ES framebuffer and color renderbuffer objects used by the window's active GLES view
+* Fixed various rotation and orientation issues
+* Fixed memory leaks
+
+Android:
+* Added a hint SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH to prevent mouse events from being registered as touch events
+* Added hints SDL_HINT_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION and SDL_HINT_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION
+* Added support for SDL_DisableScreenSaver(), SDL_EnableScreenSaver() and the hint SDL_HINT_VIDEO_ALLOW_SCREENSAVER
+* Added support for SDL_ShowMessageBox() and SDL_ShowSimpleMessageBox()
+
+Raspberry Pi:
+* Added support for the Raspberry Pi 2
+
+
+---------------------------------------------------------------------------
+2.0.3:
+---------------------------------------------------------------------------
+
+Mac OS X:
+* Fixed creating an OpenGL context by default on Mac OS X 10.6
+
+
+---------------------------------------------------------------------------
+2.0.2:
+---------------------------------------------------------------------------
+General:
+* Added SDL_GL_ResetAttributes() to reset OpenGL attributes to default values
+* Added an API to load a database of game controller mappings from a file:
+    SDL_GameControllerAddMappingsFromFile(), SDL_GameControllerAddMappingsFromRW()
+* Added game controller mappings for the PS4 and OUYA controllers
+* Added SDL_GetDefaultAssertionHandler() and SDL_GetAssertionHandler()
+* Added SDL_DetachThread()
+* Added SDL_HasAVX() to determine if the CPU has AVX features
+* Added SDL_vsscanf(), SDL_acos(), and SDL_asin() to the stdlib routines
+* EGL can now create/manage OpenGL and OpenGL ES 1.x/2.x contexts, and share
+  them using SDL_GL_SHARE_WITH_CURRENT_CONTEXT
+* Added a field "clicks" to the mouse button event which records whether the event is a single click, double click, etc.
+* The screensaver is now disabled by default, and there is a hint SDL_HINT_VIDEO_ALLOW_SCREENSAVER that can change that behavior.
+* Added a hint SDL_HINT_MOUSE_RELATIVE_MODE_WARP to specify whether mouse relative mode should be emulated using mouse warping.
+* testgl2 does not need to link with libGL anymore
+* Added testgles2 test program to demonstrate working with OpenGL ES 2.0
+* Added controllermap test program to visually map a game controller
+
+Windows:
+* Support for OpenGL ES 2.x contexts using either WGL or EGL (natively via
+  the driver or emulated through ANGLE)
+* Added a hint SDL_HINT_VIDEO_WIN_D3DCOMPILER to specify which D3D shader compiler to use for OpenGL ES 2 support through ANGLE
+* Added a hint SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT that is useful when creating multiple windows that should share the same OpenGL context.
+* Added an event SDL_RENDER_TARGETS_RESET that is sent when D3D9 render targets are reset after the device has been restored.
+
+Mac OS X:
+* Added a hint SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK to control whether Ctrl+click should be treated as a right click on Mac OS X. This is off by default.
+
+Linux:
+* Fixed fullscreen and focused behavior when receiving NotifyGrab events
+* Added experimental Wayland and Mir support, disabled by default
+
+Android:
+* Joystick support (minimum SDK version required to build SDL is now 12, 
+  the required runtime version remains at 10, but on such devices joystick 
+  support won't be available).
+* Hotplugging support for joysticks
+* Added a hint SDL_HINT_ACCELEROMETER_AS_JOYSTICK to control whether the accelerometer should be listed as a 3 axis joystick, which it will by default.
+
+
+---------------------------------------------------------------------------
+2.0.1:
+---------------------------------------------------------------------------
+
+General:
+* Added an API to get common filesystem paths in SDL_filesystem.h:
+    SDL_GetBasePath(), SDL_GetPrefPath()
+* Added an API to do optimized YV12 and IYUV texture updates:
+    SDL_UpdateYUVTexture()
+* Added an API to get the amount of RAM on the system:
+    SDL_GetSystemRAM()
+* Added a macro to perform timestamp comparisons with SDL_GetTicks():
+    SDL_TICKS_PASSED()
+* Dramatically improved OpenGL ES 2.0 rendering performance
+* Added OpenGL attribute SDL_GL_FRAMEBUFFER_SRGB_CAPABLE
+
+Windows:
+* Created a static library configuration for the Visual Studio 2010 project
+* Added a hint to create the Direct3D device with support for multi-threading:
+    SDL_HINT_RENDER_DIRECT3D_THREADSAFE
+* Added a function to get the D3D9 adapter index for a display:
+    SDL_Direct3D9GetAdapterIndex()
+* Added a function to get the D3D9 device for a D3D9 renderer:
+    SDL_RenderGetD3D9Device()
+* Fixed building SDL with the mingw32 toolchain (mingw-w64 is preferred)
+* Fixed crash when using two XInput controllers at the same time
+* Fixed detecting a mixture of XInput and DirectInput controllers
+* Fixed clearing a D3D render target larger than the window
+* Improved support for format specifiers in SDL_snprintf()
+
+Mac OS X:
+* Added support for retina displays:
+  Create your window with the SDL_WINDOW_ALLOW_HIGHDPI flag, and then use SDL_GL_GetDrawableSize() to find the actual drawable size. You are responsible for scaling mouse and drawing coordinates appropriately.
+* Fixed mouse warping in fullscreen mode
+* Right mouse click is emulated by holding the Ctrl key while left clicking
+
+Linux:
+* Fixed float audio support with the PulseAudio driver
+* Fixed missing line endpoints in the OpenGL renderer on some drivers
+* X11 symbols are no longer defined to avoid collisions when linking statically
+
+iOS:
+* Fixed status bar visibility on iOS 7
+* Flipped the accelerometer Y axis to match expected values
+
+Android:
+IMPORTANT: You MUST get the updated SDLActivity.java to match C code
+* Moved EGL initialization to native code 
+* Fixed the accelerometer axis rotation relative to the device rotation
+* Fixed race conditions when handling the EGL context on pause/resume
+* Touch devices are available for enumeration immediately after init
+
+Raspberry Pi:
+* Added support for the Raspberry Pi, see README-raspberrypi.txt for details
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-android.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-android.md
new file mode 100644
index 0000000..2d20534
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-android.md
@@ -0,0 +1,432 @@
+Android
+================================================================================
+
+Matt Styles wrote a tutorial on building SDL for Android with Visual Studio:
+http://trederia.blogspot.de/2017/03/building-sdl2-for-android-with-visual.html
+
+The rest of this README covers the Android gradle style build process.
+
+If you are using the older ant build process, it is no longer officially
+supported, but you can use the "android-project-ant" directory as a template.
+
+
+================================================================================
+ Requirements
+================================================================================
+
+Android SDK (version 19 or later)
+https://developer.android.com/sdk/index.html
+
+Android NDK r10e or later
+https://developer.android.com/tools/sdk/ndk/index.html
+
+Minimum API level supported by SDL: 14 (Android 4.0.1)
+
+
+================================================================================
+ How the port works
+================================================================================
+
+- Android applications are Java-based, optionally with parts written in C
+- As SDL apps are C-based, we use a small Java shim that uses JNI to talk to 
+  the SDL library
+- This means that your application C code must be placed inside an Android 
+  Java project, along with some C support code that communicates with Java
+- This eventually produces a standard Android .apk package
+
+The Android Java code implements an "Activity" and can be found in:
+android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
+
+The Java code loads your game code, the SDL shared library, and
+dispatches to native functions implemented in the SDL library:
+src/core/android/SDL_android.c
+
+
+================================================================================
+ Building an app
+================================================================================
+
+For simple projects you can use the script located at build-scripts/androidbuild.sh
+
+There's two ways of using it:
+
+    androidbuild.sh com.yourcompany.yourapp < sources.list
+    androidbuild.sh com.yourcompany.yourapp source1.c source2.c ...sourceN.c
+
+sources.list should be a text file with a source file name in each line
+Filenames should be specified relative to the current directory, for example if
+you are in the build-scripts directory and want to create the testgles.c test, you'll
+run:
+
+    ./androidbuild.sh org.libsdl.testgles ../test/testgles.c
+
+One limitation of this script is that all sources provided will be aggregated into
+a single directory, thus all your source files should have a unique name.
+
+Once the project is complete the script will tell you where the debug APK is located.
+If you want to create a signed release APK, you can use the project created by this
+utility to generate it.
+
+Finally, a word of caution: re running androidbuild.sh wipes any changes you may have
+done in the build directory for the app!
+
+
+For more complex projects, follow these instructions:
+    
+1. Copy the android-project directory wherever you want to keep your projects
+   and rename it to the name of your project.
+2. Move or symlink this SDL directory into the "<project>/app/jni" directory
+3. Edit "<project>/app/jni/src/Android.mk" to include your source files
+4. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
+
+If you want to use Android Studio (recommended), skip to the Android Studio section below.
+
+5. Run './gradlew installDebug' in the project directory. This compiles the .java, creates an .apk with the native code embedded, and installs it on any connected Android device
+
+Here's an explanation of the files in the Android project, so you can customize them:
+
+    android-project/app
+        build.gradle            - build info including the application version and SDK
+        src/main/AndroidManifest.xml	- package manifest. Among others, it contains the class name
+        			  of the main Activity and the package name of the application.
+        jni/			- directory holding native code
+        jni/Application.mk	- Application JNI settings, including target platform and STL library
+        jni/Android.mk		- Android makefile that can call recursively the Android.mk files in all subdirectories
+        jni/SDL/		- (symlink to) directory holding the SDL library files
+        jni/SDL/Android.mk	- Android makefile for creating the SDL shared library
+        jni/src/		- directory holding your C/C++ source
+        jni/src/Android.mk	- Android makefile that you should customize to include your source code and any library references
+        src/main/assets/	- directory holding asset files for your application
+        src/main/res/		- directory holding resources for your application
+        src/main/res/mipmap-*	- directories holding icons for different phone hardware
+        src/main/res/values/strings.xml	- strings used in your application, including the application name
+        src/main/java/org/libsdl/app/SDLActivity.java - the Java class handling the initialization and binding to SDL. Be very careful changing this, as the SDL library relies on this implementation. You should instead subclass this for your application.
+
+
+================================================================================
+ Customizing your application name
+================================================================================
+
+To customize your application name, edit AndroidManifest.xml and replace
+"org.libsdl.app" with an identifier for your product package.
+
+Then create a Java class extending SDLActivity and place it in a directory
+under src matching your package, e.g.
+
+    src/com/gamemaker/game/MyGame.java
+
+Here's an example of a minimal class file:
+
+    --- MyGame.java --------------------------
+    package com.gamemaker.game;
+    
+    import org.libsdl.app.SDLActivity; 
+    
+    /**
+     * A sample wrapper class that just calls SDLActivity 
+     */ 
+    
+    public class MyGame extends SDLActivity { }
+    
+    ------------------------------------------
+
+Then replace "SDLActivity" in AndroidManifest.xml with the name of your
+class, .e.g. "MyGame"
+
+
+================================================================================
+ Customizing your application icon
+================================================================================
+
+Conceptually changing your icon is just replacing the "ic_launcher.png" files in
+the drawable directories under the res directory. There are several directories
+for different screen sizes.
+
+
+================================================================================
+ Loading assets
+================================================================================
+
+Any files you put in the "app/src/main/assets" directory of your project
+directory will get bundled into the application package and you can load
+them using the standard functions in SDL_rwops.h.
+
+There are also a few Android specific functions that allow you to get other
+useful paths for saving and loading data:
+* SDL_AndroidGetInternalStoragePath()
+* SDL_AndroidGetExternalStorageState()
+* SDL_AndroidGetExternalStoragePath()
+
+See SDL_system.h for more details on these functions.
+
+The asset packaging system will, by default, compress certain file extensions.
+SDL includes two asset file access mechanisms, the preferred one is the so
+called "File Descriptor" method, which is faster and doesn't involve the Dalvik
+GC, but given this method does not work on compressed assets, there is also the
+"Input Stream" method, which is automatically used as a fall back by SDL. You
+may want to keep this fact in mind when building your APK, specially when large
+files are involved.
+For more information on which extensions get compressed by default and how to
+disable this behaviour, see for example:
+    
+http://ponystyle.com/blog/2010/03/26/dealing-with-asset-compression-in-android-apps/
+
+
+================================================================================
+ Pause / Resume behaviour
+================================================================================
+
+If SDL is compiled with SDL_ANDROID_BLOCK_ON_PAUSE defined (the default),
+the event loop will block itself when the app is paused (ie, when the user
+returns to the main Android dashboard). Blocking is better in terms of battery
+use, and it allows your app to spring back to life instantaneously after resume
+(versus polling for a resume message).
+
+Upon resume, SDL will attempt to restore the GL context automatically.
+In modern devices (Android 3.0 and up) this will most likely succeed and your
+app can continue to operate as it was.
+
+However, there's a chance (on older hardware, or on systems under heavy load),
+where the GL context can not be restored. In that case you have to listen for
+a specific message, (which is not yet implemented!) and restore your textures
+manually or quit the app (which is actually the kind of behaviour you'll see
+under iOS, if the OS can not restore your GL context it will just kill your app)
+
+
+================================================================================
+ Threads and the Java VM
+================================================================================
+
+For a quick tour on how Linux native threads interoperate with the Java VM, take
+a look here: https://developer.android.com/guide/practices/jni.html
+
+If you want to use threads in your SDL app, it's strongly recommended that you
+do so by creating them using SDL functions. This way, the required attach/detach
+handling is managed by SDL automagically. If you have threads created by other
+means and they make calls to SDL functions, make sure that you call
+Android_JNI_SetupThread() before doing anything else otherwise SDL will attach
+your thread automatically anyway (when you make an SDL call), but it'll never
+detach it.
+
+
+================================================================================
+ Using STL
+================================================================================
+
+You can use STL in your project by creating an Application.mk file in the jni
+folder and adding the following line:
+
+    APP_STL := stlport_static
+
+For more information check out CPLUSPLUS-SUPPORT.html in the NDK documentation.
+
+
+================================================================================
+ Additional documentation
+================================================================================
+
+The documentation in the NDK docs directory is very helpful in understanding the
+build process and how to work with native code on the Android platform.
+
+The best place to start is with docs/OVERVIEW.TXT
+
+
+================================================================================
+ Using Android Studio
+================================================================================
+
+You can open your project directory with Android Studio and run it normally.
+
+
+================================================================================
+ Using the emulator
+================================================================================
+
+There are some good tips and tricks for getting the most out of the
+emulator here: https://developer.android.com/tools/devices/emulator.html
+
+Especially useful is the info on setting up OpenGL ES 2.0 emulation.
+
+Notice that this software emulator is incredibly slow and needs a lot of disk space.
+Using a real device works better.
+
+
+================================================================================
+ Troubleshooting
+================================================================================
+
+You can see if adb can see any devices with the following command:
+
+    adb devices
+
+You can see the output of log messages on the default device with:
+
+    adb logcat
+
+You can push files to the device with:
+
+    adb push local_file remote_path_and_file
+
+You can push files to the SD Card at /sdcard, for example:
+
+    adb push moose.dat /sdcard/moose.dat
+
+You can see the files on the SD card with a shell command:
+
+    adb shell ls /sdcard/
+
+You can start a command shell on the default device with:
+
+    adb shell
+
+You can remove the library files of your project (and not the SDL lib files) with:
+
+    ndk-build clean
+
+You can do a build with the following command:
+
+    ndk-build
+
+You can see the complete command line that ndk-build is using by passing V=1 on the command line:
+
+    ndk-build V=1
+
+If your application crashes in native code, you can use addr2line to convert the
+addresses in the stack trace to lines in your code.
+
+For example, if your crash looks like this:
+
+    I/DEBUG   (   31): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 400085d0
+    I/DEBUG   (   31):  r0 00000000  r1 00001000  r2 00000003  r3 400085d4
+    I/DEBUG   (   31):  r4 400085d0  r5 40008000  r6 afd41504  r7 436c6a7c
+    I/DEBUG   (   31):  r8 436c6b30  r9 435c6fb0  10 435c6f9c  fp 4168d82c
+    I/DEBUG   (   31):  ip 8346aff0  sp 436c6a60  lr afd1c8ff  pc afd1c902  cpsr 60000030
+    I/DEBUG   (   31):          #00  pc 0001c902  /system/lib/libc.so
+    I/DEBUG   (   31):          #01  pc 0001ccf6  /system/lib/libc.so
+    I/DEBUG   (   31):          #02  pc 000014bc  /data/data/org.libsdl.app/lib/libmain.so
+    I/DEBUG   (   31):          #03  pc 00001506  /data/data/org.libsdl.app/lib/libmain.so
+
+You can see that there's a crash in the C library being called from the main code.
+I run addr2line with the debug version of my code:
+
+    arm-eabi-addr2line -C -f -e obj/local/armeabi/libmain.so
+
+and then paste in the number after "pc" in the call stack, from the line that I care about:
+000014bc
+
+I get output from addr2line showing that it's in the quit function, in testspriteminimal.c, on line 23.
+
+You can add logging to your code to help show what's happening:
+
+    #include <android/log.h>
+    
+    __android_log_print(ANDROID_LOG_INFO, "foo", "Something happened! x = %d", x);
+
+If you need to build without optimization turned on, you can create a file called
+"Application.mk" in the jni directory, with the following line in it:
+
+    APP_OPTIM := debug
+
+
+================================================================================
+ Memory debugging
+================================================================================
+
+The best (and slowest) way to debug memory issues on Android is valgrind.
+Valgrind has support for Android out of the box, just grab code using:
+
+    svn co svn://svn.valgrind.org/valgrind/trunk valgrind
+
+... and follow the instructions in the file README.android to build it.
+
+One thing I needed to do on Mac OS X was change the path to the toolchain,
+and add ranlib to the environment variables:
+export RANLIB=$NDKROOT/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-ranlib
+
+Once valgrind is built, you can create a wrapper script to launch your
+application with it, changing org.libsdl.app to your package identifier:
+
+    --- start_valgrind_app -------------------
+    #!/system/bin/sh
+    export TMPDIR=/data/data/org.libsdl.app
+    exec /data/local/Inst/bin/valgrind --log-file=/sdcard/valgrind.log --error-limit=no $*
+    ------------------------------------------
+
+Then push it to the device:
+
+    adb push start_valgrind_app /data/local
+
+and make it executable:
+
+    adb shell chmod 755 /data/local/start_valgrind_app
+
+and tell Android to use the script to launch your application:
+
+    adb shell setprop wrap.org.libsdl.app "logwrapper /data/local/start_valgrind_app"
+
+If the setprop command says "could not set property", it's likely that
+your package name is too long and you should make it shorter by changing
+AndroidManifest.xml and the path to your class file in android-project/src
+
+You can then launch your application normally and waaaaaaaiiittt for it.
+You can monitor the startup process with the logcat command above, and
+when it's done (or even while it's running) you can grab the valgrind
+output file:
+
+    adb pull /sdcard/valgrind.log
+
+When you're done instrumenting with valgrind, you can disable the wrapper:
+
+    adb shell setprop wrap.org.libsdl.app ""
+
+
+================================================================================
+ Graphics debugging
+================================================================================
+
+If you are developing on a compatible Tegra-based tablet, NVidia provides
+Tegra Graphics Debugger at their website. Because SDL2 dynamically loads EGL
+and GLES libraries, you must follow their instructions for installing the
+interposer library on a rooted device. The non-rooted instructions are not
+compatible with applications that use SDL2 for video.
+
+The Tegra Graphics Debugger is available from NVidia here:
+https://developer.nvidia.com/tegra-graphics-debugger
+
+
+================================================================================
+ Why is API level 14 the minimum required?
+================================================================================
+
+The latest NDK toolchain doesn't support targeting earlier than API level 14.
+As of this writing, according to https://developer.android.com/about/dashboards/index.html
+about 99% of the Android devices accessing Google Play support API level 14 or
+higher (October 2017).
+
+
+================================================================================
+ A note regarding the use of the "dirty rectangles" rendering technique
+================================================================================
+
+If your app uses a variation of the "dirty rectangles" rendering technique,
+where you only update a portion of the screen on each frame, you may notice a
+variety of visual glitches on Android, that are not present on other platforms.
+This is caused by SDL's use of EGL as the support system to handle OpenGL ES/ES2
+contexts, in particular the use of the eglSwapBuffers function. As stated in the
+documentation for the function "The contents of ancillary buffers are always 
+undefined after calling eglSwapBuffers".
+Setting the EGL_SWAP_BEHAVIOR attribute of the surface to EGL_BUFFER_PRESERVED
+is not possible for SDL as it requires EGL 1.4, available only on the API level
+17+, so the only workaround available on this platform is to redraw the entire
+screen each frame.
+
+Reference: http://www.khronos.org/registry/egl/specs/EGLTechNote0001.html
+
+
+================================================================================
+ Known issues
+================================================================================
+
+- The number of buttons reported for each joystick is hardcoded to be 36, which
+is the current maximum number of buttons Android can report.
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-cmake.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-cmake.md
new file mode 100644
index 0000000..2ce11d7
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-cmake.md
@@ -0,0 +1,32 @@
+CMake
+================================================================================
+(www.cmake.org)
+
+SDL's build system was traditionally based on autotools. Over time, this
+approach has suffered from several issues across the different supported 
+platforms.
+To solve these problems, a new build system based on CMake is under development.
+It works in parallel to the legacy system, so users can experiment with it
+without complication.
+While still experimental, the build system should be usable on the following
+platforms:
+
+* FreeBSD
+* Linux
+* VS.NET 2010
+* MinGW and Msys
+* OS X with support for XCode
+
+
+================================================================================
+Usage
+================================================================================
+
+Assuming the source for SDL is located at ~/sdl
+
+    cd ~
+    mkdir build
+    cd build
+    cmake ../sdl
+
+This will build the static and dynamic versions of SDL in the ~/build directory.
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-directfb.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-directfb.md
new file mode 100644
index 0000000..eeac428
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-directfb.md
@@ -0,0 +1,107 @@
+DirectFB
+========
+
+Supports:
+
+- Hardware YUV overlays
+- OpenGL - software only
+- 2D/3D accelerations (depends on directfb driver)
+- multiple displays
+- windows
+
+What you need:
+
+* DirectFB 1.0.1, 1.2.x, 1.3.0
+* Kernel-Framebuffer support: required: vesafb, radeonfb .... 
+* Mesa 7.0.x	   - optional for OpenGL
+
+/etc/directfbrc
+
+This file should contain the following lines to make
+your joystick work and avoid crashes:
+------------------------
+disable-module=joystick
+disable-module=cle266
+disable-module=cyber5k
+no-linux-input-grab
+------------------------
+
+To disable to use x11 backend when DISPLAY variable is found use
+
+export SDL_DIRECTFB_X11_CHECK=0
+
+To disable the use of linux input devices, i.e. multimice/multikeyboard support,
+use
+
+export SDL_DIRECTFB_LINUX_INPUT=0
+
+To use hardware accelerated YUV-overlays for YUV-textures, use:
+
+export SDL_DIRECTFB_YUV_DIRECT=1
+
+This is disabled by default. It will only support one 
+YUV texture, namely the first. Every other YUV texture will be
+rendered in software.
+
+In addition, you may use (directfb-1.2.x)
+
+export SDL_DIRECTFB_YUV_UNDERLAY=1
+
+to make the YUV texture an underlay. This will make the cursor to
+be shown.
+
+Simple Window Manager
+=====================
+
+The driver has support for a very, very basic window manager you may
+want to use when running with "wm=default". Use
+
+export SDL_DIRECTFB_WM=1
+
+to enable basic window borders. In order to have the window title rendered,
+you need to have the following font installed:
+
+/usr/share/fonts/truetype/freefont/FreeSans.ttf
+
+OpenGL Support
+==============
+
+The following instructions will give you *software* OpenGL. However this
+works at least on all directfb supported platforms.
+
+As of this writing 20100802 you need to pull Mesa from git and do the following:
+
+------------------------
+git clone git://anongit.freedesktop.org/git/mesa/mesa
+cd mesa 
+git checkout 2c9fdaf7292423c157fc79b5ce43f0f199dd753a
+------------------------
+
+Edit configs/linux-directfb so that the Directories-section looks like
+------------------------
+# Directories
+SRC_DIRS     = mesa glu 
+GLU_DIRS     = sgi
+DRIVER_DIRS  = directfb
+PROGRAM_DIRS = 
+------------------------
+
+make linux-directfb
+make
+
+echo Installing - please enter sudo pw.
+
+sudo make install INSTALL_DIR=/usr/local/dfb_GL
+cd src/mesa/drivers/directfb
+make
+sudo make install INSTALL_DIR=/usr/local/dfb_GL
+------------------------
+
+To run the SDL - testprograms:
+
+export SDL_VIDEODRIVER=directfb
+export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
+export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
+
+./testgl
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-dynapi.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-dynapi.md
new file mode 100644
index 0000000..40b44db
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-dynapi.md
@@ -0,0 +1,130 @@
+Dynamic API
+================================================================================
+Originally posted by Ryan at:
+  https://plus.google.com/103391075724026391227/posts/TB8UfnDYu4U
+
+Background:
+
+- The Steam Runtime has (at least in theory) a really kick-ass build of SDL2, 
+  but developers are shipping their own SDL2 with individual Steam games. 
+  These games might stop getting updates, but a newer SDL2 might be needed later. 
+  Certainly we'll always be fixing bugs in SDL, even if a new video target isn't 
+  ever needed, and these fixes won't make it to a game shipping its own SDL.
+- Even if we replace the SDL2 in those games with a compatible one, that is to 
+  say, edit a developer's Steam depot (yuck!), there are developers that are 
+  statically linking SDL2 that we can't do this for. We can't even force the 
+  dynamic loader to ignore their SDL2 in this case, of course.
+- If you don't ship an SDL2 with the game in some form, people that disabled the
+  Steam Runtime, or just tried to run the game from the command line instead of 
+  Steam might find themselves unable to run the game, due to a missing dependency.
+- If you want to ship on non-Steam platforms like GOG or Humble Bundle, or target
+  generic Linux boxes that may or may not have SDL2 installed, you have to ship 
+  the library or risk a total failure to launch. So now, you might have to have 
+  a non-Steam build plus a Steam build (that is, one with and one without SDL2 
+  included), which is inconvenient if you could have had one universal build 
+  that works everywhere.
+- We like the zlib license, but the biggest complaint from the open source 
+  community about the license change is the static linking. The LGPL forced this 
+  as a legal, not technical issue, but zlib doesn't care. Even those that aren't
+  concerned about the GNU freedoms found themselves solving the same problems: 
+  swapping in a newer SDL to an older game often times can save the day. 
+  Static linking stops this dead.
+
+So here's what we did:
+
+SDL now has, internally, a table of function pointers. So, this is what SDL_Init
+now looks like:
+
+    UInt32 SDL_Init(Uint32 flags)
+    {
+        return jump_table.SDL_Init(flags);
+    }
+
+Except that is all done with a bunch of macro magic so we don't have to maintain
+every one of these.
+
+What is jump_table.SDL_init()? Eventually, that's a function pointer of the real
+SDL_Init() that you've been calling all this time. But at startup, it looks more 
+like this:
+
+    Uint32 SDL_Init_DEFAULT(Uint32 flags)
+    {
+        SDL_InitDynamicAPI();
+        return jump_table.SDL_Init(flags);
+    }
+
+SDL_InitDynamicAPI() fills in jump_table with all the actual SDL function 
+pointers, which means that this _DEFAULT function never gets called again. 
+First call to any SDL function sets the whole thing up.
+
+So you might be asking, what was the value in that? Isn't this what the operating
+system's dynamic loader was supposed to do for us? Yes, but now we've got this 
+level of indirection, we can do things like this:
+
+    export SDL_DYNAMIC_API=/my/actual/libSDL-2.0.so.0
+    ./MyGameThatIsStaticallyLinkedToSDL2
+
+And now, this game that is statically linked to SDL, can still be overridden 
+with a newer, or better, SDL. The statically linked one will only be used as 
+far as calling into the jump table in this case. But in cases where no override
+is desired, the statically linked version will provide its own jump table, 
+and everyone is happy.
+
+So now:
+- Developers can statically link SDL, and users can still replace it. 
+  (We'd still rather you ship a shared library, though!)
+- Developers can ship an SDL with their game, Valve can override it for, say, 
+  new features on SteamOS, or distros can override it for their own needs, 
+  but it'll also just work in the default case.
+- Developers can ship the same package to everyone (Humble Bundle, GOG, etc), 
+  and it'll do the right thing.
+- End users (and Valve) can update a game's SDL in almost any case, 
+  to keep abandoned games running on newer platforms.
+- Everyone develops with SDL exactly as they have been doing all along. 
+  Same headers, same ABI. Just get the latest version to enable this magic.
+
+
+A little more about SDL_InitDynamicAPI():
+
+Internally, InitAPI does some locking to make sure everything waits until a 
+single thread initializes everything (although even SDL_CreateThread() goes 
+through here before spinning a thread, too), and then decides if it should use
+an external SDL library. If not, it sets up the jump table using the current 
+SDL's function pointers (which might be statically linked into a program, or in
+a shared library of its own). If so, it loads that library and looks for and 
+calls a single function:
+
+    SInt32 SDL_DYNAPI_entry(Uint32 version, void *table, Uint32 tablesize);
+
+That function takes a version number (more on that in a moment), the address of
+the jump table, and the size, in bytes, of the table. 
+Now, we've got policy here: this table's layout never changes; new stuff gets 
+added to the end. Therefore SDL_DYNAPI_entry() knows that it can provide all 
+the needed functions if tablesize <= sizeof its own jump table. If tablesize is
+bigger (say, SDL 2.0.4 is trying to load SDL 2.0.3), then we know to abort, but
+if it's smaller, we know we can provide the entire API that the caller needs.
+
+The version variable is a failsafe switch. 
+Right now it's always 1. This number changes when there are major API changes 
+(so we know if the tablesize might be smaller, or entries in it have changed). 
+Right now SDL_DYNAPI_entry gives up if the version doesn't match, but it's not 
+inconceivable to have a small dispatch library that only supplies this one 
+function and loads different, otherwise-incompatible SDL libraries and has the
+right one initialize the jump table based on the version. For something that 
+must generically catch lots of different versions of SDL over time, like the 
+Steam Client, this isn't a bad option.
+
+Finally, I'm sure some people are reading this and thinking,
+"I don't want that overhead in my project!"  
+To which I would point out that the extra function call through the jump table 
+probably wouldn't even show up in a profile, but lucky you: this can all be 
+disabled. You can build SDL without this if you absolutely must, but we would 
+encourage you not to do that. However, on heavily locked down platforms like 
+iOS, or maybe when debugging, it makes sense to disable it. The way this is
+designed in SDL, you just have to change one #define, and the entire system 
+vaporizes out, and SDL functions exactly like it always did. Most of it is 
+macro magic, so the system is contained to one C file and a few headers. 
+However, this is on by default and you have to edit a header file to turn it 
+off. Our hopes is that if we make it easy to disable, but not too easy, 
+everyone will ultimately be able to get what they want, but we've gently 
+nudged everyone towards what we think is the best solution.
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-emscripten.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-emscripten.md
new file mode 100644
index 0000000..b535cc6
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-emscripten.md
@@ -0,0 +1,35 @@
+Emscripten
+================================================================================
+
+Build:
+
+    $ mkdir build
+    $ cd build
+    $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --disable-cpuinfo CFLAGS="-O2"
+    $ emmake make
+
+Or with cmake:
+
+    $ mkdir build
+    $ cd build
+    $ emcmake cmake ..
+    $ emmake make
+
+To build one of the tests:
+
+    $ cd test/
+    $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
+
+Uses GLES2 renderer or software
+
+Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
+
+SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/):
+
+    $ EMCONFIGURE_JS=1 emconfigure ../configure
+    build as usual...
+
+SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):
+
+    $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx
+    build as usual...
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-gesture.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-gesture.md
new file mode 100644
index 0000000..7e9f95b
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-gesture.md
@@ -0,0 +1,71 @@
+Dollar Gestures
+===========================================================================
+SDL provides an implementation of the $1 gesture recognition system. This allows for recording, saving, loading, and performing single stroke gestures.
+
+Gestures can be performed with any number of fingers (the centroid of the fingers must follow the path of the gesture), but the number of fingers must be constant (a finger cannot go down in the middle of a gesture). The path of a gesture is considered the path from the time when the final finger went down, to the first time any finger comes up. 
+
+Dollar gestures are assigned an Id based on a hash function. This is guaranteed to remain constant for a given gesture. There is a (small) chance that two different gestures will be assigned the same ID. In this case, simply re-recording one of the gestures should result in a different ID.
+
+Recording:
+----------
+To begin recording on a touch device call:
+SDL_RecordGesture(SDL_TouchID touchId), where touchId is the id of the touch device you wish to record on, or -1 to record on all connected devices.
+
+Recording terminates as soon as a finger comes up. Recording is acknowledged by an SDL_DOLLARRECORD event.
+A SDL_DOLLARRECORD event is a dgesture with the following fields:
+
+* event.dgesture.touchId   - the Id of the touch used to record the gesture.
+* event.dgesture.gestureId - the unique id of the recorded gesture.
+
+
+Performing:
+-----------
+As long as there is a dollar gesture assigned to a touch, every finger-up event will also cause an SDL_DOLLARGESTURE event with the following fields:
+
+* event.dgesture.touchId    - the Id of the touch which performed the gesture.
+* event.dgesture.gestureId  - the unique id of the closest gesture to the performed stroke.
+* event.dgesture.error      - the difference between the gesture template and the actual performed gesture. Lower error is a better match.
+* event.dgesture.numFingers - the number of fingers used to draw the stroke.
+
+Most programs will want to define an appropriate error threshold and check to be sure that the error of a gesture is not abnormally high (an indicator that no gesture was performed).
+
+
+
+Saving:
+-------
+To save a template, call SDL_SaveDollarTemplate(gestureId, dst) where gestureId is the id of the gesture you want to save, and dst is an SDL_RWops pointer to the file where the gesture will be stored.
+
+To save all currently loaded templates, call SDL_SaveAllDollarTemplates(dst) where dst is an SDL_RWops pointer to the file where the gesture will be stored.
+
+Both functions return the number of gestures successfully saved.
+
+
+Loading:
+--------
+To load templates from a file, call SDL_LoadDollarTemplates(touchId,src) where touchId is the id of the touch to load to (or -1 to load to all touch devices), and src is an SDL_RWops pointer to a gesture save file. 
+
+SDL_LoadDollarTemplates returns the number of templates successfully loaded.
+
+
+
+===========================================================================
+Multi Gestures
+===========================================================================
+SDL provides simple support for pinch/rotate/swipe gestures. 
+Every time a finger is moved an SDL_MULTIGESTURE event is sent with the following fields:
+
+* event.mgesture.touchId - the Id of the touch on which the gesture was performed.
+* event.mgesture.x       - the normalized x coordinate of the gesture. (0..1)
+* event.mgesture.y       - the normalized y coordinate of the gesture. (0..1)
+* event.mgesture.dTheta  - the amount that the fingers rotated during this motion.
+* event.mgesture.dDist   - the amount that the fingers pinched during this motion.
+* event.mgesture.numFingers - the number of fingers used in the gesture.
+
+
+===========================================================================
+Notes
+===========================================================================
+For a complete example see test/testgesture.c
+
+Please direct questions/comments to:
+   jim.tla+sdl_touch@gmail.com
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-hg.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-hg.md
new file mode 100644
index 0000000..5f3d259
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-hg.md
@@ -0,0 +1,22 @@
+Mercurial
+=========
+
+The latest development version of SDL is available via Mercurial.
+Mercurial allows you to get up-to-the-minute fixes and enhancements;
+as a developer works on a source tree, you can use "hg" to mirror that
+source tree instead of waiting for an official release. Please look
+at the Mercurial website ( https://www.mercurial-scm.org/ ) for more
+information on using hg, where you can also download software for
+Mac OS X, Windows, and Unix systems.
+
+    hg clone http://hg.libsdl.org/SDL
+
+If you are building SDL via configure, you will need to run autogen.sh
+before running configure.
+
+There is a web interface to the subversion repository at:
+	http://hg.libsdl.org/SDL/
+
+There is an RSS feed available at that URL, for those that want to
+track commits in real time.
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-ios.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-ios.md
new file mode 100644
index 0000000..bf34fe4
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-ios.md
@@ -0,0 +1,284 @@
+iOS
+======
+
+==============================================================================
+Building the Simple DirectMedia Layer for iOS 5.1+
+==============================================================================
+
+Requirements: Mac OS X 10.8 or later and the iOS 7+ SDK.
+
+Instructions:
+
+1.  Open SDL.xcodeproj (located in Xcode-iOS/SDL) in Xcode.
+2.  Select your desired target, and hit build.
+
+There are three build targets:
+- libSDL.a:
+	Build SDL as a statically linked library
+- testsdl:
+	Build a test program (there are known test failures which are fine)
+- Template:
+	Package a project template together with the SDL for iPhone static libraries and copies of the SDL headers.  The template includes proper references to the SDL library and headers, skeleton code for a basic SDL program, and placeholder graphics for the application icon and startup screen.
+
+
+==============================================================================
+Build SDL for iOS from the command line
+==============================================================================
+
+1. cd (PATH WHERE THE SDL CODE IS)/build-scripts
+2. ./iosbuild.sh
+
+If everything goes fine, you should see a build/ios directory, inside there's
+two directories "lib" and "include". 
+"include" contains a copy of the SDL headers that you'll need for your project,
+make sure to configure XCode to look for headers there.
+"lib" contains find two files, libSDL2.a and libSDL2main.a, you have to add both 
+to your XCode project. These libraries contain three architectures in them,
+armv6 for legacy devices, armv7, and i386 (for the simulator).
+By default, iosbuild.sh will autodetect the SDK version you have installed using 
+xcodebuild -showsdks, and build for iOS >= 3.0, you can override this behaviour 
+by setting the MIN_OS_VERSION variable, ie:
+
+MIN_OS_VERSION=4.2 ./iosbuild.sh
+
+==============================================================================
+Using the Simple DirectMedia Layer for iOS
+==============================================================================
+
+FIXME: This needs to be updated for the latest methods
+
+Here is the easiest method:
+1.  Build the SDL library (libSDL2.a) and the iPhone SDL Application template.
+2.  Install the iPhone SDL Application template by copying it to one of Xcode's template directories.  I recommend creating a directory called "SDL" in "/Developer/Platforms/iOS.platform/Developer/Library/Xcode/Project Templates/" and placing it there.
+3.  Start a new project using the template.  The project should be immediately ready for use with SDL.
+
+Here is a more manual method:
+1.  Create a new iOS view based application.
+2.  Build the SDL static library (libSDL2.a) for iOS and include them in your project.  Xcode will ignore the library that is not currently of the correct architecture, hence your app will work both on iOS and in the iOS Simulator.
+3.  Include the SDL header files in your project.
+4.  Remove the ApplicationDelegate.h and ApplicationDelegate.m files -- SDL for iOS provides its own UIApplicationDelegate.  Remove MainWindow.xib -- SDL for iOS produces its user interface programmatically.
+5.  Delete the contents of main.m and program your app as a regular SDL program instead.  You may replace main.m with your own main.c, but you must tell Xcode not to use the project prefix file, as it includes Objective-C code.
+
+==============================================================================
+Notes -- Retina / High-DPI and window sizes
+==============================================================================
+
+Window and display mode sizes in SDL are in "screen coordinates" (or "points",
+in Apple's terminology) rather than in pixels. On iOS this means that a window
+created on an iPhone 6 will have a size in screen coordinates of 375 x 667,
+rather than a size in pixels of 750 x 1334. All iOS apps are expected to
+size their content based on screen coordinates / points rather than pixels,
+as this allows different iOS devices to have different pixel densities
+(Retina versus non-Retina screens, etc.) without apps caring too much.
+
+By default SDL will not use the full pixel density of the screen on
+Retina/high-dpi capable devices. Use the SDL_WINDOW_ALLOW_HIGHDPI flag when
+creating your window to enable high-dpi support.
+
+When high-dpi support is enabled, SDL_GetWindowSize() and display mode sizes
+will still be in "screen coordinates" rather than pixels, but the window will
+have a much greater pixel density when the device supports it, and the
+SDL_GL_GetDrawableSize() or SDL_GetRendererOutputSize() functions (depending on
+whether raw OpenGL or the SDL_Render API is used) can be queried to determine
+the size in pixels of the drawable screen framebuffer.
+
+Some OpenGL ES functions such as glViewport expect sizes in pixels rather than
+sizes in screen coordinates. When doing 2D rendering with OpenGL ES, an
+orthographic projection matrix using the size in screen coordinates
+(SDL_GetWindowSize()) can be used in order to display content at the same scale
+no matter whether a Retina device is used or not.
+
+==============================================================================
+Notes -- Application events
+==============================================================================
+
+On iOS the application goes through a fixed life cycle and you will get
+notifications of state changes via application events. When these events
+are delivered you must handle them in an event callback because the OS may
+not give you any processing time after the events are delivered.
+
+e.g.
+
+    int HandleAppEvents(void *userdata, SDL_Event *event)
+    {
+        switch (event->type)
+        {
+        case SDL_APP_TERMINATING:
+            /* Terminate the app.
+               Shut everything down before returning from this function.
+            */
+            return 0;
+        case SDL_APP_LOWMEMORY:
+            /* You will get this when your app is paused and iOS wants more memory.
+               Release as much memory as possible.
+            */
+            return 0;
+        case SDL_APP_WILLENTERBACKGROUND:
+            /* Prepare your app to go into the background.  Stop loops, etc.
+               This gets called when the user hits the home button, or gets a call.
+            */
+            return 0;
+        case SDL_APP_DIDENTERBACKGROUND:
+            /* This will get called if the user accepted whatever sent your app to the background.
+               If the user got a phone call and canceled it, you'll instead get an SDL_APP_DIDENTERFOREGROUND event and restart your loops.
+               When you get this, you have 5 seconds to save all your state or the app will be terminated.
+               Your app is NOT active at this point.
+            */
+            return 0;
+        case SDL_APP_WILLENTERFOREGROUND:
+            /* This call happens when your app is coming back to the foreground.
+               Restore all your state here.
+            */
+            return 0;
+        case SDL_APP_DIDENTERFOREGROUND:
+            /* Restart your loops here.
+               Your app is interactive and getting CPU again.
+            */
+            return 0;
+        default:
+            /* No special processing, add it to the event queue */
+            return 1;
+        }
+    }
+    
+    int main(int argc, char *argv[])
+    {
+        SDL_SetEventFilter(HandleAppEvents, NULL);
+    
+        ... run your main loop
+    
+        return 0;
+    }
+
+    
+==============================================================================
+Notes -- Accelerometer as Joystick
+==============================================================================
+
+SDL for iPhone supports polling the built in accelerometer as a joystick device.  For an example on how to do this, see the accelerometer.c in the demos directory.
+
+The main thing to note when using the accelerometer with SDL is that while the iPhone natively reports accelerometer as floating point values in units of g-force, SDL_JoystickGetAxis() reports joystick values as signed integers.  Hence, in order to convert between the two, some clamping and scaling is necessary on the part of the iPhone SDL joystick driver.  To convert SDL_JoystickGetAxis() reported values BACK to units of g-force, simply multiply the values by SDL_IPHONE_MAX_GFORCE / 0x7FFF.
+
+==============================================================================
+Notes -- OpenGL ES
+==============================================================================
+
+Your SDL application for iOS uses OpenGL ES for video by default.
+
+OpenGL ES for iOS supports several display pixel formats, such as RGBA8 and RGB565, which provide a 32 bit and 16 bit color buffer respectively. By default, the implementation uses RGB565, but you may use RGBA8 by setting each color component to 8 bits in SDL_GL_SetAttribute().
+
+If your application doesn't use OpenGL's depth buffer, you may find significant performance improvement by setting SDL_GL_DEPTH_SIZE to 0.
+
+Finally, if your application completely redraws the screen each frame, you may find significant performance improvement by setting the attribute SDL_GL_RETAINED_BACKING to 0.
+
+OpenGL ES on iOS doesn't use the traditional system-framebuffer setup provided in other operating systems. Special care must be taken because of this:
+
+- The drawable Renderbuffer must be bound to the GL_RENDERBUFFER binding point when SDL_GL_SwapWindow() is called.
+- The drawable Framebuffer Object must be bound while rendering to the screen and when SDL_GL_SwapWindow() is called.
+- If multisample antialiasing (MSAA) is used and glReadPixels is used on the screen, the drawable framebuffer must be resolved to the MSAA resolve framebuffer (via glBlitFramebuffer or glResolveMultisampleFramebufferAPPLE), and the MSAA resolve framebuffer must be bound to the GL_READ_FRAMEBUFFER binding point, before glReadPixels is called.
+
+The above objects can be obtained via SDL_GetWindowWMInfo() (in SDL_syswm.h).
+
+==============================================================================
+Notes -- Keyboard
+==============================================================================
+
+The SDL keyboard API has been extended to support on-screen keyboards:
+
+void SDL_StartTextInput()
+	-- enables text events and reveals the onscreen keyboard.
+
+void SDL_StopTextInput()
+	-- disables text events and hides the onscreen keyboard.
+
+SDL_bool SDL_IsTextInputActive()
+	-- returns whether or not text events are enabled (and the onscreen keyboard is visible)
+
+
+==============================================================================
+Notes -- Reading and Writing files
+==============================================================================
+
+Each application installed on iPhone resides in a sandbox which includes its own Application Home directory.  Your application may not access files outside this directory.
+
+Once your application is installed its directory tree looks like:
+
+    MySDLApp Home/
+        MySDLApp.app
+        Documents/
+        Library/
+            Preferences/
+        tmp/
+
+When your SDL based iPhone application starts up, it sets the working directory to the main bundle (MySDLApp Home/MySDLApp.app), where your application resources are stored.  You cannot write to this directory.  Instead, I advise you to write document files to "../Documents/" and preferences to "../Library/Preferences".  
+
+More information on this subject is available here:
+http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html
+
+==============================================================================
+Notes -- iPhone SDL limitations
+==============================================================================
+
+Windows:
+	Full-size, single window applications only.  You cannot create multi-window SDL applications for iPhone OS.  The application window will fill the display, though you have the option of turning on or off the menu-bar (pass SDL_CreateWindow() the flag SDL_WINDOW_BORDERLESS).
+
+Textures:
+	The optimal texture formats on iOS are SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, and SDL_PIXELFORMAT_RGB24 pixel formats.
+
+Loading Shared Objects:
+	This is disabled by default since it seems to break the terms of the iOS SDK agreement for iOS versions prior to iOS 8. It can be re-enabled in SDL_config_iphoneos.h.
+
+==============================================================================
+Game Center 
+==============================================================================
+
+Game Center integration might require that you break up your main loop in order to yield control back to the system. In other words, instead of running an endless main loop, you run each frame in a callback function, using:
+
+    int SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
+
+This will set up the given function to be called back on the animation callback, and then you have to return from main() to let the Cocoa event loop run.
+
+e.g.
+
+    extern "C"
+    void ShowFrame(void*)
+    {
+        ... do event handling, frame logic and rendering ...
+    }
+    
+    int main(int argc, char *argv[])
+    {
+        ... initialize game ...
+    
+    #if __IPHONEOS__
+        // Initialize the Game Center for scoring and matchmaking
+        InitGameCenter();
+    
+        // Set up the game to run in the window animation callback on iOS
+        // so that Game Center and so forth works correctly.
+        SDL_iPhoneSetAnimationCallback(window, 1, ShowFrame, NULL);
+    #else
+        while ( running ) {
+            ShowFrame(0);
+            DelayFrame();
+        }
+    #endif
+        return 0;
+    }
+
+==============================================================================
+Deploying to older versions of iOS
+==============================================================================
+
+SDL supports deploying to older versions of iOS than are supported by the latest version of Xcode, all the way back to iOS 6.1
+
+In order to do that you need to download an older version of Xcode:
+https://developer.apple.com/download/more/?name=Xcode
+
+Open the package contents of the older Xcode and your newer version of Xcode and copy over the folders in Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
+
+Then open the file Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist and add the versions of iOS you want to deploy to the key Root/DefaultProperties/DEPLOYMENT_TARGET_SUGGESTED_VALUES
+
+Open your project and set your deployment target to the desired version of iOS
+
+Finally, remove GameController from the list of frameworks linked by your application and edit the build settings for "Other Linker Flags" and add -weak_framework GameController
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-linux.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-linux.md
new file mode 100644
index 0000000..fdc06a0
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-linux.md
@@ -0,0 +1,90 @@
+Linux
+================================================================================
+
+By default SDL will only link against glibc, the rest of the features will be
+enabled dynamically at runtime depending on the available features on the target
+system. So, for example if you built SDL with Xinerama support and the target
+system does not have the Xinerama libraries installed, it will be disabled
+at runtime, and you won't get a missing library error, at least with the 
+default configuration parameters.
+
+
+================================================================================
+Build Dependencies
+================================================================================
+    
+Ubuntu 13.04, all available features enabled:
+
+sudo apt-get install build-essential mercurial make cmake autoconf automake \
+libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev \
+libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev \
+libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev \
+libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev \
+fcitx-libs-dev libsamplerate0-dev libsndio-dev
+
+Ubuntu 16.04+ can also add "libwayland-dev libxkbcommon-dev wayland-protocols"
+to that command line for Wayland support.
+
+Ubuntu 16.10 can also add "libmirclient-dev libxkbcommon-dev" to that command
+line for Mir support.
+
+NOTES:
+- This includes all the audio targets except arts, because Ubuntu pulled the 
+  artsc0-dev package, but in theory SDL still supports it.
+- libsamplerate0-dev lets SDL optionally link to libresamplerate at runtime
+  for higher-quality audio resampling. SDL will work without it if the library
+  is missing, so it's safe to build in support even if the end user doesn't
+  have this library installed.
+- DirectFB isn't included because the configure script (currently) fails to find
+  it at all. You can do "sudo apt-get install libdirectfb-dev" and fix the 
+  configure script to include DirectFB support. Send patches.  :)
+
+
+================================================================================
+Joystick does not work
+================================================================================
+
+If you compiled or are using a version of SDL with udev support (and you should!)
+there's a few issues that may cause SDL to fail to detect your joystick. To
+debug this, start by installing the evtest utility. On Ubuntu/Debian:
+
+    sudo apt-get install evtest
+    
+Then run:
+    
+    sudo evtest
+    
+You'll hopefully see your joystick listed along with a name like "/dev/input/eventXX"
+Now run:
+    
+    cat /dev/input/event/XX
+
+If you get a permission error, you need to set a udev rule to change the mode of
+your device (see below)    
+    
+Also, try:
+    
+    sudo udevadm info --query=all --name=input/eventXX
+    
+If you see a line stating ID_INPUT_JOYSTICK=1, great, if you don't see it,
+you need to set up an udev rule to force this variable.
+
+A combined rule for the Saitek Pro Flight Rudder Pedals to fix both issues looks 
+like:
+    
+   SUBSYSTEM=="input", ATTRS{idProduct}=="0763", ATTRS{idVendor}=="06a3", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
+   SUBSYSTEM=="input", ATTRS{idProduct}=="0764", ATTRS{idVendor}=="06a3", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
+   
+You can set up similar rules for your device by changing the values listed in
+idProduct and idVendor. To obtain these values, try:
+    
+    sudo udevadm info -a --name=input/eventXX | grep idVendor
+    sudo udevadm info -a --name=input/eventXX | grep idProduct
+    
+If multiple values come up for each of these, the one you want is the first one of each.    
+
+On other systems which ship with an older udev (such as CentOS), you may need
+to set up a rule such as:
+    
+    SUBSYSTEM=="input", ENV{ID_CLASS}=="joystick", ENV{ID_INPUT_JOYSTICK}="1"
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-macosx.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-macosx.md
new file mode 100644
index 0000000..15ab39e
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-macosx.md
@@ -0,0 +1,240 @@
+Mac OS X
+==============================================================================
+
+These instructions are for people using Apple's Mac OS X (pronounced
+"ten").
+
+From the developer's point of view, OS X is a sort of hybrid Mac and
+Unix system, and you have the option of using either traditional
+command line tools or Apple's IDE Xcode.
+
+Command Line Build
+==================
+
+To build SDL using the command line, use the standard configure and make
+process:
+
+    ./configure
+    make
+    sudo make install
+
+You can also build SDL as a Universal library (a single binary for both
+32-bit and 64-bit Intel architectures), on Mac OS X 10.7 and newer, by using
+the gcc-fat.sh script in build-scripts:
+
+    mkdir mybuild
+    cd mybuild
+    CC=$PWD/../build-scripts/gcc-fat.sh CXX=$PWD/../build-scripts/g++-fat.sh ../configure
+    make
+    sudo make install
+
+This script builds SDL with 10.5 ABI compatibility on i386 and 10.6
+ABI compatibility on x86_64 architectures.  For best compatibility you
+should compile your application the same way.
+
+Please note that building SDL requires at least Xcode 4.6 and the 10.7 SDK
+(even if you target back to 10.5 systems). PowerPC support for Mac OS X has
+been officially dropped as of SDL 2.0.2.
+
+To use the library once it's built, you essential have two possibilities:
+use the traditional autoconf/automake/make method, or use Xcode.
+
+==============================================================================
+Caveats for using SDL with Mac OS X
+==============================================================================
+
+Some things you have to be aware of when using SDL on Mac OS X:
+
+- If you register your own NSApplicationDelegate (using [NSApp setDelegate:]),
+  SDL will not register its own. This means that SDL will not terminate using
+  SDL_Quit if it receives a termination request, it will terminate like a 
+  normal app, and it will not send a SDL_DROPFILE when you request to open a
+  file with the app. To solve these issues, put the following code in your 
+  NSApplicationDelegate implementation:
+
+
+    - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
+    {
+        if (SDL_GetEventState(SDL_QUIT) == SDL_ENABLE) {
+            SDL_Event event;
+            event.type = SDL_QUIT;
+            SDL_PushEvent(&event);
+        }
+    
+        return NSTerminateCancel;
+    }
+    
+    - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
+    {
+        if (SDL_GetEventState(SDL_DROPFILE) == SDL_ENABLE) {
+            SDL_Event event;
+            event.type = SDL_DROPFILE;
+            event.drop.file = SDL_strdup([filename UTF8String]);
+            return (SDL_PushEvent(&event) > 0);
+        }
+    
+        return NO;
+    }
+
+==============================================================================
+Using the Simple DirectMedia Layer with a traditional Makefile
+==============================================================================
+
+An existing autoconf/automake build system for your SDL app has good chances
+to work almost unchanged on OS X. However, to produce a "real" Mac OS X binary
+that you can distribute to users, you need to put the generated binary into a
+so called "bundle", which basically is a fancy folder with a name like
+"MyCoolGame.app".
+
+To get this build automatically, add something like the following rule to
+your Makefile.am:
+
+    bundle_contents = APP_NAME.app/Contents
+    APP_NAME_bundle: EXE_NAME
+    	mkdir -p $(bundle_contents)/MacOS
+    	mkdir -p $(bundle_contents)/Resources
+    	echo "APPL????" > $(bundle_contents)/PkgInfo
+    	$(INSTALL_PROGRAM) $< $(bundle_contents)/MacOS/
+
+You should replace EXE_NAME with the name of the executable. APP_NAME is what
+will be visible to the user in the Finder. Usually it will be the same
+as EXE_NAME but capitalized. E.g. if EXE_NAME is "testgame" then APP_NAME 
+usually is "TestGame". You might also want to use `@PACKAGE@` to use the package
+name as specified in your configure.in file.
+
+If your project builds more than one application, you will have to do a bit
+more. For each of your target applications, you need a separate rule.
+
+If you want the created bundles to be installed, you may want to add this
+rule to your Makefile.am:
+
+    install-exec-hook: APP_NAME_bundle
+    	rm -rf $(DESTDIR)$(prefix)/Applications/APP_NAME.app
+    	mkdir -p $(DESTDIR)$(prefix)/Applications/
+    	cp -r $< /$(DESTDIR)$(prefix)Applications/
+
+This rule takes the Bundle created by the rule from step 3 and installs them
+into "$(DESTDIR)$(prefix)/Applications/".
+
+Again, if you want to install multiple applications, you will have to augment
+the make rule accordingly.
+
+
+But beware! That is only part of the story! With the above, you end up with
+a bare bone .app bundle, which is double clickable from the Finder. But
+there are some more things you should do before shipping your product...
+
+1) The bundle right now probably is dynamically linked against SDL. That 
+   means that when you copy it to another computer, *it will not run*,
+   unless you also install SDL on that other computer. A good solution
+   for this dilemma is to static link against SDL. On OS X, you can
+   achieve that by linking against the libraries listed by
+
+       sdl-config --static-libs
+
+   instead of those listed by
+
+       sdl-config --libs
+
+   Depending on how exactly SDL is integrated into your build systems, the
+   way to achieve that varies, so I won't describe it here in detail
+
+2) Add an 'Info.plist' to your application. That is a special XML file which
+   contains some meta-information about your application (like some copyright
+   information, the version of your app, the name of an optional icon file,
+   and other things). Part of that information is displayed by the Finder
+   when you click on the .app, or if you look at the "Get Info" window.
+   More information about Info.plist files can be found on Apple's homepage.
+
+
+As a final remark, let me add that I use some of the techniques (and some
+variations of them) in Exult and ScummVM; both are available in source on
+the net, so feel free to take a peek at them for inspiration!
+
+
+==============================================================================
+Using the Simple DirectMedia Layer with Xcode
+==============================================================================
+
+These instructions are for using Apple's Xcode IDE to build SDL applications.
+
+- First steps
+
+The first thing to do is to unpack the Xcode.tar.gz archive in the
+top level SDL directory (where the Xcode.tar.gz archive resides).
+Because Stuffit Expander will unpack the archive into a subdirectory,
+you should unpack the archive manually from the command line:
+
+    cd [path_to_SDL_source]
+    tar zxf Xcode.tar.gz
+
+This will create a new folder called Xcode, which you can browse
+normally from the Finder.
+
+- Building the Framework
+
+The SDL Library is packaged as a framework bundle, an organized
+relocatable folder hierarchy of executable code, interface headers,
+and additional resources. For practical purposes, you can think of a 
+framework as a more user and system-friendly shared library, whose library
+file behaves more or less like a standard UNIX shared library.
+
+To build the framework, simply open the framework project and build it. 
+By default, the framework bundle "SDL.framework" is installed in 
+/Library/Frameworks. Therefore, the testers and project stationary expect
+it to be located there. However, it will function the same in any of the
+following locations:
+
+    ~/Library/Frameworks
+    /Local/Library/Frameworks
+    /System/Library/Frameworks
+
+- Build Options
+    There are two "Build Styles" (See the "Targets" tab) for SDL.
+    "Deployment" should be used if you aren't tweaking the SDL library.
+    "Development" should be used to debug SDL apps or the library itself.
+
+- Building the Testers
+    Open the SDLTest project and build away!
+
+- Using the Project Stationary
+    Copy the stationary to the indicated folders to access it from
+    the "New Project" and "Add target" menus. What could be easier?
+
+- Setting up a new project by hand
+    Some of you won't want to use the Stationary so I'll give some tips:
+    * Create a new "Cocoa Application"
+    * Add src/main/macosx/SDLMain.m , .h and .nib to your project
+    * Remove "main.c" from your project
+    * Remove "MainMenu.nib" from your project
+    * Add "$(HOME)/Library/Frameworks/SDL.framework/Headers" to include path
+    * Add "$(HOME)/Library/Frameworks" to the frameworks search path
+    * Add "-framework SDL -framework Foundation -framework AppKit" to "OTHER_LDFLAGS"
+    * Set the "Main Nib File" under "Application Settings" to "SDLMain.nib"
+    * Add your files
+    * Clean and build
+
+- Building from command line
+    Use pbxbuild in the same directory as your .pbproj file
+
+- Running your app
+    You can send command line args to your app by either invoking it from
+    the command line (in *.app/Contents/MacOS) or by entering them in the
+    "Executables" panel of the target settings.
+    
+- Implementation Notes
+    Some things that may be of interest about how it all works...
+    * Working directory
+        As defined in the SDL_main.m file, the working directory of your SDL app
+        is by default set to its parent. You may wish to change this to better
+        suit your needs.
+    * You have a Cocoa App!
+        Your SDL app is essentially a Cocoa application. When your app
+        starts up and the libraries finish loading, a Cocoa procedure is called,
+        which sets up the working directory and calls your main() method.
+        You are free to modify your Cocoa app with generally no consequence 
+        to SDL. You cannot, however, easily change the SDL window itself.
+        Functionality may be added in the future to help this.
+
+
+Known bugs are listed in the file "BUGS.txt".
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-nacl.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-nacl.md
new file mode 100644
index 0000000..53ada33
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-nacl.md
@@ -0,0 +1,103 @@
+Native Client
+================================================================================
+
+Requirements: 
+
+* Native Client SDK (https://developer.chrome.com/native-client), 
+  (tested with Pepper version 33 or higher).
+
+The SDL backend for Chrome's Native Client has been tested only with the PNaCl
+toolchain, which generates binaries designed to run on ARM and x86_32/64 
+platforms. This does not mean it won't work with the other toolchains!
+
+================================================================================
+Building SDL for NaCl
+================================================================================
+
+Set up the right environment variables (see naclbuild.sh), then configure SDL with:
+
+    configure --host=pnacl --prefix some/install/destination
+    
+Then "make". 
+
+As an example of how to create a deployable app a Makefile project is provided 
+in test/nacl/Makefile, which includes some monkey patching of the common.mk file 
+provided by NaCl, without which linking properly to SDL won't work (the search 
+path can't be modified externally, so the linker won't find SDL's binaries unless 
+you dump them into the SDK path, which is inconvenient).
+Also provided in test/nacl is the required support file, such as index.html, 
+manifest.json, etc.
+SDL apps for NaCl run on a worker thread using the ppapi_simple infrastructure.
+This allows for blocking calls on all the relevant systems (OpenGL ES, filesystem),
+hiding the asynchronous nature of the browser behind the scenes...which is not the
+same as making it disappear!
+
+
+================================================================================
+Running tests
+================================================================================
+
+Due to the nature of NaCl programs, building and running SDL tests is not as
+straightforward as one would hope. The script naclbuild.sh in build-scripts 
+automates the process and should serve as a guide for users of SDL trying to build 
+their own applications.
+
+Basic usage:
+    
+    ./naclbuild.sh path/to/pepper/toolchain (i.e. ~/naclsdk/pepper_35)
+    
+This will build testgles2.c by default.
+
+If you want to build a different test, for example testrendercopyex.c:
+    
+    SOURCES=~/sdl/SDL/test/testrendercopyex.c ./naclbuild.sh ~/naclsdk/pepper_35
+    
+Once the build finishes, you have to serve the contents with a web server (the
+script will give you instructions on how to do that with Python).
+
+================================================================================
+RWops and nacl_io
+================================================================================
+
+SDL_RWops work transparently with nacl_io. Two functions control the mount points:
+    
+    int mount(const char* source, const char* target, 
+                      const char* filesystemtype, 
+                      unsigned long mountflags, const void *data);
+    int umount(const char *target);
+    
+    For convenience, SDL will by default mount an httpfs tree at / before calling 
+the app's main function. Such setting can be overridden by calling:
+    
+    umount("/");
+
+And then mounting a different filesystem at /
+
+It's important to consider that the asynchronous nature of file operations on a
+browser is hidden from the application, effectively providing the developer with
+a set of blocking file operations just like you get in a regular desktop 
+environment, which eases the job of porting to Native Client, but also introduces 
+a set of challenges of its own, in particular when big file sizes and slow 
+connections are involved.
+
+For more information on how nacl_io and mount points work, see:
+    
+    https://developer.chrome.com/native-client/devguide/coding/nacl_io
+    https://src.chromium.org/chrome/trunk/src/native_client_sdk/src/libraries/nacl_io/nacl_io.h
+
+To be able to save into the directory "/save/" (like backup of game) :
+
+    mount("", "/save", "html5fs", 0, "type=PERSISTENT");
+
+And add to manifest.json :
+
+    "permissions": [
+        "unlimitedStorage"
+    ]
+
+================================================================================
+TODO - Known Issues
+================================================================================
+* Testing of all systems with a real application (something other than SDL's tests)
+* Key events don't seem to work properly
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-pandora.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-pandora.md
new file mode 100644
index 0000000..a027763
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-pandora.md
@@ -0,0 +1,17 @@
+Pandora 
+=====================================================================
+
+( http://openpandora.org/ )
+- A pandora specific video driver was written to allow SDL 2.0 with OpenGL ES
+support to work on the pandora under the framebuffer. This driver do not have
+input support for now, so if you use it you will have to add your own control code.
+The video driver name is "pandora" so if you have problem running it from
+the framebuffer, try to set the following variable before starting your application :
+"export SDL_VIDEODRIVER=pandora"
+
+- OpenGL ES support was added to the x11 driver, so it's working like the normal
+x11 driver one with OpenGLX support, with SDL input event's etc..
+
+
+David Carré (Cpasjuste)
+cpasjuste@gmail.com
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-platforms.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-platforms.md
new file mode 100644
index 0000000..711557d
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-platforms.md
@@ -0,0 +1,8 @@
+Platforms
+=========
+
+We maintain the list of supported platforms on our wiki now, and how to
+build and install SDL for those platforms:
+
+    https://wiki.libsdl.org/Installation
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-porting.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-porting.md
new file mode 100644
index 0000000..86243f6
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-porting.md
@@ -0,0 +1,68 @@
+Porting
+=======
+
+* Porting To A New Platform
+
+  The first thing you have to do when porting to a new platform, is look at
+include/SDL_platform.h and create an entry there for your operating system.
+The standard format is "__PLATFORM__", where PLATFORM is the name of the OS.
+Ideally SDL_platform.h will be able to auto-detect the system it's building
+on based on C preprocessor symbols.
+
+There are two basic ways of building SDL at the moment:
+
+1. The "UNIX" way:  ./configure; make; make install
+
+   If you have a GNUish system, then you might try this.  Edit configure.in,
+   take a look at the large section labelled:
+
+	"Set up the configuration based on the host platform!"
+
+   Add a section for your platform, and then re-run autogen.sh and build!
+
+2. Using an IDE:
+
+   If you're using an IDE or other non-configure build system, you'll probably
+   want to create a custom SDL_config.h for your platform.  Edit SDL_config.h,
+   add a section for your platform, and create a custom SDL_config_{platform}.h,
+   based on SDL_config_minimal.h and SDL_config.h.in
+
+   Add the top level include directory to the header search path, and then add
+   the following sources to the project:
+
+	src/*.c
+	src/atomic/*.c
+	src/audio/*.c
+	src/cpuinfo/*.c
+	src/events/*.c
+	src/file/*.c
+	src/haptic/*.c
+	src/joystick/*.c
+	src/power/*.c
+	src/render/*.c
+	src/render/software/*.c
+	src/stdlib/*.c
+	src/thread/*.c
+	src/timer/*.c
+	src/video/*.c
+	src/audio/disk/*.c
+	src/audio/dummy/*.c
+	src/filesystem/dummy/*.c
+	src/video/dummy/*.c
+	src/haptic/dummy/*.c
+	src/joystick/dummy/*.c
+	src/main/dummy/*.c
+	src/thread/generic/*.c
+	src/timer/dummy/*.c
+	src/loadso/dummy/*.c
+
+
+Once you have a working library without any drivers, you can go back to each
+of the major subsystems and start implementing drivers for your platform.
+
+If you have any questions, don't hesitate to ask on the SDL mailing list:
+	http://www.libsdl.org/mailing-list.php
+
+Enjoy!
+	Sam Lantinga				(slouken@libsdl.org)
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-psp.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-psp.md
new file mode 100644
index 0000000..e891136
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-psp.md
@@ -0,0 +1,19 @@
+PSP
+======
+SDL port for the Sony PSP contributed by 
+   Captian Lex 
+
+Credit to
+   Marcus R.Brown,Jim Paris,Matthew H for the original SDL 1.2 for PSP
+   Geecko for his PSP GU lib "Glib2d"
+
+Building
+--------
+To build for the PSP, make sure psp-config is in the path and run:
+   make -f Makefile.psp
+
+
+
+To Do
+------
+PSP Screen Keyboard
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-raspberrypi.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-raspberrypi.md
new file mode 100644
index 0000000..fbcffa1
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-raspberrypi.md
@@ -0,0 +1,178 @@
+Raspberry Pi
+================================================================================
+
+Requirements:
+
+Raspbian (other Linux distros may work as well).
+
+================================================================================
+ Features
+================================================================================
+
+* Works without X11
+* Hardware accelerated OpenGL ES 2.x
+* Sound via ALSA
+* Input (mouse/keyboard/joystick) via EVDEV
+* Hotplugging of input devices via UDEV
+
+
+================================================================================
+ Raspbian Build Dependencies
+================================================================================
+
+sudo apt-get install libudev-dev libasound2-dev libdbus-1-dev
+
+You also need the VideoCore binary stuff that ships in /opt/vc for EGL and 
+OpenGL ES 2.x, it usually comes pre-installed, but in any case:
+    
+sudo apt-get install libraspberrypi0 libraspberrypi-bin libraspberrypi-dev
+
+================================================================================
+ Cross compiling from x86 Linux
+================================================================================
+
+To cross compile SDL for Raspbian from your desktop machine, you'll need a
+Raspbian system root and the cross compilation tools. We'll assume these tools
+will be placed in /opt/rpi-tools
+
+    sudo git clone --depth 1 https://github.com/raspberrypi/tools /opt/rpi-tools
+
+You'll also need a Raspbian binary image.
+Get it from: http://downloads.raspberrypi.org/raspbian_latest 
+After unzipping, you'll get file with a name like: "<date>-wheezy-raspbian.img"
+Let's assume the sysroot will be built in /opt/rpi-sysroot.
+
+    export SYSROOT=/opt/rpi-sysroot
+    sudo kpartx -a -v <path_to_raspbian_image>.img
+    sudo mount -o loop /dev/mapper/loop0p2 /mnt
+    sudo cp -r /mnt $SYSROOT
+    sudo apt-get install qemu binfmt-support qemu-user-static
+    sudo cp /usr/bin/qemu-arm-static $SYSROOT/usr/bin
+    sudo mount --bind /dev $SYSROOT/dev
+    sudo mount --bind /proc $SYSROOT/proc
+    sudo mount --bind /sys $SYSROOT/sys
+
+Now, before chrooting into the ARM sysroot, you'll need to apply a workaround,
+edit $SYSROOT/etc/ld.so.preload and comment out all lines in it.
+
+    sudo chroot $SYSROOT
+    apt-get install libudev-dev libasound2-dev libdbus-1-dev libraspberrypi0 libraspberrypi-bin libraspberrypi-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev libxss-dev
+    exit
+    sudo umount $SYSROOT/dev
+    sudo umount $SYSROOT/proc
+    sudo umount $SYSROOT/sys
+    sudo umount /mnt
+    
+There's one more fix required, as the libdl.so symlink uses an absolute path 
+which doesn't quite work in our setup.
+
+    sudo rm -rf $SYSROOT/usr/lib/arm-linux-gnueabihf/libdl.so
+    sudo ln -s ../../../lib/arm-linux-gnueabihf/libdl.so.2 $SYSROOT/usr/lib/arm-linux-gnueabihf/libdl.so
+
+The final step is compiling SDL itself.
+
+    export CC="/opt/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc --sysroot=$SYSROOT -I$SYSROOT/opt/vc/include -I$SYSROOT/usr/include -I$SYSROOT/opt/vc/include/interface/vcos/pthreads -I$SYSROOT/opt/vc/include/interface/vmcs_host/linux"
+    cd <SDL SOURCE>
+    mkdir -p build;cd build
+    LDFLAGS="-L$SYSROOT/opt/vc/lib" ../configure --with-sysroot=$SYSROOT --host=arm-raspberry-linux-gnueabihf --prefix=$PWD/rpi-sdl2-installed --disable-pulseaudio --disable-esd
+    make
+    make install
+
+To be able to deploy this to /usr/local in the Raspbian system you need to fix up a few paths:
+    
+    perl -w -pi -e "s#$PWD/rpi-sdl2-installed#/usr/local#g;" ./rpi-sdl2-installed/lib/libSDL2.la ./rpi-sdl2-installed/lib/pkgconfig/sdl2.pc ./rpi-sdl2-installed/bin/sdl2-config
+    
+================================================================================
+ Apps don't work or poor video/audio performance
+================================================================================
+
+If you get sound problems, buffer underruns, etc, run "sudo rpi-update" to 
+update the RPi's firmware. Note that doing so will fix these problems, but it
+will also render the CMA - Dynamic Memory Split functionality useless.
+
+Also, by default the Raspbian distro configures the GPU RAM at 64MB, this is too
+low in general, specially if a 1080p TV is hooked up.
+
+See here how to configure this setting: http://elinux.org/RPiconfig
+
+Using a fixed gpu_mem=128 is the best option (specially if you updated the 
+firmware, using CMA probably won't work, at least it's the current case).
+
+================================================================================
+ No input
+================================================================================
+
+Make sure you belong to the "input" group.
+
+    sudo usermod -aG input `whoami`
+
+================================================================================
+ No HDMI Audio
+================================================================================
+
+If you notice that ALSA works but there's no audio over HDMI, try adding:
+    
+    hdmi_drive=2
+    
+to your config.txt file and reboot.
+
+Reference: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=5062
+
+================================================================================
+ Text Input API support
+================================================================================
+
+The Text Input API is supported, with translation of scan codes done via the
+kernel symbol tables. For this to work, SDL needs access to a valid console.
+If you notice there's no SDL_TEXTINPUT message being emitted, double check that
+your app has read access to one of the following:
+    
+* /proc/self/fd/0
+* /dev/tty
+* /dev/tty[0...6]
+* /dev/vc/0
+* /dev/console
+
+This is usually not a problem if you run from the physical terminal (as opposed
+to running from a pseudo terminal, such as via SSH). If running from a PTS, a 
+quick workaround is to run your app as root or add yourself to the tty group,
+then re-login to the system.
+
+    sudo usermod -aG tty `whoami`
+    
+The keyboard layout used by SDL is the same as the one the kernel uses.
+To configure the layout on Raspbian:
+    
+    sudo dpkg-reconfigure keyboard-configuration
+    
+To configure the locale, which controls which keys are interpreted as letters,
+this determining the CAPS LOCK behavior:
+
+    sudo dpkg-reconfigure locales
+
+================================================================================
+ OpenGL problems
+================================================================================
+
+If you have desktop OpenGL headers installed at build time in your RPi or cross 
+compilation environment, support for it will be built in. However, the chipset 
+does not actually have support for it, which causes issues in certain SDL apps 
+since the presence of OpenGL support supersedes the ES/ES2 variants.
+The workaround is to disable OpenGL at configuration time:
+
+    ./configure --disable-video-opengl
+
+Or if the application uses the Render functions, you can use the SDL_RENDER_DRIVER
+environment variable:
+
+    export SDL_RENDER_DRIVER=opengles2
+
+================================================================================
+ Notes
+================================================================================
+
+* When launching apps remotely (via SSH), SDL can prevent local keystrokes from
+  leaking into the console only if it has root privileges. Launching apps locally
+  does not suffer from this issue.
+  
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-touch.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-touch.md
new file mode 100644
index 0000000..09188b8
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-touch.md
@@ -0,0 +1,86 @@
+Touch
+===========================================================================
+System Specific Notes
+===========================================================================
+Linux:
+The linux touch system is currently based off event streams, and proc/bus/devices. The active user must be given permissions to read /dev/input/TOUCHDEVICE, where TOUCHDEVICE is the event stream for your device. Currently only Wacom tablets are supported. If you have an unsupported tablet contact me at jim.tla+sdl_touch@gmail.com and I will help you get support for it.
+
+Mac:
+The Mac and iPhone APIs are pretty. If your touch device supports them then you'll be fine. If it doesn't, then there isn't much we can do.
+
+iPhone: 
+Works out of box.
+
+Windows:
+Unfortunately there is no windows support as of yet. Support for Windows 7 is planned, but we currently have no way to test. If you have a Windows 7 WM_TOUCH supported device, and are willing to help test please contact me at jim.tla+sdl_touch@gmail.com
+
+===========================================================================
+Events
+===========================================================================
+SDL_FINGERDOWN:
+Sent when a finger (or stylus) is placed on a touch device.
+Fields:
+* event.tfinger.touchId  - the Id of the touch device.
+* event.tfinger.fingerId - the Id of the finger which just went down.
+* event.tfinger.x        - the x coordinate of the touch (0..1)
+* event.tfinger.y        - the y coordinate of the touch (0..1)
+* event.tfinger.pressure - the pressure of the touch (0..1)
+
+SDL_FINGERMOTION:
+Sent when a finger (or stylus) is moved on the touch device.
+Fields:
+Same as SDL_FINGERDOWN but with additional:
+* event.tfinger.dx       - change in x coordinate during this motion event.
+* event.tfinger.dy       - change in y coordinate during this motion event.
+
+SDL_FINGERUP:
+Sent when a finger (or stylus) is lifted from the touch device.
+Fields:
+Same as SDL_FINGERDOWN.
+
+
+===========================================================================
+Functions
+===========================================================================
+SDL provides the ability to access the underlying SDL_Finger structures.
+These structures should _never_ be modified.
+
+The following functions are included from SDL_touch.h
+
+To get a SDL_TouchID call SDL_GetTouchDevice(int index).
+This returns a SDL_TouchID.
+IMPORTANT: If the touch has been removed, or there is no touch with the given index, SDL_GetTouchDevice() will return 0. Be sure to check for this!
+
+The number of touch devices can be queried with SDL_GetNumTouchDevices().
+
+A SDL_TouchID may be used to get pointers to SDL_Finger.
+
+SDL_GetNumTouchFingers(touchID) may be used to get the number of fingers currently down on the device.
+
+The most common reason to access SDL_Finger is to query the fingers outside the event. In most cases accessing the fingers is using the event. This would be accomplished by code like the following:
+
+      float x = event.tfinger.x;
+      float y = event.tfinger.y;
+
+
+
+To get a SDL_Finger, call SDL_GetTouchFinger(SDL_TouchID touchID, int index), where touchID is a SDL_TouchID, and index is the requested finger.
+This returns a SDL_Finger *, or NULL if the finger does not exist, or has been removed.
+A SDL_Finger is guaranteed to be persistent for the duration of a touch, but it will be de-allocated as soon as the finger is removed. This occurs when the SDL_FINGERUP event is _added_ to the event queue, and thus _before_ the SDL_FINGERUP event is polled.
+As a result, be very careful to check for NULL return values.
+
+A SDL_Finger has the following fields:
+* x, y:
+	The current coordinates of the touch.
+* pressure:
+	The pressure of the touch.
+
+
+===========================================================================
+Notes
+===========================================================================
+For a complete example see test/testgesture.c
+
+Please direct questions/comments to:
+   jim.tla+sdl_touch@gmail.com
+   (original author, API was changed since)
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-wince.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-wince.md
new file mode 100644
index 0000000..d5fb64f
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-wince.md
@@ -0,0 +1,10 @@
+WinCE
+=====
+
+Windows CE is no longer supported by SDL.
+
+We have left the CE support in SDL 1.2 for those that must have it, and we
+have support for Windows Phone 8 and WinRT in SDL2, as of SDL 2.0.3.
+
+--ryan.
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-windows.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-windows.md
new file mode 100644
index 0000000..71f968e
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-windows.md
@@ -0,0 +1,45 @@
+Windows
+================================================================================
+
+================================================================================
+OpenGL ES 2.x support
+================================================================================
+
+SDL has support for OpenGL ES 2.x under Windows via two alternative 
+implementations. 
+The most straightforward method consists in running your app in a system with 
+a graphic card paired with a relatively recent (as of November of 2013) driver 
+which supports the WGL_EXT_create_context_es2_profile extension. Vendors known 
+to ship said extension on Windows currently include nVidia and Intel.
+
+The other method involves using the ANGLE library (https://code.google.com/p/angleproject/)
+If an OpenGL ES 2.x context is requested and no WGL_EXT_create_context_es2_profile
+extension is found, SDL will try to load the libEGL.dll library provided by
+ANGLE.
+To obtain the ANGLE binaries, you can either compile from source from
+https://chromium.googlesource.com/angle/angle or copy the relevant binaries from
+a recent Chrome/Chromium install for Windows. The files you need are:
+    
+    * libEGL.dll
+    * libGLESv2.dll
+    * d3dcompiler_46.dll (supports Windows Vista or later, better shader compiler)
+    or...
+    * d3dcompiler_43.dll (supports Windows XP or later)
+    
+If you compile ANGLE from source, you can configure it so it does not need the
+d3dcompiler_* DLL at all (for details on this, see their documentation). 
+However, by default SDL will try to preload the d3dcompiler_46.dll to
+comply with ANGLE's requirements. If you wish SDL to preload d3dcompiler_43.dll (to
+support Windows XP) or to skip this step at all, you can use the 
+SDL_HINT_VIDEO_WIN_D3DCOMPILER hint (see SDL_hints.h for more details).
+
+Known Bugs:
+    
+    * SDL_GL_SetSwapInterval is currently a no op when using ANGLE. It appears
+      that there's a bug in the library which prevents the window contents from
+      refreshing if this is set to anything other than the default value.
+     
+Vulkan Surface Support
+==============
+
+Support for creating Vulkan surfaces is configured on by default. To disable it change the value of `SDL_VIDEO_VULKAN` to 0 in `SDL_config_windows.h`. You must install the [Vulkan SDK](https://www.lunarg.com/vulkan-sdk/) in order to use Vulkan graphics in your application.
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-winrt.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-winrt.md
new file mode 100644
index 0000000..d04f710
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README-winrt.md
@@ -0,0 +1,544 @@
+WinRT
+=====
+
+This port allows SDL applications to run on Microsoft's platforms that require
+use of "Windows Runtime", aka. "WinRT", APIs.  Microsoft may, in some cases,
+refer to them as either "Windows Store", or for Windows 10, "UWP" apps.
+
+Some of the operating systems that include WinRT, are:
+
+* Windows 10, via its Universal Windows Platform (UWP) APIs
+* Windows 8.x
+* Windows RT 8.x (aka. Windows 8.x for ARM processors)
+* Windows Phone 8.x
+
+
+Requirements
+------------
+
+* Microsoft Visual C++ (aka Visual Studio), either 2017, 2015, 2013, or 2012
+  - Free, "Community" or "Express" editions may be used, so long as they
+    include  support for either "Windows Store" or "Windows Phone" apps.
+    "Express" versions marked as supporting "Windows Desktop" development
+    typically do not include support for creating WinRT apps, to note.
+    (The "Community" editions of Visual C++ do, however, support both
+    desktop/Win32 and WinRT development).
+  - Visual Studio 2017 can be used, however it is recommended that you install
+    the Visual C++ 2015 build tools.  These build tools can be installed
+    using VS 2017's installer.  Be sure to also install the workload for
+    "Universal Windows Platform development", its optional component, the
+    "C++ Universal Windows Platform tools", and for UWP / Windows 10
+    development, the "Windows 10 SDK (10.0.10240.0)".  Please note that
+    targeting UWP / Windows 10 apps from development machine(s) running
+    earlier versions of Windows, such as Windows 7, is not always supported
+    by Visual Studio, and you may get error(s) when attempting to do so.
+  - Visual C++ 2012 can only build apps that target versions 8.0 of Windows,
+    or  Windows Phone.  8.0-targeted apps will run on devices running 8.1
+    editions of Windows, however they will not be able to take advantage of
+    8.1-specific features.
+  - Visual C++ 2013 cannot create app projects that target Windows 8.0.
+    Visual C++ 2013 Update 4, can create app projects for Windows Phone 8.0,
+    Windows Phone 8.1, and Windows 8.1, but not Windows 8.0.  An optional
+    Visual Studio add-in, "Tools for Maintaining Store apps for Windows 8",
+    allows Visual C++ 2013 to load and build Windows 8.0 projects that were
+    created with Visual C++ 2012, so long as Visual C++ 2012 is installed
+    on the same machine.  More details on targeting different versions of
+    Windows can found at the following web pages:
+      - [Develop apps by using Visual Studio 2013](http://msdn.microsoft.com/en-us/library/windows/apps/br211384.aspx)
+      - [To add the Tools for Maintaining Store apps for Windows 8](http://msdn.microsoft.com/en-us/library/windows/apps/dn263114.aspx#AddMaintenanceTools)
+* A valid Microsoft account - This requirement is not imposed by SDL, but
+  rather by Microsoft's Visual C++ toolchain.  This is required to launch or 
+  debug apps.
+
+
+Status
+------
+
+Here is a rough list of what works, and what doesn't:
+
+* What works:
+  * compilation via Visual C++ 2012 through 2015
+  * compile-time platform detection for SDL programs.  The C/C++ #define,
+    `__WINRT__`, will be set to 1 (by SDL) when compiling for WinRT.
+  * GPU-accelerated 2D rendering, via SDL_Renderer.
+  * OpenGL ES 2, via the ANGLE library (included separately from SDL)
+  * software rendering, via either SDL_Surface (optionally in conjunction with
+    SDL_GetWindowSurface() and SDL_UpdateWindowSurface()) or via the
+    SDL_Renderer APIs
+  * threads
+  * timers (via SDL_GetTicks(), SDL_AddTimer(), SDL_GetPerformanceCounter(),
+    SDL_GetPerformanceFrequency(), etc.)
+  * file I/O via SDL_RWops
+  * mouse input  (unsupported on Windows Phone)
+  * audio, via SDL's WASAPI backend (if you want to record, your app must 
+    have "Microphone" capabilities enabled in its manifest, and the user must 
+    not have blocked access. Otherwise, capture devices will fail to work,
+    presenting as a device disconnect shortly after opening it.)
+  * .DLL file loading.  Libraries *MUST* be packaged inside applications.  Loading
+    anything outside of the app is not supported.
+  * system path retrieval via SDL's filesystem APIs
+  * game controllers.  Support is provided via the SDL_Joystick and
+    SDL_GameController APIs, and is backed by Microsoft's XInput API.  Please
+    note, however, that Windows limits game-controller support in UWP apps to,
+    "Xbox compatible controllers" (many controllers that work in Win32 apps,
+    do not work in UWP, due to restrictions in UWP itself.) 
+  * multi-touch input
+  * app events.  SDL_APP_WILLENTER* and SDL_APP_DIDENTER* events get sent out as
+    appropriate.
+  * window events
+  * using Direct3D 11.x APIs outside of SDL.  Non-XAML / Direct3D-only apps can
+    choose to render content directly via Direct3D, using SDL to manage the
+    internal WinRT window, as well as input and audio.  (Use
+    SDL_GetWindowWMInfo() to get the WinRT 'CoreWindow', and pass it into
+    IDXGIFactory2::CreateSwapChainForCoreWindow() as appropriate.)
+
+* What partially works:
+  * keyboard input.  Most of WinRT's documented virtual keys are supported, as
+    well as many keys with documented hardware scancodes.  Converting
+    SDL_Scancodes to or from SDL_Keycodes may not work, due to missing APIs
+    (MapVirtualKey()) in Microsoft's Windows Store / UWP APIs.
+  * SDLmain.  WinRT uses a different signature for each app's main() function.
+    SDL-based apps that use this port must compile in SDL_winrt_main_NonXAML.cpp
+    (in `SDL\src\main\winrt\`) directly in order for their C-style main()
+    functions to be called.
+
+* What doesn't work:
+  * compilation with anything other than Visual C++
+  * programmatically-created custom cursors.  These don't appear to be supported
+    by WinRT.  Different OS-provided cursors can, however, be created via
+    SDL_CreateSystemCursor() (unsupported on Windows Phone)
+  * SDL_WarpMouseInWindow() or SDL_WarpMouseGlobal().  This are not currently
+    supported by WinRT itself.
+  * joysticks and game controllers that either are not supported by
+    Microsoft's XInput API, or are not supported within UWP apps (many
+    controllers that work in Win32, do not work in UWP, due to restrictions in
+    UWP itself).
+  * turning off VSync when rendering on Windows Phone.  Attempts to turn VSync
+    off on Windows Phone result either in Direct3D not drawing anything, or it
+    forcing VSync back on.  As such, SDL_RENDERER_PRESENTVSYNC will always get
+    turned-on on Windows Phone.  This limitation is not present in non-Phone
+    WinRT (such as Windows 8.x), where turning off VSync appears to work.
+  * probably anything else that's not listed as supported
+
+
+
+Upgrade Notes
+-------------
+
+#### SDL_GetPrefPath() usage when upgrading WinRT apps from SDL 2.0.3
+
+SDL 2.0.4 fixes two bugs found in the WinRT version of SDL_GetPrefPath().
+The fixes may affect older, SDL 2.0.3-based apps' save data.  Please note
+that these changes only apply to SDL-based WinRT apps, and not to apps for
+any other platform.
+
+1. SDL_GetPrefPath() would return an invalid path, one in which the path's
+   directory had not been created.  Attempts to create files there
+   (via fopen(), for example), would fail, unless that directory was
+   explicitly created beforehand.
+
+2. SDL_GetPrefPath(), for non-WinPhone-based apps, would return a path inside
+   a WinRT 'Roaming' folder, the contents of which get automatically
+   synchronized across multiple devices.  This process can occur while an
+   application runs, and can cause existing save-data to be overwritten
+   at unexpected times, with data from other devices.  (Windows Phone apps
+   written with SDL 2.0.3 did not utilize a Roaming folder, due to API
+   restrictions in Windows Phone 8.0).
+
+
+SDL_GetPrefPath(), starting with SDL 2.0.4, addresses these by:
+
+1. making sure that SDL_GetPrefPath() returns a directory in which data
+   can be written to immediately, without first needing to create directories.
+
+2. basing SDL_GetPrefPath() off of a different, non-Roaming folder, the
+   contents of which do not automatically get synchronized across devices
+   (and which require less work to use safely, in terms of data integrity).
+
+Apps that wish to get their Roaming folder's path can do so either by using
+SDL_WinRTGetFSPathUTF8(), SDL_WinRTGetFSPathUNICODE() (which returns a
+UCS-2/wide-char string), or directly through the WinRT class,
+Windows.Storage.ApplicationData.
+
+
+
+Setup, High-Level Steps
+-----------------------
+
+The steps for setting up a project for an SDL/WinRT app looks like the
+following, at a high-level:
+
+1. create a new Visual C++ project using Microsoft's template for a,
+   "Direct3D App".
+2. remove most of the files from the project.
+3. make your app's project directly reference SDL/WinRT's own Visual C++
+   project file, via use of Visual C++'s "References" dialog.  This will setup
+   the linker, and will copy SDL's .dll files to your app's final output.
+4. adjust your app's build settings, at minimum, telling it where to find SDL's
+   header files.
+5. add files that contains a WinRT-appropriate main function, along with some
+   data to make sure mouse-cursor-hiding (via SDL_ShowCursor(SDL_DISABLE) calls)
+   work properly.
+6. add SDL-specific app code.
+7. build and run your app.
+
+
+Setup, Detailed Steps
+---------------------
+
+### 1. Create a new project ###
+
+Create a new project using one of Visual C++'s templates for a plain, non-XAML,
+"Direct3D App" (XAML support for SDL/WinRT is not yet ready for use).  If you
+don't see one of these templates, in Visual C++'s 'New Project' dialog, try
+using the textbox titled, 'Search Installed Templates' to look for one.
+
+
+### 2. Remove unneeded files from the project ###
+
+In the new project, delete any file that has one of the following extensions:
+
+- .cpp
+- .h
+- .hlsl
+
+When you are done, you should be left with a few files, each of which will be a
+necessary part of your app's project.  These files will consist of:
+
+- an .appxmanifest file, which contains metadata on your WinRT app.  This is
+  similar to an Info.plist file on iOS, or an AndroidManifest.xml on Android.
+- a few .png files, one of which is a splash screen (displayed when your app
+  launches), others are app icons.
+- a .pfx file, used for code signing purposes.
+
+
+### 3. Add references to SDL's project files ###
+
+SDL/WinRT can be built in multiple variations, spanning across three different
+CPU architectures (x86, x64, and ARM) and two different configurations
+(Debug and Release).  WinRT and Visual C++ do not currently provide a means
+for combining multiple variations of one library into a single file.
+Furthermore, it does not provide an easy means for copying pre-built .dll files
+into your app's final output (via Post-Build steps, for example).  It does,
+however, provide a system whereby an app can reference the MSVC projects of
+libraries such that, when the app is built:
+
+1. each library gets built for the appropriate CPU architecture(s) and WinRT
+   platform(s).
+2. each library's output, such as .dll files, get copied to the app's build 
+   output.
+
+To set this up for SDL/WinRT, you'll need to run through the following steps:
+
+1. open up the Solution Explorer inside Visual C++ (under the "View" menu, then
+   "Solution Explorer")
+2. right click on your app's solution.
+3. navigate to "Add", then to "Existing Project..."
+4. find SDL/WinRT's Visual C++ project file and open it.  Different project
+   files exist for different WinRT platforms.  All of them are in SDL's
+   source distribution, in the following directories:
+    * `VisualC-WinRT/UWP_VS2015/`        - for Windows 10 / UWP apps
+    * `VisualC-WinRT/WinPhone81_VS2013/` - for Windows Phone 8.1 apps
+    * `VisualC-WinRT/WinRT80_VS2012/`    - for Windows 8.0 apps
+    * `VisualC-WinRT/WinRT81_VS2013/`    - for Windows 8.1 apps
+5. once the project has been added, right-click on your app's project and
+   select, "References..."
+6. click on the button titled, "Add New Reference..."
+7. check the box next to SDL
+8. click OK to close the dialog
+9. SDL will now show up in the list of references.  Click OK to close that
+   dialog.
+
+Your project is now linked to SDL's project, insofar that when the app is
+built, SDL will be built as well, with its build output getting included with
+your app.
+
+
+### 4. Adjust Your App's Build Settings ###
+
+Some build settings need to be changed in your app's project.  This guide will
+outline the following:
+
+- making sure that the compiler knows where to find SDL's header files
+- **Optional for C++, but NECESSARY for compiling C code:** telling the
+  compiler not to use Microsoft's C++ extensions for WinRT development.
+- **Optional:** telling the compiler not generate errors due to missing
+  precompiled header files.
+
+To change these settings:
+
+1. right-click on the project
+2. choose "Properties"
+3. in the drop-down box next to "Configuration", choose, "All Configurations"
+4. in the drop-down box next to "Platform", choose, "All Platforms"
+5. in the left-hand list, expand the "C/C++" section
+6. select "General"
+7. edit the "Additional Include Directories" setting, and add a path to SDL's
+   "include" directory
+8. **Optional: to enable compilation of C code:** change the setting for
+   "Consume Windows Runtime Extension" from "Yes (/ZW)" to "No".  If you're 
+   working with a completely C++ based project, this step can usually be 
+   omitted.
+9. **Optional: to disable precompiled headers (which can produce 
+   'stdafx.h'-related build errors, if setup incorrectly:** in the left-hand 
+   list, select "Precompiled Headers", then change the setting for "Precompiled 
+   Header" from "Use (/Yu)" to "Not Using Precompiled Headers".
+10. close the dialog, saving settings, by clicking the "OK" button
+
+
+### 5. Add a WinRT-appropriate main function, and a blank-cursor image, to the app. ###
+
+A few files should be included directly in your app's MSVC project, specifically:
+1. a WinRT-appropriate main function (which is different than main() functions on
+   other platforms)
+2. a Win32-style cursor resource, used by SDL_ShowCursor() to hide the mouse cursor
+   (if and when the app needs to do so).  *If this cursor resource is not
+   included, mouse-position reporting may fail if and when the cursor is
+   hidden, due to possible bugs/design-oddities in Windows itself.*
+
+To include these files:
+
+1. right-click on your project (again, in Visual C++'s Solution Explorer), 
+   navigate to "Add", then choose "Existing Item...".
+2. navigate to the directory containing SDL's source code, then into its
+   subdirectory, 'src/main/winrt/'.  Select, then add, the following files:
+   - `SDL_winrt_main_NonXAML.cpp`
+   - `SDL2-WinRTResources.rc`
+   - `SDL2-WinRTResource_BlankCursor.cur`
+3. right-click on the file `SDL_winrt_main_NonXAML.cpp` (as listed in your
+   project), then click on "Properties...".
+4. in the drop-down box next to "Configuration", choose, "All Configurations"
+5. in the drop-down box next to "Platform", choose, "All Platforms"
+6. in the left-hand list, click on "C/C++"
+7. change the setting for "Consume Windows Runtime Extension" to "Yes (/ZW)".
+8. click the OK button.  This will close the dialog.
+
+
+**NOTE: C++/CX compilation is currently required in at least one file of your 
+app's project.  This is to make sure that Visual C++'s linker builds a 'Windows 
+Metadata' file (.winmd) for your app.  Not doing so can lead to build errors.**
+
+
+### 6. Add app code and assets ###
+
+At this point, you can add in SDL-specific source code.  Be sure to include a 
+C-style main function (ie: `int main(int argc, char *argv[])`).  From there you 
+should be able to create a single `SDL_Window` (WinRT apps can only have one 
+window, at present), as well as an `SDL_Renderer`.  Direct3D will be used to 
+draw content.  Events are received via SDL's usual event functions 
+(`SDL_PollEvent`, etc.)  If you have a set of existing source files and assets, 
+you can start adding them to the project now.  If not, or if you would like to 
+make sure that you're setup correctly, some short and simple sample code is 
+provided below.
+
+
+#### 6.A. ... when creating a new app ####
+
+If you are creating a new app (rather than porting an existing SDL-based app), 
+or if you would just like a simple app to test SDL/WinRT with before trying to 
+get existing code working, some working SDL/WinRT code is provided below.  To 
+set this up:
+
+1. right click on your app's project
+2. select Add, then New Item.  An "Add New Item" dialog will show up.
+3. from the left-hand list, choose "Visual C++"
+4. from the middle/main list, choose "C++ File (.cpp)"
+5. near the bottom of the dialog, next to "Name:", type in a name for your 
+source file, such as, "main.cpp".
+6. click on the Add button.  This will close the dialog, add the new file to 
+your project, and open the file in Visual C++'s text editor.
+7. Copy and paste the following code into the new file, then save it.
+
+
+    #include <SDL.h>
+    
+    int main(int argc, char **argv)
+    {
+        SDL_DisplayMode mode;
+        SDL_Window * window = NULL;
+        SDL_Renderer * renderer = NULL;
+        SDL_Event evt;
+    
+        if (SDL_Init(SDL_INIT_VIDEO) != 0) {
+            return 1;
+        }
+    
+        if (SDL_GetCurrentDisplayMode(0, &mode) != 0) {
+            return 1;
+        }
+    
+        if (SDL_CreateWindowAndRenderer(mode.w, mode.h, SDL_WINDOW_FULLSCREEN, &window, &renderer) != 0) {
+            return 1;
+        }
+    
+        while (1) {
+            while (SDL_PollEvent(&evt)) {
+            }
+    
+            SDL_SetRenderDrawColor(renderer, 0, 255, 0, 255);
+            SDL_RenderClear(renderer);
+            SDL_RenderPresent(renderer);
+        }
+    }
+
+
+#### 6.B. Adding code and assets ####
+
+If you have existing code and assets that you'd like to add, you should be able 
+to add them now.  The process for adding a set of files is as such.
+
+1. right click on the app's project
+2. select Add, then click on "New Item..."
+3. open any source, header, or asset files as appropriate.  Support for C and 
+C++ is available.
+
+Do note that WinRT only supports a subset of the APIs that are available to 
+Win32-based apps.  Many portions of the Win32 API and the C runtime are not 
+available.
+
+A list of unsupported C APIs can be found at 
+<http://msdn.microsoft.com/en-us/library/windows/apps/jj606124.aspx>
+
+General information on using the C runtime in WinRT can be found at 
+<https://msdn.microsoft.com/en-us/library/hh972425.aspx>
+
+A list of supported Win32 APIs for WinRT apps can be found at 
+<http://msdn.microsoft.com/en-us/library/windows/apps/br205757.aspx>.  To note, 
+the list of supported Win32 APIs for Windows Phone 8.0 is different.  
+That list can be found at 
+<http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662956(v=vs.105).aspx>
+
+
+### 7. Build and run your app ###
+
+Your app project should now be setup, and you should be ready to build your app.  
+To run it on the local machine, open the Debug menu and choose "Start 
+Debugging".  This will build your app, then run your app full-screen.  To switch 
+out of your app, press the Windows key.  Alternatively, you can choose to run 
+your app in a window.  To do this, before building and running your app, find 
+the drop-down menu in Visual C++'s toolbar that says, "Local Machine".  Expand 
+this by clicking on the arrow on the right side of the list, then click on 
+Simulator.  Once you do that, any time you build and run the app, the app will 
+launch in window, rather than full-screen.
+
+
+#### 7.A. Running apps on older, ARM-based, "Windows RT" devices ####
+
+**These instructions do not include Windows Phone, despite Windows Phone
+typically running on ARM processors.**  They are specifically for devices
+that use the "Windows RT" operating system, which was a modified version of
+Windows 8.x that ran primarily on ARM-based tablet computers.
+
+To build and run the app on ARM-based, "Windows RT" devices, you'll need to:
+
+- install Microsoft's "Remote Debugger" on the device.  Visual C++ installs and 
+  debugs ARM-based apps via IP networks.
+- change a few options on the development machine, both to make sure it builds 
+  for ARM (rather than x86 or x64), and to make sure it knows how to find the 
+  Windows RT device (on the network).
+
+Microsoft's Remote Debugger can be found at 
+<https://msdn.microsoft.com/en-us/library/hh441469.aspx>.  Please note 
+that separate versions of this debugger exist for different versions of Visual 
+C++, one each for MSVC 2015, 2013, and 2012.
+
+To setup Visual C++ to launch your app on an ARM device:
+
+1. make sure the Remote Debugger is running on your ARM device, and that it's on 
+   the same IP network as your development machine.
+2. from Visual C++'s toolbar, find a drop-down menu that says, "Win32".  Click 
+   it, then change the value to "ARM".
+3. make sure Visual C++ knows the hostname or IP address of the ARM device.  To 
+   do this:
+    1. open the app project's properties
+    2. select "Debugging"
+    3. next to "Machine Name", enter the hostname or IP address of the ARM 
+       device
+    4. if, and only if, you've turned off authentication in the Remote Debugger,
+       then change the setting for "Require Authentication" to No
+    5. click "OK"
+4. build and run the app (from Visual C++).  The first time you do this, a 
+   prompt will show up on the ARM device, asking for a Microsoft Account.  You 
+   do, unfortunately, need to log in here, and will need to follow the 
+   subsequent registration steps in order to launch the app.  After you do so, 
+   if the app didn't already launch, try relaunching it again from within Visual 
+   C++.
+
+
+Troubleshooting
+---------------
+
+#### Build fails with message, "error LNK2038: mismatch detected for 'vccorlib_lib_should_be_specified_before_msvcrt_lib_to_linker'"
+
+Try adding the following to your linker flags.  In MSVC, this can be done by
+right-clicking on the app project, navigating to Configuration Properties ->
+Linker -> Command Line, then adding them to the Additional Options
+section.
+
+* For Release builds / MSVC-Configurations, add:
+
+    /nodefaultlib:vccorlib /nodefaultlib:msvcrt vccorlib.lib msvcrt.lib
+
+* For Debug builds / MSVC-Configurations, add:
+
+    /nodefaultlib:vccorlibd /nodefaultlib:msvcrtd vccorlibd.lib msvcrtd.lib
+
+
+#### Mouse-motion events fail to get sent, or SDL_GetMouseState() fails to return updated values
+
+This may be caused by a bug in Windows itself, whereby hiding the mouse
+cursor can cause mouse-position reporting to fail.
+
+SDL provides a workaround for this, but it requires that an app links to a
+set of Win32-style cursor image-resource files.  A copy of suitable resource
+files can be found in `src/main/winrt/`.  Adding them to an app's Visual C++
+project file should be sufficient to get the app to use them.
+
+
+#### SDL's Visual Studio project file fails to open, with message, "The system can't find the file specified."
+
+This can be caused for any one of a few reasons, which Visual Studio can
+report, but won't always do so in an up-front manner.
+
+To help determine why this error comes up:
+
+1. open a copy of Visual Studio without opening a project file.  This can be
+   accomplished via Windows' Start Menu, among other means.
+2. show Visual Studio's Output window.  This can be done by going to VS'
+   menu bar, then to View, and then to Output.
+3. try opening the SDL project file directly by going to VS' menu bar, then
+   to File, then to Open, then to Project/Solution.  When a File-Open dialog
+   appears, open the SDL project (such as the one in SDL's source code, in its
+   directory, VisualC-WinRT/UWP_VS2015/).
+4. after attempting to open SDL's Visual Studio project file, additional error
+   information will be output to the Output window.
+
+If Visual Studio reports (via its Output window) that the project:
+
+"could not be loaded because it's missing install components. To fix this launch Visual Studio setup with the following selections:
+Microsoft.VisualStudio.ComponentGroup.UWP.VC"
+
+... then you will need to re-launch Visual Studio's installer, and make sure that
+the workflow for "Universal Windows Platform development" is checked, and that its
+optional component, "C++ Universal Windows Platform tools" is also checked.  While
+you are there, if you are planning on targeting UWP / Windows 10, also make sure
+that you check the optional component, "Windows 10 SDK (10.0.10240.0)".  After
+making sure these items are checked as-appropriate, install them.
+
+Once you install these components, try re-launching Visual Studio, and re-opening
+the SDL project file.  If you still get the error dialog, try using the Output
+window, again, seeing what Visual Studio says about it.
+
+
+#### Game controllers / joysticks aren't working!
+
+Windows only permits certain game controllers and joysticks to work within
+WinRT / UWP apps.  Even if a game controller or joystick works in a Win32
+app, that device is not guaranteed to work inside a WinRT / UWP app.
+
+According to Microsoft, "Xbox compatible controllers" should work inside
+UWP apps, potentially with more working in the future.  This includes, but
+may not be limited to, Microsoft-made Xbox controllers and USB adapters.
+(Source: https://social.msdn.microsoft.com/Forums/en-US/9064838b-e8c3-4c18-8a83-19bf0dfe150d/xinput-fails-to-detect-game-controllers?forum=wpdevelop)
+
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README.md b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README.md
new file mode 100644
index 0000000..7e2c151
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/README.md
@@ -0,0 +1,63 @@
+Simple DirectMedia Layer {#mainpage}
+========================
+
+                                  (SDL)
+
+                                Version 2.0
+
+---
+http://www.libsdl.org/
+
+Simple DirectMedia Layer is a cross-platform development library designed
+to provide low level access to audio, keyboard, mouse, joystick, and graphics
+hardware via OpenGL and Direct3D. It is used by video playback software,
+emulators, and popular games including Valve's award winning catalog
+and many Humble Bundle games.
+
+SDL officially supports Windows, Mac OS X, Linux, iOS, and Android.
+Support for other platforms may be found in the source code.
+
+SDL is written in C, works natively with C++, and there are bindings 
+available for several other languages, including C# and Python.
+
+This library is distributed under the zlib license, which can be found
+in the file "COPYING.txt".
+
+The best way to learn how to use SDL is to check out the header files in
+the "include" subdirectory and the programs in the "test" subdirectory.
+The header files and test programs are well commented and always up to date.
+
+More documentation and FAQs are available online at [the wiki](http://wiki.libsdl.org/)
+
+- [Android](README-android.md)
+- [CMake](README-cmake.md)
+- [DirectFB](README-directfb.md)
+- [DynAPI](README-dynapi.md)
+- [Emscripten](README-emscripten.md)
+- [Gesture](README-gesture.md)
+- [Mercurial](README-hg.md)
+- [iOS](README-ios.md)
+- [Linux](README-linux.md)
+- [OS X](README-macosx.md)
+- [Native Client](README-nacl.md)
+- [Pandora](README-pandora.md)
+- [Supported Platforms](README-platforms.md)
+- [Porting information](README-porting.md)
+- [PSP](README-psp.md)
+- [Raspberry Pi](README-raspberrypi.md)
+- [Touch](README-touch.md)
+- [WinCE](README-wince.md)
+- [Windows](README-windows.md)
+- [WinRT](README-winrt.md)
+
+If you need help with the library, or just want to discuss SDL related
+issues, you can join the [developers mailing list](http://www.libsdl.org/mailing-list.php)
+
+If you want to report bugs or contribute patches, please submit them to
+[bugzilla](https://bugzilla.libsdl.org/)
+
+Enjoy!
+
+
+Sam Lantinga <mailto:slouken@libsdl.org>
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/doxyfile b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/doxyfile
new file mode 100644
index 0000000..baf1c98
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/docs/doxyfile
@@ -0,0 +1,1560 @@
+# Doxyfile 1.5.9
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+#       TAG = value [value, ...]
+# For lists items can also be appended using:
+#       TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file 
+# that follow. The default is UTF-8 which is also the encoding used for all 
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the 
+# iconv built into libc) for the transcoding. See 
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING      = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded 
+# by quotes) that should identify the project.
+
+PROJECT_NAME           = SDL
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number. 
+# This could be handy for archiving the generated documentation or 
+# if some version control system is used.
+
+PROJECT_NUMBER         = 2.0
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) 
+# base path where the generated documentation will be put. 
+# If a relative path is entered, it will be relative to the location 
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY       = ./output
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 
+# 4096 sub-directories (in 2 levels) under the output directory of each output 
+# format and will distribute the generated files over these directories. 
+# Enabling this option can be useful when feeding doxygen a huge amount of 
+# source files, where putting all generated files in the same directory would 
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS         = YES
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all 
+# documentation generated by doxygen is written. Doxygen will use this 
+# information to generate all constant output in the proper language. 
+# The default language is English, other supported languages are: 
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, 
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, 
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English 
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, 
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, 
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+
+OUTPUT_LANGUAGE        = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will 
+# include brief member descriptions after the members that are listed in 
+# the file and class documentation (similar to JavaDoc). 
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC      = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend 
+# the brief description of a member or function before the detailed description. 
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF           = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator 
+# that is used to form the text in various listings. Each string 
+# in this list, if found as the leading text of the brief description, will be 
+# stripped from the text and the result after processing the whole list, is 
+# used as the annotated text. Otherwise, the brief description is used as-is. 
+# If left blank, the following values are used ("$name" is automatically 
+# replaced with the name of the entity): "The $name class" "The $name widget" 
+# "The $name file" "is" "provides" "specifies" "contains" 
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF       = "The $name class" \
+                         "The $name widget" \
+                         "The $name file" \
+                         is \
+                         provides \
+                         specifies \
+                         contains \
+                         represents \
+                         a \
+                         an \
+                         the
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then 
+# Doxygen will generate a detailed section even if there is only a brief 
+# description.
+
+ALWAYS_DETAILED_SEC    = YES
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all 
+# inherited members of a class in the documentation of that class as if those 
+# members were ordinary class members. Constructors, destructors and assignment 
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB  = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full 
+# path before files name in the file list and in the header files. If set 
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES        = YES
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag 
+# can be used to strip a user-defined part of the path. Stripping is 
+# only done if one of the specified strings matches the left-hand part of 
+# the path. The tag can be used to show relative paths in the file list. 
+# If left blank the directory from which doxygen is run is used as the 
+# path to strip.
+
+STRIP_FROM_PATH        =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of 
+# the path mentioned in the documentation of a class, which tells 
+# the reader which header file to include in order to use a class. 
+# If left blank only the name of the header file containing the class 
+# definition is used. Otherwise one should specify the include paths that 
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH    = 
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter 
+# (but less readable) file names. This can be useful is your file systems 
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES            = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen 
+# will interpret the first line (until the first dot) of a JavaDoc-style 
+# comment as the brief description. If set to NO, the JavaDoc 
+# comments will behave just like regular Qt-style comments 
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF      = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will 
+# interpret the first line (until the first dot) of a Qt-style 
+# comment as the brief description. If set to NO, the comments 
+# will behave just like regular Qt-style comments (thus requiring 
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF           = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen 
+# treat a multi-line C++ special comment block (i.e. a block of //! or /// 
+# comments) as a brief description. This used to be the default behaviour. 
+# The new default is to treat a multi-line C++ comment block as a detailed 
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented 
+# member inherits the documentation from any documented member that it 
+# re-implements.
+
+INHERIT_DOCS           = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce 
+# a new page for each member. If set to NO, the documentation of a member will 
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES  = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab. 
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE               = 8
+
+# This tag can be used to specify a number of aliases that acts 
+# as commands in the documentation. An alias has the form "name=value". 
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to 
+# put the command \sideeffect (or @sideeffect) in the documentation, which 
+# will result in a user-defined paragraph with heading "Side Effects:". 
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES                = "defined=\"\def\"" \
+                         "discussion=\"\par Discussion:\n\""
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C 
+# sources only. Doxygen will then generate output that is more tailored for C. 
+# For instance, some of the names that are used will be different. The list 
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C  = YES
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java 
+# sources only. Doxygen will then generate output that is more tailored for 
+# Java. For instance, namespaces will be presented as packages, qualified 
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA   = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran 
+# sources only. Doxygen will then generate output that is more tailored for 
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN   = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL 
+# sources. Doxygen will then generate output that is tailored for 
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL   = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it parses. 
+# With this tag you can assign which parser to use for a given extension. 
+# Doxygen has a built-in mapping, but you can override or extend it using this tag. 
+# The format is ext=language, where ext is a file extension, and language is one of 
+# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, 
+# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat 
+# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), 
+# use: inc=Fortran f=C. Note that for custom extensions you also need to set
+# FILE_PATTERNS otherwise the files are not read by doxygen.
+
+EXTENSION_MAPPING      = 
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want 
+# to include (a tag file for) the STL sources as input, then you should 
+# set this tag to YES in order to let doxygen match functions declarations and 
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. 
+# func(std::string) {}). This also make the inheritance and collaboration 
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT    = YES
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to 
+# enable parsing support.
+
+CPP_CLI_SUPPORT        = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. 
+# Doxygen will parse them like normal C++ but will assume all classes use public 
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT            = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate getter 
+# and setter methods for a property. Setting this option to YES (the default) 
+# will make doxygen to replace the get and set methods by a property in the 
+# documentation. This will only work if the methods are indeed getting or 
+# setting a simple type. If this is not the case, or you want to show the 
+# methods anyway, you should set this option to NO.
+
+IDL_PROPERTY_SUPPORT   = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC 
+# tag is set to YES, then doxygen will reuse the documentation of the first 
+# member in the group (if any) for the other members of the group. By default 
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC   = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of 
+# the same type (for instance a group of public functions) to be put as a 
+# subgroup of that type (e.g. under the Public Functions section). Set it to 
+# NO to prevent subgrouping. Alternatively, this can be done per class using 
+# the \nosubgrouping command.
+
+SUBGROUPING            = YES
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum 
+# is documented as struct, union, or enum with the name of the typedef. So 
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct 
+# with name TypeT. When disabled the typedef will appear as a member of a file, 
+# namespace, or class. And the struct will be named TypeS. This can typically 
+# be useful for C code in case the coding convention dictates that all compound 
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT   = YES
+
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to 
+# determine which symbols to keep in memory and which to flush to disk. 
+# When the cache is full, less often used symbols will be written to disk. 
+# For small to medium size projects (<1000 input files) the default value is 
+# probably good enough. For larger projects a too small cache size can cause 
+# doxygen to be busy swapping symbols to and from disk most of the time 
+# causing a significant performance penality. 
+# If the system has enough physical memory increasing the cache will improve the 
+# performance by keeping more symbols in memory. Note that the value works on 
+# a logarithmic scale so increasing the size by one will rougly double the 
+# memory usage. The cache size is given by this formula: 
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, 
+# corresponding to a cache size of 2^16 = 65536 symbols
+
+SYMBOL_CACHE_SIZE      = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in 
+# documentation are documented, even if no documentation was available. 
+# Private class members and static file members will be hidden unless 
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL            = YES
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class 
+# will be included in the documentation.
+
+EXTRACT_PRIVATE        = YES
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file 
+# will be included in the documentation.
+
+EXTRACT_STATIC         = YES
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) 
+# defined locally in source files will be included in the documentation. 
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES  = YES
+
+# This flag is only useful for Objective-C code. When set to YES local 
+# methods, which are defined in the implementation section but not in 
+# the interface are included in the documentation. 
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS  = YES
+
+# If this flag is set to YES, the members of anonymous namespaces will be 
+# extracted and appear in the documentation as a namespace called 
+# 'anonymous_namespace{file}', where file will be replaced with the base 
+# name of the file that contains the anonymous namespace. By default 
+# anonymous namespace are hidden.
+
+EXTRACT_ANON_NSPACES   = YES
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all 
+# undocumented members of documented classes, files or namespaces. 
+# If set to NO (the default) these members will be included in the 
+# various overviews, but no documentation section is generated. 
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS     = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all 
+# undocumented classes that are normally visible in the class hierarchy. 
+# If set to NO (the default) these classes will be included in the various 
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES     = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all 
+# friend (class|struct|union) declarations. 
+# If set to NO (the default) these declarations will be included in the 
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS  = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any 
+# documentation blocks found inside the body of a function. 
+# If set to NO (the default) these blocks will be appended to the 
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS      = NO
+
+# The INTERNAL_DOCS tag determines if documentation 
+# that is typed after a \internal command is included. If the tag is set 
+# to NO (the default) then the documentation will be excluded. 
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS          = YES
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate 
+# file names in lower-case letters. If set to YES upper-case letters are also 
+# allowed. This is useful if you have classes or files whose names only differ 
+# in case and if your file system supports case sensitive file names. Windows 
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES       = NO
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen 
+# will show members with their full class and namespace scopes in the 
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES       = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen 
+# will put a list of the files that are included by a file in the documentation 
+# of that file.
+
+SHOW_INCLUDE_FILES     = YES
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] 
+# is inserted in the documentation for inline members.
+
+INLINE_INFO            = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen 
+# will sort the (detailed) documentation of file and class members 
+# alphabetically by member name. If set to NO the members will appear in 
+# declaration order.
+
+SORT_MEMBER_DOCS       = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the 
+# brief documentation of file, namespace and class members alphabetically 
+# by member name. If set to NO (the default) the members will appear in 
+# declaration order.
+
+SORT_BRIEF_DOCS        = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the 
+# hierarchy of group names into alphabetical order. If set to NO (the default) 
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES       = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be 
+# sorted by fully-qualified names, including namespaces. If set to 
+# NO (the default), the class list will be sorted only by class name, 
+# not including the namespace part. 
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. 
+# Note: This option applies only to the class list, not to the 
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME     = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or 
+# disable (NO) the todo list. This list is created by putting \todo 
+# commands in the documentation.
+
+GENERATE_TODOLIST      = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or 
+# disable (NO) the test list. This list is created by putting \test 
+# commands in the documentation.
+
+GENERATE_TESTLIST      = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or 
+# disable (NO) the bug list. This list is created by putting \bug 
+# commands in the documentation.
+
+GENERATE_BUGLIST       = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or 
+# disable (NO) the deprecated list. This list is created by putting 
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional 
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS       = 
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines 
+# the initial value of a variable or define consists of for it to appear in 
+# the documentation. If the initializer consists of more lines than specified 
+# here it will be hidden. Use a value of 0 to hide initializers completely. 
+# The appearance of the initializer of individual variables and defines in the 
+# documentation can be controlled using \showinitializer or \hideinitializer 
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES  = 30
+
+# If the sources in your project are distributed over multiple directories 
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy 
+# in the documentation. The default is NO.
+
+SHOW_DIRECTORIES       = YES
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page. 
+# This will remove the Files entry from the Quick Index and from the 
+# Folder Tree View (if specified). The default is YES.
+
+SHOW_FILES             = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the 
+# Namespaces page.  This will remove the Namespaces entry from the Quick Index 
+# and from the Folder Tree View (if specified). The default is YES.
+
+SHOW_NAMESPACES        = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that 
+# doxygen should invoke to get the current version for each file (typically from 
+# the version control system). Doxygen will invoke the program by executing (via 
+# popen()) the command <command> <input-file>, where <command> is the value of 
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file 
+# provided by doxygen. Whatever the program writes to standard output 
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER    = 
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by 
+# doxygen. The layout file controls the global structure of the generated output files 
+# in an output format independent way. The create the layout file that represents 
+# doxygen's defaults, run doxygen with the -l option. You can optionally specify a 
+# file name after the option, if omitted DoxygenLayout.xml will be used as the name 
+# of the layout file.
+
+LAYOUT_FILE            = 
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated 
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET                  = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are 
+# generated by doxygen. Possible values are YES and NO. If left blank 
+# NO is used.
+
+WARNINGS               = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings 
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will 
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED   = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for 
+# potential errors in the documentation, such as not documenting some 
+# parameters in a documented function, or documenting parameters that 
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR      = YES
+
+# This WARN_NO_PARAMDOC option can be abled to get warnings for 
+# functions that are documented, but have no documentation for their parameters 
+# or return value. If set to NO (the default) doxygen will only warn about 
+# wrong or incomplete parameter documentation, but not about the absence of 
+# documentation.
+
+WARN_NO_PARAMDOC       = YES
+
+# The WARN_FORMAT tag determines the format of the warning messages that 
+# doxygen can produce. The string should contain the $file, $line, and $text 
+# tags, which will be replaced by the file and line number from which the 
+# warning originated and the warning text. Optionally the format may contain 
+# $version, which will be replaced by the version of the file (if it could 
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT            = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning 
+# and error messages should be written. If left blank the output is written 
+# to stderr.
+
+WARN_LOGFILE           = ./doxygen_warn.txt
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain 
+# documented source files. You may enter file names like "myfile.cpp" or 
+# directories like "/usr/src/myproject". Separate the files or directories 
+# with spaces.
+
+INPUT                  = . ../include
+
+# This tag can be used to specify the character encoding of the source files 
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is 
+# also the default input encoding. Doxygen uses libiconv (or the iconv built 
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for 
+# the list of possible encodings.
+
+INPUT_ENCODING         = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the 
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
+# and *.h) to filter out the source-files in the directories. If left 
+# blank the following patterns are tested: 
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx 
+# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
+
+FILE_PATTERNS          = *.c \
+                         *.cc \
+                         *.cxx \
+                         *.cpp \
+                         *.c++ \
+                         *.d \
+                         *.java \
+                         *.ii \
+                         *.ixx \
+                         *.ipp \
+                         *.i++ \
+                         *.inl \
+                         *.h \
+                         *.hh \
+                         *.hxx \
+                         *.hpp \
+                         *.h++ \
+                         *.idl \
+                         *.odl \
+                         *.cs \
+                         *.php \
+                         *.php3 \
+                         *.inc \
+                         *.m \
+                         *.mm \
+                         *.dox \
+                         *.py \
+                         *.f90 \
+                         *.f \
+                         *.vhd \
+                         *.vhdl \
+                         *.h.in \
+                         *.h.default \
+                         *.md
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories 
+# should be searched for input files as well. Possible values are YES and NO. 
+# If left blank NO is used.
+
+RECURSIVE              = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should 
+# excluded from the INPUT source files. This way you can easily exclude a 
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE                = ../include/SDL_opengles2_gl2ext.h \
+                         ../include/SDL_opengles2_gl2platform.h \
+                         ../include/SDL_opengles2_khrplatform.h \
+                         ../include/SDL_opengl_glext.h \
+                         ../include/SDL_opengles2_gl2.h \
+                         ../include/SDL_opengles2.h \
+                         ../include/SDL_opengles.h \
+                         ../include/SDL_opengl.h \
+                         ../include/SDL_egl.h \
+
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or 
+# directories that are symbolic links (a Unix filesystem feature) are excluded 
+# from the input.
+
+EXCLUDE_SYMLINKS       = NO
+
+# If the value of the INPUT tag contains directories, you can use the 
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude 
+# certain files from those directories. Note that the wildcards are matched 
+# against the file with absolute path, so to exclude all test directories 
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS       =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names 
+# (namespaces, classes, functions, etc.) that should be excluded from the 
+# output. The symbol name can be a fully qualified name, a word, or if the 
+# wildcard * is used, a substring. Examples: ANamespace, AClass, 
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS        = 
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or 
+# directories that contain example code fragments that are included (see 
+# the \include command).
+
+EXAMPLE_PATH           =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the 
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
+# and *.h) to filter out the source-files in the directories. If left 
+# blank all files are included.
+
+EXAMPLE_PATTERNS       = *
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be 
+# searched for input files to be used with the \include or \dontinclude 
+# commands irrespective of the value of the RECURSIVE tag. 
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE      = YES
+
+# The IMAGE_PATH tag can be used to specify one or more files or 
+# directories that contain image that are included in the documentation (see 
+# the \image command).
+
+IMAGE_PATH             = 
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should 
+# invoke to filter for each input file. Doxygen will invoke the filter program 
+# by executing (via popen()) the command <filter> <input-file>, where <filter> 
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an 
+# input file. Doxygen will then use the output that the filter program writes 
+# to standard output.  If FILTER_PATTERNS is specified, this tag will be 
+# ignored.
+
+INPUT_FILTER           = 
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern 
+# basis.  Doxygen will compare the file name with each pattern and apply the 
+# filter if there is a match.  The filters are a list of the form: 
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further 
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER 
+# is applied to all files.
+
+FILTER_PATTERNS        = 
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using 
+# INPUT_FILTER) will be used to filter the input files when producing source 
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES    = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will 
+# be generated. Documented entities will be cross-referenced with these sources. 
+# Note: To get rid of all source code in the generated output, make sure also 
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER         = YES
+
+# Setting the INLINE_SOURCES tag to YES will include the body 
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES         = YES
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct 
+# doxygen to hide any special comment blocks from generated source code 
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS    = NO
+
+# If the REFERENCED_BY_RELATION tag is set to YES 
+# then for each documented function all documented 
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = YES
+
+# If the REFERENCES_RELATION tag is set to YES 
+# then for each documented function all documented entities 
+# called/used by that function will be listed.
+
+REFERENCES_RELATION    = YES
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) 
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from 
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will 
+# link to the source code.  Otherwise they will link to the documentation.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code 
+# will point to the HTML generated by the htags(1) tool instead of doxygen 
+# built-in source browser. The htags tool is part of GNU's global source 
+# tagging system (see http://www.gnu.org/software/global/global.html). You 
+# will need version 4.8.6 or higher.
+
+USE_HTAGS              = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen 
+# will generate a verbatim copy of the header file for each class for 
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS       = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index 
+# of all compounds will be generated. Enable this if the project 
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX     = YES
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then 
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns 
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX    = 5
+
+# In case all classes in a project start with a common prefix, all 
+# classes will be put under the same header in the alphabetical index. 
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that 
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX          = SDL_ \
+                         SDL
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will 
+# generate HTML output.
+
+GENERATE_HTML          = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT            = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for 
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank 
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION    = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for 
+# each generated HTML page. If it is left blank doxygen will generate a 
+# standard header.
+
+HTML_HEADER            = 
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for 
+# each generated HTML page. If it is left blank doxygen will generate a 
+# standard footer.
+
+HTML_FOOTER            = 
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading 
+# style sheet that is used by each HTML page. It can be used to 
+# fine-tune the look of the HTML output. If the tag is left blank doxygen 
+# will generate a default style sheet. Note that doxygen will try to copy 
+# the style sheet file to the HTML output directory, so don't put your own 
+# stylesheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET        = 
+
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, 
+# files or namespaces will be aligned in HTML using tables. If set to 
+# NO a bullet list will be used.
+
+HTML_ALIGN_MEMBERS     = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML 
+# documentation will contain sections that can be hidden and shown after the 
+# page has loaded. For this to work a browser that supports 
+# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox 
+# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
+
+HTML_DYNAMIC_SECTIONS  = YES
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files 
+# will be generated that can be used as input for Apple's Xcode 3 
+# integrated development environment, introduced with OSX 10.5 (Leopard). 
+# To create a documentation set, doxygen will generate a Makefile in the 
+# HTML output directory. Running make will produce the docset in that 
+# directory and running "make install" will install the docset in 
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find 
+# it at startup. 
+# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
+
+GENERATE_DOCSET        = NO
+
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the 
+# feed. A documentation feed provides an umbrella under which multiple 
+# documentation sets from a single provider (such as a company or product suite) 
+# can be grouped.
+
+DOCSET_FEEDNAME        = "SDL 2.0 Doxygen"
+
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that 
+# should uniquely identify the documentation set bundle. This should be a 
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen 
+# will append .docset to the name.
+
+DOCSET_BUNDLE_ID       = org.libsdl.sdl20
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files 
+# will be generated that can be used as input for tools like the 
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) 
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP      = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can 
+# be used to specify the file name of the resulting .chm file. You 
+# can add a path in front of the file if the result should not be 
+# written to the html output directory.
+
+CHM_FILE               = ./sdl20.chm
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can 
+# be used to specify the location (absolute path including file name) of 
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run 
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION           = 
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag 
+# controls if a separate .chi index file is generated (YES) or that 
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI           = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING 
+# is used to encode HtmlHelp index (hhk), content (hhc) and project file 
+# content.
+
+CHM_INDEX_ENCODING     = 
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag 
+# controls whether a binary table of contents is generated (YES) or a 
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC             = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members 
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND             = YES
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER 
+# are set, an additional index file will be generated that can be used as input for 
+# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated 
+# HTML documentation.
+
+GENERATE_QHP           = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can 
+# be used to specify the file name of the resulting .qch file. 
+# The path specified is relative to the HTML output folder.
+
+QCH_FILE               = 
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating 
+# Qt Help Project output. For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#namespace
+
+QHP_NAMESPACE          = 
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating 
+# Qt Help Project output. For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+
+QHP_VIRTUAL_FOLDER     = doc
+
+# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. 
+# For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#custom-filters
+
+QHP_CUST_FILTER_NAME   = 
+
+# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see 
+# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">Qt Help Project / Custom Filters</a>.
+
+QHP_CUST_FILTER_ATTRS  = 
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's 
+# filter section matches. 
+# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">Qt Help Project / Filter Attributes</a>.
+
+QHP_SECT_FILTER_ATTRS  = 
+
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can 
+# be used to specify the location of Qt's qhelpgenerator. 
+# If non-empty doxygen will try to run qhelpgenerator on the generated 
+# .qhp file.
+
+QHG_LOCATION           = 
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at 
+# top of each HTML page. The value NO (the default) enables the index and 
+# the value YES disables it.
+
+DISABLE_INDEX          = NO
+
+# This tag can be used to set the number of enum values (range [1..20]) 
+# that doxygen will group on one line in the generated HTML documentation.
+
+ENUM_VALUES_PER_LINE   = 1
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index 
+# structure should be generated to display hierarchical information. 
+# If the tag value is set to FRAME, a side panel will be generated 
+# containing a tree-like index structure (just like the one that 
+# is generated for HTML Help). For this to work a browser that supports 
+# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, 
+# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are 
+# probably better off using the HTML help feature. Other possible values 
+# for this tag are: HIERARCHIES, which will generate the Groups, Directories, 
+# and Class Hierarchy pages using a tree view instead of an ordered list; 
+# ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which 
+# disables this behavior completely. For backwards compatibility with previous 
+# releases of Doxygen, the values YES and NO are equivalent to FRAME and NONE 
+# respectively.
+
+GENERATE_TREEVIEW      = ALL
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be 
+# used to set the initial width (in pixels) of the frame in which the tree 
+# is shown.
+
+TREEVIEW_WIDTH         = 250
+
+# Use this tag to change the font size of Latex formulas included 
+# as images in the HTML documentation. The default is 10. Note that 
+# when you change the font size after a successful doxygen run you need 
+# to manually remove any form_*.png images from the HTML output directory 
+# to force them to be regenerated.
+
+FORMULA_FONTSIZE       = 10
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will 
+# generate Latex output.
+
+GENERATE_LATEX         = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT           = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be 
+# invoked. If left blank `latex' will be used as the default command name.
+
+LATEX_CMD_NAME         = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to 
+# generate index for LaTeX. If left blank `makeindex' will be used as the 
+# default command name.
+
+MAKEINDEX_CMD_NAME     = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact 
+# LaTeX documents. This may be useful for small projects and may help to 
+# save some trees in general.
+
+COMPACT_LATEX          = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used 
+# by the printer. Possible values are: a4, a4wide, letter, legal and 
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE             = a4wide
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX 
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES         = 
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for 
+# the generated latex document. The header should contain everything until 
+# the first chapter. If it is left blank doxygen will generate a 
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER           = 
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated 
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will 
+# contain links (just like the HTML output) instead of page references 
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS         = YES
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of 
+# plain latex in the generated Makefile. Set this option to YES to get a 
+# higher quality PDF documentation.
+
+USE_PDFLATEX           = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. 
+# command to the generated LaTeX files. This will instruct LaTeX to keep 
+# running if errors occur, instead of asking the user for help. 
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE        = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not 
+# include the index chapters (such as File Index, Compound Index, etc.) 
+# in the output.
+
+LATEX_HIDE_INDICES     = NO
+
+# If LATEX_SOURCE_CODE is set to YES then doxygen will include
+# source code with syntax highlighting in the LaTeX output.
+# Note that which sources are shown also depends on other settings
+# such as SOURCE_BROWSER.
+
+LATEX_SOURCE_CODE      = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output 
+# The RTF output is optimized for Word 97 and may not look very pretty with 
+# other RTF readers or editors.
+
+GENERATE_RTF           = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT             = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact 
+# RTF documents. This may be useful for small projects and may help to 
+# save some trees in general.
+
+COMPACT_RTF            = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated 
+# will contain hyperlink fields. The RTF file will 
+# contain links (just like the HTML output) instead of page references. 
+# This makes the output suitable for online browsing using WORD or other 
+# programs which support those fields. 
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS         = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's 
+# config file, i.e. a series of assignments. You only have to provide 
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE    = 
+
+# Set optional variables used in the generation of an rtf document. 
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE    = 
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will 
+# generate man pages
+
+GENERATE_MAN           = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT             = man
+
+# The MAN_EXTENSION tag determines the extension that is added to 
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION          = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output, 
+# then it will generate one additional man file for each entity 
+# documented in the real man page(s). These additional files 
+# only source the real man page, but without them the man command 
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS              = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will 
+# generate an XML file that captures the structure of 
+# the code including all documentation.
+
+GENERATE_XML           = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT             = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema, 
+# which can be used by a validating XML parser to check the 
+# syntax of the XML files.
+
+XML_SCHEMA             = 
+
+# The XML_DTD tag can be used to specify an XML DTD, 
+# which can be used by a validating XML parser to check the 
+# syntax of the XML files.
+
+XML_DTD                = 
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will 
+# dump the program listings (including syntax highlighting 
+# and cross-referencing information) to the XML output. Note that 
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING     = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will 
+# generate an AutoGen Definitions (see autogen.sf.net) file 
+# that captures the structure of the code including all 
+# documentation. Note that this feature is still experimental 
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF   = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will 
+# generate a Perl module file that captures the structure of 
+# the code including all documentation. Note that this 
+# feature is still experimental and incomplete at the 
+# moment.
+
+GENERATE_PERLMOD       = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate 
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able 
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX          = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be 
+# nicely formatted so it can be parsed by a human reader.  This is useful 
+# if you want to understand what is going on.  On the other hand, if this 
+# tag is set to NO the size of the Perl module output will be much smaller 
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY         = YES
+
+# The names of the make variables in the generated doxyrules.make file 
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. 
+# This is useful so different doxyrules.make files included by the same 
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX = 
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor   
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will 
+# evaluate all C-preprocessor directives found in the sources and include 
+# files.
+
+ENABLE_PREPROCESSING   = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro 
+# names in the source code. If set to NO (the default) only conditional 
+# compilation will be performed. Macro expansion can be done in a controlled 
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION        = YES
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES 
+# then the macro expansion is limited to the macros specified with the 
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF     = YES
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files 
+# in the INCLUDE_PATH (see below) will be search if a #include is found.
+
+SEARCH_INCLUDES        = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that 
+# contain include files that are not input files but should be processed by 
+# the preprocessor.
+
+INCLUDE_PATH           =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard 
+# patterns (like *.h and *.hpp) to filter out the header-files in the 
+# directories. If left blank, the patterns specified with FILE_PATTERNS will 
+# be used.
+
+INCLUDE_FILE_PATTERNS  = 
+
+# The PREDEFINED tag can be used to specify one or more macro names that 
+# are defined before the preprocessor is started (similar to the -D option of 
+# gcc). The argument of the tag is a list of macros of the form: name 
+# or name=definition (no spaces). If the definition and the = are 
+# omitted =1 is assumed. To prevent a macro definition from being 
+# undefined via #undef or recursively expanded use the := operator 
+# instead of the = operator.
+
+PREDEFINED             = DOXYGEN_SHOULD_IGNORE_THIS=1 \
+                         DECLSPEC= \
+                         SDLCALL= \
+                         _WIN32=1
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then 
+# this tag can be used to specify a list of macro names that should be expanded. 
+# The macro definition that is found in the sources will be used. 
+# Use the PREDEFINED tag if you want to use a different macro definition.
+
+EXPAND_AS_DEFINED      = 
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then 
+# doxygen's preprocessor will remove all function-like macros that are alone 
+# on a line, have an all uppercase name, and do not end with a semicolon. Such 
+# function macros are typically used for boiler-plate code, and will confuse 
+# the parser if not removed.
+
+SKIP_FUNCTION_MACROS   = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references   
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles. 
+# Optionally an initial location of the external documentation 
+# can be added for each tagfile. The format of a tag file without 
+# this location is as follows: 
+#   TAGFILES = file1 file2 ... 
+# Adding location for the tag files is done as follows: 
+#   TAGFILES = file1=loc1 "file2 = loc2" ... 
+# where "loc1" and "loc2" can be relative or absolute paths or 
+# URLs. If a location is present for each tag, the installdox tool 
+# does not have to be run to correct the links. 
+# Note that each tag file must have a unique name 
+# (where the name does NOT include the path) 
+# If a tag file is not located in the directory in which doxygen 
+# is run, you must also specify the path to the tagfile here.
+
+TAGFILES               = 
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create 
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE       = ./SDL.tag
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed 
+# in the class index. If set to NO only the inherited external classes 
+# will be listed.
+
+ALLEXTERNALS           = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed 
+# in the modules index. If set to NO, only the current project's groups will 
+# be listed.
+
+EXTERNAL_GROUPS        = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script 
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH              = c:\Perl\bin\perl.exe
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool   
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will 
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base 
+# or super classes. Setting the tag to NO turns the diagrams off. Note that 
+# this option is superseded by the HAVE_DOT option below. This is only a 
+# fallback. It is recommended to install and use dot, since it yields more 
+# powerful graphs.
+
+CLASS_DIAGRAMS         = YES
+
+# You can define message sequence charts within doxygen comments using the \msc 
+# command. Doxygen will then run the mscgen tool (see 
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the 
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where 
+# the mscgen tool resides. If left empty the tool is assumed to be found in the 
+# default search path.
+
+MSCGEN_PATH            = 
+
+# If set to YES, the inheritance and collaboration graphs will hide 
+# inheritance and usage relations if the target is undocumented 
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS   = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is 
+# available from the path. This tool is part of Graphviz, a graph visualization 
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section 
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT               = YES
+
+# By default doxygen will write a font called FreeSans.ttf to the output 
+# directory and reference it in all dot files that doxygen generates. This 
+# font does not include all possible unicode characters however, so when you need 
+# these (or just want a differently looking font) you can specify the font name 
+# using DOT_FONTNAME. You need need to make sure dot is able to find the font, 
+# which can be done by putting it in a standard location or by setting the 
+# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory 
+# containing the font.
+
+DOT_FONTNAME           = FreeSans
+
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. 
+# The default size is 10pt.
+
+DOT_FONTSIZE           = 10
+
+# By default doxygen will tell dot to use the output directory to look for the 
+# FreeSans.ttf font (which doxygen will put there itself). If you specify a 
+# different font using DOT_FONTNAME you can set the path where dot 
+# can find it using this tag.
+
+DOT_FONTPATH           = 
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for each documented class showing the direct and 
+# indirect inheritance relations. Setting this tag to YES will force the 
+# the CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH            = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for each documented class showing the direct and 
+# indirect implementation dependencies (inheritance, containment, and 
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH    = YES
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS           = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and 
+# collaboration diagrams in a style similar to the OMG's Unified Modeling 
+# Language.
+
+UML_LOOK               = NO
+
+# If set to YES, the inheritance and collaboration graphs will show the 
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS     = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT 
+# tags are set to YES then doxygen will generate a graph for each documented 
+# file showing the direct and indirect include dependencies of the file with 
+# other documented files.
+
+INCLUDE_GRAPH          = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and 
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each 
+# documented header file showing the documented files that directly or 
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH      = YES
+
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then 
+# doxygen will generate a call dependency graph for every global function 
+# or class method. Note that enabling this option will significantly increase 
+# the time of a run. So in most cases it will be better to enable call graphs 
+# for selected functions only using the \callgraph command.
+
+CALL_GRAPH             = NO
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then 
+# doxygen will generate a caller dependency graph for every global function 
+# or class method. Note that enabling this option will significantly increase 
+# the time of a run. So in most cases it will be better to enable caller 
+# graphs for selected functions only using the \callergraph command.
+
+CALLER_GRAPH           = NO
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen 
+# will graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY    = YES
+
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES 
+# then doxygen will show the dependencies a directory has on other directories 
+# in a graphical way. The dependency relations are determined by the #include 
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH        = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images 
+# generated by dot. Possible values are png, jpg, or gif 
+# If left blank png will be used.
+
+DOT_IMAGE_FORMAT       = png
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be 
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH               = 
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that 
+# contain dot files that are included in the documentation (see the 
+# \dotfile command).
+
+DOTFILE_DIRS           = 
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of 
+# nodes that will be shown in the graph. If the number of nodes in a graph 
+# becomes larger than this value, doxygen will truncate the graph, which is 
+# visualized by representing a node as a red box. Note that doxygen if the 
+# number of direct children of the root node in a graph is already larger than 
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note 
+# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+
+DOT_GRAPH_MAX_NODES    = 60
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the 
+# graphs generated by dot. A depth value of 3 means that only nodes reachable 
+# from the root by following a path via at most 3 edges will be shown. Nodes 
+# that lay further from the root node will be omitted. Note that setting this 
+# option to 1 or 2 may greatly reduce the computation time needed for large 
+# code bases. Also note that the size of a graph can be further restricted by 
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+
+MAX_DOT_GRAPH_DEPTH    = 2
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent 
+# background. This is disabled by default, because dot on Windows does not 
+# seem to support this out of the box. Warning: Depending on the platform used, 
+# enabling this option may lead to badly anti-aliased labels on the edges of 
+# a graph (i.e. they become hard to read).
+
+DOT_TRANSPARENT        = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output 
+# files in one run (i.e. multiple -o and -T options on the command line). This 
+# makes dot run faster, but since only newer versions of dot (>1.8.10) 
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS      = YES
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will 
+# generate a legend page explaining the meaning of the various boxes and 
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND        = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will 
+# remove the intermediate dot files that are used to generate 
+# the various graphs.
+
+DOT_CLEANUP            = YES
+
+#---------------------------------------------------------------------------
+# Options related to the search engine
+#---------------------------------------------------------------------------
+
+# The SEARCHENGINE tag specifies whether or not a search engine should be 
+# used. If set to NO the values of all tags below this one will be ignored.
+
+SEARCHENGINE           = NO
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL.h
new file mode 100644
index 0000000..d48d9d4
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL.h
@@ -0,0 +1,133 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL.h
+ *
+ *  Main include header for the SDL library
+ */
+
+
+#ifndef SDL_h_
+#define SDL_h_
+
+#include "SDL_main.h"
+#include "SDL_stdinc.h"
+#include "SDL_assert.h"
+#include "SDL_atomic.h"
+#include "SDL_audio.h"
+#include "SDL_clipboard.h"
+#include "SDL_cpuinfo.h"
+#include "SDL_endian.h"
+#include "SDL_error.h"
+#include "SDL_events.h"
+#include "SDL_filesystem.h"
+#include "SDL_gamecontroller.h"
+#include "SDL_haptic.h"
+#include "SDL_hints.h"
+#include "SDL_joystick.h"
+#include "SDL_loadso.h"
+#include "SDL_log.h"
+#include "SDL_messagebox.h"
+#include "SDL_mutex.h"
+#include "SDL_power.h"
+#include "SDL_render.h"
+#include "SDL_rwops.h"
+#include "SDL_shape.h"
+#include "SDL_system.h"
+#include "SDL_thread.h"
+#include "SDL_timer.h"
+#include "SDL_version.h"
+#include "SDL_video.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* As of version 0.5, SDL is loaded dynamically into the application */
+
+/**
+ *  \name SDL_INIT_*
+ *
+ *  These are the flags which may be passed to SDL_Init().  You should
+ *  specify the subsystems which you will be using in your application.
+ */
+/* @{ */
+#define SDL_INIT_TIMER          0x00000001u
+#define SDL_INIT_AUDIO          0x00000010u
+#define SDL_INIT_VIDEO          0x00000020u  /**< SDL_INIT_VIDEO implies SDL_INIT_EVENTS */
+#define SDL_INIT_JOYSTICK       0x00000200u  /**< SDL_INIT_JOYSTICK implies SDL_INIT_EVENTS */
+#define SDL_INIT_HAPTIC         0x00001000u
+#define SDL_INIT_GAMECONTROLLER 0x00002000u  /**< SDL_INIT_GAMECONTROLLER implies SDL_INIT_JOYSTICK */
+#define SDL_INIT_EVENTS         0x00004000u
+#define SDL_INIT_NOPARACHUTE    0x00100000u  /**< compatibility; this flag is ignored. */
+#define SDL_INIT_EVERYTHING ( \
+                SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_EVENTS | \
+                SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER \
+            )
+/* @} */
+
+/**
+ *  This function initializes  the subsystems specified by \c flags
+ */
+extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);
+
+/**
+ *  This function initializes specific SDL subsystems
+ *
+ *  Subsystem initialization is ref-counted, you must call
+ *  SDL_QuitSubSystem() for each SDL_InitSubSystem() to correctly
+ *  shutdown a subsystem manually (or call SDL_Quit() to force shutdown).
+ *  If a subsystem is already loaded then this call will
+ *  increase the ref-count and return.
+ */
+extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags);
+
+/**
+ *  This function cleans up specific SDL subsystems
+ */
+extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags);
+
+/**
+ *  This function returns a mask of the specified subsystems which have
+ *  previously been initialized.
+ *
+ *  If \c flags is 0, it returns a mask of all initialized subsystems.
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags);
+
+/**
+ *  This function cleans up all initialized subsystems. You should
+ *  call it upon all exit conditions.
+ */
+extern DECLSPEC void SDLCALL SDL_Quit(void);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_assert.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_assert.h
new file mode 100644
index 0000000..b38f928
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_assert.h
@@ -0,0 +1,291 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_assert_h_
+#define SDL_assert_h_
+
+#include "SDL_config.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef SDL_ASSERT_LEVEL
+#ifdef SDL_DEFAULT_ASSERT_LEVEL
+#define SDL_ASSERT_LEVEL SDL_DEFAULT_ASSERT_LEVEL
+#elif defined(_DEBUG) || defined(DEBUG) || \
+      (defined(__GNUC__) && !defined(__OPTIMIZE__))
+#define SDL_ASSERT_LEVEL 2
+#else
+#define SDL_ASSERT_LEVEL 1
+#endif
+#endif /* SDL_ASSERT_LEVEL */
+
+/*
+These are macros and not first class functions so that the debugger breaks
+on the assertion line and not in some random guts of SDL, and so each
+assert can have unique static variables associated with it.
+*/
+
+#if defined(_MSC_VER)
+/* Don't include intrin.h here because it contains C++ code */
+    extern void __cdecl __debugbreak(void);
+    #define SDL_TriggerBreakpoint() __debugbreak()
+#elif ( (!defined(__NACL__)) && ((defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))) )
+    #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
+#elif defined(__386__) && defined(__WATCOMC__)
+    #define SDL_TriggerBreakpoint() { _asm { int 0x03 } }
+#elif defined(HAVE_SIGNAL_H) && !defined(__WATCOMC__)
+    #include <signal.h>
+    #define SDL_TriggerBreakpoint() raise(SIGTRAP)
+#else
+    /* How do we trigger breakpoints on this platform? */
+    #define SDL_TriggerBreakpoint()
+#endif
+
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 supports __func__ as a standard. */
+#   define SDL_FUNCTION __func__
+#elif ((__GNUC__ >= 2) || defined(_MSC_VER) || defined (__WATCOMC__))
+#   define SDL_FUNCTION __FUNCTION__
+#else
+#   define SDL_FUNCTION "???"
+#endif
+#define SDL_FILE    __FILE__
+#define SDL_LINE    __LINE__
+
+/*
+sizeof (x) makes the compiler still parse the expression even without
+assertions enabled, so the code is always checked at compile time, but
+doesn't actually generate code for it, so there are no side effects or
+expensive checks at run time, just the constant size of what x WOULD be,
+which presumably gets optimized out as unused.
+This also solves the problem of...
+
+    int somevalue = blah();
+    SDL_assert(somevalue == 1);
+
+...which would cause compiles to complain that somevalue is unused if we
+disable assertions.
+*/
+
+/* "while (0,0)" fools Microsoft's compiler's /W4 warning level into thinking
+    this condition isn't constant. And looks like an owl's face! */
+#ifdef _MSC_VER  /* stupid /W4 warnings. */
+#define SDL_NULL_WHILE_LOOP_CONDITION (0,0)
+#else
+#define SDL_NULL_WHILE_LOOP_CONDITION (0)
+#endif
+
+#define SDL_disabled_assert(condition) \
+    do { (void) sizeof ((condition)); } while (SDL_NULL_WHILE_LOOP_CONDITION)
+
+typedef enum
+{
+    SDL_ASSERTION_RETRY,  /**< Retry the assert immediately. */
+    SDL_ASSERTION_BREAK,  /**< Make the debugger trigger a breakpoint. */
+    SDL_ASSERTION_ABORT,  /**< Terminate the program. */
+    SDL_ASSERTION_IGNORE,  /**< Ignore the assert. */
+    SDL_ASSERTION_ALWAYS_IGNORE  /**< Ignore the assert from now on. */
+} SDL_AssertState;
+
+typedef struct SDL_AssertData
+{
+    int always_ignore;
+    unsigned int trigger_count;
+    const char *condition;
+    const char *filename;
+    int linenum;
+    const char *function;
+    const struct SDL_AssertData *next;
+} SDL_AssertData;
+
+#if (SDL_ASSERT_LEVEL > 0)
+
+/* Never call this directly. Use the SDL_assert* macros. */
+extern DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *,
+                                                             const char *,
+                                                             const char *, int)
+#if defined(__clang__)
+#if __has_feature(attribute_analyzer_noreturn)
+/* this tells Clang's static analysis that we're a custom assert function,
+   and that the analyzer should assume the condition was always true past this
+   SDL_assert test. */
+   __attribute__((analyzer_noreturn))
+#endif
+#endif
+;
+
+/* the do {} while(0) avoids dangling else problems:
+    if (x) SDL_assert(y); else blah();
+       ... without the do/while, the "else" could attach to this macro's "if".
+   We try to handle just the minimum we need here in a macro...the loop,
+   the static vars, and break points. The heavy lifting is handled in
+   SDL_ReportAssertion(), in SDL_assert.c.
+*/
+#define SDL_enabled_assert(condition) \
+    do { \
+        while ( !(condition) ) { \
+            static struct SDL_AssertData sdl_assert_data = { \
+                0, 0, #condition, 0, 0, 0, 0 \
+            }; \
+            const SDL_AssertState sdl_assert_state = SDL_ReportAssertion(&sdl_assert_data, SDL_FUNCTION, SDL_FILE, SDL_LINE); \
+            if (sdl_assert_state == SDL_ASSERTION_RETRY) { \
+                continue; /* go again. */ \
+            } else if (sdl_assert_state == SDL_ASSERTION_BREAK) { \
+                SDL_TriggerBreakpoint(); \
+            } \
+            break; /* not retrying. */ \
+        } \
+    } while (SDL_NULL_WHILE_LOOP_CONDITION)
+
+#endif  /* enabled assertions support code */
+
+/* Enable various levels of assertions. */
+#if SDL_ASSERT_LEVEL == 0   /* assertions disabled */
+#   define SDL_assert(condition) SDL_disabled_assert(condition)
+#   define SDL_assert_release(condition) SDL_disabled_assert(condition)
+#   define SDL_assert_paranoid(condition) SDL_disabled_assert(condition)
+#elif SDL_ASSERT_LEVEL == 1  /* release settings. */
+#   define SDL_assert(condition) SDL_disabled_assert(condition)
+#   define SDL_assert_release(condition) SDL_enabled_assert(condition)
+#   define SDL_assert_paranoid(condition) SDL_disabled_assert(condition)
+#elif SDL_ASSERT_LEVEL == 2  /* normal settings. */
+#   define SDL_assert(condition) SDL_enabled_assert(condition)
+#   define SDL_assert_release(condition) SDL_enabled_assert(condition)
+#   define SDL_assert_paranoid(condition) SDL_disabled_assert(condition)
+#elif SDL_ASSERT_LEVEL == 3  /* paranoid settings. */
+#   define SDL_assert(condition) SDL_enabled_assert(condition)
+#   define SDL_assert_release(condition) SDL_enabled_assert(condition)
+#   define SDL_assert_paranoid(condition) SDL_enabled_assert(condition)
+#else
+#   error Unknown assertion level.
+#endif
+
+/* this assertion is never disabled at any level. */
+#define SDL_assert_always(condition) SDL_enabled_assert(condition)
+
+
+typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)(
+                                 const SDL_AssertData* data, void* userdata);
+
+/**
+ *  \brief Set an application-defined assertion handler.
+ *
+ *  This allows an app to show its own assertion UI and/or force the
+ *  response to an assertion failure. If the app doesn't provide this, SDL
+ *  will try to do the right thing, popping up a system-specific GUI dialog,
+ *  and probably minimizing any fullscreen windows.
+ *
+ *  This callback may fire from any thread, but it runs wrapped in a mutex, so
+ *  it will only fire from one thread at a time.
+ *
+ *  Setting the callback to NULL restores SDL's original internal handler.
+ *
+ *  This callback is NOT reset to SDL's internal handler upon SDL_Quit()!
+ *
+ *  Return SDL_AssertState value of how to handle the assertion failure.
+ *
+ *  \param handler Callback function, called when an assertion fails.
+ *  \param userdata A pointer passed to the callback as-is.
+ */
+extern DECLSPEC void SDLCALL SDL_SetAssertionHandler(
+                                            SDL_AssertionHandler handler,
+                                            void *userdata);
+
+/**
+ *  \brief Get the default assertion handler.
+ *
+ *  This returns the function pointer that is called by default when an
+ *   assertion is triggered. This is an internal function provided by SDL,
+ *   that is used for assertions when SDL_SetAssertionHandler() hasn't been
+ *   used to provide a different function.
+ *
+ *  \return The default SDL_AssertionHandler that is called when an assert triggers.
+ */
+extern DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetDefaultAssertionHandler(void);
+
+/**
+ *  \brief Get the current assertion handler.
+ *
+ *  This returns the function pointer that is called when an assertion is
+ *   triggered. This is either the value last passed to
+ *   SDL_SetAssertionHandler(), or if no application-specified function is
+ *   set, is equivalent to calling SDL_GetDefaultAssertionHandler().
+ *
+ *   \param puserdata Pointer to a void*, which will store the "userdata"
+ *                    pointer that was passed to SDL_SetAssertionHandler().
+ *                    This value will always be NULL for the default handler.
+ *                    If you don't care about this data, it is safe to pass
+ *                    a NULL pointer to this function to ignore it.
+ *  \return The SDL_AssertionHandler that is called when an assert triggers.
+ */
+extern DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetAssertionHandler(void **puserdata);
+
+/**
+ *  \brief Get a list of all assertion failures.
+ *
+ *  Get all assertions triggered since last call to SDL_ResetAssertionReport(),
+ *  or the start of the program.
+ *
+ *  The proper way to examine this data looks something like this:
+ *
+ *  <code>
+ *  const SDL_AssertData *item = SDL_GetAssertionReport();
+ *  while (item) {
+ *      printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\\n",
+ *             item->condition, item->function, item->filename,
+ *             item->linenum, item->trigger_count,
+ *             item->always_ignore ? "yes" : "no");
+ *      item = item->next;
+ *  }
+ *  </code>
+ *
+ *  \return List of all assertions.
+ *  \sa SDL_ResetAssertionReport
+ */
+extern DECLSPEC const SDL_AssertData * SDLCALL SDL_GetAssertionReport(void);
+
+/**
+ *  \brief Reset the list of all assertion failures.
+ *
+ *  Reset list of all assertions triggered.
+ *
+ *  \sa SDL_GetAssertionReport
+ */
+extern DECLSPEC void SDLCALL SDL_ResetAssertionReport(void);
+
+
+/* these had wrong naming conventions until 2.0.4. Please update your app! */
+#define SDL_assert_state SDL_AssertState
+#define SDL_assert_data SDL_AssertData
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_assert_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_atomic.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_atomic.h
new file mode 100644
index 0000000..b228774
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_atomic.h
@@ -0,0 +1,277 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ * \file SDL_atomic.h
+ *
+ * Atomic operations.
+ *
+ * IMPORTANT:
+ * If you are not an expert in concurrent lockless programming, you should
+ * only be using the atomic lock and reference counting functions in this
+ * file.  In all other cases you should be protecting your data structures
+ * with full mutexes.
+ *
+ * The list of "safe" functions to use are:
+ *  SDL_AtomicLock()
+ *  SDL_AtomicUnlock()
+ *  SDL_AtomicIncRef()
+ *  SDL_AtomicDecRef()
+ *
+ * Seriously, here be dragons!
+ * ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ *
+ * You can find out a little more about lockless programming and the
+ * subtle issues that can arise here:
+ * http://msdn.microsoft.com/en-us/library/ee418650%28v=vs.85%29.aspx
+ *
+ * There's also lots of good information here:
+ * http://www.1024cores.net/home/lock-free-algorithms
+ * http://preshing.com/
+ *
+ * These operations may or may not actually be implemented using
+ * processor specific atomic operations. When possible they are
+ * implemented as true processor specific atomic operations. When that
+ * is not possible the are implemented using locks that *do* use the
+ * available atomic operations.
+ *
+ * All of the atomic operations that modify memory are full memory barriers.
+ */
+
+#ifndef SDL_atomic_h_
+#define SDL_atomic_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_platform.h"
+
+#include "begin_code.h"
+
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * \name SDL AtomicLock
+ *
+ * The atomic locks are efficient spinlocks using CPU instructions,
+ * but are vulnerable to starvation and can spin forever if a thread
+ * holding a lock has been terminated.  For this reason you should
+ * minimize the code executed inside an atomic lock and never do
+ * expensive things like API or system calls while holding them.
+ *
+ * The atomic locks are not safe to lock recursively.
+ *
+ * Porting Note:
+ * The spin lock functions and type are required and can not be
+ * emulated because they are used in the atomic emulation code.
+ */
+/* @{ */
+
+typedef int SDL_SpinLock;
+
+/**
+ * \brief Try to lock a spin lock by setting it to a non-zero value.
+ *
+ * \param lock Points to the lock.
+ *
+ * \return SDL_TRUE if the lock succeeded, SDL_FALSE if the lock is already held.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_AtomicTryLock(SDL_SpinLock *lock);
+
+/**
+ * \brief Lock a spin lock by setting it to a non-zero value.
+ *
+ * \param lock Points to the lock.
+ */
+extern DECLSPEC void SDLCALL SDL_AtomicLock(SDL_SpinLock *lock);
+
+/**
+ * \brief Unlock a spin lock by setting it to 0. Always returns immediately
+ *
+ * \param lock Points to the lock.
+ */
+extern DECLSPEC void SDLCALL SDL_AtomicUnlock(SDL_SpinLock *lock);
+
+/* @} *//* SDL AtomicLock */
+
+
+/**
+ * The compiler barrier prevents the compiler from reordering
+ * reads and writes to globally visible variables across the call.
+ */
+#if defined(_MSC_VER) && (_MSC_VER > 1200) && !defined(__clang__)
+void _ReadWriteBarrier(void);
+#pragma intrinsic(_ReadWriteBarrier)
+#define SDL_CompilerBarrier()   _ReadWriteBarrier()
+#elif (defined(__GNUC__) && !defined(__EMSCRIPTEN__)) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5120))
+/* This is correct for all CPUs when using GCC or Solaris Studio 12.1+. */
+#define SDL_CompilerBarrier()   __asm__ __volatile__ ("" : : : "memory")
+#elif defined(__WATCOMC__)
+extern _inline void SDL_CompilerBarrier (void);
+#pragma aux SDL_CompilerBarrier = "" parm [] modify exact [];
+#else
+#define SDL_CompilerBarrier()   \
+{ SDL_SpinLock _tmp = 0; SDL_AtomicLock(&_tmp); SDL_AtomicUnlock(&_tmp); }
+#endif
+
+/**
+ * Memory barriers are designed to prevent reads and writes from being
+ * reordered by the compiler and being seen out of order on multi-core CPUs.
+ *
+ * A typical pattern would be for thread A to write some data and a flag,
+ * and for thread B to read the flag and get the data. In this case you
+ * would insert a release barrier between writing the data and the flag,
+ * guaranteeing that the data write completes no later than the flag is
+ * written, and you would insert an acquire barrier between reading the
+ * flag and reading the data, to ensure that all the reads associated
+ * with the flag have completed.
+ *
+ * In this pattern you should always see a release barrier paired with
+ * an acquire barrier and you should gate the data reads/writes with a
+ * single flag variable.
+ *
+ * For more information on these semantics, take a look at the blog post:
+ * http://preshing.com/20120913/acquire-and-release-semantics
+ */
+extern DECLSPEC void SDLCALL SDL_MemoryBarrierReleaseFunction(void);
+extern DECLSPEC void SDLCALL SDL_MemoryBarrierAcquireFunction(void);
+
+#if defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
+#define SDL_MemoryBarrierRelease()   __asm__ __volatile__ ("lwsync" : : : "memory")
+#define SDL_MemoryBarrierAcquire()   __asm__ __volatile__ ("lwsync" : : : "memory")
+#elif defined(__GNUC__) && defined(__aarch64__)
+#define SDL_MemoryBarrierRelease()   __asm__ __volatile__ ("dmb ish" : : : "memory")
+#define SDL_MemoryBarrierAcquire()   __asm__ __volatile__ ("dmb ish" : : : "memory")
+#elif defined(__GNUC__) && defined(__arm__)
+#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7EM__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__)
+#define SDL_MemoryBarrierRelease()   __asm__ __volatile__ ("dmb ish" : : : "memory")
+#define SDL_MemoryBarrierAcquire()   __asm__ __volatile__ ("dmb ish" : : : "memory")
+#elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_5TE__)
+#ifdef __thumb__
+/* The mcr instruction isn't available in thumb mode, use real functions */
+#define SDL_MemoryBarrierRelease()   SDL_MemoryBarrierReleaseFunction()
+#define SDL_MemoryBarrierAcquire()   SDL_MemoryBarrierAcquireFunction()
+#else
+#define SDL_MemoryBarrierRelease()   __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r"(0) : "memory")
+#define SDL_MemoryBarrierAcquire()   __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r"(0) : "memory")
+#endif /* __thumb__ */
+#else
+#define SDL_MemoryBarrierRelease()   __asm__ __volatile__ ("" : : : "memory")
+#define SDL_MemoryBarrierAcquire()   __asm__ __volatile__ ("" : : : "memory")
+#endif /* __GNUC__ && __arm__ */
+#else
+#if (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5120))
+/* This is correct for all CPUs on Solaris when using Solaris Studio 12.1+. */
+#include <mbarrier.h>
+#define SDL_MemoryBarrierRelease()  __machine_rel_barrier()
+#define SDL_MemoryBarrierAcquire()  __machine_acq_barrier()
+#else
+/* This is correct for the x86 and x64 CPUs, and we'll expand this over time. */
+#define SDL_MemoryBarrierRelease()  SDL_CompilerBarrier()
+#define SDL_MemoryBarrierAcquire()  SDL_CompilerBarrier()
+#endif
+#endif
+
+/**
+ * \brief A type representing an atomic integer value.  It is a struct
+ *        so people don't accidentally use numeric operations on it.
+ */
+typedef struct { int value; } SDL_atomic_t;
+
+/**
+ * \brief Set an atomic variable to a new value if it is currently an old value.
+ *
+ * \return SDL_TRUE if the atomic variable was set, SDL_FALSE otherwise.
+ *
+ * \note If you don't know what this function is for, you shouldn't use it!
+*/
+extern DECLSPEC SDL_bool SDLCALL SDL_AtomicCAS(SDL_atomic_t *a, int oldval, int newval);
+
+/**
+ * \brief Set an atomic variable to a value.
+ *
+ * \return The previous value of the atomic variable.
+ */
+extern DECLSPEC int SDLCALL SDL_AtomicSet(SDL_atomic_t *a, int v);
+
+/**
+ * \brief Get the value of an atomic variable
+ */
+extern DECLSPEC int SDLCALL SDL_AtomicGet(SDL_atomic_t *a);
+
+/**
+ * \brief Add to an atomic variable.
+ *
+ * \return The previous value of the atomic variable.
+ *
+ * \note This same style can be used for any number operation
+ */
+extern DECLSPEC int SDLCALL SDL_AtomicAdd(SDL_atomic_t *a, int v);
+
+/**
+ * \brief Increment an atomic variable used as a reference count.
+ */
+#ifndef SDL_AtomicIncRef
+#define SDL_AtomicIncRef(a)    SDL_AtomicAdd(a, 1)
+#endif
+
+/**
+ * \brief Decrement an atomic variable used as a reference count.
+ *
+ * \return SDL_TRUE if the variable reached zero after decrementing,
+ *         SDL_FALSE otherwise
+ */
+#ifndef SDL_AtomicDecRef
+#define SDL_AtomicDecRef(a)    (SDL_AtomicAdd(a, -1) == 1)
+#endif
+
+/**
+ * \brief Set a pointer to a new value if it is currently an old value.
+ *
+ * \return SDL_TRUE if the pointer was set, SDL_FALSE otherwise.
+ *
+ * \note If you don't know what this function is for, you shouldn't use it!
+*/
+extern DECLSPEC SDL_bool SDLCALL SDL_AtomicCASPtr(void **a, void *oldval, void *newval);
+
+/**
+ * \brief Set a pointer to a value atomically.
+ *
+ * \return The previous value of the pointer.
+ */
+extern DECLSPEC void* SDLCALL SDL_AtomicSetPtr(void **a, void* v);
+
+/**
+ * \brief Get the value of a pointer atomically.
+ */
+extern DECLSPEC void* SDLCALL SDL_AtomicGetPtr(void **a);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+
+#include "close_code.h"
+
+#endif /* SDL_atomic_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_audio.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_audio.h
new file mode 100644
index 0000000..d6ea689
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_audio.h
@@ -0,0 +1,825 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_audio.h
+ *
+ *  Access to the raw audio mixing buffer for the SDL library.
+ */
+
+#ifndef SDL_audio_h_
+#define SDL_audio_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_endian.h"
+#include "SDL_mutex.h"
+#include "SDL_thread.h"
+#include "SDL_rwops.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \brief Audio format flags.
+ *
+ *  These are what the 16 bits in SDL_AudioFormat currently mean...
+ *  (Unspecified bits are always zero).
+ *
+ *  \verbatim
+    ++-----------------------sample is signed if set
+    ||
+    ||       ++-----------sample is bigendian if set
+    ||       ||
+    ||       ||          ++---sample is float if set
+    ||       ||          ||
+    ||       ||          || +---sample bit size---+
+    ||       ||          || |                     |
+    15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
+    \endverbatim
+ *
+ *  There are macros in SDL 2.0 and later to query these bits.
+ */
+typedef Uint16 SDL_AudioFormat;
+
+/**
+ *  \name Audio flags
+ */
+/* @{ */
+
+#define SDL_AUDIO_MASK_BITSIZE       (0xFF)
+#define SDL_AUDIO_MASK_DATATYPE      (1<<8)
+#define SDL_AUDIO_MASK_ENDIAN        (1<<12)
+#define SDL_AUDIO_MASK_SIGNED        (1<<15)
+#define SDL_AUDIO_BITSIZE(x)         (x & SDL_AUDIO_MASK_BITSIZE)
+#define SDL_AUDIO_ISFLOAT(x)         (x & SDL_AUDIO_MASK_DATATYPE)
+#define SDL_AUDIO_ISBIGENDIAN(x)     (x & SDL_AUDIO_MASK_ENDIAN)
+#define SDL_AUDIO_ISSIGNED(x)        (x & SDL_AUDIO_MASK_SIGNED)
+#define SDL_AUDIO_ISINT(x)           (!SDL_AUDIO_ISFLOAT(x))
+#define SDL_AUDIO_ISLITTLEENDIAN(x)  (!SDL_AUDIO_ISBIGENDIAN(x))
+#define SDL_AUDIO_ISUNSIGNED(x)      (!SDL_AUDIO_ISSIGNED(x))
+
+/**
+ *  \name Audio format flags
+ *
+ *  Defaults to LSB byte order.
+ */
+/* @{ */
+#define AUDIO_U8        0x0008  /**< Unsigned 8-bit samples */
+#define AUDIO_S8        0x8008  /**< Signed 8-bit samples */
+#define AUDIO_U16LSB    0x0010  /**< Unsigned 16-bit samples */
+#define AUDIO_S16LSB    0x8010  /**< Signed 16-bit samples */
+#define AUDIO_U16MSB    0x1010  /**< As above, but big-endian byte order */
+#define AUDIO_S16MSB    0x9010  /**< As above, but big-endian byte order */
+#define AUDIO_U16       AUDIO_U16LSB
+#define AUDIO_S16       AUDIO_S16LSB
+/* @} */
+
+/**
+ *  \name int32 support
+ */
+/* @{ */
+#define AUDIO_S32LSB    0x8020  /**< 32-bit integer samples */
+#define AUDIO_S32MSB    0x9020  /**< As above, but big-endian byte order */
+#define AUDIO_S32       AUDIO_S32LSB
+/* @} */
+
+/**
+ *  \name float32 support
+ */
+/* @{ */
+#define AUDIO_F32LSB    0x8120  /**< 32-bit floating point samples */
+#define AUDIO_F32MSB    0x9120  /**< As above, but big-endian byte order */
+#define AUDIO_F32       AUDIO_F32LSB
+/* @} */
+
+/**
+ *  \name Native audio byte ordering
+ */
+/* @{ */
+#if SDL_BYTEORDER == SDL_LIL_ENDIAN
+#define AUDIO_U16SYS    AUDIO_U16LSB
+#define AUDIO_S16SYS    AUDIO_S16LSB
+#define AUDIO_S32SYS    AUDIO_S32LSB
+#define AUDIO_F32SYS    AUDIO_F32LSB
+#else
+#define AUDIO_U16SYS    AUDIO_U16MSB
+#define AUDIO_S16SYS    AUDIO_S16MSB
+#define AUDIO_S32SYS    AUDIO_S32MSB
+#define AUDIO_F32SYS    AUDIO_F32MSB
+#endif
+/* @} */
+
+/**
+ *  \name Allow change flags
+ *
+ *  Which audio format changes are allowed when opening a device.
+ */
+/* @{ */
+#define SDL_AUDIO_ALLOW_FREQUENCY_CHANGE    0x00000001
+#define SDL_AUDIO_ALLOW_FORMAT_CHANGE       0x00000002
+#define SDL_AUDIO_ALLOW_CHANNELS_CHANGE     0x00000004
+#define SDL_AUDIO_ALLOW_ANY_CHANGE          (SDL_AUDIO_ALLOW_FREQUENCY_CHANGE|SDL_AUDIO_ALLOW_FORMAT_CHANGE|SDL_AUDIO_ALLOW_CHANNELS_CHANGE)
+/* @} */
+
+/* @} *//* Audio flags */
+
+/**
+ *  This function is called when the audio device needs more data.
+ *
+ *  \param userdata An application-specific parameter saved in
+ *                  the SDL_AudioSpec structure
+ *  \param stream A pointer to the audio data buffer.
+ *  \param len    The length of that buffer in bytes.
+ *
+ *  Once the callback returns, the buffer will no longer be valid.
+ *  Stereo samples are stored in a LRLRLR ordering.
+ *
+ *  You can choose to avoid callbacks and use SDL_QueueAudio() instead, if
+ *  you like. Just open your audio device with a NULL callback.
+ */
+typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream,
+                                            int len);
+
+/**
+ *  The calculated values in this structure are calculated by SDL_OpenAudio().
+ *
+ *  For multi-channel audio, the default SDL channel mapping is:
+ *  2:  FL FR                       (stereo)
+ *  3:  FL FR LFE                   (2.1 surround)
+ *  4:  FL FR BL BR                 (quad)
+ *  5:  FL FR FC BL BR              (quad + center)
+ *  6:  FL FR FC LFE SL SR          (5.1 surround - last two can also be BL BR)
+ *  7:  FL FR FC LFE BC SL SR       (6.1 surround)
+ *  8:  FL FR FC LFE BL BR SL SR    (7.1 surround)
+ */
+typedef struct SDL_AudioSpec
+{
+    int freq;                   /**< DSP frequency -- samples per second */
+    SDL_AudioFormat format;     /**< Audio data format */
+    Uint8 channels;             /**< Number of channels: 1 mono, 2 stereo */
+    Uint8 silence;              /**< Audio buffer silence value (calculated) */
+    Uint16 samples;             /**< Audio buffer size in sample FRAMES (total samples divided by channel count) */
+    Uint16 padding;             /**< Necessary for some compile environments */
+    Uint32 size;                /**< Audio buffer size in bytes (calculated) */
+    SDL_AudioCallback callback; /**< Callback that feeds the audio device (NULL to use SDL_QueueAudio()). */
+    void *userdata;             /**< Userdata passed to callback (ignored for NULL callbacks). */
+} SDL_AudioSpec;
+
+
+struct SDL_AudioCVT;
+typedef void (SDLCALL * SDL_AudioFilter) (struct SDL_AudioCVT * cvt,
+                                          SDL_AudioFormat format);
+
+/**
+ *  \brief Upper limit of filters in SDL_AudioCVT
+ *
+ *  The maximum number of SDL_AudioFilter functions in SDL_AudioCVT is
+ *  currently limited to 9. The SDL_AudioCVT.filters array has 10 pointers,
+ *  one of which is the terminating NULL pointer.
+ */
+#define SDL_AUDIOCVT_MAX_FILTERS 9
+
+/**
+ *  \struct SDL_AudioCVT
+ *  \brief A structure to hold a set of audio conversion filters and buffers.
+ *
+ *  Note that various parts of the conversion pipeline can take advantage
+ *  of SIMD operations (like SSE2, for example). SDL_AudioCVT doesn't require
+ *  you to pass it aligned data, but can possibly run much faster if you
+ *  set both its (buf) field to a pointer that is aligned to 16 bytes, and its
+ *  (len) field to something that's a multiple of 16, if possible.
+ */
+#ifdef __GNUC__
+/* This structure is 84 bytes on 32-bit architectures, make sure GCC doesn't
+   pad it out to 88 bytes to guarantee ABI compatibility between compilers.
+   vvv
+   The next time we rev the ABI, make sure to size the ints and add padding.
+*/
+#define SDL_AUDIOCVT_PACKED __attribute__((packed))
+#else
+#define SDL_AUDIOCVT_PACKED
+#endif
+/* */
+typedef struct SDL_AudioCVT
+{
+    int needed;                 /**< Set to 1 if conversion possible */
+    SDL_AudioFormat src_format; /**< Source audio format */
+    SDL_AudioFormat dst_format; /**< Target audio format */
+    double rate_incr;           /**< Rate conversion increment */
+    Uint8 *buf;                 /**< Buffer to hold entire audio data */
+    int len;                    /**< Length of original audio buffer */
+    int len_cvt;                /**< Length of converted audio buffer */
+    int len_mult;               /**< buffer must be len*len_mult big */
+    double len_ratio;           /**< Given len, final size is len*len_ratio */
+    SDL_AudioFilter filters[SDL_AUDIOCVT_MAX_FILTERS + 1]; /**< NULL-terminated list of filter functions */
+    int filter_index;           /**< Current audio conversion function */
+} SDL_AUDIOCVT_PACKED SDL_AudioCVT;
+
+
+/* Function prototypes */
+
+/**
+ *  \name Driver discovery functions
+ *
+ *  These functions return the list of built in audio drivers, in the
+ *  order that they are normally initialized by default.
+ */
+/* @{ */
+extern DECLSPEC int SDLCALL SDL_GetNumAudioDrivers(void);
+extern DECLSPEC const char *SDLCALL SDL_GetAudioDriver(int index);
+/* @} */
+
+/**
+ *  \name Initialization and cleanup
+ *
+ *  \internal These functions are used internally, and should not be used unless
+ *            you have a specific need to specify the audio driver you want to
+ *            use.  You should normally use SDL_Init() or SDL_InitSubSystem().
+ */
+/* @{ */
+extern DECLSPEC int SDLCALL SDL_AudioInit(const char *driver_name);
+extern DECLSPEC void SDLCALL SDL_AudioQuit(void);
+/* @} */
+
+/**
+ *  This function returns the name of the current audio driver, or NULL
+ *  if no driver has been initialized.
+ */
+extern DECLSPEC const char *SDLCALL SDL_GetCurrentAudioDriver(void);
+
+/**
+ *  This function opens the audio device with the desired parameters, and
+ *  returns 0 if successful, placing the actual hardware parameters in the
+ *  structure pointed to by \c obtained.  If \c obtained is NULL, the audio
+ *  data passed to the callback function will be guaranteed to be in the
+ *  requested format, and will be automatically converted to the hardware
+ *  audio format if necessary.  This function returns -1 if it failed
+ *  to open the audio device, or couldn't set up the audio thread.
+ *
+ *  When filling in the desired audio spec structure,
+ *    - \c desired->freq should be the desired audio frequency in samples-per-
+ *      second.
+ *    - \c desired->format should be the desired audio format.
+ *    - \c desired->samples is the desired size of the audio buffer, in
+ *      samples.  This number should be a power of two, and may be adjusted by
+ *      the audio driver to a value more suitable for the hardware.  Good values
+ *      seem to range between 512 and 8096 inclusive, depending on the
+ *      application and CPU speed.  Smaller values yield faster response time,
+ *      but can lead to underflow if the application is doing heavy processing
+ *      and cannot fill the audio buffer in time.  A stereo sample consists of
+ *      both right and left channels in LR ordering.
+ *      Note that the number of samples is directly related to time by the
+ *      following formula:  \code ms = (samples*1000)/freq \endcode
+ *    - \c desired->size is the size in bytes of the audio buffer, and is
+ *      calculated by SDL_OpenAudio().
+ *    - \c desired->silence is the value used to set the buffer to silence,
+ *      and is calculated by SDL_OpenAudio().
+ *    - \c desired->callback should be set to a function that will be called
+ *      when the audio device is ready for more data.  It is passed a pointer
+ *      to the audio buffer, and the length in bytes of the audio buffer.
+ *      This function usually runs in a separate thread, and so you should
+ *      protect data structures that it accesses by calling SDL_LockAudio()
+ *      and SDL_UnlockAudio() in your code. Alternately, you may pass a NULL
+ *      pointer here, and call SDL_QueueAudio() with some frequency, to queue
+ *      more audio samples to be played (or for capture devices, call
+ *      SDL_DequeueAudio() with some frequency, to obtain audio samples).
+ *    - \c desired->userdata is passed as the first parameter to your callback
+ *      function. If you passed a NULL callback, this value is ignored.
+ *
+ *  The audio device starts out playing silence when it's opened, and should
+ *  be enabled for playing by calling \c SDL_PauseAudio(0) when you are ready
+ *  for your audio callback function to be called.  Since the audio driver
+ *  may modify the requested size of the audio buffer, you should allocate
+ *  any local mixing buffers after you open the audio device.
+ */
+extern DECLSPEC int SDLCALL SDL_OpenAudio(SDL_AudioSpec * desired,
+                                          SDL_AudioSpec * obtained);
+
+/**
+ *  SDL Audio Device IDs.
+ *
+ *  A successful call to SDL_OpenAudio() is always device id 1, and legacy
+ *  SDL audio APIs assume you want this device ID. SDL_OpenAudioDevice() calls
+ *  always returns devices >= 2 on success. The legacy calls are good both
+ *  for backwards compatibility and when you don't care about multiple,
+ *  specific, or capture devices.
+ */
+typedef Uint32 SDL_AudioDeviceID;
+
+/**
+ *  Get the number of available devices exposed by the current driver.
+ *  Only valid after a successfully initializing the audio subsystem.
+ *  Returns -1 if an explicit list of devices can't be determined; this is
+ *  not an error. For example, if SDL is set up to talk to a remote audio
+ *  server, it can't list every one available on the Internet, but it will
+ *  still allow a specific host to be specified to SDL_OpenAudioDevice().
+ *
+ *  In many common cases, when this function returns a value <= 0, it can still
+ *  successfully open the default device (NULL for first argument of
+ *  SDL_OpenAudioDevice()).
+ */
+extern DECLSPEC int SDLCALL SDL_GetNumAudioDevices(int iscapture);
+
+/**
+ *  Get the human-readable name of a specific audio device.
+ *  Must be a value between 0 and (number of audio devices-1).
+ *  Only valid after a successfully initializing the audio subsystem.
+ *  The values returned by this function reflect the latest call to
+ *  SDL_GetNumAudioDevices(); recall that function to redetect available
+ *  hardware.
+ *
+ *  The string returned by this function is UTF-8 encoded, read-only, and
+ *  managed internally. You are not to free it. If you need to keep the
+ *  string for any length of time, you should make your own copy of it, as it
+ *  will be invalid next time any of several other SDL functions is called.
+ */
+extern DECLSPEC const char *SDLCALL SDL_GetAudioDeviceName(int index,
+                                                           int iscapture);
+
+
+/**
+ *  Open a specific audio device. Passing in a device name of NULL requests
+ *  the most reasonable default (and is equivalent to calling SDL_OpenAudio()).
+ *
+ *  The device name is a UTF-8 string reported by SDL_GetAudioDeviceName(), but
+ *  some drivers allow arbitrary and driver-specific strings, such as a
+ *  hostname/IP address for a remote audio server, or a filename in the
+ *  diskaudio driver.
+ *
+ *  \return 0 on error, a valid device ID that is >= 2 on success.
+ *
+ *  SDL_OpenAudio(), unlike this function, always acts on device ID 1.
+ */
+extern DECLSPEC SDL_AudioDeviceID SDLCALL SDL_OpenAudioDevice(const char
+                                                              *device,
+                                                              int iscapture,
+                                                              const
+                                                              SDL_AudioSpec *
+                                                              desired,
+                                                              SDL_AudioSpec *
+                                                              obtained,
+                                                              int
+                                                              allowed_changes);
+
+
+
+/**
+ *  \name Audio state
+ *
+ *  Get the current audio state.
+ */
+/* @{ */
+typedef enum
+{
+    SDL_AUDIO_STOPPED = 0,
+    SDL_AUDIO_PLAYING,
+    SDL_AUDIO_PAUSED
+} SDL_AudioStatus;
+extern DECLSPEC SDL_AudioStatus SDLCALL SDL_GetAudioStatus(void);
+
+extern DECLSPEC SDL_AudioStatus SDLCALL
+SDL_GetAudioDeviceStatus(SDL_AudioDeviceID dev);
+/* @} *//* Audio State */
+
+/**
+ *  \name Pause audio functions
+ *
+ *  These functions pause and unpause the audio callback processing.
+ *  They should be called with a parameter of 0 after opening the audio
+ *  device to start playing sound.  This is so you can safely initialize
+ *  data for your callback function after opening the audio device.
+ *  Silence will be written to the audio device during the pause.
+ */
+/* @{ */
+extern DECLSPEC void SDLCALL SDL_PauseAudio(int pause_on);
+extern DECLSPEC void SDLCALL SDL_PauseAudioDevice(SDL_AudioDeviceID dev,
+                                                  int pause_on);
+/* @} *//* Pause audio functions */
+
+/**
+ *  This function loads a WAVE from the data source, automatically freeing
+ *  that source if \c freesrc is non-zero.  For example, to load a WAVE file,
+ *  you could do:
+ *  \code
+ *      SDL_LoadWAV_RW(SDL_RWFromFile("sample.wav", "rb"), 1, ...);
+ *  \endcode
+ *
+ *  If this function succeeds, it returns the given SDL_AudioSpec,
+ *  filled with the audio data format of the wave data, and sets
+ *  \c *audio_buf to a malloc()'d buffer containing the audio data,
+ *  and sets \c *audio_len to the length of that audio buffer, in bytes.
+ *  You need to free the audio buffer with SDL_FreeWAV() when you are
+ *  done with it.
+ *
+ *  This function returns NULL and sets the SDL error message if the
+ *  wave file cannot be opened, uses an unknown data format, or is
+ *  corrupt.  Currently raw and MS-ADPCM WAVE files are supported.
+ */
+extern DECLSPEC SDL_AudioSpec *SDLCALL SDL_LoadWAV_RW(SDL_RWops * src,
+                                                      int freesrc,
+                                                      SDL_AudioSpec * spec,
+                                                      Uint8 ** audio_buf,
+                                                      Uint32 * audio_len);
+
+/**
+ *  Loads a WAV from a file.
+ *  Compatibility convenience function.
+ */
+#define SDL_LoadWAV(file, spec, audio_buf, audio_len) \
+    SDL_LoadWAV_RW(SDL_RWFromFile(file, "rb"),1, spec,audio_buf,audio_len)
+
+/**
+ *  This function frees data previously allocated with SDL_LoadWAV_RW()
+ */
+extern DECLSPEC void SDLCALL SDL_FreeWAV(Uint8 * audio_buf);
+
+/**
+ *  This function takes a source format and rate and a destination format
+ *  and rate, and initializes the \c cvt structure with information needed
+ *  by SDL_ConvertAudio() to convert a buffer of audio data from one format
+ *  to the other. An unsupported format causes an error and -1 will be returned.
+ *
+ *  \return 0 if no conversion is needed, 1 if the audio filter is set up,
+ *  or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_BuildAudioCVT(SDL_AudioCVT * cvt,
+                                              SDL_AudioFormat src_format,
+                                              Uint8 src_channels,
+                                              int src_rate,
+                                              SDL_AudioFormat dst_format,
+                                              Uint8 dst_channels,
+                                              int dst_rate);
+
+/**
+ *  Once you have initialized the \c cvt structure using SDL_BuildAudioCVT(),
+ *  created an audio buffer \c cvt->buf, and filled it with \c cvt->len bytes of
+ *  audio data in the source format, this function will convert it in-place
+ *  to the desired format.
+ *
+ *  The data conversion may expand the size of the audio data, so the buffer
+ *  \c cvt->buf should be allocated after the \c cvt structure is initialized by
+ *  SDL_BuildAudioCVT(), and should be \c cvt->len*cvt->len_mult bytes long.
+ *
+ *  \return 0 on success or -1 if \c cvt->buf is NULL.
+ */
+extern DECLSPEC int SDLCALL SDL_ConvertAudio(SDL_AudioCVT * cvt);
+
+/* SDL_AudioStream is a new audio conversion interface.
+   The benefits vs SDL_AudioCVT:
+    - it can handle resampling data in chunks without generating
+      artifacts, when it doesn't have the complete buffer available.
+    - it can handle incoming data in any variable size.
+    - You push data as you have it, and pull it when you need it
+ */
+/* this is opaque to the outside world. */
+struct _SDL_AudioStream;
+typedef struct _SDL_AudioStream SDL_AudioStream;
+
+/**
+ *  Create a new audio stream
+ *
+ *  \param src_format The format of the source audio
+ *  \param src_channels The number of channels of the source audio
+ *  \param src_rate The sampling rate of the source audio
+ *  \param dst_format The format of the desired audio output
+ *  \param dst_channels The number of channels of the desired audio output
+ *  \param dst_rate The sampling rate of the desired audio output
+ *  \return 0 on success, or -1 on error.
+ *
+ *  \sa SDL_AudioStreamPut
+ *  \sa SDL_AudioStreamGet
+ *  \sa SDL_AudioStreamAvailable
+ *  \sa SDL_AudioStreamFlush
+ *  \sa SDL_AudioStreamClear
+ *  \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC SDL_AudioStream * SDLCALL SDL_NewAudioStream(const SDL_AudioFormat src_format,
+                                           const Uint8 src_channels,
+                                           const int src_rate,
+                                           const SDL_AudioFormat dst_format,
+                                           const Uint8 dst_channels,
+                                           const int dst_rate);
+
+/**
+ *  Add data to be converted/resampled to the stream
+ *
+ *  \param stream The stream the audio data is being added to
+ *  \param buf A pointer to the audio data to add
+ *  \param len The number of bytes to write to the stream
+ *  \return 0 on success, or -1 on error.
+ *
+ *  \sa SDL_NewAudioStream
+ *  \sa SDL_AudioStreamGet
+ *  \sa SDL_AudioStreamAvailable
+ *  \sa SDL_AudioStreamFlush
+ *  \sa SDL_AudioStreamClear
+ *  \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC int SDLCALL SDL_AudioStreamPut(SDL_AudioStream *stream, const void *buf, int len);
+
+/**
+ *  Get converted/resampled data from the stream
+ *
+ *  \param stream The stream the audio is being requested from
+ *  \param buf A buffer to fill with audio data
+ *  \param len The maximum number of bytes to fill
+ *  \return The number of bytes read from the stream, or -1 on error
+ *
+ *  \sa SDL_NewAudioStream
+ *  \sa SDL_AudioStreamPut
+ *  \sa SDL_AudioStreamAvailable
+ *  \sa SDL_AudioStreamFlush
+ *  \sa SDL_AudioStreamClear
+ *  \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC int SDLCALL SDL_AudioStreamGet(SDL_AudioStream *stream, void *buf, int len);
+
+/**
+ * Get the number of converted/resampled bytes available. The stream may be
+ *  buffering data behind the scenes until it has enough to resample
+ *  correctly, so this number might be lower than what you expect, or even
+ *  be zero. Add more data or flush the stream if you need the data now.
+ *
+ *  \sa SDL_NewAudioStream
+ *  \sa SDL_AudioStreamPut
+ *  \sa SDL_AudioStreamGet
+ *  \sa SDL_AudioStreamFlush
+ *  \sa SDL_AudioStreamClear
+ *  \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC int SDLCALL SDL_AudioStreamAvailable(SDL_AudioStream *stream);
+
+/**
+ * Tell the stream that you're done sending data, and anything being buffered
+ *  should be converted/resampled and made available immediately.
+ *
+ * It is legal to add more data to a stream after flushing, but there will
+ *  be audio gaps in the output. Generally this is intended to signal the
+ *  end of input, so the complete output becomes available.
+ *
+ *  \sa SDL_NewAudioStream
+ *  \sa SDL_AudioStreamPut
+ *  \sa SDL_AudioStreamGet
+ *  \sa SDL_AudioStreamAvailable
+ *  \sa SDL_AudioStreamClear
+ *  \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC int SDLCALL SDL_AudioStreamFlush(SDL_AudioStream *stream);
+
+/**
+ *  Clear any pending data in the stream without converting it
+ *
+ *  \sa SDL_NewAudioStream
+ *  \sa SDL_AudioStreamPut
+ *  \sa SDL_AudioStreamGet
+ *  \sa SDL_AudioStreamAvailable
+ *  \sa SDL_AudioStreamFlush
+ *  \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC void SDLCALL SDL_AudioStreamClear(SDL_AudioStream *stream);
+
+/**
+ * Free an audio stream
+ *
+ *  \sa SDL_NewAudioStream
+ *  \sa SDL_AudioStreamPut
+ *  \sa SDL_AudioStreamGet
+ *  \sa SDL_AudioStreamAvailable
+ *  \sa SDL_AudioStreamFlush
+ *  \sa SDL_AudioStreamClear
+ */
+extern DECLSPEC void SDLCALL SDL_FreeAudioStream(SDL_AudioStream *stream);
+
+#define SDL_MIX_MAXVOLUME 128
+/**
+ *  This takes two audio buffers of the playing audio format and mixes
+ *  them, performing addition, volume adjustment, and overflow clipping.
+ *  The volume ranges from 0 - 128, and should be set to ::SDL_MIX_MAXVOLUME
+ *  for full audio volume.  Note this does not change hardware volume.
+ *  This is provided for convenience -- you can mix your own audio data.
+ */
+extern DECLSPEC void SDLCALL SDL_MixAudio(Uint8 * dst, const Uint8 * src,
+                                          Uint32 len, int volume);
+
+/**
+ *  This works like SDL_MixAudio(), but you specify the audio format instead of
+ *  using the format of audio device 1. Thus it can be used when no audio
+ *  device is open at all.
+ */
+extern DECLSPEC void SDLCALL SDL_MixAudioFormat(Uint8 * dst,
+                                                const Uint8 * src,
+                                                SDL_AudioFormat format,
+                                                Uint32 len, int volume);
+
+/**
+ *  Queue more audio on non-callback devices.
+ *
+ *  (If you are looking to retrieve queued audio from a non-callback capture
+ *  device, you want SDL_DequeueAudio() instead. This will return -1 to
+ *  signify an error if you use it with capture devices.)
+ *
+ *  SDL offers two ways to feed audio to the device: you can either supply a
+ *  callback that SDL triggers with some frequency to obtain more audio
+ *  (pull method), or you can supply no callback, and then SDL will expect
+ *  you to supply data at regular intervals (push method) with this function.
+ *
+ *  There are no limits on the amount of data you can queue, short of
+ *  exhaustion of address space. Queued data will drain to the device as
+ *  necessary without further intervention from you. If the device needs
+ *  audio but there is not enough queued, it will play silence to make up
+ *  the difference. This means you will have skips in your audio playback
+ *  if you aren't routinely queueing sufficient data.
+ *
+ *  This function copies the supplied data, so you are safe to free it when
+ *  the function returns. This function is thread-safe, but queueing to the
+ *  same device from two threads at once does not promise which buffer will
+ *  be queued first.
+ *
+ *  You may not queue audio on a device that is using an application-supplied
+ *  callback; doing so returns an error. You have to use the audio callback
+ *  or queue audio with this function, but not both.
+ *
+ *  You should not call SDL_LockAudio() on the device before queueing; SDL
+ *  handles locking internally for this function.
+ *
+ *  \param dev The device ID to which we will queue audio.
+ *  \param data The data to queue to the device for later playback.
+ *  \param len The number of bytes (not samples!) to which (data) points.
+ *  \return 0 on success, or -1 on error.
+ *
+ *  \sa SDL_GetQueuedAudioSize
+ *  \sa SDL_ClearQueuedAudio
+ */
+extern DECLSPEC int SDLCALL SDL_QueueAudio(SDL_AudioDeviceID dev, const void *data, Uint32 len);
+
+/**
+ *  Dequeue more audio on non-callback devices.
+ *
+ *  (If you are looking to queue audio for output on a non-callback playback
+ *  device, you want SDL_QueueAudio() instead. This will always return 0
+ *  if you use it with playback devices.)
+ *
+ *  SDL offers two ways to retrieve audio from a capture device: you can
+ *  either supply a callback that SDL triggers with some frequency as the
+ *  device records more audio data, (push method), or you can supply no
+ *  callback, and then SDL will expect you to retrieve data at regular
+ *  intervals (pull method) with this function.
+ *
+ *  There are no limits on the amount of data you can queue, short of
+ *  exhaustion of address space. Data from the device will keep queuing as
+ *  necessary without further intervention from you. This means you will
+ *  eventually run out of memory if you aren't routinely dequeueing data.
+ *
+ *  Capture devices will not queue data when paused; if you are expecting
+ *  to not need captured audio for some length of time, use
+ *  SDL_PauseAudioDevice() to stop the capture device from queueing more
+ *  data. This can be useful during, say, level loading times. When
+ *  unpaused, capture devices will start queueing data from that point,
+ *  having flushed any capturable data available while paused.
+ *
+ *  This function is thread-safe, but dequeueing from the same device from
+ *  two threads at once does not promise which thread will dequeued data
+ *  first.
+ *
+ *  You may not dequeue audio from a device that is using an
+ *  application-supplied callback; doing so returns an error. You have to use
+ *  the audio callback, or dequeue audio with this function, but not both.
+ *
+ *  You should not call SDL_LockAudio() on the device before queueing; SDL
+ *  handles locking internally for this function.
+ *
+ *  \param dev The device ID from which we will dequeue audio.
+ *  \param data A pointer into where audio data should be copied.
+ *  \param len The number of bytes (not samples!) to which (data) points.
+ *  \return number of bytes dequeued, which could be less than requested.
+ *
+ *  \sa SDL_GetQueuedAudioSize
+ *  \sa SDL_ClearQueuedAudio
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_DequeueAudio(SDL_AudioDeviceID dev, void *data, Uint32 len);
+
+/**
+ *  Get the number of bytes of still-queued audio.
+ *
+ *  For playback device:
+ *
+ *    This is the number of bytes that have been queued for playback with
+ *    SDL_QueueAudio(), but have not yet been sent to the hardware. This
+ *    number may shrink at any time, so this only informs of pending data.
+ *
+ *    Once we've sent it to the hardware, this function can not decide the
+ *    exact byte boundary of what has been played. It's possible that we just
+ *    gave the hardware several kilobytes right before you called this
+ *    function, but it hasn't played any of it yet, or maybe half of it, etc.
+ *
+ *  For capture devices:
+ *
+ *    This is the number of bytes that have been captured by the device and
+ *    are waiting for you to dequeue. This number may grow at any time, so
+ *    this only informs of the lower-bound of available data.
+ *
+ *  You may not queue audio on a device that is using an application-supplied
+ *  callback; calling this function on such a device always returns 0.
+ *  You have to queue audio with SDL_QueueAudio()/SDL_DequeueAudio(), or use
+ *  the audio callback, but not both.
+ *
+ *  You should not call SDL_LockAudio() on the device before querying; SDL
+ *  handles locking internally for this function.
+ *
+ *  \param dev The device ID of which we will query queued audio size.
+ *  \return Number of bytes (not samples!) of queued audio.
+ *
+ *  \sa SDL_QueueAudio
+ *  \sa SDL_ClearQueuedAudio
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_GetQueuedAudioSize(SDL_AudioDeviceID dev);
+
+/**
+ *  Drop any queued audio data. For playback devices, this is any queued data
+ *  still waiting to be submitted to the hardware. For capture devices, this
+ *  is any data that was queued by the device that hasn't yet been dequeued by
+ *  the application.
+ *
+ *  Immediately after this call, SDL_GetQueuedAudioSize() will return 0. For
+ *  playback devices, the hardware will start playing silence if more audio
+ *  isn't queued. Unpaused capture devices will start filling the queue again
+ *  as soon as they have more data available (which, depending on the state
+ *  of the hardware and the thread, could be before this function call
+ *  returns!).
+ *
+ *  This will not prevent playback of queued audio that's already been sent
+ *  to the hardware, as we can not undo that, so expect there to be some
+ *  fraction of a second of audio that might still be heard. This can be
+ *  useful if you want to, say, drop any pending music during a level change
+ *  in your game.
+ *
+ *  You may not queue audio on a device that is using an application-supplied
+ *  callback; calling this function on such a device is always a no-op.
+ *  You have to queue audio with SDL_QueueAudio()/SDL_DequeueAudio(), or use
+ *  the audio callback, but not both.
+ *
+ *  You should not call SDL_LockAudio() on the device before clearing the
+ *  queue; SDL handles locking internally for this function.
+ *
+ *  This function always succeeds and thus returns void.
+ *
+ *  \param dev The device ID of which to clear the audio queue.
+ *
+ *  \sa SDL_QueueAudio
+ *  \sa SDL_GetQueuedAudioSize
+ */
+extern DECLSPEC void SDLCALL SDL_ClearQueuedAudio(SDL_AudioDeviceID dev);
+
+
+/**
+ *  \name Audio lock functions
+ *
+ *  The lock manipulated by these functions protects the callback function.
+ *  During a SDL_LockAudio()/SDL_UnlockAudio() pair, you can be guaranteed that
+ *  the callback function is not running.  Do not call these from the callback
+ *  function or you will cause deadlock.
+ */
+/* @{ */
+extern DECLSPEC void SDLCALL SDL_LockAudio(void);
+extern DECLSPEC void SDLCALL SDL_LockAudioDevice(SDL_AudioDeviceID dev);
+extern DECLSPEC void SDLCALL SDL_UnlockAudio(void);
+extern DECLSPEC void SDLCALL SDL_UnlockAudioDevice(SDL_AudioDeviceID dev);
+/* @} *//* Audio lock functions */
+
+/**
+ *  This function shuts down audio processing and closes the audio device.
+ */
+extern DECLSPEC void SDLCALL SDL_CloseAudio(void);
+extern DECLSPEC void SDLCALL SDL_CloseAudioDevice(SDL_AudioDeviceID dev);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_audio_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_bits.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_bits.h
new file mode 100644
index 0000000..eb8322f
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_bits.h
@@ -0,0 +1,112 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_bits.h
+ *
+ *  Functions for fiddling with bits and bitmasks.
+ */
+
+#ifndef SDL_bits_h_
+#define SDL_bits_h_
+
+#include "SDL_stdinc.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \file SDL_bits.h
+ */
+
+/**
+ *  Get the index of the most significant bit. Result is undefined when called
+ *  with 0. This operation can also be stated as "count leading zeroes" and
+ *  "log base 2".
+ *
+ *  \return Index of the most significant bit, or -1 if the value is 0.
+ */
+#if defined(__WATCOMC__) && defined(__386__)
+extern _inline int _SDL_clz_watcom (Uint32);
+#pragma aux _SDL_clz_watcom = \
+    "bsr eax, eax" \
+    "xor eax, 31" \
+    parm [eax] nomemory \
+    value [eax] \
+    modify exact [eax] nomemory;
+#endif
+
+SDL_FORCE_INLINE int
+SDL_MostSignificantBitIndex32(Uint32 x)
+{
+#if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+    /* Count Leading Zeroes builtin in GCC.
+     * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html
+     */
+    if (x == 0) {
+        return -1;
+    }
+    return 31 - __builtin_clz(x);
+#elif defined(__WATCOMC__) && defined(__386__)
+    if (x == 0) {
+        return -1;
+    }
+    return 31 - _SDL_clz_watcom(x);
+#else
+    /* Based off of Bit Twiddling Hacks by Sean Eron Anderson
+     * <seander@cs.stanford.edu>, released in the public domain.
+     * http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog
+     */
+    const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000};
+    const int    S[] = {1, 2, 4, 8, 16};
+
+    int msbIndex = 0;
+    int i;
+
+    if (x == 0) {
+        return -1;
+    }
+
+    for (i = 4; i >= 0; i--)
+    {
+        if (x & b[i])
+        {
+            x >>= S[i];
+            msbIndex |= S[i];
+        }
+    }
+
+    return msbIndex;
+#endif
+}
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_bits_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_blendmode.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_blendmode.h
new file mode 100644
index 0000000..36a5ea7
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_blendmode.h
@@ -0,0 +1,120 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_blendmode.h
+ *
+ *  Header file declaring the SDL_BlendMode enumeration
+ */
+
+#ifndef SDL_blendmode_h_
+#define SDL_blendmode_h_
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \brief The blend mode used in SDL_RenderCopy() and drawing operations.
+ */
+typedef enum
+{
+    SDL_BLENDMODE_NONE = 0x00000000,     /**< no blending
+                                              dstRGBA = srcRGBA */
+    SDL_BLENDMODE_BLEND = 0x00000001,    /**< alpha blending
+                                              dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA))
+                                              dstA = srcA + (dstA * (1-srcA)) */
+    SDL_BLENDMODE_ADD = 0x00000002,      /**< additive blending
+                                              dstRGB = (srcRGB * srcA) + dstRGB
+                                              dstA = dstA */
+    SDL_BLENDMODE_MOD = 0x00000004,      /**< color modulate
+                                              dstRGB = srcRGB * dstRGB
+                                              dstA = dstA */
+    SDL_BLENDMODE_INVALID = 0x7FFFFFFF
+
+    /* Additional custom blend modes can be returned by SDL_ComposeCustomBlendMode() */
+
+} SDL_BlendMode;
+
+/**
+ *  \brief The blend operation used when combining source and destination pixel components
+ */
+typedef enum
+{
+    SDL_BLENDOPERATION_ADD              = 0x1,  /**< dst + src: supported by all renderers */
+    SDL_BLENDOPERATION_SUBTRACT         = 0x2,  /**< dst - src : supported by D3D9, D3D11, OpenGL, OpenGLES */
+    SDL_BLENDOPERATION_REV_SUBTRACT     = 0x3,  /**< src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES */
+    SDL_BLENDOPERATION_MINIMUM          = 0x4,  /**< min(dst, src) : supported by D3D11 */
+    SDL_BLENDOPERATION_MAXIMUM          = 0x5   /**< max(dst, src) : supported by D3D11 */
+
+} SDL_BlendOperation;
+
+/**
+ *  \brief The normalized factor used to multiply pixel components
+ */
+typedef enum
+{
+    SDL_BLENDFACTOR_ZERO                = 0x1,  /**< 0, 0, 0, 0 */
+    SDL_BLENDFACTOR_ONE                 = 0x2,  /**< 1, 1, 1, 1 */
+    SDL_BLENDFACTOR_SRC_COLOR           = 0x3,  /**< srcR, srcG, srcB, srcA */
+    SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR = 0x4,  /**< 1-srcR, 1-srcG, 1-srcB, 1-srcA */
+    SDL_BLENDFACTOR_SRC_ALPHA           = 0x5,  /**< srcA, srcA, srcA, srcA */
+    SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA = 0x6,  /**< 1-srcA, 1-srcA, 1-srcA, 1-srcA */
+    SDL_BLENDFACTOR_DST_COLOR           = 0x7,  /**< dstR, dstG, dstB, dstA */
+    SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR = 0x8,  /**< 1-dstR, 1-dstG, 1-dstB, 1-dstA */
+    SDL_BLENDFACTOR_DST_ALPHA           = 0x9,  /**< dstA, dstA, dstA, dstA */
+    SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA = 0xA   /**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */
+
+} SDL_BlendFactor;
+
+/**
+ *  \brief Create a custom blend mode, which may or may not be supported by a given renderer
+ *
+ *  \param srcColorFactor
+ *  \param dstColorFactor
+ *  \param colorOperation
+ *  \param srcAlphaFactor
+ *  \param dstAlphaFactor
+ *  \param alphaOperation
+ *
+ *  The result of the blend mode operation will be:
+ *      dstRGB = dstRGB * dstColorFactor colorOperation srcRGB * srcColorFactor
+ *  and
+ *      dstA = dstA * dstAlphaFactor alphaOperation srcA * srcAlphaFactor
+ */
+extern DECLSPEC SDL_BlendMode SDLCALL SDL_ComposeCustomBlendMode(SDL_BlendFactor srcColorFactor,
+                                                                 SDL_BlendFactor dstColorFactor,
+                                                                 SDL_BlendOperation colorOperation,
+                                                                 SDL_BlendFactor srcAlphaFactor,
+                                                                 SDL_BlendFactor dstAlphaFactor,
+                                                                 SDL_BlendOperation alphaOperation);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_blendmode_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_clipboard.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_clipboard.h
new file mode 100644
index 0000000..f28751e
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_clipboard.h
@@ -0,0 +1,71 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ * \file SDL_clipboard.h
+ *
+ * Include file for SDL clipboard handling
+ */
+
+#ifndef SDL_clipboard_h_
+#define SDL_clipboard_h_
+
+#include "SDL_stdinc.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Function prototypes */
+
+/**
+ * \brief Put UTF-8 text into the clipboard
+ *
+ * \sa SDL_GetClipboardText()
+ */
+extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text);
+
+/**
+ * \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free()
+ *
+ * \sa SDL_SetClipboardText()
+ */
+extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void);
+
+/**
+ * \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty
+ *
+ * \sa SDL_GetClipboardText()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_clipboard_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config.h
new file mode 100644
index 0000000..52a9ece
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config.h
@@ -0,0 +1,248 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_windows_h_
+#define SDL_config_windows_h_
+#define SDL_config_h_
+
+#include "SDL_platform.h"
+
+/* This is a set of defines to configure the SDL features */
+
+#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
+#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
+#define HAVE_STDINT_H   1
+#elif defined(_MSC_VER)
+typedef signed __int8 int8_t;
+typedef unsigned __int8 uint8_t;
+typedef signed __int16 int16_t;
+typedef unsigned __int16 uint16_t;
+typedef signed __int32 int32_t;
+typedef unsigned __int32 uint32_t;
+typedef signed __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#ifndef _UINTPTR_T_DEFINED
+#ifdef  _WIN64
+typedef unsigned __int64 uintptr_t;
+#else
+typedef unsigned int uintptr_t;
+#endif
+#define _UINTPTR_T_DEFINED
+#endif
+/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
+#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
+#define DWORD_PTR DWORD
+#endif
+#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
+#define LONG_PTR LONG
+#endif
+#else /* !__GNUC__ && !_MSC_VER */
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef signed short int16_t;
+typedef unsigned short uint16_t;
+typedef signed int int32_t;
+typedef unsigned int uint32_t;
+typedef signed long long int64_t;
+typedef unsigned long long uint64_t;
+#ifndef _SIZE_T_DEFINED_
+#define _SIZE_T_DEFINED_
+typedef unsigned int size_t;
+#endif
+typedef unsigned int uintptr_t;
+#endif /* __GNUC__ || _MSC_VER */
+#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
+
+#ifdef _WIN64
+# define SIZEOF_VOIDP 8
+#else
+# define SIZEOF_VOIDP 4
+#endif
+
+#define HAVE_DDRAW_H 1
+#define HAVE_DINPUT_H 1
+#define HAVE_DSOUND_H 1
+#define HAVE_DXGI_H 1
+#define HAVE_XINPUT_H 1
+
+/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
+#ifdef HAVE_LIBC
+/* Useful headers */
+#define STDC_HEADERS 1
+#define HAVE_CTYPE_H 1
+#define HAVE_FLOAT_H 1
+#define HAVE_LIMITS_H 1
+#define HAVE_MATH_H 1
+#define HAVE_SIGNAL_H 1
+#define HAVE_STDIO_H 1
+#define HAVE_STRING_H 1
+
+/* C library functions */
+#define HAVE_MALLOC 1
+#define HAVE_CALLOC 1
+#define HAVE_REALLOC 1
+#define HAVE_FREE 1
+#define HAVE_ALLOCA 1
+#define HAVE_QSORT 1
+#define HAVE_ABS 1
+#define HAVE_MEMSET 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE 1
+#define HAVE_MEMCMP 1
+#define HAVE_STRLEN 1
+#define HAVE__STRREV 1
+/* These functions have security warnings, so we won't use them */
+/* #undef HAVE__STRUPR */
+/* #undef HAVE__STRLWR */
+#define HAVE_STRCHR 1
+#define HAVE_STRRCHR 1
+#define HAVE_STRSTR 1
+/* These functions have security warnings, so we won't use them */
+/* #undef HAVE__LTOA */
+/* #undef HAVE__ULTOA */
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL 1
+#define HAVE_STRTOD 1
+#define HAVE_ATOI 1
+#define HAVE_ATOF 1
+#define HAVE_STRCMP 1
+#define HAVE_STRNCMP 1
+#define HAVE__STRICMP 1
+#define HAVE__STRNICMP 1
+#define HAVE_ACOS   1
+#define HAVE_ACOSF  1
+#define HAVE_ASIN   1
+#define HAVE_ASINF  1
+#define HAVE_ATAN   1
+#define HAVE_ATANF  1
+#define HAVE_ATAN2  1
+#define HAVE_ATAN2F 1
+#define HAVE_CEILF  1
+#define HAVE__COPYSIGN  1
+#define HAVE_COS    1
+#define HAVE_COSF   1
+#define HAVE_FABS   1
+#define HAVE_FABSF  1
+#define HAVE_FLOOR  1
+#define HAVE_FLOORF 1
+#define HAVE_FMOD   1
+#define HAVE_FMODF  1
+#define HAVE_LOG    1
+#define HAVE_LOGF   1
+#define HAVE_LOG10  1
+#define HAVE_LOG10F 1
+#define HAVE_POW    1
+#define HAVE_POWF   1
+#define HAVE_SIN    1
+#define HAVE_SINF   1
+#define HAVE_SQRT   1
+#define HAVE_SQRTF  1
+#define HAVE_TAN    1
+#define HAVE_TANF   1
+#if defined(_MSC_VER)
+/* These functions were added with the VC++ 2013 C runtime library */
+#if _MSC_VER >= 1800
+#define HAVE_STRTOLL 1
+#define HAVE_VSSCANF 1
+#define HAVE_SCALBN 1
+#define HAVE_SCALBNF    1
+#endif
+/* This function is available with at least the VC++ 2008 C runtime library */
+#if _MSC_VER >= 1400
+#define HAVE__FSEEKI64 1
+#endif
+#endif
+#if !defined(_MSC_VER) || defined(_USE_MATH_DEFINES)
+#define HAVE_M_PI 1
+#endif
+#else
+#define HAVE_STDARG_H   1
+#define HAVE_STDDEF_H   1
+#endif
+
+/* Enable various audio drivers */
+#define SDL_AUDIO_DRIVER_WASAPI 1
+#define SDL_AUDIO_DRIVER_DSOUND 1
+#define SDL_AUDIO_DRIVER_WINMM  1
+#define SDL_AUDIO_DRIVER_DISK   1
+#define SDL_AUDIO_DRIVER_DUMMY  1
+
+/* Enable various input drivers */
+#define SDL_JOYSTICK_DINPUT 1
+#define SDL_JOYSTICK_XINPUT 1
+#define SDL_HAPTIC_DINPUT   1
+#define SDL_HAPTIC_XINPUT   1
+
+/* Enable various shared object loading systems */
+#define SDL_LOADSO_WINDOWS  1
+
+/* Enable various threading systems */
+#define SDL_THREAD_WINDOWS  1
+
+/* Enable various timer systems */
+#define SDL_TIMER_WINDOWS   1
+
+/* Enable various video drivers */
+#define SDL_VIDEO_DRIVER_DUMMY  1
+#define SDL_VIDEO_DRIVER_WINDOWS    1
+
+#ifndef SDL_VIDEO_RENDER_D3D
+#define SDL_VIDEO_RENDER_D3D    1
+#endif
+#ifndef SDL_VIDEO_RENDER_D3D11
+#define SDL_VIDEO_RENDER_D3D11  0
+#endif
+
+/* Enable OpenGL support */
+#ifndef SDL_VIDEO_OPENGL
+#define SDL_VIDEO_OPENGL    1
+#endif
+#ifndef SDL_VIDEO_OPENGL_WGL
+#define SDL_VIDEO_OPENGL_WGL    1
+#endif
+#ifndef SDL_VIDEO_RENDER_OGL
+#define SDL_VIDEO_RENDER_OGL    1
+#endif
+#ifndef SDL_VIDEO_RENDER_OGL_ES2
+#define SDL_VIDEO_RENDER_OGL_ES2    1
+#endif
+#ifndef SDL_VIDEO_OPENGL_ES2
+#define SDL_VIDEO_OPENGL_ES2    1
+#endif
+#ifndef SDL_VIDEO_OPENGL_EGL
+#define SDL_VIDEO_OPENGL_EGL    1
+#endif
+
+/* Enable Vulkan support */
+#define SDL_VIDEO_VULKAN 1
+
+/* Enable system power support */
+#define SDL_POWER_WINDOWS 1
+
+/* Enable filesystem support */
+#define SDL_FILESYSTEM_WINDOWS  1
+
+/* Enable assembly routines (Win64 doesn't have inline asm) */
+#ifndef _WIN64
+#define SDL_ASSEMBLY_ROUTINES   1
+#endif
+
+#endif /* SDL_config_windows_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config.h.cmake b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config.h.cmake
new file mode 100644
index 0000000..c57266c
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config.h.cmake
@@ -0,0 +1,445 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_h_
+#define SDL_config_h_
+
+/**
+ *  \file SDL_config.h.in
+ *
+ *  This is a set of defines to configure the SDL features
+ */
+
+/* General platform specific identifiers */
+#include "SDL_platform.h"
+
+/* C language features */
+#cmakedefine const @HAVE_CONST@
+#cmakedefine inline @HAVE_INLINE@
+#cmakedefine volatile @HAVE_VOLATILE@
+
+/* C datatypes */
+/* Define SIZEOF_VOIDP for 64/32 architectures */
+#ifdef __LP64__
+#define SIZEOF_VOIDP 8
+#else
+#define SIZEOF_VOIDP 4
+#endif
+
+#cmakedefine HAVE_GCC_ATOMICS @HAVE_GCC_ATOMICS@
+#cmakedefine HAVE_GCC_SYNC_LOCK_TEST_AND_SET @HAVE_GCC_SYNC_LOCK_TEST_AND_SET@
+
+#cmakedefine HAVE_D3D_H @HAVE_D3D_H@
+#cmakedefine HAVE_D3D11_H @HAVE_D3D11_H@
+#cmakedefine HAVE_DDRAW_H @HAVE_DDRAW_H@
+#cmakedefine HAVE_DSOUND_H @HAVE_DSOUND_H@
+#cmakedefine HAVE_DINPUT_H @HAVE_DINPUT_H@
+#cmakedefine HAVE_XAUDIO2_H @HAVE_XAUDIO2_H@
+#cmakedefine HAVE_XINPUT_H @HAVE_XINPUT_H@
+#cmakedefine HAVE_DXGI_H @HAVE_DXGI_H@
+#cmakedefine HAVE_XINPUT_GAMEPAD_EX @HAVE_XINPUT_GAMEPAD_EX@
+#cmakedefine HAVE_XINPUT_STATE_EX @HAVE_XINPUT_STATE_EX@
+
+/* Comment this if you want to build without any C library requirements */
+#cmakedefine HAVE_LIBC 1
+#if HAVE_LIBC
+
+/* Useful headers */
+#cmakedefine HAVE_ALLOCA_H 1
+#cmakedefine HAVE_SYS_TYPES_H 1
+#cmakedefine HAVE_STDIO_H 1
+#cmakedefine STDC_HEADERS 1
+#cmakedefine HAVE_STDLIB_H 1
+#cmakedefine HAVE_STDARG_H 1
+#cmakedefine HAVE_MALLOC_H 1
+#cmakedefine HAVE_MEMORY_H 1
+#cmakedefine HAVE_STRING_H 1
+#cmakedefine HAVE_STRINGS_H 1
+#cmakedefine HAVE_WCHAR_H 1
+#cmakedefine HAVE_INTTYPES_H 1
+#cmakedefine HAVE_STDINT_H 1
+#cmakedefine HAVE_CTYPE_H 1
+#cmakedefine HAVE_MATH_H 1
+#cmakedefine HAVE_ICONV_H 1
+#cmakedefine HAVE_SIGNAL_H 1
+#cmakedefine HAVE_ALTIVEC_H 1
+#cmakedefine HAVE_PTHREAD_NP_H 1
+#cmakedefine HAVE_LIBUDEV_H 1
+#cmakedefine HAVE_DBUS_DBUS_H 1
+#cmakedefine HAVE_IBUS_IBUS_H 1
+#cmakedefine HAVE_FCITX_FRONTEND_H 1
+#cmakedefine HAVE_LIBSAMPLERATE_H 1
+
+/* C library functions */
+#cmakedefine HAVE_MALLOC 1
+#cmakedefine HAVE_CALLOC 1
+#cmakedefine HAVE_REALLOC 1
+#cmakedefine HAVE_FREE 1
+#cmakedefine HAVE_ALLOCA 1
+#ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
+#cmakedefine HAVE_GETENV 1
+#cmakedefine HAVE_SETENV 1
+#cmakedefine HAVE_PUTENV 1
+#cmakedefine HAVE_UNSETENV 1
+#endif
+#cmakedefine HAVE_QSORT 1
+#cmakedefine HAVE_ABS 1
+#cmakedefine HAVE_BCOPY 1
+#cmakedefine HAVE_MEMSET 1
+#cmakedefine HAVE_MEMCPY 1
+#cmakedefine HAVE_MEMMOVE 1
+#cmakedefine HAVE_MEMCMP 1
+#cmakedefine HAVE_WCSLEN 1
+#cmakedefine HAVE_WCSLCPY 1
+#cmakedefine HAVE_WCSLCAT 1
+#cmakedefine HAVE_WCSCMP 1
+#cmakedefine HAVE_STRLEN 1
+#cmakedefine HAVE_STRLCPY 1
+#cmakedefine HAVE_STRLCAT 1
+#cmakedefine HAVE_STRDUP 1
+#cmakedefine HAVE__STRREV 1
+#cmakedefine HAVE__STRUPR 1
+#cmakedefine HAVE__STRLWR 1
+#cmakedefine HAVE_INDEX 1
+#cmakedefine HAVE_RINDEX 1
+#cmakedefine HAVE_STRCHR 1
+#cmakedefine HAVE_STRRCHR 1
+#cmakedefine HAVE_STRSTR 1
+#cmakedefine HAVE_ITOA 1
+#cmakedefine HAVE__LTOA 1
+#cmakedefine HAVE__UITOA 1
+#cmakedefine HAVE__ULTOA 1
+#cmakedefine HAVE_STRTOL 1
+#cmakedefine HAVE_STRTOUL 1
+#cmakedefine HAVE__I64TOA 1
+#cmakedefine HAVE__UI64TOA 1
+#cmakedefine HAVE_STRTOLL 1
+#cmakedefine HAVE_STRTOULL 1
+#cmakedefine HAVE_STRTOD 1
+#cmakedefine HAVE_ATOI 1
+#cmakedefine HAVE_ATOF 1
+#cmakedefine HAVE_STRCMP 1
+#cmakedefine HAVE_STRNCMP 1
+#cmakedefine HAVE__STRICMP 1
+#cmakedefine HAVE_STRCASECMP 1
+#cmakedefine HAVE__STRNICMP 1
+#cmakedefine HAVE_STRNCASECMP 1
+#cmakedefine HAVE_VSSCANF 1
+#cmakedefine HAVE_VSNPRINTF 1
+#cmakedefine HAVE_M_PI 1
+#cmakedefine HAVE_ATAN 1
+#cmakedefine HAVE_ATAN2 1
+#cmakedefine HAVE_ACOS 1
+#cmakedefine HAVE_ASIN 1
+#cmakedefine HAVE_CEIL 1
+#cmakedefine HAVE_COPYSIGN 1
+#cmakedefine HAVE_COS 1
+#cmakedefine HAVE_COSF 1
+#cmakedefine HAVE_FABS 1
+#cmakedefine HAVE_FLOOR 1
+#cmakedefine HAVE_LOG 1
+#cmakedefine HAVE_POW 1
+#cmakedefine HAVE_SCALBN 1
+#cmakedefine HAVE_SIN 1
+#cmakedefine HAVE_SINF 1
+#cmakedefine HAVE_SQRT 1
+#cmakedefine HAVE_SQRTF 1
+#cmakedefine HAVE_TAN 1
+#cmakedefine HAVE_TANF 1
+#cmakedefine HAVE_FOPEN64 1
+#cmakedefine HAVE_FSEEKO 1
+#cmakedefine HAVE_FSEEKO64 1
+#cmakedefine HAVE_SIGACTION 1
+#cmakedefine HAVE_SA_SIGACTION 1
+#cmakedefine HAVE_SETJMP 1
+#cmakedefine HAVE_NANOSLEEP 1
+#cmakedefine HAVE_SYSCONF 1
+#cmakedefine HAVE_SYSCTLBYNAME 1
+#cmakedefine HAVE_CLOCK_GETTIME 1
+#cmakedefine HAVE_GETPAGESIZE 1
+#cmakedefine HAVE_MPROTECT 1
+#cmakedefine HAVE_ICONV 1
+#cmakedefine HAVE_PTHREAD_SETNAME_NP 1
+#cmakedefine HAVE_PTHREAD_SET_NAME_NP 1
+#cmakedefine HAVE_SEM_TIMEDWAIT 1
+#cmakedefine HAVE_GETAUXVAL 1
+#cmakedefine HAVE_POLL 1
+
+#elif __WIN32__
+#cmakedefine HAVE_STDARG_H 1
+#cmakedefine HAVE_STDDEF_H 1
+#else
+/* We may need some replacement for stdarg.h here */
+#include <stdarg.h>
+#endif /* HAVE_LIBC */
+
+/* SDL internal assertion support */
+#cmakedefine SDL_DEFAULT_ASSERT_LEVEL @SDL_DEFAULT_ASSERT_LEVEL@
+
+/* Allow disabling of core subsystems */
+#cmakedefine SDL_ATOMIC_DISABLED @SDL_ATOMIC_DISABLED@
+#cmakedefine SDL_AUDIO_DISABLED @SDL_AUDIO_DISABLED@
+#cmakedefine SDL_CPUINFO_DISABLED @SDL_CPUINFO_DISABLED@
+#cmakedefine SDL_EVENTS_DISABLED @SDL_EVENTS_DISABLED@
+#cmakedefine SDL_FILE_DISABLED @SDL_FILE_DISABLED@
+#cmakedefine SDL_JOYSTICK_DISABLED @SDL_JOYSTICK_DISABLED@
+#cmakedefine SDL_HAPTIC_DISABLED @SDL_HAPTIC_DISABLED@
+#cmakedefine SDL_LOADSO_DISABLED @SDL_LOADSO_DISABLED@
+#cmakedefine SDL_RENDER_DISABLED @SDL_RENDER_DISABLED@
+#cmakedefine SDL_THREADS_DISABLED @SDL_THREADS_DISABLED@
+#cmakedefine SDL_TIMERS_DISABLED @SDL_TIMERS_DISABLED@
+#cmakedefine SDL_VIDEO_DISABLED @SDL_VIDEO_DISABLED@
+#cmakedefine SDL_POWER_DISABLED @SDL_POWER_DISABLED@
+#cmakedefine SDL_FILESYSTEM_DISABLED @SDL_FILESYSTEM_DISABLED@
+
+/* Enable various audio drivers */
+#cmakedefine SDL_AUDIO_DRIVER_ALSA @SDL_AUDIO_DRIVER_ALSA@
+#cmakedefine SDL_AUDIO_DRIVER_ALSA_DYNAMIC @SDL_AUDIO_DRIVER_ALSA_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_ANDROID @SDL_AUDIO_DRIVER_ANDROID@
+#cmakedefine SDL_AUDIO_DRIVER_ARTS @SDL_AUDIO_DRIVER_ARTS@
+#cmakedefine SDL_AUDIO_DRIVER_ARTS_DYNAMIC @SDL_AUDIO_DRIVER_ARTS_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_COREAUDIO @SDL_AUDIO_DRIVER_COREAUDIO@
+#cmakedefine SDL_AUDIO_DRIVER_DISK @SDL_AUDIO_DRIVER_DISK@
+#cmakedefine SDL_AUDIO_DRIVER_DSOUND @SDL_AUDIO_DRIVER_DSOUND@
+#cmakedefine SDL_AUDIO_DRIVER_DUMMY @SDL_AUDIO_DRIVER_DUMMY@
+#cmakedefine SDL_AUDIO_DRIVER_EMSCRIPTEN @SDL_AUDIO_DRIVER_EMSCRIPTEN@
+#cmakedefine SDL_AUDIO_DRIVER_ESD @SDL_AUDIO_DRIVER_ESD@
+#cmakedefine SDL_AUDIO_DRIVER_ESD_DYNAMIC @SDL_AUDIO_DRIVER_ESD_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_FUSIONSOUND @SDL_AUDIO_DRIVER_FUSIONSOUND@
+#cmakedefine SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC @SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_HAIKU @SDL_AUDIO_DRIVER_HAIKU@
+#cmakedefine SDL_AUDIO_DRIVER_JACK @SDL_AUDIO_DRIVER_JACK@
+#cmakedefine SDL_AUDIO_DRIVER_JACK_DYNAMIC @SDL_AUDIO_DRIVER_JACK_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_NAS @SDL_AUDIO_DRIVER_NAS@
+#cmakedefine SDL_AUDIO_DRIVER_NAS_DYNAMIC @SDL_AUDIO_DRIVER_NAS_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_NETBSD @SDL_AUDIO_DRIVER_NETBSD@
+#cmakedefine SDL_AUDIO_DRIVER_OSS @SDL_AUDIO_DRIVER_OSS@
+#cmakedefine SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H @SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H@
+#cmakedefine SDL_AUDIO_DRIVER_PAUDIO @SDL_AUDIO_DRIVER_PAUDIO@
+#cmakedefine SDL_AUDIO_DRIVER_PULSEAUDIO @SDL_AUDIO_DRIVER_PULSEAUDIO@
+#cmakedefine SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC @SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_QSA @SDL_AUDIO_DRIVER_QSA@
+#cmakedefine SDL_AUDIO_DRIVER_SNDIO @SDL_AUDIO_DRIVER_SNDIO@
+#cmakedefine SDL_AUDIO_DRIVER_SNDIO_DYNAMIC @SDL_AUDIO_DRIVER_SNDIO_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_SUNAUDIO @SDL_AUDIO_DRIVER_SUNAUDIO@
+#cmakedefine SDL_AUDIO_DRIVER_WASAPI @SDL_AUDIO_DRIVER_WASAPI@
+#cmakedefine SDL_AUDIO_DRIVER_WINMM @SDL_AUDIO_DRIVER_WINMM@
+#cmakedefine SDL_AUDIO_DRIVER_XAUDIO2 @SDL_AUDIO_DRIVER_XAUDIO2@
+
+/* Enable various input drivers */
+#cmakedefine SDL_INPUT_LINUXEV @SDL_INPUT_LINUXEV@
+#cmakedefine SDL_INPUT_LINUXKD @SDL_INPUT_LINUXKD@
+#cmakedefine SDL_INPUT_TSLIB @SDL_INPUT_TSLIB@
+#cmakedefine SDL_JOYSTICK_ANDROID @SDL_JOYSTICK_ANDROID@
+#cmakedefine SDL_JOYSTICK_HAIKU @SDL_JOYSTICK_HAIKU@
+#cmakedefine SDL_JOYSTICK_DINPUT @SDL_JOYSTICK_DINPUT@
+#cmakedefine SDL_JOYSTICK_XINPUT @SDL_JOYSTICK_XINPUT@
+#cmakedefine SDL_JOYSTICK_DUMMY @SDL_JOYSTICK_DUMMY@
+#cmakedefine SDL_JOYSTICK_IOKIT @SDL_JOYSTICK_IOKIT@
+#cmakedefine SDL_JOYSTICK_MFI @SDL_JOYSTICK_MFI@
+#cmakedefine SDL_JOYSTICK_LINUX @SDL_JOYSTICK_LINUX@
+#cmakedefine SDL_JOYSTICK_WINMM @SDL_JOYSTICK_WINMM@
+#cmakedefine SDL_JOYSTICK_USBHID @SDL_JOYSTICK_USBHID@
+#cmakedefine SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H @SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H@
+#cmakedefine SDL_JOYSTICK_EMSCRIPTEN @SDL_JOYSTICK_EMSCRIPTEN@
+#cmakedefine SDL_HAPTIC_DUMMY @SDL_HAPTIC_DUMMY@
+#cmakedefine SDL_HAPTIC_LINUX @SDL_HAPTIC_LINUX@
+#cmakedefine SDL_HAPTIC_IOKIT @SDL_HAPTIC_IOKIT@
+#cmakedefine SDL_HAPTIC_DINPUT @SDL_HAPTIC_DINPUT@
+#cmakedefine SDL_HAPTIC_XINPUT @SDL_HAPTIC_XINPUT@
+#cmakedefine SDL_HAPTIC_ANDROID @SDL_HAPTIC_ANDROID@
+
+/* Enable various shared object loading systems */
+#cmakedefine SDL_LOADSO_DLOPEN @SDL_LOADSO_DLOPEN@
+#cmakedefine SDL_LOADSO_DUMMY @SDL_LOADSO_DUMMY@
+#cmakedefine SDL_LOADSO_LDG @SDL_LOADSO_LDG@
+#cmakedefine SDL_LOADSO_WINDOWS @SDL_LOADSO_WINDOWS@
+
+/* Enable various threading systems */
+#cmakedefine SDL_THREAD_PTHREAD @SDL_THREAD_PTHREAD@
+#cmakedefine SDL_THREAD_PTHREAD_RECURSIVE_MUTEX @SDL_THREAD_PTHREAD_RECURSIVE_MUTEX@
+#cmakedefine SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP @SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP@
+#cmakedefine SDL_THREAD_WINDOWS @SDL_THREAD_WINDOWS@
+
+/* Enable various timer systems */
+#cmakedefine SDL_TIMER_HAIKU @SDL_TIMER_HAIKU@
+#cmakedefine SDL_TIMER_DUMMY @SDL_TIMER_DUMMY@
+#cmakedefine SDL_TIMER_UNIX @SDL_TIMER_UNIX@
+#cmakedefine SDL_TIMER_WINDOWS @SDL_TIMER_WINDOWS@
+#cmakedefine SDL_TIMER_WINCE @SDL_TIMER_WINCE@
+
+/* Enable various video drivers */
+#cmakedefine SDL_VIDEO_DRIVER_ANDROID @SDL_VIDEO_DRIVER_ANDROID@
+#cmakedefine SDL_VIDEO_DRIVER_HAIKU @SDL_VIDEO_DRIVER_HAIKU@
+#cmakedefine SDL_VIDEO_DRIVER_COCOA @SDL_VIDEO_DRIVER_COCOA@
+#cmakedefine SDL_VIDEO_DRIVER_DIRECTFB @SDL_VIDEO_DRIVER_DIRECTFB@
+#cmakedefine SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC @SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC@
+#cmakedefine SDL_VIDEO_DRIVER_DUMMY @SDL_VIDEO_DRIVER_DUMMY@
+#cmakedefine SDL_VIDEO_DRIVER_WINDOWS @SDL_VIDEO_DRIVER_WINDOWS@
+#cmakedefine SDL_VIDEO_DRIVER_WAYLAND @SDL_VIDEO_DRIVER_WAYLAND@
+#cmakedefine SDL_VIDEO_DRIVER_RPI @SDL_VIDEO_DRIVER_RPI@
+#cmakedefine SDL_VIDEO_DRIVER_VIVANTE @SDL_VIDEO_DRIVER_VIVANTE@
+#cmakedefine SDL_VIDEO_DRIVER_VIVANTE_VDK @SDL_VIDEO_DRIVER_VIVANTE_VDK@
+
+#cmakedefine SDL_VIDEO_DRIVER_KMSDRM @SDL_VIDEO_DRIVER_KMSDRM@
+#cmakedefine SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC @SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC@
+#cmakedefine SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM @SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM@
+
+#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH @SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH@
+#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC@
+#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL@
+#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR@
+#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON@
+
+#cmakedefine SDL_VIDEO_DRIVER_MIR @SDL_VIDEO_DRIVER_MIR@
+#cmakedefine SDL_VIDEO_DRIVER_MIR_DYNAMIC @SDL_VIDEO_DRIVER_MIR_DYNAMIC@
+#cmakedefine SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON @SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON@
+#cmakedefine SDL_VIDEO_DRIVER_EMSCRIPTEN @SDL_VIDEO_DRIVER_EMSCRIPTEN@
+#cmakedefine SDL_VIDEO_DRIVER_X11 @SDL_VIDEO_DRIVER_X11@
+#cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC @SDL_VIDEO_DRIVER_X11_DYNAMIC@
+#cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT @SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT@
+#cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR @SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR@
+#cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA @SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA@
+#cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 @SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2@
+#cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR @SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR@
+#cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS @SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS@
+#cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE @SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE@
+#cmakedefine SDL_VIDEO_DRIVER_X11_XCURSOR @SDL_VIDEO_DRIVER_X11_XCURSOR@
+#cmakedefine SDL_VIDEO_DRIVER_X11_XDBE @SDL_VIDEO_DRIVER_X11_XDBE@
+#cmakedefine SDL_VIDEO_DRIVER_X11_XINERAMA @SDL_VIDEO_DRIVER_X11_XINERAMA@
+#cmakedefine SDL_VIDEO_DRIVER_X11_XINPUT2 @SDL_VIDEO_DRIVER_X11_XINPUT2@
+#cmakedefine SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH @SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH@
+#cmakedefine SDL_VIDEO_DRIVER_X11_XRANDR @SDL_VIDEO_DRIVER_X11_XRANDR@
+#cmakedefine SDL_VIDEO_DRIVER_X11_XSCRNSAVER @SDL_VIDEO_DRIVER_X11_XSCRNSAVER@
+#cmakedefine SDL_VIDEO_DRIVER_X11_XSHAPE @SDL_VIDEO_DRIVER_X11_XSHAPE@
+#cmakedefine SDL_VIDEO_DRIVER_X11_XVIDMODE @SDL_VIDEO_DRIVER_X11_XVIDMODE@
+#cmakedefine SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS @SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS@
+#cmakedefine SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY @SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY@
+#cmakedefine SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM @SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM@
+
+#cmakedefine SDL_VIDEO_RENDER_D3D @SDL_VIDEO_RENDER_D3D@
+#cmakedefine SDL_VIDEO_RENDER_D3D11 @SDL_VIDEO_RENDER_D3D11@
+#cmakedefine SDL_VIDEO_RENDER_OGL @SDL_VIDEO_RENDER_OGL@
+#cmakedefine SDL_VIDEO_RENDER_OGL_ES @SDL_VIDEO_RENDER_OGL_ES@
+#cmakedefine SDL_VIDEO_RENDER_OGL_ES2 @SDL_VIDEO_RENDER_OGL_ES2@
+#cmakedefine SDL_VIDEO_RENDER_DIRECTFB @SDL_VIDEO_RENDER_DIRECTFB@
+
+/* Enable OpenGL support */
+#cmakedefine SDL_VIDEO_OPENGL @SDL_VIDEO_OPENGL@
+#cmakedefine SDL_VIDEO_OPENGL_ES @SDL_VIDEO_OPENGL_ES@
+#cmakedefine SDL_VIDEO_OPENGL_ES2 @SDL_VIDEO_OPENGL_ES2@
+#cmakedefine SDL_VIDEO_OPENGL_BGL @SDL_VIDEO_OPENGL_BGL@
+#cmakedefine SDL_VIDEO_OPENGL_CGL @SDL_VIDEO_OPENGL_CGL@
+#cmakedefine SDL_VIDEO_OPENGL_GLX @SDL_VIDEO_OPENGL_GLX@
+#cmakedefine SDL_VIDEO_OPENGL_WGL @SDL_VIDEO_OPENGL_WGL@
+#cmakedefine SDL_VIDEO_OPENGL_EGL @SDL_VIDEO_OPENGL_EGL@
+#cmakedefine SDL_VIDEO_OPENGL_OSMESA @SDL_VIDEO_OPENGL_OSMESA@
+#cmakedefine SDL_VIDEO_OPENGL_OSMESA_DYNAMIC @SDL_VIDEO_OPENGL_OSMESA_DYNAMIC@
+
+/* Enable Vulkan support */
+#cmakedefine SDL_VIDEO_VULKAN @SDL_VIDEO_VULKAN@
+
+/* Enable system power support */
+#cmakedefine SDL_POWER_ANDROID @SDL_POWER_ANDROID@
+#cmakedefine SDL_POWER_LINUX @SDL_POWER_LINUX@
+#cmakedefine SDL_POWER_WINDOWS @SDL_POWER_WINDOWS@
+#cmakedefine SDL_POWER_MACOSX @SDL_POWER_MACOSX@
+#cmakedefine SDL_POWER_HAIKU @SDL_POWER_HAIKU@
+#cmakedefine SDL_POWER_EMSCRIPTEN @SDL_POWER_EMSCRIPTEN@
+#cmakedefine SDL_POWER_HARDWIRED @SDL_POWER_HARDWIRED@
+
+/* Enable system filesystem support */
+#cmakedefine SDL_FILESYSTEM_ANDROID @SDL_FILESYSTEM_ANDROID@
+#cmakedefine SDL_FILESYSTEM_HAIKU @SDL_FILESYSTEM_HAIKU@
+#cmakedefine SDL_FILESYSTEM_COCOA @SDL_FILESYSTEM_COCOA@
+#cmakedefine SDL_FILESYSTEM_DUMMY @SDL_FILESYSTEM_DUMMY@
+#cmakedefine SDL_FILESYSTEM_UNIX @SDL_FILESYSTEM_UNIX@
+#cmakedefine SDL_FILESYSTEM_WINDOWS @SDL_FILESYSTEM_WINDOWS@
+#cmakedefine SDL_FILESYSTEM_EMSCRIPTEN @SDL_FILESYSTEM_EMSCRIPTEN@
+
+/* Enable assembly routines */
+#cmakedefine SDL_ASSEMBLY_ROUTINES @SDL_ASSEMBLY_ROUTINES@
+#cmakedefine SDL_ALTIVEC_BLITTERS @SDL_ALTIVEC_BLITTERS@
+
+/* Enable dynamic libsamplerate support */
+#cmakedefine SDL_LIBSAMPLERATE_DYNAMIC @SDL_LIBSAMPLERATE_DYNAMIC@
+
+/* Platform specific definitions */
+#if !defined(__WIN32__)
+#  if !defined(_STDINT_H_) && !defined(_STDINT_H) && !defined(HAVE_STDINT_H) && !defined(_HAVE_STDINT_H)
+typedef unsigned int size_t;
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef signed short int16_t;
+typedef unsigned short uint16_t;
+typedef signed int int32_t;
+typedef unsigned int uint32_t;
+typedef signed long long int64_t;
+typedef unsigned long long uint64_t;
+typedef unsigned long uintptr_t;
+#  endif /* if (stdint.h isn't available) */
+#else /* __WIN32__ */
+#  if !defined(_STDINT_H_) && !defined(HAVE_STDINT_H) && !defined(_HAVE_STDINT_H)
+#    if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
+#define HAVE_STDINT_H	1
+#    elif defined(_MSC_VER)
+typedef signed __int8 int8_t;
+typedef unsigned __int8 uint8_t;
+typedef signed __int16 int16_t;
+typedef unsigned __int16 uint16_t;
+typedef signed __int32 int32_t;
+typedef unsigned __int32 uint32_t;
+typedef signed __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#      ifndef _UINTPTR_T_DEFINED
+#        ifdef  _WIN64
+typedef unsigned __int64 uintptr_t;
+#          else
+typedef unsigned int uintptr_t;
+#        endif
+#define _UINTPTR_T_DEFINED
+#      endif
+/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
+#      if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
+#define DWORD_PTR DWORD
+#      endif
+#      if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
+#define LONG_PTR LONG
+#      endif
+#    else /* !__GNUC__ && !_MSC_VER */
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef signed short int16_t;
+typedef unsigned short uint16_t;
+typedef signed int int32_t;
+typedef unsigned int uint32_t;
+typedef signed long long int64_t;
+typedef unsigned long long uint64_t;
+#      ifndef _SIZE_T_DEFINED_
+#define _SIZE_T_DEFINED_
+typedef unsigned int size_t;
+#      endif
+typedef unsigned int uintptr_t;
+#    endif /* __GNUC__ || _MSC_VER */
+#  endif /* !_STDINT_H_ && !HAVE_STDINT_H */
+#endif /* __WIN32__ */
+
+#endif /* SDL_config_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config.h.in b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config.h.in
new file mode 100644
index 0000000..8b3d208
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config.h.in
@@ -0,0 +1,389 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_h_
+#define SDL_config_h_
+
+/**
+ *  \file SDL_config.h.in
+ *
+ *  This is a set of defines to configure the SDL features
+ */
+
+/* General platform specific identifiers */
+#include "SDL_platform.h"
+
+/* Make sure that this isn't included by Visual C++ */
+#ifdef _MSC_VER
+#error You should run hg revert SDL_config.h 
+#endif
+
+/* C language features */
+#undef const
+#undef inline
+#undef volatile
+
+/* C datatypes */
+#ifdef __LP64__
+#define SIZEOF_VOIDP 8
+#else
+#define SIZEOF_VOIDP 4
+#endif
+#undef HAVE_GCC_ATOMICS
+#undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET
+
+#undef HAVE_DDRAW_H
+#undef HAVE_DINPUT_H
+#undef HAVE_DSOUND_H
+#undef HAVE_DXGI_H
+#undef HAVE_XINPUT_H
+#undef HAVE_XINPUT_GAMEPAD_EX
+#undef HAVE_XINPUT_STATE_EX
+
+/* Comment this if you want to build without any C library requirements */
+#undef HAVE_LIBC
+#if HAVE_LIBC
+
+/* Useful headers */
+#undef HAVE_ALLOCA_H
+#undef HAVE_SYS_TYPES_H
+#undef HAVE_STDIO_H
+#undef STDC_HEADERS
+#undef HAVE_STDLIB_H
+#undef HAVE_STDARG_H
+#undef HAVE_MALLOC_H
+#undef HAVE_MEMORY_H
+#undef HAVE_STRING_H
+#undef HAVE_STRINGS_H
+#undef HAVE_WCHAR_H
+#undef HAVE_INTTYPES_H
+#undef HAVE_STDINT_H
+#undef HAVE_CTYPE_H
+#undef HAVE_MATH_H
+#undef HAVE_ICONV_H
+#undef HAVE_SIGNAL_H
+#undef HAVE_ALTIVEC_H
+#undef HAVE_PTHREAD_NP_H
+#undef HAVE_LIBUDEV_H
+#undef HAVE_DBUS_DBUS_H
+#undef HAVE_IBUS_IBUS_H
+#undef HAVE_FCITX_FRONTEND_H
+#undef HAVE_LIBSAMPLERATE_H
+
+/* C library functions */
+#undef HAVE_MALLOC
+#undef HAVE_CALLOC
+#undef HAVE_REALLOC
+#undef HAVE_FREE
+#undef HAVE_ALLOCA
+#ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
+#undef HAVE_GETENV
+#undef HAVE_SETENV
+#undef HAVE_PUTENV
+#undef HAVE_UNSETENV
+#endif
+#undef HAVE_QSORT
+#undef HAVE_ABS
+#undef HAVE_BCOPY
+#undef HAVE_MEMSET
+#undef HAVE_MEMCPY
+#undef HAVE_MEMMOVE
+#undef HAVE_MEMCMP
+#undef HAVE_WCSLEN
+#undef HAVE_WCSLCPY
+#undef HAVE_WCSLCAT
+#undef HAVE_WCSCMP
+#undef HAVE_STRLEN
+#undef HAVE_STRLCPY
+#undef HAVE_STRLCAT
+#undef HAVE_STRDUP
+#undef HAVE__STRREV
+#undef HAVE__STRUPR
+#undef HAVE__STRLWR
+#undef HAVE_INDEX
+#undef HAVE_RINDEX
+#undef HAVE_STRCHR
+#undef HAVE_STRRCHR
+#undef HAVE_STRSTR
+#undef HAVE_ITOA
+#undef HAVE__LTOA
+#undef HAVE__UITOA
+#undef HAVE__ULTOA
+#undef HAVE_STRTOL
+#undef HAVE_STRTOUL
+#undef HAVE__I64TOA
+#undef HAVE__UI64TOA
+#undef HAVE_STRTOLL
+#undef HAVE_STRTOULL
+#undef HAVE_STRTOD
+#undef HAVE_ATOI
+#undef HAVE_ATOF
+#undef HAVE_STRCMP
+#undef HAVE_STRNCMP
+#undef HAVE__STRICMP
+#undef HAVE_STRCASECMP
+#undef HAVE__STRNICMP
+#undef HAVE_STRNCASECMP
+#undef HAVE_SSCANF
+#undef HAVE_VSSCANF
+#undef HAVE_SNPRINTF
+#undef HAVE_VSNPRINTF
+#undef HAVE_M_PI
+#undef HAVE_ATAN
+#undef HAVE_ATAN2
+#undef HAVE_ACOS
+#undef HAVE_ASIN
+#undef HAVE_CEIL
+#undef HAVE_COPYSIGN
+#undef HAVE_COS
+#undef HAVE_COSF
+#undef HAVE_FABS
+#undef HAVE_FLOOR
+#undef HAVE_LOG
+#undef HAVE_POW
+#undef HAVE_SCALBN
+#undef HAVE_SIN
+#undef HAVE_SINF
+#undef HAVE_SQRT
+#undef HAVE_SQRTF
+#undef HAVE_TAN
+#undef HAVE_TANF
+#undef HAVE_FOPEN64
+#undef HAVE_FSEEKO
+#undef HAVE_FSEEKO64
+#undef HAVE_SIGACTION
+#undef HAVE_SA_SIGACTION
+#undef HAVE_SETJMP
+#undef HAVE_NANOSLEEP
+#undef HAVE_SYSCONF
+#undef HAVE_SYSCTLBYNAME
+#undef HAVE_CLOCK_GETTIME
+#undef HAVE_GETPAGESIZE
+#undef HAVE_MPROTECT
+#undef HAVE_ICONV
+#undef HAVE_PTHREAD_SETNAME_NP
+#undef HAVE_PTHREAD_SET_NAME_NP
+#undef HAVE_SEM_TIMEDWAIT
+#undef HAVE_GETAUXVAL
+#undef HAVE_POLL
+
+#else
+#define HAVE_STDARG_H   1
+#define HAVE_STDDEF_H   1
+#define HAVE_STDINT_H   1
+#endif /* HAVE_LIBC */
+
+/* SDL internal assertion support */
+#undef SDL_DEFAULT_ASSERT_LEVEL
+
+/* Allow disabling of core subsystems */
+#undef SDL_ATOMIC_DISABLED
+#undef SDL_AUDIO_DISABLED
+#undef SDL_CPUINFO_DISABLED
+#undef SDL_EVENTS_DISABLED
+#undef SDL_FILE_DISABLED
+#undef SDL_JOYSTICK_DISABLED
+#undef SDL_HAPTIC_DISABLED
+#undef SDL_LOADSO_DISABLED
+#undef SDL_RENDER_DISABLED
+#undef SDL_THREADS_DISABLED
+#undef SDL_TIMERS_DISABLED
+#undef SDL_VIDEO_DISABLED
+#undef SDL_POWER_DISABLED
+#undef SDL_FILESYSTEM_DISABLED
+
+/* Enable various audio drivers */
+#undef SDL_AUDIO_DRIVER_ALSA
+#undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
+#undef SDL_AUDIO_DRIVER_ANDROID
+#undef SDL_AUDIO_DRIVER_ARTS
+#undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC
+#undef SDL_AUDIO_DRIVER_COREAUDIO
+#undef SDL_AUDIO_DRIVER_DISK
+#undef SDL_AUDIO_DRIVER_DSOUND
+#undef SDL_AUDIO_DRIVER_DUMMY
+#undef SDL_AUDIO_DRIVER_EMSCRIPTEN
+#undef SDL_AUDIO_DRIVER_ESD
+#undef SDL_AUDIO_DRIVER_ESD_DYNAMIC
+#undef SDL_AUDIO_DRIVER_FUSIONSOUND
+#undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC
+#undef SDL_AUDIO_DRIVER_HAIKU
+#undef SDL_AUDIO_DRIVER_JACK
+#undef SDL_AUDIO_DRIVER_JACK_DYNAMIC
+#undef SDL_AUDIO_DRIVER_NACL
+#undef SDL_AUDIO_DRIVER_NAS
+#undef SDL_AUDIO_DRIVER_NAS_DYNAMIC
+#undef SDL_AUDIO_DRIVER_NETBSD
+#undef SDL_AUDIO_DRIVER_OSS
+#undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H
+#undef SDL_AUDIO_DRIVER_PAUDIO
+#undef SDL_AUDIO_DRIVER_PULSEAUDIO
+#undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC
+#undef SDL_AUDIO_DRIVER_QSA
+#undef SDL_AUDIO_DRIVER_SNDIO
+#undef SDL_AUDIO_DRIVER_SNDIO_DYNAMIC
+#undef SDL_AUDIO_DRIVER_SUNAUDIO
+#undef SDL_AUDIO_DRIVER_WASAPI
+#undef SDL_AUDIO_DRIVER_WINMM
+#undef SDL_AUDIO_DRIVER_XAUDIO2
+
+/* Enable various input drivers */
+#undef SDL_INPUT_LINUXEV
+#undef SDL_INPUT_LINUXKD
+#undef SDL_INPUT_TSLIB
+#undef SDL_JOYSTICK_HAIKU
+#undef SDL_JOYSTICK_DINPUT
+#undef SDL_JOYSTICK_XINPUT
+#undef SDL_JOYSTICK_DUMMY
+#undef SDL_JOYSTICK_IOKIT
+#undef SDL_JOYSTICK_LINUX
+#undef SDL_JOYSTICK_ANDROID
+#undef SDL_JOYSTICK_WINMM
+#undef SDL_JOYSTICK_USBHID
+#undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H
+#undef SDL_JOYSTICK_EMSCRIPTEN
+#undef SDL_HAPTIC_DUMMY
+#undef SDL_HAPTIC_LINUX
+#undef SDL_HAPTIC_IOKIT
+#undef SDL_HAPTIC_DINPUT
+#undef SDL_HAPTIC_XINPUT
+
+/* Enable various shared object loading systems */
+#undef SDL_LOADSO_DLOPEN
+#undef SDL_LOADSO_DUMMY
+#undef SDL_LOADSO_LDG
+#undef SDL_LOADSO_WINDOWS
+
+/* Enable various threading systems */
+#undef SDL_THREAD_PTHREAD
+#undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
+#undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP
+#undef SDL_THREAD_WINDOWS
+
+/* Enable various timer systems */
+#undef SDL_TIMER_HAIKU
+#undef SDL_TIMER_DUMMY
+#undef SDL_TIMER_UNIX
+#undef SDL_TIMER_WINDOWS
+
+/* Enable various video drivers */
+#undef SDL_VIDEO_DRIVER_HAIKU
+#undef SDL_VIDEO_DRIVER_COCOA
+#undef SDL_VIDEO_DRIVER_DIRECTFB
+#undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC
+#undef SDL_VIDEO_DRIVER_DUMMY
+#undef SDL_VIDEO_DRIVER_WINDOWS
+#undef SDL_VIDEO_DRIVER_WAYLAND
+#undef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
+#undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
+#undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL
+#undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR
+#undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON
+#undef SDL_VIDEO_DRIVER_MIR
+#undef SDL_VIDEO_DRIVER_MIR_DYNAMIC
+#undef SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON
+#undef SDL_VIDEO_DRIVER_X11
+#undef SDL_VIDEO_DRIVER_RPI
+#undef SDL_VIDEO_DRIVER_KMSDRM
+#undef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC
+#undef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM
+#undef SDL_VIDEO_DRIVER_ANDROID
+#undef SDL_VIDEO_DRIVER_EMSCRIPTEN
+#undef SDL_VIDEO_DRIVER_X11_DYNAMIC
+#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
+#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR
+#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA
+#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2
+#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR
+#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS
+#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE
+#undef SDL_VIDEO_DRIVER_X11_XCURSOR
+#undef SDL_VIDEO_DRIVER_X11_XDBE
+#undef SDL_VIDEO_DRIVER_X11_XINERAMA
+#undef SDL_VIDEO_DRIVER_X11_XINPUT2
+#undef SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
+#undef SDL_VIDEO_DRIVER_X11_XRANDR
+#undef SDL_VIDEO_DRIVER_X11_XSCRNSAVER
+#undef SDL_VIDEO_DRIVER_X11_XSHAPE
+#undef SDL_VIDEO_DRIVER_X11_XVIDMODE
+#undef SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
+#undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY
+#undef SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
+#undef SDL_VIDEO_DRIVER_NACL
+#undef SDL_VIDEO_DRIVER_VIVANTE
+#undef SDL_VIDEO_DRIVER_VIVANTE_VDK
+#undef SDL_VIDEO_DRIVER_QNX
+
+#undef SDL_VIDEO_RENDER_D3D
+#undef SDL_VIDEO_RENDER_D3D11
+#undef SDL_VIDEO_RENDER_OGL
+#undef SDL_VIDEO_RENDER_OGL_ES
+#undef SDL_VIDEO_RENDER_OGL_ES2
+#undef SDL_VIDEO_RENDER_DIRECTFB
+
+/* Enable OpenGL support */
+#undef SDL_VIDEO_OPENGL
+#undef SDL_VIDEO_OPENGL_ES
+#undef SDL_VIDEO_OPENGL_ES2
+#undef SDL_VIDEO_OPENGL_BGL
+#undef SDL_VIDEO_OPENGL_CGL
+#undef SDL_VIDEO_OPENGL_EGL
+#undef SDL_VIDEO_OPENGL_GLX
+#undef SDL_VIDEO_OPENGL_WGL
+#undef SDL_VIDEO_OPENGL_OSMESA
+#undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC
+
+/* Enable Vulkan support */
+#undef SDL_VIDEO_VULKAN
+
+/* Enable system power support */
+#undef SDL_POWER_LINUX
+#undef SDL_POWER_WINDOWS
+#undef SDL_POWER_MACOSX
+#undef SDL_POWER_HAIKU
+#undef SDL_POWER_ANDROID
+#undef SDL_POWER_EMSCRIPTEN
+#undef SDL_POWER_HARDWIRED
+
+/* Enable system filesystem support */
+#undef SDL_FILESYSTEM_HAIKU
+#undef SDL_FILESYSTEM_COCOA
+#undef SDL_FILESYSTEM_DUMMY
+#undef SDL_FILESYSTEM_UNIX
+#undef SDL_FILESYSTEM_WINDOWS
+#undef SDL_FILESYSTEM_NACL
+#undef SDL_FILESYSTEM_ANDROID
+#undef SDL_FILESYSTEM_EMSCRIPTEN
+
+/* Enable assembly routines */
+#undef SDL_ASSEMBLY_ROUTINES
+#undef SDL_ALTIVEC_BLITTERS
+
+/* Enable ime support */
+#undef SDL_USE_IME
+
+/* Enable dynamic udev support */
+#undef SDL_UDEV_DYNAMIC
+
+/* Enable dynamic libsamplerate support */
+#undef SDL_LIBSAMPLERATE_DYNAMIC
+
+#endif /* SDL_config_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_android.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_android.h
new file mode 100644
index 0000000..361bad8
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_android.h
@@ -0,0 +1,157 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_android_h_
+#define SDL_config_android_h_
+#define SDL_config_h_
+
+#include "SDL_platform.h"
+
+/**
+ *  \file SDL_config_android.h
+ *
+ *  This is a configuration that can be used to build SDL for Android
+ */
+
+#include <stdarg.h>
+
+#define HAVE_GCC_ATOMICS    1
+
+#define HAVE_ALLOCA_H       1
+#define HAVE_SYS_TYPES_H    1
+#define HAVE_STDIO_H    1
+#define STDC_HEADERS    1
+#define HAVE_STRING_H   1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H   1
+#define HAVE_CTYPE_H    1
+#define HAVE_MATH_H 1
+#define HAVE_SIGNAL_H 1
+
+/* C library functions */
+#define HAVE_MALLOC 1
+#define HAVE_CALLOC 1
+#define HAVE_REALLOC    1
+#define HAVE_FREE   1
+#define HAVE_ALLOCA 1
+#define HAVE_GETENV 1
+#define HAVE_SETENV 1
+#define HAVE_PUTENV 1
+#define HAVE_SETENV 1
+#define HAVE_UNSETENV   1
+#define HAVE_QSORT  1
+#define HAVE_ABS    1
+#define HAVE_BCOPY  1
+#define HAVE_MEMSET 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE    1
+#define HAVE_MEMCMP 1
+#define HAVE_STRLEN 1
+#define HAVE_STRLCPY    1
+#define HAVE_STRLCAT    1
+#define HAVE_STRDUP 1
+#define HAVE_STRCHR 1
+#define HAVE_STRRCHR    1
+#define HAVE_STRSTR 1
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL    1
+#define HAVE_STRTOLL    1
+#define HAVE_STRTOULL   1
+#define HAVE_STRTOD 1
+#define HAVE_ATOI   1
+#define HAVE_ATOF 1
+#define HAVE_STRCMP 1
+#define HAVE_STRNCMP    1
+#define HAVE_STRCASECMP 1
+#define HAVE_STRNCASECMP 1
+#define HAVE_VSSCANF 1
+#define HAVE_VSNPRINTF  1
+#define HAVE_M_PI   1
+#define HAVE_ATAN   1
+#define HAVE_ATAN2  1
+#define HAVE_ACOS  1
+#define HAVE_ASIN  1
+#define HAVE_CEIL   1
+#define HAVE_COPYSIGN   1
+#define HAVE_COS    1
+#define HAVE_COSF   1
+#define HAVE_FABS   1
+#define HAVE_FLOOR  1
+#define HAVE_LOG    1
+#define HAVE_POW    1
+#define HAVE_SCALBN 1
+#define HAVE_SIN    1
+#define HAVE_SINF   1
+#define HAVE_SQRT   1
+#define HAVE_SQRTF  1
+#define HAVE_TAN    1
+#define HAVE_TANF   1
+#define HAVE_SIGACTION 1
+#define HAVE_SETJMP 1
+#define HAVE_NANOSLEEP  1
+#define HAVE_SYSCONF    1
+#define HAVE_CLOCK_GETTIME	1
+
+#define SIZEOF_VOIDP 4
+
+/* Enable various audio drivers */
+#define SDL_AUDIO_DRIVER_ANDROID    1
+#define SDL_AUDIO_DRIVER_DUMMY  1
+
+/* Enable various input drivers */
+#define SDL_JOYSTICK_ANDROID    1
+#define SDL_HAPTIC_ANDROID    1
+
+/* Enable various shared object loading systems */
+#define SDL_LOADSO_DLOPEN   1
+
+/* Enable various threading systems */
+#define SDL_THREAD_PTHREAD  1
+#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX  1
+
+/* Enable various timer systems */
+#define SDL_TIMER_UNIX  1
+
+/* Enable various video drivers */
+#define SDL_VIDEO_DRIVER_ANDROID 1
+
+/* Enable OpenGL ES */
+#define SDL_VIDEO_OPENGL_ES 1
+#define SDL_VIDEO_OPENGL_ES2 1
+#define SDL_VIDEO_OPENGL_EGL 1
+#define SDL_VIDEO_RENDER_OGL_ES 1
+#define SDL_VIDEO_RENDER_OGL_ES2    1
+
+/* Enable Vulkan support */
+/* Android does not support Vulkan in native code using the "armeabi" ABI. */
+#if defined(__ARM_ARCH) && __ARM_ARCH < 7
+#define SDL_VIDEO_VULKAN 0
+#else
+#define SDL_VIDEO_VULKAN 1
+#endif
+
+/* Enable system power support */
+#define SDL_POWER_ANDROID 1
+
+/* Enable the filesystem driver */
+#define SDL_FILESYSTEM_ANDROID   1
+
+#endif /* SDL_config_android_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_iphoneos.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_iphoneos.h
new file mode 100644
index 0000000..deea030
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_iphoneos.h
@@ -0,0 +1,166 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_iphoneos_h_
+#define SDL_config_iphoneos_h_
+#define SDL_config_h_
+
+#include "SDL_platform.h"
+
+#ifdef __LP64__
+#define SIZEOF_VOIDP 8
+#else
+#define SIZEOF_VOIDP 4
+#endif
+
+#define HAVE_GCC_ATOMICS    1
+
+#define HAVE_ALLOCA_H       1
+#define HAVE_SYS_TYPES_H    1
+#define HAVE_STDIO_H    1
+#define STDC_HEADERS    1
+#define HAVE_STRING_H   1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H   1
+#define HAVE_CTYPE_H    1
+#define HAVE_MATH_H 1
+#define HAVE_SIGNAL_H   1
+
+/* C library functions */
+#define HAVE_MALLOC 1
+#define HAVE_CALLOC 1
+#define HAVE_REALLOC    1
+#define HAVE_FREE   1
+#define HAVE_ALLOCA 1
+#define HAVE_GETENV 1
+#define HAVE_SETENV 1
+#define HAVE_PUTENV 1
+#define HAVE_SETENV 1
+#define HAVE_UNSETENV   1
+#define HAVE_QSORT  1
+#define HAVE_ABS    1
+#define HAVE_BCOPY  1
+#define HAVE_MEMSET 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE    1
+#define HAVE_MEMCMP 1
+#define HAVE_STRLEN 1
+#define HAVE_STRLCPY    1
+#define HAVE_STRLCAT    1
+#define HAVE_STRDUP 1
+#define HAVE_STRCHR 1
+#define HAVE_STRRCHR    1
+#define HAVE_STRSTR 1
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL    1
+#define HAVE_STRTOLL    1
+#define HAVE_STRTOULL   1
+#define HAVE_STRTOD 1
+#define HAVE_ATOI   1
+#define HAVE_ATOF   1
+#define HAVE_STRCMP 1
+#define HAVE_STRNCMP    1
+#define HAVE_STRCASECMP 1
+#define HAVE_STRNCASECMP 1
+#define HAVE_VSSCANF 1
+#define HAVE_VSNPRINTF  1
+#define HAVE_M_PI   1
+#define HAVE_ATAN   1
+#define HAVE_ATAN2  1
+#define HAVE_ACOS  1
+#define HAVE_ASIN  1
+#define HAVE_CEIL   1
+#define HAVE_COPYSIGN   1
+#define HAVE_COS    1
+#define HAVE_COSF   1
+#define HAVE_FABS   1
+#define HAVE_FLOOR  1
+#define HAVE_LOG    1
+#define HAVE_POW    1
+#define HAVE_SCALBN 1
+#define HAVE_SIN    1
+#define HAVE_SINF   1
+#define HAVE_SQRT   1
+#define HAVE_SQRTF  1
+#define HAVE_TAN    1
+#define HAVE_TANF   1
+#define HAVE_SIGACTION  1
+#define HAVE_SETJMP 1
+#define HAVE_NANOSLEEP  1
+#define HAVE_SYSCONF    1
+#define HAVE_SYSCTLBYNAME 1
+
+/* enable iPhone version of Core Audio driver */
+#define SDL_AUDIO_DRIVER_COREAUDIO 1
+/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
+#define SDL_AUDIO_DRIVER_DUMMY  1
+
+/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
+#define SDL_HAPTIC_DUMMY 1
+
+/* Enable MFi joystick support */
+#define SDL_JOYSTICK_MFI 1
+
+/* Enable Unix style SO loading */
+#define SDL_LOADSO_DLOPEN 1
+
+/* Enable various threading systems */
+#define SDL_THREAD_PTHREAD  1
+#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX  1
+
+/* Enable various timer systems */
+#define SDL_TIMER_UNIX  1
+
+/* Supported video drivers */
+#define SDL_VIDEO_DRIVER_UIKIT  1
+#define SDL_VIDEO_DRIVER_DUMMY  1
+
+/* enable OpenGL ES */
+#define SDL_VIDEO_OPENGL_ES2 1
+#define SDL_VIDEO_OPENGL_ES 1
+#define SDL_VIDEO_RENDER_OGL_ES 1
+#define SDL_VIDEO_RENDER_OGL_ES2    1
+
+/* Enable Vulkan support */
+#if !TARGET_OS_SIMULATOR && !TARGET_CPU_ARM // Only 64-bit devices have Metal
+#define SDL_VIDEO_VULKAN 1
+#else
+#define SDL_VIDEO_VULKAN 0
+#endif
+
+/* Enable system power support */
+#define SDL_POWER_UIKIT 1
+
+/* enable iPhone keyboard support */
+#define SDL_IPHONE_KEYBOARD 1
+
+/* enable iOS extended launch screen */
+#define SDL_IPHONE_LAUNCHSCREEN 1
+
+/* Set max recognized G-force from accelerometer
+   See src/joystick/uikit/SDL_sysjoystick.m for notes on why this is needed
+ */
+#define SDL_IPHONE_MAX_GFORCE 5.0
+
+/* enable filesystem support */
+#define SDL_FILESYSTEM_COCOA   1
+
+#endif /* SDL_config_iphoneos_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_macosx.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_macosx.h
new file mode 100644
index 0000000..9b09899
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_macosx.h
@@ -0,0 +1,197 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_macosx_h_
+#define SDL_config_macosx_h_
+#define SDL_config_h_
+
+#include "SDL_platform.h"
+
+/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */
+#include <AvailabilityMacros.h>
+
+/* This is a set of defines to configure the SDL features */
+
+#ifdef __LP64__
+    #define SIZEOF_VOIDP 8
+#else
+    #define SIZEOF_VOIDP 4
+#endif
+
+/* Useful headers */
+#define HAVE_ALLOCA_H       1
+#define HAVE_SYS_TYPES_H    1
+#define HAVE_STDIO_H    1
+#define STDC_HEADERS    1
+#define HAVE_STRING_H   1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H   1
+#define HAVE_CTYPE_H    1
+#define HAVE_MATH_H 1
+#define HAVE_SIGNAL_H   1
+
+/* C library functions */
+#define HAVE_MALLOC 1
+#define HAVE_CALLOC 1
+#define HAVE_REALLOC    1
+#define HAVE_FREE   1
+#define HAVE_ALLOCA 1
+#define HAVE_GETENV 1
+#define HAVE_SETENV 1
+#define HAVE_PUTENV 1
+#define HAVE_UNSETENV   1
+#define HAVE_QSORT  1
+#define HAVE_ABS    1
+#define HAVE_BCOPY  1
+#define HAVE_MEMSET 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE    1
+#define HAVE_MEMCMP 1
+#define HAVE_STRLEN 1
+#define HAVE_STRLCPY    1
+#define HAVE_STRLCAT    1
+#define HAVE_STRDUP 1
+#define HAVE_STRCHR 1
+#define HAVE_STRRCHR    1
+#define HAVE_STRSTR 1
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL    1
+#define HAVE_STRTOLL    1
+#define HAVE_STRTOULL   1
+#define HAVE_STRTOD 1
+#define HAVE_ATOI   1
+#define HAVE_ATOF   1
+#define HAVE_STRCMP 1
+#define HAVE_STRNCMP    1
+#define HAVE_STRCASECMP 1
+#define HAVE_STRNCASECMP 1
+#define HAVE_VSSCANF 1
+#define HAVE_VSNPRINTF  1
+#define HAVE_CEIL   1
+#define HAVE_COPYSIGN   1
+#define HAVE_COS    1
+#define HAVE_COSF   1
+#define HAVE_FABS   1
+#define HAVE_FLOOR  1
+#define HAVE_LOG    1
+#define HAVE_POW    1
+#define HAVE_SCALBN 1
+#define HAVE_SIN    1
+#define HAVE_SINF   1
+#define HAVE_SQRT   1
+#define HAVE_SQRTF  1
+#define HAVE_TAN    1
+#define HAVE_TANF   1
+#define HAVE_SIGACTION  1
+#define HAVE_SETJMP 1
+#define HAVE_NANOSLEEP  1
+#define HAVE_SYSCONF    1
+#define HAVE_SYSCTLBYNAME 1
+#define HAVE_ATAN 1
+#define HAVE_ATAN2 1
+#define HAVE_ACOS 1
+#define HAVE_ASIN 1
+
+/* Enable various audio drivers */
+#define SDL_AUDIO_DRIVER_COREAUDIO  1
+#define SDL_AUDIO_DRIVER_DISK   1
+#define SDL_AUDIO_DRIVER_DUMMY  1
+
+/* Enable various input drivers */
+#define SDL_JOYSTICK_IOKIT  1
+#define SDL_HAPTIC_IOKIT    1
+
+/* Enable various shared object loading systems */
+#define SDL_LOADSO_DLOPEN   1
+
+/* Enable various threading systems */
+#define SDL_THREAD_PTHREAD  1
+#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX  1
+
+/* Enable various timer systems */
+#define SDL_TIMER_UNIX  1
+
+/* Enable various video drivers */
+#define SDL_VIDEO_DRIVER_COCOA  1
+#define SDL_VIDEO_DRIVER_DUMMY  1
+#undef SDL_VIDEO_DRIVER_X11
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "/usr/X11R6/lib/libXinerama.1.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "/usr/X11R6/lib/libXi.6.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.1.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "/usr/X11R6/lib/libXxf86vm.1.dylib"
+#define SDL_VIDEO_DRIVER_X11_XDBE 1
+#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
+#define SDL_VIDEO_DRIVER_X11_XRANDR 1
+#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
+#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
+#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
+#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
+
+#ifdef MAC_OS_X_VERSION_10_8
+/*
+ * No matter the versions targeted, this is the 10.8 or later SDK, so you have
+ *  to use the external Xquartz, which is a more modern Xlib. Previous SDKs
+ *  used an older Xlib.
+ */
+#define SDL_VIDEO_DRIVER_X11_XINPUT2 1
+#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
+#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1
+#endif
+
+#ifndef SDL_VIDEO_RENDER_OGL
+#define SDL_VIDEO_RENDER_OGL    1
+#endif
+
+/* Enable OpenGL support */
+#ifndef SDL_VIDEO_OPENGL
+#define SDL_VIDEO_OPENGL    1
+#endif
+#ifndef SDL_VIDEO_OPENGL_CGL
+#define SDL_VIDEO_OPENGL_CGL    1
+#endif
+#ifndef SDL_VIDEO_OPENGL_GLX
+#define SDL_VIDEO_OPENGL_GLX    1
+#endif
+
+/* Enable Vulkan support */
+/* Metal/MoltenVK/Vulkan only supported on 64-bit architectures with 10.11+ */
+#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
+#define SDL_VIDEO_VULKAN 1
+#else
+#define  SDL_VIDEO_VULKAN 0
+#endif
+
+/* Enable system power support */
+#define SDL_POWER_MACOSX 1
+
+/* enable filesystem support */
+#define SDL_FILESYSTEM_COCOA   1
+
+/* Enable assembly routines */
+#define SDL_ASSEMBLY_ROUTINES   1
+#ifdef __ppc__
+#define SDL_ALTIVEC_BLITTERS    1
+#endif
+
+#endif /* SDL_config_macosx_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_macosx.h.orig b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_macosx.h.orig
new file mode 100644
index 0000000..f03f1ae
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_macosx.h.orig
@@ -0,0 +1,197 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_macosx_h_
+#define SDL_config_macosx_h_
+#define SDL_config_h_
+
+#include "SDL_platform.h"
+
+/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */
+#include <AvailabilityMacros.h>
+
+/* This is a set of defines to configure the SDL features */
+
+#ifdef __LP64__
+    #define SIZEOF_VOIDP 8
+#else
+    #define SIZEOF_VOIDP 4
+#endif
+
+/* Useful headers */
+#define HAVE_ALLOCA_H       1
+#define HAVE_SYS_TYPES_H    1
+#define HAVE_STDIO_H    1
+#define STDC_HEADERS    1
+#define HAVE_STRING_H   1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H   1
+#define HAVE_CTYPE_H    1
+#define HAVE_MATH_H 1
+#define HAVE_SIGNAL_H   1
+
+/* C library functions */
+#define HAVE_MALLOC 1
+#define HAVE_CALLOC 1
+#define HAVE_REALLOC    1
+#define HAVE_FREE   1
+#define HAVE_ALLOCA 1
+#define HAVE_GETENV 1
+#define HAVE_SETENV 1
+#define HAVE_PUTENV 1
+#define HAVE_UNSETENV   1
+#define HAVE_QSORT  1
+#define HAVE_ABS    1
+#define HAVE_BCOPY  1
+#define HAVE_MEMSET 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE    1
+#define HAVE_MEMCMP 1
+#define HAVE_STRLEN 1
+#define HAVE_STRLCPY    1
+#define HAVE_STRLCAT    1
+#define HAVE_STRDUP 1
+#define HAVE_STRCHR 1
+#define HAVE_STRRCHR    1
+#define HAVE_STRSTR 1
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL    1
+#define HAVE_STRTOLL    1
+#define HAVE_STRTOULL   1
+#define HAVE_STRTOD 1
+#define HAVE_ATOI   1
+#define HAVE_ATOF   1
+#define HAVE_STRCMP 1
+#define HAVE_STRNCMP    1
+#define HAVE_STRCASECMP 1
+#define HAVE_STRNCASECMP 1
+#define HAVE_VSSCANF 1
+#define HAVE_VSNPRINTF  1
+#define HAVE_CEIL   1
+#define HAVE_COPYSIGN   1
+#define HAVE_COS    1
+#define HAVE_COSF   1
+#define HAVE_FABS   1
+#define HAVE_FLOOR  1
+#define HAVE_LOG    1
+#define HAVE_POW    1
+#define HAVE_SCALBN 1
+#define HAVE_SIN    1
+#define HAVE_SINF   1
+#define HAVE_SQRT   1
+#define HAVE_SQRTF  1
+#define HAVE_TAN    1
+#define HAVE_TANF   1
+#define HAVE_SIGACTION  1
+#define HAVE_SETJMP 1
+#define HAVE_NANOSLEEP  1
+#define HAVE_SYSCONF    1
+#define HAVE_SYSCTLBYNAME 1
+#define HAVE_ATAN 1
+#define HAVE_ATAN2 1
+#define HAVE_ACOS 1
+#define HAVE_ASIN 1
+
+/* Enable various audio drivers */
+#define SDL_AUDIO_DRIVER_COREAUDIO  1
+#define SDL_AUDIO_DRIVER_DISK   1
+#define SDL_AUDIO_DRIVER_DUMMY  1
+
+/* Enable various input drivers */
+#define SDL_JOYSTICK_IOKIT  1
+#define SDL_HAPTIC_IOKIT    1
+
+/* Enable various shared object loading systems */
+#define SDL_LOADSO_DLOPEN   1
+
+/* Enable various threading systems */
+#define SDL_THREAD_PTHREAD  1
+#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX  1
+
+/* Enable various timer systems */
+#define SDL_TIMER_UNIX  1
+
+/* Enable various video drivers */
+#define SDL_VIDEO_DRIVER_COCOA  1
+#define SDL_VIDEO_DRIVER_DUMMY  1
+#undef SDL_VIDEO_DRIVER_X11
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "/usr/X11R6/lib/libXinerama.1.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "/usr/X11R6/lib/libXi.6.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.1.dylib"
+#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "/usr/X11R6/lib/libXxf86vm.1.dylib"
+#define SDL_VIDEO_DRIVER_X11_XDBE 1
+#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
+#define SDL_VIDEO_DRIVER_X11_XRANDR 1
+#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
+#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
+#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
+#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
+
+#ifdef MAC_OS_X_VERSION_10_8
+/*
+ * No matter the versions targeted, this is the 10.8 or later SDK, so you have
+ *  to use the external Xquartz, which is a more modern Xlib. Previous SDKs
+ *  used an older Xlib.
+ */
+#define SDL_VIDEO_DRIVER_X11_XINPUT2 1
+#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
+#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1
+#endif
+
+#ifndef SDL_VIDEO_RENDER_OGL
+#define SDL_VIDEO_RENDER_OGL    1
+#endif
+
+/* Enable OpenGL support */
+#ifndef SDL_VIDEO_OPENGL
+#define SDL_VIDEO_OPENGL    1
+#endif
+#ifndef SDL_VIDEO_OPENGL_CGL
+#define SDL_VIDEO_OPENGL_CGL    1
+#endif
+#ifndef SDL_VIDEO_OPENGL_GLX
+#define SDL_VIDEO_OPENGL_GLX    1
+#endif
+
+/* Enable Vulkan support */
+/* Metal/MoltenVK/Vulkan only supported on 64-bit architectures and 10.11+ */
+#if TARGET_CPU_X86_64
+#define SDL_VIDEO_VULKAN 1
+#else
+#define  SDL_VIDEO_VULKAN 0
+#endif
+
+/* Enable system power support */
+#define SDL_POWER_MACOSX 1
+
+/* enable filesystem support */
+#define SDL_FILESYSTEM_COCOA   1
+
+/* Enable assembly routines */
+#define SDL_ASSEMBLY_ROUTINES   1
+#ifdef __ppc__
+#define SDL_ALTIVEC_BLITTERS    1
+#endif
+
+#endif /* SDL_config_macosx_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_minimal.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_minimal.h
new file mode 100644
index 0000000..3112700
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_minimal.h
@@ -0,0 +1,82 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_minimal_h_
+#define SDL_config_minimal_h_
+#define SDL_config_h_
+
+#include "SDL_platform.h"
+
+/**
+ *  \file SDL_config_minimal.h
+ *
+ *  This is the minimal configuration that can be used to build SDL.
+ */
+
+#define HAVE_STDARG_H   1
+#define HAVE_STDDEF_H   1
+
+/* Most everything except Visual Studio 2008 and earlier has stdint.h now */
+#if defined(_MSC_VER) && (_MSC_VER < 1600)
+/* Here are some reasonable defaults */
+typedef unsigned int size_t;
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef signed short int16_t;
+typedef unsigned short uint16_t;
+typedef signed int int32_t;
+typedef unsigned int uint32_t;
+typedef signed long long int64_t;
+typedef unsigned long long uint64_t;
+typedef unsigned long uintptr_t;
+#else
+#define HAVE_STDINT_H 1
+#endif /* Visual Studio 2008 */
+
+#ifdef __GNUC__
+#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
+#endif
+
+/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
+#define SDL_AUDIO_DRIVER_DUMMY  1
+
+/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
+#define SDL_JOYSTICK_DISABLED   1
+
+/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
+#define SDL_HAPTIC_DISABLED 1
+
+/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
+#define SDL_LOADSO_DISABLED 1
+
+/* Enable the stub thread support (src/thread/generic/\*.c) */
+#define SDL_THREADS_DISABLED    1
+
+/* Enable the stub timer support (src/timer/dummy/\*.c) */
+#define SDL_TIMERS_DISABLED 1
+
+/* Enable the dummy video driver (src/video/dummy/\*.c) */
+#define SDL_VIDEO_DRIVER_DUMMY  1
+
+/* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */
+#define SDL_FILESYSTEM_DUMMY  1
+
+#endif /* SDL_config_minimal_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_pandora.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_pandora.h
new file mode 100644
index 0000000..ea62fe5
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_pandora.h
@@ -0,0 +1,128 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_pandora_h_
+#define SDL_config_pandora_h_
+#define SDL_config_h_
+
+/* This is a set of defines to configure the SDL features */
+
+/* General platform specific identifiers */
+#include "SDL_platform.h"
+
+#ifdef __LP64__
+#define SIZEOF_VOIDP 8
+#else
+#define SIZEOF_VOIDP 4
+#endif
+
+#define SDL_BYTEORDER 1234
+
+#define HAVE_ALLOCA_H 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_STDIO_H 1
+#define STDC_HEADERS 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STDARG_H 1
+#define HAVE_MALLOC_H 1
+#define HAVE_MEMORY_H 1
+#define HAVE_STRING_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_CTYPE_H 1
+#define HAVE_MATH_H 1
+#define HAVE_ICONV_H 1
+#define HAVE_SIGNAL_H 1
+#define HAVE_MALLOC 1
+#define HAVE_CALLOC 1
+#define HAVE_REALLOC 1
+#define HAVE_FREE 1
+#define HAVE_ALLOCA 1
+#define HAVE_GETENV 1
+#define HAVE_SETENV 1
+#define HAVE_PUTENV 1
+#define HAVE_UNSETENV 1
+#define HAVE_QSORT 1
+#define HAVE_ABS 1
+#define HAVE_BCOPY 1
+#define HAVE_MEMSET 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE 1
+#define HAVE_STRLEN 1
+#define HAVE_STRDUP 1
+#define HAVE_STRCHR 1
+#define HAVE_STRRCHR 1
+#define HAVE_STRSTR 1
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL 1
+#define HAVE_STRTOLL 1
+#define HAVE_STRTOULL 1
+#define HAVE_ATOI 1
+#define HAVE_ATOF 1
+#define HAVE_STRCMP 1
+#define HAVE_STRNCMP 1
+#define HAVE_STRCASECMP 1
+#define HAVE_STRNCASECMP 1
+#define HAVE_VSSCANF 1
+#define HAVE_VSNPRINTF 1
+#define HAVE_M_PI 1
+#define HAVE_CEIL 1
+#define HAVE_COPYSIGN 1
+#define HAVE_COS 1
+#define HAVE_COSF 1
+#define HAVE_FABS 1
+#define HAVE_FLOOR 1
+#define HAVE_LOG 1
+#define HAVE_SCALBN 1
+#define HAVE_SIN 1
+#define HAVE_SINF 1
+#define HAVE_SQRT 1
+#define HAVE_SQRTF 1
+#define HAVE_TAN 1
+#define HAVE_TANF 1
+#define HAVE_SIGACTION 1
+#define HAVE_SETJMP 1
+#define HAVE_NANOSLEEP 1
+
+#define SDL_AUDIO_DRIVER_DUMMY 1
+#define SDL_AUDIO_DRIVER_OSS 1
+
+#define SDL_INPUT_LINUXEV 1
+#define SDL_INPUT_TSLIB 1
+#define SDL_JOYSTICK_LINUX 1
+#define SDL_HAPTIC_LINUX 1
+
+#define SDL_LOADSO_DLOPEN 1
+
+#define SDL_THREAD_PTHREAD 1
+#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
+
+#define SDL_TIMER_UNIX 1
+#define SDL_FILESYSTEM_UNIX 1
+
+#define SDL_VIDEO_DRIVER_DUMMY 1
+#define SDL_VIDEO_DRIVER_X11 1
+#define SDL_VIDEO_DRIVER_PANDORA 1
+#define SDL_VIDEO_RENDER_OGL_ES 1
+#define SDL_VIDEO_OPENGL_ES 1
+
+#endif /* SDL_config_pandora_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_psp.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_psp.h
new file mode 100644
index 0000000..28efb4c
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_psp.h
@@ -0,0 +1,144 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_psp_h_
+#define SDL_config_psp_h_
+#define SDL_config_h_
+
+#include "SDL_platform.h"
+
+
+
+#ifdef __GNUC__
+#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
+#endif
+
+#define HAVE_GCC_ATOMICS    1
+
+#define HAVE_ALLOCA_H       1
+#define HAVE_SYS_TYPES_H    1
+#define HAVE_STDIO_H    1
+#define STDC_HEADERS    1
+#define HAVE_STRING_H   1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H   1
+#define HAVE_CTYPE_H    1
+#define HAVE_MATH_H 1
+#define HAVE_SIGNAL_H   1
+
+/* C library functions */
+#define HAVE_MALLOC 1
+#define HAVE_CALLOC 1
+#define HAVE_REALLOC    1
+#define HAVE_FREE   1
+#define HAVE_ALLOCA 1
+#define HAVE_GETENV 1
+#define HAVE_SETENV 1
+#define HAVE_PUTENV 1
+#define HAVE_SETENV 1
+#define HAVE_UNSETENV   1
+#define HAVE_QSORT  1
+#define HAVE_ABS    1
+#define HAVE_BCOPY  1
+#define HAVE_MEMSET 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE    1
+#define HAVE_MEMCMP 1
+#define HAVE_STRLEN 1
+#define HAVE_STRLCPY    1
+#define HAVE_STRLCAT    1
+#define HAVE_STRDUP 1
+#define HAVE_STRCHR 1
+#define HAVE_STRRCHR    1
+#define HAVE_STRSTR 1
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL    1
+#define HAVE_STRTOLL    1
+#define HAVE_STRTOULL   1
+#define HAVE_STRTOD 1
+#define HAVE_ATOI   1
+#define HAVE_ATOF   1
+#define HAVE_STRCMP 1
+#define HAVE_STRNCMP    1
+#define HAVE_STRCASECMP 1
+#define HAVE_STRNCASECMP 1
+#define HAVE_VSSCANF 1
+#define HAVE_VSNPRINTF  1
+#define HAVE_M_PI   1
+#define HAVE_ATAN   1
+#define HAVE_ATAN2  1
+#define HAVE_ACOS  1
+#define HAVE_ASIN  1
+#define HAVE_CEIL   1
+#define HAVE_COPYSIGN   1
+#define HAVE_COS    1
+#define HAVE_COSF   1
+#define HAVE_FABS   1
+#define HAVE_FLOOR  1
+#define HAVE_LOG    1
+#define HAVE_POW    1
+#define HAVE_SCALBN 1
+#define HAVE_SIN    1
+#define HAVE_SINF   1
+#define HAVE_SQRT   1
+#define HAVE_SQRTF  1
+#define HAVE_TAN    1
+#define HAVE_TANF   1
+#define HAVE_SETJMP 1
+#define HAVE_NANOSLEEP  1
+/* #define HAVE_SYSCONF  1 */
+/* #define HAVE_SIGACTION    1 */
+
+
+/* PSP isn't that sophisticated */
+#define LACKS_SYS_MMAN_H 1
+
+/* Enable the stub thread support (src/thread/psp/\*.c) */
+#define SDL_THREAD_PSP  1
+
+/* Enable the stub timer support (src/timer/psp/\*.c) */
+#define SDL_TIMERS_PSP  1
+
+/* Enable the stub joystick driver (src/joystick/psp/\*.c) */
+#define SDL_JOYSTICK_PSP        1
+
+/* Enable the stub audio driver (src/audio/psp/\*.c) */
+#define SDL_AUDIO_DRIVER_PSP    1
+
+/* PSP video dirver */
+#define SDL_VIDEO_DRIVER_PSP   1
+
+/* PSP render dirver */
+#define SDL_VIDEO_RENDER_PSP   1
+
+#define SDL_POWER_PSP          1
+
+/* !!! FIXME: what does PSP do for filesystem stuff? */
+#define SDL_FILESYSTEM_DUMMY   1
+
+/* PSP doesn't have haptic device (src/haptic/dummy/\*.c) */
+#define SDL_HAPTIC_DISABLED    1
+
+/* PSP can't load shared object (src/loadso/dummy/\*.c) */
+#define SDL_LOADSO_DISABLED    1
+
+
+#endif /* SDL_config_psp_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_windows.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_windows.h
new file mode 100644
index 0000000..2456c84
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_windows.h
@@ -0,0 +1,225 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_windows_h_
+#define SDL_config_windows_h_
+#define SDL_config_h_
+
+#include "SDL_platform.h"
+
+/* This is a set of defines to configure the SDL features */
+
+#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
+#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
+#define HAVE_STDINT_H   1
+#elif defined(_MSC_VER)
+typedef signed __int8 int8_t;
+typedef unsigned __int8 uint8_t;
+typedef signed __int16 int16_t;
+typedef unsigned __int16 uint16_t;
+typedef signed __int32 int32_t;
+typedef unsigned __int32 uint32_t;
+typedef signed __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#ifndef _UINTPTR_T_DEFINED
+#ifdef  _WIN64
+typedef unsigned __int64 uintptr_t;
+#else
+typedef unsigned int uintptr_t;
+#endif
+#define _UINTPTR_T_DEFINED
+#endif
+/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
+#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
+#define DWORD_PTR DWORD
+#endif
+#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
+#define LONG_PTR LONG
+#endif
+#else /* !__GNUC__ && !_MSC_VER */
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef signed short int16_t;
+typedef unsigned short uint16_t;
+typedef signed int int32_t;
+typedef unsigned int uint32_t;
+typedef signed long long int64_t;
+typedef unsigned long long uint64_t;
+#ifndef _SIZE_T_DEFINED_
+#define _SIZE_T_DEFINED_
+typedef unsigned int size_t;
+#endif
+typedef unsigned int uintptr_t;
+#endif /* __GNUC__ || _MSC_VER */
+#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
+
+#ifdef _WIN64
+# define SIZEOF_VOIDP 8
+#else
+# define SIZEOF_VOIDP 4
+#endif
+
+#define HAVE_DDRAW_H 1
+#define HAVE_DINPUT_H 1
+#define HAVE_DSOUND_H 1
+#define HAVE_DXGI_H 1
+#define HAVE_XINPUT_H 1
+
+/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
+#ifdef HAVE_LIBC
+/* Useful headers */
+#define HAVE_STDIO_H 1
+#define STDC_HEADERS 1
+#define HAVE_STRING_H 1
+#define HAVE_CTYPE_H 1
+#define HAVE_MATH_H 1
+#define HAVE_SIGNAL_H 1
+
+/* C library functions */
+#define HAVE_MALLOC 1
+#define HAVE_CALLOC 1
+#define HAVE_REALLOC 1
+#define HAVE_FREE 1
+#define HAVE_ALLOCA 1
+#define HAVE_QSORT 1
+#define HAVE_ABS 1
+#define HAVE_MEMSET 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE 1
+#define HAVE_MEMCMP 1
+#define HAVE_STRLEN 1
+#define HAVE__STRREV 1
+#define HAVE__STRUPR 1
+#define HAVE__STRLWR 1
+#define HAVE_STRCHR 1
+#define HAVE_STRRCHR 1
+#define HAVE_STRSTR 1
+#define HAVE__LTOA 1
+#define HAVE__ULTOA 1
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL 1
+#define HAVE_STRTOD 1
+#define HAVE_ATOI 1
+#define HAVE_ATOF 1
+#define HAVE_STRCMP 1
+#define HAVE_STRNCMP 1
+#define HAVE__STRICMP 1
+#define HAVE__STRNICMP 1
+#define HAVE_ATAN 1
+#define HAVE_ATAN2 1
+#define HAVE_ACOS  1
+#define HAVE_ASIN  1
+#define HAVE_CEIL 1
+#define HAVE_COS 1
+#define HAVE_COSF 1
+#define HAVE_FABS 1
+#define HAVE_FLOOR 1
+#define HAVE_LOG 1
+#define HAVE_POW 1
+#define HAVE_SIN 1
+#define HAVE_SINF 1
+#define HAVE_SQRT 1
+#define HAVE_SQRTF 1
+#define HAVE_TAN 1
+#define HAVE_TANF 1
+#if _MSC_VER >= 1800
+#define HAVE_STRTOLL 1
+#define HAVE_VSSCANF 1
+#define HAVE_COPYSIGN 1
+#define HAVE_SCALBN 1
+#endif
+#if !defined(_MSC_VER) || defined(_USE_MATH_DEFINES)
+#define HAVE_M_PI 1
+#endif
+#else
+#define HAVE_STDARG_H   1
+#define HAVE_STDDEF_H   1
+#endif
+
+/* Enable various audio drivers */
+#define SDL_AUDIO_DRIVER_WASAPI 1
+#define SDL_AUDIO_DRIVER_DSOUND 1
+#define SDL_AUDIO_DRIVER_XAUDIO2    0
+#define SDL_AUDIO_DRIVER_WINMM  1
+#define SDL_AUDIO_DRIVER_DISK   1
+#define SDL_AUDIO_DRIVER_DUMMY  1
+
+/* Enable various input drivers */
+#define SDL_JOYSTICK_DINPUT 1
+#define SDL_JOYSTICK_XINPUT 1
+#define SDL_HAPTIC_DINPUT   1
+#define SDL_HAPTIC_XINPUT   1
+
+/* Enable various shared object loading systems */
+#define SDL_LOADSO_WINDOWS  1
+
+/* Enable various threading systems */
+#define SDL_THREAD_WINDOWS  1
+
+/* Enable various timer systems */
+#define SDL_TIMER_WINDOWS   1
+
+/* Enable various video drivers */
+#define SDL_VIDEO_DRIVER_DUMMY  1
+#define SDL_VIDEO_DRIVER_WINDOWS    1
+
+#ifndef SDL_VIDEO_RENDER_D3D
+#define SDL_VIDEO_RENDER_D3D    1
+#endif
+#ifndef SDL_VIDEO_RENDER_D3D11
+#define SDL_VIDEO_RENDER_D3D11	0
+#endif
+
+/* Enable OpenGL support */
+#ifndef SDL_VIDEO_OPENGL
+#define SDL_VIDEO_OPENGL    1
+#endif
+#ifndef SDL_VIDEO_OPENGL_WGL
+#define SDL_VIDEO_OPENGL_WGL    1
+#endif
+#ifndef SDL_VIDEO_RENDER_OGL
+#define SDL_VIDEO_RENDER_OGL    1
+#endif
+#ifndef SDL_VIDEO_RENDER_OGL_ES2
+#define SDL_VIDEO_RENDER_OGL_ES2    1
+#endif
+#ifndef SDL_VIDEO_OPENGL_ES2
+#define SDL_VIDEO_OPENGL_ES2    1
+#endif
+#ifndef SDL_VIDEO_OPENGL_EGL
+#define SDL_VIDEO_OPENGL_EGL    1
+#endif
+
+/* Enable Vulkan support */
+#define SDL_VIDEO_VULKAN 1
+
+/* Enable system power support */
+#define SDL_POWER_WINDOWS 1
+
+/* Enable filesystem support */
+#define SDL_FILESYSTEM_WINDOWS  1
+
+/* Enable assembly routines (Win64 doesn't have inline asm) */
+#ifndef _WIN64
+#define SDL_ASSEMBLY_ROUTINES   1
+#endif
+
+#endif /* SDL_config_windows_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_winrt.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_winrt.h
new file mode 100644
index 0000000..24f9e17
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_winrt.h
@@ -0,0 +1,215 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_winrt_h_
+#define SDL_config_winrt_h_
+#define SDL_config_h_
+
+#include "SDL_platform.h"
+
+/* Make sure the Windows SDK's NTDDI_VERSION macro gets defined.  This is used
+   by SDL to determine which version of the Windows SDK is being used.
+*/
+#include <sdkddkver.h>
+
+/* Define possibly-undefined NTDDI values (used when compiling SDL against
+   older versions of the Windows SDK.
+*/
+#ifndef NTDDI_WINBLUE
+#define NTDDI_WINBLUE 0x06030000
+#endif
+#ifndef NTDDI_WIN10
+#define NTDDI_WIN10 0x0A000000
+#endif
+
+/* This is a set of defines to configure the SDL features */
+
+#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
+#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
+#define HAVE_STDINT_H	1
+#elif defined(_MSC_VER)
+typedef signed __int8 int8_t;
+typedef unsigned __int8 uint8_t;
+typedef signed __int16 int16_t;
+typedef unsigned __int16 uint16_t;
+typedef signed __int32 int32_t;
+typedef unsigned __int32 uint32_t;
+typedef signed __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#ifndef _UINTPTR_T_DEFINED
+#ifdef  _WIN64
+typedef unsigned __int64 uintptr_t;
+#else
+typedef unsigned int uintptr_t;
+#endif
+#define _UINTPTR_T_DEFINED
+#endif
+/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
+#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
+#define DWORD_PTR DWORD
+#endif
+#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
+#define LONG_PTR LONG
+#endif
+#else /* !__GNUC__ && !_MSC_VER */
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef signed short int16_t;
+typedef unsigned short uint16_t;
+typedef signed int int32_t;
+typedef unsigned int uint32_t;
+typedef signed long long int64_t;
+typedef unsigned long long uint64_t;
+#ifndef _SIZE_T_DEFINED_
+#define _SIZE_T_DEFINED_
+typedef unsigned int size_t;
+#endif
+typedef unsigned int uintptr_t;
+#endif /* __GNUC__ || _MSC_VER */
+#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
+
+#ifdef _WIN64
+# define SIZEOF_VOIDP 8
+#else
+# define SIZEOF_VOIDP 4
+#endif
+
+/* Useful headers */
+#define HAVE_DXGI_H 1
+#if WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
+#define HAVE_XINPUT_H 1
+#endif
+#define HAVE_LIBC 1
+#define HAVE_STDIO_H 1
+#define STDC_HEADERS 1
+#define HAVE_STRING_H 1
+#define HAVE_CTYPE_H 1
+#define HAVE_MATH_H 1
+#define HAVE_FLOAT_H 1
+#define HAVE_SIGNAL_H 1
+
+/* C library functions */
+#define HAVE_MALLOC 1
+#define HAVE_CALLOC 1
+#define HAVE_REALLOC 1
+#define HAVE_FREE 1
+#define HAVE_ALLOCA 1
+#define HAVE_QSORT 1
+#define HAVE_ABS 1
+#define HAVE_MEMSET 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE 1
+#define HAVE_MEMCMP 1
+#define HAVE_STRLEN 1
+#define HAVE__STRREV 1
+#define HAVE__STRUPR 1
+//#define HAVE__STRLWR 1	// TODO, WinRT: consider using _strlwr_s instead
+#define HAVE_STRCHR 1
+#define HAVE_STRRCHR 1
+#define HAVE_STRSTR 1
+//#define HAVE_ITOA 1   // TODO, WinRT: consider using _itoa_s instead
+//#define HAVE__LTOA 1	// TODO, WinRT: consider using _ltoa_s instead
+//#define HAVE__ULTOA 1	// TODO, WinRT: consider using _ultoa_s instead
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL 1
+//#define HAVE_STRTOLL 1
+#define HAVE_STRTOD 1
+#define HAVE_ATOI 1
+#define HAVE_ATOF 1
+#define HAVE_STRCMP 1
+#define HAVE_STRNCMP 1
+#define HAVE__STRICMP 1
+#define HAVE__STRNICMP 1
+#define HAVE_VSNPRINTF 1
+//#define HAVE_SSCANF 1	// TODO, WinRT: consider using sscanf_s instead
+#define HAVE_M_PI 1
+#define HAVE_ATAN 1
+#define HAVE_ATAN2 1
+#define HAVE_CEIL 1
+#define HAVE__COPYSIGN 1
+#define HAVE_COS 1
+#define HAVE_COSF 1
+#define HAVE_FABS 1
+#define HAVE_FLOOR 1
+#define HAVE_LOG 1
+#define HAVE_POW 1
+//#define HAVE_SCALBN 1
+#define HAVE__SCALB 1
+#define HAVE_SIN 1
+#define HAVE_SINF 1
+#define HAVE_SQRT 1
+#define HAVE_SQRTF 1
+#define HAVE_TAN 1
+#define HAVE_TANF 1
+#define HAVE__FSEEKI64 1
+
+/* Enable various audio drivers */
+#define SDL_AUDIO_DRIVER_XAUDIO2	1
+#define SDL_AUDIO_DRIVER_DISK	1
+#define SDL_AUDIO_DRIVER_DUMMY	1
+
+/* Enable various input drivers */
+#if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
+#define SDL_JOYSTICK_DISABLED 1
+#define SDL_HAPTIC_DISABLED	1
+#else
+#define SDL_JOYSTICK_XINPUT 1
+#define SDL_HAPTIC_XINPUT   1
+#endif
+
+/* Enable various shared object loading systems */
+#define SDL_LOADSO_WINDOWS	1
+
+/* Enable various threading systems */
+#if (NTDDI_VERSION >= NTDDI_WINBLUE)
+#define SDL_THREAD_WINDOWS  1
+#else
+/* WinRT on Windows 8.0 and Windows Phone 8.0 don't support CreateThread() */
+#define SDL_THREAD_STDCPP   1
+#endif
+
+/* Enable various timer systems */
+#define SDL_TIMER_WINDOWS	1
+
+/* Enable various video drivers */
+#define SDL_VIDEO_DRIVER_WINRT	1
+#define SDL_VIDEO_DRIVER_DUMMY  1
+
+/* Enable OpenGL ES 2.0 (via a modified ANGLE library) */
+#define SDL_VIDEO_OPENGL_ES2 1
+#define SDL_VIDEO_OPENGL_EGL 1
+
+/* Enable appropriate renderer(s) */
+#define SDL_VIDEO_RENDER_D3D11  1
+
+#if SDL_VIDEO_OPENGL_ES2
+#define SDL_VIDEO_RENDER_OGL_ES2 1
+#endif
+
+/* Enable system power support */
+#define SDL_POWER_WINRT 1
+
+/* Enable assembly routines (Win64 doesn't have inline asm) */
+#ifndef _WIN64
+#define SDL_ASSEMBLY_ROUTINES	1
+#endif
+
+#endif /* SDL_config_winrt_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_wiz.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_wiz.h
new file mode 100644
index 0000000..5bb845a
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_config_wiz.h
@@ -0,0 +1,121 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_config_wiz_h_
+#define SDL_config_wiz_h_
+#define SDL_config_h_
+
+/* This is a set of defines to configure the SDL features */
+
+/* General platform specific identifiers */
+#include "SDL_platform.h"
+
+#define SDL_BYTEORDER 1234
+
+#define HAVE_ALLOCA_H 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_STDIO_H 1
+#define STDC_HEADERS 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STDARG_H 1
+#define HAVE_MALLOC_H 1
+#define HAVE_MEMORY_H 1
+#define HAVE_STRING_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_CTYPE_H 1
+#define HAVE_MATH_H 1
+#define HAVE_ICONV_H 1
+#define HAVE_SIGNAL_H 1
+#define HAVE_MALLOC 1
+#define HAVE_CALLOC 1
+#define HAVE_REALLOC 1
+#define HAVE_FREE 1
+#define HAVE_ALLOCA 1
+#define HAVE_GETENV 1
+#define HAVE_SETENV 1
+#define HAVE_PUTENV 1
+#define HAVE_UNSETENV 1
+#define HAVE_QSORT 1
+#define HAVE_ABS 1
+#define HAVE_BCOPY 1
+#define HAVE_MEMSET 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE 1
+#define HAVE_STRLEN 1
+#define HAVE_STRDUP 1
+#define HAVE_STRCHR 1
+#define HAVE_STRRCHR 1
+#define HAVE_STRSTR 1
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL 1
+#define HAVE_STRTOLL 1
+#define HAVE_STRTOULL 1
+#define HAVE_ATOI 1
+#define HAVE_ATOF 1
+#define HAVE_STRCMP 1
+#define HAVE_STRNCMP 1
+#define HAVE_STRCASECMP 1
+#define HAVE_STRNCASECMP 1
+#define HAVE_VSSCANF 1
+#define HAVE_VSNPRINTF 1
+#define HAVE_M_PI 1
+#define HAVE_CEIL 1
+#define HAVE_COPYSIGN 1
+#define HAVE_COS 1
+#define HAVE_COSF 1
+#define HAVE_FABS 1
+#define HAVE_FLOOR 1
+#define HAVE_LOG 1
+#define HAVE_SCALBN 1
+#define HAVE_SIN 1
+#define HAVE_SINF 1
+#define HAVE_SQRT 1
+#define HAVE_SQRTF 1
+#define HAVE_TAN 1
+#define HAVE_TANF 1
+#define HAVE_SIGACTION 1
+#define HAVE_SETJMP 1
+#define HAVE_NANOSLEEP 1
+#define HAVE_POW 1
+
+#define SDL_AUDIO_DRIVER_DUMMY 1
+#define SDL_AUDIO_DRIVER_OSS 1
+
+#define SDL_INPUT_LINUXEV 1
+#define SDL_INPUT_TSLIB 1
+#define SDL_JOYSTICK_LINUX 1
+#define SDL_HAPTIC_LINUX 1
+
+#define SDL_LOADSO_DLOPEN 1
+
+#define SDL_THREAD_PTHREAD 1
+#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
+
+#define SDL_TIMER_UNIX 1
+
+#define SDL_VIDEO_DRIVER_DUMMY 1
+#define SDL_VIDEO_DRIVER_PANDORA 1
+#define SDL_VIDEO_RENDER_OGL_ES 1
+#define SDL_VIDEO_OPENGL_ES 1
+
+#endif /* SDL_config_wiz_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_copying.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_copying.h
new file mode 100644
index 0000000..8f60af6
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_copying.h
@@ -0,0 +1,20 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_cpuinfo.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_cpuinfo.h
new file mode 100644
index 0000000..0812705
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_cpuinfo.h
@@ -0,0 +1,181 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_cpuinfo.h
+ *
+ *  CPU feature detection for SDL.
+ */
+
+#ifndef SDL_cpuinfo_h_
+#define SDL_cpuinfo_h_
+
+#include "SDL_stdinc.h"
+
+/* Need to do this here because intrin.h has C++ code in it */
+/* Visual Studio 2005 has a bug where intrin.h conflicts with winnt.h */
+#if defined(_MSC_VER) && (_MSC_VER >= 1500) && (defined(_M_IX86) || defined(_M_X64))
+#ifdef __clang__
+/* Many of the intrinsics SDL uses are not implemented by clang with Visual Studio */
+#undef __MMX__
+#undef __SSE__
+#undef __SSE2__
+#else
+#include <intrin.h>
+#ifndef _WIN64
+#define __MMX__
+#define __3dNOW__
+#endif
+#define __SSE__
+#define __SSE2__
+#endif /* __clang__ */
+#elif defined(__MINGW64_VERSION_MAJOR)
+#include <intrin.h>
+#else
+#ifdef __ALTIVEC__
+#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__) && !defined(SDL_DISABLE_ALTIVEC_H)
+#include <altivec.h>
+#undef pixel
+#undef bool
+#endif
+#endif
+#if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H)
+#include <mm3dnow.h>
+#endif
+#if HAVE_IMMINTRIN_H && !defined(SDL_DISABLE_IMMINTRIN_H)
+#include <immintrin.h>
+#else
+#if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H)
+#include <mmintrin.h>
+#endif
+#if defined(__SSE__) && !defined(SDL_DISABLE_XMMINTRIN_H)
+#include <xmmintrin.h>
+#endif
+#if defined(__SSE2__) && !defined(SDL_DISABLE_EMMINTRIN_H)
+#include <emmintrin.h>
+#endif
+#if defined(__SSE3__) && !defined(SDL_DISABLE_PMMINTRIN_H)
+#include <pmmintrin.h>
+#endif
+#endif /* HAVE_IMMINTRIN_H */
+#endif /* compiler version */
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* This is a guess for the cacheline size used for padding.
+ * Most x86 processors have a 64 byte cache line.
+ * The 64-bit PowerPC processors have a 128 byte cache line.
+ * We'll use the larger value to be generally safe.
+ */
+#define SDL_CACHELINE_SIZE  128
+
+/**
+ *  This function returns the number of CPU cores available.
+ */
+extern DECLSPEC int SDLCALL SDL_GetCPUCount(void);
+
+/**
+ *  This function returns the L1 cache line size of the CPU
+ *
+ *  This is useful for determining multi-threaded structure padding
+ *  or SIMD prefetch sizes.
+ */
+extern DECLSPEC int SDLCALL SDL_GetCPUCacheLineSize(void);
+
+/**
+ *  This function returns true if the CPU has the RDTSC instruction.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);
+
+/**
+ *  This function returns true if the CPU has AltiVec features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void);
+
+/**
+ *  This function returns true if the CPU has MMX features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void);
+
+/**
+ *  This function returns true if the CPU has 3DNow! features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void);
+
+/**
+ *  This function returns true if the CPU has SSE features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void);
+
+/**
+ *  This function returns true if the CPU has SSE2 features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void);
+
+/**
+ *  This function returns true if the CPU has SSE3 features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE3(void);
+
+/**
+ *  This function returns true if the CPU has SSE4.1 features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE41(void);
+
+/**
+ *  This function returns true if the CPU has SSE4.2 features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE42(void);
+
+/**
+ *  This function returns true if the CPU has AVX features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasAVX(void);
+
+/**
+ *  This function returns true if the CPU has AVX2 features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasAVX2(void);
+
+/**
+ *  This function returns true if the CPU has NEON (ARM SIMD) features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasNEON(void);
+
+/**
+ *  This function returns the amount of RAM configured in the system, in MB.
+ */
+extern DECLSPEC int SDLCALL SDL_GetSystemRAM(void);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_cpuinfo_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_egl.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_egl.h
new file mode 100644
index 0000000..d65ed43
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_egl.h
@@ -0,0 +1,1673 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_egl.h
+ *
+ *  This is a simple file to encapsulate the EGL API headers.
+ */
+#if !defined(_MSC_VER) && !defined(__ANDROID__)
+
+#include <EGL/egl.h>
+#include <EGL/eglext.h>
+
+#else /* _MSC_VER */
+
+/* EGL headers for Visual Studio */
+
+#ifndef __khrplatform_h_
+#define __khrplatform_h_
+
+/*
+** Copyright (c) 2008-2009 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+
+/* Khronos platform-specific types and definitions.
+*
+* $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $
+*
+* Adopters may modify this file to suit their platform. Adopters are
+* encouraged to submit platform specific modifications to the Khronos
+* group so that they can be included in future versions of this file.
+* Please submit changes by sending them to the public Khronos Bugzilla
+* (http://khronos.org/bugzilla) by filing a bug against product
+* "Khronos (general)" component "Registry".
+*
+* A predefined template which fills in some of the bug fields can be
+* reached using http://tinyurl.com/khrplatform-h-bugreport, but you
+* must create a Bugzilla login first.
+*
+*
+* See the Implementer's Guidelines for information about where this file
+* should be located on your system and for more details of its use:
+*    http://www.khronos.org/registry/implementers_guide.pdf
+*
+* This file should be included as
+*        #include <KHR/khrplatform.h>
+* by Khronos client API header files that use its types and defines.
+*
+* The types in khrplatform.h should only be used to define API-specific types.
+*
+* Types defined in khrplatform.h:
+*    khronos_int8_t              signed   8  bit
+*    khronos_uint8_t             unsigned 8  bit
+*    khronos_int16_t             signed   16 bit
+*    khronos_uint16_t            unsigned 16 bit
+*    khronos_int32_t             signed   32 bit
+*    khronos_uint32_t            unsigned 32 bit
+*    khronos_int64_t             signed   64 bit
+*    khronos_uint64_t            unsigned 64 bit
+*    khronos_intptr_t            signed   same number of bits as a pointer
+*    khronos_uintptr_t           unsigned same number of bits as a pointer
+*    khronos_ssize_t             signed   size
+*    khronos_usize_t             unsigned size
+*    khronos_float_t             signed   32 bit floating point
+*    khronos_time_ns_t           unsigned 64 bit time in nanoseconds
+*    khronos_utime_nanoseconds_t unsigned time interval or absolute time in
+*                                         nanoseconds
+*    khronos_stime_nanoseconds_t signed time interval in nanoseconds
+*    khronos_boolean_enum_t      enumerated boolean type. This should
+*      only be used as a base type when a client API's boolean type is
+*      an enum. Client APIs which use an integer or other type for
+*      booleans cannot use this as the base type for their boolean.
+*
+* Tokens defined in khrplatform.h:
+*
+*    KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
+*
+*    KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
+*    KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
+*
+* Calling convention macros defined in this file:
+*    KHRONOS_APICALL
+*    KHRONOS_APIENTRY
+*    KHRONOS_APIATTRIBUTES
+*
+* These may be used in function prototypes as:
+*
+*      KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
+*                                  int arg1,
+*                                  int arg2) KHRONOS_APIATTRIBUTES;
+*/
+
+/*-------------------------------------------------------------------------
+* Definition of KHRONOS_APICALL
+*-------------------------------------------------------------------------
+* This precedes the return type of the function in the function prototype.
+*/
+#if defined(_WIN32) && !defined(__SCITECH_SNAP__) && !defined(SDL_VIDEO_STATIC_ANGLE)
+#   define KHRONOS_APICALL __declspec(dllimport)
+#elif defined (__SYMBIAN32__)
+#   define KHRONOS_APICALL IMPORT_C
+#else
+#   define KHRONOS_APICALL
+#endif
+
+/*-------------------------------------------------------------------------
+* Definition of KHRONOS_APIENTRY
+*-------------------------------------------------------------------------
+* This follows the return type of the function  and precedes the function
+* name in the function prototype.
+*/
+#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
+/* Win32 but not WinCE */
+#   define KHRONOS_APIENTRY __stdcall
+#else
+#   define KHRONOS_APIENTRY
+#endif
+
+/*-------------------------------------------------------------------------
+* Definition of KHRONOS_APIATTRIBUTES
+*-------------------------------------------------------------------------
+* This follows the closing parenthesis of the function prototype arguments.
+*/
+#if defined (__ARMCC_2__)
+#define KHRONOS_APIATTRIBUTES __softfp
+#else
+#define KHRONOS_APIATTRIBUTES
+#endif
+
+/*-------------------------------------------------------------------------
+* basic type definitions
+*-----------------------------------------------------------------------*/
+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
+
+
+/*
+* Using <stdint.h>
+*/
+#include <stdint.h>
+typedef int32_t                 khronos_int32_t;
+typedef uint32_t                khronos_uint32_t;
+typedef int64_t                 khronos_int64_t;
+typedef uint64_t                khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64   1
+#define KHRONOS_SUPPORT_FLOAT   1
+
+#elif defined(__VMS ) || defined(__sgi)
+
+/*
+* Using <inttypes.h>
+*/
+#include <inttypes.h>
+typedef int32_t                 khronos_int32_t;
+typedef uint32_t                khronos_uint32_t;
+typedef int64_t                 khronos_int64_t;
+typedef uint64_t                khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64   1
+#define KHRONOS_SUPPORT_FLOAT   1
+
+#elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
+
+/*
+* Win32
+*/
+typedef __int32                 khronos_int32_t;
+typedef unsigned __int32        khronos_uint32_t;
+typedef __int64                 khronos_int64_t;
+typedef unsigned __int64        khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64   1
+#define KHRONOS_SUPPORT_FLOAT   1
+
+#elif defined(__sun__) || defined(__digital__)
+
+/*
+* Sun or Digital
+*/
+typedef int                     khronos_int32_t;
+typedef unsigned int            khronos_uint32_t;
+#if defined(__arch64__) || defined(_LP64)
+typedef long int                khronos_int64_t;
+typedef unsigned long int       khronos_uint64_t;
+#else
+typedef long long int           khronos_int64_t;
+typedef unsigned long long int  khronos_uint64_t;
+#endif /* __arch64__ */
+#define KHRONOS_SUPPORT_INT64   1
+#define KHRONOS_SUPPORT_FLOAT   1
+
+#elif 0
+
+/*
+* Hypothetical platform with no float or int64 support
+*/
+typedef int                     khronos_int32_t;
+typedef unsigned int            khronos_uint32_t;
+#define KHRONOS_SUPPORT_INT64   0
+#define KHRONOS_SUPPORT_FLOAT   0
+
+#else
+
+/*
+* Generic fallback
+*/
+#include <stdint.h>
+typedef int32_t                 khronos_int32_t;
+typedef uint32_t                khronos_uint32_t;
+typedef int64_t                 khronos_int64_t;
+typedef uint64_t                khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64   1
+#define KHRONOS_SUPPORT_FLOAT   1
+
+#endif
+
+
+/*
+* Types that are (so far) the same on all platforms
+*/
+typedef signed   char          khronos_int8_t;
+typedef unsigned char          khronos_uint8_t;
+typedef signed   short int     khronos_int16_t;
+typedef unsigned short int     khronos_uint16_t;
+
+/*
+* Types that differ between LLP64 and LP64 architectures - in LLP64,
+* pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
+* to be the only LLP64 architecture in current use.
+*/
+#ifdef _WIN64
+typedef signed   long long int khronos_intptr_t;
+typedef unsigned long long int khronos_uintptr_t;
+typedef signed   long long int khronos_ssize_t;
+typedef unsigned long long int khronos_usize_t;
+#else
+typedef signed   long  int     khronos_intptr_t;
+typedef unsigned long  int     khronos_uintptr_t;
+typedef signed   long  int     khronos_ssize_t;
+typedef unsigned long  int     khronos_usize_t;
+#endif
+
+#if KHRONOS_SUPPORT_FLOAT
+/*
+* Float type
+*/
+typedef          float         khronos_float_t;
+#endif
+
+#if KHRONOS_SUPPORT_INT64
+/* Time types
+*
+* These types can be used to represent a time interval in nanoseconds or
+* an absolute Unadjusted System Time.  Unadjusted System Time is the number
+* of nanoseconds since some arbitrary system event (e.g. since the last
+* time the system booted).  The Unadjusted System Time is an unsigned
+* 64 bit value that wraps back to 0 every 584 years.  Time intervals
+* may be either signed or unsigned.
+*/
+typedef khronos_uint64_t       khronos_utime_nanoseconds_t;
+typedef khronos_int64_t        khronos_stime_nanoseconds_t;
+#endif
+
+/*
+* Dummy value used to pad enum types to 32 bits.
+*/
+#ifndef KHRONOS_MAX_ENUM
+#define KHRONOS_MAX_ENUM 0x7FFFFFFF
+#endif
+
+/*
+* Enumerated boolean type
+*
+* Values other than zero should be considered to be true.  Therefore
+* comparisons should not be made against KHRONOS_TRUE.
+*/
+typedef enum {
+    KHRONOS_FALSE = 0,
+    KHRONOS_TRUE = 1,
+    KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
+} khronos_boolean_enum_t;
+
+#endif /* __khrplatform_h_ */
+
+
+#ifndef __eglplatform_h_
+#define __eglplatform_h_
+
+/*
+** Copyright (c) 2007-2009 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+
+/* Platform-specific types and definitions for egl.h
+* $Revision: 12306 $ on $Date: 2010-08-25 09:51:28 -0700 (Wed, 25 Aug 2010) $
+*
+* Adopters may modify khrplatform.h and this file to suit their platform.
+* You are encouraged to submit all modifications to the Khronos group so that
+* they can be included in future versions of this file.  Please submit changes
+* by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
+* by filing a bug against product "EGL" component "Registry".
+*/
+
+/*#include <KHR/khrplatform.h>*/
+
+/* Macros used in EGL function prototype declarations.
+*
+* EGL functions should be prototyped as:
+*
+* EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
+* typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
+*
+* KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
+*/
+
+#ifndef EGLAPI
+#define EGLAPI KHRONOS_APICALL
+#endif
+
+#ifndef EGLAPIENTRY
+#define EGLAPIENTRY  KHRONOS_APIENTRY
+#endif
+#define EGLAPIENTRYP EGLAPIENTRY*
+
+/* The types NativeDisplayType, NativeWindowType, and NativePixmapType
+* are aliases of window-system-dependent types, such as X Display * or
+* Windows Device Context. They must be defined in platform-specific
+* code below. The EGL-prefixed versions of Native*Type are the same
+* types, renamed in EGL 1.3 so all types in the API start with "EGL".
+*
+* Khronos STRONGLY RECOMMENDS that you use the default definitions
+* provided below, since these changes affect both binary and source
+* portability of applications using EGL running on different EGL
+* implementations.
+*/
+
+#if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN 1
+#endif
+#include <windows.h>
+
+#if __WINRT__
+#include <Unknwn.h>
+typedef IUnknown * EGLNativeWindowType;
+typedef IUnknown * EGLNativePixmapType;
+typedef IUnknown * EGLNativeDisplayType;
+#else
+typedef HDC     EGLNativeDisplayType;
+typedef HBITMAP EGLNativePixmapType;
+typedef HWND    EGLNativeWindowType;
+#endif
+
+#elif defined(__WINSCW__) || defined(__SYMBIAN32__)  /* Symbian */
+
+typedef int   EGLNativeDisplayType;
+typedef void *EGLNativeWindowType;
+typedef void *EGLNativePixmapType;
+
+#elif defined(WL_EGL_PLATFORM)
+
+typedef struct wl_display     *EGLNativeDisplayType;
+typedef struct wl_egl_pixmap  *EGLNativePixmapType;
+typedef struct wl_egl_window  *EGLNativeWindowType;
+
+#elif defined(__GBM__)
+
+typedef struct gbm_device  *EGLNativeDisplayType;
+typedef struct gbm_bo      *EGLNativePixmapType;
+typedef void               *EGLNativeWindowType;
+
+#elif defined(__ANDROID__) /* Android */
+
+struct ANativeWindow;
+struct egl_native_pixmap_t;
+
+typedef struct ANativeWindow        *EGLNativeWindowType;
+typedef struct egl_native_pixmap_t  *EGLNativePixmapType;
+typedef void                        *EGLNativeDisplayType;
+
+#elif defined(MIR_EGL_PLATFORM)
+
+#include <mir_toolkit/mir_client_library.h>
+typedef MirEGLNativeDisplayType EGLNativeDisplayType;
+typedef void                   *EGLNativePixmapType;
+typedef MirEGLNativeWindowType  EGLNativeWindowType;
+
+#elif defined(__unix__)
+
+#ifdef MESA_EGL_NO_X11_HEADERS
+
+typedef void            *EGLNativeDisplayType;
+typedef khronos_uintptr_t EGLNativePixmapType;
+typedef khronos_uintptr_t EGLNativeWindowType;
+
+#else
+
+/* X11 (tentative)  */
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
+typedef Display *EGLNativeDisplayType;
+typedef Pixmap   EGLNativePixmapType;
+typedef Window   EGLNativeWindowType;
+
+#endif /* MESA_EGL_NO_X11_HEADERS */
+
+#else
+#error "Platform not recognized"
+#endif
+
+/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
+typedef EGLNativeDisplayType NativeDisplayType;
+typedef EGLNativePixmapType  NativePixmapType;
+typedef EGLNativeWindowType  NativeWindowType;
+
+
+/* Define EGLint. This must be a signed integral type large enough to contain
+* all legal attribute names and values passed into and out of EGL, whether
+* their type is boolean, bitmask, enumerant (symbolic constant), integer,
+* handle, or other.  While in general a 32-bit integer will suffice, if
+* handles are 64 bit types, then EGLint should be defined as a signed 64-bit
+* integer type.
+*/
+typedef khronos_int32_t EGLint;
+
+#endif /* __eglplatform_h */
+
+#ifndef __egl_h_
+#define __egl_h_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** Copyright (c) 2013-2015 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+/*
+** This header is generated from the Khronos OpenGL / OpenGL ES XML
+** API Registry. The current version of the Registry, generator scripts
+** used to make the header, and the header can be found at
+**   http://www.opengl.org/registry/
+**
+** Khronos $Revision: 31566 $ on $Date: 2015-06-23 08:48:48 -0700 (Tue, 23 Jun 2015) $
+*/
+
+/*#include <EGL/eglplatform.h>*/
+
+/* Generated on date 20150623 */
+
+/* Generated C header for:
+ * API: egl
+ * Versions considered: .*
+ * Versions emitted: .*
+ * Default extensions included: None
+ * Additional extensions included: _nomatch_^
+ * Extensions removed: _nomatch_^
+ */
+
+#ifndef EGL_VERSION_1_0
+#define EGL_VERSION_1_0 1
+typedef unsigned int EGLBoolean;
+typedef void *EGLDisplay;
+typedef void *EGLConfig;
+typedef void *EGLSurface;
+typedef void *EGLContext;
+typedef void (*__eglMustCastToProperFunctionPointerType)(void);
+#define EGL_ALPHA_SIZE                    0x3021
+#define EGL_BAD_ACCESS                    0x3002
+#define EGL_BAD_ALLOC                     0x3003
+#define EGL_BAD_ATTRIBUTE                 0x3004
+#define EGL_BAD_CONFIG                    0x3005
+#define EGL_BAD_CONTEXT                   0x3006
+#define EGL_BAD_CURRENT_SURFACE           0x3007
+#define EGL_BAD_DISPLAY                   0x3008
+#define EGL_BAD_MATCH                     0x3009
+#define EGL_BAD_NATIVE_PIXMAP             0x300A
+#define EGL_BAD_NATIVE_WINDOW             0x300B
+#define EGL_BAD_PARAMETER                 0x300C
+#define EGL_BAD_SURFACE                   0x300D
+#define EGL_BLUE_SIZE                     0x3022
+#define EGL_BUFFER_SIZE                   0x3020
+#define EGL_CONFIG_CAVEAT                 0x3027
+#define EGL_CONFIG_ID                     0x3028
+#define EGL_CORE_NATIVE_ENGINE            0x305B
+#define EGL_DEPTH_SIZE                    0x3025
+#define EGL_DONT_CARE                     ((EGLint)-1)
+#define EGL_DRAW                          0x3059
+#define EGL_EXTENSIONS                    0x3055
+#define EGL_FALSE                         0
+#define EGL_GREEN_SIZE                    0x3023
+#define EGL_HEIGHT                        0x3056
+#define EGL_LARGEST_PBUFFER               0x3058
+#define EGL_LEVEL                         0x3029
+#define EGL_MAX_PBUFFER_HEIGHT            0x302A
+#define EGL_MAX_PBUFFER_PIXELS            0x302B
+#define EGL_MAX_PBUFFER_WIDTH             0x302C
+#define EGL_NATIVE_RENDERABLE             0x302D
+#define EGL_NATIVE_VISUAL_ID              0x302E
+#define EGL_NATIVE_VISUAL_TYPE            0x302F
+#define EGL_NONE                          0x3038
+#define EGL_NON_CONFORMANT_CONFIG         0x3051
+#define EGL_NOT_INITIALIZED               0x3001
+#define EGL_NO_CONTEXT                    ((EGLContext)0)
+#define EGL_NO_DISPLAY                    ((EGLDisplay)0)
+#define EGL_NO_SURFACE                    ((EGLSurface)0)
+#define EGL_PBUFFER_BIT                   0x0001
+#define EGL_PIXMAP_BIT                    0x0002
+#define EGL_READ                          0x305A
+#define EGL_RED_SIZE                      0x3024
+#define EGL_SAMPLES                       0x3031
+#define EGL_SAMPLE_BUFFERS                0x3032
+#define EGL_SLOW_CONFIG                   0x3050
+#define EGL_STENCIL_SIZE                  0x3026
+#define EGL_SUCCESS                       0x3000
+#define EGL_SURFACE_TYPE                  0x3033
+#define EGL_TRANSPARENT_BLUE_VALUE        0x3035
+#define EGL_TRANSPARENT_GREEN_VALUE       0x3036
+#define EGL_TRANSPARENT_RED_VALUE         0x3037
+#define EGL_TRANSPARENT_RGB               0x3052
+#define EGL_TRANSPARENT_TYPE              0x3034
+#define EGL_TRUE                          1
+#define EGL_VENDOR                        0x3053
+#define EGL_VERSION                       0x3054
+#define EGL_WIDTH                         0x3057
+#define EGL_WINDOW_BIT                    0x0004
+EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
+EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
+EGLAPI EGLContext EGLAPIENTRY eglCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext (EGLDisplay dpy, EGLContext ctx);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface (EGLDisplay dpy, EGLSurface surface);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
+EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay (void);
+EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface (EGLint readdraw);
+EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay (EGLNativeDisplayType display_id);
+EGLAPI EGLint EGLAPIENTRY eglGetError (void);
+EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname);
+EGLAPI EGLBoolean EGLAPIENTRY eglInitialize (EGLDisplay dpy, EGLint *major, EGLint *minor);
+EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
+EGLAPI const char *EGLAPIENTRY eglQueryString (EGLDisplay dpy, EGLint name);
+EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers (EGLDisplay dpy, EGLSurface surface);
+EGLAPI EGLBoolean EGLAPIENTRY eglTerminate (EGLDisplay dpy);
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL (void);
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative (EGLint engine);
+#endif /* EGL_VERSION_1_0 */
+
+#ifndef EGL_VERSION_1_1
+#define EGL_VERSION_1_1 1
+#define EGL_BACK_BUFFER                   0x3084
+#define EGL_BIND_TO_TEXTURE_RGB           0x3039
+#define EGL_BIND_TO_TEXTURE_RGBA          0x303A
+#define EGL_CONTEXT_LOST                  0x300E
+#define EGL_MIN_SWAP_INTERVAL             0x303B
+#define EGL_MAX_SWAP_INTERVAL             0x303C
+#define EGL_MIPMAP_TEXTURE                0x3082
+#define EGL_MIPMAP_LEVEL                  0x3083
+#define EGL_NO_TEXTURE                    0x305C
+#define EGL_TEXTURE_2D                    0x305F
+#define EGL_TEXTURE_FORMAT                0x3080
+#define EGL_TEXTURE_RGB                   0x305D
+#define EGL_TEXTURE_RGBA                  0x305E
+#define EGL_TEXTURE_TARGET                0x3081
+EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
+EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
+EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval (EGLDisplay dpy, EGLint interval);
+#endif /* EGL_VERSION_1_1 */
+
+#ifndef EGL_VERSION_1_2
+#define EGL_VERSION_1_2 1
+typedef unsigned int EGLenum;
+typedef void *EGLClientBuffer;
+#define EGL_ALPHA_FORMAT                  0x3088
+#define EGL_ALPHA_FORMAT_NONPRE           0x308B
+#define EGL_ALPHA_FORMAT_PRE              0x308C
+#define EGL_ALPHA_MASK_SIZE               0x303E
+#define EGL_BUFFER_PRESERVED              0x3094
+#define EGL_BUFFER_DESTROYED              0x3095
+#define EGL_CLIENT_APIS                   0x308D
+#define EGL_COLORSPACE                    0x3087
+#define EGL_COLORSPACE_sRGB               0x3089
+#define EGL_COLORSPACE_LINEAR             0x308A
+#define EGL_COLOR_BUFFER_TYPE             0x303F
+#define EGL_CONTEXT_CLIENT_TYPE           0x3097
+#define EGL_DISPLAY_SCALING               10000
+#define EGL_HORIZONTAL_RESOLUTION         0x3090
+#define EGL_LUMINANCE_BUFFER              0x308F
+#define EGL_LUMINANCE_SIZE                0x303D
+#define EGL_OPENGL_ES_BIT                 0x0001
+#define EGL_OPENVG_BIT                    0x0002
+#define EGL_OPENGL_ES_API                 0x30A0
+#define EGL_OPENVG_API                    0x30A1
+#define EGL_OPENVG_IMAGE                  0x3096
+#define EGL_PIXEL_ASPECT_RATIO            0x3092
+#define EGL_RENDERABLE_TYPE               0x3040
+#define EGL_RENDER_BUFFER                 0x3086
+#define EGL_RGB_BUFFER                    0x308E
+#define EGL_SINGLE_BUFFER                 0x3085
+#define EGL_SWAP_BEHAVIOR                 0x3093
+#define EGL_UNKNOWN                       ((EGLint)-1)
+#define EGL_VERTICAL_RESOLUTION           0x3091
+EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI (EGLenum api);
+EGLAPI EGLenum EGLAPIENTRY eglQueryAPI (void);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread (void);
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient (void);
+#endif /* EGL_VERSION_1_2 */
+
+#ifndef EGL_VERSION_1_3
+#define EGL_VERSION_1_3 1
+#define EGL_CONFORMANT                    0x3042
+#define EGL_CONTEXT_CLIENT_VERSION        0x3098
+#define EGL_MATCH_NATIVE_PIXMAP           0x3041
+#define EGL_OPENGL_ES2_BIT                0x0004
+#define EGL_VG_ALPHA_FORMAT               0x3088
+#define EGL_VG_ALPHA_FORMAT_NONPRE        0x308B
+#define EGL_VG_ALPHA_FORMAT_PRE           0x308C
+#define EGL_VG_ALPHA_FORMAT_PRE_BIT       0x0040
+#define EGL_VG_COLORSPACE                 0x3087
+#define EGL_VG_COLORSPACE_sRGB            0x3089
+#define EGL_VG_COLORSPACE_LINEAR          0x308A
+#define EGL_VG_COLORSPACE_LINEAR_BIT      0x0020
+#endif /* EGL_VERSION_1_3 */
+
+#ifndef EGL_VERSION_1_4
+#define EGL_VERSION_1_4 1
+#define EGL_DEFAULT_DISPLAY               ((EGLNativeDisplayType)0)
+#define EGL_MULTISAMPLE_RESOLVE_BOX_BIT   0x0200
+#define EGL_MULTISAMPLE_RESOLVE           0x3099
+#define EGL_MULTISAMPLE_RESOLVE_DEFAULT   0x309A
+#define EGL_MULTISAMPLE_RESOLVE_BOX       0x309B
+#define EGL_OPENGL_API                    0x30A2
+#define EGL_OPENGL_BIT                    0x0008
+#define EGL_SWAP_BEHAVIOR_PRESERVED_BIT   0x0400
+EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext (void);
+#endif /* EGL_VERSION_1_4 */
+
+#ifndef EGL_VERSION_1_5
+#define EGL_VERSION_1_5 1
+typedef void *EGLSync;
+typedef intptr_t EGLAttrib;
+typedef khronos_utime_nanoseconds_t EGLTime;
+typedef void *EGLImage;
+#define EGL_CONTEXT_MAJOR_VERSION         0x3098
+#define EGL_CONTEXT_MINOR_VERSION         0x30FB
+#define EGL_CONTEXT_OPENGL_PROFILE_MASK   0x30FD
+#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
+#define EGL_NO_RESET_NOTIFICATION         0x31BE
+#define EGL_LOSE_CONTEXT_ON_RESET         0x31BF
+#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
+#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
+#define EGL_CONTEXT_OPENGL_DEBUG          0x31B0
+#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
+#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS  0x31B2
+#define EGL_OPENGL_ES3_BIT                0x00000040
+#define EGL_CL_EVENT_HANDLE               0x309C
+#define EGL_SYNC_CL_EVENT                 0x30FE
+#define EGL_SYNC_CL_EVENT_COMPLETE        0x30FF
+#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE  0x30F0
+#define EGL_SYNC_TYPE                     0x30F7
+#define EGL_SYNC_STATUS                   0x30F1
+#define EGL_SYNC_CONDITION                0x30F8
+#define EGL_SIGNALED                      0x30F2
+#define EGL_UNSIGNALED                    0x30F3
+#define EGL_SYNC_FLUSH_COMMANDS_BIT       0x0001
+#define EGL_FOREVER                       0xFFFFFFFFFFFFFFFFull
+#define EGL_TIMEOUT_EXPIRED               0x30F5
+#define EGL_CONDITION_SATISFIED           0x30F6
+#define EGL_NO_SYNC                       ((EGLSync)0)
+#define EGL_SYNC_FENCE                    0x30F9
+#define EGL_GL_COLORSPACE                 0x309D
+#define EGL_GL_COLORSPACE_SRGB            0x3089
+#define EGL_GL_COLORSPACE_LINEAR          0x308A
+#define EGL_GL_RENDERBUFFER               0x30B9
+#define EGL_GL_TEXTURE_2D                 0x30B1
+#define EGL_GL_TEXTURE_LEVEL              0x30BC
+#define EGL_GL_TEXTURE_3D                 0x30B2
+#define EGL_GL_TEXTURE_ZOFFSET            0x30BD
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
+#define EGL_IMAGE_PRESERVED               0x30D2
+#define EGL_NO_IMAGE                      ((EGLImage)0)
+EGLAPI EGLSync EGLAPIENTRY eglCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroySync (EGLDisplay dpy, EGLSync sync);
+EGLAPI EGLint EGLAPIENTRY eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value);
+EGLAPI EGLImage EGLAPIENTRY eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImage (EGLDisplay dpy, EGLImage image);
+EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplay (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags);
+#endif /* EGL_VERSION_1_5 */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __egl_h_ */
+
+
+
+#ifndef __eglext_h_
+#define __eglext_h_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** Copyright (c) 2013-2015 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+/*
+** This header is generated from the Khronos OpenGL / OpenGL ES XML
+** API Registry. The current version of the Registry, generator scripts
+** used to make the header, and the header can be found at
+**   http://www.opengl.org/registry/
+**
+** Khronos $Revision: 31566 $ on $Date: 2015-06-23 08:48:48 -0700 (Tue, 23 Jun 2015) $
+*/
+
+/*#include <EGL/eglplatform.h>*/
+
+#define EGL_EGLEXT_VERSION 20150623
+
+/* Generated C header for:
+ * API: egl
+ * Versions considered: .*
+ * Versions emitted: _nomatch_^
+ * Default extensions included: egl
+ * Additional extensions included: _nomatch_^
+ * Extensions removed: _nomatch_^
+ */
+
+#ifndef EGL_KHR_cl_event
+#define EGL_KHR_cl_event 1
+#define EGL_CL_EVENT_HANDLE_KHR           0x309C
+#define EGL_SYNC_CL_EVENT_KHR             0x30FE
+#define EGL_SYNC_CL_EVENT_COMPLETE_KHR    0x30FF
+#endif /* EGL_KHR_cl_event */
+
+#ifndef EGL_KHR_cl_event2
+#define EGL_KHR_cl_event2 1
+typedef void *EGLSyncKHR;
+typedef intptr_t EGLAttribKHR;
+typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSync64KHR (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
+#endif
+#endif /* EGL_KHR_cl_event2 */
+
+#ifndef EGL_KHR_client_get_all_proc_addresses
+#define EGL_KHR_client_get_all_proc_addresses 1
+#endif /* EGL_KHR_client_get_all_proc_addresses */
+
+#ifndef EGL_KHR_config_attribs
+#define EGL_KHR_config_attribs 1
+#define EGL_CONFORMANT_KHR                0x3042
+#define EGL_VG_COLORSPACE_LINEAR_BIT_KHR  0x0020
+#define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR   0x0040
+#endif /* EGL_KHR_config_attribs */
+
+#ifndef EGL_KHR_create_context
+#define EGL_KHR_create_context 1
+#define EGL_CONTEXT_MAJOR_VERSION_KHR     0x3098
+#define EGL_CONTEXT_MINOR_VERSION_KHR     0x30FB
+#define EGL_CONTEXT_FLAGS_KHR             0x30FC
+#define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
+#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
+#define EGL_NO_RESET_NOTIFICATION_KHR     0x31BE
+#define EGL_LOSE_CONTEXT_ON_RESET_KHR     0x31BF
+#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR  0x00000001
+#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
+#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
+#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
+#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
+#define EGL_OPENGL_ES3_BIT_KHR            0x00000040
+#endif /* EGL_KHR_create_context */
+
+#ifndef EGL_KHR_create_context_no_error
+#define EGL_KHR_create_context_no_error 1
+#define EGL_CONTEXT_OPENGL_NO_ERROR_KHR   0x31B3
+#endif /* EGL_KHR_create_context_no_error */
+
+#ifndef EGL_KHR_fence_sync
+#define EGL_KHR_fence_sync 1
+typedef khronos_utime_nanoseconds_t EGLTimeKHR;
+#ifdef KHRONOS_SUPPORT_INT64
+#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
+#define EGL_SYNC_CONDITION_KHR            0x30F8
+#define EGL_SYNC_FENCE_KHR                0x30F9
+typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
+typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
+EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_KHR_fence_sync */
+
+#ifndef EGL_KHR_get_all_proc_addresses
+#define EGL_KHR_get_all_proc_addresses 1
+#endif /* EGL_KHR_get_all_proc_addresses */
+
+#ifndef EGL_KHR_gl_colorspace
+#define EGL_KHR_gl_colorspace 1
+#define EGL_GL_COLORSPACE_KHR             0x309D
+#define EGL_GL_COLORSPACE_SRGB_KHR        0x3089
+#define EGL_GL_COLORSPACE_LINEAR_KHR      0x308A
+#endif /* EGL_KHR_gl_colorspace */
+
+#ifndef EGL_KHR_gl_renderbuffer_image
+#define EGL_KHR_gl_renderbuffer_image 1
+#define EGL_GL_RENDERBUFFER_KHR           0x30B9
+#endif /* EGL_KHR_gl_renderbuffer_image */
+
+#ifndef EGL_KHR_gl_texture_2D_image
+#define EGL_KHR_gl_texture_2D_image 1
+#define EGL_GL_TEXTURE_2D_KHR             0x30B1
+#define EGL_GL_TEXTURE_LEVEL_KHR          0x30BC
+#endif /* EGL_KHR_gl_texture_2D_image */
+
+#ifndef EGL_KHR_gl_texture_3D_image
+#define EGL_KHR_gl_texture_3D_image 1
+#define EGL_GL_TEXTURE_3D_KHR             0x30B2
+#define EGL_GL_TEXTURE_ZOFFSET_KHR        0x30BD
+#endif /* EGL_KHR_gl_texture_3D_image */
+
+#ifndef EGL_KHR_gl_texture_cubemap_image
+#define EGL_KHR_gl_texture_cubemap_image 1
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
+#endif /* EGL_KHR_gl_texture_cubemap_image */
+
+#ifndef EGL_KHR_image
+#define EGL_KHR_image 1
+typedef void *EGLImageKHR;
+#define EGL_NATIVE_PIXMAP_KHR             0x30B0
+#define EGL_NO_IMAGE_KHR                  ((EGLImageKHR)0)
+typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
+#endif
+#endif /* EGL_KHR_image */
+
+#ifndef EGL_KHR_image_base
+#define EGL_KHR_image_base 1
+#define EGL_IMAGE_PRESERVED_KHR           0x30D2
+#endif /* EGL_KHR_image_base */
+
+#ifndef EGL_KHR_image_pixmap
+#define EGL_KHR_image_pixmap 1
+#endif /* EGL_KHR_image_pixmap */
+
+#ifndef EGL_KHR_lock_surface
+#define EGL_KHR_lock_surface 1
+#define EGL_READ_SURFACE_BIT_KHR          0x0001
+#define EGL_WRITE_SURFACE_BIT_KHR         0x0002
+#define EGL_LOCK_SURFACE_BIT_KHR          0x0080
+#define EGL_OPTIMAL_FORMAT_BIT_KHR        0x0100
+#define EGL_MATCH_FORMAT_KHR              0x3043
+#define EGL_FORMAT_RGB_565_EXACT_KHR      0x30C0
+#define EGL_FORMAT_RGB_565_KHR            0x30C1
+#define EGL_FORMAT_RGBA_8888_EXACT_KHR    0x30C2
+#define EGL_FORMAT_RGBA_8888_KHR          0x30C3
+#define EGL_MAP_PRESERVE_PIXELS_KHR       0x30C4
+#define EGL_LOCK_USAGE_HINT_KHR           0x30C5
+#define EGL_BITMAP_POINTER_KHR            0x30C6
+#define EGL_BITMAP_PITCH_KHR              0x30C7
+#define EGL_BITMAP_ORIGIN_KHR             0x30C8
+#define EGL_BITMAP_PIXEL_RED_OFFSET_KHR   0x30C9
+#define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
+#define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR  0x30CB
+#define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
+#define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
+#define EGL_LOWER_LEFT_KHR                0x30CE
+#define EGL_UPPER_LEFT_KHR                0x30CF
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
+#endif
+#endif /* EGL_KHR_lock_surface */
+
+#ifndef EGL_KHR_lock_surface2
+#define EGL_KHR_lock_surface2 1
+#define EGL_BITMAP_PIXEL_SIZE_KHR         0x3110
+#endif /* EGL_KHR_lock_surface2 */
+
+#ifndef EGL_KHR_lock_surface3
+#define EGL_KHR_lock_surface3 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
+#endif
+#endif /* EGL_KHR_lock_surface3 */
+
+#ifndef EGL_KHR_partial_update
+#define EGL_KHR_partial_update 1
+#define EGL_BUFFER_AGE_KHR                0x313D
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#endif
+#endif /* EGL_KHR_partial_update */
+
+#ifndef EGL_KHR_platform_android
+#define EGL_KHR_platform_android 1
+#define EGL_PLATFORM_ANDROID_KHR          0x3141
+#endif /* EGL_KHR_platform_android */
+
+#ifndef EGL_KHR_platform_gbm
+#define EGL_KHR_platform_gbm 1
+#define EGL_PLATFORM_GBM_KHR              0x31D7
+#endif /* EGL_KHR_platform_gbm */
+
+#ifndef EGL_KHR_platform_wayland
+#define EGL_KHR_platform_wayland 1
+#define EGL_PLATFORM_WAYLAND_KHR          0x31D8
+#endif /* EGL_KHR_platform_wayland */
+
+#ifndef EGL_KHR_platform_x11
+#define EGL_KHR_platform_x11 1
+#define EGL_PLATFORM_X11_KHR              0x31D5
+#define EGL_PLATFORM_X11_SCREEN_KHR       0x31D6
+#endif /* EGL_KHR_platform_x11 */
+
+#ifndef EGL_KHR_reusable_sync
+#define EGL_KHR_reusable_sync 1
+#ifdef KHRONOS_SUPPORT_INT64
+#define EGL_SYNC_STATUS_KHR               0x30F1
+#define EGL_SIGNALED_KHR                  0x30F2
+#define EGL_UNSIGNALED_KHR                0x30F3
+#define EGL_TIMEOUT_EXPIRED_KHR           0x30F5
+#define EGL_CONDITION_SATISFIED_KHR       0x30F6
+#define EGL_SYNC_TYPE_KHR                 0x30F7
+#define EGL_SYNC_REUSABLE_KHR             0x30FA
+#define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR   0x0001
+#define EGL_FOREVER_KHR                   0xFFFFFFFFFFFFFFFFull
+#define EGL_NO_SYNC_KHR                   ((EGLSyncKHR)0)
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_KHR_reusable_sync */
+
+#ifndef EGL_KHR_stream
+#define EGL_KHR_stream 1
+typedef void *EGLStreamKHR;
+typedef khronos_uint64_t EGLuint64KHR;
+#ifdef KHRONOS_SUPPORT_INT64
+#define EGL_NO_STREAM_KHR                 ((EGLStreamKHR)0)
+#define EGL_CONSUMER_LATENCY_USEC_KHR     0x3210
+#define EGL_PRODUCER_FRAME_KHR            0x3212
+#define EGL_CONSUMER_FRAME_KHR            0x3213
+#define EGL_STREAM_STATE_KHR              0x3214
+#define EGL_STREAM_STATE_CREATED_KHR      0x3215
+#define EGL_STREAM_STATE_CONNECTING_KHR   0x3216
+#define EGL_STREAM_STATE_EMPTY_KHR        0x3217
+#define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
+#define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
+#define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
+#define EGL_BAD_STREAM_KHR                0x321B
+#define EGL_BAD_STATE_KHR                 0x321C
+typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_KHR_stream */
+
+#ifndef EGL_KHR_stream_consumer_gltexture
+#define EGL_KHR_stream_consumer_gltexture 1
+#ifdef EGL_KHR_stream
+#define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
+#endif
+#endif /* EGL_KHR_stream */
+#endif /* EGL_KHR_stream_consumer_gltexture */
+
+#ifndef EGL_KHR_stream_cross_process_fd
+#define EGL_KHR_stream_cross_process_fd 1
+typedef int EGLNativeFileDescriptorKHR;
+#ifdef EGL_KHR_stream
+#define EGL_NO_FILE_DESCRIPTOR_KHR        ((EGLNativeFileDescriptorKHR)(-1))
+typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
+EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
+#endif
+#endif /* EGL_KHR_stream */
+#endif /* EGL_KHR_stream_cross_process_fd */
+
+#ifndef EGL_KHR_stream_fifo
+#define EGL_KHR_stream_fifo 1
+#ifdef EGL_KHR_stream
+#define EGL_STREAM_FIFO_LENGTH_KHR        0x31FC
+#define EGL_STREAM_TIME_NOW_KHR           0x31FD
+#define EGL_STREAM_TIME_CONSUMER_KHR      0x31FE
+#define EGL_STREAM_TIME_PRODUCER_KHR      0x31FF
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
+#endif
+#endif /* EGL_KHR_stream */
+#endif /* EGL_KHR_stream_fifo */
+
+#ifndef EGL_KHR_stream_producer_aldatalocator
+#define EGL_KHR_stream_producer_aldatalocator 1
+#ifdef EGL_KHR_stream
+#endif /* EGL_KHR_stream */
+#endif /* EGL_KHR_stream_producer_aldatalocator */
+
+#ifndef EGL_KHR_stream_producer_eglsurface
+#define EGL_KHR_stream_producer_eglsurface 1
+#ifdef EGL_KHR_stream
+#define EGL_STREAM_BIT_KHR                0x0800
+typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
+#endif
+#endif /* EGL_KHR_stream */
+#endif /* EGL_KHR_stream_producer_eglsurface */
+
+#ifndef EGL_KHR_surfaceless_context
+#define EGL_KHR_surfaceless_context 1
+#endif /* EGL_KHR_surfaceless_context */
+
+#ifndef EGL_KHR_swap_buffers_with_damage
+#define EGL_KHR_swap_buffers_with_damage 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#endif
+#endif /* EGL_KHR_swap_buffers_with_damage */
+
+#ifndef EGL_KHR_vg_parent_image
+#define EGL_KHR_vg_parent_image 1
+#define EGL_VG_PARENT_IMAGE_KHR           0x30BA
+#endif /* EGL_KHR_vg_parent_image */
+
+#ifndef EGL_KHR_wait_sync
+#define EGL_KHR_wait_sync 1
+typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
+#endif
+#endif /* EGL_KHR_wait_sync */
+
+#ifndef EGL_ANDROID_blob_cache
+#define EGL_ANDROID_blob_cache 1
+typedef khronos_ssize_t EGLsizeiANDROID;
+typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
+typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
+typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
+#endif
+#endif /* EGL_ANDROID_blob_cache */
+
+#ifndef EGL_ANDROID_framebuffer_target
+#define EGL_ANDROID_framebuffer_target 1
+#define EGL_FRAMEBUFFER_TARGET_ANDROID    0x3147
+#endif /* EGL_ANDROID_framebuffer_target */
+
+#ifndef EGL_ANDROID_image_native_buffer
+#define EGL_ANDROID_image_native_buffer 1
+#define EGL_NATIVE_BUFFER_ANDROID         0x3140
+#endif /* EGL_ANDROID_image_native_buffer */
+
+#ifndef EGL_ANDROID_native_fence_sync
+#define EGL_ANDROID_native_fence_sync 1
+#define EGL_SYNC_NATIVE_FENCE_ANDROID     0x3144
+#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID  0x3145
+#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
+#define EGL_NO_NATIVE_FENCE_FD_ANDROID    -1
+typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
+#endif
+#endif /* EGL_ANDROID_native_fence_sync */
+
+#ifndef EGL_ANDROID_recordable
+#define EGL_ANDROID_recordable 1
+#define EGL_RECORDABLE_ANDROID            0x3142
+#endif /* EGL_ANDROID_recordable */
+
+#ifndef EGL_ANGLE_d3d_share_handle_client_buffer
+#define EGL_ANGLE_d3d_share_handle_client_buffer 1
+#define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
+#endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
+
+#ifndef EGL_ANGLE_device_d3d
+#define EGL_ANGLE_device_d3d 1
+#define EGL_D3D9_DEVICE_ANGLE             0x33A0
+#define EGL_D3D11_DEVICE_ANGLE            0x33A1
+#endif /* EGL_ANGLE_device_d3d */
+
+#ifndef EGL_ANGLE_query_surface_pointer
+#define EGL_ANGLE_query_surface_pointer 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
+#endif
+#endif /* EGL_ANGLE_query_surface_pointer */
+
+#ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
+#define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
+#endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
+
+#ifndef EGL_ANGLE_window_fixed_size
+#define EGL_ANGLE_window_fixed_size 1
+#define EGL_FIXED_SIZE_ANGLE              0x3201
+#endif /* EGL_ANGLE_window_fixed_size */
+
+#ifndef EGL_ARM_pixmap_multisample_discard
+#define EGL_ARM_pixmap_multisample_discard 1
+#define EGL_DISCARD_SAMPLES_ARM           0x3286
+#endif /* EGL_ARM_pixmap_multisample_discard */
+
+#ifndef EGL_EXT_buffer_age
+#define EGL_EXT_buffer_age 1
+#define EGL_BUFFER_AGE_EXT                0x313D
+#endif /* EGL_EXT_buffer_age */
+
+#ifndef EGL_EXT_client_extensions
+#define EGL_EXT_client_extensions 1
+#endif /* EGL_EXT_client_extensions */
+
+#ifndef EGL_EXT_create_context_robustness
+#define EGL_EXT_create_context_robustness 1
+#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
+#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
+#define EGL_NO_RESET_NOTIFICATION_EXT     0x31BE
+#define EGL_LOSE_CONTEXT_ON_RESET_EXT     0x31BF
+#endif /* EGL_EXT_create_context_robustness */
+
+#ifndef EGL_EXT_device_base
+#define EGL_EXT_device_base 1
+typedef void *EGLDeviceEXT;
+#define EGL_NO_DEVICE_EXT                 ((EGLDeviceEXT)(0))
+#define EGL_BAD_DEVICE_EXT                0x322B
+#define EGL_DEVICE_EXT                    0x322C
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
+typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
+EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
+#endif
+#endif /* EGL_EXT_device_base */
+
+#ifndef EGL_EXT_device_drm
+#define EGL_EXT_device_drm 1
+#define EGL_DRM_DEVICE_FILE_EXT           0x3233
+#endif /* EGL_EXT_device_drm */
+
+#ifndef EGL_EXT_device_enumeration
+#define EGL_EXT_device_enumeration 1
+#endif /* EGL_EXT_device_enumeration */
+
+#ifndef EGL_EXT_device_openwf
+#define EGL_EXT_device_openwf 1
+#define EGL_OPENWF_DEVICE_ID_EXT          0x3237
+#endif /* EGL_EXT_device_openwf */
+
+#ifndef EGL_EXT_device_query
+#define EGL_EXT_device_query 1
+#endif /* EGL_EXT_device_query */
+
+#ifndef EGL_EXT_image_dma_buf_import
+#define EGL_EXT_image_dma_buf_import 1
+#define EGL_LINUX_DMA_BUF_EXT             0x3270
+#define EGL_LINUX_DRM_FOURCC_EXT          0x3271
+#define EGL_DMA_BUF_PLANE0_FD_EXT         0x3272
+#define EGL_DMA_BUF_PLANE0_OFFSET_EXT     0x3273
+#define EGL_DMA_BUF_PLANE0_PITCH_EXT      0x3274
+#define EGL_DMA_BUF_PLANE1_FD_EXT         0x3275
+#define EGL_DMA_BUF_PLANE1_OFFSET_EXT     0x3276
+#define EGL_DMA_BUF_PLANE1_PITCH_EXT      0x3277
+#define EGL_DMA_BUF_PLANE2_FD_EXT         0x3278
+#define EGL_DMA_BUF_PLANE2_OFFSET_EXT     0x3279
+#define EGL_DMA_BUF_PLANE2_PITCH_EXT      0x327A
+#define EGL_YUV_COLOR_SPACE_HINT_EXT      0x327B
+#define EGL_SAMPLE_RANGE_HINT_EXT         0x327C
+#define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
+#define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
+#define EGL_ITU_REC601_EXT                0x327F
+#define EGL_ITU_REC709_EXT                0x3280
+#define EGL_ITU_REC2020_EXT               0x3281
+#define EGL_YUV_FULL_RANGE_EXT            0x3282
+#define EGL_YUV_NARROW_RANGE_EXT          0x3283
+#define EGL_YUV_CHROMA_SITING_0_EXT       0x3284
+#define EGL_YUV_CHROMA_SITING_0_5_EXT     0x3285
+#endif /* EGL_EXT_image_dma_buf_import */
+
+#ifndef EGL_EXT_multiview_window
+#define EGL_EXT_multiview_window 1
+#define EGL_MULTIVIEW_VIEW_COUNT_EXT      0x3134
+#endif /* EGL_EXT_multiview_window */
+
+#ifndef EGL_EXT_output_base
+#define EGL_EXT_output_base 1
+typedef void *EGLOutputLayerEXT;
+typedef void *EGLOutputPortEXT;
+#define EGL_NO_OUTPUT_LAYER_EXT           ((EGLOutputLayerEXT)0)
+#define EGL_NO_OUTPUT_PORT_EXT            ((EGLOutputPortEXT)0)
+#define EGL_BAD_OUTPUT_LAYER_EXT          0x322D
+#define EGL_BAD_OUTPUT_PORT_EXT           0x322E
+#define EGL_SWAP_INTERVAL_EXT             0x322F
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
+typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
+typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
+EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
+EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
+EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
+EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
+#endif
+#endif /* EGL_EXT_output_base */
+
+#ifndef EGL_EXT_output_drm
+#define EGL_EXT_output_drm 1
+#define EGL_DRM_CRTC_EXT                  0x3234
+#define EGL_DRM_PLANE_EXT                 0x3235
+#define EGL_DRM_CONNECTOR_EXT             0x3236
+#endif /* EGL_EXT_output_drm */
+
+#ifndef EGL_EXT_output_openwf
+#define EGL_EXT_output_openwf 1
+#define EGL_OPENWF_PIPELINE_ID_EXT        0x3238
+#define EGL_OPENWF_PORT_ID_EXT            0x3239
+#endif /* EGL_EXT_output_openwf */
+
+#ifndef EGL_EXT_platform_base
+#define EGL_EXT_platform_base 1
+typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
+typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
+typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
+#endif
+#endif /* EGL_EXT_platform_base */
+
+#ifndef EGL_EXT_platform_device
+#define EGL_EXT_platform_device 1
+#define EGL_PLATFORM_DEVICE_EXT           0x313F
+#endif /* EGL_EXT_platform_device */
+
+#ifndef EGL_EXT_platform_wayland
+#define EGL_EXT_platform_wayland 1
+#define EGL_PLATFORM_WAYLAND_EXT          0x31D8
+#endif /* EGL_EXT_platform_wayland */
+
+#ifndef EGL_EXT_platform_x11
+#define EGL_EXT_platform_x11 1
+#define EGL_PLATFORM_X11_EXT              0x31D5
+#define EGL_PLATFORM_X11_SCREEN_EXT       0x31D6
+#endif /* EGL_EXT_platform_x11 */
+
+#ifndef EGL_EXT_protected_surface
+#define EGL_EXT_protected_surface 1
+#define EGL_PROTECTED_CONTENT_EXT         0x32C0
+#endif /* EGL_EXT_protected_surface */
+
+#ifndef EGL_EXT_stream_consumer_egloutput
+#define EGL_EXT_stream_consumer_egloutput 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
+#endif
+#endif /* EGL_EXT_stream_consumer_egloutput */
+
+#ifndef EGL_EXT_swap_buffers_with_damage
+#define EGL_EXT_swap_buffers_with_damage 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#endif
+#endif /* EGL_EXT_swap_buffers_with_damage */
+
+#ifndef EGL_EXT_yuv_surface
+#define EGL_EXT_yuv_surface 1
+#define EGL_YUV_ORDER_EXT                 0x3301
+#define EGL_YUV_NUMBER_OF_PLANES_EXT      0x3311
+#define EGL_YUV_SUBSAMPLE_EXT             0x3312
+#define EGL_YUV_DEPTH_RANGE_EXT           0x3317
+#define EGL_YUV_CSC_STANDARD_EXT          0x330A
+#define EGL_YUV_PLANE_BPP_EXT             0x331A
+#define EGL_YUV_BUFFER_EXT                0x3300
+#define EGL_YUV_ORDER_YUV_EXT             0x3302
+#define EGL_YUV_ORDER_YVU_EXT             0x3303
+#define EGL_YUV_ORDER_YUYV_EXT            0x3304
+#define EGL_YUV_ORDER_UYVY_EXT            0x3305
+#define EGL_YUV_ORDER_YVYU_EXT            0x3306
+#define EGL_YUV_ORDER_VYUY_EXT            0x3307
+#define EGL_YUV_ORDER_AYUV_EXT            0x3308
+#define EGL_YUV_SUBSAMPLE_4_2_0_EXT       0x3313
+#define EGL_YUV_SUBSAMPLE_4_2_2_EXT       0x3314
+#define EGL_YUV_SUBSAMPLE_4_4_4_EXT       0x3315
+#define EGL_YUV_DEPTH_RANGE_LIMITED_EXT   0x3318
+#define EGL_YUV_DEPTH_RANGE_FULL_EXT      0x3319
+#define EGL_YUV_CSC_STANDARD_601_EXT      0x330B
+#define EGL_YUV_CSC_STANDARD_709_EXT      0x330C
+#define EGL_YUV_CSC_STANDARD_2020_EXT     0x330D
+#define EGL_YUV_PLANE_BPP_0_EXT           0x331B
+#define EGL_YUV_PLANE_BPP_8_EXT           0x331C
+#define EGL_YUV_PLANE_BPP_10_EXT          0x331D
+#endif /* EGL_EXT_yuv_surface */
+
+#ifndef EGL_HI_clientpixmap
+#define EGL_HI_clientpixmap 1
+struct EGLClientPixmapHI {
+    void  *pData;
+    EGLint iWidth;
+    EGLint iHeight;
+    EGLint iStride;
+};
+#define EGL_CLIENT_PIXMAP_POINTER_HI      0x8F74
+typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
+#endif
+#endif /* EGL_HI_clientpixmap */
+
+#ifndef EGL_HI_colorformats
+#define EGL_HI_colorformats 1
+#define EGL_COLOR_FORMAT_HI               0x8F70
+#define EGL_COLOR_RGB_HI                  0x8F71
+#define EGL_COLOR_RGBA_HI                 0x8F72
+#define EGL_COLOR_ARGB_HI                 0x8F73
+#endif /* EGL_HI_colorformats */
+
+#ifndef EGL_IMG_context_priority
+#define EGL_IMG_context_priority 1
+#define EGL_CONTEXT_PRIORITY_LEVEL_IMG    0x3100
+#define EGL_CONTEXT_PRIORITY_HIGH_IMG     0x3101
+#define EGL_CONTEXT_PRIORITY_MEDIUM_IMG   0x3102
+#define EGL_CONTEXT_PRIORITY_LOW_IMG      0x3103
+#endif /* EGL_IMG_context_priority */
+
+#ifndef EGL_MESA_drm_image
+#define EGL_MESA_drm_image 1
+#define EGL_DRM_BUFFER_FORMAT_MESA        0x31D0
+#define EGL_DRM_BUFFER_USE_MESA           0x31D1
+#define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
+#define EGL_DRM_BUFFER_MESA               0x31D3
+#define EGL_DRM_BUFFER_STRIDE_MESA        0x31D4
+#define EGL_DRM_BUFFER_USE_SCANOUT_MESA   0x00000001
+#define EGL_DRM_BUFFER_USE_SHARE_MESA     0x00000002
+typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
+#endif
+#endif /* EGL_MESA_drm_image */
+
+#ifndef EGL_MESA_image_dma_buf_export
+#define EGL_MESA_image_dma_buf_export 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
+EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
+#endif
+#endif /* EGL_MESA_image_dma_buf_export */
+
+#ifndef EGL_MESA_platform_gbm
+#define EGL_MESA_platform_gbm 1
+#define EGL_PLATFORM_GBM_MESA             0x31D7
+#endif /* EGL_MESA_platform_gbm */
+
+#ifndef EGL_NOK_swap_region
+#define EGL_NOK_swap_region 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
+#endif
+#endif /* EGL_NOK_swap_region */
+
+#ifndef EGL_NOK_swap_region2
+#define EGL_NOK_swap_region2 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
+#endif
+#endif /* EGL_NOK_swap_region2 */
+
+#ifndef EGL_NOK_texture_from_pixmap
+#define EGL_NOK_texture_from_pixmap 1
+#define EGL_Y_INVERTED_NOK                0x307F
+#endif /* EGL_NOK_texture_from_pixmap */
+
+#ifndef EGL_NV_3dvision_surface
+#define EGL_NV_3dvision_surface 1
+#define EGL_AUTO_STEREO_NV                0x3136
+#endif /* EGL_NV_3dvision_surface */
+
+#ifndef EGL_NV_coverage_sample
+#define EGL_NV_coverage_sample 1
+#define EGL_COVERAGE_BUFFERS_NV           0x30E0
+#define EGL_COVERAGE_SAMPLES_NV           0x30E1
+#endif /* EGL_NV_coverage_sample */
+
+#ifndef EGL_NV_coverage_sample_resolve
+#define EGL_NV_coverage_sample_resolve 1
+#define EGL_COVERAGE_SAMPLE_RESOLVE_NV    0x3131
+#define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
+#define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
+#endif /* EGL_NV_coverage_sample_resolve */
+
+#ifndef EGL_NV_cuda_event
+#define EGL_NV_cuda_event 1
+#define EGL_CUDA_EVENT_HANDLE_NV          0x323B
+#define EGL_SYNC_CUDA_EVENT_NV            0x323C
+#define EGL_SYNC_CUDA_EVENT_COMPLETE_NV   0x323D
+#endif /* EGL_NV_cuda_event */
+
+#ifndef EGL_NV_depth_nonlinear
+#define EGL_NV_depth_nonlinear 1
+#define EGL_DEPTH_ENCODING_NV             0x30E2
+#define EGL_DEPTH_ENCODING_NONE_NV        0
+#define EGL_DEPTH_ENCODING_NONLINEAR_NV   0x30E3
+#endif /* EGL_NV_depth_nonlinear */
+
+#ifndef EGL_NV_device_cuda
+#define EGL_NV_device_cuda 1
+#define EGL_CUDA_DEVICE_NV                0x323A
+#endif /* EGL_NV_device_cuda */
+
+#ifndef EGL_NV_native_query
+#define EGL_NV_native_query 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
+#endif
+#endif /* EGL_NV_native_query */
+
+#ifndef EGL_NV_post_convert_rounding
+#define EGL_NV_post_convert_rounding 1
+#endif /* EGL_NV_post_convert_rounding */
+
+#ifndef EGL_NV_post_sub_buffer
+#define EGL_NV_post_sub_buffer 1
+#define EGL_POST_SUB_BUFFER_SUPPORTED_NV  0x30BE
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
+#endif
+#endif /* EGL_NV_post_sub_buffer */
+
+#ifndef EGL_NV_stream_sync
+#define EGL_NV_stream_sync 1
+#define EGL_SYNC_NEW_FRAME_NV             0x321F
+typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
+#endif
+#endif /* EGL_NV_stream_sync */
+
+#ifndef EGL_NV_sync
+#define EGL_NV_sync 1
+typedef void *EGLSyncNV;
+typedef khronos_utime_nanoseconds_t EGLTimeNV;
+#ifdef KHRONOS_SUPPORT_INT64
+#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
+#define EGL_SYNC_STATUS_NV                0x30E7
+#define EGL_SIGNALED_NV                   0x30E8
+#define EGL_UNSIGNALED_NV                 0x30E9
+#define EGL_SYNC_FLUSH_COMMANDS_BIT_NV    0x0001
+#define EGL_FOREVER_NV                    0xFFFFFFFFFFFFFFFFull
+#define EGL_ALREADY_SIGNALED_NV           0x30EA
+#define EGL_TIMEOUT_EXPIRED_NV            0x30EB
+#define EGL_CONDITION_SATISFIED_NV        0x30EC
+#define EGL_SYNC_TYPE_NV                  0x30ED
+#define EGL_SYNC_CONDITION_NV             0x30EE
+#define EGL_SYNC_FENCE_NV                 0x30EF
+#define EGL_NO_SYNC_NV                    ((EGLSyncNV)0)
+typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
+typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
+EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
+EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
+EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_NV_sync */
+
+#ifndef EGL_NV_system_time
+#define EGL_NV_system_time 1
+typedef khronos_utime_nanoseconds_t EGLuint64NV;
+#ifdef KHRONOS_SUPPORT_INT64
+typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
+typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
+EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_NV_system_time */
+
+#ifndef EGL_TIZEN_image_native_buffer
+#define EGL_TIZEN_image_native_buffer 1
+#define EGL_NATIVE_BUFFER_TIZEN           0x32A0
+#endif /* EGL_TIZEN_image_native_buffer */
+
+#ifndef EGL_TIZEN_image_native_surface
+#define EGL_TIZEN_image_native_surface 1
+#define EGL_NATIVE_SURFACE_TIZEN          0x32A1
+#endif /* EGL_TIZEN_image_native_surface */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __eglext_h_ */
+
+
+#endif /* _MSC_VER */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_endian.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_endian.h
new file mode 100644
index 0000000..ed0bf5b
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_endian.h
@@ -0,0 +1,260 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_endian.h
+ *
+ *  Functions for reading and writing endian-specific values
+ */
+
+#ifndef SDL_endian_h_
+#define SDL_endian_h_
+
+#include "SDL_stdinc.h"
+
+/**
+ *  \name The two types of endianness
+ */
+/* @{ */
+#define SDL_LIL_ENDIAN  1234
+#define SDL_BIG_ENDIAN  4321
+/* @} */
+
+#ifndef SDL_BYTEORDER           /* Not defined in SDL_config.h? */
+#ifdef __linux__
+#include <endian.h>
+#define SDL_BYTEORDER  __BYTE_ORDER
+#else /* __linux__ */
+#if defined(__hppa__) || \
+    defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
+    (defined(__MIPS__) && defined(__MISPEB__)) || \
+    defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || \
+    defined(__sparc__)
+#define SDL_BYTEORDER   SDL_BIG_ENDIAN
+#else
+#define SDL_BYTEORDER   SDL_LIL_ENDIAN
+#endif
+#endif /* __linux__ */
+#endif /* !SDL_BYTEORDER */
+
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \file SDL_endian.h
+ */
+#if defined(__GNUC__) && defined(__i386__) && \
+   !(__GNUC__ == 2 && __GNUC_MINOR__ == 95 /* broken gcc version */)
+SDL_FORCE_INLINE Uint16
+SDL_Swap16(Uint16 x)
+{
+  __asm__("xchgb %b0,%h0": "=q"(x):"0"(x));
+    return x;
+}
+#elif defined(__GNUC__) && defined(__x86_64__)
+SDL_FORCE_INLINE Uint16
+SDL_Swap16(Uint16 x)
+{
+  __asm__("xchgb %b0,%h0": "=Q"(x):"0"(x));
+    return x;
+}
+#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
+SDL_FORCE_INLINE Uint16
+SDL_Swap16(Uint16 x)
+{
+    int result;
+
+  __asm__("rlwimi %0,%2,8,16,23": "=&r"(result):"0"(x >> 8), "r"(x));
+    return (Uint16)result;
+}
+#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) && !defined(__mcoldfire__)
+SDL_FORCE_INLINE Uint16
+SDL_Swap16(Uint16 x)
+{
+  __asm__("rorw #8,%0": "=d"(x): "0"(x):"cc");
+    return x;
+}
+#elif defined(__WATCOMC__) && defined(__386__)
+extern _inline Uint16 SDL_Swap16(Uint16);
+#pragma aux SDL_Swap16 = \
+  "xchg al, ah" \
+  parm   [ax]   \
+  modify [ax];
+#else
+SDL_FORCE_INLINE Uint16
+SDL_Swap16(Uint16 x)
+{
+    return SDL_static_cast(Uint16, ((x << 8) | (x >> 8)));
+}
+#endif
+
+#if defined(__GNUC__) && defined(__i386__)
+SDL_FORCE_INLINE Uint32
+SDL_Swap32(Uint32 x)
+{
+  __asm__("bswap %0": "=r"(x):"0"(x));
+    return x;
+}
+#elif defined(__GNUC__) && defined(__x86_64__)
+SDL_FORCE_INLINE Uint32
+SDL_Swap32(Uint32 x)
+{
+  __asm__("bswapl %0": "=r"(x):"0"(x));
+    return x;
+}
+#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
+SDL_FORCE_INLINE Uint32
+SDL_Swap32(Uint32 x)
+{
+    Uint32 result;
+
+  __asm__("rlwimi %0,%2,24,16,23": "=&r"(result):"0"(x >> 24), "r"(x));
+  __asm__("rlwimi %0,%2,8,8,15": "=&r"(result):"0"(result), "r"(x));
+  __asm__("rlwimi %0,%2,24,0,7": "=&r"(result):"0"(result), "r"(x));
+    return result;
+}
+#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) && !defined(__mcoldfire__)
+SDL_FORCE_INLINE Uint32
+SDL_Swap32(Uint32 x)
+{
+  __asm__("rorw #8,%0\n\tswap %0\n\trorw #8,%0": "=d"(x): "0"(x):"cc");
+    return x;
+}
+#elif defined(__WATCOMC__) && defined(__386__)
+extern _inline Uint32 SDL_Swap32(Uint32);
+#ifndef __SW_3 /* 486+ */
+#pragma aux SDL_Swap32 = \
+  "bswap eax"  \
+  parm   [eax] \
+  modify [eax];
+#else  /* 386-only */
+#pragma aux SDL_Swap32 = \
+  "xchg al, ah"  \
+  "ror  eax, 16" \
+  "xchg al, ah"  \
+  parm   [eax]   \
+  modify [eax];
+#endif
+#else
+SDL_FORCE_INLINE Uint32
+SDL_Swap32(Uint32 x)
+{
+    return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
+                                    ((x >> 8) & 0x0000FF00) | (x >> 24)));
+}
+#endif
+
+#if defined(__GNUC__) && defined(__i386__)
+SDL_FORCE_INLINE Uint64
+SDL_Swap64(Uint64 x)
+{
+    union
+    {
+        struct
+        {
+            Uint32 a, b;
+        } s;
+        Uint64 u;
+    } v;
+    v.u = x;
+  __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1": "=r"(v.s.a), "=r"(v.s.b):"0"(v.s.a),
+            "1"(v.s.
+                b));
+    return v.u;
+}
+#elif defined(__GNUC__) && defined(__x86_64__)
+SDL_FORCE_INLINE Uint64
+SDL_Swap64(Uint64 x)
+{
+  __asm__("bswapq %0": "=r"(x):"0"(x));
+    return x;
+}
+#else
+SDL_FORCE_INLINE Uint64
+SDL_Swap64(Uint64 x)
+{
+    Uint32 hi, lo;
+
+    /* Separate into high and low 32-bit values and swap them */
+    lo = SDL_static_cast(Uint32, x & 0xFFFFFFFF);
+    x >>= 32;
+    hi = SDL_static_cast(Uint32, x & 0xFFFFFFFF);
+    x = SDL_Swap32(lo);
+    x <<= 32;
+    x |= SDL_Swap32(hi);
+    return (x);
+}
+#endif
+
+
+SDL_FORCE_INLINE float
+SDL_SwapFloat(float x)
+{
+    union
+    {
+        float f;
+        Uint32 ui32;
+    } swapper;
+    swapper.f = x;
+    swapper.ui32 = SDL_Swap32(swapper.ui32);
+    return swapper.f;
+}
+
+
+/**
+ *  \name Swap to native
+ *  Byteswap item from the specified endianness to the native endianness.
+ */
+/* @{ */
+#if SDL_BYTEORDER == SDL_LIL_ENDIAN
+#define SDL_SwapLE16(X) (X)
+#define SDL_SwapLE32(X) (X)
+#define SDL_SwapLE64(X) (X)
+#define SDL_SwapFloatLE(X)  (X)
+#define SDL_SwapBE16(X) SDL_Swap16(X)
+#define SDL_SwapBE32(X) SDL_Swap32(X)
+#define SDL_SwapBE64(X) SDL_Swap64(X)
+#define SDL_SwapFloatBE(X)  SDL_SwapFloat(X)
+#else
+#define SDL_SwapLE16(X) SDL_Swap16(X)
+#define SDL_SwapLE32(X) SDL_Swap32(X)
+#define SDL_SwapLE64(X) SDL_Swap64(X)
+#define SDL_SwapFloatLE(X)  SDL_SwapFloat(X)
+#define SDL_SwapBE16(X) (X)
+#define SDL_SwapBE32(X) (X)
+#define SDL_SwapBE64(X) (X)
+#define SDL_SwapFloatBE(X)  (X)
+#endif
+/* @} *//* Swap to native */
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_endian_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_error.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_error.h
new file mode 100644
index 0000000..c0e4629
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_error.h
@@ -0,0 +1,76 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_error.h
+ *
+ *  Simple error message routines for SDL.
+ */
+
+#ifndef SDL_error_h_
+#define SDL_error_h_
+
+#include "SDL_stdinc.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Public functions */
+/* SDL_SetError() unconditionally returns -1. */
+extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
+extern DECLSPEC const char *SDLCALL SDL_GetError(void);
+extern DECLSPEC void SDLCALL SDL_ClearError(void);
+
+/**
+ *  \name Internal error functions
+ *
+ *  \internal
+ *  Private error reporting function - used internally.
+ */
+/* @{ */
+#define SDL_OutOfMemory()   SDL_Error(SDL_ENOMEM)
+#define SDL_Unsupported()   SDL_Error(SDL_UNSUPPORTED)
+#define SDL_InvalidParamError(param)    SDL_SetError("Parameter '%s' is invalid", (param))
+typedef enum
+{
+    SDL_ENOMEM,
+    SDL_EFREAD,
+    SDL_EFWRITE,
+    SDL_EFSEEK,
+    SDL_UNSUPPORTED,
+    SDL_LASTERROR
+} SDL_errorcode;
+/* SDL_Error() unconditionally returns -1. */
+extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code);
+/* @} *//* Internal error functions */
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_error_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_events.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_events.h
new file mode 100644
index 0000000..3d39e6a
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_events.h
@@ -0,0 +1,754 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_events.h
+ *
+ *  Include file for SDL event handling.
+ */
+
+#ifndef SDL_events_h_
+#define SDL_events_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_video.h"
+#include "SDL_keyboard.h"
+#include "SDL_mouse.h"
+#include "SDL_joystick.h"
+#include "SDL_gamecontroller.h"
+#include "SDL_quit.h"
+#include "SDL_gesture.h"
+#include "SDL_touch.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* General keyboard/mouse state definitions */
+#define SDL_RELEASED    0
+#define SDL_PRESSED 1
+
+/**
+ * \brief The types of events that can be delivered.
+ */
+typedef enum
+{
+    SDL_FIRSTEVENT     = 0,     /**< Unused (do not remove) */
+
+    /* Application events */
+    SDL_QUIT           = 0x100, /**< User-requested quit */
+
+    /* These application events have special meaning on iOS, see README-ios.md for details */
+    SDL_APP_TERMINATING,        /**< The application is being terminated by the OS
+                                     Called on iOS in applicationWillTerminate()
+                                     Called on Android in onDestroy()
+                                */
+    SDL_APP_LOWMEMORY,          /**< The application is low on memory, free memory if possible.
+                                     Called on iOS in applicationDidReceiveMemoryWarning()
+                                     Called on Android in onLowMemory()
+                                */
+    SDL_APP_WILLENTERBACKGROUND, /**< The application is about to enter the background
+                                     Called on iOS in applicationWillResignActive()
+                                     Called on Android in onPause()
+                                */
+    SDL_APP_DIDENTERBACKGROUND, /**< The application did enter the background and may not get CPU for some time
+                                     Called on iOS in applicationDidEnterBackground()
+                                     Called on Android in onPause()
+                                */
+    SDL_APP_WILLENTERFOREGROUND, /**< The application is about to enter the foreground
+                                     Called on iOS in applicationWillEnterForeground()
+                                     Called on Android in onResume()
+                                */
+    SDL_APP_DIDENTERFOREGROUND, /**< The application is now interactive
+                                     Called on iOS in applicationDidBecomeActive()
+                                     Called on Android in onResume()
+                                */
+
+    /* Window events */
+    SDL_WINDOWEVENT    = 0x200, /**< Window state change */
+    SDL_SYSWMEVENT,             /**< System specific event */
+
+    /* Keyboard events */
+    SDL_KEYDOWN        = 0x300, /**< Key pressed */
+    SDL_KEYUP,                  /**< Key released */
+    SDL_TEXTEDITING,            /**< Keyboard text editing (composition) */
+    SDL_TEXTINPUT,              /**< Keyboard text input */
+    SDL_KEYMAPCHANGED,          /**< Keymap changed due to a system event such as an
+                                     input language or keyboard layout change.
+                                */
+
+    /* Mouse events */
+    SDL_MOUSEMOTION    = 0x400, /**< Mouse moved */
+    SDL_MOUSEBUTTONDOWN,        /**< Mouse button pressed */
+    SDL_MOUSEBUTTONUP,          /**< Mouse button released */
+    SDL_MOUSEWHEEL,             /**< Mouse wheel motion */
+
+    /* Joystick events */
+    SDL_JOYAXISMOTION  = 0x600, /**< Joystick axis motion */
+    SDL_JOYBALLMOTION,          /**< Joystick trackball motion */
+    SDL_JOYHATMOTION,           /**< Joystick hat position change */
+    SDL_JOYBUTTONDOWN,          /**< Joystick button pressed */
+    SDL_JOYBUTTONUP,            /**< Joystick button released */
+    SDL_JOYDEVICEADDED,         /**< A new joystick has been inserted into the system */
+    SDL_JOYDEVICEREMOVED,       /**< An opened joystick has been removed */
+
+    /* Game controller events */
+    SDL_CONTROLLERAXISMOTION  = 0x650, /**< Game controller axis motion */
+    SDL_CONTROLLERBUTTONDOWN,          /**< Game controller button pressed */
+    SDL_CONTROLLERBUTTONUP,            /**< Game controller button released */
+    SDL_CONTROLLERDEVICEADDED,         /**< A new Game controller has been inserted into the system */
+    SDL_CONTROLLERDEVICEREMOVED,       /**< An opened Game controller has been removed */
+    SDL_CONTROLLERDEVICEREMAPPED,      /**< The controller mapping was updated */
+
+    /* Touch events */
+    SDL_FINGERDOWN      = 0x700,
+    SDL_FINGERUP,
+    SDL_FINGERMOTION,
+
+    /* Gesture events */
+    SDL_DOLLARGESTURE   = 0x800,
+    SDL_DOLLARRECORD,
+    SDL_MULTIGESTURE,
+
+    /* Clipboard events */
+    SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard changed */
+
+    /* Drag and drop events */
+    SDL_DROPFILE        = 0x1000, /**< The system requests a file open */
+    SDL_DROPTEXT,                 /**< text/plain drag-and-drop event */
+    SDL_DROPBEGIN,                /**< A new set of drops is beginning (NULL filename) */
+    SDL_DROPCOMPLETE,             /**< Current set of drops is now complete (NULL filename) */
+
+    /* Audio hotplug events */
+    SDL_AUDIODEVICEADDED = 0x1100, /**< A new audio device is available */
+    SDL_AUDIODEVICEREMOVED,        /**< An audio device has been removed. */
+
+    /* Render events */
+    SDL_RENDER_TARGETS_RESET = 0x2000, /**< The render targets have been reset and their contents need to be updated */
+    SDL_RENDER_DEVICE_RESET, /**< The device has been reset and all textures need to be recreated */
+
+    /** Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use,
+     *  and should be allocated with SDL_RegisterEvents()
+     */
+    SDL_USEREVENT    = 0x8000,
+
+    /**
+     *  This last event is only for bounding internal arrays
+     */
+    SDL_LASTEVENT    = 0xFFFF
+} SDL_EventType;
+
+/**
+ *  \brief Fields shared by every event
+ */
+typedef struct SDL_CommonEvent
+{
+    Uint32 type;
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+} SDL_CommonEvent;
+
+/**
+ *  \brief Window state change event data (event.window.*)
+ */
+typedef struct SDL_WindowEvent
+{
+    Uint32 type;        /**< ::SDL_WINDOWEVENT */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    Uint32 windowID;    /**< The associated window */
+    Uint8 event;        /**< ::SDL_WindowEventID */
+    Uint8 padding1;
+    Uint8 padding2;
+    Uint8 padding3;
+    Sint32 data1;       /**< event dependent data */
+    Sint32 data2;       /**< event dependent data */
+} SDL_WindowEvent;
+
+/**
+ *  \brief Keyboard button event structure (event.key.*)
+ */
+typedef struct SDL_KeyboardEvent
+{
+    Uint32 type;        /**< ::SDL_KEYDOWN or ::SDL_KEYUP */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    Uint32 windowID;    /**< The window with keyboard focus, if any */
+    Uint8 state;        /**< ::SDL_PRESSED or ::SDL_RELEASED */
+    Uint8 repeat;       /**< Non-zero if this is a key repeat */
+    Uint8 padding2;
+    Uint8 padding3;
+    SDL_Keysym keysym;  /**< The key that was pressed or released */
+} SDL_KeyboardEvent;
+
+#define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32)
+/**
+ *  \brief Keyboard text editing event structure (event.edit.*)
+ */
+typedef struct SDL_TextEditingEvent
+{
+    Uint32 type;                                /**< ::SDL_TEXTEDITING */
+    Uint32 timestamp;                           /**< In milliseconds, populated using SDL_GetTicks() */
+    Uint32 windowID;                            /**< The window with keyboard focus, if any */
+    char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE];  /**< The editing text */
+    Sint32 start;                               /**< The start cursor of selected editing text */
+    Sint32 length;                              /**< The length of selected editing text */
+} SDL_TextEditingEvent;
+
+
+#define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)
+/**
+ *  \brief Keyboard text input event structure (event.text.*)
+ */
+typedef struct SDL_TextInputEvent
+{
+    Uint32 type;                              /**< ::SDL_TEXTINPUT */
+    Uint32 timestamp;                         /**< In milliseconds, populated using SDL_GetTicks() */
+    Uint32 windowID;                          /**< The window with keyboard focus, if any */
+    char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];  /**< The input text */
+} SDL_TextInputEvent;
+
+/**
+ *  \brief Mouse motion event structure (event.motion.*)
+ */
+typedef struct SDL_MouseMotionEvent
+{
+    Uint32 type;        /**< ::SDL_MOUSEMOTION */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    Uint32 windowID;    /**< The window with mouse focus, if any */
+    Uint32 which;       /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
+    Uint32 state;       /**< The current button state */
+    Sint32 x;           /**< X coordinate, relative to window */
+    Sint32 y;           /**< Y coordinate, relative to window */
+    Sint32 xrel;        /**< The relative motion in the X direction */
+    Sint32 yrel;        /**< The relative motion in the Y direction */
+} SDL_MouseMotionEvent;
+
+/**
+ *  \brief Mouse button event structure (event.button.*)
+ */
+typedef struct SDL_MouseButtonEvent
+{
+    Uint32 type;        /**< ::SDL_MOUSEBUTTONDOWN or ::SDL_MOUSEBUTTONUP */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    Uint32 windowID;    /**< The window with mouse focus, if any */
+    Uint32 which;       /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
+    Uint8 button;       /**< The mouse button index */
+    Uint8 state;        /**< ::SDL_PRESSED or ::SDL_RELEASED */
+    Uint8 clicks;       /**< 1 for single-click, 2 for double-click, etc. */
+    Uint8 padding1;
+    Sint32 x;           /**< X coordinate, relative to window */
+    Sint32 y;           /**< Y coordinate, relative to window */
+} SDL_MouseButtonEvent;
+
+/**
+ *  \brief Mouse wheel event structure (event.wheel.*)
+ */
+typedef struct SDL_MouseWheelEvent
+{
+    Uint32 type;        /**< ::SDL_MOUSEWHEEL */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    Uint32 windowID;    /**< The window with mouse focus, if any */
+    Uint32 which;       /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
+    Sint32 x;           /**< The amount scrolled horizontally, positive to the right and negative to the left */
+    Sint32 y;           /**< The amount scrolled vertically, positive away from the user and negative toward the user */
+    Uint32 direction;   /**< Set to one of the SDL_MOUSEWHEEL_* defines. When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back */
+} SDL_MouseWheelEvent;
+
+/**
+ *  \brief Joystick axis motion event structure (event.jaxis.*)
+ */
+typedef struct SDL_JoyAxisEvent
+{
+    Uint32 type;        /**< ::SDL_JOYAXISMOTION */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    SDL_JoystickID which; /**< The joystick instance id */
+    Uint8 axis;         /**< The joystick axis index */
+    Uint8 padding1;
+    Uint8 padding2;
+    Uint8 padding3;
+    Sint16 value;       /**< The axis value (range: -32768 to 32767) */
+    Uint16 padding4;
+} SDL_JoyAxisEvent;
+
+/**
+ *  \brief Joystick trackball motion event structure (event.jball.*)
+ */
+typedef struct SDL_JoyBallEvent
+{
+    Uint32 type;        /**< ::SDL_JOYBALLMOTION */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    SDL_JoystickID which; /**< The joystick instance id */
+    Uint8 ball;         /**< The joystick trackball index */
+    Uint8 padding1;
+    Uint8 padding2;
+    Uint8 padding3;
+    Sint16 xrel;        /**< The relative motion in the X direction */
+    Sint16 yrel;        /**< The relative motion in the Y direction */
+} SDL_JoyBallEvent;
+
+/**
+ *  \brief Joystick hat position change event structure (event.jhat.*)
+ */
+typedef struct SDL_JoyHatEvent
+{
+    Uint32 type;        /**< ::SDL_JOYHATMOTION */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    SDL_JoystickID which; /**< The joystick instance id */
+    Uint8 hat;          /**< The joystick hat index */
+    Uint8 value;        /**< The hat position value.
+                         *   \sa ::SDL_HAT_LEFTUP ::SDL_HAT_UP ::SDL_HAT_RIGHTUP
+                         *   \sa ::SDL_HAT_LEFT ::SDL_HAT_CENTERED ::SDL_HAT_RIGHT
+                         *   \sa ::SDL_HAT_LEFTDOWN ::SDL_HAT_DOWN ::SDL_HAT_RIGHTDOWN
+                         *
+                         *   Note that zero means the POV is centered.
+                         */
+    Uint8 padding1;
+    Uint8 padding2;
+} SDL_JoyHatEvent;
+
+/**
+ *  \brief Joystick button event structure (event.jbutton.*)
+ */
+typedef struct SDL_JoyButtonEvent
+{
+    Uint32 type;        /**< ::SDL_JOYBUTTONDOWN or ::SDL_JOYBUTTONUP */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    SDL_JoystickID which; /**< The joystick instance id */
+    Uint8 button;       /**< The joystick button index */
+    Uint8 state;        /**< ::SDL_PRESSED or ::SDL_RELEASED */
+    Uint8 padding1;
+    Uint8 padding2;
+} SDL_JoyButtonEvent;
+
+/**
+ *  \brief Joystick device event structure (event.jdevice.*)
+ */
+typedef struct SDL_JoyDeviceEvent
+{
+    Uint32 type;        /**< ::SDL_JOYDEVICEADDED or ::SDL_JOYDEVICEREMOVED */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    Sint32 which;       /**< The joystick device index for the ADDED event, instance id for the REMOVED event */
+} SDL_JoyDeviceEvent;
+
+
+/**
+ *  \brief Game controller axis motion event structure (event.caxis.*)
+ */
+typedef struct SDL_ControllerAxisEvent
+{
+    Uint32 type;        /**< ::SDL_CONTROLLERAXISMOTION */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    SDL_JoystickID which; /**< The joystick instance id */
+    Uint8 axis;         /**< The controller axis (SDL_GameControllerAxis) */
+    Uint8 padding1;
+    Uint8 padding2;
+    Uint8 padding3;
+    Sint16 value;       /**< The axis value (range: -32768 to 32767) */
+    Uint16 padding4;
+} SDL_ControllerAxisEvent;
+
+
+/**
+ *  \brief Game controller button event structure (event.cbutton.*)
+ */
+typedef struct SDL_ControllerButtonEvent
+{
+    Uint32 type;        /**< ::SDL_CONTROLLERBUTTONDOWN or ::SDL_CONTROLLERBUTTONUP */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    SDL_JoystickID which; /**< The joystick instance id */
+    Uint8 button;       /**< The controller button (SDL_GameControllerButton) */
+    Uint8 state;        /**< ::SDL_PRESSED or ::SDL_RELEASED */
+    Uint8 padding1;
+    Uint8 padding2;
+} SDL_ControllerButtonEvent;
+
+
+/**
+ *  \brief Controller device event structure (event.cdevice.*)
+ */
+typedef struct SDL_ControllerDeviceEvent
+{
+    Uint32 type;        /**< ::SDL_CONTROLLERDEVICEADDED, ::SDL_CONTROLLERDEVICEREMOVED, or ::SDL_CONTROLLERDEVICEREMAPPED */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    Sint32 which;       /**< The joystick device index for the ADDED event, instance id for the REMOVED or REMAPPED event */
+} SDL_ControllerDeviceEvent;
+
+/**
+ *  \brief Audio device event structure (event.adevice.*)
+ */
+typedef struct SDL_AudioDeviceEvent
+{
+    Uint32 type;        /**< ::SDL_AUDIODEVICEADDED, or ::SDL_AUDIODEVICEREMOVED */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    Uint32 which;       /**< The audio device index for the ADDED event (valid until next SDL_GetNumAudioDevices() call), SDL_AudioDeviceID for the REMOVED event */
+    Uint8 iscapture;    /**< zero if an output device, non-zero if a capture device. */
+    Uint8 padding1;
+    Uint8 padding2;
+    Uint8 padding3;
+} SDL_AudioDeviceEvent;
+
+
+/**
+ *  \brief Touch finger event structure (event.tfinger.*)
+ */
+typedef struct SDL_TouchFingerEvent
+{
+    Uint32 type;        /**< ::SDL_FINGERMOTION or ::SDL_FINGERDOWN or ::SDL_FINGERUP */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    SDL_TouchID touchId; /**< The touch device id */
+    SDL_FingerID fingerId;
+    float x;            /**< Normalized in the range 0...1 */
+    float y;            /**< Normalized in the range 0...1 */
+    float dx;           /**< Normalized in the range -1...1 */
+    float dy;           /**< Normalized in the range -1...1 */
+    float pressure;     /**< Normalized in the range 0...1 */
+} SDL_TouchFingerEvent;
+
+
+/**
+ *  \brief Multiple Finger Gesture Event (event.mgesture.*)
+ */
+typedef struct SDL_MultiGestureEvent
+{
+    Uint32 type;        /**< ::SDL_MULTIGESTURE */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    SDL_TouchID touchId; /**< The touch device id */
+    float dTheta;
+    float dDist;
+    float x;
+    float y;
+    Uint16 numFingers;
+    Uint16 padding;
+} SDL_MultiGestureEvent;
+
+
+/**
+ * \brief Dollar Gesture Event (event.dgesture.*)
+ */
+typedef struct SDL_DollarGestureEvent
+{
+    Uint32 type;        /**< ::SDL_DOLLARGESTURE or ::SDL_DOLLARRECORD */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    SDL_TouchID touchId; /**< The touch device id */
+    SDL_GestureID gestureId;
+    Uint32 numFingers;
+    float error;
+    float x;            /**< Normalized center of gesture */
+    float y;            /**< Normalized center of gesture */
+} SDL_DollarGestureEvent;
+
+
+/**
+ *  \brief An event used to request a file open by the system (event.drop.*)
+ *         This event is enabled by default, you can disable it with SDL_EventState().
+ *  \note If this event is enabled, you must free the filename in the event.
+ */
+typedef struct SDL_DropEvent
+{
+    Uint32 type;        /**< ::SDL_DROPBEGIN or ::SDL_DROPFILE or ::SDL_DROPTEXT or ::SDL_DROPCOMPLETE */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    char *file;         /**< The file name, which should be freed with SDL_free(), is NULL on begin/complete */
+    Uint32 windowID;    /**< The window that was dropped on, if any */
+} SDL_DropEvent;
+
+
+/**
+ *  \brief The "quit requested" event
+ */
+typedef struct SDL_QuitEvent
+{
+    Uint32 type;        /**< ::SDL_QUIT */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+} SDL_QuitEvent;
+
+/**
+ *  \brief OS Specific event
+ */
+typedef struct SDL_OSEvent
+{
+    Uint32 type;        /**< ::SDL_QUIT */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+} SDL_OSEvent;
+
+/**
+ *  \brief A user-defined event type (event.user.*)
+ */
+typedef struct SDL_UserEvent
+{
+    Uint32 type;        /**< ::SDL_USEREVENT through ::SDL_LASTEVENT-1 */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    Uint32 windowID;    /**< The associated window if any */
+    Sint32 code;        /**< User defined event code */
+    void *data1;        /**< User defined data pointer */
+    void *data2;        /**< User defined data pointer */
+} SDL_UserEvent;
+
+
+struct SDL_SysWMmsg;
+typedef struct SDL_SysWMmsg SDL_SysWMmsg;
+
+/**
+ *  \brief A video driver dependent system event (event.syswm.*)
+ *         This event is disabled by default, you can enable it with SDL_EventState()
+ *
+ *  \note If you want to use this event, you should include SDL_syswm.h.
+ */
+typedef struct SDL_SysWMEvent
+{
+    Uint32 type;        /**< ::SDL_SYSWMEVENT */
+    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
+    SDL_SysWMmsg *msg;  /**< driver dependent data, defined in SDL_syswm.h */
+} SDL_SysWMEvent;
+
+/**
+ *  \brief General event structure
+ */
+typedef union SDL_Event
+{
+    Uint32 type;                    /**< Event type, shared with all events */
+    SDL_CommonEvent common;         /**< Common event data */
+    SDL_WindowEvent window;         /**< Window event data */
+    SDL_KeyboardEvent key;          /**< Keyboard event data */
+    SDL_TextEditingEvent edit;      /**< Text editing event data */
+    SDL_TextInputEvent text;        /**< Text input event data */
+    SDL_MouseMotionEvent motion;    /**< Mouse motion event data */
+    SDL_MouseButtonEvent button;    /**< Mouse button event data */
+    SDL_MouseWheelEvent wheel;      /**< Mouse wheel event data */
+    SDL_JoyAxisEvent jaxis;         /**< Joystick axis event data */
+    SDL_JoyBallEvent jball;         /**< Joystick ball event data */
+    SDL_JoyHatEvent jhat;           /**< Joystick hat event data */
+    SDL_JoyButtonEvent jbutton;     /**< Joystick button event data */
+    SDL_JoyDeviceEvent jdevice;     /**< Joystick device change event data */
+    SDL_ControllerAxisEvent caxis;      /**< Game Controller axis event data */
+    SDL_ControllerButtonEvent cbutton;  /**< Game Controller button event data */
+    SDL_ControllerDeviceEvent cdevice;  /**< Game Controller device event data */
+    SDL_AudioDeviceEvent adevice;   /**< Audio device event data */
+    SDL_QuitEvent quit;             /**< Quit request event data */
+    SDL_UserEvent user;             /**< Custom event data */
+    SDL_SysWMEvent syswm;           /**< System dependent window event data */
+    SDL_TouchFingerEvent tfinger;   /**< Touch finger event data */
+    SDL_MultiGestureEvent mgesture; /**< Gesture event data */
+    SDL_DollarGestureEvent dgesture; /**< Gesture event data */
+    SDL_DropEvent drop;             /**< Drag and drop event data */
+
+    /* This is necessary for ABI compatibility between Visual C++ and GCC
+       Visual C++ will respect the push pack pragma and use 52 bytes for
+       this structure, and GCC will use the alignment of the largest datatype
+       within the union, which is 8 bytes.
+
+       So... we'll add padding to force the size to be 56 bytes for both.
+    */
+    Uint8 padding[56];
+} SDL_Event;
+
+
+/* Function prototypes */
+
+/**
+ *  Pumps the event loop, gathering events from the input devices.
+ *
+ *  This function updates the event queue and internal input device state.
+ *
+ *  This should only be run in the thread that sets the video mode.
+ */
+extern DECLSPEC void SDLCALL SDL_PumpEvents(void);
+
+/* @{ */
+typedef enum
+{
+    SDL_ADDEVENT,
+    SDL_PEEKEVENT,
+    SDL_GETEVENT
+} SDL_eventaction;
+
+/**
+ *  Checks the event queue for messages and optionally returns them.
+ *
+ *  If \c action is ::SDL_ADDEVENT, up to \c numevents events will be added to
+ *  the back of the event queue.
+ *
+ *  If \c action is ::SDL_PEEKEVENT, up to \c numevents events at the front
+ *  of the event queue, within the specified minimum and maximum type,
+ *  will be returned and will not be removed from the queue.
+ *
+ *  If \c action is ::SDL_GETEVENT, up to \c numevents events at the front
+ *  of the event queue, within the specified minimum and maximum type,
+ *  will be returned and will be removed from the queue.
+ *
+ *  \return The number of events actually stored, or -1 if there was an error.
+ *
+ *  This function is thread-safe.
+ */
+extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event * events, int numevents,
+                                           SDL_eventaction action,
+                                           Uint32 minType, Uint32 maxType);
+/* @} */
+
+/**
+ *  Checks to see if certain event types are in the event queue.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasEvent(Uint32 type);
+extern DECLSPEC SDL_bool SDLCALL SDL_HasEvents(Uint32 minType, Uint32 maxType);
+
+/**
+ *  This function clears events from the event queue
+ *  This function only affects currently queued events. If you want to make
+ *  sure that all pending OS events are flushed, you can call SDL_PumpEvents()
+ *  on the main thread immediately before the flush call.
+ */
+extern DECLSPEC void SDLCALL SDL_FlushEvent(Uint32 type);
+extern DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType);
+
+/**
+ *  \brief Polls for currently pending events.
+ *
+ *  \return 1 if there are any pending events, or 0 if there are none available.
+ *
+ *  \param event If not NULL, the next event is removed from the queue and
+ *               stored in that area.
+ */
+extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event * event);
+
+/**
+ *  \brief Waits indefinitely for the next available event.
+ *
+ *  \return 1, or 0 if there was an error while waiting for events.
+ *
+ *  \param event If not NULL, the next event is removed from the queue and
+ *               stored in that area.
+ */
+extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
+
+/**
+ *  \brief Waits until the specified timeout (in milliseconds) for the next
+ *         available event.
+ *
+ *  \return 1, or 0 if there was an error while waiting for events.
+ *
+ *  \param event If not NULL, the next event is removed from the queue and
+ *               stored in that area.
+ *  \param timeout The timeout (in milliseconds) to wait for next event.
+ */
+extern DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event * event,
+                                                 int timeout);
+
+/**
+ *  \brief Add an event to the event queue.
+ *
+ *  \return 1 on success, 0 if the event was filtered, or -1 if the event queue
+ *          was full or there was some other error.
+ */
+extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event * event);
+
+typedef int (SDLCALL * SDL_EventFilter) (void *userdata, SDL_Event * event);
+
+/**
+ *  Sets up a filter to process all events before they change internal state and
+ *  are posted to the internal event queue.
+ *
+ *  The filter is prototyped as:
+ *  \code
+ *      int SDL_EventFilter(void *userdata, SDL_Event * event);
+ *  \endcode
+ *
+ *  If the filter returns 1, then the event will be added to the internal queue.
+ *  If it returns 0, then the event will be dropped from the queue, but the
+ *  internal state will still be updated.  This allows selective filtering of
+ *  dynamically arriving events.
+ *
+ *  \warning  Be very careful of what you do in the event filter function, as
+ *            it may run in a different thread!
+ *
+ *  There is one caveat when dealing with the ::SDL_QuitEvent event type.  The
+ *  event filter is only called when the window manager desires to close the
+ *  application window.  If the event filter returns 1, then the window will
+ *  be closed, otherwise the window will remain open if possible.
+ *
+ *  If the quit event is generated by an interrupt signal, it will bypass the
+ *  internal queue and be delivered to the application at the next event poll.
+ */
+extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter,
+                                                void *userdata);
+
+/**
+ *  Return the current event filter - can be used to "chain" filters.
+ *  If there is no event filter set, this function returns SDL_FALSE.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter * filter,
+                                                    void **userdata);
+
+/**
+ *  Add a function which is called when an event is added to the queue.
+ */
+extern DECLSPEC void SDLCALL SDL_AddEventWatch(SDL_EventFilter filter,
+                                               void *userdata);
+
+/**
+ *  Remove an event watch function added with SDL_AddEventWatch()
+ */
+extern DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter,
+                                               void *userdata);
+
+/**
+ *  Run the filter function on the current event queue, removing any
+ *  events for which the filter returns 0.
+ */
+extern DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter,
+                                              void *userdata);
+
+/* @{ */
+#define SDL_QUERY   -1
+#define SDL_IGNORE   0
+#define SDL_DISABLE  0
+#define SDL_ENABLE   1
+
+/**
+ *  This function allows you to set the state of processing certain events.
+ *   - If \c state is set to ::SDL_IGNORE, that event will be automatically
+ *     dropped from the event queue and will not be filtered.
+ *   - If \c state is set to ::SDL_ENABLE, that event will be processed
+ *     normally.
+ *   - If \c state is set to ::SDL_QUERY, SDL_EventState() will return the
+ *     current processing state of the specified event.
+ */
+extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint32 type, int state);
+/* @} */
+#define SDL_GetEventState(type) SDL_EventState(type, SDL_QUERY)
+
+/**
+ *  This function allocates a set of user-defined events, and returns
+ *  the beginning event number for that set of events.
+ *
+ *  If there aren't enough user-defined events left, this function
+ *  returns (Uint32)-1
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_RegisterEvents(int numevents);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_events_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_filesystem.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_filesystem.h
new file mode 100644
index 0000000..fa6a1fa
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_filesystem.h
@@ -0,0 +1,136 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_filesystem.h
+ *
+ *  \brief Include file for filesystem SDL API functions
+ */
+
+#ifndef SDL_filesystem_h_
+#define SDL_filesystem_h_
+
+#include "SDL_stdinc.h"
+
+#include "begin_code.h"
+
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * \brief Get the path where the application resides.
+ *
+ * Get the "base path". This is the directory where the application was run
+ *  from, which is probably the installation directory, and may or may not
+ *  be the process's current working directory.
+ *
+ * This returns an absolute path in UTF-8 encoding, and is guaranteed to
+ *  end with a path separator ('\\' on Windows, '/' most other places).
+ *
+ * The pointer returned by this function is owned by you. Please call
+ *  SDL_free() on the pointer when you are done with it, or it will be a
+ *  memory leak. This is not necessarily a fast call, though, so you should
+ *  call this once near startup and save the string if you need it.
+ *
+ * Some platforms can't determine the application's path, and on other
+ *  platforms, this might be meaningless. In such cases, this function will
+ *  return NULL.
+ *
+ *  \return String of base dir in UTF-8 encoding, or NULL on error.
+ *
+ * \sa SDL_GetPrefPath
+ */
+extern DECLSPEC char *SDLCALL SDL_GetBasePath(void);
+
+/**
+ * \brief Get the user-and-app-specific path where files can be written.
+ *
+ * Get the "pref dir". This is meant to be where users can write personal
+ *  files (preferences and save games, etc) that are specific to your
+ *  application. This directory is unique per user, per application.
+ *
+ * This function will decide the appropriate location in the native filesystem,
+ *  create the directory if necessary, and return a string of the absolute
+ *  path to the directory in UTF-8 encoding.
+ *
+ * On Windows, the string might look like:
+ *  "C:\\Users\\bob\\AppData\\Roaming\\My Company\\My Program Name\\"
+ *
+ * On Linux, the string might look like:
+ *  "/home/bob/.local/share/My Program Name/"
+ *
+ * On Mac OS X, the string might look like:
+ *  "/Users/bob/Library/Application Support/My Program Name/"
+ *
+ * (etc.)
+ *
+ * You specify the name of your organization (if it's not a real organization,
+ *  your name or an Internet domain you own might do) and the name of your
+ *  application. These should be untranslated proper names.
+ *
+ * Both the org and app strings may become part of a directory name, so
+ *  please follow these rules:
+ *
+ *    - Try to use the same org string (including case-sensitivity) for
+ *      all your applications that use this function.
+ *    - Always use a unique app string for each one, and make sure it never
+ *      changes for an app once you've decided on it.
+ *    - Unicode characters are legal, as long as it's UTF-8 encoded, but...
+ *    - ...only use letters, numbers, and spaces. Avoid punctuation like
+ *      "Game Name 2: Bad Guy's Revenge!" ... "Game Name 2" is sufficient.
+ *
+ * This returns an absolute path in UTF-8 encoding, and is guaranteed to
+ *  end with a path separator ('\\' on Windows, '/' most other places).
+ *
+ * The pointer returned by this function is owned by you. Please call
+ *  SDL_free() on the pointer when you are done with it, or it will be a
+ *  memory leak. This is not necessarily a fast call, though, so you should
+ *  call this once near startup and save the string if you need it.
+ *
+ * You should assume the path returned by this function is the only safe
+ *  place to write files (and that SDL_GetBasePath(), while it might be
+ *  writable, or even the parent of the returned path, aren't where you
+ *  should be writing things).
+ *
+ * Some platforms can't determine the pref path, and on other
+ *  platforms, this might be meaningless. In such cases, this function will
+ *  return NULL.
+ *
+ *   \param org The name of your organization.
+ *   \param app The name of your application.
+ *  \return UTF-8 string of user dir in platform-dependent notation. NULL
+ *          if there's a problem (creating directory failed, etc).
+ *
+ * \sa SDL_GetBasePath
+ */
+extern DECLSPEC char *SDLCALL SDL_GetPrefPath(const char *org, const char *app);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_filesystem_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_gamecontroller.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_gamecontroller.h
new file mode 100644
index 0000000..2e024be
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_gamecontroller.h
@@ -0,0 +1,362 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_gamecontroller.h
+ *
+ *  Include file for SDL game controller event handling
+ */
+
+#ifndef SDL_gamecontroller_h_
+#define SDL_gamecontroller_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_rwops.h"
+#include "SDL_joystick.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \file SDL_gamecontroller.h
+ *
+ *  In order to use these functions, SDL_Init() must have been called
+ *  with the ::SDL_INIT_GAMECONTROLLER flag.  This causes SDL to scan the system
+ *  for game controllers, and load appropriate drivers.
+ *
+ *  If you would like to receive controller updates while the application
+ *  is in the background, you should set the following hint before calling
+ *  SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
+ */
+
+/**
+ * The gamecontroller structure used to identify an SDL game controller
+ */
+struct _SDL_GameController;
+typedef struct _SDL_GameController SDL_GameController;
+
+
+typedef enum
+{
+    SDL_CONTROLLER_BINDTYPE_NONE = 0,
+    SDL_CONTROLLER_BINDTYPE_BUTTON,
+    SDL_CONTROLLER_BINDTYPE_AXIS,
+    SDL_CONTROLLER_BINDTYPE_HAT
+} SDL_GameControllerBindType;
+
+/**
+ *  Get the SDL joystick layer binding for this controller button/axis mapping
+ */
+typedef struct SDL_GameControllerButtonBind
+{
+    SDL_GameControllerBindType bindType;
+    union
+    {
+        int button;
+        int axis;
+        struct {
+            int hat;
+            int hat_mask;
+        } hat;
+    } value;
+
+} SDL_GameControllerButtonBind;
+
+
+/**
+ *  To count the number of game controllers in the system for the following:
+ *  int nJoysticks = SDL_NumJoysticks();
+ *  int nGameControllers = 0;
+ *  for (int i = 0; i < nJoysticks; i++) {
+ *      if (SDL_IsGameController(i)) {
+ *          nGameControllers++;
+ *      }
+ *  }
+ *
+ *  Using the SDL_HINT_GAMECONTROLLERCONFIG hint or the SDL_GameControllerAddMapping() you can add support for controllers SDL is unaware of or cause an existing controller to have a different binding. The format is:
+ *  guid,name,mappings
+ *
+ *  Where GUID is the string value from SDL_JoystickGetGUIDString(), name is the human readable string for the device and mappings are controller mappings to joystick ones.
+ *  Under Windows there is a reserved GUID of "xinput" that covers any XInput devices.
+ *  The mapping format for joystick is:
+ *      bX - a joystick button, index X
+ *      hX.Y - hat X with value Y
+ *      aX - axis X of the joystick
+ *  Buttons can be used as a controller axis and vice versa.
+ *
+ *  This string shows an example of a valid mapping for a controller
+ *  "03000000341a00003608000000000000,PS3 Controller,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7",
+ *
+ */
+
+/**
+ *  Load a set of mappings from a seekable SDL data stream (memory or file), filtered by the current SDL_GetPlatform()
+ *  A community sourced database of controllers is available at https://raw.github.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt
+ *
+ *  If \c freerw is non-zero, the stream will be closed after being read.
+ * 
+ * \return number of mappings added, -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW(SDL_RWops * rw, int freerw);
+
+/**
+ *  Load a set of mappings from a file, filtered by the current SDL_GetPlatform()
+ *
+ *  Convenience macro.
+ */
+#define SDL_GameControllerAddMappingsFromFile(file)   SDL_GameControllerAddMappingsFromRW(SDL_RWFromFile(file, "rb"), 1)
+
+/**
+ *  Add or update an existing mapping configuration
+ *
+ * \return 1 if mapping is added, 0 if updated, -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_GameControllerAddMapping(const char* mappingString);
+
+/**
+ *  Get the number of mappings installed
+ *
+ *  \return the number of mappings
+ */
+extern DECLSPEC int SDLCALL SDL_GameControllerNumMappings(void);
+
+/**
+ *  Get the mapping at a particular index.
+ *
+ *  \return the mapping string.  Must be freed with SDL_free().  Returns NULL if the index is out of range.
+ */
+extern DECLSPEC char * SDLCALL SDL_GameControllerMappingForIndex(int mapping_index);
+
+/**
+ *  Get a mapping string for a GUID
+ *
+ *  \return the mapping string.  Must be freed with SDL_free().  Returns NULL if no mapping is available
+ */
+extern DECLSPEC char * SDLCALL SDL_GameControllerMappingForGUID(SDL_JoystickGUID guid);
+
+/**
+ *  Get a mapping string for an open GameController
+ *
+ *  \return the mapping string.  Must be freed with SDL_free().  Returns NULL if no mapping is available
+ */
+extern DECLSPEC char * SDLCALL SDL_GameControllerMapping(SDL_GameController * gamecontroller);
+
+/**
+ *  Is the joystick on this index supported by the game controller interface?
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_IsGameController(int joystick_index);
+
+/**
+ *  Get the implementation dependent name of a game controller.
+ *  This can be called before any controllers are opened.
+ *  If no name can be found, this function returns NULL.
+ */
+extern DECLSPEC const char *SDLCALL SDL_GameControllerNameForIndex(int joystick_index);
+
+/**
+ *  Open a game controller for use.
+ *  The index passed as an argument refers to the N'th game controller on the system.
+ *  This index is not the value which will identify this controller in future
+ *  controller events.  The joystick's instance id (::SDL_JoystickID) will be
+ *  used there instead.
+ *
+ *  \return A controller identifier, or NULL if an error occurred.
+ */
+extern DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerOpen(int joystick_index);
+
+/**
+ * Return the SDL_GameController associated with an instance id.
+ */
+extern DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerFromInstanceID(SDL_JoystickID joyid);
+
+/**
+ *  Return the name for this currently opened controller
+ */
+extern DECLSPEC const char *SDLCALL SDL_GameControllerName(SDL_GameController *gamecontroller);
+
+/**
+ *  Get the USB vendor ID of an opened controller, if available.
+ *  If the vendor ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetVendor(SDL_GameController * gamecontroller);
+
+/**
+ *  Get the USB product ID of an opened controller, if available.
+ *  If the product ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetProduct(SDL_GameController * gamecontroller);
+
+/**
+ *  Get the product version of an opened controller, if available.
+ *  If the product version isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetProductVersion(SDL_GameController * gamecontroller);
+
+/**
+ *  Returns SDL_TRUE if the controller has been opened and currently connected,
+ *  or SDL_FALSE if it has not.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerGetAttached(SDL_GameController *gamecontroller);
+
+/**
+ *  Get the underlying joystick object used by a controller
+ */
+extern DECLSPEC SDL_Joystick *SDLCALL SDL_GameControllerGetJoystick(SDL_GameController *gamecontroller);
+
+/**
+ *  Enable/disable controller event polling.
+ *
+ *  If controller events are disabled, you must call SDL_GameControllerUpdate()
+ *  yourself and check the state of the controller when you want controller
+ *  information.
+ *
+ *  The state can be one of ::SDL_QUERY, ::SDL_ENABLE or ::SDL_IGNORE.
+ */
+extern DECLSPEC int SDLCALL SDL_GameControllerEventState(int state);
+
+/**
+ *  Update the current state of the open game controllers.
+ *
+ *  This is called automatically by the event loop if any game controller
+ *  events are enabled.
+ */
+extern DECLSPEC void SDLCALL SDL_GameControllerUpdate(void);
+
+
+/**
+ *  The list of axes available from a controller
+ *
+ *  Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX,
+ *  and are centered within ~8000 of zero, though advanced UI will allow users to set
+ *  or autodetect the dead zone, which varies between controllers.
+ *
+ *  Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
+ */
+typedef enum
+{
+    SDL_CONTROLLER_AXIS_INVALID = -1,
+    SDL_CONTROLLER_AXIS_LEFTX,
+    SDL_CONTROLLER_AXIS_LEFTY,
+    SDL_CONTROLLER_AXIS_RIGHTX,
+    SDL_CONTROLLER_AXIS_RIGHTY,
+    SDL_CONTROLLER_AXIS_TRIGGERLEFT,
+    SDL_CONTROLLER_AXIS_TRIGGERRIGHT,
+    SDL_CONTROLLER_AXIS_MAX
+} SDL_GameControllerAxis;
+
+/**
+ *  turn this string into a axis mapping
+ */
+extern DECLSPEC SDL_GameControllerAxis SDLCALL SDL_GameControllerGetAxisFromString(const char *pchString);
+
+/**
+ *  turn this axis enum into a string mapping
+ */
+extern DECLSPEC const char* SDLCALL SDL_GameControllerGetStringForAxis(SDL_GameControllerAxis axis);
+
+/**
+ *  Get the SDL joystick layer binding for this controller button mapping
+ */
+extern DECLSPEC SDL_GameControllerButtonBind SDLCALL
+SDL_GameControllerGetBindForAxis(SDL_GameController *gamecontroller,
+                                 SDL_GameControllerAxis axis);
+
+/**
+ *  Get the current state of an axis control on a game controller.
+ *
+ *  The state is a value ranging from -32768 to 32767 (except for the triggers,
+ *  which range from 0 to 32767).
+ *
+ *  The axis indices start at index 0.
+ */
+extern DECLSPEC Sint16 SDLCALL
+SDL_GameControllerGetAxis(SDL_GameController *gamecontroller,
+                          SDL_GameControllerAxis axis);
+
+/**
+ *  The list of buttons available from a controller
+ */
+typedef enum
+{
+    SDL_CONTROLLER_BUTTON_INVALID = -1,
+    SDL_CONTROLLER_BUTTON_A,
+    SDL_CONTROLLER_BUTTON_B,
+    SDL_CONTROLLER_BUTTON_X,
+    SDL_CONTROLLER_BUTTON_Y,
+    SDL_CONTROLLER_BUTTON_BACK,
+    SDL_CONTROLLER_BUTTON_GUIDE,
+    SDL_CONTROLLER_BUTTON_START,
+    SDL_CONTROLLER_BUTTON_LEFTSTICK,
+    SDL_CONTROLLER_BUTTON_RIGHTSTICK,
+    SDL_CONTROLLER_BUTTON_LEFTSHOULDER,
+    SDL_CONTROLLER_BUTTON_RIGHTSHOULDER,
+    SDL_CONTROLLER_BUTTON_DPAD_UP,
+    SDL_CONTROLLER_BUTTON_DPAD_DOWN,
+    SDL_CONTROLLER_BUTTON_DPAD_LEFT,
+    SDL_CONTROLLER_BUTTON_DPAD_RIGHT,
+    SDL_CONTROLLER_BUTTON_MAX
+} SDL_GameControllerButton;
+
+/**
+ *  turn this string into a button mapping
+ */
+extern DECLSPEC SDL_GameControllerButton SDLCALL SDL_GameControllerGetButtonFromString(const char *pchString);
+
+/**
+ *  turn this button enum into a string mapping
+ */
+extern DECLSPEC const char* SDLCALL SDL_GameControllerGetStringForButton(SDL_GameControllerButton button);
+
+/**
+ *  Get the SDL joystick layer binding for this controller button mapping
+ */
+extern DECLSPEC SDL_GameControllerButtonBind SDLCALL
+SDL_GameControllerGetBindForButton(SDL_GameController *gamecontroller,
+                                   SDL_GameControllerButton button);
+
+
+/**
+ *  Get the current state of a button on a game controller.
+ *
+ *  The button indices start at index 0.
+ */
+extern DECLSPEC Uint8 SDLCALL SDL_GameControllerGetButton(SDL_GameController *gamecontroller,
+                                                          SDL_GameControllerButton button);
+
+/**
+ *  Close a controller previously opened with SDL_GameControllerOpen().
+ */
+extern DECLSPEC void SDLCALL SDL_GameControllerClose(SDL_GameController *gamecontroller);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_gamecontroller_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_gesture.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_gesture.h
new file mode 100644
index 0000000..b223d80
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_gesture.h
@@ -0,0 +1,87 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_gesture.h
+ *
+ *  Include file for SDL gesture event handling.
+ */
+
+#ifndef SDL_gesture_h_
+#define SDL_gesture_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_video.h"
+
+#include "SDL_touch.h"
+
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef Sint64 SDL_GestureID;
+
+/* Function prototypes */
+
+/**
+ *  \brief Begin Recording a gesture on the specified touch, or all touches (-1)
+ *
+ *
+ */
+extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId);
+
+
+/**
+ *  \brief Save all currently loaded Dollar Gesture templates
+ *
+ *
+ */
+extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst);
+
+/**
+ *  \brief Save a currently loaded Dollar Gesture template
+ *
+ *
+ */
+extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst);
+
+
+/**
+ *  \brief Load Dollar Gesture templates from a file
+ *
+ *
+ */
+extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_gesture_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_haptic.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_haptic.h
new file mode 100644
index 0000000..e3a2bca
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_haptic.h
@@ -0,0 +1,1227 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_haptic.h
+ *
+ *  \brief The SDL haptic subsystem allows you to control haptic (force feedback)
+ *         devices.
+ *
+ *  The basic usage is as follows:
+ *   - Initialize the subsystem (::SDL_INIT_HAPTIC).
+ *   - Open a haptic device.
+ *    - SDL_HapticOpen() to open from index.
+ *    - SDL_HapticOpenFromJoystick() to open from an existing joystick.
+ *   - Create an effect (::SDL_HapticEffect).
+ *   - Upload the effect with SDL_HapticNewEffect().
+ *   - Run the effect with SDL_HapticRunEffect().
+ *   - (optional) Free the effect with SDL_HapticDestroyEffect().
+ *   - Close the haptic device with SDL_HapticClose().
+ *
+ * \par Simple rumble example:
+ * \code
+ *    SDL_Haptic *haptic;
+ *
+ *    // Open the device
+ *    haptic = SDL_HapticOpen( 0 );
+ *    if (haptic == NULL)
+ *       return -1;
+ *
+ *    // Initialize simple rumble
+ *    if (SDL_HapticRumbleInit( haptic ) != 0)
+ *       return -1;
+ *
+ *    // Play effect at 50% strength for 2 seconds
+ *    if (SDL_HapticRumblePlay( haptic, 0.5, 2000 ) != 0)
+ *       return -1;
+ *    SDL_Delay( 2000 );
+ *
+ *    // Clean up
+ *    SDL_HapticClose( haptic );
+ * \endcode
+ *
+ * \par Complete example:
+ * \code
+ * int test_haptic( SDL_Joystick * joystick ) {
+ *    SDL_Haptic *haptic;
+ *    SDL_HapticEffect effect;
+ *    int effect_id;
+ *
+ *    // Open the device
+ *    haptic = SDL_HapticOpenFromJoystick( joystick );
+ *    if (haptic == NULL) return -1; // Most likely joystick isn't haptic
+ *
+ *    // See if it can do sine waves
+ *    if ((SDL_HapticQuery(haptic) & SDL_HAPTIC_SINE)==0) {
+ *       SDL_HapticClose(haptic); // No sine effect
+ *       return -1;
+ *    }
+ *
+ *    // Create the effect
+ *    memset( &effect, 0, sizeof(SDL_HapticEffect) ); // 0 is safe default
+ *    effect.type = SDL_HAPTIC_SINE;
+ *    effect.periodic.direction.type = SDL_HAPTIC_POLAR; // Polar coordinates
+ *    effect.periodic.direction.dir[0] = 18000; // Force comes from south
+ *    effect.periodic.period = 1000; // 1000 ms
+ *    effect.periodic.magnitude = 20000; // 20000/32767 strength
+ *    effect.periodic.length = 5000; // 5 seconds long
+ *    effect.periodic.attack_length = 1000; // Takes 1 second to get max strength
+ *    effect.periodic.fade_length = 1000; // Takes 1 second to fade away
+ *
+ *    // Upload the effect
+ *    effect_id = SDL_HapticNewEffect( haptic, &effect );
+ *
+ *    // Test the effect
+ *    SDL_HapticRunEffect( haptic, effect_id, 1 );
+ *    SDL_Delay( 5000); // Wait for the effect to finish
+ *
+ *    // We destroy the effect, although closing the device also does this
+ *    SDL_HapticDestroyEffect( haptic, effect_id );
+ *
+ *    // Close the device
+ *    SDL_HapticClose(haptic);
+ *
+ *    return 0; // Success
+ * }
+ * \endcode
+ */
+
+#ifndef SDL_haptic_h_
+#define SDL_haptic_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_joystick.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/**
+ *  \typedef SDL_Haptic
+ *
+ *  \brief The haptic structure used to identify an SDL haptic.
+ *
+ *  \sa SDL_HapticOpen
+ *  \sa SDL_HapticOpenFromJoystick
+ *  \sa SDL_HapticClose
+ */
+struct _SDL_Haptic;
+typedef struct _SDL_Haptic SDL_Haptic;
+
+
+/**
+ *  \name Haptic features
+ *
+ *  Different haptic features a device can have.
+ */
+/* @{ */
+
+/**
+ *  \name Haptic effects
+ */
+/* @{ */
+
+/**
+ *  \brief Constant effect supported.
+ *
+ *  Constant haptic effect.
+ *
+ *  \sa SDL_HapticCondition
+ */
+#define SDL_HAPTIC_CONSTANT   (1u<<0)
+
+/**
+ *  \brief Sine wave effect supported.
+ *
+ *  Periodic haptic effect that simulates sine waves.
+ *
+ *  \sa SDL_HapticPeriodic
+ */
+#define SDL_HAPTIC_SINE       (1u<<1)
+
+/**
+ *  \brief Left/Right effect supported.
+ *
+ *  Haptic effect for direct control over high/low frequency motors.
+ *
+ *  \sa SDL_HapticLeftRight
+ * \warning this value was SDL_HAPTIC_SQUARE right before 2.0.0 shipped. Sorry,
+ *          we ran out of bits, and this is important for XInput devices.
+ */
+#define SDL_HAPTIC_LEFTRIGHT     (1u<<2)
+
+/* !!! FIXME: put this back when we have more bits in 2.1 */
+/* #define SDL_HAPTIC_SQUARE     (1<<2) */
+
+/**
+ *  \brief Triangle wave effect supported.
+ *
+ *  Periodic haptic effect that simulates triangular waves.
+ *
+ *  \sa SDL_HapticPeriodic
+ */
+#define SDL_HAPTIC_TRIANGLE   (1u<<3)
+
+/**
+ *  \brief Sawtoothup wave effect supported.
+ *
+ *  Periodic haptic effect that simulates saw tooth up waves.
+ *
+ *  \sa SDL_HapticPeriodic
+ */
+#define SDL_HAPTIC_SAWTOOTHUP (1u<<4)
+
+/**
+ *  \brief Sawtoothdown wave effect supported.
+ *
+ *  Periodic haptic effect that simulates saw tooth down waves.
+ *
+ *  \sa SDL_HapticPeriodic
+ */
+#define SDL_HAPTIC_SAWTOOTHDOWN (1u<<5)
+
+/**
+ *  \brief Ramp effect supported.
+ *
+ *  Ramp haptic effect.
+ *
+ *  \sa SDL_HapticRamp
+ */
+#define SDL_HAPTIC_RAMP       (1u<<6)
+
+/**
+ *  \brief Spring effect supported - uses axes position.
+ *
+ *  Condition haptic effect that simulates a spring.  Effect is based on the
+ *  axes position.
+ *
+ *  \sa SDL_HapticCondition
+ */
+#define SDL_HAPTIC_SPRING     (1u<<7)
+
+/**
+ *  \brief Damper effect supported - uses axes velocity.
+ *
+ *  Condition haptic effect that simulates dampening.  Effect is based on the
+ *  axes velocity.
+ *
+ *  \sa SDL_HapticCondition
+ */
+#define SDL_HAPTIC_DAMPER     (1u<<8)
+
+/**
+ *  \brief Inertia effect supported - uses axes acceleration.
+ *
+ *  Condition haptic effect that simulates inertia.  Effect is based on the axes
+ *  acceleration.
+ *
+ *  \sa SDL_HapticCondition
+ */
+#define SDL_HAPTIC_INERTIA    (1u<<9)
+
+/**
+ *  \brief Friction effect supported - uses axes movement.
+ *
+ *  Condition haptic effect that simulates friction.  Effect is based on the
+ *  axes movement.
+ *
+ *  \sa SDL_HapticCondition
+ */
+#define SDL_HAPTIC_FRICTION   (1u<<10)
+
+/**
+ *  \brief Custom effect is supported.
+ *
+ *  User defined custom haptic effect.
+ */
+#define SDL_HAPTIC_CUSTOM     (1u<<11)
+
+/* @} *//* Haptic effects */
+
+/* These last few are features the device has, not effects */
+
+/**
+ *  \brief Device can set global gain.
+ *
+ *  Device supports setting the global gain.
+ *
+ *  \sa SDL_HapticSetGain
+ */
+#define SDL_HAPTIC_GAIN       (1u<<12)
+
+/**
+ *  \brief Device can set autocenter.
+ *
+ *  Device supports setting autocenter.
+ *
+ *  \sa SDL_HapticSetAutocenter
+ */
+#define SDL_HAPTIC_AUTOCENTER (1u<<13)
+
+/**
+ *  \brief Device can be queried for effect status.
+ *
+ *  Device supports querying effect status.
+ *
+ *  \sa SDL_HapticGetEffectStatus
+ */
+#define SDL_HAPTIC_STATUS     (1u<<14)
+
+/**
+ *  \brief Device can be paused.
+ *
+ *  Devices supports being paused.
+ *
+ *  \sa SDL_HapticPause
+ *  \sa SDL_HapticUnpause
+ */
+#define SDL_HAPTIC_PAUSE      (1u<<15)
+
+
+/**
+ * \name Direction encodings
+ */
+/* @{ */
+
+/**
+ *  \brief Uses polar coordinates for the direction.
+ *
+ *  \sa SDL_HapticDirection
+ */
+#define SDL_HAPTIC_POLAR      0
+
+/**
+ *  \brief Uses cartesian coordinates for the direction.
+ *
+ *  \sa SDL_HapticDirection
+ */
+#define SDL_HAPTIC_CARTESIAN  1
+
+/**
+ *  \brief Uses spherical coordinates for the direction.
+ *
+ *  \sa SDL_HapticDirection
+ */
+#define SDL_HAPTIC_SPHERICAL  2
+
+/* @} *//* Direction encodings */
+
+/* @} *//* Haptic features */
+
+/*
+ * Misc defines.
+ */
+
+/**
+ * \brief Used to play a device an infinite number of times.
+ *
+ * \sa SDL_HapticRunEffect
+ */
+#define SDL_HAPTIC_INFINITY   4294967295U
+
+
+/**
+ *  \brief Structure that represents a haptic direction.
+ *
+ *  This is the direction where the force comes from,
+ *  instead of the direction in which the force is exerted.
+ *
+ *  Directions can be specified by:
+ *   - ::SDL_HAPTIC_POLAR : Specified by polar coordinates.
+ *   - ::SDL_HAPTIC_CARTESIAN : Specified by cartesian coordinates.
+ *   - ::SDL_HAPTIC_SPHERICAL : Specified by spherical coordinates.
+ *
+ *  Cardinal directions of the haptic device are relative to the positioning
+ *  of the device.  North is considered to be away from the user.
+ *
+ *  The following diagram represents the cardinal directions:
+ *  \verbatim
+                 .--.
+                 |__| .-------.
+                 |=.| |.-----.|
+                 |--| ||     ||
+                 |  | |'-----'|
+                 |__|~')_____('
+                   [ COMPUTER ]
+
+
+                     North (0,-1)
+                         ^
+                         |
+                         |
+   (-1,0)  West <----[ HAPTIC ]----> East (1,0)
+                         |
+                         |
+                         v
+                      South (0,1)
+
+
+                      [ USER ]
+                        \|||/
+                        (o o)
+                  ---ooO-(_)-Ooo---
+    \endverbatim
+ *
+ *  If type is ::SDL_HAPTIC_POLAR, direction is encoded by hundredths of a
+ *  degree starting north and turning clockwise.  ::SDL_HAPTIC_POLAR only uses
+ *  the first \c dir parameter.  The cardinal directions would be:
+ *   - North: 0 (0 degrees)
+ *   - East: 9000 (90 degrees)
+ *   - South: 18000 (180 degrees)
+ *   - West: 27000 (270 degrees)
+ *
+ *  If type is ::SDL_HAPTIC_CARTESIAN, direction is encoded by three positions
+ *  (X axis, Y axis and Z axis (with 3 axes)).  ::SDL_HAPTIC_CARTESIAN uses
+ *  the first three \c dir parameters.  The cardinal directions would be:
+ *   - North:  0,-1, 0
+ *   - East:   1, 0, 0
+ *   - South:  0, 1, 0
+ *   - West:  -1, 0, 0
+ *
+ *  The Z axis represents the height of the effect if supported, otherwise
+ *  it's unused.  In cartesian encoding (1, 2) would be the same as (2, 4), you
+ *  can use any multiple you want, only the direction matters.
+ *
+ *  If type is ::SDL_HAPTIC_SPHERICAL, direction is encoded by two rotations.
+ *  The first two \c dir parameters are used.  The \c dir parameters are as
+ *  follows (all values are in hundredths of degrees):
+ *   - Degrees from (1, 0) rotated towards (0, 1).
+ *   - Degrees towards (0, 0, 1) (device needs at least 3 axes).
+ *
+ *
+ *  Example of force coming from the south with all encodings (force coming
+ *  from the south means the user will have to pull the stick to counteract):
+ *  \code
+ *  SDL_HapticDirection direction;
+ *
+ *  // Cartesian directions
+ *  direction.type = SDL_HAPTIC_CARTESIAN; // Using cartesian direction encoding.
+ *  direction.dir[0] = 0; // X position
+ *  direction.dir[1] = 1; // Y position
+ *  // Assuming the device has 2 axes, we don't need to specify third parameter.
+ *
+ *  // Polar directions
+ *  direction.type = SDL_HAPTIC_POLAR; // We'll be using polar direction encoding.
+ *  direction.dir[0] = 18000; // Polar only uses first parameter
+ *
+ *  // Spherical coordinates
+ *  direction.type = SDL_HAPTIC_SPHERICAL; // Spherical encoding
+ *  direction.dir[0] = 9000; // Since we only have two axes we don't need more parameters.
+ *  \endcode
+ *
+ *  \sa SDL_HAPTIC_POLAR
+ *  \sa SDL_HAPTIC_CARTESIAN
+ *  \sa SDL_HAPTIC_SPHERICAL
+ *  \sa SDL_HapticEffect
+ *  \sa SDL_HapticNumAxes
+ */
+typedef struct SDL_HapticDirection
+{
+    Uint8 type;         /**< The type of encoding. */
+    Sint32 dir[3];      /**< The encoded direction. */
+} SDL_HapticDirection;
+
+
+/**
+ *  \brief A structure containing a template for a Constant effect.
+ *
+ *  This struct is exclusively for the ::SDL_HAPTIC_CONSTANT effect.
+ *
+ *  A constant effect applies a constant force in the specified direction
+ *  to the joystick.
+ *
+ *  \sa SDL_HAPTIC_CONSTANT
+ *  \sa SDL_HapticEffect
+ */
+typedef struct SDL_HapticConstant
+{
+    /* Header */
+    Uint16 type;            /**< ::SDL_HAPTIC_CONSTANT */
+    SDL_HapticDirection direction;  /**< Direction of the effect. */
+
+    /* Replay */
+    Uint32 length;          /**< Duration of the effect. */
+    Uint16 delay;           /**< Delay before starting the effect. */
+
+    /* Trigger */
+    Uint16 button;          /**< Button that triggers the effect. */
+    Uint16 interval;        /**< How soon it can be triggered again after button. */
+
+    /* Constant */
+    Sint16 level;           /**< Strength of the constant effect. */
+
+    /* Envelope */
+    Uint16 attack_length;   /**< Duration of the attack. */
+    Uint16 attack_level;    /**< Level at the start of the attack. */
+    Uint16 fade_length;     /**< Duration of the fade. */
+    Uint16 fade_level;      /**< Level at the end of the fade. */
+} SDL_HapticConstant;
+
+/**
+ *  \brief A structure containing a template for a Periodic effect.
+ *
+ *  The struct handles the following effects:
+ *   - ::SDL_HAPTIC_SINE
+ *   - ::SDL_HAPTIC_LEFTRIGHT
+ *   - ::SDL_HAPTIC_TRIANGLE
+ *   - ::SDL_HAPTIC_SAWTOOTHUP
+ *   - ::SDL_HAPTIC_SAWTOOTHDOWN
+ *
+ *  A periodic effect consists in a wave-shaped effect that repeats itself
+ *  over time.  The type determines the shape of the wave and the parameters
+ *  determine the dimensions of the wave.
+ *
+ *  Phase is given by hundredth of a degree meaning that giving the phase a value
+ *  of 9000 will displace it 25% of its period.  Here are sample values:
+ *   -     0: No phase displacement.
+ *   -  9000: Displaced 25% of its period.
+ *   - 18000: Displaced 50% of its period.
+ *   - 27000: Displaced 75% of its period.
+ *   - 36000: Displaced 100% of its period, same as 0, but 0 is preferred.
+ *
+ *  Examples:
+ *  \verbatim
+    SDL_HAPTIC_SINE
+      __      __      __      __
+     /  \    /  \    /  \    /
+    /    \__/    \__/    \__/
+
+    SDL_HAPTIC_SQUARE
+     __    __    __    __    __
+    |  |  |  |  |  |  |  |  |  |
+    |  |__|  |__|  |__|  |__|  |
+
+    SDL_HAPTIC_TRIANGLE
+      /\    /\    /\    /\    /\
+     /  \  /  \  /  \  /  \  /
+    /    \/    \/    \/    \/
+
+    SDL_HAPTIC_SAWTOOTHUP
+      /|  /|  /|  /|  /|  /|  /|
+     / | / | / | / | / | / | / |
+    /  |/  |/  |/  |/  |/  |/  |
+
+    SDL_HAPTIC_SAWTOOTHDOWN
+    \  |\  |\  |\  |\  |\  |\  |
+     \ | \ | \ | \ | \ | \ | \ |
+      \|  \|  \|  \|  \|  \|  \|
+    \endverbatim
+ *
+ *  \sa SDL_HAPTIC_SINE
+ *  \sa SDL_HAPTIC_LEFTRIGHT
+ *  \sa SDL_HAPTIC_TRIANGLE
+ *  \sa SDL_HAPTIC_SAWTOOTHUP
+ *  \sa SDL_HAPTIC_SAWTOOTHDOWN
+ *  \sa SDL_HapticEffect
+ */
+typedef struct SDL_HapticPeriodic
+{
+    /* Header */
+    Uint16 type;        /**< ::SDL_HAPTIC_SINE, ::SDL_HAPTIC_LEFTRIGHT,
+                             ::SDL_HAPTIC_TRIANGLE, ::SDL_HAPTIC_SAWTOOTHUP or
+                             ::SDL_HAPTIC_SAWTOOTHDOWN */
+    SDL_HapticDirection direction;  /**< Direction of the effect. */
+
+    /* Replay */
+    Uint32 length;      /**< Duration of the effect. */
+    Uint16 delay;       /**< Delay before starting the effect. */
+
+    /* Trigger */
+    Uint16 button;      /**< Button that triggers the effect. */
+    Uint16 interval;    /**< How soon it can be triggered again after button. */
+
+    /* Periodic */
+    Uint16 period;      /**< Period of the wave. */
+    Sint16 magnitude;   /**< Peak value; if negative, equivalent to 180 degrees extra phase shift. */
+    Sint16 offset;      /**< Mean value of the wave. */
+    Uint16 phase;       /**< Positive phase shift given by hundredth of a degree. */
+
+    /* Envelope */
+    Uint16 attack_length;   /**< Duration of the attack. */
+    Uint16 attack_level;    /**< Level at the start of the attack. */
+    Uint16 fade_length; /**< Duration of the fade. */
+    Uint16 fade_level;  /**< Level at the end of the fade. */
+} SDL_HapticPeriodic;
+
+/**
+ *  \brief A structure containing a template for a Condition effect.
+ *
+ *  The struct handles the following effects:
+ *   - ::SDL_HAPTIC_SPRING: Effect based on axes position.
+ *   - ::SDL_HAPTIC_DAMPER: Effect based on axes velocity.
+ *   - ::SDL_HAPTIC_INERTIA: Effect based on axes acceleration.
+ *   - ::SDL_HAPTIC_FRICTION: Effect based on axes movement.
+ *
+ *  Direction is handled by condition internals instead of a direction member.
+ *  The condition effect specific members have three parameters.  The first
+ *  refers to the X axis, the second refers to the Y axis and the third
+ *  refers to the Z axis.  The right terms refer to the positive side of the
+ *  axis and the left terms refer to the negative side of the axis.  Please
+ *  refer to the ::SDL_HapticDirection diagram for which side is positive and
+ *  which is negative.
+ *
+ *  \sa SDL_HapticDirection
+ *  \sa SDL_HAPTIC_SPRING
+ *  \sa SDL_HAPTIC_DAMPER
+ *  \sa SDL_HAPTIC_INERTIA
+ *  \sa SDL_HAPTIC_FRICTION
+ *  \sa SDL_HapticEffect
+ */
+typedef struct SDL_HapticCondition
+{
+    /* Header */
+    Uint16 type;            /**< ::SDL_HAPTIC_SPRING, ::SDL_HAPTIC_DAMPER,
+                                 ::SDL_HAPTIC_INERTIA or ::SDL_HAPTIC_FRICTION */
+    SDL_HapticDirection direction;  /**< Direction of the effect - Not used ATM. */
+
+    /* Replay */
+    Uint32 length;          /**< Duration of the effect. */
+    Uint16 delay;           /**< Delay before starting the effect. */
+
+    /* Trigger */
+    Uint16 button;          /**< Button that triggers the effect. */
+    Uint16 interval;        /**< How soon it can be triggered again after button. */
+
+    /* Condition */
+    Uint16 right_sat[3];    /**< Level when joystick is to the positive side; max 0xFFFF. */
+    Uint16 left_sat[3];     /**< Level when joystick is to the negative side; max 0xFFFF. */
+    Sint16 right_coeff[3];  /**< How fast to increase the force towards the positive side. */
+    Sint16 left_coeff[3];   /**< How fast to increase the force towards the negative side. */
+    Uint16 deadband[3];     /**< Size of the dead zone; max 0xFFFF: whole axis-range when 0-centered. */
+    Sint16 center[3];       /**< Position of the dead zone. */
+} SDL_HapticCondition;
+
+/**
+ *  \brief A structure containing a template for a Ramp effect.
+ *
+ *  This struct is exclusively for the ::SDL_HAPTIC_RAMP effect.
+ *
+ *  The ramp effect starts at start strength and ends at end strength.
+ *  It augments in linear fashion.  If you use attack and fade with a ramp
+ *  the effects get added to the ramp effect making the effect become
+ *  quadratic instead of linear.
+ *
+ *  \sa SDL_HAPTIC_RAMP
+ *  \sa SDL_HapticEffect
+ */
+typedef struct SDL_HapticRamp
+{
+    /* Header */
+    Uint16 type;            /**< ::SDL_HAPTIC_RAMP */
+    SDL_HapticDirection direction;  /**< Direction of the effect. */
+
+    /* Replay */
+    Uint32 length;          /**< Duration of the effect. */
+    Uint16 delay;           /**< Delay before starting the effect. */
+
+    /* Trigger */
+    Uint16 button;          /**< Button that triggers the effect. */
+    Uint16 interval;        /**< How soon it can be triggered again after button. */
+
+    /* Ramp */
+    Sint16 start;           /**< Beginning strength level. */
+    Sint16 end;             /**< Ending strength level. */
+
+    /* Envelope */
+    Uint16 attack_length;   /**< Duration of the attack. */
+    Uint16 attack_level;    /**< Level at the start of the attack. */
+    Uint16 fade_length;     /**< Duration of the fade. */
+    Uint16 fade_level;      /**< Level at the end of the fade. */
+} SDL_HapticRamp;
+
+/**
+ * \brief A structure containing a template for a Left/Right effect.
+ *
+ * This struct is exclusively for the ::SDL_HAPTIC_LEFTRIGHT effect.
+ *
+ * The Left/Right effect is used to explicitly control the large and small
+ * motors, commonly found in modern game controllers. One motor is high
+ * frequency, the other is low frequency.
+ *
+ * \sa SDL_HAPTIC_LEFTRIGHT
+ * \sa SDL_HapticEffect
+ */
+typedef struct SDL_HapticLeftRight
+{
+    /* Header */
+    Uint16 type;            /**< ::SDL_HAPTIC_LEFTRIGHT */
+
+    /* Replay */
+    Uint32 length;          /**< Duration of the effect. */
+
+    /* Rumble */
+    Uint16 large_magnitude; /**< Control of the large controller motor. */
+    Uint16 small_magnitude; /**< Control of the small controller motor. */
+} SDL_HapticLeftRight;
+
+/**
+ *  \brief A structure containing a template for the ::SDL_HAPTIC_CUSTOM effect.
+ *
+ *  This struct is exclusively for the ::SDL_HAPTIC_CUSTOM effect.
+ *
+ *  A custom force feedback effect is much like a periodic effect, where the
+ *  application can define its exact shape.  You will have to allocate the
+ *  data yourself.  Data should consist of channels * samples Uint16 samples.
+ *
+ *  If channels is one, the effect is rotated using the defined direction.
+ *  Otherwise it uses the samples in data for the different axes.
+ *
+ *  \sa SDL_HAPTIC_CUSTOM
+ *  \sa SDL_HapticEffect
+ */
+typedef struct SDL_HapticCustom
+{
+    /* Header */
+    Uint16 type;            /**< ::SDL_HAPTIC_CUSTOM */
+    SDL_HapticDirection direction;  /**< Direction of the effect. */
+
+    /* Replay */
+    Uint32 length;          /**< Duration of the effect. */
+    Uint16 delay;           /**< Delay before starting the effect. */
+
+    /* Trigger */
+    Uint16 button;          /**< Button that triggers the effect. */
+    Uint16 interval;        /**< How soon it can be triggered again after button. */
+
+    /* Custom */
+    Uint8 channels;         /**< Axes to use, minimum of one. */
+    Uint16 period;          /**< Sample periods. */
+    Uint16 samples;         /**< Amount of samples. */
+    Uint16 *data;           /**< Should contain channels*samples items. */
+
+    /* Envelope */
+    Uint16 attack_length;   /**< Duration of the attack. */
+    Uint16 attack_level;    /**< Level at the start of the attack. */
+    Uint16 fade_length;     /**< Duration of the fade. */
+    Uint16 fade_level;      /**< Level at the end of the fade. */
+} SDL_HapticCustom;
+
+/**
+ *  \brief The generic template for any haptic effect.
+ *
+ *  All values max at 32767 (0x7FFF).  Signed values also can be negative.
+ *  Time values unless specified otherwise are in milliseconds.
+ *
+ *  You can also pass ::SDL_HAPTIC_INFINITY to length instead of a 0-32767
+ *  value.  Neither delay, interval, attack_length nor fade_length support
+ *  ::SDL_HAPTIC_INFINITY.  Fade will also not be used since effect never ends.
+ *
+ *  Additionally, the ::SDL_HAPTIC_RAMP effect does not support a duration of
+ *  ::SDL_HAPTIC_INFINITY.
+ *
+ *  Button triggers may not be supported on all devices, it is advised to not
+ *  use them if possible.  Buttons start at index 1 instead of index 0 like
+ *  the joystick.
+ *
+ *  If both attack_length and fade_level are 0, the envelope is not used,
+ *  otherwise both values are used.
+ *
+ *  Common parts:
+ *  \code
+ *  // Replay - All effects have this
+ *  Uint32 length;        // Duration of effect (ms).
+ *  Uint16 delay;         // Delay before starting effect.
+ *
+ *  // Trigger - All effects have this
+ *  Uint16 button;        // Button that triggers effect.
+ *  Uint16 interval;      // How soon before effect can be triggered again.
+ *
+ *  // Envelope - All effects except condition effects have this
+ *  Uint16 attack_length; // Duration of the attack (ms).
+ *  Uint16 attack_level;  // Level at the start of the attack.
+ *  Uint16 fade_length;   // Duration of the fade out (ms).
+ *  Uint16 fade_level;    // Level at the end of the fade.
+ *  \endcode
+ *
+ *
+ *  Here we have an example of a constant effect evolution in time:
+ *  \verbatim
+    Strength
+    ^
+    |
+    |    effect level -->  _________________
+    |                     /                 \
+    |                    /                   \
+    |                   /                     \
+    |                  /                       \
+    | attack_level --> |                        \
+    |                  |                        |  <---  fade_level
+    |
+    +--------------------------------------------------> Time
+                       [--]                 [---]
+                       attack_length        fade_length
+
+    [------------------][-----------------------]
+    delay               length
+    \endverbatim
+ *
+ *  Note either the attack_level or the fade_level may be above the actual
+ *  effect level.
+ *
+ *  \sa SDL_HapticConstant
+ *  \sa SDL_HapticPeriodic
+ *  \sa SDL_HapticCondition
+ *  \sa SDL_HapticRamp
+ *  \sa SDL_HapticLeftRight
+ *  \sa SDL_HapticCustom
+ */
+typedef union SDL_HapticEffect
+{
+    /* Common for all force feedback effects */
+    Uint16 type;                    /**< Effect type. */
+    SDL_HapticConstant constant;    /**< Constant effect. */
+    SDL_HapticPeriodic periodic;    /**< Periodic effect. */
+    SDL_HapticCondition condition;  /**< Condition effect. */
+    SDL_HapticRamp ramp;            /**< Ramp effect. */
+    SDL_HapticLeftRight leftright;  /**< Left/Right effect. */
+    SDL_HapticCustom custom;        /**< Custom effect. */
+} SDL_HapticEffect;
+
+
+/* Function prototypes */
+/**
+ *  \brief Count the number of haptic devices attached to the system.
+ *
+ *  \return Number of haptic devices detected on the system.
+ */
+extern DECLSPEC int SDLCALL SDL_NumHaptics(void);
+
+/**
+ *  \brief Get the implementation dependent name of a haptic device.
+ *
+ *  This can be called before any joysticks are opened.
+ *  If no name can be found, this function returns NULL.
+ *
+ *  \param device_index Index of the device to get its name.
+ *  \return Name of the device or NULL on error.
+ *
+ *  \sa SDL_NumHaptics
+ */
+extern DECLSPEC const char *SDLCALL SDL_HapticName(int device_index);
+
+/**
+ *  \brief Opens a haptic device for use.
+ *
+ *  The index passed as an argument refers to the N'th haptic device on this
+ *  system.
+ *
+ *  When opening a haptic device, its gain will be set to maximum and
+ *  autocenter will be disabled.  To modify these values use
+ *  SDL_HapticSetGain() and SDL_HapticSetAutocenter().
+ *
+ *  \param device_index Index of the device to open.
+ *  \return Device identifier or NULL on error.
+ *
+ *  \sa SDL_HapticIndex
+ *  \sa SDL_HapticOpenFromMouse
+ *  \sa SDL_HapticOpenFromJoystick
+ *  \sa SDL_HapticClose
+ *  \sa SDL_HapticSetGain
+ *  \sa SDL_HapticSetAutocenter
+ *  \sa SDL_HapticPause
+ *  \sa SDL_HapticStopAll
+ */
+extern DECLSPEC SDL_Haptic *SDLCALL SDL_HapticOpen(int device_index);
+
+/**
+ *  \brief Checks if the haptic device at index has been opened.
+ *
+ *  \param device_index Index to check to see if it has been opened.
+ *  \return 1 if it has been opened or 0 if it hasn't.
+ *
+ *  \sa SDL_HapticOpen
+ *  \sa SDL_HapticIndex
+ */
+extern DECLSPEC int SDLCALL SDL_HapticOpened(int device_index);
+
+/**
+ *  \brief Gets the index of a haptic device.
+ *
+ *  \param haptic Haptic device to get the index of.
+ *  \return The index of the haptic device or -1 on error.
+ *
+ *  \sa SDL_HapticOpen
+ *  \sa SDL_HapticOpened
+ */
+extern DECLSPEC int SDLCALL SDL_HapticIndex(SDL_Haptic * haptic);
+
+/**
+ *  \brief Gets whether or not the current mouse has haptic capabilities.
+ *
+ *  \return SDL_TRUE if the mouse is haptic, SDL_FALSE if it isn't.
+ *
+ *  \sa SDL_HapticOpenFromMouse
+ */
+extern DECLSPEC int SDLCALL SDL_MouseIsHaptic(void);
+
+/**
+ *  \brief Tries to open a haptic device from the current mouse.
+ *
+ *  \return The haptic device identifier or NULL on error.
+ *
+ *  \sa SDL_MouseIsHaptic
+ *  \sa SDL_HapticOpen
+ */
+extern DECLSPEC SDL_Haptic *SDLCALL SDL_HapticOpenFromMouse(void);
+
+/**
+ *  \brief Checks to see if a joystick has haptic features.
+ *
+ *  \param joystick Joystick to test for haptic capabilities.
+ *  \return SDL_TRUE if the joystick is haptic, SDL_FALSE if it isn't
+ *          or -1 if an error occurred.
+ *
+ *  \sa SDL_HapticOpenFromJoystick
+ */
+extern DECLSPEC int SDLCALL SDL_JoystickIsHaptic(SDL_Joystick * joystick);
+
+/**
+ *  \brief Opens a haptic device for use from a joystick device.
+ *
+ *  You must still close the haptic device separately.  It will not be closed
+ *  with the joystick.
+ *
+ *  When opening from a joystick you should first close the haptic device before
+ *  closing the joystick device.  If not, on some implementations the haptic
+ *  device will also get unallocated and you'll be unable to use force feedback
+ *  on that device.
+ *
+ *  \param joystick Joystick to create a haptic device from.
+ *  \return A valid haptic device identifier on success or NULL on error.
+ *
+ *  \sa SDL_HapticOpen
+ *  \sa SDL_HapticClose
+ */
+extern DECLSPEC SDL_Haptic *SDLCALL SDL_HapticOpenFromJoystick(SDL_Joystick *
+                                                               joystick);
+
+/**
+ *  \brief Closes a haptic device previously opened with SDL_HapticOpen().
+ *
+ *  \param haptic Haptic device to close.
+ */
+extern DECLSPEC void SDLCALL SDL_HapticClose(SDL_Haptic * haptic);
+
+/**
+ *  \brief Returns the number of effects a haptic device can store.
+ *
+ *  On some platforms this isn't fully supported, and therefore is an
+ *  approximation.  Always check to see if your created effect was actually
+ *  created and do not rely solely on SDL_HapticNumEffects().
+ *
+ *  \param haptic The haptic device to query effect max.
+ *  \return The number of effects the haptic device can store or
+ *          -1 on error.
+ *
+ *  \sa SDL_HapticNumEffectsPlaying
+ *  \sa SDL_HapticQuery
+ */
+extern DECLSPEC int SDLCALL SDL_HapticNumEffects(SDL_Haptic * haptic);
+
+/**
+ *  \brief Returns the number of effects a haptic device can play at the same
+ *         time.
+ *
+ *  This is not supported on all platforms, but will always return a value.
+ *  Added here for the sake of completeness.
+ *
+ *  \param haptic The haptic device to query maximum playing effects.
+ *  \return The number of effects the haptic device can play at the same time
+ *          or -1 on error.
+ *
+ *  \sa SDL_HapticNumEffects
+ *  \sa SDL_HapticQuery
+ */
+extern DECLSPEC int SDLCALL SDL_HapticNumEffectsPlaying(SDL_Haptic * haptic);
+
+/**
+ *  \brief Gets the haptic device's supported features in bitwise manner.
+ *
+ *  Example:
+ *  \code
+ *  if (SDL_HapticQuery(haptic) & SDL_HAPTIC_CONSTANT) {
+ *      printf("We have constant haptic effect!\n");
+ *  }
+ *  \endcode
+ *
+ *  \param haptic The haptic device to query.
+ *  \return Haptic features in bitwise manner (OR'd).
+ *
+ *  \sa SDL_HapticNumEffects
+ *  \sa SDL_HapticEffectSupported
+ */
+extern DECLSPEC unsigned int SDLCALL SDL_HapticQuery(SDL_Haptic * haptic);
+
+
+/**
+ *  \brief Gets the number of haptic axes the device has.
+ *
+ *  \sa SDL_HapticDirection
+ */
+extern DECLSPEC int SDLCALL SDL_HapticNumAxes(SDL_Haptic * haptic);
+
+/**
+ *  \brief Checks to see if effect is supported by haptic.
+ *
+ *  \param haptic Haptic device to check on.
+ *  \param effect Effect to check to see if it is supported.
+ *  \return SDL_TRUE if effect is supported, SDL_FALSE if it isn't or -1 on error.
+ *
+ *  \sa SDL_HapticQuery
+ *  \sa SDL_HapticNewEffect
+ */
+extern DECLSPEC int SDLCALL SDL_HapticEffectSupported(SDL_Haptic * haptic,
+                                                      SDL_HapticEffect *
+                                                      effect);
+
+/**
+ *  \brief Creates a new haptic effect on the device.
+ *
+ *  \param haptic Haptic device to create the effect on.
+ *  \param effect Properties of the effect to create.
+ *  \return The identifier of the effect on success or -1 on error.
+ *
+ *  \sa SDL_HapticUpdateEffect
+ *  \sa SDL_HapticRunEffect
+ *  \sa SDL_HapticDestroyEffect
+ */
+extern DECLSPEC int SDLCALL SDL_HapticNewEffect(SDL_Haptic * haptic,
+                                                SDL_HapticEffect * effect);
+
+/**
+ *  \brief Updates the properties of an effect.
+ *
+ *  Can be used dynamically, although behavior when dynamically changing
+ *  direction may be strange.  Specifically the effect may reupload itself
+ *  and start playing from the start.  You cannot change the type either when
+ *  running SDL_HapticUpdateEffect().
+ *
+ *  \param haptic Haptic device that has the effect.
+ *  \param effect Identifier of the effect to update.
+ *  \param data New effect properties to use.
+ *  \return 0 on success or -1 on error.
+ *
+ *  \sa SDL_HapticNewEffect
+ *  \sa SDL_HapticRunEffect
+ *  \sa SDL_HapticDestroyEffect
+ */
+extern DECLSPEC int SDLCALL SDL_HapticUpdateEffect(SDL_Haptic * haptic,
+                                                   int effect,
+                                                   SDL_HapticEffect * data);
+
+/**
+ *  \brief Runs the haptic effect on its associated haptic device.
+ *
+ *  If iterations are ::SDL_HAPTIC_INFINITY, it'll run the effect over and over
+ *  repeating the envelope (attack and fade) every time.  If you only want the
+ *  effect to last forever, set ::SDL_HAPTIC_INFINITY in the effect's length
+ *  parameter.
+ *
+ *  \param haptic Haptic device to run the effect on.
+ *  \param effect Identifier of the haptic effect to run.
+ *  \param iterations Number of iterations to run the effect. Use
+ *         ::SDL_HAPTIC_INFINITY for infinity.
+ *  \return 0 on success or -1 on error.
+ *
+ *  \sa SDL_HapticStopEffect
+ *  \sa SDL_HapticDestroyEffect
+ *  \sa SDL_HapticGetEffectStatus
+ */
+extern DECLSPEC int SDLCALL SDL_HapticRunEffect(SDL_Haptic * haptic,
+                                                int effect,
+                                                Uint32 iterations);
+
+/**
+ *  \brief Stops the haptic effect on its associated haptic device.
+ *
+ *  \param haptic Haptic device to stop the effect on.
+ *  \param effect Identifier of the effect to stop.
+ *  \return 0 on success or -1 on error.
+ *
+ *  \sa SDL_HapticRunEffect
+ *  \sa SDL_HapticDestroyEffect
+ */
+extern DECLSPEC int SDLCALL SDL_HapticStopEffect(SDL_Haptic * haptic,
+                                                 int effect);
+
+/**
+ *  \brief Destroys a haptic effect on the device.
+ *
+ *  This will stop the effect if it's running.  Effects are automatically
+ *  destroyed when the device is closed.
+ *
+ *  \param haptic Device to destroy the effect on.
+ *  \param effect Identifier of the effect to destroy.
+ *
+ *  \sa SDL_HapticNewEffect
+ */
+extern DECLSPEC void SDLCALL SDL_HapticDestroyEffect(SDL_Haptic * haptic,
+                                                     int effect);
+
+/**
+ *  \brief Gets the status of the current effect on the haptic device.
+ *
+ *  Device must support the ::SDL_HAPTIC_STATUS feature.
+ *
+ *  \param haptic Haptic device to query the effect status on.
+ *  \param effect Identifier of the effect to query its status.
+ *  \return 0 if it isn't playing, 1 if it is playing or -1 on error.
+ *
+ *  \sa SDL_HapticRunEffect
+ *  \sa SDL_HapticStopEffect
+ */
+extern DECLSPEC int SDLCALL SDL_HapticGetEffectStatus(SDL_Haptic * haptic,
+                                                      int effect);
+
+/**
+ *  \brief Sets the global gain of the device.
+ *
+ *  Device must support the ::SDL_HAPTIC_GAIN feature.
+ *
+ *  The user may specify the maximum gain by setting the environment variable
+ *  SDL_HAPTIC_GAIN_MAX which should be between 0 and 100.  All calls to
+ *  SDL_HapticSetGain() will scale linearly using SDL_HAPTIC_GAIN_MAX as the
+ *  maximum.
+ *
+ *  \param haptic Haptic device to set the gain on.
+ *  \param gain Value to set the gain to, should be between 0 and 100.
+ *  \return 0 on success or -1 on error.
+ *
+ *  \sa SDL_HapticQuery
+ */
+extern DECLSPEC int SDLCALL SDL_HapticSetGain(SDL_Haptic * haptic, int gain);
+
+/**
+ *  \brief Sets the global autocenter of the device.
+ *
+ *  Autocenter should be between 0 and 100.  Setting it to 0 will disable
+ *  autocentering.
+ *
+ *  Device must support the ::SDL_HAPTIC_AUTOCENTER feature.
+ *
+ *  \param haptic Haptic device to set autocentering on.
+ *  \param autocenter Value to set autocenter to, 0 disables autocentering.
+ *  \return 0 on success or -1 on error.
+ *
+ *  \sa SDL_HapticQuery
+ */
+extern DECLSPEC int SDLCALL SDL_HapticSetAutocenter(SDL_Haptic * haptic,
+                                                    int autocenter);
+
+/**
+ *  \brief Pauses a haptic device.
+ *
+ *  Device must support the ::SDL_HAPTIC_PAUSE feature.  Call
+ *  SDL_HapticUnpause() to resume playback.
+ *
+ *  Do not modify the effects nor add new ones while the device is paused.
+ *  That can cause all sorts of weird errors.
+ *
+ *  \param haptic Haptic device to pause.
+ *  \return 0 on success or -1 on error.
+ *
+ *  \sa SDL_HapticUnpause
+ */
+extern DECLSPEC int SDLCALL SDL_HapticPause(SDL_Haptic * haptic);
+
+/**
+ *  \brief Unpauses a haptic device.
+ *
+ *  Call to unpause after SDL_HapticPause().
+ *
+ *  \param haptic Haptic device to unpause.
+ *  \return 0 on success or -1 on error.
+ *
+ *  \sa SDL_HapticPause
+ */
+extern DECLSPEC int SDLCALL SDL_HapticUnpause(SDL_Haptic * haptic);
+
+/**
+ *  \brief Stops all the currently playing effects on a haptic device.
+ *
+ *  \param haptic Haptic device to stop.
+ *  \return 0 on success or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_HapticStopAll(SDL_Haptic * haptic);
+
+/**
+ *  \brief Checks to see if rumble is supported on a haptic device.
+ *
+ *  \param haptic Haptic device to check to see if it supports rumble.
+ *  \return SDL_TRUE if effect is supported, SDL_FALSE if it isn't or -1 on error.
+ *
+ *  \sa SDL_HapticRumbleInit
+ *  \sa SDL_HapticRumblePlay
+ *  \sa SDL_HapticRumbleStop
+ */
+extern DECLSPEC int SDLCALL SDL_HapticRumbleSupported(SDL_Haptic * haptic);
+
+/**
+ *  \brief Initializes the haptic device for simple rumble playback.
+ *
+ *  \param haptic Haptic device to initialize for simple rumble playback.
+ *  \return 0 on success or -1 on error.
+ *
+ *  \sa SDL_HapticOpen
+ *  \sa SDL_HapticRumbleSupported
+ *  \sa SDL_HapticRumblePlay
+ *  \sa SDL_HapticRumbleStop
+ */
+extern DECLSPEC int SDLCALL SDL_HapticRumbleInit(SDL_Haptic * haptic);
+
+/**
+ *  \brief Runs simple rumble on a haptic device
+ *
+ *  \param haptic Haptic device to play rumble effect on.
+ *  \param strength Strength of the rumble to play as a 0-1 float value.
+ *  \param length Length of the rumble to play in milliseconds.
+ *  \return 0 on success or -1 on error.
+ *
+ *  \sa SDL_HapticRumbleSupported
+ *  \sa SDL_HapticRumbleInit
+ *  \sa SDL_HapticRumbleStop
+ */
+extern DECLSPEC int SDLCALL SDL_HapticRumblePlay(SDL_Haptic * haptic, float strength, Uint32 length );
+
+/**
+ *  \brief Stops the simple rumble on a haptic device.
+ *
+ *  \param haptic Haptic to stop the rumble on.
+ *  \return 0 on success or -1 on error.
+ *
+ *  \sa SDL_HapticRumbleSupported
+ *  \sa SDL_HapticRumbleInit
+ *  \sa SDL_HapticRumblePlay
+ */
+extern DECLSPEC int SDLCALL SDL_HapticRumbleStop(SDL_Haptic * haptic);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_haptic_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_hints.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_hints.h
new file mode 100644
index 0000000..3834640
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_hints.h
@@ -0,0 +1,1022 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_hints.h
+ *
+ *  Official documentation for SDL configuration variables
+ *
+ *  This file contains functions to set and get configuration hints,
+ *  as well as listing each of them alphabetically.
+ *
+ *  The convention for naming hints is SDL_HINT_X, where "SDL_X" is
+ *  the environment variable that can be used to override the default.
+ *
+ *  In general these hints are just that - they may or may not be
+ *  supported or applicable on any given platform, but they provide
+ *  a way for an application or user to give the library a hint as
+ *  to how they would like the library to work.
+ */
+
+#ifndef SDL_hints_h_
+#define SDL_hints_h_
+
+#include "SDL_stdinc.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \brief  A variable controlling how 3D acceleration is used to accelerate the SDL screen surface.
+ *
+ *  SDL can try to accelerate the SDL screen surface by using streaming
+ *  textures with a 3D rendering engine.  This variable controls whether and
+ *  how this is done.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Disable 3D acceleration
+ *    "1"       - Enable 3D acceleration, using the default renderer.
+ *    "X"       - Enable 3D acceleration, using X where X is one of the valid rendering drivers.  (e.g. "direct3d", "opengl", etc.)
+ *
+ *  By default SDL tries to make a best guess for each platform whether
+ *  to use acceleration or not.
+ */
+#define SDL_HINT_FRAMEBUFFER_ACCELERATION   "SDL_FRAMEBUFFER_ACCELERATION"
+
+/**
+ *  \brief  A variable specifying which render driver to use.
+ *
+ *  If the application doesn't pick a specific renderer to use, this variable
+ *  specifies the name of the preferred renderer.  If the preferred renderer
+ *  can't be initialized, the normal default renderer is used.
+ *
+ *  This variable is case insensitive and can be set to the following values:
+ *    "direct3d"
+ *    "opengl"
+ *    "opengles2"
+ *    "opengles"
+ *    "metal"
+ *    "software"
+ *
+ *  The default varies by platform, but it's the first one in the list that
+ *  is available on the current platform.
+ */
+#define SDL_HINT_RENDER_DRIVER              "SDL_RENDER_DRIVER"
+
+/**
+ *  \brief  A variable controlling whether the OpenGL render driver uses shaders if they are available.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Disable shaders
+ *    "1"       - Enable shaders
+ *
+ *  By default shaders are used if OpenGL supports them.
+ */
+#define SDL_HINT_RENDER_OPENGL_SHADERS      "SDL_RENDER_OPENGL_SHADERS"
+
+/**
+ *  \brief  A variable controlling whether the Direct3D device is initialized for thread-safe operations.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Thread-safety is not enabled (faster)
+ *    "1"       - Thread-safety is enabled
+ *
+ *  By default the Direct3D device is created with thread-safety disabled.
+ */
+#define SDL_HINT_RENDER_DIRECT3D_THREADSAFE "SDL_RENDER_DIRECT3D_THREADSAFE"
+
+/**
+ *  \brief  A variable controlling whether to enable Direct3D 11+'s Debug Layer.
+ *
+ *  This variable does not have any effect on the Direct3D 9 based renderer.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Disable Debug Layer use
+ *    "1"       - Enable Debug Layer use
+ *
+ *  By default, SDL does not use Direct3D Debug Layer.
+ */
+#define SDL_HINT_RENDER_DIRECT3D11_DEBUG    "SDL_RENDER_DIRECT3D11_DEBUG"
+
+/**
+ *  \brief  A variable controlling the scaling policy for SDL_RenderSetLogicalSize.
+ *
+ *  This variable can be set to the following values:
+ *    "0" or "letterbox" - Uses letterbox/sidebars to fit the entire rendering on screen
+ *    "1" or "overscan"  - Will zoom the rendering so it fills the entire screen, allowing edges to be drawn offscreen
+ *
+ *  By default letterbox is used
+ */
+#define SDL_HINT_RENDER_LOGICAL_SIZE_MODE       "SDL_RENDER_LOGICAL_SIZE_MODE"
+
+/**
+ *  \brief  A variable controlling the scaling quality
+ *
+ *  This variable can be set to the following values:
+ *    "0" or "nearest" - Nearest pixel sampling
+ *    "1" or "linear"  - Linear filtering (supported by OpenGL and Direct3D)
+ *    "2" or "best"    - Currently this is the same as "linear"
+ *
+ *  By default nearest pixel sampling is used
+ */
+#define SDL_HINT_RENDER_SCALE_QUALITY       "SDL_RENDER_SCALE_QUALITY"
+
+/**
+ *  \brief  A variable controlling whether updates to the SDL screen surface should be synchronized with the vertical refresh, to avoid tearing.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Disable vsync
+ *    "1"       - Enable vsync
+ *
+ *  By default SDL does not sync screen surface updates with vertical refresh.
+ */
+#define SDL_HINT_RENDER_VSYNC               "SDL_RENDER_VSYNC"
+
+/**
+ *  \brief  A variable controlling whether the screensaver is enabled. 
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Disable screensaver
+ *    "1"       - Enable screensaver
+ *
+ *  By default SDL will disable the screensaver.
+ */
+#define SDL_HINT_VIDEO_ALLOW_SCREENSAVER    "SDL_VIDEO_ALLOW_SCREENSAVER"
+
+/**
+ *  \brief  A variable controlling whether the X11 VidMode extension should be used.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Disable XVidMode
+ *    "1"       - Enable XVidMode
+ *
+ *  By default SDL will use XVidMode if it is available.
+ */
+#define SDL_HINT_VIDEO_X11_XVIDMODE         "SDL_VIDEO_X11_XVIDMODE"
+
+/**
+ *  \brief  A variable controlling whether the X11 Xinerama extension should be used.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Disable Xinerama
+ *    "1"       - Enable Xinerama
+ *
+ *  By default SDL will use Xinerama if it is available.
+ */
+#define SDL_HINT_VIDEO_X11_XINERAMA         "SDL_VIDEO_X11_XINERAMA"
+
+/**
+ *  \brief  A variable controlling whether the X11 XRandR extension should be used.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Disable XRandR
+ *    "1"       - Enable XRandR
+ *
+ *  By default SDL will not use XRandR because of window manager issues.
+ */
+#define SDL_HINT_VIDEO_X11_XRANDR           "SDL_VIDEO_X11_XRANDR"
+
+/**
+ *  \brief  A variable controlling whether the X11 _NET_WM_PING protocol should be supported.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Disable _NET_WM_PING
+ *    "1"       - Enable _NET_WM_PING
+ *
+ *  By default SDL will use _NET_WM_PING, but for applications that know they
+ *  will not always be able to respond to ping requests in a timely manner they can
+ *  turn it off to avoid the window manager thinking the app is hung.
+ *  The hint is checked in CreateWindow.
+ */
+#define SDL_HINT_VIDEO_X11_NET_WM_PING      "SDL_VIDEO_X11_NET_WM_PING"
+
+/**
+ * \brief A variable controlling whether the X11 _NET_WM_BYPASS_COMPOSITOR hint should be used.
+ * 
+ * This variable can be set to the following values:
+ * "0" - Disable _NET_WM_BYPASS_COMPOSITOR
+ * "1" - Enable _NET_WM_BYPASS_COMPOSITOR
+ * 
+ * By default SDL will use _NET_WM_BYPASS_COMPOSITOR
+ * 
+ */
+#define SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR "SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR"
+
+/**
+ *  \brief  A variable controlling whether the window frame and title bar are interactive when the cursor is hidden 
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - The window frame is not interactive when the cursor is hidden (no move, resize, etc)
+ *    "1"       - The window frame is interactive when the cursor is hidden
+ *
+ *  By default SDL will allow interaction with the window frame when the cursor is hidden
+ */
+#define SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN    "SDL_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN"
+
+/**
+ * \brief A variable to specify custom icon resource id from RC file on Windows platform 
+ */
+#define SDL_HINT_WINDOWS_INTRESOURCE_ICON       "SDL_WINDOWS_INTRESOURCE_ICON"
+#define SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL "SDL_WINDOWS_INTRESOURCE_ICON_SMALL"
+
+/**
+ *  \brief  A variable controlling whether the windows message loop is processed by SDL 
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - The window message loop is not run
+ *    "1"       - The window message loop is processed in SDL_PumpEvents()
+ *
+ *  By default SDL will process the windows message loop
+ */
+#define SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP "SDL_WINDOWS_ENABLE_MESSAGELOOP"
+
+/**
+ *  \brief  A variable controlling whether grabbing input grabs the keyboard
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Grab will affect only the mouse
+ *    "1"       - Grab will affect mouse and keyboard
+ *
+ *  By default SDL will not grab the keyboard so system shortcuts still work.
+ */
+#define SDL_HINT_GRAB_KEYBOARD              "SDL_GRAB_KEYBOARD"
+
+/**
+ *  \brief  A variable setting the speed scale for mouse motion, in floating point, when the mouse is not in relative mode
+ */
+#define SDL_HINT_MOUSE_NORMAL_SPEED_SCALE    "SDL_MOUSE_NORMAL_SPEED_SCALE"
+
+/**
+ *  \brief  A variable setting the scale for mouse motion, in floating point, when the mouse is in relative mode
+ */
+#define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE    "SDL_MOUSE_RELATIVE_SPEED_SCALE"
+
+/**
+ *  \brief  A variable controlling whether relative mouse mode is implemented using mouse warping
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Relative mouse mode uses raw input
+ *    "1"       - Relative mouse mode uses mouse warping
+ *
+ *  By default SDL will use raw input for relative mouse mode
+ */
+#define SDL_HINT_MOUSE_RELATIVE_MODE_WARP    "SDL_MOUSE_RELATIVE_MODE_WARP"
+
+/**
+ *  \brief Allow mouse click events when clicking to focus an SDL window
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Ignore mouse clicks that activate a window
+ *    "1"       - Generate events for mouse clicks that activate a window
+ *
+ *  By default SDL will ignore mouse clicks that activate a window
+ */
+#define SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH "SDL_MOUSE_FOCUS_CLICKTHROUGH"
+
+/**
+ *  \brief  A variable controlling whether touch events should generate synthetic mouse events
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Touch events will not generate mouse events
+ *    "1"       - Touch events will generate mouse events
+ *
+ *  By default SDL will generate mouse events for touch events
+ */
+#define SDL_HINT_TOUCH_MOUSE_EVENTS    "SDL_TOUCH_MOUSE_EVENTS"
+
+/**
+ *  \brief Minimize your SDL_Window if it loses key focus when in fullscreen mode. Defaults to true.
+ *
+ */
+#define SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS   "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"
+
+/**
+ *  \brief  A variable controlling whether the idle timer is disabled on iOS.
+ *
+ *  When an iOS app does not receive touches for some time, the screen is
+ *  dimmed automatically. For games where the accelerometer is the only input
+ *  this is problematic. This functionality can be disabled by setting this
+ *  hint.
+ *
+ *  As of SDL 2.0.4, SDL_EnableScreenSaver() and SDL_DisableScreenSaver()
+ *  accomplish the same thing on iOS. They should be preferred over this hint.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Enable idle timer
+ *    "1"       - Disable idle timer
+ */
+#define SDL_HINT_IDLE_TIMER_DISABLED "SDL_IOS_IDLE_TIMER_DISABLED"
+
+/**
+ *  \brief  A variable controlling which orientations are allowed on iOS.
+ *
+ *  In some circumstances it is necessary to be able to explicitly control
+ *  which UI orientations are allowed.
+ *
+ *  This variable is a space delimited list of the following values:
+ *    "LandscapeLeft", "LandscapeRight", "Portrait" "PortraitUpsideDown"
+ */
+#define SDL_HINT_ORIENTATIONS "SDL_IOS_ORIENTATIONS"
+
+/**
+ *  \brief  A variable controlling whether controllers used with the Apple TV
+ *  generate UI events.
+ *
+ * When UI events are generated by controller input, the app will be
+ * backgrounded when the Apple TV remote's menu button is pressed, and when the
+ * pause or B buttons on gamepads are pressed.
+ *
+ * More information about properly making use of controllers for the Apple TV
+ * can be found here:
+ * https://developer.apple.com/tvos/human-interface-guidelines/remote-and-controllers/
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Controller input does not generate UI events (the default).
+ *    "1"       - Controller input generates UI events.
+ */
+#define SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS "SDL_APPLE_TV_CONTROLLER_UI_EVENTS"
+
+/**
+ * \brief  A variable controlling whether the Apple TV remote's joystick axes
+ *         will automatically match the rotation of the remote.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Remote orientation does not affect joystick axes (the default).
+ *    "1"       - Joystick axes are based on the orientation of the remote.
+ */
+#define SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION "SDL_APPLE_TV_REMOTE_ALLOW_ROTATION"
+
+/**
+ * \brief  A variable controlling whether the home indicator bar on iPhone X
+ *         should be hidden.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - The indicator bar is not hidden (default for windowed applications)
+ *    "1"       - The indicator bar is hidden and is shown when the screen is touched (useful for movie playback applications)
+ *    "2"       - The indicator bar is dim and the first swipe makes it visible and the second swipe performs the "home" action (default for fullscreen applications)
+ */
+#define SDL_HINT_IOS_HIDE_HOME_INDICATOR "SDL_IOS_HIDE_HOME_INDICATOR"
+
+/**
+ *  \brief  A variable controlling whether the Android / iOS built-in
+ *  accelerometer should be listed as a joystick device.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - The accelerometer is not listed as a joystick
+ *    "1"       - The accelerometer is available as a 3 axis joystick (the default).
+ */
+#define SDL_HINT_ACCELEROMETER_AS_JOYSTICK "SDL_ACCELEROMETER_AS_JOYSTICK"
+
+/**
+ *  \brief  A variable controlling whether the Android / tvOS remotes
+ *  should be listed as joystick devices, instead of sending keyboard events.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Remotes send enter/escape/arrow key events
+ *    "1"       - Remotes are available as 2 axis, 2 button joysticks (the default).
+ */
+#define SDL_HINT_TV_REMOTE_AS_JOYSTICK "SDL_TV_REMOTE_AS_JOYSTICK"
+
+/**
+ *  \brief  A variable that lets you disable the detection and use of Xinput gamepad devices
+ *
+ *  The variable can be set to the following values:
+ *    "0"       - Disable XInput detection (only uses direct input)
+ *    "1"       - Enable XInput detection (the default)
+ */
+#define SDL_HINT_XINPUT_ENABLED "SDL_XINPUT_ENABLED"
+
+/**
+ *  \brief  A variable that causes SDL to use the old axis and button mapping for XInput devices.
+ *
+ *  This hint is for backwards compatibility only and will be removed in SDL 2.1
+ *
+ *  The default value is "0".  This hint must be set before SDL_Init()
+ */
+#define SDL_HINT_XINPUT_USE_OLD_JOYSTICK_MAPPING "SDL_XINPUT_USE_OLD_JOYSTICK_MAPPING"
+
+/**
+ *  \brief  A variable that lets you manually hint extra gamecontroller db entries.
+ *
+ *  The variable should be newline delimited rows of gamecontroller config data, see SDL_gamecontroller.h
+ *
+ *  This hint must be set before calling SDL_Init(SDL_INIT_GAMECONTROLLER)
+ *  You can update mappings after the system is initialized with SDL_GameControllerMappingForGUID() and SDL_GameControllerAddMapping()
+ */
+#define SDL_HINT_GAMECONTROLLERCONFIG "SDL_GAMECONTROLLERCONFIG"
+
+/**
+ *  \brief  A variable containing a list of devices to skip when scanning for game controllers.
+ *
+ *  The format of the string is a comma separated list of USB VID/PID pairs
+ *  in hexadecimal form, e.g.
+ *
+ *      0xAAAA/0xBBBB,0xCCCC/0xDDDD
+ *
+ *  The variable can also take the form of @file, in which case the named
+ *  file will be loaded and interpreted as the value of the variable.
+ */
+#define SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES "SDL_GAMECONTROLLER_IGNORE_DEVICES"
+
+/**
+ *  \brief  If set, all devices will be skipped when scanning for game controllers except for the ones listed in this variable.
+ *
+ *  The format of the string is a comma separated list of USB VID/PID pairs
+ *  in hexadecimal form, e.g.
+ *
+ *      0xAAAA/0xBBBB,0xCCCC/0xDDDD
+ *
+ *  The variable can also take the form of @file, in which case the named
+ *  file will be loaded and interpreted as the value of the variable.
+ */
+#define SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT "SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT"
+
+/**
+ *  \brief  A variable that lets you enable joystick (and gamecontroller) events even when your app is in the background.
+ *
+ *  The variable can be set to the following values:
+ *    "0"       - Disable joystick & gamecontroller input events when the
+ *                application is in the background.
+ *    "1"       - Enable joystick & gamecontroller input events when the
+ *                application is in the background.
+ *
+ *  The default value is "0".  This hint may be set at any time.
+ */
+#define SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS "SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS"
+
+/**
+ *  \brief If set to "0" then never set the top most bit on a SDL Window, even if the video mode expects it.
+ *      This is a debugging aid for developers and not expected to be used by end users. The default is "1"
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - don't allow topmost
+ *    "1"       - allow topmost
+ */
+#define SDL_HINT_ALLOW_TOPMOST "SDL_ALLOW_TOPMOST"
+
+/**
+ *  \brief A variable that controls the timer resolution, in milliseconds.
+ *
+ *  The higher resolution the timer, the more frequently the CPU services
+ *  timer interrupts, and the more precise delays are, but this takes up
+ *  power and CPU time.  This hint is only used on Windows 7 and earlier.
+ *
+ *  See this blog post for more information:
+ *  http://randomascii.wordpress.com/2013/07/08/windows-timer-resolution-megawatts-wasted/
+ *
+ *  If this variable is set to "0", the system timer resolution is not set.
+ *
+ *  The default value is "1". This hint may be set at any time.
+ */
+#define SDL_HINT_TIMER_RESOLUTION "SDL_TIMER_RESOLUTION"
+
+
+/**
+ *  \brief  A variable describing the content orientation on QtWayland-based platforms.
+ *
+ *  On QtWayland platforms, windows are rotated client-side to allow for custom
+ *  transitions. In order to correctly position overlays (e.g. volume bar) and
+ *  gestures (e.g. events view, close/minimize gestures), the system needs to
+ *  know in which orientation the application is currently drawing its contents.
+ *
+ *  This does not cause the window to be rotated or resized, the application
+ *  needs to take care of drawing the content in the right orientation (the
+ *  framebuffer is always in portrait mode).
+ *
+ *  This variable can be one of the following values:
+ *    "primary" (default), "portrait", "landscape", "inverted-portrait", "inverted-landscape"
+ */
+#define SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION "SDL_QTWAYLAND_CONTENT_ORIENTATION"
+
+/**
+ *  \brief  Flags to set on QtWayland windows to integrate with the native window manager.
+ *
+ *  On QtWayland platforms, this hint controls the flags to set on the windows.
+ *  For example, on Sailfish OS "OverridesSystemGestures" disables swipe gestures.
+ *
+ *  This variable is a space-separated list of the following values (empty = no flags):
+ *    "OverridesSystemGestures", "StaysOnTop", "BypassWindowManager"
+ */
+#define SDL_HINT_QTWAYLAND_WINDOW_FLAGS "SDL_QTWAYLAND_WINDOW_FLAGS"
+
+/**
+*  \brief  A string specifying SDL's threads stack size in bytes or "0" for the backend's default size
+*
+*  Use this hint in case you need to set SDL's threads stack size to other than the default.
+*  This is specially useful if you build SDL against a non glibc libc library (such as musl) which
+*  provides a relatively small default thread stack size (a few kilobytes versus the default 8MB glibc uses).
+*  Support for this hint is currently available only in the pthread, Windows, and PSP backend.
+*/
+#define SDL_HINT_THREAD_STACK_SIZE              "SDL_THREAD_STACK_SIZE"
+
+/**
+ *  \brief If set to 1, then do not allow high-DPI windows. ("Retina" on Mac and iOS)
+ */
+#define SDL_HINT_VIDEO_HIGHDPI_DISABLED "SDL_VIDEO_HIGHDPI_DISABLED"
+
+/**
+ *  \brief A variable that determines whether ctrl+click should generate a right-click event on Mac
+ *
+ *  If present, holding ctrl while left clicking will generate a right click
+ *  event when on Mac.
+ */
+#define SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK "SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK"
+
+/**
+*  \brief  A variable specifying which shader compiler to preload when using the Chrome ANGLE binaries
+*
+*  SDL has EGL and OpenGL ES2 support on Windows via the ANGLE project. It
+*  can use two different sets of binaries, those compiled by the user from source
+*  or those provided by the Chrome browser. In the later case, these binaries require
+*  that SDL loads a DLL providing the shader compiler.
+*
+*  This variable can be set to the following values:
+*    "d3dcompiler_46.dll" - default, best for Vista or later.
+*    "d3dcompiler_43.dll" - for XP support.
+*    "none" - do not load any library, useful if you compiled ANGLE from source and included the compiler in your binaries.
+*
+*/
+#define SDL_HINT_VIDEO_WIN_D3DCOMPILER              "SDL_VIDEO_WIN_D3DCOMPILER"
+
+/**
+*  \brief  A variable that is the address of another SDL_Window* (as a hex string formatted with "%p").
+*  
+*  If this hint is set before SDL_CreateWindowFrom() and the SDL_Window* it is set to has
+*  SDL_WINDOW_OPENGL set (and running on WGL only, currently), then two things will occur on the newly 
+*  created SDL_Window:
+*
+*  1. Its pixel format will be set to the same pixel format as this SDL_Window.  This is
+*  needed for example when sharing an OpenGL context across multiple windows.
+*
+*  2. The flag SDL_WINDOW_OPENGL will be set on the new window so it can be used for
+*  OpenGL rendering.
+*
+*  This variable can be set to the following values:
+*    The address (as a string "%p") of the SDL_Window* that new windows created with SDL_CreateWindowFrom() should
+*    share a pixel format with.
+*/
+#define SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT    "SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT"
+
+/**
+ *  \brief A URL to a WinRT app's privacy policy
+ *
+ *  All network-enabled WinRT apps must make a privacy policy available to its
+ *  users.  On Windows 8, 8.1, and RT, Microsoft mandates that this policy be
+ *  be available in the Windows Settings charm, as accessed from within the app.
+ *  SDL provides code to add a URL-based link there, which can point to the app's
+ *  privacy policy.
+ *
+ *  To setup a URL to an app's privacy policy, set SDL_HINT_WINRT_PRIVACY_POLICY_URL
+ *  before calling any SDL_Init() functions.  The contents of the hint should
+ *  be a valid URL.  For example, "http://www.example.com".
+ *
+ *  The default value is "", which will prevent SDL from adding a privacy policy
+ *  link to the Settings charm.  This hint should only be set during app init.
+ *
+ *  The label text of an app's "Privacy Policy" link may be customized via another
+ *  hint, SDL_HINT_WINRT_PRIVACY_POLICY_LABEL.
+ *
+ *  Please note that on Windows Phone, Microsoft does not provide standard UI
+ *  for displaying a privacy policy link, and as such, SDL_HINT_WINRT_PRIVACY_POLICY_URL
+ *  will not get used on that platform.  Network-enabled phone apps should display
+ *  their privacy policy through some other, in-app means.
+ */
+#define SDL_HINT_WINRT_PRIVACY_POLICY_URL "SDL_WINRT_PRIVACY_POLICY_URL"
+
+/** \brief Label text for a WinRT app's privacy policy link
+ *
+ *  Network-enabled WinRT apps must include a privacy policy.  On Windows 8, 8.1, and RT,
+ *  Microsoft mandates that this policy be available via the Windows Settings charm.
+ *  SDL provides code to add a link there, with its label text being set via the
+ *  optional hint, SDL_HINT_WINRT_PRIVACY_POLICY_LABEL.
+ *
+ *  Please note that a privacy policy's contents are not set via this hint.  A separate
+ *  hint, SDL_HINT_WINRT_PRIVACY_POLICY_URL, is used to link to the actual text of the
+ *  policy.
+ *
+ *  The contents of this hint should be encoded as a UTF8 string.
+ *
+ *  The default value is "Privacy Policy".  This hint should only be set during app
+ *  initialization, preferably before any calls to SDL_Init().
+ *
+ *  For additional information on linking to a privacy policy, see the documentation for
+ *  SDL_HINT_WINRT_PRIVACY_POLICY_URL.
+ */
+#define SDL_HINT_WINRT_PRIVACY_POLICY_LABEL "SDL_WINRT_PRIVACY_POLICY_LABEL"
+
+/** \brief Allows back-button-press events on Windows Phone to be marked as handled
+ *
+ *  Windows Phone devices typically feature a Back button.  When pressed,
+ *  the OS will emit back-button-press events, which apps are expected to
+ *  handle in an appropriate manner.  If apps do not explicitly mark these
+ *  events as 'Handled', then the OS will invoke its default behavior for
+ *  unhandled back-button-press events, which on Windows Phone 8 and 8.1 is to
+ *  terminate the app (and attempt to switch to the previous app, or to the
+ *  device's home screen).
+ *
+ *  Setting the SDL_HINT_WINRT_HANDLE_BACK_BUTTON hint to "1" will cause SDL
+ *  to mark back-button-press events as Handled, if and when one is sent to
+ *  the app.
+ *
+ *  Internally, Windows Phone sends back button events as parameters to
+ *  special back-button-press callback functions.  Apps that need to respond
+ *  to back-button-press events are expected to register one or more
+ *  callback functions for such, shortly after being launched (during the
+ *  app's initialization phase).  After the back button is pressed, the OS
+ *  will invoke these callbacks.  If the app's callback(s) do not explicitly
+ *  mark the event as handled by the time they return, or if the app never
+ *  registers one of these callback, the OS will consider the event
+ *  un-handled, and it will apply its default back button behavior (terminate
+ *  the app).
+ *
+ *  SDL registers its own back-button-press callback with the Windows Phone
+ *  OS.  This callback will emit a pair of SDL key-press events (SDL_KEYDOWN
+ *  and SDL_KEYUP), each with a scancode of SDL_SCANCODE_AC_BACK, after which
+ *  it will check the contents of the hint, SDL_HINT_WINRT_HANDLE_BACK_BUTTON.
+ *  If the hint's value is set to "1", the back button event's Handled
+ *  property will get set to 'true'.  If the hint's value is set to something
+ *  else, or if it is unset, SDL will leave the event's Handled property
+ *  alone.  (By default, the OS sets this property to 'false', to note.)
+ *
+ *  SDL apps can either set SDL_HINT_WINRT_HANDLE_BACK_BUTTON well before a
+ *  back button is pressed, or can set it in direct-response to a back button
+ *  being pressed.
+ *
+ *  In order to get notified when a back button is pressed, SDL apps should
+ *  register a callback function with SDL_AddEventWatch(), and have it listen
+ *  for SDL_KEYDOWN events that have a scancode of SDL_SCANCODE_AC_BACK.
+ *  (Alternatively, SDL_KEYUP events can be listened-for.  Listening for
+ *  either event type is suitable.)  Any value of SDL_HINT_WINRT_HANDLE_BACK_BUTTON
+ *  set by such a callback, will be applied to the OS' current
+ *  back-button-press event.
+ *
+ *  More details on back button behavior in Windows Phone apps can be found
+ *  at the following page, on Microsoft's developer site:
+ *  http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj247550(v=vs.105).aspx
+ */
+#define SDL_HINT_WINRT_HANDLE_BACK_BUTTON "SDL_WINRT_HANDLE_BACK_BUTTON"
+
+/**
+ *  \brief  A variable that dictates policy for fullscreen Spaces on Mac OS X.
+ *
+ *  This hint only applies to Mac OS X.
+ *
+ *  The variable can be set to the following values:
+ *    "0"       - Disable Spaces support (FULLSCREEN_DESKTOP won't use them and
+ *                SDL_WINDOW_RESIZABLE windows won't offer the "fullscreen"
+ *                button on their titlebars).
+ *    "1"       - Enable Spaces support (FULLSCREEN_DESKTOP will use them and
+ *                SDL_WINDOW_RESIZABLE windows will offer the "fullscreen"
+ *                button on their titlebars).
+ *
+ *  The default value is "1". Spaces are disabled regardless of this hint if
+ *   the OS isn't at least Mac OS X Lion (10.7). This hint must be set before
+ *   any windows are created.
+ */
+#define SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES    "SDL_VIDEO_MAC_FULLSCREEN_SPACES"
+
+/**
+*  \brief  When set don't force the SDL app to become a foreground process
+*
+*  This hint only applies to Mac OS X.
+*
+*/
+#define SDL_HINT_MAC_BACKGROUND_APP    "SDL_MAC_BACKGROUND_APP"
+
+/**
+ * \brief Android APK expansion main file version. Should be a string number like "1", "2" etc.
+ *
+ * Must be set together with SDL_HINT_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION.
+ *
+ * If both hints were set then SDL_RWFromFile() will look into expansion files
+ * after a given relative path was not found in the internal storage and assets.
+ *
+ * By default this hint is not set and the APK expansion files are not searched.
+ */
+#define SDL_HINT_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION "SDL_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION"
+ 
+/**
+ * \brief Android APK expansion patch file version. Should be a string number like "1", "2" etc.
+ *
+ * Must be set together with SDL_HINT_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION.
+ *
+ * If both hints were set then SDL_RWFromFile() will look into expansion files
+ * after a given relative path was not found in the internal storage and assets.
+ *
+ * By default this hint is not set and the APK expansion files are not searched.
+ */
+#define SDL_HINT_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION "SDL_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION"
+
+/**
+ * \brief A variable to control whether certain IMEs should handle text editing internally instead of sending SDL_TEXTEDITING events.
+ *
+ * The variable can be set to the following values:
+ *   "0"       - SDL_TEXTEDITING events are sent, and it is the application's
+ *               responsibility to render the text from these events and 
+ *               differentiate it somehow from committed text. (default)
+ *   "1"       - If supported by the IME then SDL_TEXTEDITING events are not sent, 
+ *               and text that is being composed will be rendered in its own UI.
+ */
+#define SDL_HINT_IME_INTERNAL_EDITING "SDL_IME_INTERNAL_EDITING"
+
+ /**
+ * \brief A variable to control whether mouse and touch events are to be treated together or separately
+ *
+ * The variable can be set to the following values:
+ *   "0"       - Mouse events will be handled as touch events, and touch will raise fake mouse
+ *               events. This is the behaviour of SDL <= 2.0.3. (default)
+ *   "1"       - Mouse events will be handled separately from pure touch events.
+ *
+ * The value of this hint is used at runtime, so it can be changed at any time.
+ */
+#define SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH "SDL_ANDROID_SEPARATE_MOUSE_AND_TOUCH"
+
+ /**
+ * \brief A variable to control whether the return key on the soft keyboard
+ *        should hide the soft keyboard on Android and iOS.
+ *
+ * The variable can be set to the following values:
+ *   "0"       - The return key will be handled as a key event. This is the behaviour of SDL <= 2.0.3. (default)
+ *   "1"       - The return key will hide the keyboard.
+ *
+ * The value of this hint is used at runtime, so it can be changed at any time.
+ */
+#define SDL_HINT_RETURN_KEY_HIDES_IME "SDL_RETURN_KEY_HIDES_IME"
+
+/**
+ *  \brief override the binding element for keyboard inputs for Emscripten builds
+ *
+ * This hint only applies to the emscripten platform
+ *
+ * The variable can be one of
+ *    "#window"      - The javascript window object (this is the default)
+ *    "#document"    - The javascript document object
+ *    "#screen"      - the javascript window.screen object
+ *    "#canvas"      - the WebGL canvas element
+ *    any other string without a leading # sign applies to the element on the page with that ID.
+ */
+#define SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT   "SDL_EMSCRIPTEN_KEYBOARD_ELEMENT"
+
+/**
+ *  \brief Tell SDL not to catch the SIGINT or SIGTERM signals.
+ *
+ * This hint only applies to Unix-like platforms.
+ *
+ * The variable can be set to the following values:
+ *   "0"       - SDL will install a SIGINT and SIGTERM handler, and when it
+ *               catches a signal, convert it into an SDL_QUIT event.
+ *   "1"       - SDL will not install a signal handler at all.
+ */
+#define SDL_HINT_NO_SIGNAL_HANDLERS   "SDL_NO_SIGNAL_HANDLERS"
+
+/**
+ *  \brief Tell SDL not to generate window-close events for Alt+F4 on Windows.
+ *
+ * The variable can be set to the following values:
+ *   "0"       - SDL will generate a window-close event when it sees Alt+F4.
+ *   "1"       - SDL will only do normal key handling for Alt+F4.
+ */
+#define SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4 "SDL_WINDOWS_NO_CLOSE_ON_ALT_F4"
+
+/**
+ *  \brief Prevent SDL from using version 4 of the bitmap header when saving BMPs.
+ *
+ * The bitmap header version 4 is required for proper alpha channel support and
+ * SDL will use it when required. Should this not be desired, this hint can
+ * force the use of the 40 byte header version which is supported everywhere.
+ *
+ * The variable can be set to the following values:
+ *   "0"       - Surfaces with a colorkey or an alpha channel are saved to a
+ *               32-bit BMP file with an alpha mask. SDL will use the bitmap
+ *               header version 4 and set the alpha mask accordingly.
+ *   "1"       - Surfaces with a colorkey or an alpha channel are saved to a
+ *               32-bit BMP file without an alpha mask. The alpha channel data
+ *               will be in the file, but applications are going to ignore it.
+ *
+ * The default value is "0".
+ */
+#define SDL_HINT_BMP_SAVE_LEGACY_FORMAT "SDL_BMP_SAVE_LEGACY_FORMAT"
+
+/**
+ * \brief Tell SDL not to name threads on Windows with the 0x406D1388 Exception.
+ *        The 0x406D1388 Exception is a trick used to inform Visual Studio of a
+ *        thread's name, but it tends to cause problems with other debuggers,
+ *        and the .NET runtime. Note that SDL 2.0.6 and later will still use
+ *        the (safer) SetThreadDescription API, introduced in the Windows 10
+ *        Creators Update, if available.
+ *
+ * The variable can be set to the following values:
+ *   "0"       - SDL will raise the 0x406D1388 Exception to name threads.
+ *               This is the default behavior of SDL <= 2.0.4.
+ *   "1"       - SDL will not raise this exception, and threads will be unnamed. (default)
+ *               This is necessary with .NET languages or debuggers that aren't Visual Studio.
+ */
+#define SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING "SDL_WINDOWS_DISABLE_THREAD_NAMING"
+
+/**
+ * \brief Tell SDL which Dispmanx layer to use on a Raspberry PI
+ *
+ * Also known as Z-order. The variable can take a negative or positive value.
+ * The default is 10000.
+ */
+#define SDL_HINT_RPI_VIDEO_LAYER           "SDL_RPI_VIDEO_LAYER"
+
+/**
+ * \brief Tell the video driver that we only want a double buffer.
+ *
+ * By default, most lowlevel 2D APIs will use a triple buffer scheme that 
+ * wastes no CPU time on waiting for vsync after issuing a flip, but
+ * introduces a frame of latency. On the other hand, using a double buffer
+ * scheme instead is recommended for cases where low latency is an important
+ * factor because we save a whole frame of latency.
+ * We do so by waiting for vsync immediately after issuing a flip, usually just
+ * after eglSwapBuffers call in the backend's *_SwapWindow function.
+ *
+ * Since it's driver-specific, it's only supported where possible and
+ * implemented. Currently supported the following drivers:
+ * - KMSDRM (kmsdrm)
+ * - Raspberry Pi (raspberrypi)
+ */
+#define SDL_HINT_VIDEO_DOUBLE_BUFFER      "SDL_VIDEO_DOUBLE_BUFFER"
+
+/**
+ *  \brief  A variable controlling what driver to use for OpenGL ES contexts.
+ *
+ *  On some platforms, currently Windows and X11, OpenGL drivers may support
+ *  creating contexts with an OpenGL ES profile. By default SDL uses these
+ *  profiles, when available, otherwise it attempts to load an OpenGL ES
+ *  library, e.g. that provided by the ANGLE project. This variable controls
+ *  whether SDL follows this default behaviour or will always load an
+ *  OpenGL ES library.
+ *
+ *  Circumstances where this is useful include
+ *  - Testing an app with a particular OpenGL ES implementation, e.g ANGLE,
+ *    or emulator, e.g. those from ARM, Imagination or Qualcomm.
+ *  - Resolving OpenGL ES function addresses at link time by linking with
+ *    the OpenGL ES library instead of querying them at run time with
+ *    SDL_GL_GetProcAddress().
+ *
+ *  Caution: for an application to work with the default behaviour across
+ *  different OpenGL drivers it must query the OpenGL ES function
+ *  addresses at run time using SDL_GL_GetProcAddress().
+ *
+ *  This variable is ignored on most platforms because OpenGL ES is native
+ *  or not supported.
+ *
+ *  This variable can be set to the following values:
+ *    "0"       - Use ES profile of OpenGL, if available. (Default when not set.)
+ *    "1"       - Load OpenGL ES library using the default library names.
+ *
+ */
+#define SDL_HINT_OPENGL_ES_DRIVER   "SDL_OPENGL_ES_DRIVER"
+
+/**
+ *  \brief  A variable controlling speed/quality tradeoff of audio resampling.
+ *
+ *  If available, SDL can use libsamplerate ( http://www.mega-nerd.com/SRC/ )
+ *  to handle audio resampling. There are different resampling modes available
+ *  that produce different levels of quality, using more CPU.
+ *
+ *  If this hint isn't specified to a valid setting, or libsamplerate isn't
+ *  available, SDL will use the default, internal resampling algorithm.
+ *
+ *  Note that this is currently only applicable to resampling audio that is
+ *  being written to a device for playback or audio being read from a device
+ *  for capture. SDL_AudioCVT always uses the default resampler (although this
+ *  might change for SDL 2.1).
+ *
+ *  This hint is currently only checked at audio subsystem initialization.
+ *
+ *  This variable can be set to the following values:
+ *
+ *    "0" or "default" - Use SDL's internal resampling (Default when not set - low quality, fast)
+ *    "1" or "fast"    - Use fast, slightly higher quality resampling, if available
+ *    "2" or "medium"  - Use medium quality resampling, if available
+ *    "3" or "best"    - Use high quality resampling, if available
+ */
+#define SDL_HINT_AUDIO_RESAMPLING_MODE   "SDL_AUDIO_RESAMPLING_MODE"
+
+/**
+ *  \brief  A variable controlling the audio category on iOS and Mac OS X
+ *
+ *  This variable can be set to the following values:
+ *
+ *    "ambient"     - Use the AVAudioSessionCategoryAmbient audio category, will be muted by the phone mute switch (default)
+ *    "playback"    - Use the AVAudioSessionCategoryPlayback category
+ *
+ *  For more information, see Apple's documentation:
+ *  https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionCategoriesandModes/AudioSessionCategoriesandModes.html
+ */
+#define SDL_HINT_AUDIO_CATEGORY   "SDL_AUDIO_CATEGORY"
+
+/**
+ *  \brief  An enumeration of hint priorities
+ */
+typedef enum
+{
+    SDL_HINT_DEFAULT,
+    SDL_HINT_NORMAL,
+    SDL_HINT_OVERRIDE
+} SDL_HintPriority;
+
+
+/**
+ *  \brief Set a hint with a specific priority
+ *
+ *  The priority controls the behavior when setting a hint that already
+ *  has a value.  Hints will replace existing hints of their priority and
+ *  lower.  Environment variables are considered to have override priority.
+ *
+ *  \return SDL_TRUE if the hint was set, SDL_FALSE otherwise
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_SetHintWithPriority(const char *name,
+                                                         const char *value,
+                                                         SDL_HintPriority priority);
+
+/**
+ *  \brief Set a hint with normal priority
+ *
+ *  \return SDL_TRUE if the hint was set, SDL_FALSE otherwise
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_SetHint(const char *name,
+                                             const char *value);
+
+/**
+ *  \brief Get a hint
+ *
+ *  \return The string value of a hint variable.
+ */
+extern DECLSPEC const char * SDLCALL SDL_GetHint(const char *name);
+
+/**
+ *  \brief Get a hint
+ *
+ *  \return The boolean value of a hint variable.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_GetHintBoolean(const char *name, SDL_bool default_value);
+
+/**
+ * \brief type definition of the hint callback function.
+ */
+typedef void (SDLCALL *SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);
+
+/**
+ *  \brief Add a function to watch a particular hint
+ *
+ *  \param name The hint to watch
+ *  \param callback The function to call when the hint value changes
+ *  \param userdata A pointer to pass to the callback function
+ */
+extern DECLSPEC void SDLCALL SDL_AddHintCallback(const char *name,
+                                                 SDL_HintCallback callback,
+                                                 void *userdata);
+
+/**
+ *  \brief Remove a function watching a particular hint
+ *
+ *  \param name The hint being watched
+ *  \param callback The function being called when the hint value changes
+ *  \param userdata A pointer being passed to the callback function
+ */
+extern DECLSPEC void SDLCALL SDL_DelHintCallback(const char *name,
+                                                 SDL_HintCallback callback,
+                                                 void *userdata);
+
+/**
+ *  \brief  Clear all hints
+ *
+ *  This function is called during SDL_Quit() to free stored hints.
+ */
+extern DECLSPEC void SDLCALL SDL_ClearHints(void);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_hints_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_joystick.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_joystick.h
new file mode 100644
index 0000000..f67772d
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_joystick.h
@@ -0,0 +1,382 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_joystick.h
+ *
+ *  Include file for SDL joystick event handling
+ *
+ * The term "device_index" identifies currently plugged in joystick devices between 0 and SDL_NumJoysticks(), with the exact joystick
+ *   behind a device_index changing as joysticks are plugged and unplugged.
+ *
+ * The term "instance_id" is the current instantiation of a joystick device in the system, if the joystick is removed and then re-inserted
+ *   then it will get a new instance_id, instance_id's are monotonically increasing identifiers of a joystick plugged in.
+ *
+ * The term JoystickGUID is a stable 128-bit identifier for a joystick device that does not change over time, it identifies class of
+ *   the device (a X360 wired controller for example). This identifier is platform dependent.
+ *
+ *
+ */
+
+#ifndef SDL_joystick_h_
+#define SDL_joystick_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \file SDL_joystick.h
+ *
+ *  In order to use these functions, SDL_Init() must have been called
+ *  with the ::SDL_INIT_JOYSTICK flag.  This causes SDL to scan the system
+ *  for joysticks, and load appropriate drivers.
+ *
+ *  If you would like to receive joystick updates while the application
+ *  is in the background, you should set the following hint before calling
+ *  SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
+ */
+
+/**
+ * The joystick structure used to identify an SDL joystick
+ */
+struct _SDL_Joystick;
+typedef struct _SDL_Joystick SDL_Joystick;
+
+/* A structure that encodes the stable unique id for a joystick device */
+typedef struct {
+    Uint8 data[16];
+} SDL_JoystickGUID;
+
+/**
+ * This is a unique ID for a joystick for the time it is connected to the system,
+ * and is never reused for the lifetime of the application. If the joystick is
+ * disconnected and reconnected, it will get a new ID.
+ *
+ * The ID value starts at 0 and increments from there. The value -1 is an invalid ID.
+ */
+typedef Sint32 SDL_JoystickID;
+
+typedef enum
+{
+    SDL_JOYSTICK_TYPE_UNKNOWN,
+    SDL_JOYSTICK_TYPE_GAMECONTROLLER,
+    SDL_JOYSTICK_TYPE_WHEEL,
+    SDL_JOYSTICK_TYPE_ARCADE_STICK,
+    SDL_JOYSTICK_TYPE_FLIGHT_STICK,
+    SDL_JOYSTICK_TYPE_DANCE_PAD,
+    SDL_JOYSTICK_TYPE_GUITAR,
+    SDL_JOYSTICK_TYPE_DRUM_KIT,
+    SDL_JOYSTICK_TYPE_ARCADE_PAD,
+    SDL_JOYSTICK_TYPE_THROTTLE
+} SDL_JoystickType;
+
+typedef enum
+{
+    SDL_JOYSTICK_POWER_UNKNOWN = -1,
+    SDL_JOYSTICK_POWER_EMPTY,
+    SDL_JOYSTICK_POWER_LOW,
+    SDL_JOYSTICK_POWER_MEDIUM,
+    SDL_JOYSTICK_POWER_FULL,
+    SDL_JOYSTICK_POWER_WIRED,
+    SDL_JOYSTICK_POWER_MAX
+} SDL_JoystickPowerLevel;
+
+/* Function prototypes */
+
+/**
+ * Locking for multi-threaded access to the joystick API
+ *
+ * If you are using the joystick API or handling events from multiple threads
+ * you should use these locking functions to protect access to the joysticks.
+ *
+ * In particular, you are guaranteed that the joystick list won't change, so
+ * the API functions that take a joystick index will be valid, and joystick
+ * and game controller events will not be delivered.
+ */
+extern DECLSPEC void SDLCALL SDL_LockJoysticks(void);
+extern DECLSPEC void SDLCALL SDL_UnlockJoysticks(void);
+
+/**
+ *  Count the number of joysticks attached to the system right now
+ */
+extern DECLSPEC int SDLCALL SDL_NumJoysticks(void);
+
+/**
+ *  Get the implementation dependent name of a joystick.
+ *  This can be called before any joysticks are opened.
+ *  If no name can be found, this function returns NULL.
+ */
+extern DECLSPEC const char *SDLCALL SDL_JoystickNameForIndex(int device_index);
+
+/**
+ *  Return the GUID for the joystick at this index
+ *  This can be called before any joysticks are opened.
+ */
+extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetDeviceGUID(int device_index);
+
+/**
+ *  Get the USB vendor ID of a joystick, if available.
+ *  This can be called before any joysticks are opened.
+ *  If the vendor ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceVendor(int device_index);
+
+/**
+ *  Get the USB product ID of a joystick, if available.
+ *  This can be called before any joysticks are opened.
+ *  If the product ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceProduct(int device_index);
+
+/**
+ *  Get the product version of a joystick, if available.
+ *  This can be called before any joysticks are opened.
+ *  If the product version isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceProductVersion(int device_index);
+
+/**
+ *  Get the type of a joystick, if available.
+ *  This can be called before any joysticks are opened.
+ */
+extern DECLSPEC SDL_JoystickType SDLCALL SDL_JoystickGetDeviceType(int device_index);
+
+/**
+ *  Get the instance ID of a joystick.
+ *  This can be called before any joysticks are opened.
+ *  If the index is out of range, this function will return -1.
+ */
+extern DECLSPEC SDL_JoystickID SDLCALL SDL_JoystickGetDeviceInstanceID(int device_index);
+
+/**
+ *  Open a joystick for use.
+ *  The index passed as an argument refers to the N'th joystick on the system.
+ *  This index is not the value which will identify this joystick in future
+ *  joystick events.  The joystick's instance id (::SDL_JoystickID) will be used
+ *  there instead.
+ *
+ *  \return A joystick identifier, or NULL if an error occurred.
+ */
+extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickOpen(int device_index);
+
+/**
+ * Return the SDL_Joystick associated with an instance id.
+ */
+extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickFromInstanceID(SDL_JoystickID joyid);
+
+/**
+ *  Return the name for this currently opened joystick.
+ *  If no name can be found, this function returns NULL.
+ */
+extern DECLSPEC const char *SDLCALL SDL_JoystickName(SDL_Joystick * joystick);
+
+/**
+ *  Return the GUID for this opened joystick
+ */
+extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUID(SDL_Joystick * joystick);
+
+/**
+ *  Get the USB vendor ID of an opened joystick, if available.
+ *  If the vendor ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetVendor(SDL_Joystick * joystick);
+
+/**
+ *  Get the USB product ID of an opened joystick, if available.
+ *  If the product ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetProduct(SDL_Joystick * joystick);
+
+/**
+ *  Get the product version of an opened joystick, if available.
+ *  If the product version isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetProductVersion(SDL_Joystick * joystick);
+
+/**
+ *  Get the type of an opened joystick.
+ */
+extern DECLSPEC SDL_JoystickType SDLCALL SDL_JoystickGetType(SDL_Joystick * joystick);
+
+/**
+ *  Return a string representation for this guid. pszGUID must point to at least 33 bytes
+ *  (32 for the string plus a NULL terminator).
+ */
+extern DECLSPEC void SDLCALL SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, char *pszGUID, int cbGUID);
+
+/**
+ *  Convert a string into a joystick guid
+ */
+extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUIDFromString(const char *pchGUID);
+
+/**
+ *  Returns SDL_TRUE if the joystick has been opened and currently connected, or SDL_FALSE if it has not.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAttached(SDL_Joystick * joystick);
+
+/**
+ *  Get the instance ID of an opened joystick or -1 if the joystick is invalid.
+ */
+extern DECLSPEC SDL_JoystickID SDLCALL SDL_JoystickInstanceID(SDL_Joystick * joystick);
+
+/**
+ *  Get the number of general axis controls on a joystick.
+ */
+extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick * joystick);
+
+/**
+ *  Get the number of trackballs on a joystick.
+ *
+ *  Joystick trackballs have only relative motion events associated
+ *  with them and their state cannot be polled.
+ */
+extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick * joystick);
+
+/**
+ *  Get the number of POV hats on a joystick.
+ */
+extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick * joystick);
+
+/**
+ *  Get the number of buttons on a joystick.
+ */
+extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick * joystick);
+
+/**
+ *  Update the current state of the open joysticks.
+ *
+ *  This is called automatically by the event loop if any joystick
+ *  events are enabled.
+ */
+extern DECLSPEC void SDLCALL SDL_JoystickUpdate(void);
+
+/**
+ *  Enable/disable joystick event polling.
+ *
+ *  If joystick events are disabled, you must call SDL_JoystickUpdate()
+ *  yourself and check the state of the joystick when you want joystick
+ *  information.
+ *
+ *  The state can be one of ::SDL_QUERY, ::SDL_ENABLE or ::SDL_IGNORE.
+ */
+extern DECLSPEC int SDLCALL SDL_JoystickEventState(int state);
+
+#define SDL_JOYSTICK_AXIS_MAX   32767
+#define SDL_JOYSTICK_AXIS_MIN   -32768
+/**
+ *  Get the current state of an axis control on a joystick.
+ *
+ *  The state is a value ranging from -32768 to 32767.
+ *
+ *  The axis indices start at index 0.
+ */
+extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick * joystick,
+                                                   int axis);
+
+/**
+ *  Get the initial state of an axis control on a joystick.
+ *
+ *  The state is a value ranging from -32768 to 32767.
+ *
+ *  The axis indices start at index 0.
+ *
+ *  \return SDL_TRUE if this axis has any initial value, or SDL_FALSE if not.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAxisInitialState(SDL_Joystick * joystick,
+                                                   int axis, Sint16 *state);
+
+/**
+ *  \name Hat positions
+ */
+/* @{ */
+#define SDL_HAT_CENTERED    0x00
+#define SDL_HAT_UP          0x01
+#define SDL_HAT_RIGHT       0x02
+#define SDL_HAT_DOWN        0x04
+#define SDL_HAT_LEFT        0x08
+#define SDL_HAT_RIGHTUP     (SDL_HAT_RIGHT|SDL_HAT_UP)
+#define SDL_HAT_RIGHTDOWN   (SDL_HAT_RIGHT|SDL_HAT_DOWN)
+#define SDL_HAT_LEFTUP      (SDL_HAT_LEFT|SDL_HAT_UP)
+#define SDL_HAT_LEFTDOWN    (SDL_HAT_LEFT|SDL_HAT_DOWN)
+/* @} */
+
+/**
+ *  Get the current state of a POV hat on a joystick.
+ *
+ *  The hat indices start at index 0.
+ *
+ *  \return The return value is one of the following positions:
+ *           - ::SDL_HAT_CENTERED
+ *           - ::SDL_HAT_UP
+ *           - ::SDL_HAT_RIGHT
+ *           - ::SDL_HAT_DOWN
+ *           - ::SDL_HAT_LEFT
+ *           - ::SDL_HAT_RIGHTUP
+ *           - ::SDL_HAT_RIGHTDOWN
+ *           - ::SDL_HAT_LEFTUP
+ *           - ::SDL_HAT_LEFTDOWN
+ */
+extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick * joystick,
+                                                 int hat);
+
+/**
+ *  Get the ball axis change since the last poll.
+ *
+ *  \return 0, or -1 if you passed it invalid parameters.
+ *
+ *  The ball indices start at index 0.
+ */
+extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick * joystick,
+                                                int ball, int *dx, int *dy);
+
+/**
+ *  Get the current state of a button on a joystick.
+ *
+ *  The button indices start at index 0.
+ */
+extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick * joystick,
+                                                    int button);
+
+/**
+ *  Close a joystick previously opened with SDL_JoystickOpen().
+ */
+extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick * joystick);
+
+/**
+ *  Return the battery level of this joystick
+ */
+extern DECLSPEC SDL_JoystickPowerLevel SDLCALL SDL_JoystickCurrentPowerLevel(SDL_Joystick * joystick);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_joystick_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_keyboard.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_keyboard.h
new file mode 100644
index 0000000..8748231
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_keyboard.h
@@ -0,0 +1,217 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_keyboard.h
+ *
+ *  Include file for SDL keyboard event handling
+ */
+
+#ifndef SDL_keyboard_h_
+#define SDL_keyboard_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_keycode.h"
+#include "SDL_video.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \brief The SDL keysym structure, used in key events.
+ *
+ *  \note  If you are looking for translated character input, see the ::SDL_TEXTINPUT event.
+ */
+typedef struct SDL_Keysym
+{
+    SDL_Scancode scancode;      /**< SDL physical key code - see ::SDL_Scancode for details */
+    SDL_Keycode sym;            /**< SDL virtual key code - see ::SDL_Keycode for details */
+    Uint16 mod;                 /**< current key modifiers */
+    Uint32 unused;
+} SDL_Keysym;
+
+/* Function prototypes */
+
+/**
+ *  \brief Get the window which currently has keyboard focus.
+ */
+extern DECLSPEC SDL_Window * SDLCALL SDL_GetKeyboardFocus(void);
+
+/**
+ *  \brief Get a snapshot of the current state of the keyboard.
+ *
+ *  \param numkeys if non-NULL, receives the length of the returned array.
+ *
+ *  \return An array of key states. Indexes into this array are obtained by using ::SDL_Scancode values.
+ *
+ *  \b Example:
+ *  \code
+ *  const Uint8 *state = SDL_GetKeyboardState(NULL);
+ *  if ( state[SDL_SCANCODE_RETURN] )   {
+ *      printf("<RETURN> is pressed.\n");
+ *  }
+ *  \endcode
+ */
+extern DECLSPEC const Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
+
+/**
+ *  \brief Get the current key modifier state for the keyboard.
+ */
+extern DECLSPEC SDL_Keymod SDLCALL SDL_GetModState(void);
+
+/**
+ *  \brief Set the current key modifier state for the keyboard.
+ *
+ *  \note This does not change the keyboard state, only the key modifier flags.
+ */
+extern DECLSPEC void SDLCALL SDL_SetModState(SDL_Keymod modstate);
+
+/**
+ *  \brief Get the key code corresponding to the given scancode according
+ *         to the current keyboard layout.
+ *
+ *  See ::SDL_Keycode for details.
+ *
+ *  \sa SDL_GetKeyName()
+ */
+extern DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromScancode(SDL_Scancode scancode);
+
+/**
+ *  \brief Get the scancode corresponding to the given key code according to the
+ *         current keyboard layout.
+ *
+ *  See ::SDL_Scancode for details.
+ *
+ *  \sa SDL_GetScancodeName()
+ */
+extern DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromKey(SDL_Keycode key);
+
+/**
+ *  \brief Get a human-readable name for a scancode.
+ *
+ *  \return A pointer to the name for the scancode.
+ *          If the scancode doesn't have a name, this function returns
+ *          an empty string ("").
+ *
+ *  \sa SDL_Scancode
+ */
+extern DECLSPEC const char *SDLCALL SDL_GetScancodeName(SDL_Scancode scancode);
+
+/**
+ *  \brief Get a scancode from a human-readable name
+ *
+ *  \return scancode, or SDL_SCANCODE_UNKNOWN if the name wasn't recognized
+ *
+ *  \sa SDL_Scancode
+ */
+extern DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromName(const char *name);
+
+/**
+ *  \brief Get a human-readable name for a key.
+ *
+ *  \return A pointer to a UTF-8 string that stays valid at least until the next
+ *          call to this function. If you need it around any longer, you must
+ *          copy it.  If the key doesn't have a name, this function returns an
+ *          empty string ("").
+ *
+ *  \sa SDL_Keycode
+ */
+extern DECLSPEC const char *SDLCALL SDL_GetKeyName(SDL_Keycode key);
+
+/**
+ *  \brief Get a key code from a human-readable name
+ *
+ *  \return key code, or SDLK_UNKNOWN if the name wasn't recognized
+ *
+ *  \sa SDL_Keycode
+ */
+extern DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromName(const char *name);
+
+/**
+ *  \brief Start accepting Unicode text input events.
+ *         This function will show the on-screen keyboard if supported.
+ *
+ *  \sa SDL_StopTextInput()
+ *  \sa SDL_SetTextInputRect()
+ *  \sa SDL_HasScreenKeyboardSupport()
+ */
+extern DECLSPEC void SDLCALL SDL_StartTextInput(void);
+
+/**
+ *  \brief Return whether or not Unicode text input events are enabled.
+ *
+ *  \sa SDL_StartTextInput()
+ *  \sa SDL_StopTextInput()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_IsTextInputActive(void);
+
+/**
+ *  \brief Stop receiving any text input events.
+ *         This function will hide the on-screen keyboard if supported.
+ *
+ *  \sa SDL_StartTextInput()
+ *  \sa SDL_HasScreenKeyboardSupport()
+ */
+extern DECLSPEC void SDLCALL SDL_StopTextInput(void);
+
+/**
+ *  \brief Set the rectangle used to type Unicode text inputs.
+ *         This is used as a hint for IME and on-screen keyboard placement.
+ *
+ *  \sa SDL_StartTextInput()
+ */
+extern DECLSPEC void SDLCALL SDL_SetTextInputRect(SDL_Rect *rect);
+
+/**
+ *  \brief Returns whether the platform has some screen keyboard support.
+ *
+ *  \return SDL_TRUE if some keyboard support is available else SDL_FALSE.
+ *
+ *  \note Not all screen keyboard functions are supported on all platforms.
+ *
+ *  \sa SDL_IsScreenKeyboardShown()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasScreenKeyboardSupport(void);
+
+/**
+ *  \brief Returns whether the screen keyboard is shown for given window.
+ *
+ *  \param window The window for which screen keyboard should be queried.
+ *
+ *  \return SDL_TRUE if screen keyboard is shown else SDL_FALSE.
+ *
+ *  \sa SDL_HasScreenKeyboardSupport()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_IsScreenKeyboardShown(SDL_Window *window);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_keyboard_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_keycode.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_keycode.h
new file mode 100644
index 0000000..d7d5b1d
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_keycode.h
@@ -0,0 +1,349 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_keycode.h
+ *
+ *  Defines constants which identify keyboard keys and modifiers.
+ */
+
+#ifndef SDL_keycode_h_
+#define SDL_keycode_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_scancode.h"
+
+/**
+ *  \brief The SDL virtual key representation.
+ *
+ *  Values of this type are used to represent keyboard keys using the current
+ *  layout of the keyboard.  These values include Unicode values representing
+ *  the unmodified character that would be generated by pressing the key, or
+ *  an SDLK_* constant for those keys that do not generate characters.
+ *
+ *  A special exception is the number keys at the top of the keyboard which
+ *  always map to SDLK_0...SDLK_9, regardless of layout.
+ */
+typedef Sint32 SDL_Keycode;
+
+#define SDLK_SCANCODE_MASK (1<<30)
+#define SDL_SCANCODE_TO_KEYCODE(X)  (X | SDLK_SCANCODE_MASK)
+
+enum
+{
+    SDLK_UNKNOWN = 0,
+
+    SDLK_RETURN = '\r',
+    SDLK_ESCAPE = '\033',
+    SDLK_BACKSPACE = '\b',
+    SDLK_TAB = '\t',
+    SDLK_SPACE = ' ',
+    SDLK_EXCLAIM = '!',
+    SDLK_QUOTEDBL = '"',
+    SDLK_HASH = '#',
+    SDLK_PERCENT = '%',
+    SDLK_DOLLAR = '$',
+    SDLK_AMPERSAND = '&',
+    SDLK_QUOTE = '\'',
+    SDLK_LEFTPAREN = '(',
+    SDLK_RIGHTPAREN = ')',
+    SDLK_ASTERISK = '*',
+    SDLK_PLUS = '+',
+    SDLK_COMMA = ',',
+    SDLK_MINUS = '-',
+    SDLK_PERIOD = '.',
+    SDLK_SLASH = '/',
+    SDLK_0 = '0',
+    SDLK_1 = '1',
+    SDLK_2 = '2',
+    SDLK_3 = '3',
+    SDLK_4 = '4',
+    SDLK_5 = '5',
+    SDLK_6 = '6',
+    SDLK_7 = '7',
+    SDLK_8 = '8',
+    SDLK_9 = '9',
+    SDLK_COLON = ':',
+    SDLK_SEMICOLON = ';',
+    SDLK_LESS = '<',
+    SDLK_EQUALS = '=',
+    SDLK_GREATER = '>',
+    SDLK_QUESTION = '?',
+    SDLK_AT = '@',
+    /*
+       Skip uppercase letters
+     */
+    SDLK_LEFTBRACKET = '[',
+    SDLK_BACKSLASH = '\\',
+    SDLK_RIGHTBRACKET = ']',
+    SDLK_CARET = '^',
+    SDLK_UNDERSCORE = '_',
+    SDLK_BACKQUOTE = '`',
+    SDLK_a = 'a',
+    SDLK_b = 'b',
+    SDLK_c = 'c',
+    SDLK_d = 'd',
+    SDLK_e = 'e',
+    SDLK_f = 'f',
+    SDLK_g = 'g',
+    SDLK_h = 'h',
+    SDLK_i = 'i',
+    SDLK_j = 'j',
+    SDLK_k = 'k',
+    SDLK_l = 'l',
+    SDLK_m = 'm',
+    SDLK_n = 'n',
+    SDLK_o = 'o',
+    SDLK_p = 'p',
+    SDLK_q = 'q',
+    SDLK_r = 'r',
+    SDLK_s = 's',
+    SDLK_t = 't',
+    SDLK_u = 'u',
+    SDLK_v = 'v',
+    SDLK_w = 'w',
+    SDLK_x = 'x',
+    SDLK_y = 'y',
+    SDLK_z = 'z',
+
+    SDLK_CAPSLOCK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CAPSLOCK),
+
+    SDLK_F1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F1),
+    SDLK_F2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F2),
+    SDLK_F3 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F3),
+    SDLK_F4 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F4),
+    SDLK_F5 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F5),
+    SDLK_F6 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F6),
+    SDLK_F7 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F7),
+    SDLK_F8 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F8),
+    SDLK_F9 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F9),
+    SDLK_F10 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F10),
+    SDLK_F11 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F11),
+    SDLK_F12 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F12),
+
+    SDLK_PRINTSCREEN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRINTSCREEN),
+    SDLK_SCROLLLOCK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SCROLLLOCK),
+    SDLK_PAUSE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAUSE),
+    SDLK_INSERT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_INSERT),
+    SDLK_HOME = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HOME),
+    SDLK_PAGEUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEUP),
+    SDLK_DELETE = '\177',
+    SDLK_END = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_END),
+    SDLK_PAGEDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEDOWN),
+    SDLK_RIGHT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RIGHT),
+    SDLK_LEFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LEFT),
+    SDLK_DOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DOWN),
+    SDLK_UP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UP),
+
+    SDLK_NUMLOCKCLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_NUMLOCKCLEAR),
+    SDLK_KP_DIVIDE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DIVIDE),
+    SDLK_KP_MULTIPLY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MULTIPLY),
+    SDLK_KP_MINUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MINUS),
+    SDLK_KP_PLUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUS),
+    SDLK_KP_ENTER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_ENTER),
+    SDLK_KP_1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_1),
+    SDLK_KP_2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_2),
+    SDLK_KP_3 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_3),
+    SDLK_KP_4 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_4),
+    SDLK_KP_5 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_5),
+    SDLK_KP_6 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_6),
+    SDLK_KP_7 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_7),
+    SDLK_KP_8 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_8),
+    SDLK_KP_9 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_9),
+    SDLK_KP_0 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_0),
+    SDLK_KP_PERIOD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERIOD),
+
+    SDLK_APPLICATION = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APPLICATION),
+    SDLK_POWER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_POWER),
+    SDLK_KP_EQUALS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALS),
+    SDLK_F13 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F13),
+    SDLK_F14 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F14),
+    SDLK_F15 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F15),
+    SDLK_F16 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F16),
+    SDLK_F17 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F17),
+    SDLK_F18 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F18),
+    SDLK_F19 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F19),
+    SDLK_F20 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F20),
+    SDLK_F21 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F21),
+    SDLK_F22 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F22),
+    SDLK_F23 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F23),
+    SDLK_F24 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F24),
+    SDLK_EXECUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXECUTE),
+    SDLK_HELP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HELP),
+    SDLK_MENU = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MENU),
+    SDLK_SELECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SELECT),
+    SDLK_STOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_STOP),
+    SDLK_AGAIN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AGAIN),
+    SDLK_UNDO = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UNDO),
+    SDLK_CUT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CUT),
+    SDLK_COPY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COPY),
+    SDLK_PASTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PASTE),
+    SDLK_FIND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_FIND),
+    SDLK_MUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MUTE),
+    SDLK_VOLUMEUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEUP),
+    SDLK_VOLUMEDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEDOWN),
+    SDLK_KP_COMMA = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COMMA),
+    SDLK_KP_EQUALSAS400 =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALSAS400),
+
+    SDLK_ALTERASE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ALTERASE),
+    SDLK_SYSREQ = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SYSREQ),
+    SDLK_CANCEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CANCEL),
+    SDLK_CLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEAR),
+    SDLK_PRIOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRIOR),
+    SDLK_RETURN2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RETURN2),
+    SDLK_SEPARATOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SEPARATOR),
+    SDLK_OUT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OUT),
+    SDLK_OPER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OPER),
+    SDLK_CLEARAGAIN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEARAGAIN),
+    SDLK_CRSEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CRSEL),
+    SDLK_EXSEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXSEL),
+
+    SDLK_KP_00 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_00),
+    SDLK_KP_000 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_000),
+    SDLK_THOUSANDSSEPARATOR =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_THOUSANDSSEPARATOR),
+    SDLK_DECIMALSEPARATOR =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DECIMALSEPARATOR),
+    SDLK_CURRENCYUNIT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYUNIT),
+    SDLK_CURRENCYSUBUNIT =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYSUBUNIT),
+    SDLK_KP_LEFTPAREN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTPAREN),
+    SDLK_KP_RIGHTPAREN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTPAREN),
+    SDLK_KP_LEFTBRACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTBRACE),
+    SDLK_KP_RIGHTBRACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTBRACE),
+    SDLK_KP_TAB = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_TAB),
+    SDLK_KP_BACKSPACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BACKSPACE),
+    SDLK_KP_A = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_A),
+    SDLK_KP_B = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_B),
+    SDLK_KP_C = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_C),
+    SDLK_KP_D = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_D),
+    SDLK_KP_E = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_E),
+    SDLK_KP_F = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_F),
+    SDLK_KP_XOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_XOR),
+    SDLK_KP_POWER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_POWER),
+    SDLK_KP_PERCENT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERCENT),
+    SDLK_KP_LESS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LESS),
+    SDLK_KP_GREATER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_GREATER),
+    SDLK_KP_AMPERSAND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AMPERSAND),
+    SDLK_KP_DBLAMPERSAND =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLAMPERSAND),
+    SDLK_KP_VERTICALBAR =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_VERTICALBAR),
+    SDLK_KP_DBLVERTICALBAR =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLVERTICALBAR),
+    SDLK_KP_COLON = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COLON),
+    SDLK_KP_HASH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HASH),
+    SDLK_KP_SPACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_SPACE),
+    SDLK_KP_AT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AT),
+    SDLK_KP_EXCLAM = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EXCLAM),
+    SDLK_KP_MEMSTORE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSTORE),
+    SDLK_KP_MEMRECALL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMRECALL),
+    SDLK_KP_MEMCLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMCLEAR),
+    SDLK_KP_MEMADD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMADD),
+    SDLK_KP_MEMSUBTRACT =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSUBTRACT),
+    SDLK_KP_MEMMULTIPLY =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMMULTIPLY),
+    SDLK_KP_MEMDIVIDE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMDIVIDE),
+    SDLK_KP_PLUSMINUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUSMINUS),
+    SDLK_KP_CLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEAR),
+    SDLK_KP_CLEARENTRY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEARENTRY),
+    SDLK_KP_BINARY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BINARY),
+    SDLK_KP_OCTAL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_OCTAL),
+    SDLK_KP_DECIMAL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DECIMAL),
+    SDLK_KP_HEXADECIMAL =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HEXADECIMAL),
+
+    SDLK_LCTRL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LCTRL),
+    SDLK_LSHIFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LSHIFT),
+    SDLK_LALT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LALT),
+    SDLK_LGUI = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LGUI),
+    SDLK_RCTRL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RCTRL),
+    SDLK_RSHIFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RSHIFT),
+    SDLK_RALT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RALT),
+    SDLK_RGUI = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RGUI),
+
+    SDLK_MODE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MODE),
+
+    SDLK_AUDIONEXT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIONEXT),
+    SDLK_AUDIOPREV = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPREV),
+    SDLK_AUDIOSTOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOSTOP),
+    SDLK_AUDIOPLAY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPLAY),
+    SDLK_AUDIOMUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOMUTE),
+    SDLK_MEDIASELECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MEDIASELECT),
+    SDLK_WWW = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_WWW),
+    SDLK_MAIL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MAIL),
+    SDLK_CALCULATOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALCULATOR),
+    SDLK_COMPUTER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COMPUTER),
+    SDLK_AC_SEARCH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_SEARCH),
+    SDLK_AC_HOME = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_HOME),
+    SDLK_AC_BACK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BACK),
+    SDLK_AC_FORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_FORWARD),
+    SDLK_AC_STOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_STOP),
+    SDLK_AC_REFRESH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_REFRESH),
+    SDLK_AC_BOOKMARKS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BOOKMARKS),
+
+    SDLK_BRIGHTNESSDOWN =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSDOWN),
+    SDLK_BRIGHTNESSUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSUP),
+    SDLK_DISPLAYSWITCH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DISPLAYSWITCH),
+    SDLK_KBDILLUMTOGGLE =
+        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMTOGGLE),
+    SDLK_KBDILLUMDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMDOWN),
+    SDLK_KBDILLUMUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMUP),
+    SDLK_EJECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EJECT),
+    SDLK_SLEEP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP),
+    SDLK_APP1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP1),
+    SDLK_APP2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP2),
+
+    SDLK_AUDIOREWIND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOREWIND),
+    SDLK_AUDIOFASTFORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOFASTFORWARD)
+};
+
+/**
+ * \brief Enumeration of valid key mods (possibly OR'd together).
+ */
+typedef enum
+{
+    KMOD_NONE = 0x0000,
+    KMOD_LSHIFT = 0x0001,
+    KMOD_RSHIFT = 0x0002,
+    KMOD_LCTRL = 0x0040,
+    KMOD_RCTRL = 0x0080,
+    KMOD_LALT = 0x0100,
+    KMOD_RALT = 0x0200,
+    KMOD_LGUI = 0x0400,
+    KMOD_RGUI = 0x0800,
+    KMOD_NUM = 0x1000,
+    KMOD_CAPS = 0x2000,
+    KMOD_MODE = 0x4000,
+    KMOD_RESERVED = 0x8000
+} SDL_Keymod;
+
+#define KMOD_CTRL   (KMOD_LCTRL|KMOD_RCTRL)
+#define KMOD_SHIFT  (KMOD_LSHIFT|KMOD_RSHIFT)
+#define KMOD_ALT    (KMOD_LALT|KMOD_RALT)
+#define KMOD_GUI    (KMOD_LGUI|KMOD_RGUI)
+
+#endif /* SDL_keycode_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_loadso.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_loadso.h
new file mode 100644
index 0000000..da56fb4
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_loadso.h
@@ -0,0 +1,81 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_loadso.h
+ *
+ *  System dependent library loading routines
+ *
+ *  Some things to keep in mind:
+ *  \li These functions only work on C function names.  Other languages may
+ *      have name mangling and intrinsic language support that varies from
+ *      compiler to compiler.
+ *  \li Make sure you declare your function pointers with the same calling
+ *      convention as the actual library function.  Your code will crash
+ *      mysteriously if you do not do this.
+ *  \li Avoid namespace collisions.  If you load a symbol from the library,
+ *      it is not defined whether or not it goes into the global symbol
+ *      namespace for the application.  If it does and it conflicts with
+ *      symbols in your code or other shared libraries, you will not get
+ *      the results you expect. :)
+ */
+
+#ifndef SDL_loadso_h_
+#define SDL_loadso_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  This function dynamically loads a shared object and returns a pointer
+ *  to the object handle (or NULL if there was an error).
+ *  The 'sofile' parameter is a system dependent name of the object file.
+ */
+extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile);
+
+/**
+ *  Given an object handle, this function looks up the address of the
+ *  named function in the shared object and returns it.  This address
+ *  is no longer valid after calling SDL_UnloadObject().
+ */
+extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle,
+                                               const char *name);
+
+/**
+ *  Unload a shared object from memory.
+ */
+extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_loadso_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_log.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_log.h
new file mode 100644
index 0000000..e12b658
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_log.h
@@ -0,0 +1,211 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_log.h
+ *
+ *  Simple log messages with categories and priorities.
+ *
+ *  By default logs are quiet, but if you're debugging SDL you might want:
+ *
+ *      SDL_LogSetAllPriority(SDL_LOG_PRIORITY_WARN);
+ *
+ *  Here's where the messages go on different platforms:
+ *      Windows: debug output stream
+ *      Android: log output
+ *      Others: standard error output (stderr)
+ */
+
+#ifndef SDL_log_h_
+#define SDL_log_h_
+
+#include "SDL_stdinc.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/**
+ *  \brief The maximum size of a log message
+ *
+ *  Messages longer than the maximum size will be truncated
+ */
+#define SDL_MAX_LOG_MESSAGE 4096
+
+/**
+ *  \brief The predefined log categories
+ *
+ *  By default the application category is enabled at the INFO level,
+ *  the assert category is enabled at the WARN level, test is enabled
+ *  at the VERBOSE level and all other categories are enabled at the
+ *  CRITICAL level.
+ */
+enum
+{
+    SDL_LOG_CATEGORY_APPLICATION,
+    SDL_LOG_CATEGORY_ERROR,
+    SDL_LOG_CATEGORY_ASSERT,
+    SDL_LOG_CATEGORY_SYSTEM,
+    SDL_LOG_CATEGORY_AUDIO,
+    SDL_LOG_CATEGORY_VIDEO,
+    SDL_LOG_CATEGORY_RENDER,
+    SDL_LOG_CATEGORY_INPUT,
+    SDL_LOG_CATEGORY_TEST,
+
+    /* Reserved for future SDL library use */
+    SDL_LOG_CATEGORY_RESERVED1,
+    SDL_LOG_CATEGORY_RESERVED2,
+    SDL_LOG_CATEGORY_RESERVED3,
+    SDL_LOG_CATEGORY_RESERVED4,
+    SDL_LOG_CATEGORY_RESERVED5,
+    SDL_LOG_CATEGORY_RESERVED6,
+    SDL_LOG_CATEGORY_RESERVED7,
+    SDL_LOG_CATEGORY_RESERVED8,
+    SDL_LOG_CATEGORY_RESERVED9,
+    SDL_LOG_CATEGORY_RESERVED10,
+
+    /* Beyond this point is reserved for application use, e.g.
+       enum {
+           MYAPP_CATEGORY_AWESOME1 = SDL_LOG_CATEGORY_CUSTOM,
+           MYAPP_CATEGORY_AWESOME2,
+           MYAPP_CATEGORY_AWESOME3,
+           ...
+       };
+     */
+    SDL_LOG_CATEGORY_CUSTOM
+};
+
+/**
+ *  \brief The predefined log priorities
+ */
+typedef enum
+{
+    SDL_LOG_PRIORITY_VERBOSE = 1,
+    SDL_LOG_PRIORITY_DEBUG,
+    SDL_LOG_PRIORITY_INFO,
+    SDL_LOG_PRIORITY_WARN,
+    SDL_LOG_PRIORITY_ERROR,
+    SDL_LOG_PRIORITY_CRITICAL,
+    SDL_NUM_LOG_PRIORITIES
+} SDL_LogPriority;
+
+
+/**
+ *  \brief Set the priority of all log categories
+ */
+extern DECLSPEC void SDLCALL SDL_LogSetAllPriority(SDL_LogPriority priority);
+
+/**
+ *  \brief Set the priority of a particular log category
+ */
+extern DECLSPEC void SDLCALL SDL_LogSetPriority(int category,
+                                                SDL_LogPriority priority);
+
+/**
+ *  \brief Get the priority of a particular log category
+ */
+extern DECLSPEC SDL_LogPriority SDLCALL SDL_LogGetPriority(int category);
+
+/**
+ *  \brief Reset all priorities to default.
+ *
+ *  \note This is called in SDL_Quit().
+ */
+extern DECLSPEC void SDLCALL SDL_LogResetPriorities(void);
+
+/**
+ *  \brief Log a message with SDL_LOG_CATEGORY_APPLICATION and SDL_LOG_PRIORITY_INFO
+ */
+extern DECLSPEC void SDLCALL SDL_Log(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
+
+/**
+ *  \brief Log a message with SDL_LOG_PRIORITY_VERBOSE
+ */
+extern DECLSPEC void SDLCALL SDL_LogVerbose(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
+
+/**
+ *  \brief Log a message with SDL_LOG_PRIORITY_DEBUG
+ */
+extern DECLSPEC void SDLCALL SDL_LogDebug(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
+
+/**
+ *  \brief Log a message with SDL_LOG_PRIORITY_INFO
+ */
+extern DECLSPEC void SDLCALL SDL_LogInfo(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
+
+/**
+ *  \brief Log a message with SDL_LOG_PRIORITY_WARN
+ */
+extern DECLSPEC void SDLCALL SDL_LogWarn(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
+
+/**
+ *  \brief Log a message with SDL_LOG_PRIORITY_ERROR
+ */
+extern DECLSPEC void SDLCALL SDL_LogError(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
+
+/**
+ *  \brief Log a message with SDL_LOG_PRIORITY_CRITICAL
+ */
+extern DECLSPEC void SDLCALL SDL_LogCritical(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
+
+/**
+ *  \brief Log a message with the specified category and priority.
+ */
+extern DECLSPEC void SDLCALL SDL_LogMessage(int category,
+                                            SDL_LogPriority priority,
+                                            SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(3);
+
+/**
+ *  \brief Log a message with the specified category and priority.
+ */
+extern DECLSPEC void SDLCALL SDL_LogMessageV(int category,
+                                             SDL_LogPriority priority,
+                                             const char *fmt, va_list ap);
+
+/**
+ *  \brief The prototype for the log output function
+ */
+typedef void (SDLCALL *SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
+
+/**
+ *  \brief Get the current log output function.
+ */
+extern DECLSPEC void SDLCALL SDL_LogGetOutputFunction(SDL_LogOutputFunction *callback, void **userdata);
+
+/**
+ *  \brief This function allows you to replace the default log output
+ *         function with one of your own.
+ */
+extern DECLSPEC void SDLCALL SDL_LogSetOutputFunction(SDL_LogOutputFunction callback, void *userdata);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_log_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_main.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_main.h
new file mode 100644
index 0000000..9855821
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_main.h
@@ -0,0 +1,168 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_main_h_
+#define SDL_main_h_
+
+#include "SDL_stdinc.h"
+
+/**
+ *  \file SDL_main.h
+ *
+ *  Redefine main() on some platforms so that it is called by SDL.
+ */
+
+#ifndef SDL_MAIN_HANDLED
+#if defined(__WIN32__)
+/* On Windows SDL provides WinMain(), which parses the command line and passes
+   the arguments to your main function.
+
+   If you provide your own WinMain(), you may define SDL_MAIN_HANDLED
+ */
+#define SDL_MAIN_AVAILABLE
+
+#elif defined(__WINRT__)
+/* On WinRT, SDL provides a main function that initializes CoreApplication,
+   creating an instance of IFrameworkView in the process.
+
+   Please note that #include'ing SDL_main.h is not enough to get a main()
+   function working.  In non-XAML apps, the file,
+   src/main/winrt/SDL_WinRT_main_NonXAML.cpp, or a copy of it, must be compiled
+   into the app itself.  In XAML apps, the function, SDL_WinRTRunApp must be
+   called, with a pointer to the Direct3D-hosted XAML control passed in.
+*/
+#define SDL_MAIN_NEEDED
+
+#elif defined(__IPHONEOS__)
+/* On iOS SDL provides a main function that creates an application delegate
+   and starts the iOS application run loop.
+
+   See src/video/uikit/SDL_uikitappdelegate.m for more details.
+ */
+#define SDL_MAIN_NEEDED
+
+#elif defined(__ANDROID__)
+/* On Android SDL provides a Java class in SDLActivity.java that is the
+   main activity entry point.
+
+   See docs/README-android.md for more details on extending that class.
+ */
+#define SDL_MAIN_NEEDED
+
+/* We need to export SDL_main so it can be launched from Java */
+#define SDLMAIN_DECLSPEC    DECLSPEC
+
+#elif defined(__NACL__)
+/* On NACL we use ppapi_simple to set up the application helper code,
+   then wait for the first PSE_INSTANCE_DIDCHANGEVIEW event before 
+   starting the user main function.
+   All user code is run in a separate thread by ppapi_simple, thus 
+   allowing for blocking io to take place via nacl_io
+*/
+#define SDL_MAIN_NEEDED
+
+#endif
+#endif /* SDL_MAIN_HANDLED */
+
+#ifdef __cplusplus
+#define C_LINKAGE   "C"
+#else
+#define C_LINKAGE
+#endif /* __cplusplus */
+
+#ifndef SDLMAIN_DECLSPEC
+#define SDLMAIN_DECLSPEC
+#endif
+
+/**
+ *  \file SDL_main.h
+ *
+ *  The application's main() function must be called with C linkage,
+ *  and should be declared like this:
+ *  \code
+ *  #ifdef __cplusplus
+ *  extern "C"
+ *  #endif
+ *  int main(int argc, char *argv[])
+ *  {
+ *  }
+ *  \endcode
+ */
+
+#if defined(SDL_MAIN_NEEDED) || defined(SDL_MAIN_AVAILABLE)
+#define main    SDL_main
+#endif
+
+/**
+ *  The prototype for the application's main() function
+ */
+extern C_LINKAGE SDLMAIN_DECLSPEC int SDL_main(int argc, char *argv[]);
+
+
+#include "begin_code.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  This is called by the real SDL main function to let the rest of the
+ *  library know that initialization was done properly.
+ *
+ *  Calling this yourself without knowing what you're doing can cause
+ *  crashes and hard to diagnose problems with your application.
+ */
+extern DECLSPEC void SDLCALL SDL_SetMainReady(void);
+
+#ifdef __WIN32__
+
+/**
+ *  This can be called to set the application class at startup
+ */
+extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style,
+                                            void *hInst);
+extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
+
+#endif /* __WIN32__ */
+
+
+#ifdef __WINRT__
+
+/**
+ *  \brief Initializes and launches an SDL/WinRT application.
+ *
+ *  \param mainFunction The SDL app's C-style main().
+ *  \param reserved Reserved for future use; should be NULL
+ *  \return 0 on success, -1 on failure.  On failure, use SDL_GetError to retrieve more
+ *      information on the failure.
+ */
+extern DECLSPEC int SDLCALL SDL_WinRTRunApp(int (*mainFunction)(int, char **), void * reserved);
+
+#endif /* __WINRT__ */
+
+
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_main_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_messagebox.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_messagebox.h
new file mode 100644
index 0000000..b7be59d
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_messagebox.h
@@ -0,0 +1,144 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_messagebox_h_
+#define SDL_messagebox_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_video.h"      /* For SDL_Window */
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * \brief SDL_MessageBox flags. If supported will display warning icon, etc.
+ */
+typedef enum
+{
+    SDL_MESSAGEBOX_ERROR        = 0x00000010,   /**< error dialog */
+    SDL_MESSAGEBOX_WARNING      = 0x00000020,   /**< warning dialog */
+    SDL_MESSAGEBOX_INFORMATION  = 0x00000040    /**< informational dialog */
+} SDL_MessageBoxFlags;
+
+/**
+ * \brief Flags for SDL_MessageBoxButtonData.
+ */
+typedef enum
+{
+    SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT = 0x00000001,  /**< Marks the default button when return is hit */
+    SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002   /**< Marks the default button when escape is hit */
+} SDL_MessageBoxButtonFlags;
+
+/**
+ *  \brief Individual button data.
+ */
+typedef struct
+{
+    Uint32 flags;       /**< ::SDL_MessageBoxButtonFlags */
+    int buttonid;       /**< User defined button id (value returned via SDL_ShowMessageBox) */
+    const char * text;  /**< The UTF-8 button text */
+} SDL_MessageBoxButtonData;
+
+/**
+ * \brief RGB value used in a message box color scheme
+ */
+typedef struct
+{
+    Uint8 r, g, b;
+} SDL_MessageBoxColor;
+
+typedef enum
+{
+    SDL_MESSAGEBOX_COLOR_BACKGROUND,
+    SDL_MESSAGEBOX_COLOR_TEXT,
+    SDL_MESSAGEBOX_COLOR_BUTTON_BORDER,
+    SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND,
+    SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED,
+    SDL_MESSAGEBOX_COLOR_MAX
+} SDL_MessageBoxColorType;
+
+/**
+ * \brief A set of colors to use for message box dialogs
+ */
+typedef struct
+{
+    SDL_MessageBoxColor colors[SDL_MESSAGEBOX_COLOR_MAX];
+} SDL_MessageBoxColorScheme;
+
+/**
+ *  \brief MessageBox structure containing title, text, window, etc.
+ */
+typedef struct
+{
+    Uint32 flags;                       /**< ::SDL_MessageBoxFlags */
+    SDL_Window *window;                 /**< Parent window, can be NULL */
+    const char *title;                  /**< UTF-8 title */
+    const char *message;                /**< UTF-8 message text */
+
+    int numbuttons;
+    const SDL_MessageBoxButtonData *buttons;
+
+    const SDL_MessageBoxColorScheme *colorScheme;   /**< ::SDL_MessageBoxColorScheme, can be NULL to use system settings */
+} SDL_MessageBoxData;
+
+/**
+ *  \brief Create a modal message box.
+ *
+ *  \param messageboxdata The SDL_MessageBoxData structure with title, text, etc.
+ *  \param buttonid The pointer to which user id of hit button should be copied.
+ *
+ *  \return -1 on error, otherwise 0 and buttonid contains user id of button
+ *          hit or -1 if dialog was closed.
+ *
+ *  \note This function should be called on the thread that created the parent
+ *        window, or on the main thread if the messagebox has no parent.  It will
+ *        block execution of that thread until the user clicks a button or
+ *        closes the messagebox.
+ */
+extern DECLSPEC int SDLCALL SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
+
+/**
+ *  \brief Create a simple modal message box
+ *
+ *  \param flags    ::SDL_MessageBoxFlags
+ *  \param title    UTF-8 title text
+ *  \param message  UTF-8 message text
+ *  \param window   The parent window, or NULL for no parent
+ *
+ *  \return 0 on success, -1 on error
+ *
+ *  \sa SDL_ShowMessageBox
+ */
+extern DECLSPEC int SDLCALL SDL_ShowSimpleMessageBox(Uint32 flags, const char *title, const char *message, SDL_Window *window);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_messagebox_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_mouse.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_mouse.h
new file mode 100644
index 0000000..d3c9f61
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_mouse.h
@@ -0,0 +1,302 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_mouse.h
+ *
+ *  Include file for SDL mouse event handling.
+ */
+
+#ifndef SDL_mouse_h_
+#define SDL_mouse_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_video.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct SDL_Cursor SDL_Cursor;   /**< Implementation dependent */
+
+/**
+ * \brief Cursor types for SDL_CreateSystemCursor().
+ */
+typedef enum
+{
+    SDL_SYSTEM_CURSOR_ARROW,     /**< Arrow */
+    SDL_SYSTEM_CURSOR_IBEAM,     /**< I-beam */
+    SDL_SYSTEM_CURSOR_WAIT,      /**< Wait */
+    SDL_SYSTEM_CURSOR_CROSSHAIR, /**< Crosshair */
+    SDL_SYSTEM_CURSOR_WAITARROW, /**< Small wait cursor (or Wait if not available) */
+    SDL_SYSTEM_CURSOR_SIZENWSE,  /**< Double arrow pointing northwest and southeast */
+    SDL_SYSTEM_CURSOR_SIZENESW,  /**< Double arrow pointing northeast and southwest */
+    SDL_SYSTEM_CURSOR_SIZEWE,    /**< Double arrow pointing west and east */
+    SDL_SYSTEM_CURSOR_SIZENS,    /**< Double arrow pointing north and south */
+    SDL_SYSTEM_CURSOR_SIZEALL,   /**< Four pointed arrow pointing north, south, east, and west */
+    SDL_SYSTEM_CURSOR_NO,        /**< Slashed circle or crossbones */
+    SDL_SYSTEM_CURSOR_HAND,      /**< Hand */
+    SDL_NUM_SYSTEM_CURSORS
+} SDL_SystemCursor;
+
+/**
+ * \brief Scroll direction types for the Scroll event
+ */
+typedef enum
+{
+    SDL_MOUSEWHEEL_NORMAL,    /**< The scroll direction is normal */
+    SDL_MOUSEWHEEL_FLIPPED    /**< The scroll direction is flipped / natural */
+} SDL_MouseWheelDirection;
+
+/* Function prototypes */
+
+/**
+ *  \brief Get the window which currently has mouse focus.
+ */
+extern DECLSPEC SDL_Window * SDLCALL SDL_GetMouseFocus(void);
+
+/**
+ *  \brief Retrieve the current state of the mouse.
+ *
+ *  The current button state is returned as a button bitmask, which can
+ *  be tested using the SDL_BUTTON(X) macros, and x and y are set to the
+ *  mouse cursor position relative to the focus window for the currently
+ *  selected mouse.  You can pass NULL for either x or y.
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_GetMouseState(int *x, int *y);
+
+/**
+ *  \brief Get the current state of the mouse, in relation to the desktop
+ *
+ *  This works just like SDL_GetMouseState(), but the coordinates will be
+ *  reported relative to the top-left of the desktop. This can be useful if
+ *  you need to track the mouse outside of a specific window and
+ *  SDL_CaptureMouse() doesn't fit your needs. For example, it could be
+ *  useful if you need to track the mouse while dragging a window, where
+ *  coordinates relative to a window might not be in sync at all times.
+ *
+ *  \note SDL_GetMouseState() returns the mouse position as SDL understands
+ *        it from the last pump of the event queue. This function, however,
+ *        queries the OS for the current mouse position, and as such, might
+ *        be a slightly less efficient function. Unless you know what you're
+ *        doing and have a good reason to use this function, you probably want
+ *        SDL_GetMouseState() instead.
+ *
+ *  \param x Returns the current X coord, relative to the desktop. Can be NULL.
+ *  \param y Returns the current Y coord, relative to the desktop. Can be NULL.
+ *  \return The current button state as a bitmask, which can be tested using the SDL_BUTTON(X) macros.
+ *
+ *  \sa SDL_GetMouseState
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_GetGlobalMouseState(int *x, int *y);
+
+/**
+ *  \brief Retrieve the relative state of the mouse.
+ *
+ *  The current button state is returned as a button bitmask, which can
+ *  be tested using the SDL_BUTTON(X) macros, and x and y are set to the
+ *  mouse deltas since the last call to SDL_GetRelativeMouseState().
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_GetRelativeMouseState(int *x, int *y);
+
+/**
+ *  \brief Moves the mouse to the given position within the window.
+ *
+ *  \param window The window to move the mouse into, or NULL for the current mouse focus
+ *  \param x The x coordinate within the window
+ *  \param y The y coordinate within the window
+ *
+ *  \note This function generates a mouse motion event
+ */
+extern DECLSPEC void SDLCALL SDL_WarpMouseInWindow(SDL_Window * window,
+                                                   int x, int y);
+
+/**
+ *  \brief Moves the mouse to the given position in global screen space.
+ *
+ *  \param x The x coordinate
+ *  \param y The y coordinate
+ *  \return 0 on success, -1 on error (usually: unsupported by a platform).
+ *
+ *  \note This function generates a mouse motion event
+ */
+extern DECLSPEC int SDLCALL SDL_WarpMouseGlobal(int x, int y);
+
+/**
+ *  \brief Set relative mouse mode.
+ *
+ *  \param enabled Whether or not to enable relative mode
+ *
+ *  \return 0 on success, or -1 if relative mode is not supported.
+ *
+ *  While the mouse is in relative mode, the cursor is hidden, and the
+ *  driver will try to report continuous motion in the current window.
+ *  Only relative motion events will be delivered, the mouse position
+ *  will not change.
+ *
+ *  \note This function will flush any pending mouse motion.
+ *
+ *  \sa SDL_GetRelativeMouseMode()
+ */
+extern DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(SDL_bool enabled);
+
+/**
+ *  \brief Capture the mouse, to track input outside an SDL window.
+ *
+ *  \param enabled Whether or not to enable capturing
+ *
+ *  Capturing enables your app to obtain mouse events globally, instead of
+ *  just within your window. Not all video targets support this function.
+ *  When capturing is enabled, the current window will get all mouse events,
+ *  but unlike relative mode, no change is made to the cursor and it is
+ *  not restrained to your window.
+ *
+ *  This function may also deny mouse input to other windows--both those in
+ *  your application and others on the system--so you should use this
+ *  function sparingly, and in small bursts. For example, you might want to
+ *  track the mouse while the user is dragging something, until the user
+ *  releases a mouse button. It is not recommended that you capture the mouse
+ *  for long periods of time, such as the entire time your app is running.
+ *
+ *  While captured, mouse events still report coordinates relative to the
+ *  current (foreground) window, but those coordinates may be outside the
+ *  bounds of the window (including negative values). Capturing is only
+ *  allowed for the foreground window. If the window loses focus while
+ *  capturing, the capture will be disabled automatically.
+ *
+ *  While capturing is enabled, the current window will have the
+ *  SDL_WINDOW_MOUSE_CAPTURE flag set.
+ *
+ *  \return 0 on success, or -1 if not supported.
+ */
+extern DECLSPEC int SDLCALL SDL_CaptureMouse(SDL_bool enabled);
+
+/**
+ *  \brief Query whether relative mouse mode is enabled.
+ *
+ *  \sa SDL_SetRelativeMouseMode()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(void);
+
+/**
+ *  \brief Create a cursor, using the specified bitmap data and
+ *         mask (in MSB format).
+ *
+ *  The cursor width must be a multiple of 8 bits.
+ *
+ *  The cursor is created in black and white according to the following:
+ *  <table>
+ *  <tr><td> data </td><td> mask </td><td> resulting pixel on screen </td></tr>
+ *  <tr><td>  0   </td><td>  1   </td><td> White </td></tr>
+ *  <tr><td>  1   </td><td>  1   </td><td> Black </td></tr>
+ *  <tr><td>  0   </td><td>  0   </td><td> Transparent </td></tr>
+ *  <tr><td>  1   </td><td>  0   </td><td> Inverted color if possible, black
+ *                                         if not. </td></tr>
+ *  </table>
+ *
+ *  \sa SDL_FreeCursor()
+ */
+extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateCursor(const Uint8 * data,
+                                                     const Uint8 * mask,
+                                                     int w, int h, int hot_x,
+                                                     int hot_y);
+
+/**
+ *  \brief Create a color cursor.
+ *
+ *  \sa SDL_FreeCursor()
+ */
+extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateColorCursor(SDL_Surface *surface,
+                                                          int hot_x,
+                                                          int hot_y);
+
+/**
+ *  \brief Create a system cursor.
+ *
+ *  \sa SDL_FreeCursor()
+ */
+extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateSystemCursor(SDL_SystemCursor id);
+
+/**
+ *  \brief Set the active cursor.
+ */
+extern DECLSPEC void SDLCALL SDL_SetCursor(SDL_Cursor * cursor);
+
+/**
+ *  \brief Return the active cursor.
+ */
+extern DECLSPEC SDL_Cursor *SDLCALL SDL_GetCursor(void);
+
+/**
+ *  \brief Return the default cursor.
+ */
+extern DECLSPEC SDL_Cursor *SDLCALL SDL_GetDefaultCursor(void);
+
+/**
+ *  \brief Frees a cursor created with SDL_CreateCursor() or similar functions.
+ *
+ *  \sa SDL_CreateCursor()
+ *  \sa SDL_CreateColorCursor()
+ *  \sa SDL_CreateSystemCursor()
+ */
+extern DECLSPEC void SDLCALL SDL_FreeCursor(SDL_Cursor * cursor);
+
+/**
+ *  \brief Toggle whether or not the cursor is shown.
+ *
+ *  \param toggle 1 to show the cursor, 0 to hide it, -1 to query the current
+ *                state.
+ *
+ *  \return 1 if the cursor is shown, or 0 if the cursor is hidden.
+ */
+extern DECLSPEC int SDLCALL SDL_ShowCursor(int toggle);
+
+/**
+ *  Used as a mask when testing buttons in buttonstate.
+ *   - Button 1:  Left mouse button
+ *   - Button 2:  Middle mouse button
+ *   - Button 3:  Right mouse button
+ */
+#define SDL_BUTTON(X)       (1 << ((X)-1))
+#define SDL_BUTTON_LEFT     1
+#define SDL_BUTTON_MIDDLE   2
+#define SDL_BUTTON_RIGHT    3
+#define SDL_BUTTON_X1       4
+#define SDL_BUTTON_X2       5
+#define SDL_BUTTON_LMASK    SDL_BUTTON(SDL_BUTTON_LEFT)
+#define SDL_BUTTON_MMASK    SDL_BUTTON(SDL_BUTTON_MIDDLE)
+#define SDL_BUTTON_RMASK    SDL_BUTTON(SDL_BUTTON_RIGHT)
+#define SDL_BUTTON_X1MASK   SDL_BUTTON(SDL_BUTTON_X1)
+#define SDL_BUTTON_X2MASK   SDL_BUTTON(SDL_BUTTON_X2)
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_mouse_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_mutex.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_mutex.h
new file mode 100644
index 0000000..ba4247c
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_mutex.h
@@ -0,0 +1,251 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_mutex_h_
+#define SDL_mutex_h_
+
+/**
+ *  \file SDL_mutex.h
+ *
+ *  Functions to provide thread synchronization primitives.
+ */
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  Synchronization functions which can time out return this value
+ *  if they time out.
+ */
+#define SDL_MUTEX_TIMEDOUT  1
+
+/**
+ *  This is the timeout value which corresponds to never time out.
+ */
+#define SDL_MUTEX_MAXWAIT   (~(Uint32)0)
+
+
+/**
+ *  \name Mutex functions
+ */
+/* @{ */
+
+/* The SDL mutex structure, defined in SDL_sysmutex.c */
+struct SDL_mutex;
+typedef struct SDL_mutex SDL_mutex;
+
+/**
+ *  Create a mutex, initialized unlocked.
+ */
+extern DECLSPEC SDL_mutex *SDLCALL SDL_CreateMutex(void);
+
+/**
+ *  Lock the mutex.
+ *
+ *  \return 0, or -1 on error.
+ */
+#define SDL_mutexP(m)   SDL_LockMutex(m)
+extern DECLSPEC int SDLCALL SDL_LockMutex(SDL_mutex * mutex);
+
+/**
+ *  Try to lock the mutex
+ *
+ *  \return 0, SDL_MUTEX_TIMEDOUT, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_TryLockMutex(SDL_mutex * mutex);
+
+/**
+ *  Unlock the mutex.
+ *
+ *  \return 0, or -1 on error.
+ *
+ *  \warning It is an error to unlock a mutex that has not been locked by
+ *           the current thread, and doing so results in undefined behavior.
+ */
+#define SDL_mutexV(m)   SDL_UnlockMutex(m)
+extern DECLSPEC int SDLCALL SDL_UnlockMutex(SDL_mutex * mutex);
+
+/**
+ *  Destroy a mutex.
+ */
+extern DECLSPEC void SDLCALL SDL_DestroyMutex(SDL_mutex * mutex);
+
+/* @} *//* Mutex functions */
+
+
+/**
+ *  \name Semaphore functions
+ */
+/* @{ */
+
+/* The SDL semaphore structure, defined in SDL_syssem.c */
+struct SDL_semaphore;
+typedef struct SDL_semaphore SDL_sem;
+
+/**
+ *  Create a semaphore, initialized with value, returns NULL on failure.
+ */
+extern DECLSPEC SDL_sem *SDLCALL SDL_CreateSemaphore(Uint32 initial_value);
+
+/**
+ *  Destroy a semaphore.
+ */
+extern DECLSPEC void SDLCALL SDL_DestroySemaphore(SDL_sem * sem);
+
+/**
+ *  This function suspends the calling thread until the semaphore pointed
+ *  to by \c sem has a positive count. It then atomically decreases the
+ *  semaphore count.
+ */
+extern DECLSPEC int SDLCALL SDL_SemWait(SDL_sem * sem);
+
+/**
+ *  Non-blocking variant of SDL_SemWait().
+ *
+ *  \return 0 if the wait succeeds, ::SDL_MUTEX_TIMEDOUT if the wait would
+ *          block, and -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_SemTryWait(SDL_sem * sem);
+
+/**
+ *  Variant of SDL_SemWait() with a timeout in milliseconds.
+ *
+ *  \return 0 if the wait succeeds, ::SDL_MUTEX_TIMEDOUT if the wait does not
+ *          succeed in the allotted time, and -1 on error.
+ *
+ *  \warning On some platforms this function is implemented by looping with a
+ *           delay of 1 ms, and so should be avoided if possible.
+ */
+extern DECLSPEC int SDLCALL SDL_SemWaitTimeout(SDL_sem * sem, Uint32 ms);
+
+/**
+ *  Atomically increases the semaphore's count (not blocking).
+ *
+ *  \return 0, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_SemPost(SDL_sem * sem);
+
+/**
+ *  Returns the current count of the semaphore.
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_SemValue(SDL_sem * sem);
+
+/* @} *//* Semaphore functions */
+
+
+/**
+ *  \name Condition variable functions
+ */
+/* @{ */
+
+/* The SDL condition variable structure, defined in SDL_syscond.c */
+struct SDL_cond;
+typedef struct SDL_cond SDL_cond;
+
+/**
+ *  Create a condition variable.
+ *
+ *  Typical use of condition variables:
+ *
+ *  Thread A:
+ *    SDL_LockMutex(lock);
+ *    while ( ! condition ) {
+ *        SDL_CondWait(cond, lock);
+ *    }
+ *    SDL_UnlockMutex(lock);
+ *
+ *  Thread B:
+ *    SDL_LockMutex(lock);
+ *    ...
+ *    condition = true;
+ *    ...
+ *    SDL_CondSignal(cond);
+ *    SDL_UnlockMutex(lock);
+ *
+ *  There is some discussion whether to signal the condition variable
+ *  with the mutex locked or not.  There is some potential performance
+ *  benefit to unlocking first on some platforms, but there are some
+ *  potential race conditions depending on how your code is structured.
+ *
+ *  In general it's safer to signal the condition variable while the
+ *  mutex is locked.
+ */
+extern DECLSPEC SDL_cond *SDLCALL SDL_CreateCond(void);
+
+/**
+ *  Destroy a condition variable.
+ */
+extern DECLSPEC void SDLCALL SDL_DestroyCond(SDL_cond * cond);
+
+/**
+ *  Restart one of the threads that are waiting on the condition variable.
+ *
+ *  \return 0 or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_CondSignal(SDL_cond * cond);
+
+/**
+ *  Restart all threads that are waiting on the condition variable.
+ *
+ *  \return 0 or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_CondBroadcast(SDL_cond * cond);
+
+/**
+ *  Wait on the condition variable, unlocking the provided mutex.
+ *
+ *  \warning The mutex must be locked before entering this function!
+ *
+ *  The mutex is re-locked once the condition variable is signaled.
+ *
+ *  \return 0 when it is signaled, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_CondWait(SDL_cond * cond, SDL_mutex * mutex);
+
+/**
+ *  Waits for at most \c ms milliseconds, and returns 0 if the condition
+ *  variable is signaled, ::SDL_MUTEX_TIMEDOUT if the condition is not
+ *  signaled in the allotted time, and -1 on error.
+ *
+ *  \warning On some platforms this function is implemented by looping with a
+ *           delay of 1 ms, and so should be avoided if possible.
+ */
+extern DECLSPEC int SDLCALL SDL_CondWaitTimeout(SDL_cond * cond,
+                                                SDL_mutex * mutex, Uint32 ms);
+
+/* @} *//* Condition variable functions */
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_mutex_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_name.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_name.h
new file mode 100644
index 0000000..ecd863f
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_name.h
@@ -0,0 +1,33 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDLname_h_
+#define SDLname_h_
+
+#if defined(__STDC__) || defined(__cplusplus)
+#define NeedFunctionPrototypes 1
+#endif
+
+#define SDL_NAME(X) SDL_##X
+
+#endif /* SDLname_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengl.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengl.h
new file mode 100644
index 0000000..253d9c9
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengl.h
@@ -0,0 +1,2183 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_opengl.h
+ *
+ *  This is a simple file to encapsulate the OpenGL API headers.
+ */
+
+/**
+ *  \def NO_SDL_GLEXT
+ *
+ *  Define this if you have your own version of glext.h and want to disable the
+ *  version included in SDL_opengl.h.
+ */
+
+#ifndef SDL_opengl_h_
+#define SDL_opengl_h_
+
+#include "SDL_config.h"
+
+#ifndef __IPHONEOS__  /* No OpenGL on iOS. */
+
+/*
+ * Mesa 3-D graphics library
+ *
+ * Copyright (C) 1999-2006  Brian Paul   All Rights Reserved.
+ * Copyright (C) 2009  VMware, Inc.  All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+
+#ifndef __gl_h_
+#define __gl_h_
+
+#if defined(USE_MGL_NAMESPACE)
+#include "gl_mangle.h"
+#endif
+
+
+/**********************************************************************
+ * Begin system-specific stuff.
+ */
+
+#if defined(_WIN32) && !defined(__WIN32__) && !defined(__CYGWIN__)
+#define __WIN32__
+#endif
+
+#if defined(__WIN32__) && !defined(__CYGWIN__)
+#  if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */
+#    define GLAPI __declspec(dllexport)
+#  elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) /* tag specifying we're building for DLL runtime support */
+#    define GLAPI __declspec(dllimport)
+#  else /* for use with static link lib build of Win32 edition only */
+#    define GLAPI extern
+#  endif /* _STATIC_MESA support */
+#  if defined(__MINGW32__) && defined(GL_NO_STDCALL) || defined(UNDER_CE)  /* The generated DLLs by MingW with STDCALL are not compatible with the ones done by Microsoft's compilers */
+#    define GLAPIENTRY 
+#  else
+#    define GLAPIENTRY __stdcall
+#  endif
+#elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */
+#  define GLAPI extern
+#  define GLAPIENTRY __stdcall
+#elif defined(__OS2__) || defined(__EMX__) /* native os/2 opengl */
+#  define GLAPI extern
+#  define GLAPIENTRY _System
+#  define APIENTRY _System
+#  if defined(__GNUC__) && !defined(_System)
+#    define _System
+#  endif
+#elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
+#  define GLAPI __attribute__((visibility("default")))
+#  define GLAPIENTRY
+#endif /* WIN32 && !CYGWIN */
+
+/*
+ * WINDOWS: Include windows.h here to define APIENTRY.
+ * It is also useful when applications include this file by
+ * including only glut.h, since glut.h depends on windows.h.
+ * Applications needing to include windows.h with parms other
+ * than "WIN32_LEAN_AND_MEAN" may include windows.h before
+ * glut.h or gl.h.
+ */
+#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN 1
+#endif
+#ifndef NOMINMAX   /* don't define min() and max(). */
+#define NOMINMAX
+#endif
+#include <windows.h>
+#endif
+
+#ifndef GLAPI
+#define GLAPI extern
+#endif
+
+#ifndef GLAPIENTRY
+#define GLAPIENTRY
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY GLAPIENTRY
+#endif
+
+/* "P" suffix to be used for a pointer to a function */
+#ifndef APIENTRYP
+#define APIENTRYP APIENTRY *
+#endif
+
+#ifndef GLAPIENTRYP
+#define GLAPIENTRYP GLAPIENTRY *
+#endif
+
+#if defined(PRAGMA_EXPORT_SUPPORTED)
+#pragma export on
+#endif
+
+/*
+ * End system-specific stuff.
+ **********************************************************************/
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+
+#define GL_VERSION_1_1   1
+#define GL_VERSION_1_2   1
+#define GL_VERSION_1_3   1
+#define GL_ARB_imaging   1
+
+
+/*
+ * Datatypes
+ */
+typedef unsigned int	GLenum;
+typedef unsigned char	GLboolean;
+typedef unsigned int	GLbitfield;
+typedef void		GLvoid;
+typedef signed char	GLbyte;		/* 1-byte signed */
+typedef short		GLshort;	/* 2-byte signed */
+typedef int		GLint;		/* 4-byte signed */
+typedef unsigned char	GLubyte;	/* 1-byte unsigned */
+typedef unsigned short	GLushort;	/* 2-byte unsigned */
+typedef unsigned int	GLuint;		/* 4-byte unsigned */
+typedef int		GLsizei;	/* 4-byte signed */
+typedef float		GLfloat;	/* single precision float */
+typedef float		GLclampf;	/* single precision float in [0,1] */
+typedef double		GLdouble;	/* double precision float */
+typedef double		GLclampd;	/* double precision float in [0,1] */
+
+
+
+/*
+ * Constants
+ */
+
+/* Boolean values */
+#define GL_FALSE				0
+#define GL_TRUE					1
+
+/* Data types */
+#define GL_BYTE					0x1400
+#define GL_UNSIGNED_BYTE			0x1401
+#define GL_SHORT				0x1402
+#define GL_UNSIGNED_SHORT			0x1403
+#define GL_INT					0x1404
+#define GL_UNSIGNED_INT				0x1405
+#define GL_FLOAT				0x1406
+#define GL_2_BYTES				0x1407
+#define GL_3_BYTES				0x1408
+#define GL_4_BYTES				0x1409
+#define GL_DOUBLE				0x140A
+
+/* Primitives */
+#define GL_POINTS				0x0000
+#define GL_LINES				0x0001
+#define GL_LINE_LOOP				0x0002
+#define GL_LINE_STRIP				0x0003
+#define GL_TRIANGLES				0x0004
+#define GL_TRIANGLE_STRIP			0x0005
+#define GL_TRIANGLE_FAN				0x0006
+#define GL_QUADS				0x0007
+#define GL_QUAD_STRIP				0x0008
+#define GL_POLYGON				0x0009
+
+/* Vertex Arrays */
+#define GL_VERTEX_ARRAY				0x8074
+#define GL_NORMAL_ARRAY				0x8075
+#define GL_COLOR_ARRAY				0x8076
+#define GL_INDEX_ARRAY				0x8077
+#define GL_TEXTURE_COORD_ARRAY			0x8078
+#define GL_EDGE_FLAG_ARRAY			0x8079
+#define GL_VERTEX_ARRAY_SIZE			0x807A
+#define GL_VERTEX_ARRAY_TYPE			0x807B
+#define GL_VERTEX_ARRAY_STRIDE			0x807C
+#define GL_NORMAL_ARRAY_TYPE			0x807E
+#define GL_NORMAL_ARRAY_STRIDE			0x807F
+#define GL_COLOR_ARRAY_SIZE			0x8081
+#define GL_COLOR_ARRAY_TYPE			0x8082
+#define GL_COLOR_ARRAY_STRIDE			0x8083
+#define GL_INDEX_ARRAY_TYPE			0x8085
+#define GL_INDEX_ARRAY_STRIDE			0x8086
+#define GL_TEXTURE_COORD_ARRAY_SIZE		0x8088
+#define GL_TEXTURE_COORD_ARRAY_TYPE		0x8089
+#define GL_TEXTURE_COORD_ARRAY_STRIDE		0x808A
+#define GL_EDGE_FLAG_ARRAY_STRIDE		0x808C
+#define GL_VERTEX_ARRAY_POINTER			0x808E
+#define GL_NORMAL_ARRAY_POINTER			0x808F
+#define GL_COLOR_ARRAY_POINTER			0x8090
+#define GL_INDEX_ARRAY_POINTER			0x8091
+#define GL_TEXTURE_COORD_ARRAY_POINTER		0x8092
+#define GL_EDGE_FLAG_ARRAY_POINTER		0x8093
+#define GL_V2F					0x2A20
+#define GL_V3F					0x2A21
+#define GL_C4UB_V2F				0x2A22
+#define GL_C4UB_V3F				0x2A23
+#define GL_C3F_V3F				0x2A24
+#define GL_N3F_V3F				0x2A25
+#define GL_C4F_N3F_V3F				0x2A26
+#define GL_T2F_V3F				0x2A27
+#define GL_T4F_V4F				0x2A28
+#define GL_T2F_C4UB_V3F				0x2A29
+#define GL_T2F_C3F_V3F				0x2A2A
+#define GL_T2F_N3F_V3F				0x2A2B
+#define GL_T2F_C4F_N3F_V3F			0x2A2C
+#define GL_T4F_C4F_N3F_V4F			0x2A2D
+
+/* Matrix Mode */
+#define GL_MATRIX_MODE				0x0BA0
+#define GL_MODELVIEW				0x1700
+#define GL_PROJECTION				0x1701
+#define GL_TEXTURE				0x1702
+
+/* Points */
+#define GL_POINT_SMOOTH				0x0B10
+#define GL_POINT_SIZE				0x0B11
+#define GL_POINT_SIZE_GRANULARITY 		0x0B13
+#define GL_POINT_SIZE_RANGE			0x0B12
+
+/* Lines */
+#define GL_LINE_SMOOTH				0x0B20
+#define GL_LINE_STIPPLE				0x0B24
+#define GL_LINE_STIPPLE_PATTERN			0x0B25
+#define GL_LINE_STIPPLE_REPEAT			0x0B26
+#define GL_LINE_WIDTH				0x0B21
+#define GL_LINE_WIDTH_GRANULARITY		0x0B23
+#define GL_LINE_WIDTH_RANGE			0x0B22
+
+/* Polygons */
+#define GL_POINT				0x1B00
+#define GL_LINE					0x1B01
+#define GL_FILL					0x1B02
+#define GL_CW					0x0900
+#define GL_CCW					0x0901
+#define GL_FRONT				0x0404
+#define GL_BACK					0x0405
+#define GL_POLYGON_MODE				0x0B40
+#define GL_POLYGON_SMOOTH			0x0B41
+#define GL_POLYGON_STIPPLE			0x0B42
+#define GL_EDGE_FLAG				0x0B43
+#define GL_CULL_FACE				0x0B44
+#define GL_CULL_FACE_MODE			0x0B45
+#define GL_FRONT_FACE				0x0B46
+#define GL_POLYGON_OFFSET_FACTOR		0x8038
+#define GL_POLYGON_OFFSET_UNITS			0x2A00
+#define GL_POLYGON_OFFSET_POINT			0x2A01
+#define GL_POLYGON_OFFSET_LINE			0x2A02
+#define GL_POLYGON_OFFSET_FILL			0x8037
+
+/* Display Lists */
+#define GL_COMPILE				0x1300
+#define GL_COMPILE_AND_EXECUTE			0x1301
+#define GL_LIST_BASE				0x0B32
+#define GL_LIST_INDEX				0x0B33
+#define GL_LIST_MODE				0x0B30
+
+/* Depth buffer */
+#define GL_NEVER				0x0200
+#define GL_LESS					0x0201
+#define GL_EQUAL				0x0202
+#define GL_LEQUAL				0x0203
+#define GL_GREATER				0x0204
+#define GL_NOTEQUAL				0x0205
+#define GL_GEQUAL				0x0206
+#define GL_ALWAYS				0x0207
+#define GL_DEPTH_TEST				0x0B71
+#define GL_DEPTH_BITS				0x0D56
+#define GL_DEPTH_CLEAR_VALUE			0x0B73
+#define GL_DEPTH_FUNC				0x0B74
+#define GL_DEPTH_RANGE				0x0B70
+#define GL_DEPTH_WRITEMASK			0x0B72
+#define GL_DEPTH_COMPONENT			0x1902
+
+/* Lighting */
+#define GL_LIGHTING				0x0B50
+#define GL_LIGHT0				0x4000
+#define GL_LIGHT1				0x4001
+#define GL_LIGHT2				0x4002
+#define GL_LIGHT3				0x4003
+#define GL_LIGHT4				0x4004
+#define GL_LIGHT5				0x4005
+#define GL_LIGHT6				0x4006
+#define GL_LIGHT7				0x4007
+#define GL_SPOT_EXPONENT			0x1205
+#define GL_SPOT_CUTOFF				0x1206
+#define GL_CONSTANT_ATTENUATION			0x1207
+#define GL_LINEAR_ATTENUATION			0x1208
+#define GL_QUADRATIC_ATTENUATION		0x1209
+#define GL_AMBIENT				0x1200
+#define GL_DIFFUSE				0x1201
+#define GL_SPECULAR				0x1202
+#define GL_SHININESS				0x1601
+#define GL_EMISSION				0x1600
+#define GL_POSITION				0x1203
+#define GL_SPOT_DIRECTION			0x1204
+#define GL_AMBIENT_AND_DIFFUSE			0x1602
+#define GL_COLOR_INDEXES			0x1603
+#define GL_LIGHT_MODEL_TWO_SIDE			0x0B52
+#define GL_LIGHT_MODEL_LOCAL_VIEWER		0x0B51
+#define GL_LIGHT_MODEL_AMBIENT			0x0B53
+#define GL_FRONT_AND_BACK			0x0408
+#define GL_SHADE_MODEL				0x0B54
+#define GL_FLAT					0x1D00
+#define GL_SMOOTH				0x1D01
+#define GL_COLOR_MATERIAL			0x0B57
+#define GL_COLOR_MATERIAL_FACE			0x0B55
+#define GL_COLOR_MATERIAL_PARAMETER		0x0B56
+#define GL_NORMALIZE				0x0BA1
+
+/* User clipping planes */
+#define GL_CLIP_PLANE0				0x3000
+#define GL_CLIP_PLANE1				0x3001
+#define GL_CLIP_PLANE2				0x3002
+#define GL_CLIP_PLANE3				0x3003
+#define GL_CLIP_PLANE4				0x3004
+#define GL_CLIP_PLANE5				0x3005
+
+/* Accumulation buffer */
+#define GL_ACCUM_RED_BITS			0x0D58
+#define GL_ACCUM_GREEN_BITS			0x0D59
+#define GL_ACCUM_BLUE_BITS			0x0D5A
+#define GL_ACCUM_ALPHA_BITS			0x0D5B
+#define GL_ACCUM_CLEAR_VALUE			0x0B80
+#define GL_ACCUM				0x0100
+#define GL_ADD					0x0104
+#define GL_LOAD					0x0101
+#define GL_MULT					0x0103
+#define GL_RETURN				0x0102
+
+/* Alpha testing */
+#define GL_ALPHA_TEST				0x0BC0
+#define GL_ALPHA_TEST_REF			0x0BC2
+#define GL_ALPHA_TEST_FUNC			0x0BC1
+
+/* Blending */
+#define GL_BLEND				0x0BE2
+#define GL_BLEND_SRC				0x0BE1
+#define GL_BLEND_DST				0x0BE0
+#define GL_ZERO					0
+#define GL_ONE					1
+#define GL_SRC_COLOR				0x0300
+#define GL_ONE_MINUS_SRC_COLOR			0x0301
+#define GL_SRC_ALPHA				0x0302
+#define GL_ONE_MINUS_SRC_ALPHA			0x0303
+#define GL_DST_ALPHA				0x0304
+#define GL_ONE_MINUS_DST_ALPHA			0x0305
+#define GL_DST_COLOR				0x0306
+#define GL_ONE_MINUS_DST_COLOR			0x0307
+#define GL_SRC_ALPHA_SATURATE			0x0308
+
+/* Render Mode */
+#define GL_FEEDBACK				0x1C01
+#define GL_RENDER				0x1C00
+#define GL_SELECT				0x1C02
+
+/* Feedback */
+#define GL_2D					0x0600
+#define GL_3D					0x0601
+#define GL_3D_COLOR				0x0602
+#define GL_3D_COLOR_TEXTURE			0x0603
+#define GL_4D_COLOR_TEXTURE			0x0604
+#define GL_POINT_TOKEN				0x0701
+#define GL_LINE_TOKEN				0x0702
+#define GL_LINE_RESET_TOKEN			0x0707
+#define GL_POLYGON_TOKEN			0x0703
+#define GL_BITMAP_TOKEN				0x0704
+#define GL_DRAW_PIXEL_TOKEN			0x0705
+#define GL_COPY_PIXEL_TOKEN			0x0706
+#define GL_PASS_THROUGH_TOKEN			0x0700
+#define GL_FEEDBACK_BUFFER_POINTER		0x0DF0
+#define GL_FEEDBACK_BUFFER_SIZE			0x0DF1
+#define GL_FEEDBACK_BUFFER_TYPE			0x0DF2
+
+/* Selection */
+#define GL_SELECTION_BUFFER_POINTER		0x0DF3
+#define GL_SELECTION_BUFFER_SIZE		0x0DF4
+
+/* Fog */
+#define GL_FOG					0x0B60
+#define GL_FOG_MODE				0x0B65
+#define GL_FOG_DENSITY				0x0B62
+#define GL_FOG_COLOR				0x0B66
+#define GL_FOG_INDEX				0x0B61
+#define GL_FOG_START				0x0B63
+#define GL_FOG_END				0x0B64
+#define GL_LINEAR				0x2601
+#define GL_EXP					0x0800
+#define GL_EXP2					0x0801
+
+/* Logic Ops */
+#define GL_LOGIC_OP				0x0BF1
+#define GL_INDEX_LOGIC_OP			0x0BF1
+#define GL_COLOR_LOGIC_OP			0x0BF2
+#define GL_LOGIC_OP_MODE			0x0BF0
+#define GL_CLEAR				0x1500
+#define GL_SET					0x150F
+#define GL_COPY					0x1503
+#define GL_COPY_INVERTED			0x150C
+#define GL_NOOP					0x1505
+#define GL_INVERT				0x150A
+#define GL_AND					0x1501
+#define GL_NAND					0x150E
+#define GL_OR					0x1507
+#define GL_NOR					0x1508
+#define GL_XOR					0x1506
+#define GL_EQUIV				0x1509
+#define GL_AND_REVERSE				0x1502
+#define GL_AND_INVERTED				0x1504
+#define GL_OR_REVERSE				0x150B
+#define GL_OR_INVERTED				0x150D
+
+/* Stencil */
+#define GL_STENCIL_BITS				0x0D57
+#define GL_STENCIL_TEST				0x0B90
+#define GL_STENCIL_CLEAR_VALUE			0x0B91
+#define GL_STENCIL_FUNC				0x0B92
+#define GL_STENCIL_VALUE_MASK			0x0B93
+#define GL_STENCIL_FAIL				0x0B94
+#define GL_STENCIL_PASS_DEPTH_FAIL		0x0B95
+#define GL_STENCIL_PASS_DEPTH_PASS		0x0B96
+#define GL_STENCIL_REF				0x0B97
+#define GL_STENCIL_WRITEMASK			0x0B98
+#define GL_STENCIL_INDEX			0x1901
+#define GL_KEEP					0x1E00
+#define GL_REPLACE				0x1E01
+#define GL_INCR					0x1E02
+#define GL_DECR					0x1E03
+
+/* Buffers, Pixel Drawing/Reading */
+#define GL_NONE					0
+#define GL_LEFT					0x0406
+#define GL_RIGHT				0x0407
+/*GL_FRONT					0x0404 */
+/*GL_BACK					0x0405 */
+/*GL_FRONT_AND_BACK				0x0408 */
+#define GL_FRONT_LEFT				0x0400
+#define GL_FRONT_RIGHT				0x0401
+#define GL_BACK_LEFT				0x0402
+#define GL_BACK_RIGHT				0x0403
+#define GL_AUX0					0x0409
+#define GL_AUX1					0x040A
+#define GL_AUX2					0x040B
+#define GL_AUX3					0x040C
+#define GL_COLOR_INDEX				0x1900
+#define GL_RED					0x1903
+#define GL_GREEN				0x1904
+#define GL_BLUE					0x1905
+#define GL_ALPHA				0x1906
+#define GL_LUMINANCE				0x1909
+#define GL_LUMINANCE_ALPHA			0x190A
+#define GL_ALPHA_BITS				0x0D55
+#define GL_RED_BITS				0x0D52
+#define GL_GREEN_BITS				0x0D53
+#define GL_BLUE_BITS				0x0D54
+#define GL_INDEX_BITS				0x0D51
+#define GL_SUBPIXEL_BITS			0x0D50
+#define GL_AUX_BUFFERS				0x0C00
+#define GL_READ_BUFFER				0x0C02
+#define GL_DRAW_BUFFER				0x0C01
+#define GL_DOUBLEBUFFER				0x0C32
+#define GL_STEREO				0x0C33
+#define GL_BITMAP				0x1A00
+#define GL_COLOR				0x1800
+#define GL_DEPTH				0x1801
+#define GL_STENCIL				0x1802
+#define GL_DITHER				0x0BD0
+#define GL_RGB					0x1907
+#define GL_RGBA					0x1908
+
+/* Implementation limits */
+#define GL_MAX_LIST_NESTING			0x0B31
+#define GL_MAX_EVAL_ORDER			0x0D30
+#define GL_MAX_LIGHTS				0x0D31
+#define GL_MAX_CLIP_PLANES			0x0D32
+#define GL_MAX_TEXTURE_SIZE			0x0D33
+#define GL_MAX_PIXEL_MAP_TABLE			0x0D34
+#define GL_MAX_ATTRIB_STACK_DEPTH		0x0D35
+#define GL_MAX_MODELVIEW_STACK_DEPTH		0x0D36
+#define GL_MAX_NAME_STACK_DEPTH			0x0D37
+#define GL_MAX_PROJECTION_STACK_DEPTH		0x0D38
+#define GL_MAX_TEXTURE_STACK_DEPTH		0x0D39
+#define GL_MAX_VIEWPORT_DIMS			0x0D3A
+#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH	0x0D3B
+
+/* Gets */
+#define GL_ATTRIB_STACK_DEPTH			0x0BB0
+#define GL_CLIENT_ATTRIB_STACK_DEPTH		0x0BB1
+#define GL_COLOR_CLEAR_VALUE			0x0C22
+#define GL_COLOR_WRITEMASK			0x0C23
+#define GL_CURRENT_INDEX			0x0B01
+#define GL_CURRENT_COLOR			0x0B00
+#define GL_CURRENT_NORMAL			0x0B02
+#define GL_CURRENT_RASTER_COLOR			0x0B04
+#define GL_CURRENT_RASTER_DISTANCE		0x0B09
+#define GL_CURRENT_RASTER_INDEX			0x0B05
+#define GL_CURRENT_RASTER_POSITION		0x0B07
+#define GL_CURRENT_RASTER_TEXTURE_COORDS	0x0B06
+#define GL_CURRENT_RASTER_POSITION_VALID	0x0B08
+#define GL_CURRENT_TEXTURE_COORDS		0x0B03
+#define GL_INDEX_CLEAR_VALUE			0x0C20
+#define GL_INDEX_MODE				0x0C30
+#define GL_INDEX_WRITEMASK			0x0C21
+#define GL_MODELVIEW_MATRIX			0x0BA6
+#define GL_MODELVIEW_STACK_DEPTH		0x0BA3
+#define GL_NAME_STACK_DEPTH			0x0D70
+#define GL_PROJECTION_MATRIX			0x0BA7
+#define GL_PROJECTION_STACK_DEPTH		0x0BA4
+#define GL_RENDER_MODE				0x0C40
+#define GL_RGBA_MODE				0x0C31
+#define GL_TEXTURE_MATRIX			0x0BA8
+#define GL_TEXTURE_STACK_DEPTH			0x0BA5
+#define GL_VIEWPORT				0x0BA2
+
+/* Evaluators */
+#define GL_AUTO_NORMAL				0x0D80
+#define GL_MAP1_COLOR_4				0x0D90
+#define GL_MAP1_INDEX				0x0D91
+#define GL_MAP1_NORMAL				0x0D92
+#define GL_MAP1_TEXTURE_COORD_1			0x0D93
+#define GL_MAP1_TEXTURE_COORD_2			0x0D94
+#define GL_MAP1_TEXTURE_COORD_3			0x0D95
+#define GL_MAP1_TEXTURE_COORD_4			0x0D96
+#define GL_MAP1_VERTEX_3			0x0D97
+#define GL_MAP1_VERTEX_4			0x0D98
+#define GL_MAP2_COLOR_4				0x0DB0
+#define GL_MAP2_INDEX				0x0DB1
+#define GL_MAP2_NORMAL				0x0DB2
+#define GL_MAP2_TEXTURE_COORD_1			0x0DB3
+#define GL_MAP2_TEXTURE_COORD_2			0x0DB4
+#define GL_MAP2_TEXTURE_COORD_3			0x0DB5
+#define GL_MAP2_TEXTURE_COORD_4			0x0DB6
+#define GL_MAP2_VERTEX_3			0x0DB7
+#define GL_MAP2_VERTEX_4			0x0DB8
+#define GL_MAP1_GRID_DOMAIN			0x0DD0
+#define GL_MAP1_GRID_SEGMENTS			0x0DD1
+#define GL_MAP2_GRID_DOMAIN			0x0DD2
+#define GL_MAP2_GRID_SEGMENTS			0x0DD3
+#define GL_COEFF				0x0A00
+#define GL_ORDER				0x0A01
+#define GL_DOMAIN				0x0A02
+
+/* Hints */
+#define GL_PERSPECTIVE_CORRECTION_HINT		0x0C50
+#define GL_POINT_SMOOTH_HINT			0x0C51
+#define GL_LINE_SMOOTH_HINT			0x0C52
+#define GL_POLYGON_SMOOTH_HINT			0x0C53
+#define GL_FOG_HINT				0x0C54
+#define GL_DONT_CARE				0x1100
+#define GL_FASTEST				0x1101
+#define GL_NICEST				0x1102
+
+/* Scissor box */
+#define GL_SCISSOR_BOX				0x0C10
+#define GL_SCISSOR_TEST				0x0C11
+
+/* Pixel Mode / Transfer */
+#define GL_MAP_COLOR				0x0D10
+#define GL_MAP_STENCIL				0x0D11
+#define GL_INDEX_SHIFT				0x0D12
+#define GL_INDEX_OFFSET				0x0D13
+#define GL_RED_SCALE				0x0D14
+#define GL_RED_BIAS				0x0D15
+#define GL_GREEN_SCALE				0x0D18
+#define GL_GREEN_BIAS				0x0D19
+#define GL_BLUE_SCALE				0x0D1A
+#define GL_BLUE_BIAS				0x0D1B
+#define GL_ALPHA_SCALE				0x0D1C
+#define GL_ALPHA_BIAS				0x0D1D
+#define GL_DEPTH_SCALE				0x0D1E
+#define GL_DEPTH_BIAS				0x0D1F
+#define GL_PIXEL_MAP_S_TO_S_SIZE		0x0CB1
+#define GL_PIXEL_MAP_I_TO_I_SIZE		0x0CB0
+#define GL_PIXEL_MAP_I_TO_R_SIZE		0x0CB2
+#define GL_PIXEL_MAP_I_TO_G_SIZE		0x0CB3
+#define GL_PIXEL_MAP_I_TO_B_SIZE		0x0CB4
+#define GL_PIXEL_MAP_I_TO_A_SIZE		0x0CB5
+#define GL_PIXEL_MAP_R_TO_R_SIZE		0x0CB6
+#define GL_PIXEL_MAP_G_TO_G_SIZE		0x0CB7
+#define GL_PIXEL_MAP_B_TO_B_SIZE		0x0CB8
+#define GL_PIXEL_MAP_A_TO_A_SIZE		0x0CB9
+#define GL_PIXEL_MAP_S_TO_S			0x0C71
+#define GL_PIXEL_MAP_I_TO_I			0x0C70
+#define GL_PIXEL_MAP_I_TO_R			0x0C72
+#define GL_PIXEL_MAP_I_TO_G			0x0C73
+#define GL_PIXEL_MAP_I_TO_B			0x0C74
+#define GL_PIXEL_MAP_I_TO_A			0x0C75
+#define GL_PIXEL_MAP_R_TO_R			0x0C76
+#define GL_PIXEL_MAP_G_TO_G			0x0C77
+#define GL_PIXEL_MAP_B_TO_B			0x0C78
+#define GL_PIXEL_MAP_A_TO_A			0x0C79
+#define GL_PACK_ALIGNMENT			0x0D05
+#define GL_PACK_LSB_FIRST			0x0D01
+#define GL_PACK_ROW_LENGTH			0x0D02
+#define GL_PACK_SKIP_PIXELS			0x0D04
+#define GL_PACK_SKIP_ROWS			0x0D03
+#define GL_PACK_SWAP_BYTES			0x0D00
+#define GL_UNPACK_ALIGNMENT			0x0CF5
+#define GL_UNPACK_LSB_FIRST			0x0CF1
+#define GL_UNPACK_ROW_LENGTH			0x0CF2
+#define GL_UNPACK_SKIP_PIXELS			0x0CF4
+#define GL_UNPACK_SKIP_ROWS			0x0CF3
+#define GL_UNPACK_SWAP_BYTES			0x0CF0
+#define GL_ZOOM_X				0x0D16
+#define GL_ZOOM_Y				0x0D17
+
+/* Texture mapping */
+#define GL_TEXTURE_ENV				0x2300
+#define GL_TEXTURE_ENV_MODE			0x2200
+#define GL_TEXTURE_1D				0x0DE0
+#define GL_TEXTURE_2D				0x0DE1
+#define GL_TEXTURE_WRAP_S			0x2802
+#define GL_TEXTURE_WRAP_T			0x2803
+#define GL_TEXTURE_MAG_FILTER			0x2800
+#define GL_TEXTURE_MIN_FILTER			0x2801
+#define GL_TEXTURE_ENV_COLOR			0x2201
+#define GL_TEXTURE_GEN_S			0x0C60
+#define GL_TEXTURE_GEN_T			0x0C61
+#define GL_TEXTURE_GEN_R			0x0C62
+#define GL_TEXTURE_GEN_Q			0x0C63
+#define GL_TEXTURE_GEN_MODE			0x2500
+#define GL_TEXTURE_BORDER_COLOR			0x1004
+#define GL_TEXTURE_WIDTH			0x1000
+#define GL_TEXTURE_HEIGHT			0x1001
+#define GL_TEXTURE_BORDER			0x1005
+#define GL_TEXTURE_COMPONENTS			0x1003
+#define GL_TEXTURE_RED_SIZE			0x805C
+#define GL_TEXTURE_GREEN_SIZE			0x805D
+#define GL_TEXTURE_BLUE_SIZE			0x805E
+#define GL_TEXTURE_ALPHA_SIZE			0x805F
+#define GL_TEXTURE_LUMINANCE_SIZE		0x8060
+#define GL_TEXTURE_INTENSITY_SIZE		0x8061
+#define GL_NEAREST_MIPMAP_NEAREST		0x2700
+#define GL_NEAREST_MIPMAP_LINEAR		0x2702
+#define GL_LINEAR_MIPMAP_NEAREST		0x2701
+#define GL_LINEAR_MIPMAP_LINEAR			0x2703
+#define GL_OBJECT_LINEAR			0x2401
+#define GL_OBJECT_PLANE				0x2501
+#define GL_EYE_LINEAR				0x2400
+#define GL_EYE_PLANE				0x2502
+#define GL_SPHERE_MAP				0x2402
+#define GL_DECAL				0x2101
+#define GL_MODULATE				0x2100
+#define GL_NEAREST				0x2600
+#define GL_REPEAT				0x2901
+#define GL_CLAMP				0x2900
+#define GL_S					0x2000
+#define GL_T					0x2001
+#define GL_R					0x2002
+#define GL_Q					0x2003
+
+/* Utility */
+#define GL_VENDOR				0x1F00
+#define GL_RENDERER				0x1F01
+#define GL_VERSION				0x1F02
+#define GL_EXTENSIONS				0x1F03
+
+/* Errors */
+#define GL_NO_ERROR 				0
+#define GL_INVALID_ENUM				0x0500
+#define GL_INVALID_VALUE			0x0501
+#define GL_INVALID_OPERATION			0x0502
+#define GL_STACK_OVERFLOW			0x0503
+#define GL_STACK_UNDERFLOW			0x0504
+#define GL_OUT_OF_MEMORY			0x0505
+
+/* glPush/PopAttrib bits */
+#define GL_CURRENT_BIT				0x00000001
+#define GL_POINT_BIT				0x00000002
+#define GL_LINE_BIT				0x00000004
+#define GL_POLYGON_BIT				0x00000008
+#define GL_POLYGON_STIPPLE_BIT			0x00000010
+#define GL_PIXEL_MODE_BIT			0x00000020
+#define GL_LIGHTING_BIT				0x00000040
+#define GL_FOG_BIT				0x00000080
+#define GL_DEPTH_BUFFER_BIT			0x00000100
+#define GL_ACCUM_BUFFER_BIT			0x00000200
+#define GL_STENCIL_BUFFER_BIT			0x00000400
+#define GL_VIEWPORT_BIT				0x00000800
+#define GL_TRANSFORM_BIT			0x00001000
+#define GL_ENABLE_BIT				0x00002000
+#define GL_COLOR_BUFFER_BIT			0x00004000
+#define GL_HINT_BIT				0x00008000
+#define GL_EVAL_BIT				0x00010000
+#define GL_LIST_BIT				0x00020000
+#define GL_TEXTURE_BIT				0x00040000
+#define GL_SCISSOR_BIT				0x00080000
+#define GL_ALL_ATTRIB_BITS			0x000FFFFF
+
+
+/* OpenGL 1.1 */
+#define GL_PROXY_TEXTURE_1D			0x8063
+#define GL_PROXY_TEXTURE_2D			0x8064
+#define GL_TEXTURE_PRIORITY			0x8066
+#define GL_TEXTURE_RESIDENT			0x8067
+#define GL_TEXTURE_BINDING_1D			0x8068
+#define GL_TEXTURE_BINDING_2D			0x8069
+#define GL_TEXTURE_INTERNAL_FORMAT		0x1003
+#define GL_ALPHA4				0x803B
+#define GL_ALPHA8				0x803C
+#define GL_ALPHA12				0x803D
+#define GL_ALPHA16				0x803E
+#define GL_LUMINANCE4				0x803F
+#define GL_LUMINANCE8				0x8040
+#define GL_LUMINANCE12				0x8041
+#define GL_LUMINANCE16				0x8042
+#define GL_LUMINANCE4_ALPHA4			0x8043
+#define GL_LUMINANCE6_ALPHA2			0x8044
+#define GL_LUMINANCE8_ALPHA8			0x8045
+#define GL_LUMINANCE12_ALPHA4			0x8046
+#define GL_LUMINANCE12_ALPHA12			0x8047
+#define GL_LUMINANCE16_ALPHA16			0x8048
+#define GL_INTENSITY				0x8049
+#define GL_INTENSITY4				0x804A
+#define GL_INTENSITY8				0x804B
+#define GL_INTENSITY12				0x804C
+#define GL_INTENSITY16				0x804D
+#define GL_R3_G3_B2				0x2A10
+#define GL_RGB4					0x804F
+#define GL_RGB5					0x8050
+#define GL_RGB8					0x8051
+#define GL_RGB10				0x8052
+#define GL_RGB12				0x8053
+#define GL_RGB16				0x8054
+#define GL_RGBA2				0x8055
+#define GL_RGBA4				0x8056
+#define GL_RGB5_A1				0x8057
+#define GL_RGBA8				0x8058
+#define GL_RGB10_A2				0x8059
+#define GL_RGBA12				0x805A
+#define GL_RGBA16				0x805B
+#define GL_CLIENT_PIXEL_STORE_BIT		0x00000001
+#define GL_CLIENT_VERTEX_ARRAY_BIT		0x00000002
+#define GL_ALL_CLIENT_ATTRIB_BITS 		0xFFFFFFFF
+#define GL_CLIENT_ALL_ATTRIB_BITS 		0xFFFFFFFF
+
+
+
+/*
+ * Miscellaneous
+ */
+
+GLAPI void GLAPIENTRY glClearIndex( GLfloat c );
+
+GLAPI void GLAPIENTRY glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
+
+GLAPI void GLAPIENTRY glClear( GLbitfield mask );
+
+GLAPI void GLAPIENTRY glIndexMask( GLuint mask );
+
+GLAPI void GLAPIENTRY glColorMask( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha );
+
+GLAPI void GLAPIENTRY glAlphaFunc( GLenum func, GLclampf ref );
+
+GLAPI void GLAPIENTRY glBlendFunc( GLenum sfactor, GLenum dfactor );
+
+GLAPI void GLAPIENTRY glLogicOp( GLenum opcode );
+
+GLAPI void GLAPIENTRY glCullFace( GLenum mode );
+
+GLAPI void GLAPIENTRY glFrontFace( GLenum mode );
+
+GLAPI void GLAPIENTRY glPointSize( GLfloat size );
+
+GLAPI void GLAPIENTRY glLineWidth( GLfloat width );
+
+GLAPI void GLAPIENTRY glLineStipple( GLint factor, GLushort pattern );
+
+GLAPI void GLAPIENTRY glPolygonMode( GLenum face, GLenum mode );
+
+GLAPI void GLAPIENTRY glPolygonOffset( GLfloat factor, GLfloat units );
+
+GLAPI void GLAPIENTRY glPolygonStipple( const GLubyte *mask );
+
+GLAPI void GLAPIENTRY glGetPolygonStipple( GLubyte *mask );
+
+GLAPI void GLAPIENTRY glEdgeFlag( GLboolean flag );
+
+GLAPI void GLAPIENTRY glEdgeFlagv( const GLboolean *flag );
+
+GLAPI void GLAPIENTRY glScissor( GLint x, GLint y, GLsizei width, GLsizei height);
+
+GLAPI void GLAPIENTRY glClipPlane( GLenum plane, const GLdouble *equation );
+
+GLAPI void GLAPIENTRY glGetClipPlane( GLenum plane, GLdouble *equation );
+
+GLAPI void GLAPIENTRY glDrawBuffer( GLenum mode );
+
+GLAPI void GLAPIENTRY glReadBuffer( GLenum mode );
+
+GLAPI void GLAPIENTRY glEnable( GLenum cap );
+
+GLAPI void GLAPIENTRY glDisable( GLenum cap );
+
+GLAPI GLboolean GLAPIENTRY glIsEnabled( GLenum cap );
+
+
+GLAPI void GLAPIENTRY glEnableClientState( GLenum cap );  /* 1.1 */
+
+GLAPI void GLAPIENTRY glDisableClientState( GLenum cap );  /* 1.1 */
+
+
+GLAPI void GLAPIENTRY glGetBooleanv( GLenum pname, GLboolean *params );
+
+GLAPI void GLAPIENTRY glGetDoublev( GLenum pname, GLdouble *params );
+
+GLAPI void GLAPIENTRY glGetFloatv( GLenum pname, GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetIntegerv( GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glPushAttrib( GLbitfield mask );
+
+GLAPI void GLAPIENTRY glPopAttrib( void );
+
+
+GLAPI void GLAPIENTRY glPushClientAttrib( GLbitfield mask );  /* 1.1 */
+
+GLAPI void GLAPIENTRY glPopClientAttrib( void );  /* 1.1 */
+
+
+GLAPI GLint GLAPIENTRY glRenderMode( GLenum mode );
+
+GLAPI GLenum GLAPIENTRY glGetError( void );
+
+GLAPI const GLubyte * GLAPIENTRY glGetString( GLenum name );
+
+GLAPI void GLAPIENTRY glFinish( void );
+
+GLAPI void GLAPIENTRY glFlush( void );
+
+GLAPI void GLAPIENTRY glHint( GLenum target, GLenum mode );
+
+
+/*
+ * Depth Buffer
+ */
+
+GLAPI void GLAPIENTRY glClearDepth( GLclampd depth );
+
+GLAPI void GLAPIENTRY glDepthFunc( GLenum func );
+
+GLAPI void GLAPIENTRY glDepthMask( GLboolean flag );
+
+GLAPI void GLAPIENTRY glDepthRange( GLclampd near_val, GLclampd far_val );
+
+
+/*
+ * Accumulation Buffer
+ */
+
+GLAPI void GLAPIENTRY glClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha );
+
+GLAPI void GLAPIENTRY glAccum( GLenum op, GLfloat value );
+
+
+/*
+ * Transformation
+ */
+
+GLAPI void GLAPIENTRY glMatrixMode( GLenum mode );
+
+GLAPI void GLAPIENTRY glOrtho( GLdouble left, GLdouble right,
+                                 GLdouble bottom, GLdouble top,
+                                 GLdouble near_val, GLdouble far_val );
+
+GLAPI void GLAPIENTRY glFrustum( GLdouble left, GLdouble right,
+                                   GLdouble bottom, GLdouble top,
+                                   GLdouble near_val, GLdouble far_val );
+
+GLAPI void GLAPIENTRY glViewport( GLint x, GLint y,
+                                    GLsizei width, GLsizei height );
+
+GLAPI void GLAPIENTRY glPushMatrix( void );
+
+GLAPI void GLAPIENTRY glPopMatrix( void );
+
+GLAPI void GLAPIENTRY glLoadIdentity( void );
+
+GLAPI void GLAPIENTRY glLoadMatrixd( const GLdouble *m );
+GLAPI void GLAPIENTRY glLoadMatrixf( const GLfloat *m );
+
+GLAPI void GLAPIENTRY glMultMatrixd( const GLdouble *m );
+GLAPI void GLAPIENTRY glMultMatrixf( const GLfloat *m );
+
+GLAPI void GLAPIENTRY glRotated( GLdouble angle,
+                                   GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glRotatef( GLfloat angle,
+                                   GLfloat x, GLfloat y, GLfloat z );
+
+GLAPI void GLAPIENTRY glScaled( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glScalef( GLfloat x, GLfloat y, GLfloat z );
+
+GLAPI void GLAPIENTRY glTranslated( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glTranslatef( GLfloat x, GLfloat y, GLfloat z );
+
+
+/*
+ * Display Lists
+ */
+
+GLAPI GLboolean GLAPIENTRY glIsList( GLuint list );
+
+GLAPI void GLAPIENTRY glDeleteLists( GLuint list, GLsizei range );
+
+GLAPI GLuint GLAPIENTRY glGenLists( GLsizei range );
+
+GLAPI void GLAPIENTRY glNewList( GLuint list, GLenum mode );
+
+GLAPI void GLAPIENTRY glEndList( void );
+
+GLAPI void GLAPIENTRY glCallList( GLuint list );
+
+GLAPI void GLAPIENTRY glCallLists( GLsizei n, GLenum type,
+                                     const GLvoid *lists );
+
+GLAPI void GLAPIENTRY glListBase( GLuint base );
+
+
+/*
+ * Drawing Functions
+ */
+
+GLAPI void GLAPIENTRY glBegin( GLenum mode );
+
+GLAPI void GLAPIENTRY glEnd( void );
+
+
+GLAPI void GLAPIENTRY glVertex2d( GLdouble x, GLdouble y );
+GLAPI void GLAPIENTRY glVertex2f( GLfloat x, GLfloat y );
+GLAPI void GLAPIENTRY glVertex2i( GLint x, GLint y );
+GLAPI void GLAPIENTRY glVertex2s( GLshort x, GLshort y );
+
+GLAPI void GLAPIENTRY glVertex3d( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glVertex3f( GLfloat x, GLfloat y, GLfloat z );
+GLAPI void GLAPIENTRY glVertex3i( GLint x, GLint y, GLint z );
+GLAPI void GLAPIENTRY glVertex3s( GLshort x, GLshort y, GLshort z );
+
+GLAPI void GLAPIENTRY glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
+GLAPI void GLAPIENTRY glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
+GLAPI void GLAPIENTRY glVertex4i( GLint x, GLint y, GLint z, GLint w );
+GLAPI void GLAPIENTRY glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w );
+
+GLAPI void GLAPIENTRY glVertex2dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glVertex2fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glVertex2iv( const GLint *v );
+GLAPI void GLAPIENTRY glVertex2sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glVertex3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glVertex3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glVertex3iv( const GLint *v );
+GLAPI void GLAPIENTRY glVertex3sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glVertex4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glVertex4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glVertex4iv( const GLint *v );
+GLAPI void GLAPIENTRY glVertex4sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz );
+GLAPI void GLAPIENTRY glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz );
+GLAPI void GLAPIENTRY glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz );
+GLAPI void GLAPIENTRY glNormal3i( GLint nx, GLint ny, GLint nz );
+GLAPI void GLAPIENTRY glNormal3s( GLshort nx, GLshort ny, GLshort nz );
+
+GLAPI void GLAPIENTRY glNormal3bv( const GLbyte *v );
+GLAPI void GLAPIENTRY glNormal3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glNormal3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glNormal3iv( const GLint *v );
+GLAPI void GLAPIENTRY glNormal3sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glIndexd( GLdouble c );
+GLAPI void GLAPIENTRY glIndexf( GLfloat c );
+GLAPI void GLAPIENTRY glIndexi( GLint c );
+GLAPI void GLAPIENTRY glIndexs( GLshort c );
+GLAPI void GLAPIENTRY glIndexub( GLubyte c );  /* 1.1 */
+
+GLAPI void GLAPIENTRY glIndexdv( const GLdouble *c );
+GLAPI void GLAPIENTRY glIndexfv( const GLfloat *c );
+GLAPI void GLAPIENTRY glIndexiv( const GLint *c );
+GLAPI void GLAPIENTRY glIndexsv( const GLshort *c );
+GLAPI void GLAPIENTRY glIndexubv( const GLubyte *c );  /* 1.1 */
+
+GLAPI void GLAPIENTRY glColor3b( GLbyte red, GLbyte green, GLbyte blue );
+GLAPI void GLAPIENTRY glColor3d( GLdouble red, GLdouble green, GLdouble blue );
+GLAPI void GLAPIENTRY glColor3f( GLfloat red, GLfloat green, GLfloat blue );
+GLAPI void GLAPIENTRY glColor3i( GLint red, GLint green, GLint blue );
+GLAPI void GLAPIENTRY glColor3s( GLshort red, GLshort green, GLshort blue );
+GLAPI void GLAPIENTRY glColor3ub( GLubyte red, GLubyte green, GLubyte blue );
+GLAPI void GLAPIENTRY glColor3ui( GLuint red, GLuint green, GLuint blue );
+GLAPI void GLAPIENTRY glColor3us( GLushort red, GLushort green, GLushort blue );
+
+GLAPI void GLAPIENTRY glColor4b( GLbyte red, GLbyte green,
+                                   GLbyte blue, GLbyte alpha );
+GLAPI void GLAPIENTRY glColor4d( GLdouble red, GLdouble green,
+                                   GLdouble blue, GLdouble alpha );
+GLAPI void GLAPIENTRY glColor4f( GLfloat red, GLfloat green,
+                                   GLfloat blue, GLfloat alpha );
+GLAPI void GLAPIENTRY glColor4i( GLint red, GLint green,
+                                   GLint blue, GLint alpha );
+GLAPI void GLAPIENTRY glColor4s( GLshort red, GLshort green,
+                                   GLshort blue, GLshort alpha );
+GLAPI void GLAPIENTRY glColor4ub( GLubyte red, GLubyte green,
+                                    GLubyte blue, GLubyte alpha );
+GLAPI void GLAPIENTRY glColor4ui( GLuint red, GLuint green,
+                                    GLuint blue, GLuint alpha );
+GLAPI void GLAPIENTRY glColor4us( GLushort red, GLushort green,
+                                    GLushort blue, GLushort alpha );
+
+
+GLAPI void GLAPIENTRY glColor3bv( const GLbyte *v );
+GLAPI void GLAPIENTRY glColor3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glColor3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glColor3iv( const GLint *v );
+GLAPI void GLAPIENTRY glColor3sv( const GLshort *v );
+GLAPI void GLAPIENTRY glColor3ubv( const GLubyte *v );
+GLAPI void GLAPIENTRY glColor3uiv( const GLuint *v );
+GLAPI void GLAPIENTRY glColor3usv( const GLushort *v );
+
+GLAPI void GLAPIENTRY glColor4bv( const GLbyte *v );
+GLAPI void GLAPIENTRY glColor4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glColor4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glColor4iv( const GLint *v );
+GLAPI void GLAPIENTRY glColor4sv( const GLshort *v );
+GLAPI void GLAPIENTRY glColor4ubv( const GLubyte *v );
+GLAPI void GLAPIENTRY glColor4uiv( const GLuint *v );
+GLAPI void GLAPIENTRY glColor4usv( const GLushort *v );
+
+
+GLAPI void GLAPIENTRY glTexCoord1d( GLdouble s );
+GLAPI void GLAPIENTRY glTexCoord1f( GLfloat s );
+GLAPI void GLAPIENTRY glTexCoord1i( GLint s );
+GLAPI void GLAPIENTRY glTexCoord1s( GLshort s );
+
+GLAPI void GLAPIENTRY glTexCoord2d( GLdouble s, GLdouble t );
+GLAPI void GLAPIENTRY glTexCoord2f( GLfloat s, GLfloat t );
+GLAPI void GLAPIENTRY glTexCoord2i( GLint s, GLint t );
+GLAPI void GLAPIENTRY glTexCoord2s( GLshort s, GLshort t );
+
+GLAPI void GLAPIENTRY glTexCoord3d( GLdouble s, GLdouble t, GLdouble r );
+GLAPI void GLAPIENTRY glTexCoord3f( GLfloat s, GLfloat t, GLfloat r );
+GLAPI void GLAPIENTRY glTexCoord3i( GLint s, GLint t, GLint r );
+GLAPI void GLAPIENTRY glTexCoord3s( GLshort s, GLshort t, GLshort r );
+
+GLAPI void GLAPIENTRY glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q );
+GLAPI void GLAPIENTRY glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q );
+GLAPI void GLAPIENTRY glTexCoord4i( GLint s, GLint t, GLint r, GLint q );
+GLAPI void GLAPIENTRY glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q );
+
+GLAPI void GLAPIENTRY glTexCoord1dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord1fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord1iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord1sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glTexCoord2dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord2fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord2iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord2sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glTexCoord3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord3iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord3sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glTexCoord4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord4iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord4sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glRasterPos2d( GLdouble x, GLdouble y );
+GLAPI void GLAPIENTRY glRasterPos2f( GLfloat x, GLfloat y );
+GLAPI void GLAPIENTRY glRasterPos2i( GLint x, GLint y );
+GLAPI void GLAPIENTRY glRasterPos2s( GLshort x, GLshort y );
+
+GLAPI void GLAPIENTRY glRasterPos3d( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glRasterPos3f( GLfloat x, GLfloat y, GLfloat z );
+GLAPI void GLAPIENTRY glRasterPos3i( GLint x, GLint y, GLint z );
+GLAPI void GLAPIENTRY glRasterPos3s( GLshort x, GLshort y, GLshort z );
+
+GLAPI void GLAPIENTRY glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
+GLAPI void GLAPIENTRY glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
+GLAPI void GLAPIENTRY glRasterPos4i( GLint x, GLint y, GLint z, GLint w );
+GLAPI void GLAPIENTRY glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w );
+
+GLAPI void GLAPIENTRY glRasterPos2dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glRasterPos2fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glRasterPos2iv( const GLint *v );
+GLAPI void GLAPIENTRY glRasterPos2sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glRasterPos3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glRasterPos3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glRasterPos3iv( const GLint *v );
+GLAPI void GLAPIENTRY glRasterPos3sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glRasterPos4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glRasterPos4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glRasterPos4iv( const GLint *v );
+GLAPI void GLAPIENTRY glRasterPos4sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 );
+GLAPI void GLAPIENTRY glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 );
+GLAPI void GLAPIENTRY glRecti( GLint x1, GLint y1, GLint x2, GLint y2 );
+GLAPI void GLAPIENTRY glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 );
+
+
+GLAPI void GLAPIENTRY glRectdv( const GLdouble *v1, const GLdouble *v2 );
+GLAPI void GLAPIENTRY glRectfv( const GLfloat *v1, const GLfloat *v2 );
+GLAPI void GLAPIENTRY glRectiv( const GLint *v1, const GLint *v2 );
+GLAPI void GLAPIENTRY glRectsv( const GLshort *v1, const GLshort *v2 );
+
+
+/*
+ * Vertex Arrays  (1.1)
+ */
+
+GLAPI void GLAPIENTRY glVertexPointer( GLint size, GLenum type,
+                                       GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glNormalPointer( GLenum type, GLsizei stride,
+                                       const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glColorPointer( GLint size, GLenum type,
+                                      GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glIndexPointer( GLenum type, GLsizei stride,
+                                      const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glTexCoordPointer( GLint size, GLenum type,
+                                         GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glGetPointerv( GLenum pname, GLvoid **params );
+
+GLAPI void GLAPIENTRY glArrayElement( GLint i );
+
+GLAPI void GLAPIENTRY glDrawArrays( GLenum mode, GLint first, GLsizei count );
+
+GLAPI void GLAPIENTRY glDrawElements( GLenum mode, GLsizei count,
+                                      GLenum type, const GLvoid *indices );
+
+GLAPI void GLAPIENTRY glInterleavedArrays( GLenum format, GLsizei stride,
+                                           const GLvoid *pointer );
+
+/*
+ * Lighting
+ */
+
+GLAPI void GLAPIENTRY glShadeModel( GLenum mode );
+
+GLAPI void GLAPIENTRY glLightf( GLenum light, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glLighti( GLenum light, GLenum pname, GLint param );
+GLAPI void GLAPIENTRY glLightfv( GLenum light, GLenum pname,
+                                 const GLfloat *params );
+GLAPI void GLAPIENTRY glLightiv( GLenum light, GLenum pname,
+                                 const GLint *params );
+
+GLAPI void GLAPIENTRY glGetLightfv( GLenum light, GLenum pname,
+                                    GLfloat *params );
+GLAPI void GLAPIENTRY glGetLightiv( GLenum light, GLenum pname,
+                                    GLint *params );
+
+GLAPI void GLAPIENTRY glLightModelf( GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glLightModeli( GLenum pname, GLint param );
+GLAPI void GLAPIENTRY glLightModelfv( GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glLightModeliv( GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glMaterialf( GLenum face, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glMateriali( GLenum face, GLenum pname, GLint param );
+GLAPI void GLAPIENTRY glMaterialfv( GLenum face, GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glMaterialiv( GLenum face, GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetMaterialiv( GLenum face, GLenum pname, GLint *params );
+
+GLAPI void GLAPIENTRY glColorMaterial( GLenum face, GLenum mode );
+
+
+/*
+ * Raster functions
+ */
+
+GLAPI void GLAPIENTRY glPixelZoom( GLfloat xfactor, GLfloat yfactor );
+
+GLAPI void GLAPIENTRY glPixelStoref( GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glPixelStorei( GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glPixelTransferf( GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glPixelTransferi( GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glPixelMapfv( GLenum map, GLsizei mapsize,
+                                    const GLfloat *values );
+GLAPI void GLAPIENTRY glPixelMapuiv( GLenum map, GLsizei mapsize,
+                                     const GLuint *values );
+GLAPI void GLAPIENTRY glPixelMapusv( GLenum map, GLsizei mapsize,
+                                     const GLushort *values );
+
+GLAPI void GLAPIENTRY glGetPixelMapfv( GLenum map, GLfloat *values );
+GLAPI void GLAPIENTRY glGetPixelMapuiv( GLenum map, GLuint *values );
+GLAPI void GLAPIENTRY glGetPixelMapusv( GLenum map, GLushort *values );
+
+GLAPI void GLAPIENTRY glBitmap( GLsizei width, GLsizei height,
+                                GLfloat xorig, GLfloat yorig,
+                                GLfloat xmove, GLfloat ymove,
+                                const GLubyte *bitmap );
+
+GLAPI void GLAPIENTRY glReadPixels( GLint x, GLint y,
+                                    GLsizei width, GLsizei height,
+                                    GLenum format, GLenum type,
+                                    GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glDrawPixels( GLsizei width, GLsizei height,
+                                    GLenum format, GLenum type,
+                                    const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glCopyPixels( GLint x, GLint y,
+                                    GLsizei width, GLsizei height,
+                                    GLenum type );
+
+/*
+ * Stenciling
+ */
+
+GLAPI void GLAPIENTRY glStencilFunc( GLenum func, GLint ref, GLuint mask );
+
+GLAPI void GLAPIENTRY glStencilMask( GLuint mask );
+
+GLAPI void GLAPIENTRY glStencilOp( GLenum fail, GLenum zfail, GLenum zpass );
+
+GLAPI void GLAPIENTRY glClearStencil( GLint s );
+
+
+
+/*
+ * Texture mapping
+ */
+
+GLAPI void GLAPIENTRY glTexGend( GLenum coord, GLenum pname, GLdouble param );
+GLAPI void GLAPIENTRY glTexGenf( GLenum coord, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glTexGeni( GLenum coord, GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glTexGendv( GLenum coord, GLenum pname, const GLdouble *params );
+GLAPI void GLAPIENTRY glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glTexGeniv( GLenum coord, GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params );
+GLAPI void GLAPIENTRY glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetTexGeniv( GLenum coord, GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glTexEnvf( GLenum target, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glTexEnvi( GLenum target, GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glTexEnviv( GLenum target, GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetTexEnviv( GLenum target, GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glTexParameterf( GLenum target, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glTexParameteri( GLenum target, GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glTexParameterfv( GLenum target, GLenum pname,
+                                          const GLfloat *params );
+GLAPI void GLAPIENTRY glTexParameteriv( GLenum target, GLenum pname,
+                                          const GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexParameterfv( GLenum target,
+                                           GLenum pname, GLfloat *params);
+GLAPI void GLAPIENTRY glGetTexParameteriv( GLenum target,
+                                           GLenum pname, GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexLevelParameterfv( GLenum target, GLint level,
+                                                GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetTexLevelParameteriv( GLenum target, GLint level,
+                                                GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glTexImage1D( GLenum target, GLint level,
+                                    GLint internalFormat,
+                                    GLsizei width, GLint border,
+                                    GLenum format, GLenum type,
+                                    const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glTexImage2D( GLenum target, GLint level,
+                                    GLint internalFormat,
+                                    GLsizei width, GLsizei height,
+                                    GLint border, GLenum format, GLenum type,
+                                    const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glGetTexImage( GLenum target, GLint level,
+                                     GLenum format, GLenum type,
+                                     GLvoid *pixels );
+
+
+/* 1.1 functions */
+
+GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures );
+
+GLAPI void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures);
+
+GLAPI void GLAPIENTRY glBindTexture( GLenum target, GLuint texture );
+
+GLAPI void GLAPIENTRY glPrioritizeTextures( GLsizei n,
+                                            const GLuint *textures,
+                                            const GLclampf *priorities );
+
+GLAPI GLboolean GLAPIENTRY glAreTexturesResident( GLsizei n,
+                                                  const GLuint *textures,
+                                                  GLboolean *residences );
+
+GLAPI GLboolean GLAPIENTRY glIsTexture( GLuint texture );
+
+
+GLAPI void GLAPIENTRY glTexSubImage1D( GLenum target, GLint level,
+                                       GLint xoffset,
+                                       GLsizei width, GLenum format,
+                                       GLenum type, const GLvoid *pixels );
+
+
+GLAPI void GLAPIENTRY glTexSubImage2D( GLenum target, GLint level,
+                                       GLint xoffset, GLint yoffset,
+                                       GLsizei width, GLsizei height,
+                                       GLenum format, GLenum type,
+                                       const GLvoid *pixels );
+
+
+GLAPI void GLAPIENTRY glCopyTexImage1D( GLenum target, GLint level,
+                                        GLenum internalformat,
+                                        GLint x, GLint y,
+                                        GLsizei width, GLint border );
+
+
+GLAPI void GLAPIENTRY glCopyTexImage2D( GLenum target, GLint level,
+                                        GLenum internalformat,
+                                        GLint x, GLint y,
+                                        GLsizei width, GLsizei height,
+                                        GLint border );
+
+
+GLAPI void GLAPIENTRY glCopyTexSubImage1D( GLenum target, GLint level,
+                                           GLint xoffset, GLint x, GLint y,
+                                           GLsizei width );
+
+
+GLAPI void GLAPIENTRY glCopyTexSubImage2D( GLenum target, GLint level,
+                                           GLint xoffset, GLint yoffset,
+                                           GLint x, GLint y,
+                                           GLsizei width, GLsizei height );
+
+
+/*
+ * Evaluators
+ */
+
+GLAPI void GLAPIENTRY glMap1d( GLenum target, GLdouble u1, GLdouble u2,
+                               GLint stride,
+                               GLint order, const GLdouble *points );
+GLAPI void GLAPIENTRY glMap1f( GLenum target, GLfloat u1, GLfloat u2,
+                               GLint stride,
+                               GLint order, const GLfloat *points );
+
+GLAPI void GLAPIENTRY glMap2d( GLenum target,
+		     GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
+		     GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
+		     const GLdouble *points );
+GLAPI void GLAPIENTRY glMap2f( GLenum target,
+		     GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
+		     GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
+		     const GLfloat *points );
+
+GLAPI void GLAPIENTRY glGetMapdv( GLenum target, GLenum query, GLdouble *v );
+GLAPI void GLAPIENTRY glGetMapfv( GLenum target, GLenum query, GLfloat *v );
+GLAPI void GLAPIENTRY glGetMapiv( GLenum target, GLenum query, GLint *v );
+
+GLAPI void GLAPIENTRY glEvalCoord1d( GLdouble u );
+GLAPI void GLAPIENTRY glEvalCoord1f( GLfloat u );
+
+GLAPI void GLAPIENTRY glEvalCoord1dv( const GLdouble *u );
+GLAPI void GLAPIENTRY glEvalCoord1fv( const GLfloat *u );
+
+GLAPI void GLAPIENTRY glEvalCoord2d( GLdouble u, GLdouble v );
+GLAPI void GLAPIENTRY glEvalCoord2f( GLfloat u, GLfloat v );
+
+GLAPI void GLAPIENTRY glEvalCoord2dv( const GLdouble *u );
+GLAPI void GLAPIENTRY glEvalCoord2fv( const GLfloat *u );
+
+GLAPI void GLAPIENTRY glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
+GLAPI void GLAPIENTRY glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
+
+GLAPI void GLAPIENTRY glMapGrid2d( GLint un, GLdouble u1, GLdouble u2,
+                                   GLint vn, GLdouble v1, GLdouble v2 );
+GLAPI void GLAPIENTRY glMapGrid2f( GLint un, GLfloat u1, GLfloat u2,
+                                   GLint vn, GLfloat v1, GLfloat v2 );
+
+GLAPI void GLAPIENTRY glEvalPoint1( GLint i );
+
+GLAPI void GLAPIENTRY glEvalPoint2( GLint i, GLint j );
+
+GLAPI void GLAPIENTRY glEvalMesh1( GLenum mode, GLint i1, GLint i2 );
+
+GLAPI void GLAPIENTRY glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
+
+
+/*
+ * Fog
+ */
+
+GLAPI void GLAPIENTRY glFogf( GLenum pname, GLfloat param );
+
+GLAPI void GLAPIENTRY glFogi( GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glFogfv( GLenum pname, const GLfloat *params );
+
+GLAPI void GLAPIENTRY glFogiv( GLenum pname, const GLint *params );
+
+
+/*
+ * Selection and Feedback
+ */
+
+GLAPI void GLAPIENTRY glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer );
+
+GLAPI void GLAPIENTRY glPassThrough( GLfloat token );
+
+GLAPI void GLAPIENTRY glSelectBuffer( GLsizei size, GLuint *buffer );
+
+GLAPI void GLAPIENTRY glInitNames( void );
+
+GLAPI void GLAPIENTRY glLoadName( GLuint name );
+
+GLAPI void GLAPIENTRY glPushName( GLuint name );
+
+GLAPI void GLAPIENTRY glPopName( void );
+
+
+
+/*
+ * OpenGL 1.2
+ */
+
+#define GL_RESCALE_NORMAL			0x803A
+#define GL_CLAMP_TO_EDGE			0x812F
+#define GL_MAX_ELEMENTS_VERTICES		0x80E8
+#define GL_MAX_ELEMENTS_INDICES			0x80E9
+#define GL_BGR					0x80E0
+#define GL_BGRA					0x80E1
+#define GL_UNSIGNED_BYTE_3_3_2			0x8032
+#define GL_UNSIGNED_BYTE_2_3_3_REV		0x8362
+#define GL_UNSIGNED_SHORT_5_6_5			0x8363
+#define GL_UNSIGNED_SHORT_5_6_5_REV		0x8364
+#define GL_UNSIGNED_SHORT_4_4_4_4		0x8033
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV		0x8365
+#define GL_UNSIGNED_SHORT_5_5_5_1		0x8034
+#define GL_UNSIGNED_SHORT_1_5_5_5_REV		0x8366
+#define GL_UNSIGNED_INT_8_8_8_8			0x8035
+#define GL_UNSIGNED_INT_8_8_8_8_REV		0x8367
+#define GL_UNSIGNED_INT_10_10_10_2		0x8036
+#define GL_UNSIGNED_INT_2_10_10_10_REV		0x8368
+#define GL_LIGHT_MODEL_COLOR_CONTROL		0x81F8
+#define GL_SINGLE_COLOR				0x81F9
+#define GL_SEPARATE_SPECULAR_COLOR		0x81FA
+#define GL_TEXTURE_MIN_LOD			0x813A
+#define GL_TEXTURE_MAX_LOD			0x813B
+#define GL_TEXTURE_BASE_LEVEL			0x813C
+#define GL_TEXTURE_MAX_LEVEL			0x813D
+#define GL_SMOOTH_POINT_SIZE_RANGE		0x0B12
+#define GL_SMOOTH_POINT_SIZE_GRANULARITY	0x0B13
+#define GL_SMOOTH_LINE_WIDTH_RANGE		0x0B22
+#define GL_SMOOTH_LINE_WIDTH_GRANULARITY	0x0B23
+#define GL_ALIASED_POINT_SIZE_RANGE		0x846D
+#define GL_ALIASED_LINE_WIDTH_RANGE		0x846E
+#define GL_PACK_SKIP_IMAGES			0x806B
+#define GL_PACK_IMAGE_HEIGHT			0x806C
+#define GL_UNPACK_SKIP_IMAGES			0x806D
+#define GL_UNPACK_IMAGE_HEIGHT			0x806E
+#define GL_TEXTURE_3D				0x806F
+#define GL_PROXY_TEXTURE_3D			0x8070
+#define GL_TEXTURE_DEPTH			0x8071
+#define GL_TEXTURE_WRAP_R			0x8072
+#define GL_MAX_3D_TEXTURE_SIZE			0x8073
+#define GL_TEXTURE_BINDING_3D			0x806A
+
+GLAPI void GLAPIENTRY glDrawRangeElements( GLenum mode, GLuint start,
+	GLuint end, GLsizei count, GLenum type, const GLvoid *indices );
+
+GLAPI void GLAPIENTRY glTexImage3D( GLenum target, GLint level,
+                                      GLint internalFormat,
+                                      GLsizei width, GLsizei height,
+                                      GLsizei depth, GLint border,
+                                      GLenum format, GLenum type,
+                                      const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glTexSubImage3D( GLenum target, GLint level,
+                                         GLint xoffset, GLint yoffset,
+                                         GLint zoffset, GLsizei width,
+                                         GLsizei height, GLsizei depth,
+                                         GLenum format,
+                                         GLenum type, const GLvoid *pixels);
+
+GLAPI void GLAPIENTRY glCopyTexSubImage3D( GLenum target, GLint level,
+                                             GLint xoffset, GLint yoffset,
+                                             GLint zoffset, GLint x,
+                                             GLint y, GLsizei width,
+                                             GLsizei height );
+
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
+typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+
+
+/*
+ * GL_ARB_imaging
+ */
+
+#define GL_CONSTANT_COLOR			0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR		0x8002
+#define GL_CONSTANT_ALPHA			0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA		0x8004
+#define GL_COLOR_TABLE				0x80D0
+#define GL_POST_CONVOLUTION_COLOR_TABLE		0x80D1
+#define GL_POST_COLOR_MATRIX_COLOR_TABLE	0x80D2
+#define GL_PROXY_COLOR_TABLE			0x80D3
+#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE	0x80D4
+#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE	0x80D5
+#define GL_COLOR_TABLE_SCALE			0x80D6
+#define GL_COLOR_TABLE_BIAS			0x80D7
+#define GL_COLOR_TABLE_FORMAT			0x80D8
+#define GL_COLOR_TABLE_WIDTH			0x80D9
+#define GL_COLOR_TABLE_RED_SIZE			0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE		0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE		0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE		0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE		0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE		0x80DF
+#define GL_CONVOLUTION_1D			0x8010
+#define GL_CONVOLUTION_2D			0x8011
+#define GL_SEPARABLE_2D				0x8012
+#define GL_CONVOLUTION_BORDER_MODE		0x8013
+#define GL_CONVOLUTION_FILTER_SCALE		0x8014
+#define GL_CONVOLUTION_FILTER_BIAS		0x8015
+#define GL_REDUCE				0x8016
+#define GL_CONVOLUTION_FORMAT			0x8017
+#define GL_CONVOLUTION_WIDTH			0x8018
+#define GL_CONVOLUTION_HEIGHT			0x8019
+#define GL_MAX_CONVOLUTION_WIDTH		0x801A
+#define GL_MAX_CONVOLUTION_HEIGHT		0x801B
+#define GL_POST_CONVOLUTION_RED_SCALE		0x801C
+#define GL_POST_CONVOLUTION_GREEN_SCALE		0x801D
+#define GL_POST_CONVOLUTION_BLUE_SCALE		0x801E
+#define GL_POST_CONVOLUTION_ALPHA_SCALE		0x801F
+#define GL_POST_CONVOLUTION_RED_BIAS		0x8020
+#define GL_POST_CONVOLUTION_GREEN_BIAS		0x8021
+#define GL_POST_CONVOLUTION_BLUE_BIAS		0x8022
+#define GL_POST_CONVOLUTION_ALPHA_BIAS		0x8023
+#define GL_CONSTANT_BORDER			0x8151
+#define GL_REPLICATE_BORDER			0x8153
+#define GL_CONVOLUTION_BORDER_COLOR		0x8154
+#define GL_COLOR_MATRIX				0x80B1
+#define GL_COLOR_MATRIX_STACK_DEPTH		0x80B2
+#define GL_MAX_COLOR_MATRIX_STACK_DEPTH		0x80B3
+#define GL_POST_COLOR_MATRIX_RED_SCALE		0x80B4
+#define GL_POST_COLOR_MATRIX_GREEN_SCALE	0x80B5
+#define GL_POST_COLOR_MATRIX_BLUE_SCALE		0x80B6
+#define GL_POST_COLOR_MATRIX_ALPHA_SCALE	0x80B7
+#define GL_POST_COLOR_MATRIX_RED_BIAS		0x80B8
+#define GL_POST_COLOR_MATRIX_GREEN_BIAS		0x80B9
+#define GL_POST_COLOR_MATRIX_BLUE_BIAS		0x80BA
+#define GL_POST_COLOR_MATRIX_ALPHA_BIAS		0x80BB
+#define GL_HISTOGRAM				0x8024
+#define GL_PROXY_HISTOGRAM			0x8025
+#define GL_HISTOGRAM_WIDTH			0x8026
+#define GL_HISTOGRAM_FORMAT			0x8027
+#define GL_HISTOGRAM_RED_SIZE			0x8028
+#define GL_HISTOGRAM_GREEN_SIZE			0x8029
+#define GL_HISTOGRAM_BLUE_SIZE			0x802A
+#define GL_HISTOGRAM_ALPHA_SIZE			0x802B
+#define GL_HISTOGRAM_LUMINANCE_SIZE		0x802C
+#define GL_HISTOGRAM_SINK			0x802D
+#define GL_MINMAX				0x802E
+#define GL_MINMAX_FORMAT			0x802F
+#define GL_MINMAX_SINK				0x8030
+#define GL_TABLE_TOO_LARGE			0x8031
+#define GL_BLEND_EQUATION			0x8009
+#define GL_MIN					0x8007
+#define GL_MAX					0x8008
+#define GL_FUNC_ADD				0x8006
+#define GL_FUNC_SUBTRACT			0x800A
+#define GL_FUNC_REVERSE_SUBTRACT		0x800B
+#define GL_BLEND_COLOR				0x8005
+
+
+GLAPI void GLAPIENTRY glColorTable( GLenum target, GLenum internalformat,
+                                    GLsizei width, GLenum format,
+                                    GLenum type, const GLvoid *table );
+
+GLAPI void GLAPIENTRY glColorSubTable( GLenum target,
+                                       GLsizei start, GLsizei count,
+                                       GLenum format, GLenum type,
+                                       const GLvoid *data );
+
+GLAPI void GLAPIENTRY glColorTableParameteriv(GLenum target, GLenum pname,
+                                              const GLint *params);
+
+GLAPI void GLAPIENTRY glColorTableParameterfv(GLenum target, GLenum pname,
+                                              const GLfloat *params);
+
+GLAPI void GLAPIENTRY glCopyColorSubTable( GLenum target, GLsizei start,
+                                           GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glCopyColorTable( GLenum target, GLenum internalformat,
+                                        GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glGetColorTable( GLenum target, GLenum format,
+                                       GLenum type, GLvoid *table );
+
+GLAPI void GLAPIENTRY glGetColorTableParameterfv( GLenum target, GLenum pname,
+                                                  GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetColorTableParameteriv( GLenum target, GLenum pname,
+                                                  GLint *params );
+
+GLAPI void GLAPIENTRY glBlendEquation( GLenum mode );
+
+GLAPI void GLAPIENTRY glBlendColor( GLclampf red, GLclampf green,
+                                    GLclampf blue, GLclampf alpha );
+
+GLAPI void GLAPIENTRY glHistogram( GLenum target, GLsizei width,
+				   GLenum internalformat, GLboolean sink );
+
+GLAPI void GLAPIENTRY glResetHistogram( GLenum target );
+
+GLAPI void GLAPIENTRY glGetHistogram( GLenum target, GLboolean reset,
+				      GLenum format, GLenum type,
+				      GLvoid *values );
+
+GLAPI void GLAPIENTRY glGetHistogramParameterfv( GLenum target, GLenum pname,
+						 GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetHistogramParameteriv( GLenum target, GLenum pname,
+						 GLint *params );
+
+GLAPI void GLAPIENTRY glMinmax( GLenum target, GLenum internalformat,
+				GLboolean sink );
+
+GLAPI void GLAPIENTRY glResetMinmax( GLenum target );
+
+GLAPI void GLAPIENTRY glGetMinmax( GLenum target, GLboolean reset,
+                                   GLenum format, GLenum types,
+                                   GLvoid *values );
+
+GLAPI void GLAPIENTRY glGetMinmaxParameterfv( GLenum target, GLenum pname,
+					      GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetMinmaxParameteriv( GLenum target, GLenum pname,
+					      GLint *params );
+
+GLAPI void GLAPIENTRY glConvolutionFilter1D( GLenum target,
+	GLenum internalformat, GLsizei width, GLenum format, GLenum type,
+	const GLvoid *image );
+
+GLAPI void GLAPIENTRY glConvolutionFilter2D( GLenum target,
+	GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
+	GLenum type, const GLvoid *image );
+
+GLAPI void GLAPIENTRY glConvolutionParameterf( GLenum target, GLenum pname,
+	GLfloat params );
+
+GLAPI void GLAPIENTRY glConvolutionParameterfv( GLenum target, GLenum pname,
+	const GLfloat *params );
+
+GLAPI void GLAPIENTRY glConvolutionParameteri( GLenum target, GLenum pname,
+	GLint params );
+
+GLAPI void GLAPIENTRY glConvolutionParameteriv( GLenum target, GLenum pname,
+	const GLint *params );
+
+GLAPI void GLAPIENTRY glCopyConvolutionFilter1D( GLenum target,
+	GLenum internalformat, GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glCopyConvolutionFilter2D( GLenum target,
+	GLenum internalformat, GLint x, GLint y, GLsizei width,
+	GLsizei height);
+
+GLAPI void GLAPIENTRY glGetConvolutionFilter( GLenum target, GLenum format,
+	GLenum type, GLvoid *image );
+
+GLAPI void GLAPIENTRY glGetConvolutionParameterfv( GLenum target, GLenum pname,
+	GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetConvolutionParameteriv( GLenum target, GLenum pname,
+	GLint *params );
+
+GLAPI void GLAPIENTRY glSeparableFilter2D( GLenum target,
+	GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
+	GLenum type, const GLvoid *row, const GLvoid *column );
+
+GLAPI void GLAPIENTRY glGetSeparableFilter( GLenum target, GLenum format,
+	GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
+
+
+
+
+/*
+ * OpenGL 1.3
+ */
+
+/* multitexture */
+#define GL_TEXTURE0				0x84C0
+#define GL_TEXTURE1				0x84C1
+#define GL_TEXTURE2				0x84C2
+#define GL_TEXTURE3				0x84C3
+#define GL_TEXTURE4				0x84C4
+#define GL_TEXTURE5				0x84C5
+#define GL_TEXTURE6				0x84C6
+#define GL_TEXTURE7				0x84C7
+#define GL_TEXTURE8				0x84C8
+#define GL_TEXTURE9				0x84C9
+#define GL_TEXTURE10				0x84CA
+#define GL_TEXTURE11				0x84CB
+#define GL_TEXTURE12				0x84CC
+#define GL_TEXTURE13				0x84CD
+#define GL_TEXTURE14				0x84CE
+#define GL_TEXTURE15				0x84CF
+#define GL_TEXTURE16				0x84D0
+#define GL_TEXTURE17				0x84D1
+#define GL_TEXTURE18				0x84D2
+#define GL_TEXTURE19				0x84D3
+#define GL_TEXTURE20				0x84D4
+#define GL_TEXTURE21				0x84D5
+#define GL_TEXTURE22				0x84D6
+#define GL_TEXTURE23				0x84D7
+#define GL_TEXTURE24				0x84D8
+#define GL_TEXTURE25				0x84D9
+#define GL_TEXTURE26				0x84DA
+#define GL_TEXTURE27				0x84DB
+#define GL_TEXTURE28				0x84DC
+#define GL_TEXTURE29				0x84DD
+#define GL_TEXTURE30				0x84DE
+#define GL_TEXTURE31				0x84DF
+#define GL_ACTIVE_TEXTURE			0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE		0x84E1
+#define GL_MAX_TEXTURE_UNITS			0x84E2
+/* texture_cube_map */
+#define GL_NORMAL_MAP				0x8511
+#define GL_REFLECTION_MAP			0x8512
+#define GL_TEXTURE_CUBE_MAP			0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP		0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X		0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X		0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y		0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y		0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z		0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z		0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP		0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE		0x851C
+/* texture_compression */
+#define GL_COMPRESSED_ALPHA			0x84E9
+#define GL_COMPRESSED_LUMINANCE			0x84EA
+#define GL_COMPRESSED_LUMINANCE_ALPHA		0x84EB
+#define GL_COMPRESSED_INTENSITY			0x84EC
+#define GL_COMPRESSED_RGB			0x84ED
+#define GL_COMPRESSED_RGBA			0x84EE
+#define GL_TEXTURE_COMPRESSION_HINT		0x84EF
+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE	0x86A0
+#define GL_TEXTURE_COMPRESSED			0x86A1
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS	0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS		0x86A3
+/* multisample */
+#define GL_MULTISAMPLE				0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE		0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE			0x809F
+#define GL_SAMPLE_COVERAGE			0x80A0
+#define GL_SAMPLE_BUFFERS			0x80A8
+#define GL_SAMPLES				0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE		0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT		0x80AB
+#define GL_MULTISAMPLE_BIT			0x20000000
+/* transpose_matrix */
+#define GL_TRANSPOSE_MODELVIEW_MATRIX		0x84E3
+#define GL_TRANSPOSE_PROJECTION_MATRIX		0x84E4
+#define GL_TRANSPOSE_TEXTURE_MATRIX		0x84E5
+#define GL_TRANSPOSE_COLOR_MATRIX		0x84E6
+/* texture_env_combine */
+#define GL_COMBINE				0x8570
+#define GL_COMBINE_RGB				0x8571
+#define GL_COMBINE_ALPHA			0x8572
+#define GL_SOURCE0_RGB				0x8580
+#define GL_SOURCE1_RGB				0x8581
+#define GL_SOURCE2_RGB				0x8582
+#define GL_SOURCE0_ALPHA			0x8588
+#define GL_SOURCE1_ALPHA			0x8589
+#define GL_SOURCE2_ALPHA			0x858A
+#define GL_OPERAND0_RGB				0x8590
+#define GL_OPERAND1_RGB				0x8591
+#define GL_OPERAND2_RGB				0x8592
+#define GL_OPERAND0_ALPHA			0x8598
+#define GL_OPERAND1_ALPHA			0x8599
+#define GL_OPERAND2_ALPHA			0x859A
+#define GL_RGB_SCALE				0x8573
+#define GL_ADD_SIGNED				0x8574
+#define GL_INTERPOLATE				0x8575
+#define GL_SUBTRACT				0x84E7
+#define GL_CONSTANT				0x8576
+#define GL_PRIMARY_COLOR			0x8577
+#define GL_PREVIOUS				0x8578
+/* texture_env_dot3 */
+#define GL_DOT3_RGB				0x86AE
+#define GL_DOT3_RGBA				0x86AF
+/* texture_border_clamp */
+#define GL_CLAMP_TO_BORDER			0x812D
+
+GLAPI void GLAPIENTRY glActiveTexture( GLenum texture );
+
+GLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture );
+
+GLAPI void GLAPIENTRY glCompressedTexImage1D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glCompressedTexImage3D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glCompressedTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glCompressedTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glGetCompressedTexImage( GLenum target, GLint lod, GLvoid *img );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1d( GLenum target, GLdouble s );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1dv( GLenum target, const GLdouble *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1f( GLenum target, GLfloat s );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1fv( GLenum target, const GLfloat *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1i( GLenum target, GLint s );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1iv( GLenum target, const GLint *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1s( GLenum target, GLshort s );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1sv( GLenum target, const GLshort *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2d( GLenum target, GLdouble s, GLdouble t );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2dv( GLenum target, const GLdouble *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2f( GLenum target, GLfloat s, GLfloat t );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2fv( GLenum target, const GLfloat *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2i( GLenum target, GLint s, GLint t );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2iv( GLenum target, const GLint *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2s( GLenum target, GLshort s, GLshort t );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2sv( GLenum target, const GLshort *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3d( GLenum target, GLdouble s, GLdouble t, GLdouble r );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3dv( GLenum target, const GLdouble *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3f( GLenum target, GLfloat s, GLfloat t, GLfloat r );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3fv( GLenum target, const GLfloat *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3i( GLenum target, GLint s, GLint t, GLint r );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3iv( GLenum target, const GLint *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3s( GLenum target, GLshort s, GLshort t, GLshort r );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3sv( GLenum target, const GLshort *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4d( GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4dv( GLenum target, const GLdouble *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4f( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4fv( GLenum target, const GLfloat *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4i( GLenum target, GLint s, GLint t, GLint r, GLint q );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4iv( GLenum target, const GLint *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4s( GLenum target, GLshort s, GLshort t, GLshort r, GLshort q );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4sv( GLenum target, const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glLoadTransposeMatrixd( const GLdouble m[16] );
+
+GLAPI void GLAPIENTRY glLoadTransposeMatrixf( const GLfloat m[16] );
+
+GLAPI void GLAPIENTRY glMultTransposeMatrixd( const GLdouble m[16] );
+
+GLAPI void GLAPIENTRY glMultTransposeMatrixf( const GLfloat m[16] );
+
+GLAPI void GLAPIENTRY glSampleCoverage( GLclampf value, GLboolean invert );
+
+
+typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
+
+
+
+/*
+ * GL_ARB_multitexture (ARB extension 1 and OpenGL 1.2.1)
+ */
+#ifndef GL_ARB_multitexture
+#define GL_ARB_multitexture 1
+
+#define GL_TEXTURE0_ARB				0x84C0
+#define GL_TEXTURE1_ARB				0x84C1
+#define GL_TEXTURE2_ARB				0x84C2
+#define GL_TEXTURE3_ARB				0x84C3
+#define GL_TEXTURE4_ARB				0x84C4
+#define GL_TEXTURE5_ARB				0x84C5
+#define GL_TEXTURE6_ARB				0x84C6
+#define GL_TEXTURE7_ARB				0x84C7
+#define GL_TEXTURE8_ARB				0x84C8
+#define GL_TEXTURE9_ARB				0x84C9
+#define GL_TEXTURE10_ARB			0x84CA
+#define GL_TEXTURE11_ARB			0x84CB
+#define GL_TEXTURE12_ARB			0x84CC
+#define GL_TEXTURE13_ARB			0x84CD
+#define GL_TEXTURE14_ARB			0x84CE
+#define GL_TEXTURE15_ARB			0x84CF
+#define GL_TEXTURE16_ARB			0x84D0
+#define GL_TEXTURE17_ARB			0x84D1
+#define GL_TEXTURE18_ARB			0x84D2
+#define GL_TEXTURE19_ARB			0x84D3
+#define GL_TEXTURE20_ARB			0x84D4
+#define GL_TEXTURE21_ARB			0x84D5
+#define GL_TEXTURE22_ARB			0x84D6
+#define GL_TEXTURE23_ARB			0x84D7
+#define GL_TEXTURE24_ARB			0x84D8
+#define GL_TEXTURE25_ARB			0x84D9
+#define GL_TEXTURE26_ARB			0x84DA
+#define GL_TEXTURE27_ARB			0x84DB
+#define GL_TEXTURE28_ARB			0x84DC
+#define GL_TEXTURE29_ARB			0x84DD
+#define GL_TEXTURE30_ARB			0x84DE
+#define GL_TEXTURE31_ARB			0x84DF
+#define GL_ACTIVE_TEXTURE_ARB			0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE_ARB		0x84E1
+#define GL_MAX_TEXTURE_UNITS_ARB		0x84E2
+
+GLAPI void GLAPIENTRY glActiveTextureARB(GLenum texture);
+GLAPI void GLAPIENTRY glClientActiveTextureARB(GLenum texture);
+GLAPI void GLAPIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s);
+GLAPI void GLAPIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s);
+GLAPI void GLAPIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord1iARB(GLenum target, GLint s);
+GLAPI void GLAPIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s);
+GLAPI void GLAPIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
+GLAPI void GLAPIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
+GLAPI void GLAPIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
+GLAPI void GLAPIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
+GLAPI void GLAPIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r);
+GLAPI void GLAPIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
+GLAPI void GLAPIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
+GLAPI void GLAPIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r);
+GLAPI void GLAPIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+GLAPI void GLAPIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+GLAPI void GLAPIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q);
+GLAPI void GLAPIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+GLAPI void GLAPIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort *v);
+
+typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
+
+#endif /* GL_ARB_multitexture */
+
+
+
+/*
+ * Define this token if you want "old-style" header file behaviour (extensions
+ * defined in gl.h).  Otherwise, extensions will be included from glext.h.
+ */
+#if !defined(NO_SDL_GLEXT) && !defined(GL_GLEXT_LEGACY)
+#include "SDL_opengl_glext.h"
+#endif  /* GL_GLEXT_LEGACY */
+
+
+
+/*
+ * ???. GL_MESA_packed_depth_stencil
+ * XXX obsolete
+ */
+#ifndef GL_MESA_packed_depth_stencil
+#define GL_MESA_packed_depth_stencil 1
+
+#define GL_DEPTH_STENCIL_MESA			0x8750
+#define GL_UNSIGNED_INT_24_8_MESA		0x8751
+#define GL_UNSIGNED_INT_8_24_REV_MESA		0x8752
+#define GL_UNSIGNED_SHORT_15_1_MESA		0x8753
+#define GL_UNSIGNED_SHORT_1_15_REV_MESA		0x8754
+
+#endif /* GL_MESA_packed_depth_stencil */
+
+
+#ifndef GL_ATI_blend_equation_separate
+#define GL_ATI_blend_equation_separate 1
+
+#define GL_ALPHA_BLEND_EQUATION_ATI	        0x883D
+
+GLAPI void GLAPIENTRY glBlendEquationSeparateATI( GLenum modeRGB, GLenum modeA );
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLenum modeA);
+
+#endif /* GL_ATI_blend_equation_separate */
+
+
+/* GL_OES_EGL_image */
+#ifndef GL_OES_EGL_image
+typedef void* GLeglImageOES;
+#endif
+
+#ifndef GL_OES_EGL_image
+#define GL_OES_EGL_image 1
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
+GLAPI void APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
+#endif
+typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
+typedef void (APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
+#endif
+
+
+/**
+ ** NOTE!!!!!  If you add new functions to this file, or update
+ ** glext.h be sure to regenerate the gl_mangle.h file.  See comments
+ ** in that file for details.
+ **/
+
+
+
+/**********************************************************************
+ * Begin system-specific stuff
+ */
+#if defined(PRAGMA_EXPORT_SUPPORTED)
+#pragma export off
+#endif
+
+/*
+ * End system-specific stuff
+ **********************************************************************/
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __gl_h_ */
+
+#endif /* !__IPHONEOS__ */
+
+#endif /* SDL_opengl_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengl_glext.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengl_glext.h
new file mode 100644
index 0000000..cd3869f
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengl_glext.h
@@ -0,0 +1,11177 @@
+#ifndef __glext_h_
+#define __glext_h_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** Copyright (c) 2013-2014 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+/*
+** This header is generated from the Khronos OpenGL / OpenGL ES XML
+** API Registry. The current version of the Registry, generator scripts
+** used to make the header, and the header can be found at
+**   http://www.opengl.org/registry/
+**
+** Khronos $Revision: 26745 $ on $Date: 2014-05-21 03:12:26 -0700 (Wed, 21 May 2014) $
+*/
+
+#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN 1
+#endif
+#include <windows.h>
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY
+#endif
+#ifndef APIENTRYP
+#define APIENTRYP APIENTRY *
+#endif
+#ifndef GLAPI
+#define GLAPI extern
+#endif
+
+#define GL_GLEXT_VERSION 20140521
+
+/* Generated C header for:
+ * API: gl
+ * Profile: compatibility
+ * Versions considered: .*
+ * Versions emitted: 1\.[2-9]|[234]\.[0-9]
+ * Default extensions included: gl
+ * Additional extensions included: _nomatch_^
+ * Extensions removed: _nomatch_^
+ */
+
+#ifndef GL_VERSION_1_2
+#define GL_VERSION_1_2 1
+#define GL_UNSIGNED_BYTE_3_3_2            0x8032
+#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
+#define GL_UNSIGNED_INT_8_8_8_8           0x8035
+#define GL_UNSIGNED_INT_10_10_10_2        0x8036
+#define GL_TEXTURE_BINDING_3D             0x806A
+#define GL_PACK_SKIP_IMAGES               0x806B
+#define GL_PACK_IMAGE_HEIGHT              0x806C
+#define GL_UNPACK_SKIP_IMAGES             0x806D
+#define GL_UNPACK_IMAGE_HEIGHT            0x806E
+#define GL_TEXTURE_3D                     0x806F
+#define GL_PROXY_TEXTURE_3D               0x8070
+#define GL_TEXTURE_DEPTH                  0x8071
+#define GL_TEXTURE_WRAP_R                 0x8072
+#define GL_MAX_3D_TEXTURE_SIZE            0x8073
+#define GL_UNSIGNED_BYTE_2_3_3_REV        0x8362
+#define GL_UNSIGNED_SHORT_5_6_5           0x8363
+#define GL_UNSIGNED_SHORT_5_6_5_REV       0x8364
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV     0x8365
+#define GL_UNSIGNED_SHORT_1_5_5_5_REV     0x8366
+#define GL_UNSIGNED_INT_8_8_8_8_REV       0x8367
+#define GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
+#define GL_BGR                            0x80E0
+#define GL_BGRA                           0x80E1
+#define GL_MAX_ELEMENTS_VERTICES          0x80E8
+#define GL_MAX_ELEMENTS_INDICES           0x80E9
+#define GL_CLAMP_TO_EDGE                  0x812F
+#define GL_TEXTURE_MIN_LOD                0x813A
+#define GL_TEXTURE_MAX_LOD                0x813B
+#define GL_TEXTURE_BASE_LEVEL             0x813C
+#define GL_TEXTURE_MAX_LEVEL              0x813D
+#define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
+#define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
+#define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
+#define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
+#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
+#define GL_RESCALE_NORMAL                 0x803A
+#define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
+#define GL_SINGLE_COLOR                   0x81F9
+#define GL_SEPARATE_SPECULAR_COLOR        0x81FA
+#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
+typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
+GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_VERSION_1_2 */
+
+#ifndef GL_VERSION_1_3
+#define GL_VERSION_1_3 1
+#define GL_TEXTURE0                       0x84C0
+#define GL_TEXTURE1                       0x84C1
+#define GL_TEXTURE2                       0x84C2
+#define GL_TEXTURE3                       0x84C3
+#define GL_TEXTURE4                       0x84C4
+#define GL_TEXTURE5                       0x84C5
+#define GL_TEXTURE6                       0x84C6
+#define GL_TEXTURE7                       0x84C7
+#define GL_TEXTURE8                       0x84C8
+#define GL_TEXTURE9                       0x84C9
+#define GL_TEXTURE10                      0x84CA
+#define GL_TEXTURE11                      0x84CB
+#define GL_TEXTURE12                      0x84CC
+#define GL_TEXTURE13                      0x84CD
+#define GL_TEXTURE14                      0x84CE
+#define GL_TEXTURE15                      0x84CF
+#define GL_TEXTURE16                      0x84D0
+#define GL_TEXTURE17                      0x84D1
+#define GL_TEXTURE18                      0x84D2
+#define GL_TEXTURE19                      0x84D3
+#define GL_TEXTURE20                      0x84D4
+#define GL_TEXTURE21                      0x84D5
+#define GL_TEXTURE22                      0x84D6
+#define GL_TEXTURE23                      0x84D7
+#define GL_TEXTURE24                      0x84D8
+#define GL_TEXTURE25                      0x84D9
+#define GL_TEXTURE26                      0x84DA
+#define GL_TEXTURE27                      0x84DB
+#define GL_TEXTURE28                      0x84DC
+#define GL_TEXTURE29                      0x84DD
+#define GL_TEXTURE30                      0x84DE
+#define GL_TEXTURE31                      0x84DF
+#define GL_ACTIVE_TEXTURE                 0x84E0
+#define GL_MULTISAMPLE                    0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE            0x809F
+#define GL_SAMPLE_COVERAGE                0x80A0
+#define GL_SAMPLE_BUFFERS                 0x80A8
+#define GL_SAMPLES                        0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
+#define GL_TEXTURE_CUBE_MAP               0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
+#define GL_COMPRESSED_RGB                 0x84ED
+#define GL_COMPRESSED_RGBA                0x84EE
+#define GL_TEXTURE_COMPRESSION_HINT       0x84EF
+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE  0x86A0
+#define GL_TEXTURE_COMPRESSED             0x86A1
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
+#define GL_CLAMP_TO_BORDER                0x812D
+#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
+#define GL_MAX_TEXTURE_UNITS              0x84E2
+#define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
+#define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
+#define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
+#define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
+#define GL_MULTISAMPLE_BIT                0x20000000
+#define GL_NORMAL_MAP                     0x8511
+#define GL_REFLECTION_MAP                 0x8512
+#define GL_COMPRESSED_ALPHA               0x84E9
+#define GL_COMPRESSED_LUMINANCE           0x84EA
+#define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
+#define GL_COMPRESSED_INTENSITY           0x84EC
+#define GL_COMBINE                        0x8570
+#define GL_COMBINE_RGB                    0x8571
+#define GL_COMBINE_ALPHA                  0x8572
+#define GL_SOURCE0_RGB                    0x8580
+#define GL_SOURCE1_RGB                    0x8581
+#define GL_SOURCE2_RGB                    0x8582
+#define GL_SOURCE0_ALPHA                  0x8588
+#define GL_SOURCE1_ALPHA                  0x8589
+#define GL_SOURCE2_ALPHA                  0x858A
+#define GL_OPERAND0_RGB                   0x8590
+#define GL_OPERAND1_RGB                   0x8591
+#define GL_OPERAND2_RGB                   0x8592
+#define GL_OPERAND0_ALPHA                 0x8598
+#define GL_OPERAND1_ALPHA                 0x8599
+#define GL_OPERAND2_ALPHA                 0x859A
+#define GL_RGB_SCALE                      0x8573
+#define GL_ADD_SIGNED                     0x8574
+#define GL_INTERPOLATE                    0x8575
+#define GL_SUBTRACT                       0x84E7
+#define GL_CONSTANT                       0x8576
+#define GL_PRIMARY_COLOR                  0x8577
+#define GL_PREVIOUS                       0x8578
+#define GL_DOT3_RGB                       0x86AE
+#define GL_DOT3_RGBA                      0x86AF
+typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img);
+typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glActiveTexture (GLenum texture);
+GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
+GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, void *img);
+GLAPI void APIENTRY glClientActiveTexture (GLenum texture);
+GLAPI void APIENTRY glMultiTexCoord1d (GLenum target, GLdouble s);
+GLAPI void APIENTRY glMultiTexCoord1dv (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord1f (GLenum target, GLfloat s);
+GLAPI void APIENTRY glMultiTexCoord1fv (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord1i (GLenum target, GLint s);
+GLAPI void APIENTRY glMultiTexCoord1iv (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord1s (GLenum target, GLshort s);
+GLAPI void APIENTRY glMultiTexCoord1sv (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t);
+GLAPI void APIENTRY glMultiTexCoord2dv (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t);
+GLAPI void APIENTRY glMultiTexCoord2fv (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord2i (GLenum target, GLint s, GLint t);
+GLAPI void APIENTRY glMultiTexCoord2iv (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord2s (GLenum target, GLshort s, GLshort t);
+GLAPI void APIENTRY glMultiTexCoord2sv (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+GLAPI void APIENTRY glMultiTexCoord3dv (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+GLAPI void APIENTRY glMultiTexCoord3fv (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
+GLAPI void APIENTRY glMultiTexCoord3iv (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r);
+GLAPI void APIENTRY glMultiTexCoord3sv (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+GLAPI void APIENTRY glMultiTexCoord4dv (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+GLAPI void APIENTRY glMultiTexCoord4fv (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q);
+GLAPI void APIENTRY glMultiTexCoord4iv (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+GLAPI void APIENTRY glMultiTexCoord4sv (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *m);
+GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *m);
+GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *m);
+GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *m);
+#endif
+#endif /* GL_VERSION_1_3 */
+
+#ifndef GL_VERSION_1_4
+#define GL_VERSION_1_4 1
+#define GL_BLEND_DST_RGB                  0x80C8
+#define GL_BLEND_SRC_RGB                  0x80C9
+#define GL_BLEND_DST_ALPHA                0x80CA
+#define GL_BLEND_SRC_ALPHA                0x80CB
+#define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
+#define GL_DEPTH_COMPONENT16              0x81A5
+#define GL_DEPTH_COMPONENT24              0x81A6
+#define GL_DEPTH_COMPONENT32              0x81A7
+#define GL_MIRRORED_REPEAT                0x8370
+#define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
+#define GL_TEXTURE_LOD_BIAS               0x8501
+#define GL_INCR_WRAP                      0x8507
+#define GL_DECR_WRAP                      0x8508
+#define GL_TEXTURE_DEPTH_SIZE             0x884A
+#define GL_TEXTURE_COMPARE_MODE           0x884C
+#define GL_TEXTURE_COMPARE_FUNC           0x884D
+#define GL_POINT_SIZE_MIN                 0x8126
+#define GL_POINT_SIZE_MAX                 0x8127
+#define GL_POINT_DISTANCE_ATTENUATION     0x8129
+#define GL_GENERATE_MIPMAP                0x8191
+#define GL_GENERATE_MIPMAP_HINT           0x8192
+#define GL_FOG_COORDINATE_SOURCE          0x8450
+#define GL_FOG_COORDINATE                 0x8451
+#define GL_FRAGMENT_DEPTH                 0x8452
+#define GL_CURRENT_FOG_COORDINATE         0x8453
+#define GL_FOG_COORDINATE_ARRAY_TYPE      0x8454
+#define GL_FOG_COORDINATE_ARRAY_STRIDE    0x8455
+#define GL_FOG_COORDINATE_ARRAY_POINTER   0x8456
+#define GL_FOG_COORDINATE_ARRAY           0x8457
+#define GL_COLOR_SUM                      0x8458
+#define GL_CURRENT_SECONDARY_COLOR        0x8459
+#define GL_SECONDARY_COLOR_ARRAY_SIZE     0x845A
+#define GL_SECONDARY_COLOR_ARRAY_TYPE     0x845B
+#define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
+#define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
+#define GL_SECONDARY_COLOR_ARRAY          0x845E
+#define GL_TEXTURE_FILTER_CONTROL         0x8500
+#define GL_DEPTH_TEXTURE_MODE             0x884B
+#define GL_COMPARE_R_TO_TEXTURE           0x884E
+#define GL_FUNC_ADD                       0x8006
+#define GL_FUNC_SUBTRACT                  0x800A
+#define GL_FUNC_REVERSE_SUBTRACT          0x800B
+#define GL_MIN                            0x8007
+#define GL_MAX                            0x8008
+#define GL_CONSTANT_COLOR                 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
+#define GL_CONSTANT_ALPHA                 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
+typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
+typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
+typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
+typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
+GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
+GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param);
+GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params);
+GLAPI void APIENTRY glFogCoordf (GLfloat coord);
+GLAPI void APIENTRY glFogCoordfv (const GLfloat *coord);
+GLAPI void APIENTRY glFogCoordd (GLdouble coord);
+GLAPI void APIENTRY glFogCoorddv (const GLdouble *coord);
+GLAPI void APIENTRY glFogCoordPointer (GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
+GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *v);
+GLAPI void APIENTRY glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue);
+GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *v);
+GLAPI void APIENTRY glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
+GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *v);
+GLAPI void APIENTRY glSecondaryColor3i (GLint red, GLint green, GLint blue);
+GLAPI void APIENTRY glSecondaryColor3iv (const GLint *v);
+GLAPI void APIENTRY glSecondaryColor3s (GLshort red, GLshort green, GLshort blue);
+GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *v);
+GLAPI void APIENTRY glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue);
+GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *v);
+GLAPI void APIENTRY glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue);
+GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *v);
+GLAPI void APIENTRY glSecondaryColor3us (GLushort red, GLushort green, GLushort blue);
+GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *v);
+GLAPI void APIENTRY glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glWindowPos2d (GLdouble x, GLdouble y);
+GLAPI void APIENTRY glWindowPos2dv (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos2f (GLfloat x, GLfloat y);
+GLAPI void APIENTRY glWindowPos2fv (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos2i (GLint x, GLint y);
+GLAPI void APIENTRY glWindowPos2iv (const GLint *v);
+GLAPI void APIENTRY glWindowPos2s (GLshort x, GLshort y);
+GLAPI void APIENTRY glWindowPos2sv (const GLshort *v);
+GLAPI void APIENTRY glWindowPos3d (GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glWindowPos3dv (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos3f (GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glWindowPos3fv (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos3i (GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glWindowPos3iv (const GLint *v);
+GLAPI void APIENTRY glWindowPos3s (GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glWindowPos3sv (const GLshort *v);
+GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+GLAPI void APIENTRY glBlendEquation (GLenum mode);
+#endif
+#endif /* GL_VERSION_1_4 */
+
+#ifndef GL_VERSION_1_5
+#define GL_VERSION_1_5 1
+#include <stddef.h>
+#ifdef __MACOSX__
+typedef long GLsizeiptr;
+typedef long GLintptr;
+#else
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptr;
+#endif
+#define GL_BUFFER_SIZE                    0x8764
+#define GL_BUFFER_USAGE                   0x8765
+#define GL_QUERY_COUNTER_BITS             0x8864
+#define GL_CURRENT_QUERY                  0x8865
+#define GL_QUERY_RESULT                   0x8866
+#define GL_QUERY_RESULT_AVAILABLE         0x8867
+#define GL_ARRAY_BUFFER                   0x8892
+#define GL_ELEMENT_ARRAY_BUFFER           0x8893
+#define GL_ARRAY_BUFFER_BINDING           0x8894
+#define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
+#define GL_READ_ONLY                      0x88B8
+#define GL_WRITE_ONLY                     0x88B9
+#define GL_READ_WRITE                     0x88BA
+#define GL_BUFFER_ACCESS                  0x88BB
+#define GL_BUFFER_MAPPED                  0x88BC
+#define GL_BUFFER_MAP_POINTER             0x88BD
+#define GL_STREAM_DRAW                    0x88E0
+#define GL_STREAM_READ                    0x88E1
+#define GL_STREAM_COPY                    0x88E2
+#define GL_STATIC_DRAW                    0x88E4
+#define GL_STATIC_READ                    0x88E5
+#define GL_STATIC_COPY                    0x88E6
+#define GL_DYNAMIC_DRAW                   0x88E8
+#define GL_DYNAMIC_READ                   0x88E9
+#define GL_DYNAMIC_COPY                   0x88EA
+#define GL_SAMPLES_PASSED                 0x8914
+#define GL_SRC1_ALPHA                     0x8589
+#define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
+#define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
+#define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
+#define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
+#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
+#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
+#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
+#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
+#define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
+#define GL_FOG_COORD_SRC                  0x8450
+#define GL_FOG_COORD                      0x8451
+#define GL_CURRENT_FOG_COORD              0x8453
+#define GL_FOG_COORD_ARRAY_TYPE           0x8454
+#define GL_FOG_COORD_ARRAY_STRIDE         0x8455
+#define GL_FOG_COORD_ARRAY_POINTER        0x8456
+#define GL_FOG_COORD_ARRAY                0x8457
+#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D
+#define GL_SRC0_RGB                       0x8580
+#define GL_SRC1_RGB                       0x8581
+#define GL_SRC2_RGB                       0x8582
+#define GL_SRC0_ALPHA                     0x8588
+#define GL_SRC2_ALPHA                     0x858A
+typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
+typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
+typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
+typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
+typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
+typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
+typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
+typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
+GLAPI GLboolean APIENTRY glIsQuery (GLuint id);
+GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id);
+GLAPI void APIENTRY glEndQuery (GLenum target);
+GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer);
+GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
+GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
+GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer);
+GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
+GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
+GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
+GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access);
+GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target);
+GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, void **params);
+#endif
+#endif /* GL_VERSION_1_5 */
+
+#ifndef GL_VERSION_2_0
+#define GL_VERSION_2_0 1
+typedef char GLchar;
+#define GL_BLEND_EQUATION_RGB             0x8009
+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
+#define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
+#define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
+#define GL_CURRENT_VERTEX_ATTRIB          0x8626
+#define GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
+#define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
+#define GL_STENCIL_BACK_FUNC              0x8800
+#define GL_STENCIL_BACK_FAIL              0x8801
+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
+#define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
+#define GL_MAX_DRAW_BUFFERS               0x8824
+#define GL_DRAW_BUFFER0                   0x8825
+#define GL_DRAW_BUFFER1                   0x8826
+#define GL_DRAW_BUFFER2                   0x8827
+#define GL_DRAW_BUFFER3                   0x8828
+#define GL_DRAW_BUFFER4                   0x8829
+#define GL_DRAW_BUFFER5                   0x882A
+#define GL_DRAW_BUFFER6                   0x882B
+#define GL_DRAW_BUFFER7                   0x882C
+#define GL_DRAW_BUFFER8                   0x882D
+#define GL_DRAW_BUFFER9                   0x882E
+#define GL_DRAW_BUFFER10                  0x882F
+#define GL_DRAW_BUFFER11                  0x8830
+#define GL_DRAW_BUFFER12                  0x8831
+#define GL_DRAW_BUFFER13                  0x8832
+#define GL_DRAW_BUFFER14                  0x8833
+#define GL_DRAW_BUFFER15                  0x8834
+#define GL_BLEND_EQUATION_ALPHA           0x883D
+#define GL_MAX_VERTEX_ATTRIBS             0x8869
+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
+#define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
+#define GL_FRAGMENT_SHADER                0x8B30
+#define GL_VERTEX_SHADER                  0x8B31
+#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
+#define GL_MAX_VERTEX_UNIFORM_COMPONENTS  0x8B4A
+#define GL_MAX_VARYING_FLOATS             0x8B4B
+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
+#define GL_SHADER_TYPE                    0x8B4F
+#define GL_FLOAT_VEC2                     0x8B50
+#define GL_FLOAT_VEC3                     0x8B51
+#define GL_FLOAT_VEC4                     0x8B52
+#define GL_INT_VEC2                       0x8B53
+#define GL_INT_VEC3                       0x8B54
+#define GL_INT_VEC4                       0x8B55
+#define GL_BOOL                           0x8B56
+#define GL_BOOL_VEC2                      0x8B57
+#define GL_BOOL_VEC3                      0x8B58
+#define GL_BOOL_VEC4                      0x8B59
+#define GL_FLOAT_MAT2                     0x8B5A
+#define GL_FLOAT_MAT3                     0x8B5B
+#define GL_FLOAT_MAT4                     0x8B5C
+#define GL_SAMPLER_1D                     0x8B5D
+#define GL_SAMPLER_2D                     0x8B5E
+#define GL_SAMPLER_3D                     0x8B5F
+#define GL_SAMPLER_CUBE                   0x8B60
+#define GL_SAMPLER_1D_SHADOW              0x8B61
+#define GL_SAMPLER_2D_SHADOW              0x8B62
+#define GL_DELETE_STATUS                  0x8B80
+#define GL_COMPILE_STATUS                 0x8B81
+#define GL_LINK_STATUS                    0x8B82
+#define GL_VALIDATE_STATUS                0x8B83
+#define GL_INFO_LOG_LENGTH                0x8B84
+#define GL_ATTACHED_SHADERS               0x8B85
+#define GL_ACTIVE_UNIFORMS                0x8B86
+#define GL_ACTIVE_UNIFORM_MAX_LENGTH      0x8B87
+#define GL_SHADER_SOURCE_LENGTH           0x8B88
+#define GL_ACTIVE_ATTRIBUTES              0x8B89
+#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH    0x8B8A
+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
+#define GL_SHADING_LANGUAGE_VERSION       0x8B8C
+#define GL_CURRENT_PROGRAM                0x8B8D
+#define GL_POINT_SPRITE_COORD_ORIGIN      0x8CA0
+#define GL_LOWER_LEFT                     0x8CA1
+#define GL_UPPER_LEFT                     0x8CA2
+#define GL_STENCIL_BACK_REF               0x8CA3
+#define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
+#define GL_STENCIL_BACK_WRITEMASK         0x8CA5
+#define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
+#define GL_POINT_SPRITE                   0x8861
+#define GL_COORD_REPLACE                  0x8862
+#define GL_MAX_TEXTURE_COORDS             0x8871
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
+typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
+typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
+typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
+typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
+typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
+typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
+typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
+typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
+typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
+typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
+typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
+typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
+typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
+typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
+typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
+GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
+GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
+GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
+GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader);
+GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
+GLAPI void APIENTRY glCompileShader (GLuint shader);
+GLAPI GLuint APIENTRY glCreateProgram (void);
+GLAPI GLuint APIENTRY glCreateShader (GLenum type);
+GLAPI void APIENTRY glDeleteProgram (GLuint program);
+GLAPI void APIENTRY glDeleteShader (GLuint shader);
+GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader);
+GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index);
+GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index);
+GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
+GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
+GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
+GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
+GLAPI GLboolean APIENTRY glIsProgram (GLuint program);
+GLAPI GLboolean APIENTRY glIsShader (GLuint shader);
+GLAPI void APIENTRY glLinkProgram (GLuint program);
+GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
+GLAPI void APIENTRY glUseProgram (GLuint program);
+GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0);
+GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glUniform1i (GLint location, GLint v0);
+GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glValidateProgram (GLuint program);
+GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
+GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x);
+GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
+GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_VERSION_2_0 */
+
+#ifndef GL_VERSION_2_1
+#define GL_VERSION_2_1 1
+#define GL_PIXEL_PACK_BUFFER              0x88EB
+#define GL_PIXEL_UNPACK_BUFFER            0x88EC
+#define GL_PIXEL_PACK_BUFFER_BINDING      0x88ED
+#define GL_PIXEL_UNPACK_BUFFER_BINDING    0x88EF
+#define GL_FLOAT_MAT2x3                   0x8B65
+#define GL_FLOAT_MAT2x4                   0x8B66
+#define GL_FLOAT_MAT3x2                   0x8B67
+#define GL_FLOAT_MAT3x4                   0x8B68
+#define GL_FLOAT_MAT4x2                   0x8B69
+#define GL_FLOAT_MAT4x3                   0x8B6A
+#define GL_SRGB                           0x8C40
+#define GL_SRGB8                          0x8C41
+#define GL_SRGB_ALPHA                     0x8C42
+#define GL_SRGB8_ALPHA8                   0x8C43
+#define GL_COMPRESSED_SRGB                0x8C48
+#define GL_COMPRESSED_SRGB_ALPHA          0x8C49
+#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
+#define GL_SLUMINANCE_ALPHA               0x8C44
+#define GL_SLUMINANCE8_ALPHA8             0x8C45
+#define GL_SLUMINANCE                     0x8C46
+#define GL_SLUMINANCE8                    0x8C47
+#define GL_COMPRESSED_SLUMINANCE          0x8C4A
+#define GL_COMPRESSED_SLUMINANCE_ALPHA    0x8C4B
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#endif
+#endif /* GL_VERSION_2_1 */
+
+#ifndef GL_VERSION_3_0
+#define GL_VERSION_3_0 1
+typedef unsigned short GLhalf;
+#define GL_COMPARE_REF_TO_TEXTURE         0x884E
+#define GL_CLIP_DISTANCE0                 0x3000
+#define GL_CLIP_DISTANCE1                 0x3001
+#define GL_CLIP_DISTANCE2                 0x3002
+#define GL_CLIP_DISTANCE3                 0x3003
+#define GL_CLIP_DISTANCE4                 0x3004
+#define GL_CLIP_DISTANCE5                 0x3005
+#define GL_CLIP_DISTANCE6                 0x3006
+#define GL_CLIP_DISTANCE7                 0x3007
+#define GL_MAX_CLIP_DISTANCES             0x0D32
+#define GL_MAJOR_VERSION                  0x821B
+#define GL_MINOR_VERSION                  0x821C
+#define GL_NUM_EXTENSIONS                 0x821D
+#define GL_CONTEXT_FLAGS                  0x821E
+#define GL_COMPRESSED_RED                 0x8225
+#define GL_COMPRESSED_RG                  0x8226
+#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001
+#define GL_RGBA32F                        0x8814
+#define GL_RGB32F                         0x8815
+#define GL_RGBA16F                        0x881A
+#define GL_RGB16F                         0x881B
+#define GL_VERTEX_ATTRIB_ARRAY_INTEGER    0x88FD
+#define GL_MAX_ARRAY_TEXTURE_LAYERS       0x88FF
+#define GL_MIN_PROGRAM_TEXEL_OFFSET       0x8904
+#define GL_MAX_PROGRAM_TEXEL_OFFSET       0x8905
+#define GL_CLAMP_READ_COLOR               0x891C
+#define GL_FIXED_ONLY                     0x891D
+#define GL_MAX_VARYING_COMPONENTS         0x8B4B
+#define GL_TEXTURE_1D_ARRAY               0x8C18
+#define GL_PROXY_TEXTURE_1D_ARRAY         0x8C19
+#define GL_TEXTURE_2D_ARRAY               0x8C1A
+#define GL_PROXY_TEXTURE_2D_ARRAY         0x8C1B
+#define GL_TEXTURE_BINDING_1D_ARRAY       0x8C1C
+#define GL_TEXTURE_BINDING_2D_ARRAY       0x8C1D
+#define GL_R11F_G11F_B10F                 0x8C3A
+#define GL_UNSIGNED_INT_10F_11F_11F_REV   0x8C3B
+#define GL_RGB9_E5                        0x8C3D
+#define GL_UNSIGNED_INT_5_9_9_9_REV       0x8C3E
+#define GL_TEXTURE_SHARED_SIZE            0x8C3F
+#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
+#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
+#define GL_TRANSFORM_FEEDBACK_VARYINGS    0x8C83
+#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
+#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
+#define GL_PRIMITIVES_GENERATED           0x8C87
+#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
+#define GL_RASTERIZER_DISCARD             0x8C89
+#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
+#define GL_INTERLEAVED_ATTRIBS            0x8C8C
+#define GL_SEPARATE_ATTRIBS               0x8C8D
+#define GL_TRANSFORM_FEEDBACK_BUFFER      0x8C8E
+#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
+#define GL_RGBA32UI                       0x8D70
+#define GL_RGB32UI                        0x8D71
+#define GL_RGBA16UI                       0x8D76
+#define GL_RGB16UI                        0x8D77
+#define GL_RGBA8UI                        0x8D7C
+#define GL_RGB8UI                         0x8D7D
+#define GL_RGBA32I                        0x8D82
+#define GL_RGB32I                         0x8D83
+#define GL_RGBA16I                        0x8D88
+#define GL_RGB16I                         0x8D89
+#define GL_RGBA8I                         0x8D8E
+#define GL_RGB8I                          0x8D8F
+#define GL_RED_INTEGER                    0x8D94
+#define GL_GREEN_INTEGER                  0x8D95
+#define GL_BLUE_INTEGER                   0x8D96
+#define GL_RGB_INTEGER                    0x8D98
+#define GL_RGBA_INTEGER                   0x8D99
+#define GL_BGR_INTEGER                    0x8D9A
+#define GL_BGRA_INTEGER                   0x8D9B
+#define GL_SAMPLER_1D_ARRAY               0x8DC0
+#define GL_SAMPLER_2D_ARRAY               0x8DC1
+#define GL_SAMPLER_1D_ARRAY_SHADOW        0x8DC3
+#define GL_SAMPLER_2D_ARRAY_SHADOW        0x8DC4
+#define GL_SAMPLER_CUBE_SHADOW            0x8DC5
+#define GL_UNSIGNED_INT_VEC2              0x8DC6
+#define GL_UNSIGNED_INT_VEC3              0x8DC7
+#define GL_UNSIGNED_INT_VEC4              0x8DC8
+#define GL_INT_SAMPLER_1D                 0x8DC9
+#define GL_INT_SAMPLER_2D                 0x8DCA
+#define GL_INT_SAMPLER_3D                 0x8DCB
+#define GL_INT_SAMPLER_CUBE               0x8DCC
+#define GL_INT_SAMPLER_1D_ARRAY           0x8DCE
+#define GL_INT_SAMPLER_2D_ARRAY           0x8DCF
+#define GL_UNSIGNED_INT_SAMPLER_1D        0x8DD1
+#define GL_UNSIGNED_INT_SAMPLER_2D        0x8DD2
+#define GL_UNSIGNED_INT_SAMPLER_3D        0x8DD3
+#define GL_UNSIGNED_INT_SAMPLER_CUBE      0x8DD4
+#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY  0x8DD6
+#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY  0x8DD7
+#define GL_QUERY_WAIT                     0x8E13
+#define GL_QUERY_NO_WAIT                  0x8E14
+#define GL_QUERY_BY_REGION_WAIT           0x8E15
+#define GL_QUERY_BY_REGION_NO_WAIT        0x8E16
+#define GL_BUFFER_ACCESS_FLAGS            0x911F
+#define GL_BUFFER_MAP_LENGTH              0x9120
+#define GL_BUFFER_MAP_OFFSET              0x9121
+#define GL_DEPTH_COMPONENT32F             0x8CAC
+#define GL_DEPTH32F_STENCIL8              0x8CAD
+#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
+#define GL_INVALID_FRAMEBUFFER_OPERATION  0x0506
+#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
+#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
+#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
+#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
+#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
+#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
+#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
+#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
+#define GL_FRAMEBUFFER_DEFAULT            0x8218
+#define GL_FRAMEBUFFER_UNDEFINED          0x8219
+#define GL_DEPTH_STENCIL_ATTACHMENT       0x821A
+#define GL_MAX_RENDERBUFFER_SIZE          0x84E8
+#define GL_DEPTH_STENCIL                  0x84F9
+#define GL_UNSIGNED_INT_24_8              0x84FA
+#define GL_DEPTH24_STENCIL8               0x88F0
+#define GL_TEXTURE_STENCIL_SIZE           0x88F1
+#define GL_TEXTURE_RED_TYPE               0x8C10
+#define GL_TEXTURE_GREEN_TYPE             0x8C11
+#define GL_TEXTURE_BLUE_TYPE              0x8C12
+#define GL_TEXTURE_ALPHA_TYPE             0x8C13
+#define GL_TEXTURE_DEPTH_TYPE             0x8C16
+#define GL_UNSIGNED_NORMALIZED            0x8C17
+#define GL_FRAMEBUFFER_BINDING            0x8CA6
+#define GL_DRAW_FRAMEBUFFER_BINDING       0x8CA6
+#define GL_RENDERBUFFER_BINDING           0x8CA7
+#define GL_READ_FRAMEBUFFER               0x8CA8
+#define GL_DRAW_FRAMEBUFFER               0x8CA9
+#define GL_READ_FRAMEBUFFER_BINDING       0x8CAA
+#define GL_RENDERBUFFER_SAMPLES           0x8CAB
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
+#define GL_FRAMEBUFFER_COMPLETE           0x8CD5
+#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
+#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
+#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
+#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
+#define GL_FRAMEBUFFER_UNSUPPORTED        0x8CDD
+#define GL_MAX_COLOR_ATTACHMENTS          0x8CDF
+#define GL_COLOR_ATTACHMENT0              0x8CE0
+#define GL_COLOR_ATTACHMENT1              0x8CE1
+#define GL_COLOR_ATTACHMENT2              0x8CE2
+#define GL_COLOR_ATTACHMENT3              0x8CE3
+#define GL_COLOR_ATTACHMENT4              0x8CE4
+#define GL_COLOR_ATTACHMENT5              0x8CE5
+#define GL_COLOR_ATTACHMENT6              0x8CE6
+#define GL_COLOR_ATTACHMENT7              0x8CE7
+#define GL_COLOR_ATTACHMENT8              0x8CE8
+#define GL_COLOR_ATTACHMENT9              0x8CE9
+#define GL_COLOR_ATTACHMENT10             0x8CEA
+#define GL_COLOR_ATTACHMENT11             0x8CEB
+#define GL_COLOR_ATTACHMENT12             0x8CEC
+#define GL_COLOR_ATTACHMENT13             0x8CED
+#define GL_COLOR_ATTACHMENT14             0x8CEE
+#define GL_COLOR_ATTACHMENT15             0x8CEF
+#define GL_DEPTH_ATTACHMENT               0x8D00
+#define GL_STENCIL_ATTACHMENT             0x8D20
+#define GL_FRAMEBUFFER                    0x8D40
+#define GL_RENDERBUFFER                   0x8D41
+#define GL_RENDERBUFFER_WIDTH             0x8D42
+#define GL_RENDERBUFFER_HEIGHT            0x8D43
+#define GL_RENDERBUFFER_INTERNAL_FORMAT   0x8D44
+#define GL_STENCIL_INDEX1                 0x8D46
+#define GL_STENCIL_INDEX4                 0x8D47
+#define GL_STENCIL_INDEX8                 0x8D48
+#define GL_STENCIL_INDEX16                0x8D49
+#define GL_RENDERBUFFER_RED_SIZE          0x8D50
+#define GL_RENDERBUFFER_GREEN_SIZE        0x8D51
+#define GL_RENDERBUFFER_BLUE_SIZE         0x8D52
+#define GL_RENDERBUFFER_ALPHA_SIZE        0x8D53
+#define GL_RENDERBUFFER_DEPTH_SIZE        0x8D54
+#define GL_RENDERBUFFER_STENCIL_SIZE      0x8D55
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
+#define GL_MAX_SAMPLES                    0x8D57
+#define GL_INDEX                          0x8222
+#define GL_TEXTURE_LUMINANCE_TYPE         0x8C14
+#define GL_TEXTURE_INTENSITY_TYPE         0x8C15
+#define GL_FRAMEBUFFER_SRGB               0x8DB9
+#define GL_HALF_FLOAT                     0x140B
+#define GL_MAP_READ_BIT                   0x0001
+#define GL_MAP_WRITE_BIT                  0x0002
+#define GL_MAP_INVALIDATE_RANGE_BIT       0x0004
+#define GL_MAP_INVALIDATE_BUFFER_BIT      0x0008
+#define GL_MAP_FLUSH_EXPLICIT_BIT         0x0010
+#define GL_MAP_UNSYNCHRONIZED_BIT         0x0020
+#define GL_COMPRESSED_RED_RGTC1           0x8DBB
+#define GL_COMPRESSED_SIGNED_RED_RGTC1    0x8DBC
+#define GL_COMPRESSED_RG_RGTC2            0x8DBD
+#define GL_COMPRESSED_SIGNED_RG_RGTC2     0x8DBE
+#define GL_RG                             0x8227
+#define GL_RG_INTEGER                     0x8228
+#define GL_R8                             0x8229
+#define GL_R16                            0x822A
+#define GL_RG8                            0x822B
+#define GL_RG16                           0x822C
+#define GL_R16F                           0x822D
+#define GL_R32F                           0x822E
+#define GL_RG16F                          0x822F
+#define GL_RG32F                          0x8230
+#define GL_R8I                            0x8231
+#define GL_R8UI                           0x8232
+#define GL_R16I                           0x8233
+#define GL_R16UI                          0x8234
+#define GL_R32I                           0x8235
+#define GL_R32UI                          0x8236
+#define GL_RG8I                           0x8237
+#define GL_RG8UI                          0x8238
+#define GL_RG16I                          0x8239
+#define GL_RG16UI                         0x823A
+#define GL_RG32I                          0x823B
+#define GL_RG32UI                         0x823C
+#define GL_VERTEX_ARRAY_BINDING           0x85B5
+#define GL_CLAMP_VERTEX_COLOR             0x891A
+#define GL_CLAMP_FRAGMENT_COLOR           0x891B
+#define GL_ALPHA_INTEGER                  0x8D97
+typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
+typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
+typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
+typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
+typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
+typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
+typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
+typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
+typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
+typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
+typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
+typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
+typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
+typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
+typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
+typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
+typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
+typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
+typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
+typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
+typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
+GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
+GLAPI void APIENTRY glEnablei (GLenum target, GLuint index);
+GLAPI void APIENTRY glDisablei (GLenum target, GLuint index);
+GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index);
+GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
+GLAPI void APIENTRY glEndTransformFeedback (void);
+GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
+GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
+GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp);
+GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode);
+GLAPI void APIENTRY glEndConditionalRender (void);
+GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x);
+GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
+GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x);
+GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
+GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
+GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
+GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
+GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0);
+GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
+GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
+GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
+GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index);
+GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer);
+GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
+GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
+GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer);
+GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
+GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
+GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
+GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target);
+GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGenerateMipmap (GLenum target);
+GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
+GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glBindVertexArray (GLuint array);
+GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
+GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays);
+GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array);
+#endif
+#endif /* GL_VERSION_3_0 */
+
+#ifndef GL_VERSION_3_1
+#define GL_VERSION_3_1 1
+#define GL_SAMPLER_2D_RECT                0x8B63
+#define GL_SAMPLER_2D_RECT_SHADOW         0x8B64
+#define GL_SAMPLER_BUFFER                 0x8DC2
+#define GL_INT_SAMPLER_2D_RECT            0x8DCD
+#define GL_INT_SAMPLER_BUFFER             0x8DD0
+#define GL_UNSIGNED_INT_SAMPLER_2D_RECT   0x8DD5
+#define GL_UNSIGNED_INT_SAMPLER_BUFFER    0x8DD8
+#define GL_TEXTURE_BUFFER                 0x8C2A
+#define GL_MAX_TEXTURE_BUFFER_SIZE        0x8C2B
+#define GL_TEXTURE_BINDING_BUFFER         0x8C2C
+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
+#define GL_TEXTURE_RECTANGLE              0x84F5
+#define GL_TEXTURE_BINDING_RECTANGLE      0x84F6
+#define GL_PROXY_TEXTURE_RECTANGLE        0x84F7
+#define GL_MAX_RECTANGLE_TEXTURE_SIZE     0x84F8
+#define GL_R8_SNORM                       0x8F94
+#define GL_RG8_SNORM                      0x8F95
+#define GL_RGB8_SNORM                     0x8F96
+#define GL_RGBA8_SNORM                    0x8F97
+#define GL_R16_SNORM                      0x8F98
+#define GL_RG16_SNORM                     0x8F99
+#define GL_RGB16_SNORM                    0x8F9A
+#define GL_RGBA16_SNORM                   0x8F9B
+#define GL_SIGNED_NORMALIZED              0x8F9C
+#define GL_PRIMITIVE_RESTART              0x8F9D
+#define GL_PRIMITIVE_RESTART_INDEX        0x8F9E
+#define GL_COPY_READ_BUFFER               0x8F36
+#define GL_COPY_WRITE_BUFFER              0x8F37
+#define GL_UNIFORM_BUFFER                 0x8A11
+#define GL_UNIFORM_BUFFER_BINDING         0x8A28
+#define GL_UNIFORM_BUFFER_START           0x8A29
+#define GL_UNIFORM_BUFFER_SIZE            0x8A2A
+#define GL_MAX_VERTEX_UNIFORM_BLOCKS      0x8A2B
+#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS    0x8A2D
+#define GL_MAX_COMBINED_UNIFORM_BLOCKS    0x8A2E
+#define GL_MAX_UNIFORM_BUFFER_BINDINGS    0x8A2F
+#define GL_MAX_UNIFORM_BLOCK_SIZE         0x8A30
+#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
+#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
+#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
+#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
+#define GL_ACTIVE_UNIFORM_BLOCKS          0x8A36
+#define GL_UNIFORM_TYPE                   0x8A37
+#define GL_UNIFORM_SIZE                   0x8A38
+#define GL_UNIFORM_NAME_LENGTH            0x8A39
+#define GL_UNIFORM_BLOCK_INDEX            0x8A3A
+#define GL_UNIFORM_OFFSET                 0x8A3B
+#define GL_UNIFORM_ARRAY_STRIDE           0x8A3C
+#define GL_UNIFORM_MATRIX_STRIDE          0x8A3D
+#define GL_UNIFORM_IS_ROW_MAJOR           0x8A3E
+#define GL_UNIFORM_BLOCK_BINDING          0x8A3F
+#define GL_UNIFORM_BLOCK_DATA_SIZE        0x8A40
+#define GL_UNIFORM_BLOCK_NAME_LENGTH      0x8A41
+#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS  0x8A42
+#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
+#define GL_INVALID_INDEX                  0xFFFFFFFFu
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
+typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
+typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
+typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
+GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
+GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index);
+GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
+GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
+GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName);
+GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
+GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
+#endif
+#endif /* GL_VERSION_3_1 */
+
+#ifndef GL_VERSION_3_2
+#define GL_VERSION_3_2 1
+typedef struct __GLsync *GLsync;
+#ifndef GLEXT_64_TYPES_DEFINED
+/* This code block is duplicated in glxext.h, so must be protected */
+#define GLEXT_64_TYPES_DEFINED
+/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
+/* (as used in the GL_EXT_timer_query extension). */
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#include <inttypes.h>
+#elif defined(__sun__) || defined(__digital__)
+#include <inttypes.h>
+#if defined(__STDC__)
+#if defined(__arch64__) || defined(_LP64)
+typedef long int int64_t;
+typedef unsigned long int uint64_t;
+#else
+typedef long long int int64_t;
+typedef unsigned long long int uint64_t;
+#endif /* __arch64__ */
+#endif /* __STDC__ */
+#elif defined( __VMS ) || defined(__sgi)
+#include <inttypes.h>
+#elif defined(__SCO__) || defined(__USLC__)
+#include <stdint.h>
+#elif defined(__UNIXOS2__) || defined(__SOL64__)
+typedef long int int32_t;
+typedef long long int int64_t;
+typedef unsigned long long int uint64_t;
+#elif defined(_WIN32) && defined(__GNUC__)
+#include <stdint.h>
+#elif defined(_WIN32)
+typedef __int32 int32_t;
+typedef __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#else
+/* Fallback if nothing above works */
+#include <inttypes.h>
+#endif
+#endif
+typedef uint64_t GLuint64;
+typedef int64_t GLint64;
+#define GL_CONTEXT_CORE_PROFILE_BIT       0x00000001
+#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
+#define GL_LINES_ADJACENCY                0x000A
+#define GL_LINE_STRIP_ADJACENCY           0x000B
+#define GL_TRIANGLES_ADJACENCY            0x000C
+#define GL_TRIANGLE_STRIP_ADJACENCY       0x000D
+#define GL_PROGRAM_POINT_SIZE             0x8642
+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
+#define GL_GEOMETRY_SHADER                0x8DD9
+#define GL_GEOMETRY_VERTICES_OUT          0x8916
+#define GL_GEOMETRY_INPUT_TYPE            0x8917
+#define GL_GEOMETRY_OUTPUT_TYPE           0x8918
+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES   0x8DE0
+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
+#define GL_MAX_VERTEX_OUTPUT_COMPONENTS   0x9122
+#define GL_MAX_GEOMETRY_INPUT_COMPONENTS  0x9123
+#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
+#define GL_MAX_FRAGMENT_INPUT_COMPONENTS  0x9125
+#define GL_CONTEXT_PROFILE_MASK           0x9126
+#define GL_DEPTH_CLAMP                    0x864F
+#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
+#define GL_FIRST_VERTEX_CONVENTION        0x8E4D
+#define GL_LAST_VERTEX_CONVENTION         0x8E4E
+#define GL_PROVOKING_VERTEX               0x8E4F
+#define GL_TEXTURE_CUBE_MAP_SEAMLESS      0x884F
+#define GL_MAX_SERVER_WAIT_TIMEOUT        0x9111
+#define GL_OBJECT_TYPE                    0x9112
+#define GL_SYNC_CONDITION                 0x9113
+#define GL_SYNC_STATUS                    0x9114
+#define GL_SYNC_FLAGS                     0x9115
+#define GL_SYNC_FENCE                     0x9116
+#define GL_SYNC_GPU_COMMANDS_COMPLETE     0x9117
+#define GL_UNSIGNALED                     0x9118
+#define GL_SIGNALED                       0x9119
+#define GL_ALREADY_SIGNALED               0x911A
+#define GL_TIMEOUT_EXPIRED                0x911B
+#define GL_CONDITION_SATISFIED            0x911C
+#define GL_WAIT_FAILED                    0x911D
+#define GL_TIMEOUT_IGNORED                0xFFFFFFFFFFFFFFFFull
+#define GL_SYNC_FLUSH_COMMANDS_BIT        0x00000001
+#define GL_SAMPLE_POSITION                0x8E50
+#define GL_SAMPLE_MASK                    0x8E51
+#define GL_SAMPLE_MASK_VALUE              0x8E52
+#define GL_MAX_SAMPLE_MASK_WORDS          0x8E59
+#define GL_TEXTURE_2D_MULTISAMPLE         0x9100
+#define GL_PROXY_TEXTURE_2D_MULTISAMPLE   0x9101
+#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY   0x9102
+#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
+#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
+#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
+#define GL_TEXTURE_SAMPLES                0x9106
+#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
+#define GL_SAMPLER_2D_MULTISAMPLE         0x9108
+#define GL_INT_SAMPLER_2D_MULTISAMPLE     0x9109
+#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
+#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY   0x910B
+#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
+#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
+#define GL_MAX_COLOR_TEXTURE_SAMPLES      0x910E
+#define GL_MAX_DEPTH_TEXTURE_SAMPLES      0x910F
+#define GL_MAX_INTEGER_SAMPLES            0x9110
+typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
+typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
+typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
+typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
+typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
+typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
+typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
+typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *data);
+typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
+typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
+typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
+GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
+GLAPI void APIENTRY glProvokingVertex (GLenum mode);
+GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
+GLAPI GLboolean APIENTRY glIsSync (GLsync sync);
+GLAPI void APIENTRY glDeleteSync (GLsync sync);
+GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
+GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
+GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *data);
+GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
+GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
+GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val);
+GLAPI void APIENTRY glSampleMaski (GLuint maskNumber, GLbitfield mask);
+#endif
+#endif /* GL_VERSION_3_2 */
+
+#ifndef GL_VERSION_3_3
+#define GL_VERSION_3_3 1
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR    0x88FE
+#define GL_SRC1_COLOR                     0x88F9
+#define GL_ONE_MINUS_SRC1_COLOR           0x88FA
+#define GL_ONE_MINUS_SRC1_ALPHA           0x88FB
+#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS   0x88FC
+#define GL_ANY_SAMPLES_PASSED             0x8C2F
+#define GL_SAMPLER_BINDING                0x8919
+#define GL_RGB10_A2UI                     0x906F
+#define GL_TEXTURE_SWIZZLE_R              0x8E42
+#define GL_TEXTURE_SWIZZLE_G              0x8E43
+#define GL_TEXTURE_SWIZZLE_B              0x8E44
+#define GL_TEXTURE_SWIZZLE_A              0x8E45
+#define GL_TEXTURE_SWIZZLE_RGBA           0x8E46
+#define GL_TIME_ELAPSED                   0x88BF
+#define GL_TIMESTAMP                      0x8E28
+#define GL_INT_2_10_10_10_REV             0x8D9F
+typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
+typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
+typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler);
+typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value);
+typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color);
+typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color);
+typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color);
+typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
+GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers);
+GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers);
+GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler);
+GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler);
+GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
+GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
+GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
+GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param);
+GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param);
+GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target);
+GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params);
+GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
+GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexP2ui (GLenum type, GLuint value);
+GLAPI void APIENTRY glVertexP2uiv (GLenum type, const GLuint *value);
+GLAPI void APIENTRY glVertexP3ui (GLenum type, GLuint value);
+GLAPI void APIENTRY glVertexP3uiv (GLenum type, const GLuint *value);
+GLAPI void APIENTRY glVertexP4ui (GLenum type, GLuint value);
+GLAPI void APIENTRY glVertexP4uiv (GLenum type, const GLuint *value);
+GLAPI void APIENTRY glTexCoordP1ui (GLenum type, GLuint coords);
+GLAPI void APIENTRY glTexCoordP1uiv (GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glTexCoordP2ui (GLenum type, GLuint coords);
+GLAPI void APIENTRY glTexCoordP2uiv (GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glTexCoordP3ui (GLenum type, GLuint coords);
+GLAPI void APIENTRY glTexCoordP3uiv (GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glTexCoordP4ui (GLenum type, GLuint coords);
+GLAPI void APIENTRY glTexCoordP4uiv (GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glMultiTexCoordP1ui (GLenum texture, GLenum type, GLuint coords);
+GLAPI void APIENTRY glMultiTexCoordP1uiv (GLenum texture, GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glMultiTexCoordP2ui (GLenum texture, GLenum type, GLuint coords);
+GLAPI void APIENTRY glMultiTexCoordP2uiv (GLenum texture, GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glMultiTexCoordP3ui (GLenum texture, GLenum type, GLuint coords);
+GLAPI void APIENTRY glMultiTexCoordP3uiv (GLenum texture, GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glMultiTexCoordP4ui (GLenum texture, GLenum type, GLuint coords);
+GLAPI void APIENTRY glMultiTexCoordP4uiv (GLenum texture, GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glNormalP3ui (GLenum type, GLuint coords);
+GLAPI void APIENTRY glNormalP3uiv (GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glColorP3ui (GLenum type, GLuint color);
+GLAPI void APIENTRY glColorP3uiv (GLenum type, const GLuint *color);
+GLAPI void APIENTRY glColorP4ui (GLenum type, GLuint color);
+GLAPI void APIENTRY glColorP4uiv (GLenum type, const GLuint *color);
+GLAPI void APIENTRY glSecondaryColorP3ui (GLenum type, GLuint color);
+GLAPI void APIENTRY glSecondaryColorP3uiv (GLenum type, const GLuint *color);
+#endif
+#endif /* GL_VERSION_3_3 */
+
+#ifndef GL_VERSION_4_0
+#define GL_VERSION_4_0 1
+#define GL_SAMPLE_SHADING                 0x8C36
+#define GL_MIN_SAMPLE_SHADING_VALUE       0x8C37
+#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
+#define GL_TEXTURE_CUBE_MAP_ARRAY         0x9009
+#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
+#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY   0x900B
+#define GL_SAMPLER_CUBE_MAP_ARRAY         0x900C
+#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW  0x900D
+#define GL_INT_SAMPLER_CUBE_MAP_ARRAY     0x900E
+#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
+#define GL_DRAW_INDIRECT_BUFFER           0x8F3F
+#define GL_DRAW_INDIRECT_BUFFER_BINDING   0x8F43
+#define GL_GEOMETRY_SHADER_INVOCATIONS    0x887F
+#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
+#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
+#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
+#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
+#define GL_MAX_VERTEX_STREAMS             0x8E71
+#define GL_DOUBLE_VEC2                    0x8FFC
+#define GL_DOUBLE_VEC3                    0x8FFD
+#define GL_DOUBLE_VEC4                    0x8FFE
+#define GL_DOUBLE_MAT2                    0x8F46
+#define GL_DOUBLE_MAT3                    0x8F47
+#define GL_DOUBLE_MAT4                    0x8F48
+#define GL_DOUBLE_MAT2x3                  0x8F49
+#define GL_DOUBLE_MAT2x4                  0x8F4A
+#define GL_DOUBLE_MAT3x2                  0x8F4B
+#define GL_DOUBLE_MAT3x4                  0x8F4C
+#define GL_DOUBLE_MAT4x2                  0x8F4D
+#define GL_DOUBLE_MAT4x3                  0x8F4E
+#define GL_ACTIVE_SUBROUTINES             0x8DE5
+#define GL_ACTIVE_SUBROUTINE_UNIFORMS     0x8DE6
+#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
+#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH   0x8E48
+#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
+#define GL_MAX_SUBROUTINES                0x8DE7
+#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
+#define GL_NUM_COMPATIBLE_SUBROUTINES     0x8E4A
+#define GL_COMPATIBLE_SUBROUTINES         0x8E4B
+#define GL_PATCHES                        0x000E
+#define GL_PATCH_VERTICES                 0x8E72
+#define GL_PATCH_DEFAULT_INNER_LEVEL      0x8E73
+#define GL_PATCH_DEFAULT_OUTER_LEVEL      0x8E74
+#define GL_TESS_CONTROL_OUTPUT_VERTICES   0x8E75
+#define GL_TESS_GEN_MODE                  0x8E76
+#define GL_TESS_GEN_SPACING               0x8E77
+#define GL_TESS_GEN_VERTEX_ORDER          0x8E78
+#define GL_TESS_GEN_POINT_MODE            0x8E79
+#define GL_ISOLINES                       0x8E7A
+#define GL_FRACTIONAL_ODD                 0x8E7B
+#define GL_FRACTIONAL_EVEN                0x8E7C
+#define GL_MAX_PATCH_VERTICES             0x8E7D
+#define GL_MAX_TESS_GEN_LEVEL             0x8E7E
+#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
+#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
+#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
+#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
+#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
+#define GL_MAX_TESS_PATCH_COMPONENTS      0x8E84
+#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
+#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
+#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
+#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
+#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
+#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
+#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
+#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
+#define GL_TESS_EVALUATION_SHADER         0x8E87
+#define GL_TESS_CONTROL_SHADER            0x8E88
+#define GL_TRANSFORM_FEEDBACK             0x8E22
+#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
+#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
+#define GL_TRANSFORM_FEEDBACK_BINDING     0x8E25
+#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
+typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect);
+typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
+typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
+typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
+typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
+typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
+typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
+typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
+typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
+typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
+typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
+typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
+typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMinSampleShading (GLfloat value);
+GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode);
+GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst);
+GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const void *indirect);
+GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect);
+GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x);
+GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params);
+GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name);
+GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name);
+GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
+GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
+GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
+GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices);
+GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params);
+GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
+GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value);
+GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values);
+GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);
+GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
+GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids);
+GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id);
+GLAPI void APIENTRY glPauseTransformFeedback (void);
+GLAPI void APIENTRY glResumeTransformFeedback (void);
+GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id);
+GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream);
+GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id);
+GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index);
+GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params);
+#endif
+#endif /* GL_VERSION_4_0 */
+
+#ifndef GL_VERSION_4_1
+#define GL_VERSION_4_1 1
+#define GL_FIXED                          0x140C
+#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
+#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
+#define GL_LOW_FLOAT                      0x8DF0
+#define GL_MEDIUM_FLOAT                   0x8DF1
+#define GL_HIGH_FLOAT                     0x8DF2
+#define GL_LOW_INT                        0x8DF3
+#define GL_MEDIUM_INT                     0x8DF4
+#define GL_HIGH_INT                       0x8DF5
+#define GL_SHADER_COMPILER                0x8DFA
+#define GL_SHADER_BINARY_FORMATS          0x8DF8
+#define GL_NUM_SHADER_BINARY_FORMATS      0x8DF9
+#define GL_MAX_VERTEX_UNIFORM_VECTORS     0x8DFB
+#define GL_MAX_VARYING_VECTORS            0x8DFC
+#define GL_MAX_FRAGMENT_UNIFORM_VECTORS   0x8DFD
+#define GL_RGB565                         0x8D62
+#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
+#define GL_PROGRAM_BINARY_LENGTH          0x8741
+#define GL_NUM_PROGRAM_BINARY_FORMATS     0x87FE
+#define GL_PROGRAM_BINARY_FORMATS         0x87FF
+#define GL_VERTEX_SHADER_BIT              0x00000001
+#define GL_FRAGMENT_SHADER_BIT            0x00000002
+#define GL_GEOMETRY_SHADER_BIT            0x00000004
+#define GL_TESS_CONTROL_SHADER_BIT        0x00000008
+#define GL_TESS_EVALUATION_SHADER_BIT     0x00000010
+#define GL_ALL_SHADER_BITS                0xFFFFFFFF
+#define GL_PROGRAM_SEPARABLE              0x8258
+#define GL_ACTIVE_PROGRAM                 0x8259
+#define GL_PROGRAM_PIPELINE_BINDING       0x825A
+#define GL_MAX_VIEWPORTS                  0x825B
+#define GL_VIEWPORT_SUBPIXEL_BITS         0x825C
+#define GL_VIEWPORT_BOUNDS_RANGE          0x825D
+#define GL_LAYER_PROVOKING_VERTEX         0x825E
+#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
+#define GL_UNDEFINED_VERTEX               0x8260
+typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
+typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
+typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
+typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
+typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
+typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
+typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
+typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar *const*strings);
+typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
+typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
+typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
+typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
+typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
+typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
+typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
+typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
+typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glReleaseShaderCompiler (void);
+GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
+GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
+GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f);
+GLAPI void APIENTRY glClearDepthf (GLfloat d);
+GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
+GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
+GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value);
+GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
+GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program);
+GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings);
+GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline);
+GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines);
+GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines);
+GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline);
+GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params);
+GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0);
+GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0);
+GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0);
+GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0);
+GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1);
+GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
+GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
+GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline);
+GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
+GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v);
+GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f);
+GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data);
+GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data);
+#endif
+#endif /* GL_VERSION_4_1 */
+
+#ifndef GL_VERSION_4_2
+#define GL_VERSION_4_2 1
+#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH  0x9127
+#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
+#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH  0x9129
+#define GL_UNPACK_COMPRESSED_BLOCK_SIZE   0x912A
+#define GL_PACK_COMPRESSED_BLOCK_WIDTH    0x912B
+#define GL_PACK_COMPRESSED_BLOCK_HEIGHT   0x912C
+#define GL_PACK_COMPRESSED_BLOCK_DEPTH    0x912D
+#define GL_PACK_COMPRESSED_BLOCK_SIZE     0x912E
+#define GL_NUM_SAMPLE_COUNTS              0x9380
+#define GL_MIN_MAP_BUFFER_ALIGNMENT       0x90BC
+#define GL_ATOMIC_COUNTER_BUFFER          0x92C0
+#define GL_ATOMIC_COUNTER_BUFFER_BINDING  0x92C1
+#define GL_ATOMIC_COUNTER_BUFFER_START    0x92C2
+#define GL_ATOMIC_COUNTER_BUFFER_SIZE     0x92C3
+#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
+#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
+#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
+#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
+#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
+#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
+#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
+#define GL_MAX_VERTEX_ATOMIC_COUNTERS     0x92D2
+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
+#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS   0x92D5
+#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS   0x92D6
+#define GL_MAX_COMBINED_ATOMIC_COUNTERS   0x92D7
+#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
+#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
+#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS  0x92D9
+#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
+#define GL_UNSIGNED_INT_ATOMIC_COUNTER    0x92DB
+#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
+#define GL_ELEMENT_ARRAY_BARRIER_BIT      0x00000002
+#define GL_UNIFORM_BARRIER_BIT            0x00000004
+#define GL_TEXTURE_FETCH_BARRIER_BIT      0x00000008
+#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
+#define GL_COMMAND_BARRIER_BIT            0x00000040
+#define GL_PIXEL_BUFFER_BARRIER_BIT       0x00000080
+#define GL_TEXTURE_UPDATE_BARRIER_BIT     0x00000100
+#define GL_BUFFER_UPDATE_BARRIER_BIT      0x00000200
+#define GL_FRAMEBUFFER_BARRIER_BIT        0x00000400
+#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
+#define GL_ATOMIC_COUNTER_BARRIER_BIT     0x00001000
+#define GL_ALL_BARRIER_BITS               0xFFFFFFFF
+#define GL_MAX_IMAGE_UNITS                0x8F38
+#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
+#define GL_IMAGE_BINDING_NAME             0x8F3A
+#define GL_IMAGE_BINDING_LEVEL            0x8F3B
+#define GL_IMAGE_BINDING_LAYERED          0x8F3C
+#define GL_IMAGE_BINDING_LAYER            0x8F3D
+#define GL_IMAGE_BINDING_ACCESS           0x8F3E
+#define GL_IMAGE_1D                       0x904C
+#define GL_IMAGE_2D                       0x904D
+#define GL_IMAGE_3D                       0x904E
+#define GL_IMAGE_2D_RECT                  0x904F
+#define GL_IMAGE_CUBE                     0x9050
+#define GL_IMAGE_BUFFER                   0x9051
+#define GL_IMAGE_1D_ARRAY                 0x9052
+#define GL_IMAGE_2D_ARRAY                 0x9053
+#define GL_IMAGE_CUBE_MAP_ARRAY           0x9054
+#define GL_IMAGE_2D_MULTISAMPLE           0x9055
+#define GL_IMAGE_2D_MULTISAMPLE_ARRAY     0x9056
+#define GL_INT_IMAGE_1D                   0x9057
+#define GL_INT_IMAGE_2D                   0x9058
+#define GL_INT_IMAGE_3D                   0x9059
+#define GL_INT_IMAGE_2D_RECT              0x905A
+#define GL_INT_IMAGE_CUBE                 0x905B
+#define GL_INT_IMAGE_BUFFER               0x905C
+#define GL_INT_IMAGE_1D_ARRAY             0x905D
+#define GL_INT_IMAGE_2D_ARRAY             0x905E
+#define GL_INT_IMAGE_CUBE_MAP_ARRAY       0x905F
+#define GL_INT_IMAGE_2D_MULTISAMPLE       0x9060
+#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
+#define GL_UNSIGNED_INT_IMAGE_1D          0x9062
+#define GL_UNSIGNED_INT_IMAGE_2D          0x9063
+#define GL_UNSIGNED_INT_IMAGE_3D          0x9064
+#define GL_UNSIGNED_INT_IMAGE_2D_RECT     0x9065
+#define GL_UNSIGNED_INT_IMAGE_CUBE        0x9066
+#define GL_UNSIGNED_INT_IMAGE_BUFFER      0x9067
+#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY    0x9068
+#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY    0x9069
+#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
+#define GL_MAX_IMAGE_SAMPLES              0x906D
+#define GL_IMAGE_BINDING_FORMAT           0x906E
+#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
+#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
+#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
+#define GL_MAX_VERTEX_IMAGE_UNIFORMS      0x90CA
+#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
+#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
+#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS    0x90CD
+#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS    0x90CE
+#define GL_MAX_COMBINED_IMAGE_UNIFORMS    0x90CF
+#define GL_COMPRESSED_RGBA_BPTC_UNORM     0x8E8C
+#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
+#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
+#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F
+#define GL_TEXTURE_IMMUTABLE_FORMAT       0x912F
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
+typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
+typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
+typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers);
+typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
+GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
+GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
+GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
+GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
+GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
+GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers);
+GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount);
+GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
+#endif
+#endif /* GL_VERSION_4_2 */
+
+#ifndef GL_VERSION_4_3
+#define GL_VERSION_4_3 1
+typedef void (APIENTRY  *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
+#define GL_NUM_SHADING_LANGUAGE_VERSIONS  0x82E9
+#define GL_VERTEX_ATTRIB_ARRAY_LONG       0x874E
+#define GL_COMPRESSED_RGB8_ETC2           0x9274
+#define GL_COMPRESSED_SRGB8_ETC2          0x9275
+#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
+#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
+#define GL_COMPRESSED_RGBA8_ETC2_EAC      0x9278
+#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
+#define GL_COMPRESSED_R11_EAC             0x9270
+#define GL_COMPRESSED_SIGNED_R11_EAC      0x9271
+#define GL_COMPRESSED_RG11_EAC            0x9272
+#define GL_COMPRESSED_SIGNED_RG11_EAC     0x9273
+#define GL_PRIMITIVE_RESTART_FIXED_INDEX  0x8D69
+#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
+#define GL_MAX_ELEMENT_INDEX              0x8D6B
+#define GL_COMPUTE_SHADER                 0x91B9
+#define GL_MAX_COMPUTE_UNIFORM_BLOCKS     0x91BB
+#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
+#define GL_MAX_COMPUTE_IMAGE_UNIFORMS     0x91BD
+#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
+#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
+#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
+#define GL_MAX_COMPUTE_ATOMIC_COUNTERS    0x8265
+#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
+#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB
+#define GL_MAX_COMPUTE_WORK_GROUP_COUNT   0x91BE
+#define GL_MAX_COMPUTE_WORK_GROUP_SIZE    0x91BF
+#define GL_COMPUTE_WORK_GROUP_SIZE        0x8267
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
+#define GL_DISPATCH_INDIRECT_BUFFER       0x90EE
+#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
+#define GL_DEBUG_OUTPUT_SYNCHRONOUS       0x8242
+#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
+#define GL_DEBUG_CALLBACK_FUNCTION        0x8244
+#define GL_DEBUG_CALLBACK_USER_PARAM      0x8245
+#define GL_DEBUG_SOURCE_API               0x8246
+#define GL_DEBUG_SOURCE_WINDOW_SYSTEM     0x8247
+#define GL_DEBUG_SOURCE_SHADER_COMPILER   0x8248
+#define GL_DEBUG_SOURCE_THIRD_PARTY       0x8249
+#define GL_DEBUG_SOURCE_APPLICATION       0x824A
+#define GL_DEBUG_SOURCE_OTHER             0x824B
+#define GL_DEBUG_TYPE_ERROR               0x824C
+#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
+#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR  0x824E
+#define GL_DEBUG_TYPE_PORTABILITY         0x824F
+#define GL_DEBUG_TYPE_PERFORMANCE         0x8250
+#define GL_DEBUG_TYPE_OTHER               0x8251
+#define GL_MAX_DEBUG_MESSAGE_LENGTH       0x9143
+#define GL_MAX_DEBUG_LOGGED_MESSAGES      0x9144
+#define GL_DEBUG_LOGGED_MESSAGES          0x9145
+#define GL_DEBUG_SEVERITY_HIGH            0x9146
+#define GL_DEBUG_SEVERITY_MEDIUM          0x9147
+#define GL_DEBUG_SEVERITY_LOW             0x9148
+#define GL_DEBUG_TYPE_MARKER              0x8268
+#define GL_DEBUG_TYPE_PUSH_GROUP          0x8269
+#define GL_DEBUG_TYPE_POP_GROUP           0x826A
+#define GL_DEBUG_SEVERITY_NOTIFICATION    0x826B
+#define GL_MAX_DEBUG_GROUP_STACK_DEPTH    0x826C
+#define GL_DEBUG_GROUP_STACK_DEPTH        0x826D
+#define GL_BUFFER                         0x82E0
+#define GL_SHADER                         0x82E1
+#define GL_PROGRAM                        0x82E2
+#define GL_QUERY                          0x82E3
+#define GL_PROGRAM_PIPELINE               0x82E4
+#define GL_SAMPLER                        0x82E6
+#define GL_MAX_LABEL_LENGTH               0x82E8
+#define GL_DEBUG_OUTPUT                   0x92E0
+#define GL_CONTEXT_FLAG_DEBUG_BIT         0x00000002
+#define GL_MAX_UNIFORM_LOCATIONS          0x826E
+#define GL_FRAMEBUFFER_DEFAULT_WIDTH      0x9310
+#define GL_FRAMEBUFFER_DEFAULT_HEIGHT     0x9311
+#define GL_FRAMEBUFFER_DEFAULT_LAYERS     0x9312
+#define GL_FRAMEBUFFER_DEFAULT_SAMPLES    0x9313
+#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
+#define GL_MAX_FRAMEBUFFER_WIDTH          0x9315
+#define GL_MAX_FRAMEBUFFER_HEIGHT         0x9316
+#define GL_MAX_FRAMEBUFFER_LAYERS         0x9317
+#define GL_MAX_FRAMEBUFFER_SAMPLES        0x9318
+#define GL_INTERNALFORMAT_SUPPORTED       0x826F
+#define GL_INTERNALFORMAT_PREFERRED       0x8270
+#define GL_INTERNALFORMAT_RED_SIZE        0x8271
+#define GL_INTERNALFORMAT_GREEN_SIZE      0x8272
+#define GL_INTERNALFORMAT_BLUE_SIZE       0x8273
+#define GL_INTERNALFORMAT_ALPHA_SIZE      0x8274
+#define GL_INTERNALFORMAT_DEPTH_SIZE      0x8275
+#define GL_INTERNALFORMAT_STENCIL_SIZE    0x8276
+#define GL_INTERNALFORMAT_SHARED_SIZE     0x8277
+#define GL_INTERNALFORMAT_RED_TYPE        0x8278
+#define GL_INTERNALFORMAT_GREEN_TYPE      0x8279
+#define GL_INTERNALFORMAT_BLUE_TYPE       0x827A
+#define GL_INTERNALFORMAT_ALPHA_TYPE      0x827B
+#define GL_INTERNALFORMAT_DEPTH_TYPE      0x827C
+#define GL_INTERNALFORMAT_STENCIL_TYPE    0x827D
+#define GL_MAX_WIDTH                      0x827E
+#define GL_MAX_HEIGHT                     0x827F
+#define GL_MAX_DEPTH                      0x8280
+#define GL_MAX_LAYERS                     0x8281
+#define GL_MAX_COMBINED_DIMENSIONS        0x8282
+#define GL_COLOR_COMPONENTS               0x8283
+#define GL_DEPTH_COMPONENTS               0x8284
+#define GL_STENCIL_COMPONENTS             0x8285
+#define GL_COLOR_RENDERABLE               0x8286
+#define GL_DEPTH_RENDERABLE               0x8287
+#define GL_STENCIL_RENDERABLE             0x8288
+#define GL_FRAMEBUFFER_RENDERABLE         0x8289
+#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A
+#define GL_FRAMEBUFFER_BLEND              0x828B
+#define GL_READ_PIXELS                    0x828C
+#define GL_READ_PIXELS_FORMAT             0x828D
+#define GL_READ_PIXELS_TYPE               0x828E
+#define GL_TEXTURE_IMAGE_FORMAT           0x828F
+#define GL_TEXTURE_IMAGE_TYPE             0x8290
+#define GL_GET_TEXTURE_IMAGE_FORMAT       0x8291
+#define GL_GET_TEXTURE_IMAGE_TYPE         0x8292
+#define GL_MIPMAP                         0x8293
+#define GL_MANUAL_GENERATE_MIPMAP         0x8294
+#define GL_AUTO_GENERATE_MIPMAP           0x8295
+#define GL_COLOR_ENCODING                 0x8296
+#define GL_SRGB_READ                      0x8297
+#define GL_SRGB_WRITE                     0x8298
+#define GL_FILTER                         0x829A
+#define GL_VERTEX_TEXTURE                 0x829B
+#define GL_TESS_CONTROL_TEXTURE           0x829C
+#define GL_TESS_EVALUATION_TEXTURE        0x829D
+#define GL_GEOMETRY_TEXTURE               0x829E
+#define GL_FRAGMENT_TEXTURE               0x829F
+#define GL_COMPUTE_TEXTURE                0x82A0
+#define GL_TEXTURE_SHADOW                 0x82A1
+#define GL_TEXTURE_GATHER                 0x82A2
+#define GL_TEXTURE_GATHER_SHADOW          0x82A3
+#define GL_SHADER_IMAGE_LOAD              0x82A4
+#define GL_SHADER_IMAGE_STORE             0x82A5
+#define GL_SHADER_IMAGE_ATOMIC            0x82A6
+#define GL_IMAGE_TEXEL_SIZE               0x82A7
+#define GL_IMAGE_COMPATIBILITY_CLASS      0x82A8
+#define GL_IMAGE_PIXEL_FORMAT             0x82A9
+#define GL_IMAGE_PIXEL_TYPE               0x82AA
+#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC
+#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD
+#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE
+#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF
+#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1
+#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2
+#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE  0x82B3
+#define GL_CLEAR_BUFFER                   0x82B4
+#define GL_TEXTURE_VIEW                   0x82B5
+#define GL_VIEW_COMPATIBILITY_CLASS       0x82B6
+#define GL_FULL_SUPPORT                   0x82B7
+#define GL_CAVEAT_SUPPORT                 0x82B8
+#define GL_IMAGE_CLASS_4_X_32             0x82B9
+#define GL_IMAGE_CLASS_2_X_32             0x82BA
+#define GL_IMAGE_CLASS_1_X_32             0x82BB
+#define GL_IMAGE_CLASS_4_X_16             0x82BC
+#define GL_IMAGE_CLASS_2_X_16             0x82BD
+#define GL_IMAGE_CLASS_1_X_16             0x82BE
+#define GL_IMAGE_CLASS_4_X_8              0x82BF
+#define GL_IMAGE_CLASS_2_X_8              0x82C0
+#define GL_IMAGE_CLASS_1_X_8              0x82C1
+#define GL_IMAGE_CLASS_11_11_10           0x82C2
+#define GL_IMAGE_CLASS_10_10_10_2         0x82C3
+#define GL_VIEW_CLASS_128_BITS            0x82C4
+#define GL_VIEW_CLASS_96_BITS             0x82C5
+#define GL_VIEW_CLASS_64_BITS             0x82C6
+#define GL_VIEW_CLASS_48_BITS             0x82C7
+#define GL_VIEW_CLASS_32_BITS             0x82C8
+#define GL_VIEW_CLASS_24_BITS             0x82C9
+#define GL_VIEW_CLASS_16_BITS             0x82CA
+#define GL_VIEW_CLASS_8_BITS              0x82CB
+#define GL_VIEW_CLASS_S3TC_DXT1_RGB       0x82CC
+#define GL_VIEW_CLASS_S3TC_DXT1_RGBA      0x82CD
+#define GL_VIEW_CLASS_S3TC_DXT3_RGBA      0x82CE
+#define GL_VIEW_CLASS_S3TC_DXT5_RGBA      0x82CF
+#define GL_VIEW_CLASS_RGTC1_RED           0x82D0
+#define GL_VIEW_CLASS_RGTC2_RG            0x82D1
+#define GL_VIEW_CLASS_BPTC_UNORM          0x82D2
+#define GL_VIEW_CLASS_BPTC_FLOAT          0x82D3
+#define GL_UNIFORM                        0x92E1
+#define GL_UNIFORM_BLOCK                  0x92E2
+#define GL_PROGRAM_INPUT                  0x92E3
+#define GL_PROGRAM_OUTPUT                 0x92E4
+#define GL_BUFFER_VARIABLE                0x92E5
+#define GL_SHADER_STORAGE_BLOCK           0x92E6
+#define GL_VERTEX_SUBROUTINE              0x92E8
+#define GL_TESS_CONTROL_SUBROUTINE        0x92E9
+#define GL_TESS_EVALUATION_SUBROUTINE     0x92EA
+#define GL_GEOMETRY_SUBROUTINE            0x92EB
+#define GL_FRAGMENT_SUBROUTINE            0x92EC
+#define GL_COMPUTE_SUBROUTINE             0x92ED
+#define GL_VERTEX_SUBROUTINE_UNIFORM      0x92EE
+#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
+#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
+#define GL_GEOMETRY_SUBROUTINE_UNIFORM    0x92F1
+#define GL_FRAGMENT_SUBROUTINE_UNIFORM    0x92F2
+#define GL_COMPUTE_SUBROUTINE_UNIFORM     0x92F3
+#define GL_TRANSFORM_FEEDBACK_VARYING     0x92F4
+#define GL_ACTIVE_RESOURCES               0x92F5
+#define GL_MAX_NAME_LENGTH                0x92F6
+#define GL_MAX_NUM_ACTIVE_VARIABLES       0x92F7
+#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
+#define GL_NAME_LENGTH                    0x92F9
+#define GL_TYPE                           0x92FA
+#define GL_ARRAY_SIZE                     0x92FB
+#define GL_OFFSET                         0x92FC
+#define GL_BLOCK_INDEX                    0x92FD
+#define GL_ARRAY_STRIDE                   0x92FE
+#define GL_MATRIX_STRIDE                  0x92FF
+#define GL_IS_ROW_MAJOR                   0x9300
+#define GL_ATOMIC_COUNTER_BUFFER_INDEX    0x9301
+#define GL_BUFFER_BINDING                 0x9302
+#define GL_BUFFER_DATA_SIZE               0x9303
+#define GL_NUM_ACTIVE_VARIABLES           0x9304
+#define GL_ACTIVE_VARIABLES               0x9305
+#define GL_REFERENCED_BY_VERTEX_SHADER    0x9306
+#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
+#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
+#define GL_REFERENCED_BY_GEOMETRY_SHADER  0x9309
+#define GL_REFERENCED_BY_FRAGMENT_SHADER  0x930A
+#define GL_REFERENCED_BY_COMPUTE_SHADER   0x930B
+#define GL_TOP_LEVEL_ARRAY_SIZE           0x930C
+#define GL_TOP_LEVEL_ARRAY_STRIDE         0x930D
+#define GL_LOCATION                       0x930E
+#define GL_LOCATION_INDEX                 0x930F
+#define GL_IS_PER_PATCH                   0x92E7
+#define GL_SHADER_STORAGE_BUFFER          0x90D2
+#define GL_SHADER_STORAGE_BUFFER_BINDING  0x90D3
+#define GL_SHADER_STORAGE_BUFFER_START    0x90D4
+#define GL_SHADER_STORAGE_BUFFER_SIZE     0x90D5
+#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
+#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
+#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
+#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
+#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
+#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
+#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
+#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
+#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE  0x90DE
+#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
+#define GL_SHADER_STORAGE_BARRIER_BIT     0x00002000
+#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39
+#define GL_DEPTH_STENCIL_TEXTURE_MODE     0x90EA
+#define GL_TEXTURE_BUFFER_OFFSET          0x919D
+#define GL_TEXTURE_BUFFER_SIZE            0x919E
+#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F
+#define GL_TEXTURE_VIEW_MIN_LEVEL         0x82DB
+#define GL_TEXTURE_VIEW_NUM_LEVELS        0x82DC
+#define GL_TEXTURE_VIEW_MIN_LAYER         0x82DD
+#define GL_TEXTURE_VIEW_NUM_LAYERS        0x82DE
+#define GL_TEXTURE_IMMUTABLE_LEVELS       0x82DF
+#define GL_VERTEX_ATTRIB_BINDING          0x82D4
+#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET  0x82D5
+#define GL_VERTEX_BINDING_DIVISOR         0x82D6
+#define GL_VERTEX_BINDING_OFFSET          0x82D7
+#define GL_VERTEX_BINDING_STRIDE          0x82D8
+#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
+#define GL_MAX_VERTEX_ATTRIB_BINDINGS     0x82DA
+#define GL_VERTEX_BINDING_BUFFER          0x8F4F
+#define GL_DISPLAY_LIST                   0x82E7
+typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect);
+typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
+typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
+typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
+typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
+typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
+typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
+typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
+typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex);
+typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
+typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
+typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
+typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
+typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
+typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
+typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
+GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect);
+GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
+GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level);
+GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer);
+GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments);
+GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
+GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
+GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name);
+GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
+GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name);
+GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name);
+GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
+GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
+GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex);
+GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor);
+GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
+GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
+GLAPI void APIENTRY glPopDebugGroup (void);
+GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
+GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
+GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
+GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
+#endif
+#endif /* GL_VERSION_4_3 */
+
+#ifndef GL_VERSION_4_4
+#define GL_VERSION_4_4 1
+#define GL_MAX_VERTEX_ATTRIB_STRIDE       0x82E5
+#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
+#define GL_TEXTURE_BUFFER_BINDING         0x8C2A
+#define GL_MAP_PERSISTENT_BIT             0x0040
+#define GL_MAP_COHERENT_BIT               0x0080
+#define GL_DYNAMIC_STORAGE_BIT            0x0100
+#define GL_CLIENT_STORAGE_BIT             0x0200
+#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000
+#define GL_BUFFER_IMMUTABLE_STORAGE       0x821F
+#define GL_BUFFER_STORAGE_FLAGS           0x8220
+#define GL_CLEAR_TEXTURE                  0x9365
+#define GL_LOCATION_COMPONENT             0x934A
+#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B
+#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C
+#define GL_QUERY_BUFFER                   0x9192
+#define GL_QUERY_BUFFER_BARRIER_BIT       0x00008000
+#define GL_QUERY_BUFFER_BINDING           0x9193
+#define GL_QUERY_RESULT_NO_WAIT           0x9194
+#define GL_MIRROR_CLAMP_TO_EDGE           0x8743
+typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
+typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
+typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
+typedef void (APIENTRYP PFNGLBINDTEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
+typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC) (GLuint first, GLsizei count, const GLuint *samplers);
+typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
+typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC) (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferStorage (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
+GLAPI void APIENTRY glClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glBindBuffersBase (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
+GLAPI void APIENTRY glBindBuffersRange (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
+GLAPI void APIENTRY glBindTextures (GLuint first, GLsizei count, const GLuint *textures);
+GLAPI void APIENTRY glBindSamplers (GLuint first, GLsizei count, const GLuint *samplers);
+GLAPI void APIENTRY glBindImageTextures (GLuint first, GLsizei count, const GLuint *textures);
+GLAPI void APIENTRY glBindVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
+#endif
+#endif /* GL_VERSION_4_4 */
+
+#ifndef GL_ARB_ES2_compatibility
+#define GL_ARB_ES2_compatibility 1
+#endif /* GL_ARB_ES2_compatibility */
+
+#ifndef GL_ARB_ES3_compatibility
+#define GL_ARB_ES3_compatibility 1
+#endif /* GL_ARB_ES3_compatibility */
+
+#ifndef GL_ARB_arrays_of_arrays
+#define GL_ARB_arrays_of_arrays 1
+#endif /* GL_ARB_arrays_of_arrays */
+
+#ifndef GL_ARB_base_instance
+#define GL_ARB_base_instance 1
+#endif /* GL_ARB_base_instance */
+
+#ifndef GL_ARB_bindless_texture
+#define GL_ARB_bindless_texture 1
+typedef uint64_t GLuint64EXT;
+#define GL_UNSIGNED_INT64_ARB             0x140F
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLEARBPROC) (GLuint texture);
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEARBPROC) (GLuint texture, GLuint sampler);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC) (GLuint64 handle);
+typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLEARBPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64ARBPROC) (GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC) (GLuint program, GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle);
+typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64ARBPROC) (GLuint index, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VARBPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VARBPROC) (GLuint index, GLenum pname, GLuint64EXT *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint64 APIENTRY glGetTextureHandleARB (GLuint texture);
+GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleARB (GLuint texture, GLuint sampler);
+GLAPI void APIENTRY glMakeTextureHandleResidentARB (GLuint64 handle);
+GLAPI void APIENTRY glMakeTextureHandleNonResidentARB (GLuint64 handle);
+GLAPI GLuint64 APIENTRY glGetImageHandleARB (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+GLAPI void APIENTRY glMakeImageHandleResidentARB (GLuint64 handle, GLenum access);
+GLAPI void APIENTRY glMakeImageHandleNonResidentARB (GLuint64 handle);
+GLAPI void APIENTRY glUniformHandleui64ARB (GLint location, GLuint64 value);
+GLAPI void APIENTRY glUniformHandleui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniformHandleui64ARB (GLuint program, GLint location, GLuint64 value);
+GLAPI void APIENTRY glProgramUniformHandleui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+GLAPI GLboolean APIENTRY glIsTextureHandleResidentARB (GLuint64 handle);
+GLAPI GLboolean APIENTRY glIsImageHandleResidentARB (GLuint64 handle);
+GLAPI void APIENTRY glVertexAttribL1ui64ARB (GLuint index, GLuint64EXT x);
+GLAPI void APIENTRY glVertexAttribL1ui64vARB (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glGetVertexAttribLui64vARB (GLuint index, GLenum pname, GLuint64EXT *params);
+#endif
+#endif /* GL_ARB_bindless_texture */
+
+#ifndef GL_ARB_blend_func_extended
+#define GL_ARB_blend_func_extended 1
+#endif /* GL_ARB_blend_func_extended */
+
+#ifndef GL_ARB_buffer_storage
+#define GL_ARB_buffer_storage 1
+#endif /* GL_ARB_buffer_storage */
+
+#ifndef GL_ARB_cl_event
+#define GL_ARB_cl_event 1
+struct _cl_context;
+struct _cl_event;
+#define GL_SYNC_CL_EVENT_ARB              0x8240
+#define GL_SYNC_CL_EVENT_COMPLETE_ARB     0x8241
+typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context *context, struct _cl_event *event, GLbitfield flags);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context *context, struct _cl_event *event, GLbitfield flags);
+#endif
+#endif /* GL_ARB_cl_event */
+
+#ifndef GL_ARB_clear_buffer_object
+#define GL_ARB_clear_buffer_object 1
+#endif /* GL_ARB_clear_buffer_object */
+
+#ifndef GL_ARB_clear_texture
+#define GL_ARB_clear_texture 1
+#endif /* GL_ARB_clear_texture */
+
+#ifndef GL_ARB_color_buffer_float
+#define GL_ARB_color_buffer_float 1
+#define GL_RGBA_FLOAT_MODE_ARB            0x8820
+#define GL_CLAMP_VERTEX_COLOR_ARB         0x891A
+#define GL_CLAMP_FRAGMENT_COLOR_ARB       0x891B
+#define GL_CLAMP_READ_COLOR_ARB           0x891C
+#define GL_FIXED_ONLY_ARB                 0x891D
+typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glClampColorARB (GLenum target, GLenum clamp);
+#endif
+#endif /* GL_ARB_color_buffer_float */
+
+#ifndef GL_ARB_compatibility
+#define GL_ARB_compatibility 1
+#endif /* GL_ARB_compatibility */
+
+#ifndef GL_ARB_compressed_texture_pixel_storage
+#define GL_ARB_compressed_texture_pixel_storage 1
+#endif /* GL_ARB_compressed_texture_pixel_storage */
+
+#ifndef GL_ARB_compute_shader
+#define GL_ARB_compute_shader 1
+#define GL_COMPUTE_SHADER_BIT             0x00000020
+#endif /* GL_ARB_compute_shader */
+
+#ifndef GL_ARB_compute_variable_group_size
+#define GL_ARB_compute_variable_group_size 1
+#define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344
+#define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90EB
+#define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345
+#define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91BF
+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDispatchComputeGroupSizeARB (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z);
+#endif
+#endif /* GL_ARB_compute_variable_group_size */
+
+#ifndef GL_ARB_conservative_depth
+#define GL_ARB_conservative_depth 1
+#endif /* GL_ARB_conservative_depth */
+
+#ifndef GL_ARB_copy_buffer
+#define GL_ARB_copy_buffer 1
+#define GL_COPY_READ_BUFFER_BINDING       0x8F36
+#define GL_COPY_WRITE_BUFFER_BINDING      0x8F37
+#endif /* GL_ARB_copy_buffer */
+
+#ifndef GL_ARB_copy_image
+#define GL_ARB_copy_image 1
+#endif /* GL_ARB_copy_image */
+
+#ifndef GL_ARB_debug_output
+#define GL_ARB_debug_output 1
+typedef void (APIENTRY  *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
+#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB   0x8242
+#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
+#define GL_DEBUG_CALLBACK_FUNCTION_ARB    0x8244
+#define GL_DEBUG_CALLBACK_USER_PARAM_ARB  0x8245
+#define GL_DEBUG_SOURCE_API_ARB           0x8246
+#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
+#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
+#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB   0x8249
+#define GL_DEBUG_SOURCE_APPLICATION_ARB   0x824A
+#define GL_DEBUG_SOURCE_OTHER_ARB         0x824B
+#define GL_DEBUG_TYPE_ERROR_ARB           0x824C
+#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
+#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
+#define GL_DEBUG_TYPE_PORTABILITY_ARB     0x824F
+#define GL_DEBUG_TYPE_PERFORMANCE_ARB     0x8250
+#define GL_DEBUG_TYPE_OTHER_ARB           0x8251
+#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB   0x9143
+#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB  0x9144
+#define GL_DEBUG_LOGGED_MESSAGES_ARB      0x9145
+#define GL_DEBUG_SEVERITY_HIGH_ARB        0x9146
+#define GL_DEBUG_SEVERITY_MEDIUM_ARB      0x9147
+#define GL_DEBUG_SEVERITY_LOW_ARB         0x9148
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void *userParam);
+typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const void *userParam);
+GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+#endif
+#endif /* GL_ARB_debug_output */
+
+#ifndef GL_ARB_depth_buffer_float
+#define GL_ARB_depth_buffer_float 1
+#endif /* GL_ARB_depth_buffer_float */
+
+#ifndef GL_ARB_depth_clamp
+#define GL_ARB_depth_clamp 1
+#endif /* GL_ARB_depth_clamp */
+
+#ifndef GL_ARB_depth_texture
+#define GL_ARB_depth_texture 1
+#define GL_DEPTH_COMPONENT16_ARB          0x81A5
+#define GL_DEPTH_COMPONENT24_ARB          0x81A6
+#define GL_DEPTH_COMPONENT32_ARB          0x81A7
+#define GL_TEXTURE_DEPTH_SIZE_ARB         0x884A
+#define GL_DEPTH_TEXTURE_MODE_ARB         0x884B
+#endif /* GL_ARB_depth_texture */
+
+#ifndef GL_ARB_draw_buffers
+#define GL_ARB_draw_buffers 1
+#define GL_MAX_DRAW_BUFFERS_ARB           0x8824
+#define GL_DRAW_BUFFER0_ARB               0x8825
+#define GL_DRAW_BUFFER1_ARB               0x8826
+#define GL_DRAW_BUFFER2_ARB               0x8827
+#define GL_DRAW_BUFFER3_ARB               0x8828
+#define GL_DRAW_BUFFER4_ARB               0x8829
+#define GL_DRAW_BUFFER5_ARB               0x882A
+#define GL_DRAW_BUFFER6_ARB               0x882B
+#define GL_DRAW_BUFFER7_ARB               0x882C
+#define GL_DRAW_BUFFER8_ARB               0x882D
+#define GL_DRAW_BUFFER9_ARB               0x882E
+#define GL_DRAW_BUFFER10_ARB              0x882F
+#define GL_DRAW_BUFFER11_ARB              0x8830
+#define GL_DRAW_BUFFER12_ARB              0x8831
+#define GL_DRAW_BUFFER13_ARB              0x8832
+#define GL_DRAW_BUFFER14_ARB              0x8833
+#define GL_DRAW_BUFFER15_ARB              0x8834
+typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawBuffersARB (GLsizei n, const GLenum *bufs);
+#endif
+#endif /* GL_ARB_draw_buffers */
+
+#ifndef GL_ARB_draw_buffers_blend
+#define GL_ARB_draw_buffers_blend 1
+typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst);
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode);
+GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst);
+GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+#endif
+#endif /* GL_ARB_draw_buffers_blend */
+
+#ifndef GL_ARB_draw_elements_base_vertex
+#define GL_ARB_draw_elements_base_vertex 1
+#endif /* GL_ARB_draw_elements_base_vertex */
+
+#ifndef GL_ARB_draw_indirect
+#define GL_ARB_draw_indirect 1
+#endif /* GL_ARB_draw_indirect */
+
+#ifndef GL_ARB_draw_instanced
+#define GL_ARB_draw_instanced 1
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+GLAPI void APIENTRY glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#endif
+#endif /* GL_ARB_draw_instanced */
+
+#ifndef GL_ARB_enhanced_layouts
+#define GL_ARB_enhanced_layouts 1
+#endif /* GL_ARB_enhanced_layouts */
+
+#ifndef GL_ARB_explicit_attrib_location
+#define GL_ARB_explicit_attrib_location 1
+#endif /* GL_ARB_explicit_attrib_location */
+
+#ifndef GL_ARB_explicit_uniform_location
+#define GL_ARB_explicit_uniform_location 1
+#endif /* GL_ARB_explicit_uniform_location */
+
+#ifndef GL_ARB_fragment_coord_conventions
+#define GL_ARB_fragment_coord_conventions 1
+#endif /* GL_ARB_fragment_coord_conventions */
+
+#ifndef GL_ARB_fragment_layer_viewport
+#define GL_ARB_fragment_layer_viewport 1
+#endif /* GL_ARB_fragment_layer_viewport */
+
+#ifndef GL_ARB_fragment_program
+#define GL_ARB_fragment_program 1
+#define GL_FRAGMENT_PROGRAM_ARB           0x8804
+#define GL_PROGRAM_FORMAT_ASCII_ARB       0x8875
+#define GL_PROGRAM_LENGTH_ARB             0x8627
+#define GL_PROGRAM_FORMAT_ARB             0x8876
+#define GL_PROGRAM_BINDING_ARB            0x8677
+#define GL_PROGRAM_INSTRUCTIONS_ARB       0x88A0
+#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB   0x88A1
+#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
+#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
+#define GL_PROGRAM_TEMPORARIES_ARB        0x88A4
+#define GL_MAX_PROGRAM_TEMPORARIES_ARB    0x88A5
+#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
+#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
+#define GL_PROGRAM_PARAMETERS_ARB         0x88A8
+#define GL_MAX_PROGRAM_PARAMETERS_ARB     0x88A9
+#define GL_PROGRAM_NATIVE_PARAMETERS_ARB  0x88AA
+#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
+#define GL_PROGRAM_ATTRIBS_ARB            0x88AC
+#define GL_MAX_PROGRAM_ATTRIBS_ARB        0x88AD
+#define GL_PROGRAM_NATIVE_ATTRIBS_ARB     0x88AE
+#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
+#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
+#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
+#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
+#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB   0x8805
+#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB   0x8806
+#define GL_PROGRAM_TEX_INDIRECTIONS_ARB   0x8807
+#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
+#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
+#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
+#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
+#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
+#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
+#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
+#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
+#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
+#define GL_PROGRAM_STRING_ARB             0x8628
+#define GL_PROGRAM_ERROR_POSITION_ARB     0x864B
+#define GL_CURRENT_MATRIX_ARB             0x8641
+#define GL_TRANSPOSE_CURRENT_MATRIX_ARB   0x88B7
+#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
+#define GL_MAX_PROGRAM_MATRICES_ARB       0x862F
+#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
+#define GL_MAX_TEXTURE_COORDS_ARB         0x8871
+#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB    0x8872
+#define GL_PROGRAM_ERROR_STRING_ARB       0x8874
+#define GL_MATRIX0_ARB                    0x88C0
+#define GL_MATRIX1_ARB                    0x88C1
+#define GL_MATRIX2_ARB                    0x88C2
+#define GL_MATRIX3_ARB                    0x88C3
+#define GL_MATRIX4_ARB                    0x88C4
+#define GL_MATRIX5_ARB                    0x88C5
+#define GL_MATRIX6_ARB                    0x88C6
+#define GL_MATRIX7_ARB                    0x88C7
+#define GL_MATRIX8_ARB                    0x88C8
+#define GL_MATRIX9_ARB                    0x88C9
+#define GL_MATRIX10_ARB                   0x88CA
+#define GL_MATRIX11_ARB                   0x88CB
+#define GL_MATRIX12_ARB                   0x88CC
+#define GL_MATRIX13_ARB                   0x88CD
+#define GL_MATRIX14_ARB                   0x88CE
+#define GL_MATRIX15_ARB                   0x88CF
+#define GL_MATRIX16_ARB                   0x88D0
+#define GL_MATRIX17_ARB                   0x88D1
+#define GL_MATRIX18_ARB                   0x88D2
+#define GL_MATRIX19_ARB                   0x88D3
+#define GL_MATRIX20_ARB                   0x88D4
+#define GL_MATRIX21_ARB                   0x88D5
+#define GL_MATRIX22_ARB                   0x88D6
+#define GL_MATRIX23_ARB                   0x88D7
+#define GL_MATRIX24_ARB                   0x88D8
+#define GL_MATRIX25_ARB                   0x88D9
+#define GL_MATRIX26_ARB                   0x88DA
+#define GL_MATRIX27_ARB                   0x88DB
+#define GL_MATRIX28_ARB                   0x88DC
+#define GL_MATRIX29_ARB                   0x88DD
+#define GL_MATRIX30_ARB                   0x88DE
+#define GL_MATRIX31_ARB                   0x88DF
+typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const void *string);
+typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program);
+typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs);
+typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, void *string);
+typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramStringARB (GLenum target, GLenum format, GLsizei len, const void *string);
+GLAPI void APIENTRY glBindProgramARB (GLenum target, GLuint program);
+GLAPI void APIENTRY glDeleteProgramsARB (GLsizei n, const GLuint *programs);
+GLAPI void APIENTRY glGenProgramsARB (GLsizei n, GLuint *programs);
+GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
+GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
+GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
+GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
+GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum target, GLuint index, GLdouble *params);
+GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum target, GLuint index, GLfloat *params);
+GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum target, GLuint index, GLdouble *params);
+GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum target, GLuint index, GLfloat *params);
+GLAPI void APIENTRY glGetProgramivARB (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetProgramStringARB (GLenum target, GLenum pname, void *string);
+GLAPI GLboolean APIENTRY glIsProgramARB (GLuint program);
+#endif
+#endif /* GL_ARB_fragment_program */
+
+#ifndef GL_ARB_fragment_program_shadow
+#define GL_ARB_fragment_program_shadow 1
+#endif /* GL_ARB_fragment_program_shadow */
+
+#ifndef GL_ARB_fragment_shader
+#define GL_ARB_fragment_shader 1
+#define GL_FRAGMENT_SHADER_ARB            0x8B30
+#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
+#endif /* GL_ARB_fragment_shader */
+
+#ifndef GL_ARB_framebuffer_no_attachments
+#define GL_ARB_framebuffer_no_attachments 1
+#endif /* GL_ARB_framebuffer_no_attachments */
+
+#ifndef GL_ARB_framebuffer_object
+#define GL_ARB_framebuffer_object 1
+#endif /* GL_ARB_framebuffer_object */
+
+#ifndef GL_ARB_framebuffer_sRGB
+#define GL_ARB_framebuffer_sRGB 1
+#endif /* GL_ARB_framebuffer_sRGB */
+
+#ifndef GL_KHR_context_flush_control
+#define GL_CONTEXT_RELEASE_BEHAVIOR       0x82FB
+#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC
+#endif /* GL_KHR_context_flush_control */
+
+#ifndef GL_ARB_geometry_shader4
+#define GL_ARB_geometry_shader4 1
+#define GL_LINES_ADJACENCY_ARB            0x000A
+#define GL_LINE_STRIP_ADJACENCY_ARB       0x000B
+#define GL_TRIANGLES_ADJACENCY_ARB        0x000C
+#define GL_TRIANGLE_STRIP_ADJACENCY_ARB   0x000D
+#define GL_PROGRAM_POINT_SIZE_ARB         0x8642
+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29
+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9
+#define GL_GEOMETRY_SHADER_ARB            0x8DD9
+#define GL_GEOMETRY_VERTICES_OUT_ARB      0x8DDA
+#define GL_GEOMETRY_INPUT_TYPE_ARB        0x8DDB
+#define GL_GEOMETRY_OUTPUT_TYPE_ARB       0x8DDC
+#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD
+#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE
+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF
+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0
+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramParameteriARB (GLuint program, GLenum pname, GLint value);
+GLAPI void APIENTRY glFramebufferTextureARB (GLenum target, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTextureLayerARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void APIENTRY glFramebufferTextureFaceARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
+#endif
+#endif /* GL_ARB_geometry_shader4 */
+
+#ifndef GL_ARB_get_program_binary
+#define GL_ARB_get_program_binary 1
+#endif /* GL_ARB_get_program_binary */
+
+#ifndef GL_ARB_gpu_shader5
+#define GL_ARB_gpu_shader5 1
+#endif /* GL_ARB_gpu_shader5 */
+
+#ifndef GL_ARB_gpu_shader_fp64
+#define GL_ARB_gpu_shader_fp64 1
+#endif /* GL_ARB_gpu_shader_fp64 */
+
+#ifndef GL_ARB_half_float_pixel
+#define GL_ARB_half_float_pixel 1
+typedef unsigned short GLhalfARB;
+#define GL_HALF_FLOAT_ARB                 0x140B
+#endif /* GL_ARB_half_float_pixel */
+
+#ifndef GL_ARB_half_float_vertex
+#define GL_ARB_half_float_vertex 1
+#endif /* GL_ARB_half_float_vertex */
+
+#ifndef GL_ARB_imaging
+#define GL_ARB_imaging 1
+#define GL_BLEND_COLOR                    0x8005
+#define GL_BLEND_EQUATION                 0x8009
+#define GL_CONVOLUTION_1D                 0x8010
+#define GL_CONVOLUTION_2D                 0x8011
+#define GL_SEPARABLE_2D                   0x8012
+#define GL_CONVOLUTION_BORDER_MODE        0x8013
+#define GL_CONVOLUTION_FILTER_SCALE       0x8014
+#define GL_CONVOLUTION_FILTER_BIAS        0x8015
+#define GL_REDUCE                         0x8016
+#define GL_CONVOLUTION_FORMAT             0x8017
+#define GL_CONVOLUTION_WIDTH              0x8018
+#define GL_CONVOLUTION_HEIGHT             0x8019
+#define GL_MAX_CONVOLUTION_WIDTH          0x801A
+#define GL_MAX_CONVOLUTION_HEIGHT         0x801B
+#define GL_POST_CONVOLUTION_RED_SCALE     0x801C
+#define GL_POST_CONVOLUTION_GREEN_SCALE   0x801D
+#define GL_POST_CONVOLUTION_BLUE_SCALE    0x801E
+#define GL_POST_CONVOLUTION_ALPHA_SCALE   0x801F
+#define GL_POST_CONVOLUTION_RED_BIAS      0x8020
+#define GL_POST_CONVOLUTION_GREEN_BIAS    0x8021
+#define GL_POST_CONVOLUTION_BLUE_BIAS     0x8022
+#define GL_POST_CONVOLUTION_ALPHA_BIAS    0x8023
+#define GL_HISTOGRAM                      0x8024
+#define GL_PROXY_HISTOGRAM                0x8025
+#define GL_HISTOGRAM_WIDTH                0x8026
+#define GL_HISTOGRAM_FORMAT               0x8027
+#define GL_HISTOGRAM_RED_SIZE             0x8028
+#define GL_HISTOGRAM_GREEN_SIZE           0x8029
+#define GL_HISTOGRAM_BLUE_SIZE            0x802A
+#define GL_HISTOGRAM_ALPHA_SIZE           0x802B
+#define GL_HISTOGRAM_LUMINANCE_SIZE       0x802C
+#define GL_HISTOGRAM_SINK                 0x802D
+#define GL_MINMAX                         0x802E
+#define GL_MINMAX_FORMAT                  0x802F
+#define GL_MINMAX_SINK                    0x8030
+#define GL_TABLE_TOO_LARGE                0x8031
+#define GL_COLOR_MATRIX                   0x80B1
+#define GL_COLOR_MATRIX_STACK_DEPTH       0x80B2
+#define GL_MAX_COLOR_MATRIX_STACK_DEPTH   0x80B3
+#define GL_POST_COLOR_MATRIX_RED_SCALE    0x80B4
+#define GL_POST_COLOR_MATRIX_GREEN_SCALE  0x80B5
+#define GL_POST_COLOR_MATRIX_BLUE_SCALE   0x80B6
+#define GL_POST_COLOR_MATRIX_ALPHA_SCALE  0x80B7
+#define GL_POST_COLOR_MATRIX_RED_BIAS     0x80B8
+#define GL_POST_COLOR_MATRIX_GREEN_BIAS   0x80B9
+#define GL_POST_COLOR_MATRIX_BLUE_BIAS    0x80BA
+#define GL_POST_COLOR_MATRIX_ALPHA_BIAS   0x80BB
+#define GL_COLOR_TABLE                    0x80D0
+#define GL_POST_CONVOLUTION_COLOR_TABLE   0x80D1
+#define GL_POST_COLOR_MATRIX_COLOR_TABLE  0x80D2
+#define GL_PROXY_COLOR_TABLE              0x80D3
+#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
+#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
+#define GL_COLOR_TABLE_SCALE              0x80D6
+#define GL_COLOR_TABLE_BIAS               0x80D7
+#define GL_COLOR_TABLE_FORMAT             0x80D8
+#define GL_COLOR_TABLE_WIDTH              0x80D9
+#define GL_COLOR_TABLE_RED_SIZE           0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE         0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE          0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE         0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE     0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE     0x80DF
+#define GL_CONSTANT_BORDER                0x8151
+#define GL_REPLICATE_BORDER               0x8153
+#define GL_CONVOLUTION_BORDER_COLOR       0x8154
+typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
+typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, void *table);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
+typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, void *image);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
+typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
+typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
+GLAPI void APIENTRY glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glGetColorTable (GLenum target, GLenum format, GLenum type, void *table);
+GLAPI void APIENTRY glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
+GLAPI void APIENTRY glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
+GLAPI void APIENTRY glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params);
+GLAPI void APIENTRY glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glConvolutionParameteri (GLenum target, GLenum pname, GLint params);
+GLAPI void APIENTRY glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, void *image);
+GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSeparableFilter (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
+GLAPI void APIENTRY glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
+GLAPI void APIENTRY glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+GLAPI void APIENTRY glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+GLAPI void APIENTRY glMinmax (GLenum target, GLenum internalformat, GLboolean sink);
+GLAPI void APIENTRY glResetHistogram (GLenum target);
+GLAPI void APIENTRY glResetMinmax (GLenum target);
+#endif
+#endif /* GL_ARB_imaging */
+
+#ifndef GL_ARB_indirect_parameters
+#define GL_ARB_indirect_parameters 1
+#define GL_PARAMETER_BUFFER_ARB           0x80EE
+#define GL_PARAMETER_BUFFER_BINDING_ARB   0x80EF
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC) (GLenum mode, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC) (GLenum mode, GLenum type, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysIndirectCountARB (GLenum mode, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawElementsIndirectCountARB (GLenum mode, GLenum type, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+#endif
+#endif /* GL_ARB_indirect_parameters */
+
+#ifndef GL_ARB_instanced_arrays
+#define GL_ARB_instanced_arrays 1
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
+typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribDivisorARB (GLuint index, GLuint divisor);
+#endif
+#endif /* GL_ARB_instanced_arrays */
+
+#ifndef GL_ARB_internalformat_query
+#define GL_ARB_internalformat_query 1
+#endif /* GL_ARB_internalformat_query */
+
+#ifndef GL_ARB_internalformat_query2
+#define GL_ARB_internalformat_query2 1
+#define GL_SRGB_DECODE_ARB                0x8299
+#endif /* GL_ARB_internalformat_query2 */
+
+#ifndef GL_ARB_invalidate_subdata
+#define GL_ARB_invalidate_subdata 1
+#endif /* GL_ARB_invalidate_subdata */
+
+#ifndef GL_ARB_map_buffer_alignment
+#define GL_ARB_map_buffer_alignment 1
+#endif /* GL_ARB_map_buffer_alignment */
+
+#ifndef GL_ARB_map_buffer_range
+#define GL_ARB_map_buffer_range 1
+#endif /* GL_ARB_map_buffer_range */
+
+#ifndef GL_ARB_matrix_palette
+#define GL_ARB_matrix_palette 1
+#define GL_MATRIX_PALETTE_ARB             0x8840
+#define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
+#define GL_MAX_PALETTE_MATRICES_ARB       0x8842
+#define GL_CURRENT_PALETTE_MATRIX_ARB     0x8843
+#define GL_MATRIX_INDEX_ARRAY_ARB         0x8844
+#define GL_CURRENT_MATRIX_INDEX_ARB       0x8845
+#define GL_MATRIX_INDEX_ARRAY_SIZE_ARB    0x8846
+#define GL_MATRIX_INDEX_ARRAY_TYPE_ARB    0x8847
+#define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB  0x8848
+#define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849
+typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index);
+typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices);
+typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices);
+typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices);
+typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCurrentPaletteMatrixARB (GLint index);
+GLAPI void APIENTRY glMatrixIndexubvARB (GLint size, const GLubyte *indices);
+GLAPI void APIENTRY glMatrixIndexusvARB (GLint size, const GLushort *indices);
+GLAPI void APIENTRY glMatrixIndexuivARB (GLint size, const GLuint *indices);
+GLAPI void APIENTRY glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_ARB_matrix_palette */
+
+#ifndef GL_ARB_multi_bind
+#define GL_ARB_multi_bind 1
+#endif /* GL_ARB_multi_bind */
+
+#ifndef GL_ARB_multi_draw_indirect
+#define GL_ARB_multi_draw_indirect 1
+#endif /* GL_ARB_multi_draw_indirect */
+
+#ifndef GL_ARB_multisample
+#define GL_ARB_multisample 1
+#define GL_MULTISAMPLE_ARB                0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB   0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE_ARB        0x809F
+#define GL_SAMPLE_COVERAGE_ARB            0x80A0
+#define GL_SAMPLE_BUFFERS_ARB             0x80A8
+#define GL_SAMPLES_ARB                    0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE_ARB      0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT_ARB     0x80AB
+#define GL_MULTISAMPLE_BIT_ARB            0x20000000
+typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLfloat value, GLboolean invert);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSampleCoverageARB (GLfloat value, GLboolean invert);
+#endif
+#endif /* GL_ARB_multisample */
+
+#ifndef GL_ARB_multitexture
+#define GL_ARB_multitexture 1
+#define GL_TEXTURE0_ARB                   0x84C0
+#define GL_TEXTURE1_ARB                   0x84C1
+#define GL_TEXTURE2_ARB                   0x84C2
+#define GL_TEXTURE3_ARB                   0x84C3
+#define GL_TEXTURE4_ARB                   0x84C4
+#define GL_TEXTURE5_ARB                   0x84C5
+#define GL_TEXTURE6_ARB                   0x84C6
+#define GL_TEXTURE7_ARB                   0x84C7
+#define GL_TEXTURE8_ARB                   0x84C8
+#define GL_TEXTURE9_ARB                   0x84C9
+#define GL_TEXTURE10_ARB                  0x84CA
+#define GL_TEXTURE11_ARB                  0x84CB
+#define GL_TEXTURE12_ARB                  0x84CC
+#define GL_TEXTURE13_ARB                  0x84CD
+#define GL_TEXTURE14_ARB                  0x84CE
+#define GL_TEXTURE15_ARB                  0x84CF
+#define GL_TEXTURE16_ARB                  0x84D0
+#define GL_TEXTURE17_ARB                  0x84D1
+#define GL_TEXTURE18_ARB                  0x84D2
+#define GL_TEXTURE19_ARB                  0x84D3
+#define GL_TEXTURE20_ARB                  0x84D4
+#define GL_TEXTURE21_ARB                  0x84D5
+#define GL_TEXTURE22_ARB                  0x84D6
+#define GL_TEXTURE23_ARB                  0x84D7
+#define GL_TEXTURE24_ARB                  0x84D8
+#define GL_TEXTURE25_ARB                  0x84D9
+#define GL_TEXTURE26_ARB                  0x84DA
+#define GL_TEXTURE27_ARB                  0x84DB
+#define GL_TEXTURE28_ARB                  0x84DC
+#define GL_TEXTURE29_ARB                  0x84DD
+#define GL_TEXTURE30_ARB                  0x84DE
+#define GL_TEXTURE31_ARB                  0x84DF
+#define GL_ACTIVE_TEXTURE_ARB             0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
+#define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
+typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glActiveTextureARB (GLenum texture);
+GLAPI void APIENTRY glClientActiveTextureARB (GLenum texture);
+GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum target, GLdouble s);
+GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum target, GLfloat s);
+GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum target, GLint s);
+GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum target, GLshort s);
+GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum target, GLdouble s, GLdouble t);
+GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum target, GLfloat s, GLfloat t);
+GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum target, GLint s, GLint t);
+GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum target, GLshort s, GLshort t);
+GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum target, GLint s, GLint t, GLint r);
+GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum target, GLshort s, GLshort t, GLshort r);
+GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum target, GLint s, GLint t, GLint r, GLint q);
+GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum target, const GLshort *v);
+#endif
+#endif /* GL_ARB_multitexture */
+
+#ifndef GL_ARB_occlusion_query
+#define GL_ARB_occlusion_query 1
+#define GL_QUERY_COUNTER_BITS_ARB         0x8864
+#define GL_CURRENT_QUERY_ARB              0x8865
+#define GL_QUERY_RESULT_ARB               0x8866
+#define GL_QUERY_RESULT_AVAILABLE_ARB     0x8867
+#define GL_SAMPLES_PASSED_ARB             0x8914
+typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenQueriesARB (GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glDeleteQueriesARB (GLsizei n, const GLuint *ids);
+GLAPI GLboolean APIENTRY glIsQueryARB (GLuint id);
+GLAPI void APIENTRY glBeginQueryARB (GLenum target, GLuint id);
+GLAPI void APIENTRY glEndQueryARB (GLenum target);
+GLAPI void APIENTRY glGetQueryivARB (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetQueryObjectivARB (GLuint id, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetQueryObjectuivARB (GLuint id, GLenum pname, GLuint *params);
+#endif
+#endif /* GL_ARB_occlusion_query */
+
+#ifndef GL_ARB_occlusion_query2
+#define GL_ARB_occlusion_query2 1
+#endif /* GL_ARB_occlusion_query2 */
+
+#ifndef GL_ARB_pixel_buffer_object
+#define GL_ARB_pixel_buffer_object 1
+#define GL_PIXEL_PACK_BUFFER_ARB          0x88EB
+#define GL_PIXEL_UNPACK_BUFFER_ARB        0x88EC
+#define GL_PIXEL_PACK_BUFFER_BINDING_ARB  0x88ED
+#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
+#endif /* GL_ARB_pixel_buffer_object */
+
+#ifndef GL_ARB_point_parameters
+#define GL_ARB_point_parameters 1
+#define GL_POINT_SIZE_MIN_ARB             0x8126
+#define GL_POINT_SIZE_MAX_ARB             0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE_ARB  0x8128
+#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPointParameterfARB (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPointParameterfvARB (GLenum pname, const GLfloat *params);
+#endif
+#endif /* GL_ARB_point_parameters */
+
+#ifndef GL_ARB_point_sprite
+#define GL_ARB_point_sprite 1
+#define GL_POINT_SPRITE_ARB               0x8861
+#define GL_COORD_REPLACE_ARB              0x8862
+#endif /* GL_ARB_point_sprite */
+
+#ifndef GL_ARB_program_interface_query
+#define GL_ARB_program_interface_query 1
+#endif /* GL_ARB_program_interface_query */
+
+#ifndef GL_ARB_provoking_vertex
+#define GL_ARB_provoking_vertex 1
+#endif /* GL_ARB_provoking_vertex */
+
+#ifndef GL_ARB_query_buffer_object
+#define GL_ARB_query_buffer_object 1
+#endif /* GL_ARB_query_buffer_object */
+
+#ifndef GL_ARB_robust_buffer_access_behavior
+#define GL_ARB_robust_buffer_access_behavior 1
+#endif /* GL_ARB_robust_buffer_access_behavior */
+
+#ifndef GL_ARB_robustness
+#define GL_ARB_robustness 1
+#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
+#define GL_LOSE_CONTEXT_ON_RESET_ARB      0x8252
+#define GL_GUILTY_CONTEXT_RESET_ARB       0x8253
+#define GL_INNOCENT_CONTEXT_RESET_ARB     0x8254
+#define GL_UNKNOWN_CONTEXT_RESET_ARB      0x8255
+#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
+#define GL_NO_RESET_NOTIFICATION_ARB      0x8261
+typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void);
+typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img);
+typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, void *img);
+typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETNMAPDVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
+typedef void (APIENTRYP PFNGLGETNMAPFVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
+typedef void (APIENTRYP PFNGLGETNMAPIVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
+typedef void (APIENTRYP PFNGLGETNPIXELMAPFVARBPROC) (GLenum map, GLsizei bufSize, GLfloat *values);
+typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVARBPROC) (GLenum map, GLsizei bufSize, GLuint *values);
+typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVARBPROC) (GLenum map, GLsizei bufSize, GLushort *values);
+typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEARBPROC) (GLsizei bufSize, GLubyte *pattern);
+typedef void (APIENTRYP PFNGLGETNCOLORTABLEARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
+typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
+typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
+typedef void (APIENTRYP PFNGLGETNHISTOGRAMARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+typedef void (APIENTRYP PFNGLGETNMINMAXARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB (void);
+GLAPI void APIENTRY glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img);
+GLAPI void APIENTRY glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+GLAPI void APIENTRY glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, void *img);
+GLAPI void APIENTRY glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+GLAPI void APIENTRY glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+GLAPI void APIENTRY glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+GLAPI void APIENTRY glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
+GLAPI void APIENTRY glGetnMapdvARB (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
+GLAPI void APIENTRY glGetnMapfvARB (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
+GLAPI void APIENTRY glGetnMapivARB (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
+GLAPI void APIENTRY glGetnPixelMapfvARB (GLenum map, GLsizei bufSize, GLfloat *values);
+GLAPI void APIENTRY glGetnPixelMapuivARB (GLenum map, GLsizei bufSize, GLuint *values);
+GLAPI void APIENTRY glGetnPixelMapusvARB (GLenum map, GLsizei bufSize, GLushort *values);
+GLAPI void APIENTRY glGetnPolygonStippleARB (GLsizei bufSize, GLubyte *pattern);
+GLAPI void APIENTRY glGetnColorTableARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
+GLAPI void APIENTRY glGetnConvolutionFilterARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
+GLAPI void APIENTRY glGetnSeparableFilterARB (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
+GLAPI void APIENTRY glGetnHistogramARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+GLAPI void APIENTRY glGetnMinmaxARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+#endif
+#endif /* GL_ARB_robustness */
+
+#ifndef GL_ARB_robustness_isolation
+#define GL_ARB_robustness_isolation 1
+#endif /* GL_ARB_robustness_isolation */
+
+#ifndef GL_ARB_sample_shading
+#define GL_ARB_sample_shading 1
+#define GL_SAMPLE_SHADING_ARB             0x8C36
+#define GL_MIN_SAMPLE_SHADING_VALUE_ARB   0x8C37
+typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMinSampleShadingARB (GLfloat value);
+#endif
+#endif /* GL_ARB_sample_shading */
+
+#ifndef GL_ARB_sampler_objects
+#define GL_ARB_sampler_objects 1
+#endif /* GL_ARB_sampler_objects */
+
+#ifndef GL_ARB_seamless_cube_map
+#define GL_ARB_seamless_cube_map 1
+#endif /* GL_ARB_seamless_cube_map */
+
+#ifndef GL_ARB_seamless_cubemap_per_texture
+#define GL_ARB_seamless_cubemap_per_texture 1
+#endif /* GL_ARB_seamless_cubemap_per_texture */
+
+#ifndef GL_ARB_separate_shader_objects
+#define GL_ARB_separate_shader_objects 1
+#endif /* GL_ARB_separate_shader_objects */
+
+#ifndef GL_ARB_shader_atomic_counters
+#define GL_ARB_shader_atomic_counters 1
+#endif /* GL_ARB_shader_atomic_counters */
+
+#ifndef GL_ARB_shader_bit_encoding
+#define GL_ARB_shader_bit_encoding 1
+#endif /* GL_ARB_shader_bit_encoding */
+
+#ifndef GL_ARB_shader_draw_parameters
+#define GL_ARB_shader_draw_parameters 1
+#endif /* GL_ARB_shader_draw_parameters */
+
+#ifndef GL_ARB_shader_group_vote
+#define GL_ARB_shader_group_vote 1
+#endif /* GL_ARB_shader_group_vote */
+
+#ifndef GL_ARB_shader_image_load_store
+#define GL_ARB_shader_image_load_store 1
+#endif /* GL_ARB_shader_image_load_store */
+
+#ifndef GL_ARB_shader_image_size
+#define GL_ARB_shader_image_size 1
+#endif /* GL_ARB_shader_image_size */
+
+#ifndef GL_ARB_shader_objects
+#define GL_ARB_shader_objects 1
+#ifdef __APPLE__
+typedef void *GLhandleARB;
+#else
+typedef unsigned int GLhandleARB;
+#endif
+typedef char GLcharARB;
+#define GL_PROGRAM_OBJECT_ARB             0x8B40
+#define GL_SHADER_OBJECT_ARB              0x8B48
+#define GL_OBJECT_TYPE_ARB                0x8B4E
+#define GL_OBJECT_SUBTYPE_ARB             0x8B4F
+#define GL_FLOAT_VEC2_ARB                 0x8B50
+#define GL_FLOAT_VEC3_ARB                 0x8B51
+#define GL_FLOAT_VEC4_ARB                 0x8B52
+#define GL_INT_VEC2_ARB                   0x8B53
+#define GL_INT_VEC3_ARB                   0x8B54
+#define GL_INT_VEC4_ARB                   0x8B55
+#define GL_BOOL_ARB                       0x8B56
+#define GL_BOOL_VEC2_ARB                  0x8B57
+#define GL_BOOL_VEC3_ARB                  0x8B58
+#define GL_BOOL_VEC4_ARB                  0x8B59
+#define GL_FLOAT_MAT2_ARB                 0x8B5A
+#define GL_FLOAT_MAT3_ARB                 0x8B5B
+#define GL_FLOAT_MAT4_ARB                 0x8B5C
+#define GL_SAMPLER_1D_ARB                 0x8B5D
+#define GL_SAMPLER_2D_ARB                 0x8B5E
+#define GL_SAMPLER_3D_ARB                 0x8B5F
+#define GL_SAMPLER_CUBE_ARB               0x8B60
+#define GL_SAMPLER_1D_SHADOW_ARB          0x8B61
+#define GL_SAMPLER_2D_SHADOW_ARB          0x8B62
+#define GL_SAMPLER_2D_RECT_ARB            0x8B63
+#define GL_SAMPLER_2D_RECT_SHADOW_ARB     0x8B64
+#define GL_OBJECT_DELETE_STATUS_ARB       0x8B80
+#define GL_OBJECT_COMPILE_STATUS_ARB      0x8B81
+#define GL_OBJECT_LINK_STATUS_ARB         0x8B82
+#define GL_OBJECT_VALIDATE_STATUS_ARB     0x8B83
+#define GL_OBJECT_INFO_LOG_LENGTH_ARB     0x8B84
+#define GL_OBJECT_ATTACHED_OBJECTS_ARB    0x8B85
+#define GL_OBJECT_ACTIVE_UNIFORMS_ARB     0x8B86
+#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
+#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
+typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj);
+typedef GLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname);
+typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj);
+typedef GLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType);
+typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length);
+typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj);
+typedef GLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void);
+typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj);
+typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj);
+typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj);
+typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj);
+typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
+typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
+typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
+typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params);
+typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDeleteObjectARB (GLhandleARB obj);
+GLAPI GLhandleARB APIENTRY glGetHandleARB (GLenum pname);
+GLAPI void APIENTRY glDetachObjectARB (GLhandleARB containerObj, GLhandleARB attachedObj);
+GLAPI GLhandleARB APIENTRY glCreateShaderObjectARB (GLenum shaderType);
+GLAPI void APIENTRY glShaderSourceARB (GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length);
+GLAPI void APIENTRY glCompileShaderARB (GLhandleARB shaderObj);
+GLAPI GLhandleARB APIENTRY glCreateProgramObjectARB (void);
+GLAPI void APIENTRY glAttachObjectARB (GLhandleARB containerObj, GLhandleARB obj);
+GLAPI void APIENTRY glLinkProgramARB (GLhandleARB programObj);
+GLAPI void APIENTRY glUseProgramObjectARB (GLhandleARB programObj);
+GLAPI void APIENTRY glValidateProgramARB (GLhandleARB programObj);
+GLAPI void APIENTRY glUniform1fARB (GLint location, GLfloat v0);
+GLAPI void APIENTRY glUniform2fARB (GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glUniform3fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glUniform4fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glUniform1iARB (GLint location, GLint v0);
+GLAPI void APIENTRY glUniform2iARB (GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glUniform3iARB (GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glUniform4iARB (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glUniform1fvARB (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform2fvARB (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform3fvARB (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform4fvARB (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform1ivARB (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform2ivARB (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform3ivARB (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform4ivARB (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniformMatrix2fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glGetObjectParameterfvARB (GLhandleARB obj, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetObjectParameterivARB (GLhandleARB obj, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetInfoLogARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
+GLAPI void APIENTRY glGetAttachedObjectsARB (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
+GLAPI GLint APIENTRY glGetUniformLocationARB (GLhandleARB programObj, const GLcharARB *name);
+GLAPI void APIENTRY glGetActiveUniformARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
+GLAPI void APIENTRY glGetUniformfvARB (GLhandleARB programObj, GLint location, GLfloat *params);
+GLAPI void APIENTRY glGetUniformivARB (GLhandleARB programObj, GLint location, GLint *params);
+GLAPI void APIENTRY glGetShaderSourceARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
+#endif
+#endif /* GL_ARB_shader_objects */
+
+#ifndef GL_ARB_shader_precision
+#define GL_ARB_shader_precision 1
+#endif /* GL_ARB_shader_precision */
+
+#ifndef GL_ARB_shader_stencil_export
+#define GL_ARB_shader_stencil_export 1
+#endif /* GL_ARB_shader_stencil_export */
+
+#ifndef GL_ARB_shader_storage_buffer_object
+#define GL_ARB_shader_storage_buffer_object 1
+#endif /* GL_ARB_shader_storage_buffer_object */
+
+#ifndef GL_ARB_shader_subroutine
+#define GL_ARB_shader_subroutine 1
+#endif /* GL_ARB_shader_subroutine */
+
+#ifndef GL_ARB_shader_texture_lod
+#define GL_ARB_shader_texture_lod 1
+#endif /* GL_ARB_shader_texture_lod */
+
+#ifndef GL_ARB_shading_language_100
+#define GL_ARB_shading_language_100 1
+#define GL_SHADING_LANGUAGE_VERSION_ARB   0x8B8C
+#endif /* GL_ARB_shading_language_100 */
+
+#ifndef GL_ARB_shading_language_420pack
+#define GL_ARB_shading_language_420pack 1
+#endif /* GL_ARB_shading_language_420pack */
+
+#ifndef GL_ARB_shading_language_include
+#define GL_ARB_shading_language_include 1
+#define GL_SHADER_INCLUDE_ARB             0x8DAE
+#define GL_NAMED_STRING_LENGTH_ARB        0x8DE9
+#define GL_NAMED_STRING_TYPE_ARB          0x8DEA
+typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
+typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
+typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length);
+typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
+typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
+GLAPI void APIENTRY glDeleteNamedStringARB (GLint namelen, const GLchar *name);
+GLAPI void APIENTRY glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length);
+GLAPI GLboolean APIENTRY glIsNamedStringARB (GLint namelen, const GLchar *name);
+GLAPI void APIENTRY glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
+GLAPI void APIENTRY glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
+#endif
+#endif /* GL_ARB_shading_language_include */
+
+#ifndef GL_ARB_shading_language_packing
+#define GL_ARB_shading_language_packing 1
+#endif /* GL_ARB_shading_language_packing */
+
+#ifndef GL_ARB_shadow
+#define GL_ARB_shadow 1
+#define GL_TEXTURE_COMPARE_MODE_ARB       0x884C
+#define GL_TEXTURE_COMPARE_FUNC_ARB       0x884D
+#define GL_COMPARE_R_TO_TEXTURE_ARB       0x884E
+#endif /* GL_ARB_shadow */
+
+#ifndef GL_ARB_shadow_ambient
+#define GL_ARB_shadow_ambient 1
+#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF
+#endif /* GL_ARB_shadow_ambient */
+
+#ifndef GL_ARB_sparse_texture
+#define GL_ARB_sparse_texture 1
+#define GL_TEXTURE_SPARSE_ARB             0x91A6
+#define GL_VIRTUAL_PAGE_SIZE_INDEX_ARB    0x91A7
+#define GL_MIN_SPARSE_LEVEL_ARB           0x919B
+#define GL_NUM_VIRTUAL_PAGE_SIZES_ARB     0x91A8
+#define GL_VIRTUAL_PAGE_SIZE_X_ARB        0x9195
+#define GL_VIRTUAL_PAGE_SIZE_Y_ARB        0x9196
+#define GL_VIRTUAL_PAGE_SIZE_Z_ARB        0x9197
+#define GL_MAX_SPARSE_TEXTURE_SIZE_ARB    0x9198
+#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB 0x9199
+#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB 0x919A
+#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB 0x91A9
+typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexPageCommitmentARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident);
+#endif
+#endif /* GL_ARB_sparse_texture */
+
+#ifndef GL_ARB_stencil_texturing
+#define GL_ARB_stencil_texturing 1
+#endif /* GL_ARB_stencil_texturing */
+
+#ifndef GL_ARB_sync
+#define GL_ARB_sync 1
+#endif /* GL_ARB_sync */
+
+#ifndef GL_ARB_tessellation_shader
+#define GL_ARB_tessellation_shader 1
+#endif /* GL_ARB_tessellation_shader */
+
+#ifndef GL_ARB_texture_border_clamp
+#define GL_ARB_texture_border_clamp 1
+#define GL_CLAMP_TO_BORDER_ARB            0x812D
+#endif /* GL_ARB_texture_border_clamp */
+
+#ifndef GL_ARB_texture_buffer_object
+#define GL_ARB_texture_buffer_object 1
+#define GL_TEXTURE_BUFFER_ARB             0x8C2A
+#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB    0x8C2B
+#define GL_TEXTURE_BINDING_BUFFER_ARB     0x8C2C
+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D
+#define GL_TEXTURE_BUFFER_FORMAT_ARB      0x8C2E
+typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexBufferARB (GLenum target, GLenum internalformat, GLuint buffer);
+#endif
+#endif /* GL_ARB_texture_buffer_object */
+
+#ifndef GL_ARB_texture_buffer_object_rgb32
+#define GL_ARB_texture_buffer_object_rgb32 1
+#endif /* GL_ARB_texture_buffer_object_rgb32 */
+
+#ifndef GL_ARB_texture_buffer_range
+#define GL_ARB_texture_buffer_range 1
+#endif /* GL_ARB_texture_buffer_range */
+
+#ifndef GL_ARB_texture_compression
+#define GL_ARB_texture_compression 1
+#define GL_COMPRESSED_ALPHA_ARB           0x84E9
+#define GL_COMPRESSED_LUMINANCE_ARB       0x84EA
+#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
+#define GL_COMPRESSED_INTENSITY_ARB       0x84EC
+#define GL_COMPRESSED_RGB_ARB             0x84ED
+#define GL_COMPRESSED_RGBA_ARB            0x84EE
+#define GL_TEXTURE_COMPRESSION_HINT_ARB   0x84EF
+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
+#define GL_TEXTURE_COMPRESSED_ARB         0x86A1
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, void *img);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexImage1DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage3DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage2DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage1DARB (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glGetCompressedTexImageARB (GLenum target, GLint level, void *img);
+#endif
+#endif /* GL_ARB_texture_compression */
+
+#ifndef GL_ARB_texture_compression_bptc
+#define GL_ARB_texture_compression_bptc 1
+#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
+#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
+#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
+#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
+#endif /* GL_ARB_texture_compression_bptc */
+
+#ifndef GL_ARB_texture_compression_rgtc
+#define GL_ARB_texture_compression_rgtc 1
+#endif /* GL_ARB_texture_compression_rgtc */
+
+#ifndef GL_ARB_texture_cube_map
+#define GL_ARB_texture_cube_map 1
+#define GL_NORMAL_MAP_ARB                 0x8511
+#define GL_REFLECTION_MAP_ARB             0x8512
+#define GL_TEXTURE_CUBE_MAP_ARB           0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP_ARB   0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP_ARB     0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB  0x851C
+#endif /* GL_ARB_texture_cube_map */
+
+#ifndef GL_ARB_texture_cube_map_array
+#define GL_ARB_texture_cube_map_array 1
+#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB     0x9009
+#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A
+#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B
+#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB     0x900C
+#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D
+#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E
+#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F
+#endif /* GL_ARB_texture_cube_map_array */
+
+#ifndef GL_ARB_texture_env_add
+#define GL_ARB_texture_env_add 1
+#endif /* GL_ARB_texture_env_add */
+
+#ifndef GL_ARB_texture_env_combine
+#define GL_ARB_texture_env_combine 1
+#define GL_COMBINE_ARB                    0x8570
+#define GL_COMBINE_RGB_ARB                0x8571
+#define GL_COMBINE_ALPHA_ARB              0x8572
+#define GL_SOURCE0_RGB_ARB                0x8580
+#define GL_SOURCE1_RGB_ARB                0x8581
+#define GL_SOURCE2_RGB_ARB                0x8582
+#define GL_SOURCE0_ALPHA_ARB              0x8588
+#define GL_SOURCE1_ALPHA_ARB              0x8589
+#define GL_SOURCE2_ALPHA_ARB              0x858A
+#define GL_OPERAND0_RGB_ARB               0x8590
+#define GL_OPERAND1_RGB_ARB               0x8591
+#define GL_OPERAND2_RGB_ARB               0x8592
+#define GL_OPERAND0_ALPHA_ARB             0x8598
+#define GL_OPERAND1_ALPHA_ARB             0x8599
+#define GL_OPERAND2_ALPHA_ARB             0x859A
+#define GL_RGB_SCALE_ARB                  0x8573
+#define GL_ADD_SIGNED_ARB                 0x8574
+#define GL_INTERPOLATE_ARB                0x8575
+#define GL_SUBTRACT_ARB                   0x84E7
+#define GL_CONSTANT_ARB                   0x8576
+#define GL_PRIMARY_COLOR_ARB              0x8577
+#define GL_PREVIOUS_ARB                   0x8578
+#endif /* GL_ARB_texture_env_combine */
+
+#ifndef GL_ARB_texture_env_crossbar
+#define GL_ARB_texture_env_crossbar 1
+#endif /* GL_ARB_texture_env_crossbar */
+
+#ifndef GL_ARB_texture_env_dot3
+#define GL_ARB_texture_env_dot3 1
+#define GL_DOT3_RGB_ARB                   0x86AE
+#define GL_DOT3_RGBA_ARB                  0x86AF
+#endif /* GL_ARB_texture_env_dot3 */
+
+#ifndef GL_ARB_texture_float
+#define GL_ARB_texture_float 1
+#define GL_TEXTURE_RED_TYPE_ARB           0x8C10
+#define GL_TEXTURE_GREEN_TYPE_ARB         0x8C11
+#define GL_TEXTURE_BLUE_TYPE_ARB          0x8C12
+#define GL_TEXTURE_ALPHA_TYPE_ARB         0x8C13
+#define GL_TEXTURE_LUMINANCE_TYPE_ARB     0x8C14
+#define GL_TEXTURE_INTENSITY_TYPE_ARB     0x8C15
+#define GL_TEXTURE_DEPTH_TYPE_ARB         0x8C16
+#define GL_UNSIGNED_NORMALIZED_ARB        0x8C17
+#define GL_RGBA32F_ARB                    0x8814
+#define GL_RGB32F_ARB                     0x8815
+#define GL_ALPHA32F_ARB                   0x8816
+#define GL_INTENSITY32F_ARB               0x8817
+#define GL_LUMINANCE32F_ARB               0x8818
+#define GL_LUMINANCE_ALPHA32F_ARB         0x8819
+#define GL_RGBA16F_ARB                    0x881A
+#define GL_RGB16F_ARB                     0x881B
+#define GL_ALPHA16F_ARB                   0x881C
+#define GL_INTENSITY16F_ARB               0x881D
+#define GL_LUMINANCE16F_ARB               0x881E
+#define GL_LUMINANCE_ALPHA16F_ARB         0x881F
+#endif /* GL_ARB_texture_float */
+
+#ifndef GL_ARB_texture_gather
+#define GL_ARB_texture_gather 1
+#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F
+#endif /* GL_ARB_texture_gather */
+
+#ifndef GL_ARB_texture_mirror_clamp_to_edge
+#define GL_ARB_texture_mirror_clamp_to_edge 1
+#endif /* GL_ARB_texture_mirror_clamp_to_edge */
+
+#ifndef GL_ARB_texture_mirrored_repeat
+#define GL_ARB_texture_mirrored_repeat 1
+#define GL_MIRRORED_REPEAT_ARB            0x8370
+#endif /* GL_ARB_texture_mirrored_repeat */
+
+#ifndef GL_ARB_texture_multisample
+#define GL_ARB_texture_multisample 1
+#endif /* GL_ARB_texture_multisample */
+
+#ifndef GL_ARB_texture_non_power_of_two
+#define GL_ARB_texture_non_power_of_two 1
+#endif /* GL_ARB_texture_non_power_of_two */
+
+#ifndef GL_ARB_texture_query_levels
+#define GL_ARB_texture_query_levels 1
+#endif /* GL_ARB_texture_query_levels */
+
+#ifndef GL_ARB_texture_query_lod
+#define GL_ARB_texture_query_lod 1
+#endif /* GL_ARB_texture_query_lod */
+
+#ifndef GL_ARB_texture_rectangle
+#define GL_ARB_texture_rectangle 1
+#define GL_TEXTURE_RECTANGLE_ARB          0x84F5
+#define GL_TEXTURE_BINDING_RECTANGLE_ARB  0x84F6
+#define GL_PROXY_TEXTURE_RECTANGLE_ARB    0x84F7
+#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
+#endif /* GL_ARB_texture_rectangle */
+
+#ifndef GL_ARB_texture_rg
+#define GL_ARB_texture_rg 1
+#endif /* GL_ARB_texture_rg */
+
+#ifndef GL_ARB_texture_rgb10_a2ui
+#define GL_ARB_texture_rgb10_a2ui 1
+#endif /* GL_ARB_texture_rgb10_a2ui */
+
+#ifndef GL_ARB_texture_stencil8
+#define GL_ARB_texture_stencil8 1
+#endif /* GL_ARB_texture_stencil8 */
+
+#ifndef GL_ARB_texture_storage
+#define GL_ARB_texture_storage 1
+#endif /* GL_ARB_texture_storage */
+
+#ifndef GL_ARB_texture_storage_multisample
+#define GL_ARB_texture_storage_multisample 1
+#endif /* GL_ARB_texture_storage_multisample */
+
+#ifndef GL_ARB_texture_swizzle
+#define GL_ARB_texture_swizzle 1
+#endif /* GL_ARB_texture_swizzle */
+
+#ifndef GL_ARB_texture_view
+#define GL_ARB_texture_view 1
+#endif /* GL_ARB_texture_view */
+
+#ifndef GL_ARB_timer_query
+#define GL_ARB_timer_query 1
+#endif /* GL_ARB_timer_query */
+
+#ifndef GL_ARB_transform_feedback2
+#define GL_ARB_transform_feedback2 1
+#define GL_TRANSFORM_FEEDBACK_PAUSED      0x8E23
+#define GL_TRANSFORM_FEEDBACK_ACTIVE      0x8E24
+#endif /* GL_ARB_transform_feedback2 */
+
+#ifndef GL_ARB_transform_feedback3
+#define GL_ARB_transform_feedback3 1
+#endif /* GL_ARB_transform_feedback3 */
+
+#ifndef GL_ARB_transform_feedback_instanced
+#define GL_ARB_transform_feedback_instanced 1
+#endif /* GL_ARB_transform_feedback_instanced */
+
+#ifndef GL_ARB_transpose_matrix
+#define GL_ARB_transpose_matrix 1
+#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
+#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
+#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB   0x84E5
+#define GL_TRANSPOSE_COLOR_MATRIX_ARB     0x84E6
+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *m);
+GLAPI void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *m);
+GLAPI void APIENTRY glMultTransposeMatrixfARB (const GLfloat *m);
+GLAPI void APIENTRY glMultTransposeMatrixdARB (const GLdouble *m);
+#endif
+#endif /* GL_ARB_transpose_matrix */
+
+#ifndef GL_ARB_uniform_buffer_object
+#define GL_ARB_uniform_buffer_object 1
+#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS    0x8A2C
+#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
+#endif /* GL_ARB_uniform_buffer_object */
+
+#ifndef GL_ARB_vertex_array_bgra
+#define GL_ARB_vertex_array_bgra 1
+#endif /* GL_ARB_vertex_array_bgra */
+
+#ifndef GL_ARB_vertex_array_object
+#define GL_ARB_vertex_array_object 1
+#endif /* GL_ARB_vertex_array_object */
+
+#ifndef GL_ARB_vertex_attrib_64bit
+#define GL_ARB_vertex_attrib_64bit 1
+#endif /* GL_ARB_vertex_attrib_64bit */
+
+#ifndef GL_ARB_vertex_attrib_binding
+#define GL_ARB_vertex_attrib_binding 1
+#endif /* GL_ARB_vertex_attrib_binding */
+
+#ifndef GL_ARB_vertex_blend
+#define GL_ARB_vertex_blend 1
+#define GL_MAX_VERTEX_UNITS_ARB           0x86A4
+#define GL_ACTIVE_VERTEX_UNITS_ARB        0x86A5
+#define GL_WEIGHT_SUM_UNITY_ARB           0x86A6
+#define GL_VERTEX_BLEND_ARB               0x86A7
+#define GL_CURRENT_WEIGHT_ARB             0x86A8
+#define GL_WEIGHT_ARRAY_TYPE_ARB          0x86A9
+#define GL_WEIGHT_ARRAY_STRIDE_ARB        0x86AA
+#define GL_WEIGHT_ARRAY_SIZE_ARB          0x86AB
+#define GL_WEIGHT_ARRAY_POINTER_ARB       0x86AC
+#define GL_WEIGHT_ARRAY_ARB               0x86AD
+#define GL_MODELVIEW0_ARB                 0x1700
+#define GL_MODELVIEW1_ARB                 0x850A
+#define GL_MODELVIEW2_ARB                 0x8722
+#define GL_MODELVIEW3_ARB                 0x8723
+#define GL_MODELVIEW4_ARB                 0x8724
+#define GL_MODELVIEW5_ARB                 0x8725
+#define GL_MODELVIEW6_ARB                 0x8726
+#define GL_MODELVIEW7_ARB                 0x8727
+#define GL_MODELVIEW8_ARB                 0x8728
+#define GL_MODELVIEW9_ARB                 0x8729
+#define GL_MODELVIEW10_ARB                0x872A
+#define GL_MODELVIEW11_ARB                0x872B
+#define GL_MODELVIEW12_ARB                0x872C
+#define GL_MODELVIEW13_ARB                0x872D
+#define GL_MODELVIEW14_ARB                0x872E
+#define GL_MODELVIEW15_ARB                0x872F
+#define GL_MODELVIEW16_ARB                0x8730
+#define GL_MODELVIEW17_ARB                0x8731
+#define GL_MODELVIEW18_ARB                0x8732
+#define GL_MODELVIEW19_ARB                0x8733
+#define GL_MODELVIEW20_ARB                0x8734
+#define GL_MODELVIEW21_ARB                0x8735
+#define GL_MODELVIEW22_ARB                0x8736
+#define GL_MODELVIEW23_ARB                0x8737
+#define GL_MODELVIEW24_ARB                0x8738
+#define GL_MODELVIEW25_ARB                0x8739
+#define GL_MODELVIEW26_ARB                0x873A
+#define GL_MODELVIEW27_ARB                0x873B
+#define GL_MODELVIEW28_ARB                0x873C
+#define GL_MODELVIEW29_ARB                0x873D
+#define GL_MODELVIEW30_ARB                0x873E
+#define GL_MODELVIEW31_ARB                0x873F
+typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights);
+typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights);
+typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights);
+typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights);
+typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights);
+typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights);
+typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights);
+typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights);
+typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glWeightbvARB (GLint size, const GLbyte *weights);
+GLAPI void APIENTRY glWeightsvARB (GLint size, const GLshort *weights);
+GLAPI void APIENTRY glWeightivARB (GLint size, const GLint *weights);
+GLAPI void APIENTRY glWeightfvARB (GLint size, const GLfloat *weights);
+GLAPI void APIENTRY glWeightdvARB (GLint size, const GLdouble *weights);
+GLAPI void APIENTRY glWeightubvARB (GLint size, const GLubyte *weights);
+GLAPI void APIENTRY glWeightusvARB (GLint size, const GLushort *weights);
+GLAPI void APIENTRY glWeightuivARB (GLint size, const GLuint *weights);
+GLAPI void APIENTRY glWeightPointerARB (GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glVertexBlendARB (GLint count);
+#endif
+#endif /* GL_ARB_vertex_blend */
+
+#ifndef GL_ARB_vertex_buffer_object
+#define GL_ARB_vertex_buffer_object 1
+#ifdef __MACOSX__ /* The OS X headers haven't caught up with Khronos yet */
+typedef long GLsizeiptrARB;
+typedef long GLintptrARB;
+#else
+typedef ptrdiff_t GLsizeiptrARB;
+typedef ptrdiff_t GLintptrARB;
+#endif
+#define GL_BUFFER_SIZE_ARB                0x8764
+#define GL_BUFFER_USAGE_ARB               0x8765
+#define GL_ARRAY_BUFFER_ARB               0x8892
+#define GL_ELEMENT_ARRAY_BUFFER_ARB       0x8893
+#define GL_ARRAY_BUFFER_BINDING_ARB       0x8894
+#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
+#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
+#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
+#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
+#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
+#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
+#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
+#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
+#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
+#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
+#define GL_READ_ONLY_ARB                  0x88B8
+#define GL_WRITE_ONLY_ARB                 0x88B9
+#define GL_READ_WRITE_ARB                 0x88BA
+#define GL_BUFFER_ACCESS_ARB              0x88BB
+#define GL_BUFFER_MAPPED_ARB              0x88BC
+#define GL_BUFFER_MAP_POINTER_ARB         0x88BD
+#define GL_STREAM_DRAW_ARB                0x88E0
+#define GL_STREAM_READ_ARB                0x88E1
+#define GL_STREAM_COPY_ARB                0x88E2
+#define GL_STATIC_DRAW_ARB                0x88E4
+#define GL_STATIC_READ_ARB                0x88E5
+#define GL_STATIC_COPY_ARB                0x88E6
+#define GL_DYNAMIC_DRAW_ARB               0x88E8
+#define GL_DYNAMIC_READ_ARB               0x88E9
+#define GL_DYNAMIC_COPY_ARB               0x88EA
+typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer);
+typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers);
+typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers);
+typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const void *data, GLenum usage);
+typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void *data);
+typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void *data);
+typedef void *(APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
+typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, void **params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindBufferARB (GLenum target, GLuint buffer);
+GLAPI void APIENTRY glDeleteBuffersARB (GLsizei n, const GLuint *buffers);
+GLAPI void APIENTRY glGenBuffersARB (GLsizei n, GLuint *buffers);
+GLAPI GLboolean APIENTRY glIsBufferARB (GLuint buffer);
+GLAPI void APIENTRY glBufferDataARB (GLenum target, GLsizeiptrARB size, const void *data, GLenum usage);
+GLAPI void APIENTRY glBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void *data);
+GLAPI void APIENTRY glGetBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void *data);
+GLAPI void *APIENTRY glMapBufferARB (GLenum target, GLenum access);
+GLAPI GLboolean APIENTRY glUnmapBufferARB (GLenum target);
+GLAPI void APIENTRY glGetBufferParameterivARB (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetBufferPointervARB (GLenum target, GLenum pname, void **params);
+#endif
+#endif /* GL_ARB_vertex_buffer_object */
+
+#ifndef GL_ARB_vertex_program
+#define GL_ARB_vertex_program 1
+#define GL_COLOR_SUM_ARB                  0x8458
+#define GL_VERTEX_PROGRAM_ARB             0x8620
+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
+#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB   0x8623
+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
+#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB   0x8625
+#define GL_CURRENT_VERTEX_ATTRIB_ARB      0x8626
+#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB  0x8642
+#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB    0x8643
+#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
+#define GL_MAX_VERTEX_ATTRIBS_ARB         0x8869
+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
+#define GL_PROGRAM_ADDRESS_REGISTERS_ARB  0x88B0
+#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
+#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
+#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, void **pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttrib1dARB (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttrib1dvARB (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib1fARB (GLuint index, GLfloat x);
+GLAPI void APIENTRY glVertexAttrib1fvARB (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib1sARB (GLuint index, GLshort x);
+GLAPI void APIENTRY glVertexAttrib1svARB (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib2dARB (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttrib2dvARB (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib2fARB (GLuint index, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glVertexAttrib2fvARB (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib2sARB (GLuint index, GLshort x, GLshort y);
+GLAPI void APIENTRY glVertexAttrib2svARB (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib3dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttrib3dvARB (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib3fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glVertexAttrib3fvARB (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib3sARB (GLuint index, GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glVertexAttrib3svARB (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4NbvARB (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttrib4NivARB (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttrib4NsvARB (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4NubARB (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+GLAPI void APIENTRY glVertexAttrib4NubvARB (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttrib4NuivARB (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttrib4NusvARB (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttrib4bvARB (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttrib4dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttrib4dvARB (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib4fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glVertexAttrib4fvARB (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib4ivARB (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttrib4sARB (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glVertexAttrib4svARB (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4ubvARB (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttrib4uivARB (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttrib4usvARB (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttribPointerARB (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glEnableVertexAttribArrayARB (GLuint index);
+GLAPI void APIENTRY glDisableVertexAttribArrayARB (GLuint index);
+GLAPI void APIENTRY glGetVertexAttribdvARB (GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetVertexAttribfvARB (GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVertexAttribivARB (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribPointervARB (GLuint index, GLenum pname, void **pointer);
+#endif
+#endif /* GL_ARB_vertex_program */
+
+#ifndef GL_ARB_vertex_shader
+#define GL_ARB_vertex_shader 1
+#define GL_VERTEX_SHADER_ARB              0x8B31
+#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
+#define GL_MAX_VARYING_FLOATS_ARB         0x8B4B
+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
+#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB   0x8B89
+#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
+typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name);
+typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
+typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindAttribLocationARB (GLhandleARB programObj, GLuint index, const GLcharARB *name);
+GLAPI void APIENTRY glGetActiveAttribARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
+GLAPI GLint APIENTRY glGetAttribLocationARB (GLhandleARB programObj, const GLcharARB *name);
+#endif
+#endif /* GL_ARB_vertex_shader */
+
+#ifndef GL_ARB_vertex_type_10f_11f_11f_rev
+#define GL_ARB_vertex_type_10f_11f_11f_rev 1
+#endif /* GL_ARB_vertex_type_10f_11f_11f_rev */
+
+#ifndef GL_ARB_vertex_type_2_10_10_10_rev
+#define GL_ARB_vertex_type_2_10_10_10_rev 1
+#endif /* GL_ARB_vertex_type_2_10_10_10_rev */
+
+#ifndef GL_ARB_viewport_array
+#define GL_ARB_viewport_array 1
+#endif /* GL_ARB_viewport_array */
+
+#ifndef GL_ARB_window_pos
+#define GL_ARB_window_pos 1
+typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glWindowPos2dARB (GLdouble x, GLdouble y);
+GLAPI void APIENTRY glWindowPos2dvARB (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos2fARB (GLfloat x, GLfloat y);
+GLAPI void APIENTRY glWindowPos2fvARB (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos2iARB (GLint x, GLint y);
+GLAPI void APIENTRY glWindowPos2ivARB (const GLint *v);
+GLAPI void APIENTRY glWindowPos2sARB (GLshort x, GLshort y);
+GLAPI void APIENTRY glWindowPos2svARB (const GLshort *v);
+GLAPI void APIENTRY glWindowPos3dARB (GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glWindowPos3dvARB (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos3fARB (GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glWindowPos3fvARB (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos3iARB (GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glWindowPos3ivARB (const GLint *v);
+GLAPI void APIENTRY glWindowPos3sARB (GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glWindowPos3svARB (const GLshort *v);
+#endif
+#endif /* GL_ARB_window_pos */
+
+#ifndef GL_KHR_debug
+#define GL_KHR_debug 1
+#endif /* GL_KHR_debug */
+
+#ifndef GL_KHR_texture_compression_astc_hdr
+#define GL_KHR_texture_compression_astc_hdr 1
+#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR   0x93B0
+#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR   0x93B1
+#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR   0x93B2
+#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR   0x93B3
+#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR   0x93B4
+#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR   0x93B5
+#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR   0x93B6
+#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR   0x93B7
+#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR  0x93B8
+#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR  0x93B9
+#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR  0x93BA
+#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
+#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
+#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
+#endif /* GL_KHR_texture_compression_astc_hdr */
+
+#ifndef GL_KHR_texture_compression_astc_ldr
+#define GL_KHR_texture_compression_astc_ldr 1
+#endif /* GL_KHR_texture_compression_astc_ldr */
+
+#ifndef GL_OES_byte_coordinates
+#define GL_OES_byte_coordinates 1
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1BOESPROC) (GLenum texture, GLbyte s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1BVOESPROC) (GLenum texture, const GLbyte *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2BOESPROC) (GLenum texture, GLbyte s, GLbyte t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2BVOESPROC) (GLenum texture, const GLbyte *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3BVOESPROC) (GLenum texture, const GLbyte *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4BVOESPROC) (GLenum texture, const GLbyte *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD1BOESPROC) (GLbyte s);
+typedef void (APIENTRYP PFNGLTEXCOORD1BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD2BOESPROC) (GLbyte s, GLbyte t);
+typedef void (APIENTRYP PFNGLTEXCOORD2BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD3BOESPROC) (GLbyte s, GLbyte t, GLbyte r);
+typedef void (APIENTRYP PFNGLTEXCOORD3BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD4BOESPROC) (GLbyte s, GLbyte t, GLbyte r, GLbyte q);
+typedef void (APIENTRYP PFNGLTEXCOORD4BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLVERTEX2BOESPROC) (GLbyte x);
+typedef void (APIENTRYP PFNGLVERTEX2BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLVERTEX3BOESPROC) (GLbyte x, GLbyte y);
+typedef void (APIENTRYP PFNGLVERTEX3BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLVERTEX4BOESPROC) (GLbyte x, GLbyte y, GLbyte z);
+typedef void (APIENTRYP PFNGLVERTEX4BVOESPROC) (const GLbyte *coords);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiTexCoord1bOES (GLenum texture, GLbyte s);
+GLAPI void APIENTRY glMultiTexCoord1bvOES (GLenum texture, const GLbyte *coords);
+GLAPI void APIENTRY glMultiTexCoord2bOES (GLenum texture, GLbyte s, GLbyte t);
+GLAPI void APIENTRY glMultiTexCoord2bvOES (GLenum texture, const GLbyte *coords);
+GLAPI void APIENTRY glMultiTexCoord3bOES (GLenum texture, GLbyte s, GLbyte t, GLbyte r);
+GLAPI void APIENTRY glMultiTexCoord3bvOES (GLenum texture, const GLbyte *coords);
+GLAPI void APIENTRY glMultiTexCoord4bOES (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q);
+GLAPI void APIENTRY glMultiTexCoord4bvOES (GLenum texture, const GLbyte *coords);
+GLAPI void APIENTRY glTexCoord1bOES (GLbyte s);
+GLAPI void APIENTRY glTexCoord1bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glTexCoord2bOES (GLbyte s, GLbyte t);
+GLAPI void APIENTRY glTexCoord2bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glTexCoord3bOES (GLbyte s, GLbyte t, GLbyte r);
+GLAPI void APIENTRY glTexCoord3bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glTexCoord4bOES (GLbyte s, GLbyte t, GLbyte r, GLbyte q);
+GLAPI void APIENTRY glTexCoord4bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glVertex2bOES (GLbyte x);
+GLAPI void APIENTRY glVertex2bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glVertex3bOES (GLbyte x, GLbyte y);
+GLAPI void APIENTRY glVertex3bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glVertex4bOES (GLbyte x, GLbyte y, GLbyte z);
+GLAPI void APIENTRY glVertex4bvOES (const GLbyte *coords);
+#endif
+#endif /* GL_OES_byte_coordinates */
+
+#ifndef GL_OES_compressed_paletted_texture
+#define GL_OES_compressed_paletted_texture 1
+#define GL_PALETTE4_RGB8_OES              0x8B90
+#define GL_PALETTE4_RGBA8_OES             0x8B91
+#define GL_PALETTE4_R5_G6_B5_OES          0x8B92
+#define GL_PALETTE4_RGBA4_OES             0x8B93
+#define GL_PALETTE4_RGB5_A1_OES           0x8B94
+#define GL_PALETTE8_RGB8_OES              0x8B95
+#define GL_PALETTE8_RGBA8_OES             0x8B96
+#define GL_PALETTE8_R5_G6_B5_OES          0x8B97
+#define GL_PALETTE8_RGBA4_OES             0x8B98
+#define GL_PALETTE8_RGB5_A1_OES           0x8B99
+#endif /* GL_OES_compressed_paletted_texture */
+
+#ifndef GL_OES_fixed_point
+#define GL_OES_fixed_point 1
+typedef GLint GLfixed;
+#define GL_FIXED_OES                      0x140C
+typedef void (APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLfixed ref);
+typedef void (APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+typedef void (APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLfixed depth);
+typedef void (APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane, const GLfixed *equation);
+typedef void (APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+typedef void (APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLfixed n, GLfixed f);
+typedef void (APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname, const GLfixed *param);
+typedef void (APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
+typedef void (APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum plane, GLfixed *equation);
+typedef void (APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname, const GLfixed *param);
+typedef void (APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width);
+typedef void (APIENTRYP PFNGLLOADMATRIXXOESPROC) (const GLfixed *m);
+typedef void (APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname, const GLfixed *param);
+typedef void (APIENTRYP PFNGLMULTMATRIXXOESPROC) (const GLfixed *m);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+typedef void (APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz);
+typedef void (APIENTRYP PFNGLORTHOXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size);
+typedef void (APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units);
+typedef void (APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
+typedef void (APIENTRYP PFNGLSAMPLECOVERAGEOESPROC) (GLfixed value, GLboolean invert);
+typedef void (APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
+typedef void (APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
+typedef void (APIENTRYP PFNGLACCUMXOESPROC) (GLenum op, GLfixed value);
+typedef void (APIENTRYP PFNGLBITMAPXOESPROC) (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap);
+typedef void (APIENTRYP PFNGLBLENDCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+typedef void (APIENTRYP PFNGLCLEARACCUMXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+typedef void (APIENTRYP PFNGLCOLOR3XOESPROC) (GLfixed red, GLfixed green, GLfixed blue);
+typedef void (APIENTRYP PFNGLCOLOR3XVOESPROC) (const GLfixed *components);
+typedef void (APIENTRYP PFNGLCOLOR4XVOESPROC) (const GLfixed *components);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLEVALCOORD1XOESPROC) (GLfixed u);
+typedef void (APIENTRYP PFNGLEVALCOORD1XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLEVALCOORD2XOESPROC) (GLfixed u, GLfixed v);
+typedef void (APIENTRYP PFNGLEVALCOORD2XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLFEEDBACKBUFFERXOESPROC) (GLsizei n, GLenum type, const GLfixed *buffer);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETMAPXVOESPROC) (GLenum target, GLenum query, GLfixed *v);
+typedef void (APIENTRYP PFNGLGETMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLGETPIXELMAPXVPROC) (GLenum map, GLint size, GLfixed *values);
+typedef void (APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERXVOESPROC) (GLenum target, GLint level, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLINDEXXOESPROC) (GLfixed component);
+typedef void (APIENTRYP PFNGLINDEXXVOESPROC) (const GLfixed *component);
+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXXOESPROC) (const GLfixed *m);
+typedef void (APIENTRYP PFNGLMAP1XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points);
+typedef void (APIENTRYP PFNGLMAP2XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points);
+typedef void (APIENTRYP PFNGLMAPGRID1XOESPROC) (GLint n, GLfixed u1, GLfixed u2);
+typedef void (APIENTRYP PFNGLMAPGRID2XOESPROC) (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2);
+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXXOESPROC) (const GLfixed *m);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1XOESPROC) (GLenum texture, GLfixed s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1XVOESPROC) (GLenum texture, const GLfixed *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2XOESPROC) (GLenum texture, GLfixed s, GLfixed t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2XVOESPROC) (GLenum texture, const GLfixed *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3XVOESPROC) (GLenum texture, const GLfixed *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4XVOESPROC) (GLenum texture, const GLfixed *coords);
+typedef void (APIENTRYP PFNGLNORMAL3XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLPASSTHROUGHXOESPROC) (GLfixed token);
+typedef void (APIENTRYP PFNGLPIXELMAPXPROC) (GLenum map, GLint size, const GLfixed *values);
+typedef void (APIENTRYP PFNGLPIXELSTOREXPROC) (GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLPIXELTRANSFERXOESPROC) (GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLPIXELZOOMXOESPROC) (GLfixed xfactor, GLfixed yfactor);
+typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESXOESPROC) (GLsizei n, const GLuint *textures, const GLfixed *priorities);
+typedef void (APIENTRYP PFNGLRASTERPOS2XOESPROC) (GLfixed x, GLfixed y);
+typedef void (APIENTRYP PFNGLRASTERPOS2XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLRASTERPOS3XOESPROC) (GLfixed x, GLfixed y, GLfixed z);
+typedef void (APIENTRYP PFNGLRASTERPOS3XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLRASTERPOS4XOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed w);
+typedef void (APIENTRYP PFNGLRASTERPOS4XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLRECTXOESPROC) (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2);
+typedef void (APIENTRYP PFNGLRECTXVOESPROC) (const GLfixed *v1, const GLfixed *v2);
+typedef void (APIENTRYP PFNGLTEXCOORD1XOESPROC) (GLfixed s);
+typedef void (APIENTRYP PFNGLTEXCOORD1XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD2XOESPROC) (GLfixed s, GLfixed t);
+typedef void (APIENTRYP PFNGLTEXCOORD2XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD3XOESPROC) (GLfixed s, GLfixed t, GLfixed r);
+typedef void (APIENTRYP PFNGLTEXCOORD3XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD4XOESPROC) (GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+typedef void (APIENTRYP PFNGLTEXCOORD4XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLVERTEX2XOESPROC) (GLfixed x);
+typedef void (APIENTRYP PFNGLVERTEX2XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLVERTEX3XOESPROC) (GLfixed x, GLfixed y);
+typedef void (APIENTRYP PFNGLVERTEX3XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLVERTEX4XOESPROC) (GLfixed x, GLfixed y, GLfixed z);
+typedef void (APIENTRYP PFNGLVERTEX4XVOESPROC) (const GLfixed *coords);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glAlphaFuncxOES (GLenum func, GLfixed ref);
+GLAPI void APIENTRY glClearColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+GLAPI void APIENTRY glClearDepthxOES (GLfixed depth);
+GLAPI void APIENTRY glClipPlanexOES (GLenum plane, const GLfixed *equation);
+GLAPI void APIENTRY glColor4xOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+GLAPI void APIENTRY glDepthRangexOES (GLfixed n, GLfixed f);
+GLAPI void APIENTRY glFogxOES (GLenum pname, GLfixed param);
+GLAPI void APIENTRY glFogxvOES (GLenum pname, const GLfixed *param);
+GLAPI void APIENTRY glFrustumxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
+GLAPI void APIENTRY glGetClipPlanexOES (GLenum plane, GLfixed *equation);
+GLAPI void APIENTRY glGetFixedvOES (GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetTexEnvxvOES (GLenum target, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetTexParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glLightModelxOES (GLenum pname, GLfixed param);
+GLAPI void APIENTRY glLightModelxvOES (GLenum pname, const GLfixed *param);
+GLAPI void APIENTRY glLightxOES (GLenum light, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glLightxvOES (GLenum light, GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glLineWidthxOES (GLfixed width);
+GLAPI void APIENTRY glLoadMatrixxOES (const GLfixed *m);
+GLAPI void APIENTRY glMaterialxOES (GLenum face, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glMaterialxvOES (GLenum face, GLenum pname, const GLfixed *param);
+GLAPI void APIENTRY glMultMatrixxOES (const GLfixed *m);
+GLAPI void APIENTRY glMultiTexCoord4xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+GLAPI void APIENTRY glNormal3xOES (GLfixed nx, GLfixed ny, GLfixed nz);
+GLAPI void APIENTRY glOrthoxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
+GLAPI void APIENTRY glPointParameterxvOES (GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glPointSizexOES (GLfixed size);
+GLAPI void APIENTRY glPolygonOffsetxOES (GLfixed factor, GLfixed units);
+GLAPI void APIENTRY glRotatexOES (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
+GLAPI void APIENTRY glSampleCoverageOES (GLfixed value, GLboolean invert);
+GLAPI void APIENTRY glScalexOES (GLfixed x, GLfixed y, GLfixed z);
+GLAPI void APIENTRY glTexEnvxOES (GLenum target, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glTexEnvxvOES (GLenum target, GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glTexParameterxOES (GLenum target, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glTexParameterxvOES (GLenum target, GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glTranslatexOES (GLfixed x, GLfixed y, GLfixed z);
+GLAPI void APIENTRY glAccumxOES (GLenum op, GLfixed value);
+GLAPI void APIENTRY glBitmapxOES (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap);
+GLAPI void APIENTRY glBlendColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+GLAPI void APIENTRY glClearAccumxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+GLAPI void APIENTRY glColor3xOES (GLfixed red, GLfixed green, GLfixed blue);
+GLAPI void APIENTRY glColor3xvOES (const GLfixed *components);
+GLAPI void APIENTRY glColor4xvOES (const GLfixed *components);
+GLAPI void APIENTRY glConvolutionParameterxOES (GLenum target, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glConvolutionParameterxvOES (GLenum target, GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glEvalCoord1xOES (GLfixed u);
+GLAPI void APIENTRY glEvalCoord1xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glEvalCoord2xOES (GLfixed u, GLfixed v);
+GLAPI void APIENTRY glEvalCoord2xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glFeedbackBufferxOES (GLsizei n, GLenum type, const GLfixed *buffer);
+GLAPI void APIENTRY glGetConvolutionParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetHistogramParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetLightxOES (GLenum light, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetMapxvOES (GLenum target, GLenum query, GLfixed *v);
+GLAPI void APIENTRY glGetMaterialxOES (GLenum face, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glGetPixelMapxv (GLenum map, GLint size, GLfixed *values);
+GLAPI void APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetTexLevelParameterxvOES (GLenum target, GLint level, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glIndexxOES (GLfixed component);
+GLAPI void APIENTRY glIndexxvOES (const GLfixed *component);
+GLAPI void APIENTRY glLoadTransposeMatrixxOES (const GLfixed *m);
+GLAPI void APIENTRY glMap1xOES (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points);
+GLAPI void APIENTRY glMap2xOES (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points);
+GLAPI void APIENTRY glMapGrid1xOES (GLint n, GLfixed u1, GLfixed u2);
+GLAPI void APIENTRY glMapGrid2xOES (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2);
+GLAPI void APIENTRY glMultTransposeMatrixxOES (const GLfixed *m);
+GLAPI void APIENTRY glMultiTexCoord1xOES (GLenum texture, GLfixed s);
+GLAPI void APIENTRY glMultiTexCoord1xvOES (GLenum texture, const GLfixed *coords);
+GLAPI void APIENTRY glMultiTexCoord2xOES (GLenum texture, GLfixed s, GLfixed t);
+GLAPI void APIENTRY glMultiTexCoord2xvOES (GLenum texture, const GLfixed *coords);
+GLAPI void APIENTRY glMultiTexCoord3xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r);
+GLAPI void APIENTRY glMultiTexCoord3xvOES (GLenum texture, const GLfixed *coords);
+GLAPI void APIENTRY glMultiTexCoord4xvOES (GLenum texture, const GLfixed *coords);
+GLAPI void APIENTRY glNormal3xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glPassThroughxOES (GLfixed token);
+GLAPI void APIENTRY glPixelMapx (GLenum map, GLint size, const GLfixed *values);
+GLAPI void APIENTRY glPixelStorex (GLenum pname, GLfixed param);
+GLAPI void APIENTRY glPixelTransferxOES (GLenum pname, GLfixed param);
+GLAPI void APIENTRY glPixelZoomxOES (GLfixed xfactor, GLfixed yfactor);
+GLAPI void APIENTRY glPrioritizeTexturesxOES (GLsizei n, const GLuint *textures, const GLfixed *priorities);
+GLAPI void APIENTRY glRasterPos2xOES (GLfixed x, GLfixed y);
+GLAPI void APIENTRY glRasterPos2xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glRasterPos3xOES (GLfixed x, GLfixed y, GLfixed z);
+GLAPI void APIENTRY glRasterPos3xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glRasterPos4xOES (GLfixed x, GLfixed y, GLfixed z, GLfixed w);
+GLAPI void APIENTRY glRasterPos4xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glRectxOES (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2);
+GLAPI void APIENTRY glRectxvOES (const GLfixed *v1, const GLfixed *v2);
+GLAPI void APIENTRY glTexCoord1xOES (GLfixed s);
+GLAPI void APIENTRY glTexCoord1xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glTexCoord2xOES (GLfixed s, GLfixed t);
+GLAPI void APIENTRY glTexCoord2xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glTexCoord3xOES (GLfixed s, GLfixed t, GLfixed r);
+GLAPI void APIENTRY glTexCoord3xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glTexCoord4xOES (GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+GLAPI void APIENTRY glTexCoord4xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glTexGenxOES (GLenum coord, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glTexGenxvOES (GLenum coord, GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glVertex2xOES (GLfixed x);
+GLAPI void APIENTRY glVertex2xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glVertex3xOES (GLfixed x, GLfixed y);
+GLAPI void APIENTRY glVertex3xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glVertex4xOES (GLfixed x, GLfixed y, GLfixed z);
+GLAPI void APIENTRY glVertex4xvOES (const GLfixed *coords);
+#endif
+#endif /* GL_OES_fixed_point */
+
+#ifndef GL_OES_query_matrix
+#define GL_OES_query_matrix 1
+typedef GLbitfield (APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed *mantissa, GLint *exponent);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLbitfield APIENTRY glQueryMatrixxOES (GLfixed *mantissa, GLint *exponent);
+#endif
+#endif /* GL_OES_query_matrix */
+
+#ifndef GL_OES_read_format
+#define GL_OES_read_format 1
+#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
+#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
+#endif /* GL_OES_read_format */
+
+#ifndef GL_OES_single_precision
+#define GL_OES_single_precision 1
+typedef void (APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampf depth);
+typedef void (APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat *equation);
+typedef void (APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf n, GLclampf f);
+typedef void (APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
+typedef void (APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum plane, GLfloat *equation);
+typedef void (APIENTRYP PFNGLORTHOFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glClearDepthfOES (GLclampf depth);
+GLAPI void APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation);
+GLAPI void APIENTRY glDepthRangefOES (GLclampf n, GLclampf f);
+GLAPI void APIENTRY glFrustumfOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
+GLAPI void APIENTRY glGetClipPlanefOES (GLenum plane, GLfloat *equation);
+GLAPI void APIENTRY glOrthofOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
+#endif
+#endif /* GL_OES_single_precision */
+
+#ifndef GL_3DFX_multisample
+#define GL_3DFX_multisample 1
+#define GL_MULTISAMPLE_3DFX               0x86B2
+#define GL_SAMPLE_BUFFERS_3DFX            0x86B3
+#define GL_SAMPLES_3DFX                   0x86B4
+#define GL_MULTISAMPLE_BIT_3DFX           0x20000000
+#endif /* GL_3DFX_multisample */
+
+#ifndef GL_3DFX_tbuffer
+#define GL_3DFX_tbuffer 1
+typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC) (GLuint mask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTbufferMask3DFX (GLuint mask);
+#endif
+#endif /* GL_3DFX_tbuffer */
+
+#ifndef GL_3DFX_texture_compression_FXT1
+#define GL_3DFX_texture_compression_FXT1 1
+#define GL_COMPRESSED_RGB_FXT1_3DFX       0x86B0
+#define GL_COMPRESSED_RGBA_FXT1_3DFX      0x86B1
+#endif /* GL_3DFX_texture_compression_FXT1 */
+
+#ifndef GL_AMD_blend_minmax_factor
+#define GL_AMD_blend_minmax_factor 1
+#define GL_FACTOR_MIN_AMD                 0x901C
+#define GL_FACTOR_MAX_AMD                 0x901D
+#endif /* GL_AMD_blend_minmax_factor */
+
+#ifndef GL_AMD_conservative_depth
+#define GL_AMD_conservative_depth 1
+#endif /* GL_AMD_conservative_depth */
+
+#ifndef GL_AMD_debug_output
+#define GL_AMD_debug_output 1
+typedef void (APIENTRY  *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam);
+#define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD   0x9143
+#define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD  0x9144
+#define GL_DEBUG_LOGGED_MESSAGES_AMD      0x9145
+#define GL_DEBUG_SEVERITY_HIGH_AMD        0x9146
+#define GL_DEBUG_SEVERITY_MEDIUM_AMD      0x9147
+#define GL_DEBUG_SEVERITY_LOW_AMD         0x9148
+#define GL_DEBUG_CATEGORY_API_ERROR_AMD   0x9149
+#define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A
+#define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B
+#define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C
+#define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D
+#define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E
+#define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F
+#define GL_DEBUG_CATEGORY_OTHER_AMD       0x9150
+typedef void (APIENTRYP PFNGLDEBUGMESSAGEENABLEAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTAMDPROC) (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKAMDPROC) (GLDEBUGPROCAMD callback, void *userParam);
+typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGAMDPROC) (GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDebugMessageEnableAMD (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+GLAPI void APIENTRY glDebugMessageInsertAMD (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
+GLAPI void APIENTRY glDebugMessageCallbackAMD (GLDEBUGPROCAMD callback, void *userParam);
+GLAPI GLuint APIENTRY glGetDebugMessageLogAMD (GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
+#endif
+#endif /* GL_AMD_debug_output */
+
+#ifndef GL_AMD_depth_clamp_separate
+#define GL_AMD_depth_clamp_separate 1
+#define GL_DEPTH_CLAMP_NEAR_AMD           0x901E
+#define GL_DEPTH_CLAMP_FAR_AMD            0x901F
+#endif /* GL_AMD_depth_clamp_separate */
+
+#ifndef GL_AMD_draw_buffers_blend
+#define GL_AMD_draw_buffers_blend 1
+typedef void (APIENTRYP PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst);
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendFuncIndexedAMD (GLuint buf, GLenum src, GLenum dst);
+GLAPI void APIENTRY glBlendFuncSeparateIndexedAMD (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+GLAPI void APIENTRY glBlendEquationIndexedAMD (GLuint buf, GLenum mode);
+GLAPI void APIENTRY glBlendEquationSeparateIndexedAMD (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+#endif
+#endif /* GL_AMD_draw_buffers_blend */
+
+#ifndef GL_AMD_gcn_shader
+#define GL_AMD_gcn_shader 1
+#endif /* GL_AMD_gcn_shader */
+
+#ifndef GL_AMD_gpu_shader_int64
+#define GL_AMD_gpu_shader_int64 1
+typedef int64_t GLint64EXT;
+#define GL_INT64_NV                       0x140E
+#define GL_UNSIGNED_INT64_NV              0x140F
+#define GL_INT8_NV                        0x8FE0
+#define GL_INT8_VEC2_NV                   0x8FE1
+#define GL_INT8_VEC3_NV                   0x8FE2
+#define GL_INT8_VEC4_NV                   0x8FE3
+#define GL_INT16_NV                       0x8FE4
+#define GL_INT16_VEC2_NV                  0x8FE5
+#define GL_INT16_VEC3_NV                  0x8FE6
+#define GL_INT16_VEC4_NV                  0x8FE7
+#define GL_INT64_VEC2_NV                  0x8FE9
+#define GL_INT64_VEC3_NV                  0x8FEA
+#define GL_INT64_VEC4_NV                  0x8FEB
+#define GL_UNSIGNED_INT8_NV               0x8FEC
+#define GL_UNSIGNED_INT8_VEC2_NV          0x8FED
+#define GL_UNSIGNED_INT8_VEC3_NV          0x8FEE
+#define GL_UNSIGNED_INT8_VEC4_NV          0x8FEF
+#define GL_UNSIGNED_INT16_NV              0x8FF0
+#define GL_UNSIGNED_INT16_VEC2_NV         0x8FF1
+#define GL_UNSIGNED_INT16_VEC3_NV         0x8FF2
+#define GL_UNSIGNED_INT16_VEC4_NV         0x8FF3
+#define GL_UNSIGNED_INT64_VEC2_NV         0x8FF5
+#define GL_UNSIGNED_INT64_VEC3_NV         0x8FF6
+#define GL_UNSIGNED_INT64_VEC4_NV         0x8FF7
+#define GL_FLOAT16_NV                     0x8FF8
+#define GL_FLOAT16_VEC2_NV                0x8FF9
+#define GL_FLOAT16_VEC3_NV                0x8FFA
+#define GL_FLOAT16_VEC4_NV                0x8FFB
+typedef void (APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x);
+typedef void (APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y);
+typedef void (APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y);
+typedef void (APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params);
+typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUniform1i64NV (GLint location, GLint64EXT x);
+GLAPI void APIENTRY glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y);
+GLAPI void APIENTRY glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GLAPI void APIENTRY glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GLAPI void APIENTRY glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform1ui64NV (GLint location, GLuint64EXT x);
+GLAPI void APIENTRY glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y);
+GLAPI void APIENTRY glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GLAPI void APIENTRY glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GLAPI void APIENTRY glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params);
+GLAPI void APIENTRY glGetUniformui64vNV (GLuint program, GLint location, GLuint64EXT *params);
+GLAPI void APIENTRY glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x);
+GLAPI void APIENTRY glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
+GLAPI void APIENTRY glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GLAPI void APIENTRY glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GLAPI void APIENTRY glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x);
+GLAPI void APIENTRY glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
+GLAPI void APIENTRY glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GLAPI void APIENTRY glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GLAPI void APIENTRY glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#endif
+#endif /* GL_AMD_gpu_shader_int64 */
+
+#ifndef GL_AMD_interleaved_elements
+#define GL_AMD_interleaved_elements 1
+#define GL_VERTEX_ELEMENT_SWIZZLE_AMD     0x91A4
+#define GL_VERTEX_ID_SWIZZLE_AMD          0x91A5
+typedef void (APIENTRYP PFNGLVERTEXATTRIBPARAMETERIAMDPROC) (GLuint index, GLenum pname, GLint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribParameteriAMD (GLuint index, GLenum pname, GLint param);
+#endif
+#endif /* GL_AMD_interleaved_elements */
+
+#ifndef GL_AMD_multi_draw_indirect
+#define GL_AMD_multi_draw_indirect 1
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC) (GLenum mode, const void *indirect, GLsizei primcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei primcount, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysIndirectAMD (GLenum mode, const void *indirect, GLsizei primcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawElementsIndirectAMD (GLenum mode, GLenum type, const void *indirect, GLsizei primcount, GLsizei stride);
+#endif
+#endif /* GL_AMD_multi_draw_indirect */
+
+#ifndef GL_AMD_name_gen_delete
+#define GL_AMD_name_gen_delete 1
+#define GL_DATA_BUFFER_AMD                0x9151
+#define GL_PERFORMANCE_MONITOR_AMD        0x9152
+#define GL_QUERY_OBJECT_AMD               0x9153
+#define GL_VERTEX_ARRAY_OBJECT_AMD        0x9154
+#define GL_SAMPLER_OBJECT_AMD             0x9155
+typedef void (APIENTRYP PFNGLGENNAMESAMDPROC) (GLenum identifier, GLuint num, GLuint *names);
+typedef void (APIENTRYP PFNGLDELETENAMESAMDPROC) (GLenum identifier, GLuint num, const GLuint *names);
+typedef GLboolean (APIENTRYP PFNGLISNAMEAMDPROC) (GLenum identifier, GLuint name);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenNamesAMD (GLenum identifier, GLuint num, GLuint *names);
+GLAPI void APIENTRY glDeleteNamesAMD (GLenum identifier, GLuint num, const GLuint *names);
+GLAPI GLboolean APIENTRY glIsNameAMD (GLenum identifier, GLuint name);
+#endif
+#endif /* GL_AMD_name_gen_delete */
+
+#ifndef GL_AMD_occlusion_query_event
+#define GL_AMD_occlusion_query_event 1
+#define GL_OCCLUSION_QUERY_EVENT_MASK_AMD 0x874F
+#define GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD 0x00000001
+#define GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD 0x00000002
+#define GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD 0x00000004
+#define GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD 0x00000008
+#define GL_QUERY_ALL_EVENT_BITS_AMD       0xFFFFFFFF
+typedef void (APIENTRYP PFNGLQUERYOBJECTPARAMETERUIAMDPROC) (GLenum target, GLuint id, GLenum pname, GLuint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glQueryObjectParameteruiAMD (GLenum target, GLuint id, GLenum pname, GLuint param);
+#endif
+#endif /* GL_AMD_occlusion_query_event */
+
+#ifndef GL_AMD_performance_monitor
+#define GL_AMD_performance_monitor 1
+#define GL_COUNTER_TYPE_AMD               0x8BC0
+#define GL_COUNTER_RANGE_AMD              0x8BC1
+#define GL_UNSIGNED_INT64_AMD             0x8BC2
+#define GL_PERCENTAGE_AMD                 0x8BC3
+#define GL_PERFMON_RESULT_AVAILABLE_AMD   0x8BC4
+#define GL_PERFMON_RESULT_SIZE_AMD        0x8BC5
+#define GL_PERFMON_RESULT_AMD             0x8BC6
+typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
+typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data);
+typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
+typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
+typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
+typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
+typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
+GLAPI void APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
+GLAPI void APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
+GLAPI void APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
+GLAPI void APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, void *data);
+GLAPI void APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
+GLAPI void APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
+GLAPI void APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
+GLAPI void APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
+GLAPI void APIENTRY glEndPerfMonitorAMD (GLuint monitor);
+GLAPI void APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
+#endif
+#endif /* GL_AMD_performance_monitor */
+
+#ifndef GL_AMD_pinned_memory
+#define GL_AMD_pinned_memory 1
+#define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160
+#endif /* GL_AMD_pinned_memory */
+
+#ifndef GL_AMD_query_buffer_object
+#define GL_AMD_query_buffer_object 1
+#define GL_QUERY_BUFFER_AMD               0x9192
+#define GL_QUERY_BUFFER_BINDING_AMD       0x9193
+#define GL_QUERY_RESULT_NO_WAIT_AMD       0x9194
+#endif /* GL_AMD_query_buffer_object */
+
+#ifndef GL_AMD_sample_positions
+#define GL_AMD_sample_positions 1
+#define GL_SUBSAMPLE_DISTANCE_AMD         0x883F
+typedef void (APIENTRYP PFNGLSETMULTISAMPLEFVAMDPROC) (GLenum pname, GLuint index, const GLfloat *val);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSetMultisamplefvAMD (GLenum pname, GLuint index, const GLfloat *val);
+#endif
+#endif /* GL_AMD_sample_positions */
+
+#ifndef GL_AMD_seamless_cubemap_per_texture
+#define GL_AMD_seamless_cubemap_per_texture 1
+#endif /* GL_AMD_seamless_cubemap_per_texture */
+
+#ifndef GL_AMD_shader_atomic_counter_ops
+#define GL_AMD_shader_atomic_counter_ops 1
+#endif /* GL_AMD_shader_atomic_counter_ops */
+
+#ifndef GL_AMD_shader_stencil_export
+#define GL_AMD_shader_stencil_export 1
+#endif /* GL_AMD_shader_stencil_export */
+
+#ifndef GL_AMD_shader_trinary_minmax
+#define GL_AMD_shader_trinary_minmax 1
+#endif /* GL_AMD_shader_trinary_minmax */
+
+#ifndef GL_AMD_sparse_texture
+#define GL_AMD_sparse_texture 1
+#define GL_VIRTUAL_PAGE_SIZE_X_AMD        0x9195
+#define GL_VIRTUAL_PAGE_SIZE_Y_AMD        0x9196
+#define GL_VIRTUAL_PAGE_SIZE_Z_AMD        0x9197
+#define GL_MAX_SPARSE_TEXTURE_SIZE_AMD    0x9198
+#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD 0x9199
+#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS 0x919A
+#define GL_MIN_SPARSE_LEVEL_AMD           0x919B
+#define GL_MIN_LOD_WARNING_AMD            0x919C
+#define GL_TEXTURE_STORAGE_SPARSE_BIT_AMD 0x00000001
+typedef void (APIENTRYP PFNGLTEXSTORAGESPARSEAMDPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGESPARSEAMDPROC) (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexStorageSparseAMD (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
+GLAPI void APIENTRY glTextureStorageSparseAMD (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
+#endif
+#endif /* GL_AMD_sparse_texture */
+
+#ifndef GL_AMD_stencil_operation_extended
+#define GL_AMD_stencil_operation_extended 1
+#define GL_SET_AMD                        0x874A
+#define GL_REPLACE_VALUE_AMD              0x874B
+#define GL_STENCIL_OP_VALUE_AMD           0x874C
+#define GL_STENCIL_BACK_OP_VALUE_AMD      0x874D
+typedef void (APIENTRYP PFNGLSTENCILOPVALUEAMDPROC) (GLenum face, GLuint value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glStencilOpValueAMD (GLenum face, GLuint value);
+#endif
+#endif /* GL_AMD_stencil_operation_extended */
+
+#ifndef GL_AMD_texture_texture4
+#define GL_AMD_texture_texture4 1
+#endif /* GL_AMD_texture_texture4 */
+
+#ifndef GL_AMD_transform_feedback3_lines_triangles
+#define GL_AMD_transform_feedback3_lines_triangles 1
+#endif /* GL_AMD_transform_feedback3_lines_triangles */
+
+#ifndef GL_AMD_transform_feedback4
+#define GL_AMD_transform_feedback4 1
+#define GL_STREAM_RASTERIZATION_AMD       0x91A0
+#endif /* GL_AMD_transform_feedback4 */
+
+#ifndef GL_AMD_vertex_shader_layer
+#define GL_AMD_vertex_shader_layer 1
+#endif /* GL_AMD_vertex_shader_layer */
+
+#ifndef GL_AMD_vertex_shader_tessellator
+#define GL_AMD_vertex_shader_tessellator 1
+#define GL_SAMPLER_BUFFER_AMD             0x9001
+#define GL_INT_SAMPLER_BUFFER_AMD         0x9002
+#define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003
+#define GL_TESSELLATION_MODE_AMD          0x9004
+#define GL_TESSELLATION_FACTOR_AMD        0x9005
+#define GL_DISCRETE_AMD                   0x9006
+#define GL_CONTINUOUS_AMD                 0x9007
+typedef void (APIENTRYP PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor);
+typedef void (APIENTRYP PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTessellationFactorAMD (GLfloat factor);
+GLAPI void APIENTRY glTessellationModeAMD (GLenum mode);
+#endif
+#endif /* GL_AMD_vertex_shader_tessellator */
+
+#ifndef GL_AMD_vertex_shader_viewport_index
+#define GL_AMD_vertex_shader_viewport_index 1
+#endif /* GL_AMD_vertex_shader_viewport_index */
+
+#ifndef GL_APPLE_aux_depth_stencil
+#define GL_APPLE_aux_depth_stencil 1
+#define GL_AUX_DEPTH_STENCIL_APPLE        0x8A14
+#endif /* GL_APPLE_aux_depth_stencil */
+
+#ifndef GL_APPLE_client_storage
+#define GL_APPLE_client_storage 1
+#define GL_UNPACK_CLIENT_STORAGE_APPLE    0x85B2
+#endif /* GL_APPLE_client_storage */
+
+#ifndef GL_APPLE_element_array
+#define GL_APPLE_element_array 1
+#define GL_ELEMENT_ARRAY_APPLE            0x8A0C
+#define GL_ELEMENT_ARRAY_TYPE_APPLE       0x8A0D
+#define GL_ELEMENT_ARRAY_POINTER_APPLE    0x8A0E
+typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const void *pointer);
+typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count);
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glElementPointerAPPLE (GLenum type, const void *pointer);
+GLAPI void APIENTRY glDrawElementArrayAPPLE (GLenum mode, GLint first, GLsizei count);
+GLAPI void APIENTRY glDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
+GLAPI void APIENTRY glMultiDrawElementArrayAPPLE (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+GLAPI void APIENTRY glMultiDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
+#endif
+#endif /* GL_APPLE_element_array */
+
+#ifndef GL_APPLE_fence
+#define GL_APPLE_fence 1
+#define GL_DRAW_PIXELS_APPLE              0x8A0A
+#define GL_FENCE_APPLE                    0x8A0B
+typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences);
+typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences);
+typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC) (GLuint fence);
+typedef GLboolean (APIENTRYP PFNGLISFENCEAPPLEPROC) (GLuint fence);
+typedef GLboolean (APIENTRYP PFNGLTESTFENCEAPPLEPROC) (GLuint fence);
+typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC) (GLuint fence);
+typedef GLboolean (APIENTRYP PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name);
+typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenFencesAPPLE (GLsizei n, GLuint *fences);
+GLAPI void APIENTRY glDeleteFencesAPPLE (GLsizei n, const GLuint *fences);
+GLAPI void APIENTRY glSetFenceAPPLE (GLuint fence);
+GLAPI GLboolean APIENTRY glIsFenceAPPLE (GLuint fence);
+GLAPI GLboolean APIENTRY glTestFenceAPPLE (GLuint fence);
+GLAPI void APIENTRY glFinishFenceAPPLE (GLuint fence);
+GLAPI GLboolean APIENTRY glTestObjectAPPLE (GLenum object, GLuint name);
+GLAPI void APIENTRY glFinishObjectAPPLE (GLenum object, GLint name);
+#endif
+#endif /* GL_APPLE_fence */
+
+#ifndef GL_APPLE_float_pixels
+#define GL_APPLE_float_pixels 1
+#define GL_HALF_APPLE                     0x140B
+#define GL_RGBA_FLOAT32_APPLE             0x8814
+#define GL_RGB_FLOAT32_APPLE              0x8815
+#define GL_ALPHA_FLOAT32_APPLE            0x8816
+#define GL_INTENSITY_FLOAT32_APPLE        0x8817
+#define GL_LUMINANCE_FLOAT32_APPLE        0x8818
+#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE  0x8819
+#define GL_RGBA_FLOAT16_APPLE             0x881A
+#define GL_RGB_FLOAT16_APPLE              0x881B
+#define GL_ALPHA_FLOAT16_APPLE            0x881C
+#define GL_INTENSITY_FLOAT16_APPLE        0x881D
+#define GL_LUMINANCE_FLOAT16_APPLE        0x881E
+#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE  0x881F
+#define GL_COLOR_FLOAT_APPLE              0x8A0F
+#endif /* GL_APPLE_float_pixels */
+
+#ifndef GL_APPLE_flush_buffer_range
+#define GL_APPLE_flush_buffer_range 1
+#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12
+#define GL_BUFFER_FLUSHING_UNMAP_APPLE    0x8A13
+typedef void (APIENTRYP PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferParameteriAPPLE (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glFlushMappedBufferRangeAPPLE (GLenum target, GLintptr offset, GLsizeiptr size);
+#endif
+#endif /* GL_APPLE_flush_buffer_range */
+
+#ifndef GL_APPLE_object_purgeable
+#define GL_APPLE_object_purgeable 1
+#define GL_BUFFER_OBJECT_APPLE            0x85B3
+#define GL_RELEASED_APPLE                 0x8A19
+#define GL_VOLATILE_APPLE                 0x8A1A
+#define GL_RETAINED_APPLE                 0x8A1B
+#define GL_UNDEFINED_APPLE                0x8A1C
+#define GL_PURGEABLE_APPLE                0x8A1D
+typedef GLenum (APIENTRYP PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
+typedef GLenum (APIENTRYP PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
+typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLenum APIENTRY glObjectPurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
+GLAPI GLenum APIENTRY glObjectUnpurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
+GLAPI void APIENTRY glGetObjectParameterivAPPLE (GLenum objectType, GLuint name, GLenum pname, GLint *params);
+#endif
+#endif /* GL_APPLE_object_purgeable */
+
+#ifndef GL_APPLE_rgb_422
+#define GL_APPLE_rgb_422 1
+#define GL_RGB_422_APPLE                  0x8A1F
+#define GL_UNSIGNED_SHORT_8_8_APPLE       0x85BA
+#define GL_UNSIGNED_SHORT_8_8_REV_APPLE   0x85BB
+#define GL_RGB_RAW_422_APPLE              0x8A51
+#endif /* GL_APPLE_rgb_422 */
+
+#ifndef GL_APPLE_row_bytes
+#define GL_APPLE_row_bytes 1
+#define GL_PACK_ROW_BYTES_APPLE           0x8A15
+#define GL_UNPACK_ROW_BYTES_APPLE         0x8A16
+#endif /* GL_APPLE_row_bytes */
+
+#ifndef GL_APPLE_specular_vector
+#define GL_APPLE_specular_vector 1
+#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
+#endif /* GL_APPLE_specular_vector */
+
+#ifndef GL_APPLE_texture_range
+#define GL_APPLE_texture_range 1
+#define GL_TEXTURE_RANGE_LENGTH_APPLE     0x85B7
+#define GL_TEXTURE_RANGE_POINTER_APPLE    0x85B8
+#define GL_TEXTURE_STORAGE_HINT_APPLE     0x85BC
+#define GL_STORAGE_PRIVATE_APPLE          0x85BD
+#define GL_STORAGE_CACHED_APPLE           0x85BE
+#define GL_STORAGE_SHARED_APPLE           0x85BF
+typedef void (APIENTRYP PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, const void *pointer);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, void **params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTextureRangeAPPLE (GLenum target, GLsizei length, const void *pointer);
+GLAPI void APIENTRY glGetTexParameterPointervAPPLE (GLenum target, GLenum pname, void **params);
+#endif
+#endif /* GL_APPLE_texture_range */
+
+#ifndef GL_APPLE_transform_hint
+#define GL_APPLE_transform_hint 1
+#define GL_TRANSFORM_HINT_APPLE           0x85B1
+#endif /* GL_APPLE_transform_hint */
+
+#ifndef GL_APPLE_vertex_array_object
+#define GL_APPLE_vertex_array_object 1
+#define GL_VERTEX_ARRAY_BINDING_APPLE     0x85B5
+typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array);
+typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays);
+typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint *arrays);
+typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindVertexArrayAPPLE (GLuint array);
+GLAPI void APIENTRY glDeleteVertexArraysAPPLE (GLsizei n, const GLuint *arrays);
+GLAPI void APIENTRY glGenVertexArraysAPPLE (GLsizei n, GLuint *arrays);
+GLAPI GLboolean APIENTRY glIsVertexArrayAPPLE (GLuint array);
+#endif
+#endif /* GL_APPLE_vertex_array_object */
+
+#ifndef GL_APPLE_vertex_array_range
+#define GL_APPLE_vertex_array_range 1
+#define GL_VERTEX_ARRAY_RANGE_APPLE       0x851D
+#define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E
+#define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F
+#define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521
+#define GL_STORAGE_CLIENT_APPLE           0x85B4
+typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void *pointer);
+typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void *pointer);
+typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexArrayRangeAPPLE (GLsizei length, void *pointer);
+GLAPI void APIENTRY glFlushVertexArrayRangeAPPLE (GLsizei length, void *pointer);
+GLAPI void APIENTRY glVertexArrayParameteriAPPLE (GLenum pname, GLint param);
+#endif
+#endif /* GL_APPLE_vertex_array_range */
+
+#ifndef GL_APPLE_vertex_program_evaluators
+#define GL_APPLE_vertex_program_evaluators 1
+#define GL_VERTEX_ATTRIB_MAP1_APPLE       0x8A00
+#define GL_VERTEX_ATTRIB_MAP2_APPLE       0x8A01
+#define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE  0x8A02
+#define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03
+#define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04
+#define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05
+#define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE  0x8A06
+#define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07
+#define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08
+#define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09
+typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
+typedef GLboolean (APIENTRYP PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname);
+typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
+typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
+typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
+typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glEnableVertexAttribAPPLE (GLuint index, GLenum pname);
+GLAPI void APIENTRY glDisableVertexAttribAPPLE (GLuint index, GLenum pname);
+GLAPI GLboolean APIENTRY glIsVertexAttribEnabledAPPLE (GLuint index, GLenum pname);
+GLAPI void APIENTRY glMapVertexAttrib1dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
+GLAPI void APIENTRY glMapVertexAttrib1fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
+GLAPI void APIENTRY glMapVertexAttrib2dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
+GLAPI void APIENTRY glMapVertexAttrib2fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
+#endif
+#endif /* GL_APPLE_vertex_program_evaluators */
+
+#ifndef GL_APPLE_ycbcr_422
+#define GL_APPLE_ycbcr_422 1
+#define GL_YCBCR_422_APPLE                0x85B9
+#endif /* GL_APPLE_ycbcr_422 */
+
+#ifndef GL_ATI_draw_buffers
+#define GL_ATI_draw_buffers 1
+#define GL_MAX_DRAW_BUFFERS_ATI           0x8824
+#define GL_DRAW_BUFFER0_ATI               0x8825
+#define GL_DRAW_BUFFER1_ATI               0x8826
+#define GL_DRAW_BUFFER2_ATI               0x8827
+#define GL_DRAW_BUFFER3_ATI               0x8828
+#define GL_DRAW_BUFFER4_ATI               0x8829
+#define GL_DRAW_BUFFER5_ATI               0x882A
+#define GL_DRAW_BUFFER6_ATI               0x882B
+#define GL_DRAW_BUFFER7_ATI               0x882C
+#define GL_DRAW_BUFFER8_ATI               0x882D
+#define GL_DRAW_BUFFER9_ATI               0x882E
+#define GL_DRAW_BUFFER10_ATI              0x882F
+#define GL_DRAW_BUFFER11_ATI              0x8830
+#define GL_DRAW_BUFFER12_ATI              0x8831
+#define GL_DRAW_BUFFER13_ATI              0x8832
+#define GL_DRAW_BUFFER14_ATI              0x8833
+#define GL_DRAW_BUFFER15_ATI              0x8834
+typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawBuffersATI (GLsizei n, const GLenum *bufs);
+#endif
+#endif /* GL_ATI_draw_buffers */
+
+#ifndef GL_ATI_element_array
+#define GL_ATI_element_array 1
+#define GL_ELEMENT_ARRAY_ATI              0x8768
+#define GL_ELEMENT_ARRAY_TYPE_ATI         0x8769
+#define GL_ELEMENT_ARRAY_POINTER_ATI      0x876A
+typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC) (GLenum type, const void *pointer);
+typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count);
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glElementPointerATI (GLenum type, const void *pointer);
+GLAPI void APIENTRY glDrawElementArrayATI (GLenum mode, GLsizei count);
+GLAPI void APIENTRY glDrawRangeElementArrayATI (GLenum mode, GLuint start, GLuint end, GLsizei count);
+#endif
+#endif /* GL_ATI_element_array */
+
+#ifndef GL_ATI_envmap_bumpmap
+#define GL_ATI_envmap_bumpmap 1
+#define GL_BUMP_ROT_MATRIX_ATI            0x8775
+#define GL_BUMP_ROT_MATRIX_SIZE_ATI       0x8776
+#define GL_BUMP_NUM_TEX_UNITS_ATI         0x8777
+#define GL_BUMP_TEX_UNITS_ATI             0x8778
+#define GL_DUDV_ATI                       0x8779
+#define GL_DU8DV8_ATI                     0x877A
+#define GL_BUMP_ENVMAP_ATI                0x877B
+#define GL_BUMP_TARGET_ATI                0x877C
+typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param);
+typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param);
+typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexBumpParameterivATI (GLenum pname, const GLint *param);
+GLAPI void APIENTRY glTexBumpParameterfvATI (GLenum pname, const GLfloat *param);
+GLAPI void APIENTRY glGetTexBumpParameterivATI (GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetTexBumpParameterfvATI (GLenum pname, GLfloat *param);
+#endif
+#endif /* GL_ATI_envmap_bumpmap */
+
+#ifndef GL_ATI_fragment_shader
+#define GL_ATI_fragment_shader 1
+#define GL_FRAGMENT_SHADER_ATI            0x8920
+#define GL_REG_0_ATI                      0x8921
+#define GL_REG_1_ATI                      0x8922
+#define GL_REG_2_ATI                      0x8923
+#define GL_REG_3_ATI                      0x8924
+#define GL_REG_4_ATI                      0x8925
+#define GL_REG_5_ATI                      0x8926
+#define GL_REG_6_ATI                      0x8927
+#define GL_REG_7_ATI                      0x8928
+#define GL_REG_8_ATI                      0x8929
+#define GL_REG_9_ATI                      0x892A
+#define GL_REG_10_ATI                     0x892B
+#define GL_REG_11_ATI                     0x892C
+#define GL_REG_12_ATI                     0x892D
+#define GL_REG_13_ATI                     0x892E
+#define GL_REG_14_ATI                     0x892F
+#define GL_REG_15_ATI                     0x8930
+#define GL_REG_16_ATI                     0x8931
+#define GL_REG_17_ATI                     0x8932
+#define GL_REG_18_ATI                     0x8933
+#define GL_REG_19_ATI                     0x8934
+#define GL_REG_20_ATI                     0x8935
+#define GL_REG_21_ATI                     0x8936
+#define GL_REG_22_ATI                     0x8937
+#define GL_REG_23_ATI                     0x8938
+#define GL_REG_24_ATI                     0x8939
+#define GL_REG_25_ATI                     0x893A
+#define GL_REG_26_ATI                     0x893B
+#define GL_REG_27_ATI                     0x893C
+#define GL_REG_28_ATI                     0x893D
+#define GL_REG_29_ATI                     0x893E
+#define GL_REG_30_ATI                     0x893F
+#define GL_REG_31_ATI                     0x8940
+#define GL_CON_0_ATI                      0x8941
+#define GL_CON_1_ATI                      0x8942
+#define GL_CON_2_ATI                      0x8943
+#define GL_CON_3_ATI                      0x8944
+#define GL_CON_4_ATI                      0x8945
+#define GL_CON_5_ATI                      0x8946
+#define GL_CON_6_ATI                      0x8947
+#define GL_CON_7_ATI                      0x8948
+#define GL_CON_8_ATI                      0x8949
+#define GL_CON_9_ATI                      0x894A
+#define GL_CON_10_ATI                     0x894B
+#define GL_CON_11_ATI                     0x894C
+#define GL_CON_12_ATI                     0x894D
+#define GL_CON_13_ATI                     0x894E
+#define GL_CON_14_ATI                     0x894F
+#define GL_CON_15_ATI                     0x8950
+#define GL_CON_16_ATI                     0x8951
+#define GL_CON_17_ATI                     0x8952
+#define GL_CON_18_ATI                     0x8953
+#define GL_CON_19_ATI                     0x8954
+#define GL_CON_20_ATI                     0x8955
+#define GL_CON_21_ATI                     0x8956
+#define GL_CON_22_ATI                     0x8957
+#define GL_CON_23_ATI                     0x8958
+#define GL_CON_24_ATI                     0x8959
+#define GL_CON_25_ATI                     0x895A
+#define GL_CON_26_ATI                     0x895B
+#define GL_CON_27_ATI                     0x895C
+#define GL_CON_28_ATI                     0x895D
+#define GL_CON_29_ATI                     0x895E
+#define GL_CON_30_ATI                     0x895F
+#define GL_CON_31_ATI                     0x8960
+#define GL_MOV_ATI                        0x8961
+#define GL_ADD_ATI                        0x8963
+#define GL_MUL_ATI                        0x8964
+#define GL_SUB_ATI                        0x8965
+#define GL_DOT3_ATI                       0x8966
+#define GL_DOT4_ATI                       0x8967
+#define GL_MAD_ATI                        0x8968
+#define GL_LERP_ATI                       0x8969
+#define GL_CND_ATI                        0x896A
+#define GL_CND0_ATI                       0x896B
+#define GL_DOT2_ADD_ATI                   0x896C
+#define GL_SECONDARY_INTERPOLATOR_ATI     0x896D
+#define GL_NUM_FRAGMENT_REGISTERS_ATI     0x896E
+#define GL_NUM_FRAGMENT_CONSTANTS_ATI     0x896F
+#define GL_NUM_PASSES_ATI                 0x8970
+#define GL_NUM_INSTRUCTIONS_PER_PASS_ATI  0x8971
+#define GL_NUM_INSTRUCTIONS_TOTAL_ATI     0x8972
+#define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973
+#define GL_NUM_LOOPBACK_COMPONENTS_ATI    0x8974
+#define GL_COLOR_ALPHA_PAIRING_ATI        0x8975
+#define GL_SWIZZLE_STR_ATI                0x8976
+#define GL_SWIZZLE_STQ_ATI                0x8977
+#define GL_SWIZZLE_STR_DR_ATI             0x8978
+#define GL_SWIZZLE_STQ_DQ_ATI             0x8979
+#define GL_SWIZZLE_STRQ_ATI               0x897A
+#define GL_SWIZZLE_STRQ_DQ_ATI            0x897B
+#define GL_RED_BIT_ATI                    0x00000001
+#define GL_GREEN_BIT_ATI                  0x00000002
+#define GL_BLUE_BIT_ATI                   0x00000004
+#define GL_2X_BIT_ATI                     0x00000001
+#define GL_4X_BIT_ATI                     0x00000002
+#define GL_8X_BIT_ATI                     0x00000004
+#define GL_HALF_BIT_ATI                   0x00000008
+#define GL_QUARTER_BIT_ATI                0x00000010
+#define GL_EIGHTH_BIT_ATI                 0x00000020
+#define GL_SATURATE_BIT_ATI               0x00000040
+#define GL_COMP_BIT_ATI                   0x00000002
+#define GL_NEGATE_BIT_ATI                 0x00000004
+#define GL_BIAS_BIT_ATI                   0x00000008
+typedef GLuint (APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range);
+typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC) (void);
+typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC) (void);
+typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle);
+typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle);
+typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
+typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
+typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
+typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
+typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
+typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
+typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint APIENTRY glGenFragmentShadersATI (GLuint range);
+GLAPI void APIENTRY glBindFragmentShaderATI (GLuint id);
+GLAPI void APIENTRY glDeleteFragmentShaderATI (GLuint id);
+GLAPI void APIENTRY glBeginFragmentShaderATI (void);
+GLAPI void APIENTRY glEndFragmentShaderATI (void);
+GLAPI void APIENTRY glPassTexCoordATI (GLuint dst, GLuint coord, GLenum swizzle);
+GLAPI void APIENTRY glSampleMapATI (GLuint dst, GLuint interp, GLenum swizzle);
+GLAPI void APIENTRY glColorFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
+GLAPI void APIENTRY glColorFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
+GLAPI void APIENTRY glColorFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
+GLAPI void APIENTRY glAlphaFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
+GLAPI void APIENTRY glAlphaFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
+GLAPI void APIENTRY glAlphaFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
+GLAPI void APIENTRY glSetFragmentShaderConstantATI (GLuint dst, const GLfloat *value);
+#endif
+#endif /* GL_ATI_fragment_shader */
+
+#ifndef GL_ATI_map_object_buffer
+#define GL_ATI_map_object_buffer 1
+typedef void *(APIENTRYP PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void *APIENTRY glMapObjectBufferATI (GLuint buffer);
+GLAPI void APIENTRY glUnmapObjectBufferATI (GLuint buffer);
+#endif
+#endif /* GL_ATI_map_object_buffer */
+
+#ifndef GL_ATI_meminfo
+#define GL_ATI_meminfo 1
+#define GL_VBO_FREE_MEMORY_ATI            0x87FB
+#define GL_TEXTURE_FREE_MEMORY_ATI        0x87FC
+#define GL_RENDERBUFFER_FREE_MEMORY_ATI   0x87FD
+#endif /* GL_ATI_meminfo */
+
+#ifndef GL_ATI_pixel_format_float
+#define GL_ATI_pixel_format_float 1
+#define GL_RGBA_FLOAT_MODE_ATI            0x8820
+#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
+#endif /* GL_ATI_pixel_format_float */
+
+#ifndef GL_ATI_pn_triangles
+#define GL_ATI_pn_triangles 1
+#define GL_PN_TRIANGLES_ATI               0x87F0
+#define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1
+#define GL_PN_TRIANGLES_POINT_MODE_ATI    0x87F2
+#define GL_PN_TRIANGLES_NORMAL_MODE_ATI   0x87F3
+#define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4
+#define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5
+#define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6
+#define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7
+#define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8
+typedef void (APIENTRYP PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPNTrianglesiATI (GLenum pname, GLint param);
+GLAPI void APIENTRY glPNTrianglesfATI (GLenum pname, GLfloat param);
+#endif
+#endif /* GL_ATI_pn_triangles */
+
+#ifndef GL_ATI_separate_stencil
+#define GL_ATI_separate_stencil 1
+#define GL_STENCIL_BACK_FUNC_ATI          0x8800
+#define GL_STENCIL_BACK_FAIL_ATI          0x8801
+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802
+#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803
+typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glStencilOpSeparateATI (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+GLAPI void APIENTRY glStencilFuncSeparateATI (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
+#endif
+#endif /* GL_ATI_separate_stencil */
+
+#ifndef GL_ATI_text_fragment_shader
+#define GL_ATI_text_fragment_shader 1
+#define GL_TEXT_FRAGMENT_SHADER_ATI       0x8200
+#endif /* GL_ATI_text_fragment_shader */
+
+#ifndef GL_ATI_texture_env_combine3
+#define GL_ATI_texture_env_combine3 1
+#define GL_MODULATE_ADD_ATI               0x8744
+#define GL_MODULATE_SIGNED_ADD_ATI        0x8745
+#define GL_MODULATE_SUBTRACT_ATI          0x8746
+#endif /* GL_ATI_texture_env_combine3 */
+
+#ifndef GL_ATI_texture_float
+#define GL_ATI_texture_float 1
+#define GL_RGBA_FLOAT32_ATI               0x8814
+#define GL_RGB_FLOAT32_ATI                0x8815
+#define GL_ALPHA_FLOAT32_ATI              0x8816
+#define GL_INTENSITY_FLOAT32_ATI          0x8817
+#define GL_LUMINANCE_FLOAT32_ATI          0x8818
+#define GL_LUMINANCE_ALPHA_FLOAT32_ATI    0x8819
+#define GL_RGBA_FLOAT16_ATI               0x881A
+#define GL_RGB_FLOAT16_ATI                0x881B
+#define GL_ALPHA_FLOAT16_ATI              0x881C
+#define GL_INTENSITY_FLOAT16_ATI          0x881D
+#define GL_LUMINANCE_FLOAT16_ATI          0x881E
+#define GL_LUMINANCE_ALPHA_FLOAT16_ATI    0x881F
+#endif /* GL_ATI_texture_float */
+
+#ifndef GL_ATI_texture_mirror_once
+#define GL_ATI_texture_mirror_once 1
+#define GL_MIRROR_CLAMP_ATI               0x8742
+#define GL_MIRROR_CLAMP_TO_EDGE_ATI       0x8743
+#endif /* GL_ATI_texture_mirror_once */
+
+#ifndef GL_ATI_vertex_array_object
+#define GL_ATI_vertex_array_object 1
+#define GL_STATIC_ATI                     0x8760
+#define GL_DYNAMIC_ATI                    0x8761
+#define GL_PRESERVE_ATI                   0x8762
+#define GL_DISCARD_ATI                    0x8763
+#define GL_OBJECT_BUFFER_SIZE_ATI         0x8764
+#define GL_OBJECT_BUFFER_USAGE_ATI        0x8765
+#define GL_ARRAY_OBJECT_BUFFER_ATI        0x8766
+#define GL_ARRAY_OBJECT_OFFSET_ATI        0x8767
+typedef GLuint (APIENTRYP PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const void *pointer, GLenum usage);
+typedef GLboolean (APIENTRYP PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const void *pointer, GLenum preserve);
+typedef void (APIENTRYP PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
+typedef void (APIENTRYP PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
+typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint APIENTRY glNewObjectBufferATI (GLsizei size, const void *pointer, GLenum usage);
+GLAPI GLboolean APIENTRY glIsObjectBufferATI (GLuint buffer);
+GLAPI void APIENTRY glUpdateObjectBufferATI (GLuint buffer, GLuint offset, GLsizei size, const void *pointer, GLenum preserve);
+GLAPI void APIENTRY glGetObjectBufferfvATI (GLuint buffer, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetObjectBufferivATI (GLuint buffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glFreeObjectBufferATI (GLuint buffer);
+GLAPI void APIENTRY glArrayObjectATI (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
+GLAPI void APIENTRY glGetArrayObjectfvATI (GLenum array, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetArrayObjectivATI (GLenum array, GLenum pname, GLint *params);
+GLAPI void APIENTRY glVariantArrayObjectATI (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
+GLAPI void APIENTRY glGetVariantArrayObjectfvATI (GLuint id, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVariantArrayObjectivATI (GLuint id, GLenum pname, GLint *params);
+#endif
+#endif /* GL_ATI_vertex_array_object */
+
+#ifndef GL_ATI_vertex_attrib_array_object
+#define GL_ATI_vertex_attrib_array_object 1
+typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribArrayObjectATI (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
+GLAPI void APIENTRY glGetVertexAttribArrayObjectfvATI (GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVertexAttribArrayObjectivATI (GLuint index, GLenum pname, GLint *params);
+#endif
+#endif /* GL_ATI_vertex_attrib_array_object */
+
+#ifndef GL_ATI_vertex_streams
+#define GL_ATI_vertex_streams 1
+#define GL_MAX_VERTEX_STREAMS_ATI         0x876B
+#define GL_VERTEX_STREAM0_ATI             0x876C
+#define GL_VERTEX_STREAM1_ATI             0x876D
+#define GL_VERTEX_STREAM2_ATI             0x876E
+#define GL_VERTEX_STREAM3_ATI             0x876F
+#define GL_VERTEX_STREAM4_ATI             0x8770
+#define GL_VERTEX_STREAM5_ATI             0x8771
+#define GL_VERTEX_STREAM6_ATI             0x8772
+#define GL_VERTEX_STREAM7_ATI             0x8773
+#define GL_VERTEX_SOURCE_ATI              0x8774
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords);
+typedef void (APIENTRYP PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream);
+typedef void (APIENTRYP PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexStream1sATI (GLenum stream, GLshort x);
+GLAPI void APIENTRY glVertexStream1svATI (GLenum stream, const GLshort *coords);
+GLAPI void APIENTRY glVertexStream1iATI (GLenum stream, GLint x);
+GLAPI void APIENTRY glVertexStream1ivATI (GLenum stream, const GLint *coords);
+GLAPI void APIENTRY glVertexStream1fATI (GLenum stream, GLfloat x);
+GLAPI void APIENTRY glVertexStream1fvATI (GLenum stream, const GLfloat *coords);
+GLAPI void APIENTRY glVertexStream1dATI (GLenum stream, GLdouble x);
+GLAPI void APIENTRY glVertexStream1dvATI (GLenum stream, const GLdouble *coords);
+GLAPI void APIENTRY glVertexStream2sATI (GLenum stream, GLshort x, GLshort y);
+GLAPI void APIENTRY glVertexStream2svATI (GLenum stream, const GLshort *coords);
+GLAPI void APIENTRY glVertexStream2iATI (GLenum stream, GLint x, GLint y);
+GLAPI void APIENTRY glVertexStream2ivATI (GLenum stream, const GLint *coords);
+GLAPI void APIENTRY glVertexStream2fATI (GLenum stream, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glVertexStream2fvATI (GLenum stream, const GLfloat *coords);
+GLAPI void APIENTRY glVertexStream2dATI (GLenum stream, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexStream2dvATI (GLenum stream, const GLdouble *coords);
+GLAPI void APIENTRY glVertexStream3sATI (GLenum stream, GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glVertexStream3svATI (GLenum stream, const GLshort *coords);
+GLAPI void APIENTRY glVertexStream3iATI (GLenum stream, GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glVertexStream3ivATI (GLenum stream, const GLint *coords);
+GLAPI void APIENTRY glVertexStream3fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glVertexStream3fvATI (GLenum stream, const GLfloat *coords);
+GLAPI void APIENTRY glVertexStream3dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexStream3dvATI (GLenum stream, const GLdouble *coords);
+GLAPI void APIENTRY glVertexStream4sATI (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glVertexStream4svATI (GLenum stream, const GLshort *coords);
+GLAPI void APIENTRY glVertexStream4iATI (GLenum stream, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glVertexStream4ivATI (GLenum stream, const GLint *coords);
+GLAPI void APIENTRY glVertexStream4fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glVertexStream4fvATI (GLenum stream, const GLfloat *coords);
+GLAPI void APIENTRY glVertexStream4dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexStream4dvATI (GLenum stream, const GLdouble *coords);
+GLAPI void APIENTRY glNormalStream3bATI (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz);
+GLAPI void APIENTRY glNormalStream3bvATI (GLenum stream, const GLbyte *coords);
+GLAPI void APIENTRY glNormalStream3sATI (GLenum stream, GLshort nx, GLshort ny, GLshort nz);
+GLAPI void APIENTRY glNormalStream3svATI (GLenum stream, const GLshort *coords);
+GLAPI void APIENTRY glNormalStream3iATI (GLenum stream, GLint nx, GLint ny, GLint nz);
+GLAPI void APIENTRY glNormalStream3ivATI (GLenum stream, const GLint *coords);
+GLAPI void APIENTRY glNormalStream3fATI (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz);
+GLAPI void APIENTRY glNormalStream3fvATI (GLenum stream, const GLfloat *coords);
+GLAPI void APIENTRY glNormalStream3dATI (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz);
+GLAPI void APIENTRY glNormalStream3dvATI (GLenum stream, const GLdouble *coords);
+GLAPI void APIENTRY glClientActiveVertexStreamATI (GLenum stream);
+GLAPI void APIENTRY glVertexBlendEnviATI (GLenum pname, GLint param);
+GLAPI void APIENTRY glVertexBlendEnvfATI (GLenum pname, GLfloat param);
+#endif
+#endif /* GL_ATI_vertex_streams */
+
+#ifndef GL_EXT_422_pixels
+#define GL_EXT_422_pixels 1
+#define GL_422_EXT                        0x80CC
+#define GL_422_REV_EXT                    0x80CD
+#define GL_422_AVERAGE_EXT                0x80CE
+#define GL_422_REV_AVERAGE_EXT            0x80CF
+#endif /* GL_EXT_422_pixels */
+
+#ifndef GL_EXT_abgr
+#define GL_EXT_abgr 1
+#define GL_ABGR_EXT                       0x8000
+#endif /* GL_EXT_abgr */
+
+#ifndef GL_EXT_bgra
+#define GL_EXT_bgra 1
+#define GL_BGR_EXT                        0x80E0
+#define GL_BGRA_EXT                       0x80E1
+#endif /* GL_EXT_bgra */
+
+#ifndef GL_EXT_bindable_uniform
+#define GL_EXT_bindable_uniform 1
+#define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2
+#define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3
+#define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4
+#define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT  0x8DED
+#define GL_UNIFORM_BUFFER_EXT             0x8DEE
+#define GL_UNIFORM_BUFFER_BINDING_EXT     0x8DEF
+typedef void (APIENTRYP PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer);
+typedef GLint (APIENTRYP PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location);
+typedef GLintptr (APIENTRYP PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUniformBufferEXT (GLuint program, GLint location, GLuint buffer);
+GLAPI GLint APIENTRY glGetUniformBufferSizeEXT (GLuint program, GLint location);
+GLAPI GLintptr APIENTRY glGetUniformOffsetEXT (GLuint program, GLint location);
+#endif
+#endif /* GL_EXT_bindable_uniform */
+
+#ifndef GL_EXT_blend_color
+#define GL_EXT_blend_color 1
+#define GL_CONSTANT_COLOR_EXT             0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR_EXT   0x8002
+#define GL_CONSTANT_ALPHA_EXT             0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT   0x8004
+#define GL_BLEND_COLOR_EXT                0x8005
+typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendColorEXT (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+#endif
+#endif /* GL_EXT_blend_color */
+
+#ifndef GL_EXT_blend_equation_separate
+#define GL_EXT_blend_equation_separate 1
+#define GL_BLEND_EQUATION_RGB_EXT         0x8009
+#define GL_BLEND_EQUATION_ALPHA_EXT       0x883D
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendEquationSeparateEXT (GLenum modeRGB, GLenum modeAlpha);
+#endif
+#endif /* GL_EXT_blend_equation_separate */
+
+#ifndef GL_EXT_blend_func_separate
+#define GL_EXT_blend_func_separate 1
+#define GL_BLEND_DST_RGB_EXT              0x80C8
+#define GL_BLEND_SRC_RGB_EXT              0x80C9
+#define GL_BLEND_DST_ALPHA_EXT            0x80CA
+#define GL_BLEND_SRC_ALPHA_EXT            0x80CB
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendFuncSeparateEXT (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+#endif
+#endif /* GL_EXT_blend_func_separate */
+
+#ifndef GL_EXT_blend_logic_op
+#define GL_EXT_blend_logic_op 1
+#endif /* GL_EXT_blend_logic_op */
+
+#ifndef GL_EXT_blend_minmax
+#define GL_EXT_blend_minmax 1
+#define GL_MIN_EXT                        0x8007
+#define GL_MAX_EXT                        0x8008
+#define GL_FUNC_ADD_EXT                   0x8006
+#define GL_BLEND_EQUATION_EXT             0x8009
+typedef void (APIENTRYP PFNGLBLENDEQUATIONEXTPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendEquationEXT (GLenum mode);
+#endif
+#endif /* GL_EXT_blend_minmax */
+
+#ifndef GL_EXT_blend_subtract
+#define GL_EXT_blend_subtract 1
+#define GL_FUNC_SUBTRACT_EXT              0x800A
+#define GL_FUNC_REVERSE_SUBTRACT_EXT      0x800B
+#endif /* GL_EXT_blend_subtract */
+
+#ifndef GL_EXT_clip_volume_hint
+#define GL_EXT_clip_volume_hint 1
+#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT  0x80F0
+#endif /* GL_EXT_clip_volume_hint */
+
+#ifndef GL_EXT_cmyka
+#define GL_EXT_cmyka 1
+#define GL_CMYK_EXT                       0x800C
+#define GL_CMYKA_EXT                      0x800D
+#define GL_PACK_CMYK_HINT_EXT             0x800E
+#define GL_UNPACK_CMYK_HINT_EXT           0x800F
+#endif /* GL_EXT_cmyka */
+
+#ifndef GL_EXT_color_subtable
+#define GL_EXT_color_subtable 1
+typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorSubTableEXT (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glCopyColorSubTableEXT (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+#endif
+#endif /* GL_EXT_color_subtable */
+
+#ifndef GL_EXT_compiled_vertex_array
+#define GL_EXT_compiled_vertex_array 1
+#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT   0x81A8
+#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT   0x81A9
+typedef void (APIENTRYP PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count);
+typedef void (APIENTRYP PFNGLUNLOCKARRAYSEXTPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glLockArraysEXT (GLint first, GLsizei count);
+GLAPI void APIENTRY glUnlockArraysEXT (void);
+#endif
+#endif /* GL_EXT_compiled_vertex_array */
+
+#ifndef GL_EXT_convolution
+#define GL_EXT_convolution 1
+#define GL_CONVOLUTION_1D_EXT             0x8010
+#define GL_CONVOLUTION_2D_EXT             0x8011
+#define GL_SEPARABLE_2D_EXT               0x8012
+#define GL_CONVOLUTION_BORDER_MODE_EXT    0x8013
+#define GL_CONVOLUTION_FILTER_SCALE_EXT   0x8014
+#define GL_CONVOLUTION_FILTER_BIAS_EXT    0x8015
+#define GL_REDUCE_EXT                     0x8016
+#define GL_CONVOLUTION_FORMAT_EXT         0x8017
+#define GL_CONVOLUTION_WIDTH_EXT          0x8018
+#define GL_CONVOLUTION_HEIGHT_EXT         0x8019
+#define GL_MAX_CONVOLUTION_WIDTH_EXT      0x801A
+#define GL_MAX_CONVOLUTION_HEIGHT_EXT     0x801B
+#define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C
+#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D
+#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E
+#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F
+#define GL_POST_CONVOLUTION_RED_BIAS_EXT  0x8020
+#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021
+#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022
+#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023
+typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
+typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void *image);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
+typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
+GLAPI void APIENTRY glConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
+GLAPI void APIENTRY glConvolutionParameterfEXT (GLenum target, GLenum pname, GLfloat params);
+GLAPI void APIENTRY glConvolutionParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glConvolutionParameteriEXT (GLenum target, GLenum pname, GLint params);
+GLAPI void APIENTRY glConvolutionParameterivEXT (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCopyConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetConvolutionFilterEXT (GLenum target, GLenum format, GLenum type, void *image);
+GLAPI void APIENTRY glGetConvolutionParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetConvolutionParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSeparableFilterEXT (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
+GLAPI void APIENTRY glSeparableFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
+#endif
+#endif /* GL_EXT_convolution */
+
+#ifndef GL_EXT_coordinate_frame
+#define GL_EXT_coordinate_frame 1
+#define GL_TANGENT_ARRAY_EXT              0x8439
+#define GL_BINORMAL_ARRAY_EXT             0x843A
+#define GL_CURRENT_TANGENT_EXT            0x843B
+#define GL_CURRENT_BINORMAL_EXT           0x843C
+#define GL_TANGENT_ARRAY_TYPE_EXT         0x843E
+#define GL_TANGENT_ARRAY_STRIDE_EXT       0x843F
+#define GL_BINORMAL_ARRAY_TYPE_EXT        0x8440
+#define GL_BINORMAL_ARRAY_STRIDE_EXT      0x8441
+#define GL_TANGENT_ARRAY_POINTER_EXT      0x8442
+#define GL_BINORMAL_ARRAY_POINTER_EXT     0x8443
+#define GL_MAP1_TANGENT_EXT               0x8444
+#define GL_MAP2_TANGENT_EXT               0x8445
+#define GL_MAP1_BINORMAL_EXT              0x8446
+#define GL_MAP2_BINORMAL_EXT              0x8447
+typedef void (APIENTRYP PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz);
+typedef void (APIENTRYP PFNGLTANGENT3BVEXTPROC) (const GLbyte *v);
+typedef void (APIENTRYP PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz);
+typedef void (APIENTRYP PFNGLTANGENT3DVEXTPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz);
+typedef void (APIENTRYP PFNGLTANGENT3FVEXTPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz);
+typedef void (APIENTRYP PFNGLTANGENT3IVEXTPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz);
+typedef void (APIENTRYP PFNGLTANGENT3SVEXTPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz);
+typedef void (APIENTRYP PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v);
+typedef void (APIENTRYP PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz);
+typedef void (APIENTRYP PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz);
+typedef void (APIENTRYP PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz);
+typedef void (APIENTRYP PFNGLBINORMAL3IVEXTPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz);
+typedef void (APIENTRYP PFNGLBINORMAL3SVEXTPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTangent3bEXT (GLbyte tx, GLbyte ty, GLbyte tz);
+GLAPI void APIENTRY glTangent3bvEXT (const GLbyte *v);
+GLAPI void APIENTRY glTangent3dEXT (GLdouble tx, GLdouble ty, GLdouble tz);
+GLAPI void APIENTRY glTangent3dvEXT (const GLdouble *v);
+GLAPI void APIENTRY glTangent3fEXT (GLfloat tx, GLfloat ty, GLfloat tz);
+GLAPI void APIENTRY glTangent3fvEXT (const GLfloat *v);
+GLAPI void APIENTRY glTangent3iEXT (GLint tx, GLint ty, GLint tz);
+GLAPI void APIENTRY glTangent3ivEXT (const GLint *v);
+GLAPI void APIENTRY glTangent3sEXT (GLshort tx, GLshort ty, GLshort tz);
+GLAPI void APIENTRY glTangent3svEXT (const GLshort *v);
+GLAPI void APIENTRY glBinormal3bEXT (GLbyte bx, GLbyte by, GLbyte bz);
+GLAPI void APIENTRY glBinormal3bvEXT (const GLbyte *v);
+GLAPI void APIENTRY glBinormal3dEXT (GLdouble bx, GLdouble by, GLdouble bz);
+GLAPI void APIENTRY glBinormal3dvEXT (const GLdouble *v);
+GLAPI void APIENTRY glBinormal3fEXT (GLfloat bx, GLfloat by, GLfloat bz);
+GLAPI void APIENTRY glBinormal3fvEXT (const GLfloat *v);
+GLAPI void APIENTRY glBinormal3iEXT (GLint bx, GLint by, GLint bz);
+GLAPI void APIENTRY glBinormal3ivEXT (const GLint *v);
+GLAPI void APIENTRY glBinormal3sEXT (GLshort bx, GLshort by, GLshort bz);
+GLAPI void APIENTRY glBinormal3svEXT (const GLshort *v);
+GLAPI void APIENTRY glTangentPointerEXT (GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glBinormalPointerEXT (GLenum type, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_EXT_coordinate_frame */
+
+#ifndef GL_EXT_copy_texture
+#define GL_EXT_copy_texture 1
+typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCopyTexImage1DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+GLAPI void APIENTRY glCopyTexImage2DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GLAPI void APIENTRY glCopyTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glCopyTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_EXT_copy_texture */
+
+#ifndef GL_EXT_cull_vertex
+#define GL_EXT_cull_vertex 1
+#define GL_CULL_VERTEX_EXT                0x81AA
+#define GL_CULL_VERTEX_EYE_POSITION_EXT   0x81AB
+#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC
+typedef void (APIENTRYP PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCullParameterdvEXT (GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glCullParameterfvEXT (GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_EXT_cull_vertex */
+
+#ifndef GL_EXT_debug_label
+#define GL_EXT_debug_label 1
+#define GL_PROGRAM_PIPELINE_OBJECT_EXT    0x8A4F
+#define GL_PROGRAM_OBJECT_EXT             0x8B40
+#define GL_SHADER_OBJECT_EXT              0x8B48
+#define GL_BUFFER_OBJECT_EXT              0x9151
+#define GL_QUERY_OBJECT_EXT               0x9153
+#define GL_VERTEX_ARRAY_OBJECT_EXT        0x9154
+typedef void (APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
+typedef void (APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
+GLAPI void APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
+#endif
+#endif /* GL_EXT_debug_label */
+
+#ifndef GL_EXT_debug_marker
+#define GL_EXT_debug_marker 1
+typedef void (APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
+typedef void (APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
+typedef void (APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
+GLAPI void APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
+GLAPI void APIENTRY glPopGroupMarkerEXT (void);
+#endif
+#endif /* GL_EXT_debug_marker */
+
+#ifndef GL_EXT_depth_bounds_test
+#define GL_EXT_depth_bounds_test 1
+#define GL_DEPTH_BOUNDS_TEST_EXT          0x8890
+#define GL_DEPTH_BOUNDS_EXT               0x8891
+typedef void (APIENTRYP PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDepthBoundsEXT (GLclampd zmin, GLclampd zmax);
+#endif
+#endif /* GL_EXT_depth_bounds_test */
+
+#ifndef GL_EXT_direct_state_access
+#define GL_EXT_direct_state_access 1
+#define GL_PROGRAM_MATRIX_EXT             0x8E2D
+#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT   0x8E2E
+#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F
+typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param);
+typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params);
+typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble *data);
+typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, void **data);
+typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
+typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data);
+typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, void *img);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, void *img);
+typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access);
+typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, void **params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint *params);
+typedef void (APIENTRYP PFNGLENABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, void **params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, void *string);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target);
+typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face);
+typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYINDEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYNORMALOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array);
+typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERVEXTPROC) (GLuint vaobj, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERVEXTPROC) (GLuint vaobj, GLenum pname, void **param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, void **param);
+typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
+typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTEXTPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC) (GLuint vaobj, GLuint index, GLuint divisor);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMatrixLoadfEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixLoaddEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glMatrixMultfEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMultdEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glMatrixLoadIdentityEXT (GLenum mode);
+GLAPI void APIENTRY glMatrixRotatefEXT (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glMatrixRotatedEXT (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glMatrixScalefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glMatrixScaledEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glMatrixTranslatefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glMatrixTranslatedEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glMatrixFrustumEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLAPI void APIENTRY glMatrixOrthoEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLAPI void APIENTRY glMatrixPopEXT (GLenum mode);
+GLAPI void APIENTRY glMatrixPushEXT (GLenum mode);
+GLAPI void APIENTRY glClientAttribDefaultEXT (GLbitfield mask);
+GLAPI void APIENTRY glPushClientAttribDefaultEXT (GLbitfield mask);
+GLAPI void APIENTRY glTextureParameterfEXT (GLuint texture, GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glTextureParameteriEXT (GLuint texture, GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+GLAPI void APIENTRY glCopyTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GLAPI void APIENTRY glCopyTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetTextureImageEXT (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+GLAPI void APIENTRY glGetTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTextureLevelParameterfvEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTextureLevelParameterivEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params);
+GLAPI void APIENTRY glTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glBindMultiTextureEXT (GLenum texunit, GLenum target, GLuint texture);
+GLAPI void APIENTRY glMultiTexCoordPointerEXT (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glMultiTexEnvfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glMultiTexEnviEXT (GLenum texunit, GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMultiTexGendEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble param);
+GLAPI void APIENTRY glMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params);
+GLAPI void APIENTRY glMultiTexGenfEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glMultiTexGeniEXT (GLenum texunit, GLenum coord, GLenum pname, GLint param);
+GLAPI void APIENTRY glMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glGetMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, GLint *params);
+GLAPI void APIENTRY glMultiTexParameteriEXT (GLenum texunit, GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMultiTexParameterfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+GLAPI void APIENTRY glCopyMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GLAPI void APIENTRY glCopyMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetMultiTexImageEXT (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+GLAPI void APIENTRY glGetMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMultiTexLevelParameterfvEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexLevelParameterivEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params);
+GLAPI void APIENTRY glMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glEnableClientStateIndexedEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glDisableClientStateIndexedEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glGetFloatIndexedvEXT (GLenum target, GLuint index, GLfloat *data);
+GLAPI void APIENTRY glGetDoubleIndexedvEXT (GLenum target, GLuint index, GLdouble *data);
+GLAPI void APIENTRY glGetPointerIndexedvEXT (GLenum target, GLuint index, void **data);
+GLAPI void APIENTRY glEnableIndexedEXT (GLenum target, GLuint index);
+GLAPI void APIENTRY glDisableIndexedEXT (GLenum target, GLuint index);
+GLAPI GLboolean APIENTRY glIsEnabledIndexedEXT (GLenum target, GLuint index);
+GLAPI void APIENTRY glGetIntegerIndexedvEXT (GLenum target, GLuint index, GLint *data);
+GLAPI void APIENTRY glGetBooleanIndexedvEXT (GLenum target, GLuint index, GLboolean *data);
+GLAPI void APIENTRY glCompressedTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glGetCompressedTextureImageEXT (GLuint texture, GLenum target, GLint lod, void *img);
+GLAPI void APIENTRY glCompressedMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glGetCompressedMultiTexImageEXT (GLenum texunit, GLenum target, GLint lod, void *img);
+GLAPI void APIENTRY glMatrixLoadTransposefEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixLoadTransposedEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glMatrixMultTransposefEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMultTransposedEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glNamedBufferDataEXT (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
+GLAPI void APIENTRY glNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+GLAPI void *APIENTRY glMapNamedBufferEXT (GLuint buffer, GLenum access);
+GLAPI GLboolean APIENTRY glUnmapNamedBufferEXT (GLuint buffer);
+GLAPI void APIENTRY glGetNamedBufferParameterivEXT (GLuint buffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetNamedBufferPointervEXT (GLuint buffer, GLenum pname, void **params);
+GLAPI void APIENTRY glGetNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
+GLAPI void APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0);
+GLAPI void APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint v0);
+GLAPI void APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glTextureBufferEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glMultiTexBufferEXT (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0);
+GLAPI void APIENTRY glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glNamedProgramLocalParameters4fvEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4iEXT (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4ivEXT (GLuint program, GLenum target, GLuint index, const GLint *params);
+GLAPI void APIENTRY glNamedProgramLocalParametersI4ivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4uiEXT (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4uivEXT (GLuint program, GLenum target, GLuint index, const GLuint *params);
+GLAPI void APIENTRY glNamedProgramLocalParametersI4uivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterIivEXT (GLuint program, GLenum target, GLuint index, GLint *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterIuivEXT (GLuint program, GLenum target, GLuint index, GLuint *params);
+GLAPI void APIENTRY glEnableClientStateiEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glDisableClientStateiEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glGetFloati_vEXT (GLenum pname, GLuint index, GLfloat *params);
+GLAPI void APIENTRY glGetDoublei_vEXT (GLenum pname, GLuint index, GLdouble *params);
+GLAPI void APIENTRY glGetPointeri_vEXT (GLenum pname, GLuint index, void **params);
+GLAPI void APIENTRY glNamedProgramStringEXT (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string);
+GLAPI void APIENTRY glNamedProgramLocalParameter4dEXT (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glNamedProgramLocalParameter4dvEXT (GLuint program, GLenum target, GLuint index, const GLdouble *params);
+GLAPI void APIENTRY glNamedProgramLocalParameter4fEXT (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glNamedProgramLocalParameter4fvEXT (GLuint program, GLenum target, GLuint index, const GLfloat *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterdvEXT (GLuint program, GLenum target, GLuint index, GLdouble *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterfvEXT (GLuint program, GLenum target, GLuint index, GLfloat *params);
+GLAPI void APIENTRY glGetNamedProgramivEXT (GLuint program, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetNamedProgramStringEXT (GLuint program, GLenum target, GLenum pname, void *string);
+GLAPI void APIENTRY glNamedRenderbufferStorageEXT (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetNamedRenderbufferParameterivEXT (GLuint renderbuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleEXT (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleCoverageEXT (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI GLenum APIENTRY glCheckNamedFramebufferStatusEXT (GLuint framebuffer, GLenum target);
+GLAPI void APIENTRY glNamedFramebufferTexture1DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTexture2DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTexture3DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+GLAPI void APIENTRY glNamedFramebufferRenderbufferEXT (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameterivEXT (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGenerateTextureMipmapEXT (GLuint texture, GLenum target);
+GLAPI void APIENTRY glGenerateMultiTexMipmapEXT (GLenum texunit, GLenum target);
+GLAPI void APIENTRY glFramebufferDrawBufferEXT (GLuint framebuffer, GLenum mode);
+GLAPI void APIENTRY glFramebufferDrawBuffersEXT (GLuint framebuffer, GLsizei n, const GLenum *bufs);
+GLAPI void APIENTRY glFramebufferReadBufferEXT (GLuint framebuffer, GLenum mode);
+GLAPI void APIENTRY glGetFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glNamedCopyBufferSubDataEXT (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+GLAPI void APIENTRY glNamedFramebufferTextureEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTextureLayerEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void APIENTRY glNamedFramebufferTextureFaceEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face);
+GLAPI void APIENTRY glTextureRenderbufferEXT (GLuint texture, GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glMultiTexRenderbufferEXT (GLenum texunit, GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glVertexArrayVertexOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayEdgeFlagOffsetEXT (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayIndexOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayNormalOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayMultiTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayFogCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArraySecondaryColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayVertexAttribOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayVertexAttribIOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glEnableVertexArrayEXT (GLuint vaobj, GLenum array);
+GLAPI void APIENTRY glDisableVertexArrayEXT (GLuint vaobj, GLenum array);
+GLAPI void APIENTRY glEnableVertexArrayAttribEXT (GLuint vaobj, GLuint index);
+GLAPI void APIENTRY glDisableVertexArrayAttribEXT (GLuint vaobj, GLuint index);
+GLAPI void APIENTRY glGetVertexArrayIntegervEXT (GLuint vaobj, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetVertexArrayPointervEXT (GLuint vaobj, GLenum pname, void **param);
+GLAPI void APIENTRY glGetVertexArrayIntegeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetVertexArrayPointeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, void **param);
+GLAPI void *APIENTRY glMapNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
+GLAPI void APIENTRY glFlushMappedNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glNamedBufferStorageEXT (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
+GLAPI void APIENTRY glClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glNamedFramebufferParameteriEXT (GLuint framebuffer, GLenum pname, GLint param);
+GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glProgramUniform1dEXT (GLuint program, GLint location, GLdouble x);
+GLAPI void APIENTRY glProgramUniform2dEXT (GLuint program, GLint location, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glProgramUniform3dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glProgramUniform4dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramUniform1dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform2dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform3dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform4dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glTextureBufferRangeEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GLAPI void APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glTextureStorage2DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTextureStorage3DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
+GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT (GLuint vaobj, GLuint bindingindex, GLuint divisor);
+GLAPI void APIENTRY glVertexArrayVertexAttribLOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glTexturePageCommitmentEXT (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident);
+GLAPI void APIENTRY glVertexArrayVertexAttribDivisorEXT (GLuint vaobj, GLuint index, GLuint divisor);
+#endif
+#endif /* GL_EXT_direct_state_access */
+
+#ifndef GL_EXT_draw_buffers2
+#define GL_EXT_draw_buffers2 1
+typedef void (APIENTRYP PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorMaskIndexedEXT (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+#endif
+#endif /* GL_EXT_draw_buffers2 */
+
+#ifndef GL_EXT_draw_instanced
+#define GL_EXT_draw_instanced 1
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
+GLAPI void APIENTRY glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#endif
+#endif /* GL_EXT_draw_instanced */
+
+#ifndef GL_EXT_draw_range_elements
+#define GL_EXT_draw_range_elements 1
+#define GL_MAX_ELEMENTS_VERTICES_EXT      0x80E8
+#define GL_MAX_ELEMENTS_INDICES_EXT       0x80E9
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
+#endif
+#endif /* GL_EXT_draw_range_elements */
+
+#ifndef GL_EXT_fog_coord
+#define GL_EXT_fog_coord 1
+#define GL_FOG_COORDINATE_SOURCE_EXT      0x8450
+#define GL_FOG_COORDINATE_EXT             0x8451
+#define GL_FRAGMENT_DEPTH_EXT             0x8452
+#define GL_CURRENT_FOG_COORDINATE_EXT     0x8453
+#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT  0x8454
+#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
+#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
+#define GL_FOG_COORDINATE_ARRAY_EXT       0x8457
+typedef void (APIENTRYP PFNGLFOGCOORDFEXTPROC) (GLfloat coord);
+typedef void (APIENTRYP PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord);
+typedef void (APIENTRYP PFNGLFOGCOORDDEXTPROC) (GLdouble coord);
+typedef void (APIENTRYP PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord);
+typedef void (APIENTRYP PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFogCoordfEXT (GLfloat coord);
+GLAPI void APIENTRY glFogCoordfvEXT (const GLfloat *coord);
+GLAPI void APIENTRY glFogCoorddEXT (GLdouble coord);
+GLAPI void APIENTRY glFogCoorddvEXT (const GLdouble *coord);
+GLAPI void APIENTRY glFogCoordPointerEXT (GLenum type, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_EXT_fog_coord */
+
+#ifndef GL_EXT_framebuffer_blit
+#define GL_EXT_framebuffer_blit 1
+#define GL_READ_FRAMEBUFFER_EXT           0x8CA8
+#define GL_DRAW_FRAMEBUFFER_EXT           0x8CA9
+#define GL_DRAW_FRAMEBUFFER_BINDING_EXT   0x8CA6
+#define GL_READ_FRAMEBUFFER_BINDING_EXT   0x8CAA
+typedef void (APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlitFramebufferEXT (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#endif
+#endif /* GL_EXT_framebuffer_blit */
+
+#ifndef GL_EXT_framebuffer_multisample
+#define GL_EXT_framebuffer_multisample 1
+#define GL_RENDERBUFFER_SAMPLES_EXT       0x8CAB
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56
+#define GL_MAX_SAMPLES_EXT                0x8D57
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_EXT_framebuffer_multisample */
+
+#ifndef GL_EXT_framebuffer_multisample_blit_scaled
+#define GL_EXT_framebuffer_multisample_blit_scaled 1
+#define GL_SCALED_RESOLVE_FASTEST_EXT     0x90BA
+#define GL_SCALED_RESOLVE_NICEST_EXT      0x90BB
+#endif /* GL_EXT_framebuffer_multisample_blit_scaled */
+
+#ifndef GL_EXT_framebuffer_object
+#define GL_EXT_framebuffer_object 1
+#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506
+#define GL_MAX_RENDERBUFFER_SIZE_EXT      0x84E8
+#define GL_FRAMEBUFFER_BINDING_EXT        0x8CA6
+#define GL_RENDERBUFFER_BINDING_EXT       0x8CA7
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4
+#define GL_FRAMEBUFFER_COMPLETE_EXT       0x8CD5
+#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6
+#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7
+#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9
+#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA
+#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB
+#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC
+#define GL_FRAMEBUFFER_UNSUPPORTED_EXT    0x8CDD
+#define GL_MAX_COLOR_ATTACHMENTS_EXT      0x8CDF
+#define GL_COLOR_ATTACHMENT0_EXT          0x8CE0
+#define GL_COLOR_ATTACHMENT1_EXT          0x8CE1
+#define GL_COLOR_ATTACHMENT2_EXT          0x8CE2
+#define GL_COLOR_ATTACHMENT3_EXT          0x8CE3
+#define GL_COLOR_ATTACHMENT4_EXT          0x8CE4
+#define GL_COLOR_ATTACHMENT5_EXT          0x8CE5
+#define GL_COLOR_ATTACHMENT6_EXT          0x8CE6
+#define GL_COLOR_ATTACHMENT7_EXT          0x8CE7
+#define GL_COLOR_ATTACHMENT8_EXT          0x8CE8
+#define GL_COLOR_ATTACHMENT9_EXT          0x8CE9
+#define GL_COLOR_ATTACHMENT10_EXT         0x8CEA
+#define GL_COLOR_ATTACHMENT11_EXT         0x8CEB
+#define GL_COLOR_ATTACHMENT12_EXT         0x8CEC
+#define GL_COLOR_ATTACHMENT13_EXT         0x8CED
+#define GL_COLOR_ATTACHMENT14_EXT         0x8CEE
+#define GL_COLOR_ATTACHMENT15_EXT         0x8CEF
+#define GL_DEPTH_ATTACHMENT_EXT           0x8D00
+#define GL_STENCIL_ATTACHMENT_EXT         0x8D20
+#define GL_FRAMEBUFFER_EXT                0x8D40
+#define GL_RENDERBUFFER_EXT               0x8D41
+#define GL_RENDERBUFFER_WIDTH_EXT         0x8D42
+#define GL_RENDERBUFFER_HEIGHT_EXT        0x8D43
+#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44
+#define GL_STENCIL_INDEX1_EXT             0x8D46
+#define GL_STENCIL_INDEX4_EXT             0x8D47
+#define GL_STENCIL_INDEX8_EXT             0x8D48
+#define GL_STENCIL_INDEX16_EXT            0x8D49
+#define GL_RENDERBUFFER_RED_SIZE_EXT      0x8D50
+#define GL_RENDERBUFFER_GREEN_SIZE_EXT    0x8D51
+#define GL_RENDERBUFFER_BLUE_SIZE_EXT     0x8D52
+#define GL_RENDERBUFFER_ALPHA_SIZE_EXT    0x8D53
+#define GL_RENDERBUFFER_DEPTH_SIZE_EXT    0x8D54
+#define GL_RENDERBUFFER_STENCIL_SIZE_EXT  0x8D55
+typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer);
+typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer);
+typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers);
+typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers);
+typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC) (GLenum target);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLboolean APIENTRY glIsRenderbufferEXT (GLuint renderbuffer);
+GLAPI void APIENTRY glBindRenderbufferEXT (GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glDeleteRenderbuffersEXT (GLsizei n, const GLuint *renderbuffers);
+GLAPI void APIENTRY glGenRenderbuffersEXT (GLsizei n, GLuint *renderbuffers);
+GLAPI void APIENTRY glRenderbufferStorageEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetRenderbufferParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI GLboolean APIENTRY glIsFramebufferEXT (GLuint framebuffer);
+GLAPI void APIENTRY glBindFramebufferEXT (GLenum target, GLuint framebuffer);
+GLAPI void APIENTRY glDeleteFramebuffersEXT (GLsizei n, const GLuint *framebuffers);
+GLAPI void APIENTRY glGenFramebuffersEXT (GLsizei n, GLuint *framebuffers);
+GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT (GLenum target);
+GLAPI void APIENTRY glFramebufferTexture1DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTexture2DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTexture3DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+GLAPI void APIENTRY glFramebufferRenderbufferEXT (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GLAPI void APIENTRY glGetFramebufferAttachmentParameterivEXT (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGenerateMipmapEXT (GLenum target);
+#endif
+#endif /* GL_EXT_framebuffer_object */
+
+#ifndef GL_EXT_framebuffer_sRGB
+#define GL_EXT_framebuffer_sRGB 1
+#define GL_FRAMEBUFFER_SRGB_EXT           0x8DB9
+#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT   0x8DBA
+#endif /* GL_EXT_framebuffer_sRGB */
+
+#ifndef GL_EXT_geometry_shader4
+#define GL_EXT_geometry_shader4 1
+#define GL_GEOMETRY_SHADER_EXT            0x8DD9
+#define GL_GEOMETRY_VERTICES_OUT_EXT      0x8DDA
+#define GL_GEOMETRY_INPUT_TYPE_EXT        0x8DDB
+#define GL_GEOMETRY_OUTPUT_TYPE_EXT       0x8DDC
+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29
+#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD
+#define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE
+#define GL_MAX_VARYING_COMPONENTS_EXT     0x8B4B
+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF
+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0
+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1
+#define GL_LINES_ADJACENCY_EXT            0x000A
+#define GL_LINE_STRIP_ADJACENCY_EXT       0x000B
+#define GL_TRIANGLES_ADJACENCY_EXT        0x000C
+#define GL_TRIANGLE_STRIP_ADJACENCY_EXT   0x000D
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9
+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4
+#define GL_PROGRAM_POINT_SIZE_EXT         0x8642
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
+#endif
+#endif /* GL_EXT_geometry_shader4 */
+
+#ifndef GL_EXT_gpu_program_parameters
+#define GL_EXT_gpu_program_parameters 1
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramEnvParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+GLAPI void APIENTRY glProgramLocalParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+#endif
+#endif /* GL_EXT_gpu_program_parameters */
+
+#ifndef GL_EXT_gpu_shader4
+#define GL_EXT_gpu_shader4 1
+#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT 0x88FD
+#define GL_SAMPLER_1D_ARRAY_EXT           0x8DC0
+#define GL_SAMPLER_2D_ARRAY_EXT           0x8DC1
+#define GL_SAMPLER_BUFFER_EXT             0x8DC2
+#define GL_SAMPLER_1D_ARRAY_SHADOW_EXT    0x8DC3
+#define GL_SAMPLER_2D_ARRAY_SHADOW_EXT    0x8DC4
+#define GL_SAMPLER_CUBE_SHADOW_EXT        0x8DC5
+#define GL_UNSIGNED_INT_VEC2_EXT          0x8DC6
+#define GL_UNSIGNED_INT_VEC3_EXT          0x8DC7
+#define GL_UNSIGNED_INT_VEC4_EXT          0x8DC8
+#define GL_INT_SAMPLER_1D_EXT             0x8DC9
+#define GL_INT_SAMPLER_2D_EXT             0x8DCA
+#define GL_INT_SAMPLER_3D_EXT             0x8DCB
+#define GL_INT_SAMPLER_CUBE_EXT           0x8DCC
+#define GL_INT_SAMPLER_2D_RECT_EXT        0x8DCD
+#define GL_INT_SAMPLER_1D_ARRAY_EXT       0x8DCE
+#define GL_INT_SAMPLER_2D_ARRAY_EXT       0x8DCF
+#define GL_INT_SAMPLER_BUFFER_EXT         0x8DD0
+#define GL_UNSIGNED_INT_SAMPLER_1D_EXT    0x8DD1
+#define GL_UNSIGNED_INT_SAMPLER_2D_EXT    0x8DD2
+#define GL_UNSIGNED_INT_SAMPLER_3D_EXT    0x8DD3
+#define GL_UNSIGNED_INT_SAMPLER_CUBE_EXT  0x8DD4
+#define GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5
+#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6
+#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7
+#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8
+#define GL_MIN_PROGRAM_TEXEL_OFFSET_EXT   0x8904
+#define GL_MAX_PROGRAM_TEXEL_OFFSET_EXT   0x8905
+typedef void (APIENTRYP PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params);
+typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetUniformuivEXT (GLuint program, GLint location, GLuint *params);
+GLAPI void APIENTRY glBindFragDataLocationEXT (GLuint program, GLuint color, const GLchar *name);
+GLAPI GLint APIENTRY glGetFragDataLocationEXT (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glUniform1uiEXT (GLint location, GLuint v0);
+GLAPI void APIENTRY glUniform2uiEXT (GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glUniform3uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glUniform4uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glUniform1uivEXT (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform2uivEXT (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform3uivEXT (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform4uivEXT (GLint location, GLsizei count, const GLuint *value);
+#endif
+#endif /* GL_EXT_gpu_shader4 */
+
+#ifndef GL_EXT_histogram
+#define GL_EXT_histogram 1
+#define GL_HISTOGRAM_EXT                  0x8024
+#define GL_PROXY_HISTOGRAM_EXT            0x8025
+#define GL_HISTOGRAM_WIDTH_EXT            0x8026
+#define GL_HISTOGRAM_FORMAT_EXT           0x8027
+#define GL_HISTOGRAM_RED_SIZE_EXT         0x8028
+#define GL_HISTOGRAM_GREEN_SIZE_EXT       0x8029
+#define GL_HISTOGRAM_BLUE_SIZE_EXT        0x802A
+#define GL_HISTOGRAM_ALPHA_SIZE_EXT       0x802B
+#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT   0x802C
+#define GL_HISTOGRAM_SINK_EXT             0x802D
+#define GL_MINMAX_EXT                     0x802E
+#define GL_MINMAX_FORMAT_EXT              0x802F
+#define GL_MINMAX_SINK_EXT                0x8030
+#define GL_TABLE_TOO_LARGE_EXT            0x8031
+typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+typedef void (APIENTRYP PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink);
+typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC) (GLenum target);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetHistogramEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+GLAPI void APIENTRY glGetHistogramParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetHistogramParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMinmaxEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+GLAPI void APIENTRY glGetMinmaxParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMinmaxParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glHistogramEXT (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+GLAPI void APIENTRY glMinmaxEXT (GLenum target, GLenum internalformat, GLboolean sink);
+GLAPI void APIENTRY glResetHistogramEXT (GLenum target);
+GLAPI void APIENTRY glResetMinmaxEXT (GLenum target);
+#endif
+#endif /* GL_EXT_histogram */
+
+#ifndef GL_EXT_index_array_formats
+#define GL_EXT_index_array_formats 1
+#define GL_IUI_V2F_EXT                    0x81AD
+#define GL_IUI_V3F_EXT                    0x81AE
+#define GL_IUI_N3F_V2F_EXT                0x81AF
+#define GL_IUI_N3F_V3F_EXT                0x81B0
+#define GL_T2F_IUI_V2F_EXT                0x81B1
+#define GL_T2F_IUI_V3F_EXT                0x81B2
+#define GL_T2F_IUI_N3F_V2F_EXT            0x81B3
+#define GL_T2F_IUI_N3F_V3F_EXT            0x81B4
+#endif /* GL_EXT_index_array_formats */
+
+#ifndef GL_EXT_index_func
+#define GL_EXT_index_func 1
+#define GL_INDEX_TEST_EXT                 0x81B5
+#define GL_INDEX_TEST_FUNC_EXT            0x81B6
+#define GL_INDEX_TEST_REF_EXT             0x81B7
+typedef void (APIENTRYP PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glIndexFuncEXT (GLenum func, GLclampf ref);
+#endif
+#endif /* GL_EXT_index_func */
+
+#ifndef GL_EXT_index_material
+#define GL_EXT_index_material 1
+#define GL_INDEX_MATERIAL_EXT             0x81B8
+#define GL_INDEX_MATERIAL_PARAMETER_EXT   0x81B9
+#define GL_INDEX_MATERIAL_FACE_EXT        0x81BA
+typedef void (APIENTRYP PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glIndexMaterialEXT (GLenum face, GLenum mode);
+#endif
+#endif /* GL_EXT_index_material */
+
+#ifndef GL_EXT_index_texture
+#define GL_EXT_index_texture 1
+#endif /* GL_EXT_index_texture */
+
+#ifndef GL_EXT_light_texture
+#define GL_EXT_light_texture 1
+#define GL_FRAGMENT_MATERIAL_EXT          0x8349
+#define GL_FRAGMENT_NORMAL_EXT            0x834A
+#define GL_FRAGMENT_COLOR_EXT             0x834C
+#define GL_ATTENUATION_EXT                0x834D
+#define GL_SHADOW_ATTENUATION_EXT         0x834E
+#define GL_TEXTURE_APPLICATION_MODE_EXT   0x834F
+#define GL_TEXTURE_LIGHT_EXT              0x8350
+#define GL_TEXTURE_MATERIAL_FACE_EXT      0x8351
+#define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352
+typedef void (APIENTRYP PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLTEXTURELIGHTEXTPROC) (GLenum pname);
+typedef void (APIENTRYP PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glApplyTextureEXT (GLenum mode);
+GLAPI void APIENTRY glTextureLightEXT (GLenum pname);
+GLAPI void APIENTRY glTextureMaterialEXT (GLenum face, GLenum mode);
+#endif
+#endif /* GL_EXT_light_texture */
+
+#ifndef GL_EXT_misc_attribute
+#define GL_EXT_misc_attribute 1
+#endif /* GL_EXT_misc_attribute */
+
+#ifndef GL_EXT_multi_draw_arrays
+#define GL_EXT_multi_draw_arrays 1
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysEXT (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+GLAPI void APIENTRY glMultiDrawElementsEXT (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
+#endif
+#endif /* GL_EXT_multi_draw_arrays */
+
+#ifndef GL_EXT_multisample
+#define GL_EXT_multisample 1
+#define GL_MULTISAMPLE_EXT                0x809D
+#define GL_SAMPLE_ALPHA_TO_MASK_EXT       0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE_EXT        0x809F
+#define GL_SAMPLE_MASK_EXT                0x80A0
+#define GL_1PASS_EXT                      0x80A1
+#define GL_2PASS_0_EXT                    0x80A2
+#define GL_2PASS_1_EXT                    0x80A3
+#define GL_4PASS_0_EXT                    0x80A4
+#define GL_4PASS_1_EXT                    0x80A5
+#define GL_4PASS_2_EXT                    0x80A6
+#define GL_4PASS_3_EXT                    0x80A7
+#define GL_SAMPLE_BUFFERS_EXT             0x80A8
+#define GL_SAMPLES_EXT                    0x80A9
+#define GL_SAMPLE_MASK_VALUE_EXT          0x80AA
+#define GL_SAMPLE_MASK_INVERT_EXT         0x80AB
+#define GL_SAMPLE_PATTERN_EXT             0x80AC
+#define GL_MULTISAMPLE_BIT_EXT            0x20000000
+typedef void (APIENTRYP PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert);
+typedef void (APIENTRYP PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSampleMaskEXT (GLclampf value, GLboolean invert);
+GLAPI void APIENTRY glSamplePatternEXT (GLenum pattern);
+#endif
+#endif /* GL_EXT_multisample */
+
+#ifndef GL_EXT_packed_depth_stencil
+#define GL_EXT_packed_depth_stencil 1
+#define GL_DEPTH_STENCIL_EXT              0x84F9
+#define GL_UNSIGNED_INT_24_8_EXT          0x84FA
+#define GL_DEPTH24_STENCIL8_EXT           0x88F0
+#define GL_TEXTURE_STENCIL_SIZE_EXT       0x88F1
+#endif /* GL_EXT_packed_depth_stencil */
+
+#ifndef GL_EXT_packed_float
+#define GL_EXT_packed_float 1
+#define GL_R11F_G11F_B10F_EXT             0x8C3A
+#define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B
+#define GL_RGBA_SIGNED_COMPONENTS_EXT     0x8C3C
+#endif /* GL_EXT_packed_float */
+
+#ifndef GL_EXT_packed_pixels
+#define GL_EXT_packed_pixels 1
+#define GL_UNSIGNED_BYTE_3_3_2_EXT        0x8032
+#define GL_UNSIGNED_SHORT_4_4_4_4_EXT     0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1_EXT     0x8034
+#define GL_UNSIGNED_INT_8_8_8_8_EXT       0x8035
+#define GL_UNSIGNED_INT_10_10_10_2_EXT    0x8036
+#endif /* GL_EXT_packed_pixels */
+
+#ifndef GL_EXT_paletted_texture
+#define GL_EXT_paletted_texture 1
+#define GL_COLOR_INDEX1_EXT               0x80E2
+#define GL_COLOR_INDEX2_EXT               0x80E3
+#define GL_COLOR_INDEX4_EXT               0x80E4
+#define GL_COLOR_INDEX8_EXT               0x80E5
+#define GL_COLOR_INDEX12_EXT              0x80E6
+#define GL_COLOR_INDEX16_EXT              0x80E7
+#define GL_TEXTURE_INDEX_SIZE_EXT         0x80ED
+typedef void (APIENTRYP PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void *table);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, void *data);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorTableEXT (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void *table);
+GLAPI void APIENTRY glGetColorTableEXT (GLenum target, GLenum format, GLenum type, void *data);
+GLAPI void APIENTRY glGetColorTableParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetColorTableParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_EXT_paletted_texture */
+
+#ifndef GL_EXT_pixel_buffer_object
+#define GL_EXT_pixel_buffer_object 1
+#define GL_PIXEL_PACK_BUFFER_EXT          0x88EB
+#define GL_PIXEL_UNPACK_BUFFER_EXT        0x88EC
+#define GL_PIXEL_PACK_BUFFER_BINDING_EXT  0x88ED
+#define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF
+#endif /* GL_EXT_pixel_buffer_object */
+
+#ifndef GL_EXT_pixel_transform
+#define GL_EXT_pixel_transform 1
+#define GL_PIXEL_TRANSFORM_2D_EXT         0x8330
+#define GL_PIXEL_MAG_FILTER_EXT           0x8331
+#define GL_PIXEL_MIN_FILTER_EXT           0x8332
+#define GL_PIXEL_CUBIC_WEIGHT_EXT         0x8333
+#define GL_CUBIC_EXT                      0x8334
+#define GL_AVERAGE_EXT                    0x8335
+#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336
+#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337
+#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT  0x8338
+typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPixelTransformParameteriEXT (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glPixelTransformParameterfEXT (GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPixelTransformParameterivEXT (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glPixelTransformParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetPixelTransformParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetPixelTransformParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_EXT_pixel_transform */
+
+#ifndef GL_EXT_pixel_transform_color_table
+#define GL_EXT_pixel_transform_color_table 1
+#endif /* GL_EXT_pixel_transform_color_table */
+
+#ifndef GL_EXT_point_parameters
+#define GL_EXT_point_parameters 1
+#define GL_POINT_SIZE_MIN_EXT             0x8126
+#define GL_POINT_SIZE_MAX_EXT             0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE_EXT  0x8128
+#define GL_DISTANCE_ATTENUATION_EXT       0x8129
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPointParameterfEXT (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPointParameterfvEXT (GLenum pname, const GLfloat *params);
+#endif
+#endif /* GL_EXT_point_parameters */
+
+#ifndef GL_EXT_polygon_offset
+#define GL_EXT_polygon_offset 1
+#define GL_POLYGON_OFFSET_EXT             0x8037
+#define GL_POLYGON_OFFSET_FACTOR_EXT      0x8038
+#define GL_POLYGON_OFFSET_BIAS_EXT        0x8039
+typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPolygonOffsetEXT (GLfloat factor, GLfloat bias);
+#endif
+#endif /* GL_EXT_polygon_offset */
+
+#ifndef GL_EXT_provoking_vertex
+#define GL_EXT_provoking_vertex 1
+#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C
+#define GL_FIRST_VERTEX_CONVENTION_EXT    0x8E4D
+#define GL_LAST_VERTEX_CONVENTION_EXT     0x8E4E
+#define GL_PROVOKING_VERTEX_EXT           0x8E4F
+typedef void (APIENTRYP PFNGLPROVOKINGVERTEXEXTPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProvokingVertexEXT (GLenum mode);
+#endif
+#endif /* GL_EXT_provoking_vertex */
+
+#ifndef GL_EXT_rescale_normal
+#define GL_EXT_rescale_normal 1
+#define GL_RESCALE_NORMAL_EXT             0x803A
+#endif /* GL_EXT_rescale_normal */
+
+#ifndef GL_EXT_secondary_color
+#define GL_EXT_secondary_color 1
+#define GL_COLOR_SUM_EXT                  0x8458
+#define GL_CURRENT_SECONDARY_COLOR_EXT    0x8459
+#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
+#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
+#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
+#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
+#define GL_SECONDARY_COLOR_ARRAY_EXT      0x845E
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSecondaryColor3bEXT (GLbyte red, GLbyte green, GLbyte blue);
+GLAPI void APIENTRY glSecondaryColor3bvEXT (const GLbyte *v);
+GLAPI void APIENTRY glSecondaryColor3dEXT (GLdouble red, GLdouble green, GLdouble blue);
+GLAPI void APIENTRY glSecondaryColor3dvEXT (const GLdouble *v);
+GLAPI void APIENTRY glSecondaryColor3fEXT (GLfloat red, GLfloat green, GLfloat blue);
+GLAPI void APIENTRY glSecondaryColor3fvEXT (const GLfloat *v);
+GLAPI void APIENTRY glSecondaryColor3iEXT (GLint red, GLint green, GLint blue);
+GLAPI void APIENTRY glSecondaryColor3ivEXT (const GLint *v);
+GLAPI void APIENTRY glSecondaryColor3sEXT (GLshort red, GLshort green, GLshort blue);
+GLAPI void APIENTRY glSecondaryColor3svEXT (const GLshort *v);
+GLAPI void APIENTRY glSecondaryColor3ubEXT (GLubyte red, GLubyte green, GLubyte blue);
+GLAPI void APIENTRY glSecondaryColor3ubvEXT (const GLubyte *v);
+GLAPI void APIENTRY glSecondaryColor3uiEXT (GLuint red, GLuint green, GLuint blue);
+GLAPI void APIENTRY glSecondaryColor3uivEXT (const GLuint *v);
+GLAPI void APIENTRY glSecondaryColor3usEXT (GLushort red, GLushort green, GLushort blue);
+GLAPI void APIENTRY glSecondaryColor3usvEXT (const GLushort *v);
+GLAPI void APIENTRY glSecondaryColorPointerEXT (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_EXT_secondary_color */
+
+#ifndef GL_EXT_separate_shader_objects
+#define GL_EXT_separate_shader_objects 1
+#define GL_ACTIVE_PROGRAM_EXT             0x8B8D
+typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program);
+typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC) (GLuint program);
+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar *string);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUseShaderProgramEXT (GLenum type, GLuint program);
+GLAPI void APIENTRY glActiveProgramEXT (GLuint program);
+GLAPI GLuint APIENTRY glCreateShaderProgramEXT (GLenum type, const GLchar *string);
+#endif
+#endif /* GL_EXT_separate_shader_objects */
+
+#ifndef GL_EXT_separate_specular_color
+#define GL_EXT_separate_specular_color 1
+#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT  0x81F8
+#define GL_SINGLE_COLOR_EXT               0x81F9
+#define GL_SEPARATE_SPECULAR_COLOR_EXT    0x81FA
+#endif /* GL_EXT_separate_specular_color */
+
+#ifndef GL_EXT_shader_image_load_formatted
+#define GL_EXT_shader_image_load_formatted 1
+#endif /* GL_EXT_shader_image_load_formatted */
+
+#ifndef GL_EXT_shader_image_load_store
+#define GL_EXT_shader_image_load_store 1
+#define GL_MAX_IMAGE_UNITS_EXT            0x8F38
+#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT 0x8F39
+#define GL_IMAGE_BINDING_NAME_EXT         0x8F3A
+#define GL_IMAGE_BINDING_LEVEL_EXT        0x8F3B
+#define GL_IMAGE_BINDING_LAYERED_EXT      0x8F3C
+#define GL_IMAGE_BINDING_LAYER_EXT        0x8F3D
+#define GL_IMAGE_BINDING_ACCESS_EXT       0x8F3E
+#define GL_IMAGE_1D_EXT                   0x904C
+#define GL_IMAGE_2D_EXT                   0x904D
+#define GL_IMAGE_3D_EXT                   0x904E
+#define GL_IMAGE_2D_RECT_EXT              0x904F
+#define GL_IMAGE_CUBE_EXT                 0x9050
+#define GL_IMAGE_BUFFER_EXT               0x9051
+#define GL_IMAGE_1D_ARRAY_EXT             0x9052
+#define GL_IMAGE_2D_ARRAY_EXT             0x9053
+#define GL_IMAGE_CUBE_MAP_ARRAY_EXT       0x9054
+#define GL_IMAGE_2D_MULTISAMPLE_EXT       0x9055
+#define GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9056
+#define GL_INT_IMAGE_1D_EXT               0x9057
+#define GL_INT_IMAGE_2D_EXT               0x9058
+#define GL_INT_IMAGE_3D_EXT               0x9059
+#define GL_INT_IMAGE_2D_RECT_EXT          0x905A
+#define GL_INT_IMAGE_CUBE_EXT             0x905B
+#define GL_INT_IMAGE_BUFFER_EXT           0x905C
+#define GL_INT_IMAGE_1D_ARRAY_EXT         0x905D
+#define GL_INT_IMAGE_2D_ARRAY_EXT         0x905E
+#define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT   0x905F
+#define GL_INT_IMAGE_2D_MULTISAMPLE_EXT   0x9060
+#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9061
+#define GL_UNSIGNED_INT_IMAGE_1D_EXT      0x9062
+#define GL_UNSIGNED_INT_IMAGE_2D_EXT      0x9063
+#define GL_UNSIGNED_INT_IMAGE_3D_EXT      0x9064
+#define GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT 0x9065
+#define GL_UNSIGNED_INT_IMAGE_CUBE_EXT    0x9066
+#define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT  0x9067
+#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT 0x9068
+#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT 0x9069
+#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A
+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT 0x906B
+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x906C
+#define GL_MAX_IMAGE_SAMPLES_EXT          0x906D
+#define GL_IMAGE_BINDING_FORMAT_EXT       0x906E
+#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT 0x00000001
+#define GL_ELEMENT_ARRAY_BARRIER_BIT_EXT  0x00000002
+#define GL_UNIFORM_BARRIER_BIT_EXT        0x00000004
+#define GL_TEXTURE_FETCH_BARRIER_BIT_EXT  0x00000008
+#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT 0x00000020
+#define GL_COMMAND_BARRIER_BIT_EXT        0x00000040
+#define GL_PIXEL_BUFFER_BARRIER_BIT_EXT   0x00000080
+#define GL_TEXTURE_UPDATE_BARRIER_BIT_EXT 0x00000100
+#define GL_BUFFER_UPDATE_BARRIER_BIT_EXT  0x00000200
+#define GL_FRAMEBUFFER_BARRIER_BIT_EXT    0x00000400
+#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT 0x00000800
+#define GL_ATOMIC_COUNTER_BARRIER_BIT_EXT 0x00001000
+#define GL_ALL_BARRIER_BITS_EXT           0xFFFFFFFF
+typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
+typedef void (APIENTRYP PFNGLMEMORYBARRIEREXTPROC) (GLbitfield barriers);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindImageTextureEXT (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
+GLAPI void APIENTRY glMemoryBarrierEXT (GLbitfield barriers);
+#endif
+#endif /* GL_EXT_shader_image_load_store */
+
+#ifndef GL_EXT_shader_integer_mix
+#define GL_EXT_shader_integer_mix 1
+#endif /* GL_EXT_shader_integer_mix */
+
+#ifndef GL_EXT_shadow_funcs
+#define GL_EXT_shadow_funcs 1
+#endif /* GL_EXT_shadow_funcs */
+
+#ifndef GL_EXT_shared_texture_palette
+#define GL_EXT_shared_texture_palette 1
+#define GL_SHARED_TEXTURE_PALETTE_EXT     0x81FB
+#endif /* GL_EXT_shared_texture_palette */
+
+#ifndef GL_EXT_stencil_clear_tag
+#define GL_EXT_stencil_clear_tag 1
+#define GL_STENCIL_TAG_BITS_EXT           0x88F2
+#define GL_STENCIL_CLEAR_TAG_VALUE_EXT    0x88F3
+typedef void (APIENTRYP PFNGLSTENCILCLEARTAGEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glStencilClearTagEXT (GLsizei stencilTagBits, GLuint stencilClearTag);
+#endif
+#endif /* GL_EXT_stencil_clear_tag */
+
+#ifndef GL_EXT_stencil_two_side
+#define GL_EXT_stencil_two_side 1
+#define GL_STENCIL_TEST_TWO_SIDE_EXT      0x8910
+#define GL_ACTIVE_STENCIL_FACE_EXT        0x8911
+typedef void (APIENTRYP PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glActiveStencilFaceEXT (GLenum face);
+#endif
+#endif /* GL_EXT_stencil_two_side */
+
+#ifndef GL_EXT_stencil_wrap
+#define GL_EXT_stencil_wrap 1
+#define GL_INCR_WRAP_EXT                  0x8507
+#define GL_DECR_WRAP_EXT                  0x8508
+#endif /* GL_EXT_stencil_wrap */
+
+#ifndef GL_EXT_subtexture
+#define GL_EXT_subtexture 1
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+#endif
+#endif /* GL_EXT_subtexture */
+
+#ifndef GL_EXT_texture
+#define GL_EXT_texture 1
+#define GL_ALPHA4_EXT                     0x803B
+#define GL_ALPHA8_EXT                     0x803C
+#define GL_ALPHA12_EXT                    0x803D
+#define GL_ALPHA16_EXT                    0x803E
+#define GL_LUMINANCE4_EXT                 0x803F
+#define GL_LUMINANCE8_EXT                 0x8040
+#define GL_LUMINANCE12_EXT                0x8041
+#define GL_LUMINANCE16_EXT                0x8042
+#define GL_LUMINANCE4_ALPHA4_EXT          0x8043
+#define GL_LUMINANCE6_ALPHA2_EXT          0x8044
+#define GL_LUMINANCE8_ALPHA8_EXT          0x8045
+#define GL_LUMINANCE12_ALPHA4_EXT         0x8046
+#define GL_LUMINANCE12_ALPHA12_EXT        0x8047
+#define GL_LUMINANCE16_ALPHA16_EXT        0x8048
+#define GL_INTENSITY_EXT                  0x8049
+#define GL_INTENSITY4_EXT                 0x804A
+#define GL_INTENSITY8_EXT                 0x804B
+#define GL_INTENSITY12_EXT                0x804C
+#define GL_INTENSITY16_EXT                0x804D
+#define GL_RGB2_EXT                       0x804E
+#define GL_RGB4_EXT                       0x804F
+#define GL_RGB5_EXT                       0x8050
+#define GL_RGB8_EXT                       0x8051
+#define GL_RGB10_EXT                      0x8052
+#define GL_RGB12_EXT                      0x8053
+#define GL_RGB16_EXT                      0x8054
+#define GL_RGBA2_EXT                      0x8055
+#define GL_RGBA4_EXT                      0x8056
+#define GL_RGB5_A1_EXT                    0x8057
+#define GL_RGBA8_EXT                      0x8058
+#define GL_RGB10_A2_EXT                   0x8059
+#define GL_RGBA12_EXT                     0x805A
+#define GL_RGBA16_EXT                     0x805B
+#define GL_TEXTURE_RED_SIZE_EXT           0x805C
+#define GL_TEXTURE_GREEN_SIZE_EXT         0x805D
+#define GL_TEXTURE_BLUE_SIZE_EXT          0x805E
+#define GL_TEXTURE_ALPHA_SIZE_EXT         0x805F
+#define GL_TEXTURE_LUMINANCE_SIZE_EXT     0x8060
+#define GL_TEXTURE_INTENSITY_SIZE_EXT     0x8061
+#define GL_REPLACE_EXT                    0x8062
+#define GL_PROXY_TEXTURE_1D_EXT           0x8063
+#define GL_PROXY_TEXTURE_2D_EXT           0x8064
+#define GL_TEXTURE_TOO_LARGE_EXT          0x8065
+#endif /* GL_EXT_texture */
+
+#ifndef GL_EXT_texture3D
+#define GL_EXT_texture3D 1
+#define GL_PACK_SKIP_IMAGES_EXT           0x806B
+#define GL_PACK_IMAGE_HEIGHT_EXT          0x806C
+#define GL_UNPACK_SKIP_IMAGES_EXT         0x806D
+#define GL_UNPACK_IMAGE_HEIGHT_EXT        0x806E
+#define GL_TEXTURE_3D_EXT                 0x806F
+#define GL_PROXY_TEXTURE_3D_EXT           0x8070
+#define GL_TEXTURE_DEPTH_EXT              0x8071
+#define GL_TEXTURE_WRAP_R_EXT             0x8072
+#define GL_MAX_3D_TEXTURE_SIZE_EXT        0x8073
+typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexImage3DEXT (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+#endif
+#endif /* GL_EXT_texture3D */
+
+#ifndef GL_EXT_texture_array
+#define GL_EXT_texture_array 1
+#define GL_TEXTURE_1D_ARRAY_EXT           0x8C18
+#define GL_PROXY_TEXTURE_1D_ARRAY_EXT     0x8C19
+#define GL_TEXTURE_2D_ARRAY_EXT           0x8C1A
+#define GL_PROXY_TEXTURE_2D_ARRAY_EXT     0x8C1B
+#define GL_TEXTURE_BINDING_1D_ARRAY_EXT   0x8C1C
+#define GL_TEXTURE_BINDING_2D_ARRAY_EXT   0x8C1D
+#define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT   0x88FF
+#define GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E
+#endif /* GL_EXT_texture_array */
+
+#ifndef GL_EXT_texture_buffer_object
+#define GL_EXT_texture_buffer_object 1
+#define GL_TEXTURE_BUFFER_EXT             0x8C2A
+#define GL_MAX_TEXTURE_BUFFER_SIZE_EXT    0x8C2B
+#define GL_TEXTURE_BINDING_BUFFER_EXT     0x8C2C
+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D
+#define GL_TEXTURE_BUFFER_FORMAT_EXT      0x8C2E
+typedef void (APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexBufferEXT (GLenum target, GLenum internalformat, GLuint buffer);
+#endif
+#endif /* GL_EXT_texture_buffer_object */
+
+#ifndef GL_EXT_texture_compression_latc
+#define GL_EXT_texture_compression_latc 1
+#define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70
+#define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71
+#define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72
+#define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73
+#endif /* GL_EXT_texture_compression_latc */
+
+#ifndef GL_EXT_texture_compression_rgtc
+#define GL_EXT_texture_compression_rgtc 1
+#define GL_COMPRESSED_RED_RGTC1_EXT       0x8DBB
+#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC
+#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD
+#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE
+#endif /* GL_EXT_texture_compression_rgtc */
+
+#ifndef GL_EXT_texture_compression_s3tc
+#define GL_EXT_texture_compression_s3tc 1
+#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT   0x83F0
+#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT  0x83F1
+#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT  0x83F2
+#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT  0x83F3
+#endif /* GL_EXT_texture_compression_s3tc */
+
+#ifndef GL_EXT_texture_cube_map
+#define GL_EXT_texture_cube_map 1
+#define GL_NORMAL_MAP_EXT                 0x8511
+#define GL_REFLECTION_MAP_EXT             0x8512
+#define GL_TEXTURE_CUBE_MAP_EXT           0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP_EXT   0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP_EXT     0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT  0x851C
+#endif /* GL_EXT_texture_cube_map */
+
+#ifndef GL_EXT_texture_env_add
+#define GL_EXT_texture_env_add 1
+#endif /* GL_EXT_texture_env_add */
+
+#ifndef GL_EXT_texture_env_combine
+#define GL_EXT_texture_env_combine 1
+#define GL_COMBINE_EXT                    0x8570
+#define GL_COMBINE_RGB_EXT                0x8571
+#define GL_COMBINE_ALPHA_EXT              0x8572
+#define GL_RGB_SCALE_EXT                  0x8573
+#define GL_ADD_SIGNED_EXT                 0x8574
+#define GL_INTERPOLATE_EXT                0x8575
+#define GL_CONSTANT_EXT                   0x8576
+#define GL_PRIMARY_COLOR_EXT              0x8577
+#define GL_PREVIOUS_EXT                   0x8578
+#define GL_SOURCE0_RGB_EXT                0x8580
+#define GL_SOURCE1_RGB_EXT                0x8581
+#define GL_SOURCE2_RGB_EXT                0x8582
+#define GL_SOURCE0_ALPHA_EXT              0x8588
+#define GL_SOURCE1_ALPHA_EXT              0x8589
+#define GL_SOURCE2_ALPHA_EXT              0x858A
+#define GL_OPERAND0_RGB_EXT               0x8590
+#define GL_OPERAND1_RGB_EXT               0x8591
+#define GL_OPERAND2_RGB_EXT               0x8592
+#define GL_OPERAND0_ALPHA_EXT             0x8598
+#define GL_OPERAND1_ALPHA_EXT             0x8599
+#define GL_OPERAND2_ALPHA_EXT             0x859A
+#endif /* GL_EXT_texture_env_combine */
+
+#ifndef GL_EXT_texture_env_dot3
+#define GL_EXT_texture_env_dot3 1
+#define GL_DOT3_RGB_EXT                   0x8740
+#define GL_DOT3_RGBA_EXT                  0x8741
+#endif /* GL_EXT_texture_env_dot3 */
+
+#ifndef GL_EXT_texture_filter_anisotropic
+#define GL_EXT_texture_filter_anisotropic 1
+#define GL_TEXTURE_MAX_ANISOTROPY_EXT     0x84FE
+#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
+#endif /* GL_EXT_texture_filter_anisotropic */
+
+#ifndef GL_EXT_texture_integer
+#define GL_EXT_texture_integer 1
+#define GL_RGBA32UI_EXT                   0x8D70
+#define GL_RGB32UI_EXT                    0x8D71
+#define GL_ALPHA32UI_EXT                  0x8D72
+#define GL_INTENSITY32UI_EXT              0x8D73
+#define GL_LUMINANCE32UI_EXT              0x8D74
+#define GL_LUMINANCE_ALPHA32UI_EXT        0x8D75
+#define GL_RGBA16UI_EXT                   0x8D76
+#define GL_RGB16UI_EXT                    0x8D77
+#define GL_ALPHA16UI_EXT                  0x8D78
+#define GL_INTENSITY16UI_EXT              0x8D79
+#define GL_LUMINANCE16UI_EXT              0x8D7A
+#define GL_LUMINANCE_ALPHA16UI_EXT        0x8D7B
+#define GL_RGBA8UI_EXT                    0x8D7C
+#define GL_RGB8UI_EXT                     0x8D7D
+#define GL_ALPHA8UI_EXT                   0x8D7E
+#define GL_INTENSITY8UI_EXT               0x8D7F
+#define GL_LUMINANCE8UI_EXT               0x8D80
+#define GL_LUMINANCE_ALPHA8UI_EXT         0x8D81
+#define GL_RGBA32I_EXT                    0x8D82
+#define GL_RGB32I_EXT                     0x8D83
+#define GL_ALPHA32I_EXT                   0x8D84
+#define GL_INTENSITY32I_EXT               0x8D85
+#define GL_LUMINANCE32I_EXT               0x8D86
+#define GL_LUMINANCE_ALPHA32I_EXT         0x8D87
+#define GL_RGBA16I_EXT                    0x8D88
+#define GL_RGB16I_EXT                     0x8D89
+#define GL_ALPHA16I_EXT                   0x8D8A
+#define GL_INTENSITY16I_EXT               0x8D8B
+#define GL_LUMINANCE16I_EXT               0x8D8C
+#define GL_LUMINANCE_ALPHA16I_EXT         0x8D8D
+#define GL_RGBA8I_EXT                     0x8D8E
+#define GL_RGB8I_EXT                      0x8D8F
+#define GL_ALPHA8I_EXT                    0x8D90
+#define GL_INTENSITY8I_EXT                0x8D91
+#define GL_LUMINANCE8I_EXT                0x8D92
+#define GL_LUMINANCE_ALPHA8I_EXT          0x8D93
+#define GL_RED_INTEGER_EXT                0x8D94
+#define GL_GREEN_INTEGER_EXT              0x8D95
+#define GL_BLUE_INTEGER_EXT               0x8D96
+#define GL_ALPHA_INTEGER_EXT              0x8D97
+#define GL_RGB_INTEGER_EXT                0x8D98
+#define GL_RGBA_INTEGER_EXT               0x8D99
+#define GL_BGR_INTEGER_EXT                0x8D9A
+#define GL_BGRA_INTEGER_EXT               0x8D9B
+#define GL_LUMINANCE_INTEGER_EXT          0x8D9C
+#define GL_LUMINANCE_ALPHA_INTEGER_EXT    0x8D9D
+#define GL_RGBA_INTEGER_MODE_EXT          0x8D9E
+typedef void (APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha);
+typedef void (APIENTRYP PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexParameterIivEXT (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTexParameterIuivEXT (GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetTexParameterIivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTexParameterIuivEXT (GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glClearColorIiEXT (GLint red, GLint green, GLint blue, GLint alpha);
+GLAPI void APIENTRY glClearColorIuiEXT (GLuint red, GLuint green, GLuint blue, GLuint alpha);
+#endif
+#endif /* GL_EXT_texture_integer */
+
+#ifndef GL_EXT_texture_lod_bias
+#define GL_EXT_texture_lod_bias 1
+#define GL_MAX_TEXTURE_LOD_BIAS_EXT       0x84FD
+#define GL_TEXTURE_FILTER_CONTROL_EXT     0x8500
+#define GL_TEXTURE_LOD_BIAS_EXT           0x8501
+#endif /* GL_EXT_texture_lod_bias */
+
+#ifndef GL_EXT_texture_mirror_clamp
+#define GL_EXT_texture_mirror_clamp 1
+#define GL_MIRROR_CLAMP_EXT               0x8742
+#define GL_MIRROR_CLAMP_TO_EDGE_EXT       0x8743
+#define GL_MIRROR_CLAMP_TO_BORDER_EXT     0x8912
+#endif /* GL_EXT_texture_mirror_clamp */
+
+#ifndef GL_EXT_texture_object
+#define GL_EXT_texture_object 1
+#define GL_TEXTURE_PRIORITY_EXT           0x8066
+#define GL_TEXTURE_RESIDENT_EXT           0x8067
+#define GL_TEXTURE_1D_BINDING_EXT         0x8068
+#define GL_TEXTURE_2D_BINDING_EXT         0x8069
+#define GL_TEXTURE_3D_BINDING_EXT         0x806A
+typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences);
+typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture);
+typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures);
+typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures);
+typedef GLboolean (APIENTRYP PFNGLISTEXTUREEXTPROC) (GLuint texture);
+typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLboolean APIENTRY glAreTexturesResidentEXT (GLsizei n, const GLuint *textures, GLboolean *residences);
+GLAPI void APIENTRY glBindTextureEXT (GLenum target, GLuint texture);
+GLAPI void APIENTRY glDeleteTexturesEXT (GLsizei n, const GLuint *textures);
+GLAPI void APIENTRY glGenTexturesEXT (GLsizei n, GLuint *textures);
+GLAPI GLboolean APIENTRY glIsTextureEXT (GLuint texture);
+GLAPI void APIENTRY glPrioritizeTexturesEXT (GLsizei n, const GLuint *textures, const GLclampf *priorities);
+#endif
+#endif /* GL_EXT_texture_object */
+
+#ifndef GL_EXT_texture_perturb_normal
+#define GL_EXT_texture_perturb_normal 1
+#define GL_PERTURB_EXT                    0x85AE
+#define GL_TEXTURE_NORMAL_EXT             0x85AF
+typedef void (APIENTRYP PFNGLTEXTURENORMALEXTPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTextureNormalEXT (GLenum mode);
+#endif
+#endif /* GL_EXT_texture_perturb_normal */
+
+#ifndef GL_EXT_texture_sRGB
+#define GL_EXT_texture_sRGB 1
+#define GL_SRGB_EXT                       0x8C40
+#define GL_SRGB8_EXT                      0x8C41
+#define GL_SRGB_ALPHA_EXT                 0x8C42
+#define GL_SRGB8_ALPHA8_EXT               0x8C43
+#define GL_SLUMINANCE_ALPHA_EXT           0x8C44
+#define GL_SLUMINANCE8_ALPHA8_EXT         0x8C45
+#define GL_SLUMINANCE_EXT                 0x8C46
+#define GL_SLUMINANCE8_EXT                0x8C47
+#define GL_COMPRESSED_SRGB_EXT            0x8C48
+#define GL_COMPRESSED_SRGB_ALPHA_EXT      0x8C49
+#define GL_COMPRESSED_SLUMINANCE_EXT      0x8C4A
+#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B
+#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT  0x8C4C
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
+#endif /* GL_EXT_texture_sRGB */
+
+#ifndef GL_EXT_texture_sRGB_decode
+#define GL_EXT_texture_sRGB_decode 1
+#define GL_TEXTURE_SRGB_DECODE_EXT        0x8A48
+#define GL_DECODE_EXT                     0x8A49
+#define GL_SKIP_DECODE_EXT                0x8A4A
+#endif /* GL_EXT_texture_sRGB_decode */
+
+#ifndef GL_EXT_texture_shared_exponent
+#define GL_EXT_texture_shared_exponent 1
+#define GL_RGB9_E5_EXT                    0x8C3D
+#define GL_UNSIGNED_INT_5_9_9_9_REV_EXT   0x8C3E
+#define GL_TEXTURE_SHARED_SIZE_EXT        0x8C3F
+#endif /* GL_EXT_texture_shared_exponent */
+
+#ifndef GL_EXT_texture_snorm
+#define GL_EXT_texture_snorm 1
+#define GL_ALPHA_SNORM                    0x9010
+#define GL_LUMINANCE_SNORM                0x9011
+#define GL_LUMINANCE_ALPHA_SNORM          0x9012
+#define GL_INTENSITY_SNORM                0x9013
+#define GL_ALPHA8_SNORM                   0x9014
+#define GL_LUMINANCE8_SNORM               0x9015
+#define GL_LUMINANCE8_ALPHA8_SNORM        0x9016
+#define GL_INTENSITY8_SNORM               0x9017
+#define GL_ALPHA16_SNORM                  0x9018
+#define GL_LUMINANCE16_SNORM              0x9019
+#define GL_LUMINANCE16_ALPHA16_SNORM      0x901A
+#define GL_INTENSITY16_SNORM              0x901B
+#define GL_RED_SNORM                      0x8F90
+#define GL_RG_SNORM                       0x8F91
+#define GL_RGB_SNORM                      0x8F92
+#define GL_RGBA_SNORM                     0x8F93
+#endif /* GL_EXT_texture_snorm */
+
+#ifndef GL_EXT_texture_swizzle
+#define GL_EXT_texture_swizzle 1
+#define GL_TEXTURE_SWIZZLE_R_EXT          0x8E42
+#define GL_TEXTURE_SWIZZLE_G_EXT          0x8E43
+#define GL_TEXTURE_SWIZZLE_B_EXT          0x8E44
+#define GL_TEXTURE_SWIZZLE_A_EXT          0x8E45
+#define GL_TEXTURE_SWIZZLE_RGBA_EXT       0x8E46
+#endif /* GL_EXT_texture_swizzle */
+
+#ifndef GL_EXT_timer_query
+#define GL_EXT_timer_query 1
+#define GL_TIME_ELAPSED_EXT               0x88BF
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64 *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64 *params);
+#endif
+#endif /* GL_EXT_timer_query */
+
+#ifndef GL_EXT_transform_feedback
+#define GL_EXT_transform_feedback 1
+#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT  0x8C8E
+#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84
+#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85
+#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F
+#define GL_INTERLEAVED_ATTRIBS_EXT        0x8C8C
+#define GL_SEPARATE_ATTRIBS_EXT           0x8C8D
+#define GL_PRIMITIVES_GENERATED_EXT       0x8C87
+#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88
+#define GL_RASTERIZER_DISCARD_EXT         0x8C89
+#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80
+#define GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83
+#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F
+#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76
+typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode);
+typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void);
+typedef void (APIENTRYP PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
+typedef void (APIENTRYP PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginTransformFeedbackEXT (GLenum primitiveMode);
+GLAPI void APIENTRY glEndTransformFeedbackEXT (void);
+GLAPI void APIENTRY glBindBufferRangeEXT (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glBindBufferOffsetEXT (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
+GLAPI void APIENTRY glBindBufferBaseEXT (GLenum target, GLuint index, GLuint buffer);
+GLAPI void APIENTRY glTransformFeedbackVaryingsEXT (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
+GLAPI void APIENTRY glGetTransformFeedbackVaryingEXT (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+#endif
+#endif /* GL_EXT_transform_feedback */
+
+#ifndef GL_EXT_vertex_array
+#define GL_EXT_vertex_array 1
+#define GL_VERTEX_ARRAY_EXT               0x8074
+#define GL_NORMAL_ARRAY_EXT               0x8075
+#define GL_COLOR_ARRAY_EXT                0x8076
+#define GL_INDEX_ARRAY_EXT                0x8077
+#define GL_TEXTURE_COORD_ARRAY_EXT        0x8078
+#define GL_EDGE_FLAG_ARRAY_EXT            0x8079
+#define GL_VERTEX_ARRAY_SIZE_EXT          0x807A
+#define GL_VERTEX_ARRAY_TYPE_EXT          0x807B
+#define GL_VERTEX_ARRAY_STRIDE_EXT        0x807C
+#define GL_VERTEX_ARRAY_COUNT_EXT         0x807D
+#define GL_NORMAL_ARRAY_TYPE_EXT          0x807E
+#define GL_NORMAL_ARRAY_STRIDE_EXT        0x807F
+#define GL_NORMAL_ARRAY_COUNT_EXT         0x8080
+#define GL_COLOR_ARRAY_SIZE_EXT           0x8081
+#define GL_COLOR_ARRAY_TYPE_EXT           0x8082
+#define GL_COLOR_ARRAY_STRIDE_EXT         0x8083
+#define GL_COLOR_ARRAY_COUNT_EXT          0x8084
+#define GL_INDEX_ARRAY_TYPE_EXT           0x8085
+#define GL_INDEX_ARRAY_STRIDE_EXT         0x8086
+#define GL_INDEX_ARRAY_COUNT_EXT          0x8087
+#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT   0x8088
+#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT   0x8089
+#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
+#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT  0x808B
+#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT     0x808C
+#define GL_EDGE_FLAG_ARRAY_COUNT_EXT      0x808D
+#define GL_VERTEX_ARRAY_POINTER_EXT       0x808E
+#define GL_NORMAL_ARRAY_POINTER_EXT       0x808F
+#define GL_COLOR_ARRAY_POINTER_EXT        0x8090
+#define GL_INDEX_ARRAY_POINTER_EXT        0x8091
+#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
+#define GL_EDGE_FLAG_ARRAY_POINTER_EXT    0x8093
+typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC) (GLint i);
+typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count);
+typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer);
+typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC) (GLenum pname, void **params);
+typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glArrayElementEXT (GLint i);
+GLAPI void APIENTRY glColorPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+GLAPI void APIENTRY glDrawArraysEXT (GLenum mode, GLint first, GLsizei count);
+GLAPI void APIENTRY glEdgeFlagPointerEXT (GLsizei stride, GLsizei count, const GLboolean *pointer);
+GLAPI void APIENTRY glGetPointervEXT (GLenum pname, void **params);
+GLAPI void APIENTRY glIndexPointerEXT (GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+GLAPI void APIENTRY glNormalPointerEXT (GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+GLAPI void APIENTRY glTexCoordPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+GLAPI void APIENTRY glVertexPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+#endif
+#endif /* GL_EXT_vertex_array */
+
+#ifndef GL_EXT_vertex_array_bgra
+#define GL_EXT_vertex_array_bgra 1
+#endif /* GL_EXT_vertex_array_bgra */
+
+#ifndef GL_EXT_vertex_attrib_64bit
+#define GL_EXT_vertex_attrib_64bit 1
+#define GL_DOUBLE_VEC2_EXT                0x8FFC
+#define GL_DOUBLE_VEC3_EXT                0x8FFD
+#define GL_DOUBLE_VEC4_EXT                0x8FFE
+#define GL_DOUBLE_MAT2_EXT                0x8F46
+#define GL_DOUBLE_MAT3_EXT                0x8F47
+#define GL_DOUBLE_MAT4_EXT                0x8F48
+#define GL_DOUBLE_MAT2x3_EXT              0x8F49
+#define GL_DOUBLE_MAT2x4_EXT              0x8F4A
+#define GL_DOUBLE_MAT3x2_EXT              0x8F4B
+#define GL_DOUBLE_MAT3x4_EXT              0x8F4C
+#define GL_DOUBLE_MAT4x2_EXT              0x8F4D
+#define GL_DOUBLE_MAT4x3_EXT              0x8F4E
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DEXTPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DEXTPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVEXTPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVEXTPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVEXTPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVEXTPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVEXTPROC) (GLuint index, GLenum pname, GLdouble *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribL1dEXT (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttribL2dEXT (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttribL3dEXT (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttribL4dEXT (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttribL1dvEXT (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL2dvEXT (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL3dvEXT (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL4dvEXT (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribLPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glGetVertexAttribLdvEXT (GLuint index, GLenum pname, GLdouble *params);
+#endif
+#endif /* GL_EXT_vertex_attrib_64bit */
+
+#ifndef GL_EXT_vertex_shader
+#define GL_EXT_vertex_shader 1
+#define GL_VERTEX_SHADER_EXT              0x8780
+#define GL_VERTEX_SHADER_BINDING_EXT      0x8781
+#define GL_OP_INDEX_EXT                   0x8782
+#define GL_OP_NEGATE_EXT                  0x8783
+#define GL_OP_DOT3_EXT                    0x8784
+#define GL_OP_DOT4_EXT                    0x8785
+#define GL_OP_MUL_EXT                     0x8786
+#define GL_OP_ADD_EXT                     0x8787
+#define GL_OP_MADD_EXT                    0x8788
+#define GL_OP_FRAC_EXT                    0x8789
+#define GL_OP_MAX_EXT                     0x878A
+#define GL_OP_MIN_EXT                     0x878B
+#define GL_OP_SET_GE_EXT                  0x878C
+#define GL_OP_SET_LT_EXT                  0x878D
+#define GL_OP_CLAMP_EXT                   0x878E
+#define GL_OP_FLOOR_EXT                   0x878F
+#define GL_OP_ROUND_EXT                   0x8790
+#define GL_OP_EXP_BASE_2_EXT              0x8791
+#define GL_OP_LOG_BASE_2_EXT              0x8792
+#define GL_OP_POWER_EXT                   0x8793
+#define GL_OP_RECIP_EXT                   0x8794
+#define GL_OP_RECIP_SQRT_EXT              0x8795
+#define GL_OP_SUB_EXT                     0x8796
+#define GL_OP_CROSS_PRODUCT_EXT           0x8797
+#define GL_OP_MULTIPLY_MATRIX_EXT         0x8798
+#define GL_OP_MOV_EXT                     0x8799
+#define GL_OUTPUT_VERTEX_EXT              0x879A
+#define GL_OUTPUT_COLOR0_EXT              0x879B
+#define GL_OUTPUT_COLOR1_EXT              0x879C
+#define GL_OUTPUT_TEXTURE_COORD0_EXT      0x879D
+#define GL_OUTPUT_TEXTURE_COORD1_EXT      0x879E
+#define GL_OUTPUT_TEXTURE_COORD2_EXT      0x879F
+#define GL_OUTPUT_TEXTURE_COORD3_EXT      0x87A0
+#define GL_OUTPUT_TEXTURE_COORD4_EXT      0x87A1
+#define GL_OUTPUT_TEXTURE_COORD5_EXT      0x87A2
+#define GL_OUTPUT_TEXTURE_COORD6_EXT      0x87A3
+#define GL_OUTPUT_TEXTURE_COORD7_EXT      0x87A4
+#define GL_OUTPUT_TEXTURE_COORD8_EXT      0x87A5
+#define GL_OUTPUT_TEXTURE_COORD9_EXT      0x87A6
+#define GL_OUTPUT_TEXTURE_COORD10_EXT     0x87A7
+#define GL_OUTPUT_TEXTURE_COORD11_EXT     0x87A8
+#define GL_OUTPUT_TEXTURE_COORD12_EXT     0x87A9
+#define GL_OUTPUT_TEXTURE_COORD13_EXT     0x87AA
+#define GL_OUTPUT_TEXTURE_COORD14_EXT     0x87AB
+#define GL_OUTPUT_TEXTURE_COORD15_EXT     0x87AC
+#define GL_OUTPUT_TEXTURE_COORD16_EXT     0x87AD
+#define GL_OUTPUT_TEXTURE_COORD17_EXT     0x87AE
+#define GL_OUTPUT_TEXTURE_COORD18_EXT     0x87AF
+#define GL_OUTPUT_TEXTURE_COORD19_EXT     0x87B0
+#define GL_OUTPUT_TEXTURE_COORD20_EXT     0x87B1
+#define GL_OUTPUT_TEXTURE_COORD21_EXT     0x87B2
+#define GL_OUTPUT_TEXTURE_COORD22_EXT     0x87B3
+#define GL_OUTPUT_TEXTURE_COORD23_EXT     0x87B4
+#define GL_OUTPUT_TEXTURE_COORD24_EXT     0x87B5
+#define GL_OUTPUT_TEXTURE_COORD25_EXT     0x87B6
+#define GL_OUTPUT_TEXTURE_COORD26_EXT     0x87B7
+#define GL_OUTPUT_TEXTURE_COORD27_EXT     0x87B8
+#define GL_OUTPUT_TEXTURE_COORD28_EXT     0x87B9
+#define GL_OUTPUT_TEXTURE_COORD29_EXT     0x87BA
+#define GL_OUTPUT_TEXTURE_COORD30_EXT     0x87BB
+#define GL_OUTPUT_TEXTURE_COORD31_EXT     0x87BC
+#define GL_OUTPUT_FOG_EXT                 0x87BD
+#define GL_SCALAR_EXT                     0x87BE
+#define GL_VECTOR_EXT                     0x87BF
+#define GL_MATRIX_EXT                     0x87C0
+#define GL_VARIANT_EXT                    0x87C1
+#define GL_INVARIANT_EXT                  0x87C2
+#define GL_LOCAL_CONSTANT_EXT             0x87C3
+#define GL_LOCAL_EXT                      0x87C4
+#define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5
+#define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6
+#define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7
+#define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8
+#define GL_MAX_VERTEX_SHADER_LOCALS_EXT   0x87C9
+#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA
+#define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB
+#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC
+#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CD
+#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE
+#define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF
+#define GL_VERTEX_SHADER_VARIANTS_EXT     0x87D0
+#define GL_VERTEX_SHADER_INVARIANTS_EXT   0x87D1
+#define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2
+#define GL_VERTEX_SHADER_LOCALS_EXT       0x87D3
+#define GL_VERTEX_SHADER_OPTIMIZED_EXT    0x87D4
+#define GL_X_EXT                          0x87D5
+#define GL_Y_EXT                          0x87D6
+#define GL_Z_EXT                          0x87D7
+#define GL_W_EXT                          0x87D8
+#define GL_NEGATIVE_X_EXT                 0x87D9
+#define GL_NEGATIVE_Y_EXT                 0x87DA
+#define GL_NEGATIVE_Z_EXT                 0x87DB
+#define GL_NEGATIVE_W_EXT                 0x87DC
+#define GL_ZERO_EXT                       0x87DD
+#define GL_ONE_EXT                        0x87DE
+#define GL_NEGATIVE_ONE_EXT               0x87DF
+#define GL_NORMALIZED_RANGE_EXT           0x87E0
+#define GL_FULL_RANGE_EXT                 0x87E1
+#define GL_CURRENT_VERTEX_EXT             0x87E2
+#define GL_MVP_MATRIX_EXT                 0x87E3
+#define GL_VARIANT_VALUE_EXT              0x87E4
+#define GL_VARIANT_DATATYPE_EXT           0x87E5
+#define GL_VARIANT_ARRAY_STRIDE_EXT       0x87E6
+#define GL_VARIANT_ARRAY_TYPE_EXT         0x87E7
+#define GL_VARIANT_ARRAY_EXT              0x87E8
+#define GL_VARIANT_ARRAY_POINTER_EXT      0x87E9
+#define GL_INVARIANT_VALUE_EXT            0x87EA
+#define GL_INVARIANT_DATATYPE_EXT         0x87EB
+#define GL_LOCAL_CONSTANT_VALUE_EXT       0x87EC
+#define GL_LOCAL_CONSTANT_DATATYPE_EXT    0x87ED
+typedef void (APIENTRYP PFNGLBEGINVERTEXSHADEREXTPROC) (void);
+typedef void (APIENTRYP PFNGLENDVERTEXSHADEREXTPROC) (void);
+typedef void (APIENTRYP PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id);
+typedef GLuint (APIENTRYP PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range);
+typedef void (APIENTRYP PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1);
+typedef void (APIENTRYP PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
+typedef void (APIENTRYP PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
+typedef void (APIENTRYP PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
+typedef void (APIENTRYP PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
+typedef void (APIENTRYP PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num);
+typedef void (APIENTRYP PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num);
+typedef GLuint (APIENTRYP PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components);
+typedef void (APIENTRYP PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const void *addr);
+typedef void (APIENTRYP PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const void *addr);
+typedef void (APIENTRYP PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr);
+typedef void (APIENTRYP PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr);
+typedef void (APIENTRYP PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr);
+typedef void (APIENTRYP PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr);
+typedef void (APIENTRYP PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr);
+typedef void (APIENTRYP PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr);
+typedef void (APIENTRYP PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr);
+typedef void (APIENTRYP PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr);
+typedef void (APIENTRYP PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const void *addr);
+typedef void (APIENTRYP PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id);
+typedef GLuint (APIENTRYP PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value);
+typedef GLuint (APIENTRYP PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value);
+typedef GLuint (APIENTRYP PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value);
+typedef GLuint (APIENTRYP PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value);
+typedef GLuint (APIENTRYP PFNGLBINDPARAMETEREXTPROC) (GLenum value);
+typedef GLboolean (APIENTRYP PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap);
+typedef void (APIENTRYP PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
+typedef void (APIENTRYP PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
+typedef void (APIENTRYP PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, void **data);
+typedef void (APIENTRYP PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
+typedef void (APIENTRYP PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
+typedef void (APIENTRYP PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
+typedef void (APIENTRYP PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
+typedef void (APIENTRYP PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginVertexShaderEXT (void);
+GLAPI void APIENTRY glEndVertexShaderEXT (void);
+GLAPI void APIENTRY glBindVertexShaderEXT (GLuint id);
+GLAPI GLuint APIENTRY glGenVertexShadersEXT (GLuint range);
+GLAPI void APIENTRY glDeleteVertexShaderEXT (GLuint id);
+GLAPI void APIENTRY glShaderOp1EXT (GLenum op, GLuint res, GLuint arg1);
+GLAPI void APIENTRY glShaderOp2EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
+GLAPI void APIENTRY glShaderOp3EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
+GLAPI void APIENTRY glSwizzleEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
+GLAPI void APIENTRY glWriteMaskEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
+GLAPI void APIENTRY glInsertComponentEXT (GLuint res, GLuint src, GLuint num);
+GLAPI void APIENTRY glExtractComponentEXT (GLuint res, GLuint src, GLuint num);
+GLAPI GLuint APIENTRY glGenSymbolsEXT (GLenum datatype, GLenum storagetype, GLenum range, GLuint components);
+GLAPI void APIENTRY glSetInvariantEXT (GLuint id, GLenum type, const void *addr);
+GLAPI void APIENTRY glSetLocalConstantEXT (GLuint id, GLenum type, const void *addr);
+GLAPI void APIENTRY glVariantbvEXT (GLuint id, const GLbyte *addr);
+GLAPI void APIENTRY glVariantsvEXT (GLuint id, const GLshort *addr);
+GLAPI void APIENTRY glVariantivEXT (GLuint id, const GLint *addr);
+GLAPI void APIENTRY glVariantfvEXT (GLuint id, const GLfloat *addr);
+GLAPI void APIENTRY glVariantdvEXT (GLuint id, const GLdouble *addr);
+GLAPI void APIENTRY glVariantubvEXT (GLuint id, const GLubyte *addr);
+GLAPI void APIENTRY glVariantusvEXT (GLuint id, const GLushort *addr);
+GLAPI void APIENTRY glVariantuivEXT (GLuint id, const GLuint *addr);
+GLAPI void APIENTRY glVariantPointerEXT (GLuint id, GLenum type, GLuint stride, const void *addr);
+GLAPI void APIENTRY glEnableVariantClientStateEXT (GLuint id);
+GLAPI void APIENTRY glDisableVariantClientStateEXT (GLuint id);
+GLAPI GLuint APIENTRY glBindLightParameterEXT (GLenum light, GLenum value);
+GLAPI GLuint APIENTRY glBindMaterialParameterEXT (GLenum face, GLenum value);
+GLAPI GLuint APIENTRY glBindTexGenParameterEXT (GLenum unit, GLenum coord, GLenum value);
+GLAPI GLuint APIENTRY glBindTextureUnitParameterEXT (GLenum unit, GLenum value);
+GLAPI GLuint APIENTRY glBindParameterEXT (GLenum value);
+GLAPI GLboolean APIENTRY glIsVariantEnabledEXT (GLuint id, GLenum cap);
+GLAPI void APIENTRY glGetVariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
+GLAPI void APIENTRY glGetVariantIntegervEXT (GLuint id, GLenum value, GLint *data);
+GLAPI void APIENTRY glGetVariantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
+GLAPI void APIENTRY glGetVariantPointervEXT (GLuint id, GLenum value, void **data);
+GLAPI void APIENTRY glGetInvariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
+GLAPI void APIENTRY glGetInvariantIntegervEXT (GLuint id, GLenum value, GLint *data);
+GLAPI void APIENTRY glGetInvariantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
+GLAPI void APIENTRY glGetLocalConstantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
+GLAPI void APIENTRY glGetLocalConstantIntegervEXT (GLuint id, GLenum value, GLint *data);
+GLAPI void APIENTRY glGetLocalConstantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
+#endif
+#endif /* GL_EXT_vertex_shader */
+
+#ifndef GL_EXT_vertex_weighting
+#define GL_EXT_vertex_weighting 1
+#define GL_MODELVIEW0_STACK_DEPTH_EXT     0x0BA3
+#define GL_MODELVIEW1_STACK_DEPTH_EXT     0x8502
+#define GL_MODELVIEW0_MATRIX_EXT          0x0BA6
+#define GL_MODELVIEW1_MATRIX_EXT          0x8506
+#define GL_VERTEX_WEIGHTING_EXT           0x8509
+#define GL_MODELVIEW0_EXT                 0x1700
+#define GL_MODELVIEW1_EXT                 0x850A
+#define GL_CURRENT_VERTEX_WEIGHT_EXT      0x850B
+#define GL_VERTEX_WEIGHT_ARRAY_EXT        0x850C
+#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT   0x850D
+#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT   0x850E
+#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F
+#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510
+typedef void (APIENTRYP PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight);
+typedef void (APIENTRYP PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight);
+typedef void (APIENTRYP PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexWeightfEXT (GLfloat weight);
+GLAPI void APIENTRY glVertexWeightfvEXT (const GLfloat *weight);
+GLAPI void APIENTRY glVertexWeightPointerEXT (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_EXT_vertex_weighting */
+
+#ifndef GL_EXT_x11_sync_object
+#define GL_EXT_x11_sync_object 1
+#define GL_SYNC_X11_FENCE_EXT             0x90E1
+typedef GLsync (APIENTRYP PFNGLIMPORTSYNCEXTPROC) (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLsync APIENTRY glImportSyncEXT (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags);
+#endif
+#endif /* GL_EXT_x11_sync_object */
+
+#ifndef GL_GREMEDY_frame_terminator
+#define GL_GREMEDY_frame_terminator 1
+typedef void (APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFrameTerminatorGREMEDY (void);
+#endif
+#endif /* GL_GREMEDY_frame_terminator */
+
+#ifndef GL_GREMEDY_string_marker
+#define GL_GREMEDY_string_marker 1
+typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const void *string);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glStringMarkerGREMEDY (GLsizei len, const void *string);
+#endif
+#endif /* GL_GREMEDY_string_marker */
+
+#ifndef GL_HP_convolution_border_modes
+#define GL_HP_convolution_border_modes 1
+#define GL_IGNORE_BORDER_HP               0x8150
+#define GL_CONSTANT_BORDER_HP             0x8151
+#define GL_REPLICATE_BORDER_HP            0x8153
+#define GL_CONVOLUTION_BORDER_COLOR_HP    0x8154
+#endif /* GL_HP_convolution_border_modes */
+
+#ifndef GL_HP_image_transform
+#define GL_HP_image_transform 1
+#define GL_IMAGE_SCALE_X_HP               0x8155
+#define GL_IMAGE_SCALE_Y_HP               0x8156
+#define GL_IMAGE_TRANSLATE_X_HP           0x8157
+#define GL_IMAGE_TRANSLATE_Y_HP           0x8158
+#define GL_IMAGE_ROTATE_ANGLE_HP          0x8159
+#define GL_IMAGE_ROTATE_ORIGIN_X_HP       0x815A
+#define GL_IMAGE_ROTATE_ORIGIN_Y_HP       0x815B
+#define GL_IMAGE_MAG_FILTER_HP            0x815C
+#define GL_IMAGE_MIN_FILTER_HP            0x815D
+#define GL_IMAGE_CUBIC_WEIGHT_HP          0x815E
+#define GL_CUBIC_HP                       0x815F
+#define GL_AVERAGE_HP                     0x8160
+#define GL_IMAGE_TRANSFORM_2D_HP          0x8161
+#define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162
+#define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163
+typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glImageTransformParameteriHP (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glImageTransformParameterfHP (GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glImageTransformParameterivHP (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glImageTransformParameterfvHP (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetImageTransformParameterivHP (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetImageTransformParameterfvHP (GLenum target, GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_HP_image_transform */
+
+#ifndef GL_HP_occlusion_test
+#define GL_HP_occlusion_test 1
+#define GL_OCCLUSION_TEST_HP              0x8165
+#define GL_OCCLUSION_TEST_RESULT_HP       0x8166
+#endif /* GL_HP_occlusion_test */
+
+#ifndef GL_HP_texture_lighting
+#define GL_HP_texture_lighting 1
+#define GL_TEXTURE_LIGHTING_MODE_HP       0x8167
+#define GL_TEXTURE_POST_SPECULAR_HP       0x8168
+#define GL_TEXTURE_PRE_SPECULAR_HP        0x8169
+#endif /* GL_HP_texture_lighting */
+
+#ifndef GL_IBM_cull_vertex
+#define GL_IBM_cull_vertex 1
+#define GL_CULL_VERTEX_IBM                103050
+#endif /* GL_IBM_cull_vertex */
+
+#ifndef GL_IBM_multimode_draw_arrays
+#define GL_IBM_multimode_draw_arrays 1
+typedef void (APIENTRYP PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride);
+typedef void (APIENTRYP PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, GLint modestride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiModeDrawArraysIBM (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride);
+GLAPI void APIENTRY glMultiModeDrawElementsIBM (const GLenum *mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, GLint modestride);
+#endif
+#endif /* GL_IBM_multimode_draw_arrays */
+
+#ifndef GL_IBM_rasterpos_clip
+#define GL_IBM_rasterpos_clip 1
+#define GL_RASTER_POSITION_UNCLIPPED_IBM  0x19262
+#endif /* GL_IBM_rasterpos_clip */
+
+#ifndef GL_IBM_static_data
+#define GL_IBM_static_data 1
+#define GL_ALL_STATIC_DATA_IBM            103060
+#define GL_STATIC_VERTEX_ARRAY_IBM        103061
+typedef void (APIENTRYP PFNGLFLUSHSTATICDATAIBMPROC) (GLenum target);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFlushStaticDataIBM (GLenum target);
+#endif
+#endif /* GL_IBM_static_data */
+
+#ifndef GL_IBM_texture_mirrored_repeat
+#define GL_IBM_texture_mirrored_repeat 1
+#define GL_MIRRORED_REPEAT_IBM            0x8370
+#endif /* GL_IBM_texture_mirrored_repeat */
+
+#ifndef GL_IBM_vertex_array_lists
+#define GL_IBM_vertex_array_lists 1
+#define GL_VERTEX_ARRAY_LIST_IBM          103070
+#define GL_NORMAL_ARRAY_LIST_IBM          103071
+#define GL_COLOR_ARRAY_LIST_IBM           103072
+#define GL_INDEX_ARRAY_LIST_IBM           103073
+#define GL_TEXTURE_COORD_ARRAY_LIST_IBM   103074
+#define GL_EDGE_FLAG_ARRAY_LIST_IBM       103075
+#define GL_FOG_COORDINATE_ARRAY_LIST_IBM  103076
+#define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077
+#define GL_VERTEX_ARRAY_LIST_STRIDE_IBM   103080
+#define GL_NORMAL_ARRAY_LIST_STRIDE_IBM   103081
+#define GL_COLOR_ARRAY_LIST_STRIDE_IBM    103082
+#define GL_INDEX_ARRAY_LIST_STRIDE_IBM    103083
+#define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084
+#define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085
+#define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086
+#define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087
+typedef void (APIENTRYP PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glSecondaryColorPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glEdgeFlagPointerListIBM (GLint stride, const GLboolean **pointer, GLint ptrstride);
+GLAPI void APIENTRY glFogCoordPointerListIBM (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glIndexPointerListIBM (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glNormalPointerListIBM (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glTexCoordPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glVertexPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+#endif
+#endif /* GL_IBM_vertex_array_lists */
+
+#ifndef GL_INGR_blend_func_separate
+#define GL_INGR_blend_func_separate 1
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendFuncSeparateINGR (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+#endif
+#endif /* GL_INGR_blend_func_separate */
+
+#ifndef GL_INGR_color_clamp
+#define GL_INGR_color_clamp 1
+#define GL_RED_MIN_CLAMP_INGR             0x8560
+#define GL_GREEN_MIN_CLAMP_INGR           0x8561
+#define GL_BLUE_MIN_CLAMP_INGR            0x8562
+#define GL_ALPHA_MIN_CLAMP_INGR           0x8563
+#define GL_RED_MAX_CLAMP_INGR             0x8564
+#define GL_GREEN_MAX_CLAMP_INGR           0x8565
+#define GL_BLUE_MAX_CLAMP_INGR            0x8566
+#define GL_ALPHA_MAX_CLAMP_INGR           0x8567
+#endif /* GL_INGR_color_clamp */
+
+#ifndef GL_INGR_interlace_read
+#define GL_INGR_interlace_read 1
+#define GL_INTERLACE_READ_INGR            0x8568
+#endif /* GL_INGR_interlace_read */
+
+#ifndef GL_INTEL_fragment_shader_ordering
+#define GL_INTEL_fragment_shader_ordering 1
+#endif /* GL_INTEL_fragment_shader_ordering */
+
+#ifndef GL_INTEL_map_texture
+#define GL_INTEL_map_texture 1
+#define GL_TEXTURE_MEMORY_LAYOUT_INTEL    0x83FF
+#define GL_LAYOUT_DEFAULT_INTEL           0
+#define GL_LAYOUT_LINEAR_INTEL            1
+#define GL_LAYOUT_LINEAR_CPU_CACHED_INTEL 2
+typedef void (APIENTRYP PFNGLSYNCTEXTUREINTELPROC) (GLuint texture);
+typedef void (APIENTRYP PFNGLUNMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level);
+typedef void *(APIENTRYP PFNGLMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level, GLbitfield access, GLint *stride, GLenum *layout);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSyncTextureINTEL (GLuint texture);
+GLAPI void APIENTRY glUnmapTexture2DINTEL (GLuint texture, GLint level);
+GLAPI void *APIENTRY glMapTexture2DINTEL (GLuint texture, GLint level, GLbitfield access, GLint *stride, GLenum *layout);
+#endif
+#endif /* GL_INTEL_map_texture */
+
+#ifndef GL_INTEL_parallel_arrays
+#define GL_INTEL_parallel_arrays 1
+#define GL_PARALLEL_ARRAYS_INTEL          0x83F4
+#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5
+#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6
+#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7
+#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8
+typedef void (APIENTRYP PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const void **pointer);
+typedef void (APIENTRYP PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const void **pointer);
+typedef void (APIENTRYP PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const void **pointer);
+typedef void (APIENTRYP PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const void **pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexPointervINTEL (GLint size, GLenum type, const void **pointer);
+GLAPI void APIENTRY glNormalPointervINTEL (GLenum type, const void **pointer);
+GLAPI void APIENTRY glColorPointervINTEL (GLint size, GLenum type, const void **pointer);
+GLAPI void APIENTRY glTexCoordPointervINTEL (GLint size, GLenum type, const void **pointer);
+#endif
+#endif /* GL_INTEL_parallel_arrays */
+
+#ifndef GL_INTEL_performance_query
+#define GL_INTEL_performance_query 1
+#define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000
+#define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001
+#define GL_PERFQUERY_WAIT_INTEL           0x83FB
+#define GL_PERFQUERY_FLUSH_INTEL          0x83FA
+#define GL_PERFQUERY_DONOT_FLUSH_INTEL    0x83F9
+#define GL_PERFQUERY_COUNTER_EVENT_INTEL  0x94F0
+#define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1
+#define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2
+#define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3
+#define GL_PERFQUERY_COUNTER_RAW_INTEL    0x94F4
+#define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5
+#define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8
+#define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9
+#define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA
+#define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB
+#define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC
+#define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD
+#define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE
+#define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF
+#define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500
+typedef void (APIENTRYP PFNGLBEGINPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (APIENTRYP PFNGLCREATEPERFQUERYINTELPROC) (GLuint queryId, GLuint *queryHandle);
+typedef void (APIENTRYP PFNGLDELETEPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (APIENTRYP PFNGLENDPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC) (GLuint *queryId);
+typedef void (APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC) (GLuint queryId, GLuint *nextQueryId);
+typedef void (APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC) (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
+typedef void (APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC) (GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid *data, GLuint *bytesWritten);
+typedef void (APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC) (GLchar *queryName, GLuint *queryId);
+typedef void (APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC) (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginPerfQueryINTEL (GLuint queryHandle);
+GLAPI void APIENTRY glCreatePerfQueryINTEL (GLuint queryId, GLuint *queryHandle);
+GLAPI void APIENTRY glDeletePerfQueryINTEL (GLuint queryHandle);
+GLAPI void APIENTRY glEndPerfQueryINTEL (GLuint queryHandle);
+GLAPI void APIENTRY glGetFirstPerfQueryIdINTEL (GLuint *queryId);
+GLAPI void APIENTRY glGetNextPerfQueryIdINTEL (GLuint queryId, GLuint *nextQueryId);
+GLAPI void APIENTRY glGetPerfCounterInfoINTEL (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
+GLAPI void APIENTRY glGetPerfQueryDataINTEL (GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid *data, GLuint *bytesWritten);
+GLAPI void APIENTRY glGetPerfQueryIdByNameINTEL (GLchar *queryName, GLuint *queryId);
+GLAPI void APIENTRY glGetPerfQueryInfoINTEL (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
+#endif
+#endif /* GL_INTEL_performance_query */
+
+#ifndef GL_MESAX_texture_stack
+#define GL_MESAX_texture_stack 1
+#define GL_TEXTURE_1D_STACK_MESAX         0x8759
+#define GL_TEXTURE_2D_STACK_MESAX         0x875A
+#define GL_PROXY_TEXTURE_1D_STACK_MESAX   0x875B
+#define GL_PROXY_TEXTURE_2D_STACK_MESAX   0x875C
+#define GL_TEXTURE_1D_STACK_BINDING_MESAX 0x875D
+#define GL_TEXTURE_2D_STACK_BINDING_MESAX 0x875E
+#endif /* GL_MESAX_texture_stack */
+
+#ifndef GL_MESA_pack_invert
+#define GL_MESA_pack_invert 1
+#define GL_PACK_INVERT_MESA               0x8758
+#endif /* GL_MESA_pack_invert */
+
+#ifndef GL_MESA_resize_buffers
+#define GL_MESA_resize_buffers 1
+typedef void (APIENTRYP PFNGLRESIZEBUFFERSMESAPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glResizeBuffersMESA (void);
+#endif
+#endif /* GL_MESA_resize_buffers */
+
+#ifndef GL_MESA_window_pos
+#define GL_MESA_window_pos 1
+typedef void (APIENTRYP PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glWindowPos2dMESA (GLdouble x, GLdouble y);
+GLAPI void APIENTRY glWindowPos2dvMESA (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos2fMESA (GLfloat x, GLfloat y);
+GLAPI void APIENTRY glWindowPos2fvMESA (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos2iMESA (GLint x, GLint y);
+GLAPI void APIENTRY glWindowPos2ivMESA (const GLint *v);
+GLAPI void APIENTRY glWindowPos2sMESA (GLshort x, GLshort y);
+GLAPI void APIENTRY glWindowPos2svMESA (const GLshort *v);
+GLAPI void APIENTRY glWindowPos3dMESA (GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glWindowPos3dvMESA (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos3fMESA (GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glWindowPos3fvMESA (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos3iMESA (GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glWindowPos3ivMESA (const GLint *v);
+GLAPI void APIENTRY glWindowPos3sMESA (GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glWindowPos3svMESA (const GLshort *v);
+GLAPI void APIENTRY glWindowPos4dMESA (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glWindowPos4dvMESA (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos4fMESA (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glWindowPos4fvMESA (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos4iMESA (GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glWindowPos4ivMESA (const GLint *v);
+GLAPI void APIENTRY glWindowPos4sMESA (GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glWindowPos4svMESA (const GLshort *v);
+#endif
+#endif /* GL_MESA_window_pos */
+
+#ifndef GL_MESA_ycbcr_texture
+#define GL_MESA_ycbcr_texture 1
+#define GL_UNSIGNED_SHORT_8_8_MESA        0x85BA
+#define GL_UNSIGNED_SHORT_8_8_REV_MESA    0x85BB
+#define GL_YCBCR_MESA                     0x8757
+#endif /* GL_MESA_ycbcr_texture */
+
+#ifndef GL_NVX_conditional_render
+#define GL_NVX_conditional_render 1
+typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVXPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVXPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginConditionalRenderNVX (GLuint id);
+GLAPI void APIENTRY glEndConditionalRenderNVX (void);
+#endif
+#endif /* GL_NVX_conditional_render */
+
+#ifndef GL_NVX_gpu_memory_info
+#define GL_NVX_gpu_memory_info 1
+#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047
+#define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX 0x9048
+#define GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX 0x9049
+#define GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX 0x904A
+#define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX 0x904B
+#endif /* GL_NVX_gpu_memory_info */
+
+#ifndef GL_NV_bindless_multi_draw_indirect
+#define GL_NV_bindless_multi_draw_indirect 1
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+#endif
+#endif /* GL_NV_bindless_multi_draw_indirect */
+
+#ifndef GL_NV_bindless_texture
+#define GL_NV_bindless_texture 1
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLENVPROC) (GLuint texture);
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC) (GLuint texture, GLuint sampler);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC) (GLuint64 handle);
+typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLENVPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC) (GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC) (GLuint program, GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
+typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint64 APIENTRY glGetTextureHandleNV (GLuint texture);
+GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleNV (GLuint texture, GLuint sampler);
+GLAPI void APIENTRY glMakeTextureHandleResidentNV (GLuint64 handle);
+GLAPI void APIENTRY glMakeTextureHandleNonResidentNV (GLuint64 handle);
+GLAPI GLuint64 APIENTRY glGetImageHandleNV (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+GLAPI void APIENTRY glMakeImageHandleResidentNV (GLuint64 handle, GLenum access);
+GLAPI void APIENTRY glMakeImageHandleNonResidentNV (GLuint64 handle);
+GLAPI void APIENTRY glUniformHandleui64NV (GLint location, GLuint64 value);
+GLAPI void APIENTRY glUniformHandleui64vNV (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniformHandleui64NV (GLuint program, GLint location, GLuint64 value);
+GLAPI void APIENTRY glProgramUniformHandleui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+GLAPI GLboolean APIENTRY glIsTextureHandleResidentNV (GLuint64 handle);
+GLAPI GLboolean APIENTRY glIsImageHandleResidentNV (GLuint64 handle);
+#endif
+#endif /* GL_NV_bindless_texture */
+
+#ifndef GL_NV_blend_equation_advanced
+#define GL_NV_blend_equation_advanced 1
+#define GL_BLEND_OVERLAP_NV               0x9281
+#define GL_BLEND_PREMULTIPLIED_SRC_NV     0x9280
+#define GL_BLUE_NV                        0x1905
+#define GL_COLORBURN_NV                   0x929A
+#define GL_COLORDODGE_NV                  0x9299
+#define GL_CONJOINT_NV                    0x9284
+#define GL_CONTRAST_NV                    0x92A1
+#define GL_DARKEN_NV                      0x9297
+#define GL_DIFFERENCE_NV                  0x929E
+#define GL_DISJOINT_NV                    0x9283
+#define GL_DST_ATOP_NV                    0x928F
+#define GL_DST_IN_NV                      0x928B
+#define GL_DST_NV                         0x9287
+#define GL_DST_OUT_NV                     0x928D
+#define GL_DST_OVER_NV                    0x9289
+#define GL_EXCLUSION_NV                   0x92A0
+#define GL_GREEN_NV                       0x1904
+#define GL_HARDLIGHT_NV                   0x929B
+#define GL_HARDMIX_NV                     0x92A9
+#define GL_HSL_COLOR_NV                   0x92AF
+#define GL_HSL_HUE_NV                     0x92AD
+#define GL_HSL_LUMINOSITY_NV              0x92B0
+#define GL_HSL_SATURATION_NV              0x92AE
+#define GL_INVERT_OVG_NV                  0x92B4
+#define GL_INVERT_RGB_NV                  0x92A3
+#define GL_LIGHTEN_NV                     0x9298
+#define GL_LINEARBURN_NV                  0x92A5
+#define GL_LINEARDODGE_NV                 0x92A4
+#define GL_LINEARLIGHT_NV                 0x92A7
+#define GL_MINUS_CLAMPED_NV               0x92B3
+#define GL_MINUS_NV                       0x929F
+#define GL_MULTIPLY_NV                    0x9294
+#define GL_OVERLAY_NV                     0x9296
+#define GL_PINLIGHT_NV                    0x92A8
+#define GL_PLUS_CLAMPED_ALPHA_NV          0x92B2
+#define GL_PLUS_CLAMPED_NV                0x92B1
+#define GL_PLUS_DARKER_NV                 0x9292
+#define GL_PLUS_NV                        0x9291
+#define GL_RED_NV                         0x1903
+#define GL_SCREEN_NV                      0x9295
+#define GL_SOFTLIGHT_NV                   0x929C
+#define GL_SRC_ATOP_NV                    0x928E
+#define GL_SRC_IN_NV                      0x928A
+#define GL_SRC_NV                         0x9286
+#define GL_SRC_OUT_NV                     0x928C
+#define GL_SRC_OVER_NV                    0x9288
+#define GL_UNCORRELATED_NV                0x9282
+#define GL_VIVIDLIGHT_NV                  0x92A6
+#define GL_XOR_NV                         0x1506
+typedef void (APIENTRYP PFNGLBLENDPARAMETERINVPROC) (GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLBLENDBARRIERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendParameteriNV (GLenum pname, GLint value);
+GLAPI void APIENTRY glBlendBarrierNV (void);
+#endif
+#endif /* GL_NV_blend_equation_advanced */
+
+#ifndef GL_NV_blend_equation_advanced_coherent
+#define GL_NV_blend_equation_advanced_coherent 1
+#define GL_BLEND_ADVANCED_COHERENT_NV     0x9285
+#endif /* GL_NV_blend_equation_advanced_coherent */
+
+#ifndef GL_NV_blend_square
+#define GL_NV_blend_square 1
+#endif /* GL_NV_blend_square */
+
+#ifndef GL_NV_compute_program5
+#define GL_NV_compute_program5 1
+#define GL_COMPUTE_PROGRAM_NV             0x90FB
+#define GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV 0x90FC
+#endif /* GL_NV_compute_program5 */
+
+#ifndef GL_NV_conditional_render
+#define GL_NV_conditional_render 1
+#define GL_QUERY_WAIT_NV                  0x8E13
+#define GL_QUERY_NO_WAIT_NV               0x8E14
+#define GL_QUERY_BY_REGION_WAIT_NV        0x8E15
+#define GL_QUERY_BY_REGION_NO_WAIT_NV     0x8E16
+typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode);
+typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginConditionalRenderNV (GLuint id, GLenum mode);
+GLAPI void APIENTRY glEndConditionalRenderNV (void);
+#endif
+#endif /* GL_NV_conditional_render */
+
+#ifndef GL_NV_copy_depth_to_color
+#define GL_NV_copy_depth_to_color 1
+#define GL_DEPTH_STENCIL_TO_RGBA_NV       0x886E
+#define GL_DEPTH_STENCIL_TO_BGRA_NV       0x886F
+#endif /* GL_NV_copy_depth_to_color */
+
+#ifndef GL_NV_copy_image
+#define GL_NV_copy_image 1
+typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATANVPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCopyImageSubDataNV (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
+#endif
+#endif /* GL_NV_copy_image */
+
+#ifndef GL_NV_deep_texture3D
+#define GL_NV_deep_texture3D 1
+#define GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV 0x90D0
+#define GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV   0x90D1
+#endif /* GL_NV_deep_texture3D */
+
+#ifndef GL_NV_depth_buffer_float
+#define GL_NV_depth_buffer_float 1
+#define GL_DEPTH_COMPONENT32F_NV          0x8DAB
+#define GL_DEPTH32F_STENCIL8_NV           0x8DAC
+#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD
+#define GL_DEPTH_BUFFER_FLOAT_MODE_NV     0x8DAF
+typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar);
+typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth);
+typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDepthRangedNV (GLdouble zNear, GLdouble zFar);
+GLAPI void APIENTRY glClearDepthdNV (GLdouble depth);
+GLAPI void APIENTRY glDepthBoundsdNV (GLdouble zmin, GLdouble zmax);
+#endif
+#endif /* GL_NV_depth_buffer_float */
+
+#ifndef GL_NV_depth_clamp
+#define GL_NV_depth_clamp 1
+#define GL_DEPTH_CLAMP_NV                 0x864F
+#endif /* GL_NV_depth_clamp */
+
+#ifndef GL_NV_draw_texture
+#define GL_NV_draw_texture 1
+typedef void (APIENTRYP PFNGLDRAWTEXTURENVPROC) (GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawTextureNV (GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
+#endif
+#endif /* GL_NV_draw_texture */
+
+#ifndef GL_NV_evaluators
+#define GL_NV_evaluators 1
+#define GL_EVAL_2D_NV                     0x86C0
+#define GL_EVAL_TRIANGULAR_2D_NV          0x86C1
+#define GL_MAP_TESSELLATION_NV            0x86C2
+#define GL_MAP_ATTRIB_U_ORDER_NV          0x86C3
+#define GL_MAP_ATTRIB_V_ORDER_NV          0x86C4
+#define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5
+#define GL_EVAL_VERTEX_ATTRIB0_NV         0x86C6
+#define GL_EVAL_VERTEX_ATTRIB1_NV         0x86C7
+#define GL_EVAL_VERTEX_ATTRIB2_NV         0x86C8
+#define GL_EVAL_VERTEX_ATTRIB3_NV         0x86C9
+#define GL_EVAL_VERTEX_ATTRIB4_NV         0x86CA
+#define GL_EVAL_VERTEX_ATTRIB5_NV         0x86CB
+#define GL_EVAL_VERTEX_ATTRIB6_NV         0x86CC
+#define GL_EVAL_VERTEX_ATTRIB7_NV         0x86CD
+#define GL_EVAL_VERTEX_ATTRIB8_NV         0x86CE
+#define GL_EVAL_VERTEX_ATTRIB9_NV         0x86CF
+#define GL_EVAL_VERTEX_ATTRIB10_NV        0x86D0
+#define GL_EVAL_VERTEX_ATTRIB11_NV        0x86D1
+#define GL_EVAL_VERTEX_ATTRIB12_NV        0x86D2
+#define GL_EVAL_VERTEX_ATTRIB13_NV        0x86D3
+#define GL_EVAL_VERTEX_ATTRIB14_NV        0x86D4
+#define GL_EVAL_VERTEX_ATTRIB15_NV        0x86D5
+#define GL_MAX_MAP_TESSELLATION_NV        0x86D6
+#define GL_MAX_RATIONAL_EVAL_ORDER_NV     0x86D7
+typedef void (APIENTRYP PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void *points);
+typedef void (APIENTRYP PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void *points);
+typedef void (APIENTRYP PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void *points);
+GLAPI void APIENTRY glMapParameterivNV (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMapParameterfvNV (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void *points);
+GLAPI void APIENTRY glGetMapParameterivNV (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMapParameterfvNV (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMapAttribParameterivNV (GLenum target, GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMapAttribParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glEvalMapsNV (GLenum target, GLenum mode);
+#endif
+#endif /* GL_NV_evaluators */
+
+#ifndef GL_NV_explicit_multisample
+#define GL_NV_explicit_multisample 1
+#define GL_SAMPLE_POSITION_NV             0x8E50
+#define GL_SAMPLE_MASK_NV                 0x8E51
+#define GL_SAMPLE_MASK_VALUE_NV           0x8E52
+#define GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53
+#define GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54
+#define GL_TEXTURE_RENDERBUFFER_NV        0x8E55
+#define GL_SAMPLER_RENDERBUFFER_NV        0x8E56
+#define GL_INT_SAMPLER_RENDERBUFFER_NV    0x8E57
+#define GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58
+#define GL_MAX_SAMPLE_MASK_WORDS_NV       0x8E59
+typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVNVPROC) (GLenum pname, GLuint index, GLfloat *val);
+typedef void (APIENTRYP PFNGLSAMPLEMASKINDEXEDNVPROC) (GLuint index, GLbitfield mask);
+typedef void (APIENTRYP PFNGLTEXRENDERBUFFERNVPROC) (GLenum target, GLuint renderbuffer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetMultisamplefvNV (GLenum pname, GLuint index, GLfloat *val);
+GLAPI void APIENTRY glSampleMaskIndexedNV (GLuint index, GLbitfield mask);
+GLAPI void APIENTRY glTexRenderbufferNV (GLenum target, GLuint renderbuffer);
+#endif
+#endif /* GL_NV_explicit_multisample */
+
+#ifndef GL_NV_fence
+#define GL_NV_fence 1
+#define GL_ALL_COMPLETED_NV               0x84F2
+#define GL_FENCE_STATUS_NV                0x84F3
+#define GL_FENCE_CONDITION_NV             0x84F4
+typedef void (APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
+typedef void (APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
+typedef GLboolean (APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
+typedef GLboolean (APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
+typedef void (APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
+typedef void (APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDeleteFencesNV (GLsizei n, const GLuint *fences);
+GLAPI void APIENTRY glGenFencesNV (GLsizei n, GLuint *fences);
+GLAPI GLboolean APIENTRY glIsFenceNV (GLuint fence);
+GLAPI GLboolean APIENTRY glTestFenceNV (GLuint fence);
+GLAPI void APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
+GLAPI void APIENTRY glFinishFenceNV (GLuint fence);
+GLAPI void APIENTRY glSetFenceNV (GLuint fence, GLenum condition);
+#endif
+#endif /* GL_NV_fence */
+
+#ifndef GL_NV_float_buffer
+#define GL_NV_float_buffer 1
+#define GL_FLOAT_R_NV                     0x8880
+#define GL_FLOAT_RG_NV                    0x8881
+#define GL_FLOAT_RGB_NV                   0x8882
+#define GL_FLOAT_RGBA_NV                  0x8883
+#define GL_FLOAT_R16_NV                   0x8884
+#define GL_FLOAT_R32_NV                   0x8885
+#define GL_FLOAT_RG16_NV                  0x8886
+#define GL_FLOAT_RG32_NV                  0x8887
+#define GL_FLOAT_RGB16_NV                 0x8888
+#define GL_FLOAT_RGB32_NV                 0x8889
+#define GL_FLOAT_RGBA16_NV                0x888A
+#define GL_FLOAT_RGBA32_NV                0x888B
+#define GL_TEXTURE_FLOAT_COMPONENTS_NV    0x888C
+#define GL_FLOAT_CLEAR_COLOR_VALUE_NV     0x888D
+#define GL_FLOAT_RGBA_MODE_NV             0x888E
+#endif /* GL_NV_float_buffer */
+
+#ifndef GL_NV_fog_distance
+#define GL_NV_fog_distance 1
+#define GL_FOG_DISTANCE_MODE_NV           0x855A
+#define GL_EYE_RADIAL_NV                  0x855B
+#define GL_EYE_PLANE_ABSOLUTE_NV          0x855C
+#endif /* GL_NV_fog_distance */
+
+#ifndef GL_NV_fragment_program
+#define GL_NV_fragment_program 1
+#define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868
+#define GL_FRAGMENT_PROGRAM_NV            0x8870
+#define GL_MAX_TEXTURE_COORDS_NV          0x8871
+#define GL_MAX_TEXTURE_IMAGE_UNITS_NV     0x8872
+#define GL_FRAGMENT_PROGRAM_BINDING_NV    0x8873
+#define GL_PROGRAM_ERROR_STRING_NV        0x8874
+typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v);
+typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v);
+typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramNamedParameter4fNV (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glProgramNamedParameter4fvNV (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v);
+GLAPI void APIENTRY glProgramNamedParameter4dNV (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramNamedParameter4dvNV (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v);
+GLAPI void APIENTRY glGetProgramNamedParameterfvNV (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params);
+GLAPI void APIENTRY glGetProgramNamedParameterdvNV (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params);
+#endif
+#endif /* GL_NV_fragment_program */
+
+#ifndef GL_NV_fragment_program2
+#define GL_NV_fragment_program2 1
+#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4
+#define GL_MAX_PROGRAM_CALL_DEPTH_NV      0x88F5
+#define GL_MAX_PROGRAM_IF_DEPTH_NV        0x88F6
+#define GL_MAX_PROGRAM_LOOP_DEPTH_NV      0x88F7
+#define GL_MAX_PROGRAM_LOOP_COUNT_NV      0x88F8
+#endif /* GL_NV_fragment_program2 */
+
+#ifndef GL_NV_fragment_program4
+#define GL_NV_fragment_program4 1
+#endif /* GL_NV_fragment_program4 */
+
+#ifndef GL_NV_fragment_program_option
+#define GL_NV_fragment_program_option 1
+#endif /* GL_NV_fragment_program_option */
+
+#ifndef GL_NV_framebuffer_multisample_coverage
+#define GL_NV_framebuffer_multisample_coverage 1
+#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB
+#define GL_RENDERBUFFER_COLOR_SAMPLES_NV  0x8E10
+#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11
+#define GL_MULTISAMPLE_COVERAGE_MODES_NV  0x8E12
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glRenderbufferStorageMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_NV_framebuffer_multisample_coverage */
+
+#ifndef GL_NV_geometry_program4
+#define GL_NV_geometry_program4 1
+#define GL_GEOMETRY_PROGRAM_NV            0x8C26
+#define GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27
+#define GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28
+typedef void (APIENTRYP PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramVertexLimitNV (GLenum target, GLint limit);
+GLAPI void APIENTRY glFramebufferTextureEXT (GLenum target, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTextureLayerEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void APIENTRY glFramebufferTextureFaceEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
+#endif
+#endif /* GL_NV_geometry_program4 */
+
+#ifndef GL_NV_geometry_shader4
+#define GL_NV_geometry_shader4 1
+#endif /* GL_NV_geometry_shader4 */
+
+#ifndef GL_NV_gpu_program4
+#define GL_NV_gpu_program4 1
+#define GL_MIN_PROGRAM_TEXEL_OFFSET_NV    0x8904
+#define GL_MAX_PROGRAM_TEXEL_OFFSET_NV    0x8905
+#define GL_PROGRAM_ATTRIB_COMPONENTS_NV   0x8906
+#define GL_PROGRAM_RESULT_COMPONENTS_NV   0x8907
+#define GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV 0x8908
+#define GL_MAX_PROGRAM_RESULT_COMPONENTS_NV 0x8909
+#define GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV 0x8DA5
+#define GL_MAX_PROGRAM_GENERIC_RESULTS_NV 0x8DA6
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramLocalParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glProgramLocalParameterI4ivNV (GLenum target, GLuint index, const GLint *params);
+GLAPI void APIENTRY glProgramLocalParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params);
+GLAPI void APIENTRY glProgramLocalParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glProgramLocalParameterI4uivNV (GLenum target, GLuint index, const GLuint *params);
+GLAPI void APIENTRY glProgramLocalParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params);
+GLAPI void APIENTRY glProgramEnvParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glProgramEnvParameterI4ivNV (GLenum target, GLuint index, const GLint *params);
+GLAPI void APIENTRY glProgramEnvParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params);
+GLAPI void APIENTRY glProgramEnvParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glProgramEnvParameterI4uivNV (GLenum target, GLuint index, const GLuint *params);
+GLAPI void APIENTRY glProgramEnvParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params);
+GLAPI void APIENTRY glGetProgramLocalParameterIivNV (GLenum target, GLuint index, GLint *params);
+GLAPI void APIENTRY glGetProgramLocalParameterIuivNV (GLenum target, GLuint index, GLuint *params);
+GLAPI void APIENTRY glGetProgramEnvParameterIivNV (GLenum target, GLuint index, GLint *params);
+GLAPI void APIENTRY glGetProgramEnvParameterIuivNV (GLenum target, GLuint index, GLuint *params);
+#endif
+#endif /* GL_NV_gpu_program4 */
+
+#ifndef GL_NV_gpu_program5
+#define GL_NV_gpu_program5 1
+#define GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV 0x8E5A
+#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5B
+#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5C
+#define GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D
+#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5E
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5F
+#define GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV 0x8F44
+#define GL_MAX_PROGRAM_SUBROUTINE_NUM_NV  0x8F45
+typedef void (APIENTRYP PFNGLPROGRAMSUBROUTINEPARAMETERSUIVNVPROC) (GLenum target, GLsizei count, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMSUBROUTINEPARAMETERUIVNVPROC) (GLenum target, GLuint index, GLuint *param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramSubroutineParametersuivNV (GLenum target, GLsizei count, const GLuint *params);
+GLAPI void APIENTRY glGetProgramSubroutineParameteruivNV (GLenum target, GLuint index, GLuint *param);
+#endif
+#endif /* GL_NV_gpu_program5 */
+
+#ifndef GL_NV_gpu_program5_mem_extended
+#define GL_NV_gpu_program5_mem_extended 1
+#endif /* GL_NV_gpu_program5_mem_extended */
+
+#ifndef GL_NV_gpu_shader5
+#define GL_NV_gpu_shader5 1
+#endif /* GL_NV_gpu_shader5 */
+
+#ifndef GL_NV_half_float
+#define GL_NV_half_float 1
+typedef unsigned short GLhalfNV;
+#define GL_HALF_FLOAT_NV                  0x140B
+typedef void (APIENTRYP PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y);
+typedef void (APIENTRYP PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z);
+typedef void (APIENTRYP PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
+typedef void (APIENTRYP PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz);
+typedef void (APIENTRYP PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
+typedef void (APIENTRYP PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha);
+typedef void (APIENTRYP PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLTEXCOORD1HNVPROC) (GLhalfNV s);
+typedef void (APIENTRYP PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t);
+typedef void (APIENTRYP PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r);
+typedef void (APIENTRYP PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
+typedef void (APIENTRYP PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLFOGCOORDHNVPROC) (GLhalfNV fog);
+typedef void (APIENTRYP PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight);
+typedef void (APIENTRYP PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertex2hNV (GLhalfNV x, GLhalfNV y);
+GLAPI void APIENTRY glVertex2hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glVertex3hNV (GLhalfNV x, GLhalfNV y, GLhalfNV z);
+GLAPI void APIENTRY glVertex3hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glVertex4hNV (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
+GLAPI void APIENTRY glVertex4hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glNormal3hNV (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz);
+GLAPI void APIENTRY glNormal3hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glColor3hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
+GLAPI void APIENTRY glColor3hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glColor4hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha);
+GLAPI void APIENTRY glColor4hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glTexCoord1hNV (GLhalfNV s);
+GLAPI void APIENTRY glTexCoord1hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glTexCoord2hNV (GLhalfNV s, GLhalfNV t);
+GLAPI void APIENTRY glTexCoord2hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glTexCoord3hNV (GLhalfNV s, GLhalfNV t, GLhalfNV r);
+GLAPI void APIENTRY glTexCoord3hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glTexCoord4hNV (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
+GLAPI void APIENTRY glTexCoord4hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glMultiTexCoord1hNV (GLenum target, GLhalfNV s);
+GLAPI void APIENTRY glMultiTexCoord1hvNV (GLenum target, const GLhalfNV *v);
+GLAPI void APIENTRY glMultiTexCoord2hNV (GLenum target, GLhalfNV s, GLhalfNV t);
+GLAPI void APIENTRY glMultiTexCoord2hvNV (GLenum target, const GLhalfNV *v);
+GLAPI void APIENTRY glMultiTexCoord3hNV (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r);
+GLAPI void APIENTRY glMultiTexCoord3hvNV (GLenum target, const GLhalfNV *v);
+GLAPI void APIENTRY glMultiTexCoord4hNV (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
+GLAPI void APIENTRY glMultiTexCoord4hvNV (GLenum target, const GLhalfNV *v);
+GLAPI void APIENTRY glFogCoordhNV (GLhalfNV fog);
+GLAPI void APIENTRY glFogCoordhvNV (const GLhalfNV *fog);
+GLAPI void APIENTRY glSecondaryColor3hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
+GLAPI void APIENTRY glSecondaryColor3hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glVertexWeighthNV (GLhalfNV weight);
+GLAPI void APIENTRY glVertexWeighthvNV (const GLhalfNV *weight);
+GLAPI void APIENTRY glVertexAttrib1hNV (GLuint index, GLhalfNV x);
+GLAPI void APIENTRY glVertexAttrib1hvNV (GLuint index, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttrib2hNV (GLuint index, GLhalfNV x, GLhalfNV y);
+GLAPI void APIENTRY glVertexAttrib2hvNV (GLuint index, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttrib3hNV (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z);
+GLAPI void APIENTRY glVertexAttrib3hvNV (GLuint index, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttrib4hNV (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
+GLAPI void APIENTRY glVertexAttrib4hvNV (GLuint index, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttribs1hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttribs2hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttribs3hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttribs4hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
+#endif
+#endif /* GL_NV_half_float */
+
+#ifndef GL_NV_light_max_exponent
+#define GL_NV_light_max_exponent 1
+#define GL_MAX_SHININESS_NV               0x8504
+#define GL_MAX_SPOT_EXPONENT_NV           0x8505
+#endif /* GL_NV_light_max_exponent */
+
+#ifndef GL_NV_multisample_coverage
+#define GL_NV_multisample_coverage 1
+#define GL_COLOR_SAMPLES_NV               0x8E20
+#endif /* GL_NV_multisample_coverage */
+
+#ifndef GL_NV_multisample_filter_hint
+#define GL_NV_multisample_filter_hint 1
+#define GL_MULTISAMPLE_FILTER_HINT_NV     0x8534
+#endif /* GL_NV_multisample_filter_hint */
+
+#ifndef GL_NV_occlusion_query
+#define GL_NV_occlusion_query 1
+#define GL_PIXEL_COUNTER_BITS_NV          0x8864
+#define GL_CURRENT_OCCLUSION_QUERY_ID_NV  0x8865
+#define GL_PIXEL_COUNT_NV                 0x8866
+#define GL_PIXEL_COUNT_AVAILABLE_NV       0x8867
+typedef void (APIENTRYP PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLENDOCCLUSIONQUERYNVPROC) (void);
+typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenOcclusionQueriesNV (GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glDeleteOcclusionQueriesNV (GLsizei n, const GLuint *ids);
+GLAPI GLboolean APIENTRY glIsOcclusionQueryNV (GLuint id);
+GLAPI void APIENTRY glBeginOcclusionQueryNV (GLuint id);
+GLAPI void APIENTRY glEndOcclusionQueryNV (void);
+GLAPI void APIENTRY glGetOcclusionQueryivNV (GLuint id, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetOcclusionQueryuivNV (GLuint id, GLenum pname, GLuint *params);
+#endif
+#endif /* GL_NV_occlusion_query */
+
+#ifndef GL_NV_packed_depth_stencil
+#define GL_NV_packed_depth_stencil 1
+#define GL_DEPTH_STENCIL_NV               0x84F9
+#define GL_UNSIGNED_INT_24_8_NV           0x84FA
+#endif /* GL_NV_packed_depth_stencil */
+
+#ifndef GL_NV_parameter_buffer_object
+#define GL_NV_parameter_buffer_object 1
+#define GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV 0x8DA0
+#define GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV 0x8DA1
+#define GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2
+#define GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3
+#define GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4
+typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat *params);
+typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramBufferParametersfvNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat *params);
+GLAPI void APIENTRY glProgramBufferParametersIivNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint *params);
+GLAPI void APIENTRY glProgramBufferParametersIuivNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint *params);
+#endif
+#endif /* GL_NV_parameter_buffer_object */
+
+#ifndef GL_NV_parameter_buffer_object2
+#define GL_NV_parameter_buffer_object2 1
+#endif /* GL_NV_parameter_buffer_object2 */
+
+#ifndef GL_NV_path_rendering
+#define GL_NV_path_rendering 1
+#define GL_PATH_FORMAT_SVG_NV             0x9070
+#define GL_PATH_FORMAT_PS_NV              0x9071
+#define GL_STANDARD_FONT_NAME_NV          0x9072
+#define GL_SYSTEM_FONT_NAME_NV            0x9073
+#define GL_FILE_NAME_NV                   0x9074
+#define GL_PATH_STROKE_WIDTH_NV           0x9075
+#define GL_PATH_END_CAPS_NV               0x9076
+#define GL_PATH_INITIAL_END_CAP_NV        0x9077
+#define GL_PATH_TERMINAL_END_CAP_NV       0x9078
+#define GL_PATH_JOIN_STYLE_NV             0x9079
+#define GL_PATH_MITER_LIMIT_NV            0x907A
+#define GL_PATH_DASH_CAPS_NV              0x907B
+#define GL_PATH_INITIAL_DASH_CAP_NV       0x907C
+#define GL_PATH_TERMINAL_DASH_CAP_NV      0x907D
+#define GL_PATH_DASH_OFFSET_NV            0x907E
+#define GL_PATH_CLIENT_LENGTH_NV          0x907F
+#define GL_PATH_FILL_MODE_NV              0x9080
+#define GL_PATH_FILL_MASK_NV              0x9081
+#define GL_PATH_FILL_COVER_MODE_NV        0x9082
+#define GL_PATH_STROKE_COVER_MODE_NV      0x9083
+#define GL_PATH_STROKE_MASK_NV            0x9084
+#define GL_COUNT_UP_NV                    0x9088
+#define GL_COUNT_DOWN_NV                  0x9089
+#define GL_PATH_OBJECT_BOUNDING_BOX_NV    0x908A
+#define GL_CONVEX_HULL_NV                 0x908B
+#define GL_BOUNDING_BOX_NV                0x908D
+#define GL_TRANSLATE_X_NV                 0x908E
+#define GL_TRANSLATE_Y_NV                 0x908F
+#define GL_TRANSLATE_2D_NV                0x9090
+#define GL_TRANSLATE_3D_NV                0x9091
+#define GL_AFFINE_2D_NV                   0x9092
+#define GL_AFFINE_3D_NV                   0x9094
+#define GL_TRANSPOSE_AFFINE_2D_NV         0x9096
+#define GL_TRANSPOSE_AFFINE_3D_NV         0x9098
+#define GL_UTF8_NV                        0x909A
+#define GL_UTF16_NV                       0x909B
+#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C
+#define GL_PATH_COMMAND_COUNT_NV          0x909D
+#define GL_PATH_COORD_COUNT_NV            0x909E
+#define GL_PATH_DASH_ARRAY_COUNT_NV       0x909F
+#define GL_PATH_COMPUTED_LENGTH_NV        0x90A0
+#define GL_PATH_FILL_BOUNDING_BOX_NV      0x90A1
+#define GL_PATH_STROKE_BOUNDING_BOX_NV    0x90A2
+#define GL_SQUARE_NV                      0x90A3
+#define GL_ROUND_NV                       0x90A4
+#define GL_TRIANGULAR_NV                  0x90A5
+#define GL_BEVEL_NV                       0x90A6
+#define GL_MITER_REVERT_NV                0x90A7
+#define GL_MITER_TRUNCATE_NV              0x90A8
+#define GL_SKIP_MISSING_GLYPH_NV          0x90A9
+#define GL_USE_MISSING_GLYPH_NV           0x90AA
+#define GL_PATH_ERROR_POSITION_NV         0x90AB
+#define GL_PATH_FOG_GEN_MODE_NV           0x90AC
+#define GL_ACCUM_ADJACENT_PAIRS_NV        0x90AD
+#define GL_ADJACENT_PAIRS_NV              0x90AE
+#define GL_FIRST_TO_REST_NV               0x90AF
+#define GL_PATH_GEN_MODE_NV               0x90B0
+#define GL_PATH_GEN_COEFF_NV              0x90B1
+#define GL_PATH_GEN_COLOR_FORMAT_NV       0x90B2
+#define GL_PATH_GEN_COMPONENTS_NV         0x90B3
+#define GL_PATH_STENCIL_FUNC_NV           0x90B7
+#define GL_PATH_STENCIL_REF_NV            0x90B8
+#define GL_PATH_STENCIL_VALUE_MASK_NV     0x90B9
+#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD
+#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE
+#define GL_PATH_COVER_DEPTH_FUNC_NV       0x90BF
+#define GL_PATH_DASH_OFFSET_RESET_NV      0x90B4
+#define GL_MOVE_TO_RESETS_NV              0x90B5
+#define GL_MOVE_TO_CONTINUES_NV           0x90B6
+#define GL_CLOSE_PATH_NV                  0x00
+#define GL_MOVE_TO_NV                     0x02
+#define GL_RELATIVE_MOVE_TO_NV            0x03
+#define GL_LINE_TO_NV                     0x04
+#define GL_RELATIVE_LINE_TO_NV            0x05
+#define GL_HORIZONTAL_LINE_TO_NV          0x06
+#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07
+#define GL_VERTICAL_LINE_TO_NV            0x08
+#define GL_RELATIVE_VERTICAL_LINE_TO_NV   0x09
+#define GL_QUADRATIC_CURVE_TO_NV          0x0A
+#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B
+#define GL_CUBIC_CURVE_TO_NV              0x0C
+#define GL_RELATIVE_CUBIC_CURVE_TO_NV     0x0D
+#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV   0x0E
+#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F
+#define GL_SMOOTH_CUBIC_CURVE_TO_NV       0x10
+#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11
+#define GL_SMALL_CCW_ARC_TO_NV            0x12
+#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV   0x13
+#define GL_SMALL_CW_ARC_TO_NV             0x14
+#define GL_RELATIVE_SMALL_CW_ARC_TO_NV    0x15
+#define GL_LARGE_CCW_ARC_TO_NV            0x16
+#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV   0x17
+#define GL_LARGE_CW_ARC_TO_NV             0x18
+#define GL_RELATIVE_LARGE_CW_ARC_TO_NV    0x19
+#define GL_RESTART_PATH_NV                0xF0
+#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV    0xF2
+#define GL_DUP_LAST_CUBIC_CURVE_TO_NV     0xF4
+#define GL_RECT_NV                        0xF6
+#define GL_CIRCULAR_CCW_ARC_TO_NV         0xF8
+#define GL_CIRCULAR_CW_ARC_TO_NV          0xFA
+#define GL_CIRCULAR_TANGENT_ARC_TO_NV     0xFC
+#define GL_ARC_TO_NV                      0xFE
+#define GL_RELATIVE_ARC_TO_NV             0xFF
+#define GL_BOLD_BIT_NV                    0x01
+#define GL_ITALIC_BIT_NV                  0x02
+#define GL_GLYPH_WIDTH_BIT_NV             0x01
+#define GL_GLYPH_HEIGHT_BIT_NV            0x02
+#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04
+#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08
+#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10
+#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20
+#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40
+#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80
+#define GL_GLYPH_HAS_KERNING_BIT_NV       0x100
+#define GL_FONT_X_MIN_BOUNDS_BIT_NV       0x00010000
+#define GL_FONT_Y_MIN_BOUNDS_BIT_NV       0x00020000
+#define GL_FONT_X_MAX_BOUNDS_BIT_NV       0x00040000
+#define GL_FONT_Y_MAX_BOUNDS_BIT_NV       0x00080000
+#define GL_FONT_UNITS_PER_EM_BIT_NV       0x00100000
+#define GL_FONT_ASCENDER_BIT_NV           0x00200000
+#define GL_FONT_DESCENDER_BIT_NV          0x00400000
+#define GL_FONT_HEIGHT_BIT_NV             0x00800000
+#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV  0x01000000
+#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000
+#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000
+#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000
+#define GL_FONT_HAS_KERNING_BIT_NV        0x10000000
+#define GL_PRIMARY_COLOR_NV               0x852C
+#define GL_SECONDARY_COLOR_NV             0x852D
+typedef GLuint (APIENTRYP PFNGLGENPATHSNVPROC) (GLsizei range);
+typedef void (APIENTRYP PFNGLDELETEPATHSNVPROC) (GLuint path, GLsizei range);
+typedef GLboolean (APIENTRYP PFNGLISPATHNVPROC) (GLuint path);
+typedef void (APIENTRYP PFNGLPATHCOMMANDSNVPROC) (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHCOORDSNVPROC) (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC) (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHSUBCOORDSNVPROC) (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHSTRINGNVPROC) (GLuint path, GLenum format, GLsizei length, const void *pathString);
+typedef void (APIENTRYP PFNGLPATHGLYPHSNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (APIENTRYP PFNGLPATHGLYPHRANGENVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (APIENTRYP PFNGLWEIGHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
+typedef void (APIENTRYP PFNGLCOPYPATHNVPROC) (GLuint resultPath, GLuint srcPath);
+typedef void (APIENTRYP PFNGLINTERPOLATEPATHSNVPROC) (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
+typedef void (APIENTRYP PFNGLTRANSFORMPATHNVPROC) (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, const GLint *value);
+typedef void (APIENTRYP PFNGLPATHPARAMETERINVPROC) (GLuint path, GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPATHPARAMETERFNVPROC) (GLuint path, GLenum pname, GLfloat value);
+typedef void (APIENTRYP PFNGLPATHDASHARRAYNVPROC) (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
+typedef void (APIENTRYP PFNGLPATHSTENCILFUNCNVPROC) (GLenum func, GLint ref, GLuint mask);
+typedef void (APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC) (GLfloat factor, GLfloat units);
+typedef void (APIENTRYP PFNGLSTENCILFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask);
+typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask);
+typedef void (APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC) (GLenum func);
+typedef void (APIENTRYP PFNGLPATHCOLORGENNVPROC) (GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat *coeffs);
+typedef void (APIENTRYP PFNGLPATHTEXGENNVPROC) (GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat *coeffs);
+typedef void (APIENTRYP PFNGLPATHFOGGENNVPROC) (GLenum genMode);
+typedef void (APIENTRYP PFNGLCOVERFILLPATHNVPROC) (GLuint path, GLenum coverMode);
+typedef void (APIENTRYP PFNGLCOVERSTROKEPATHNVPROC) (GLuint path, GLenum coverMode);
+typedef void (APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, GLint *value);
+typedef void (APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, GLfloat *value);
+typedef void (APIENTRYP PFNGLGETPATHCOMMANDSNVPROC) (GLuint path, GLubyte *commands);
+typedef void (APIENTRYP PFNGLGETPATHCOORDSNVPROC) (GLuint path, GLfloat *coords);
+typedef void (APIENTRYP PFNGLGETPATHDASHARRAYNVPROC) (GLuint path, GLfloat *dashArray);
+typedef void (APIENTRYP PFNGLGETPATHMETRICSNVPROC) (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
+typedef void (APIENTRYP PFNGLGETPATHMETRICRANGENVPROC) (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
+typedef void (APIENTRYP PFNGLGETPATHSPACINGNVPROC) (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
+typedef void (APIENTRYP PFNGLGETPATHCOLORGENIVNVPROC) (GLenum color, GLenum pname, GLint *value);
+typedef void (APIENTRYP PFNGLGETPATHCOLORGENFVNVPROC) (GLenum color, GLenum pname, GLfloat *value);
+typedef void (APIENTRYP PFNGLGETPATHTEXGENIVNVPROC) (GLenum texCoordSet, GLenum pname, GLint *value);
+typedef void (APIENTRYP PFNGLGETPATHTEXGENFVNVPROC) (GLenum texCoordSet, GLenum pname, GLfloat *value);
+typedef GLboolean (APIENTRYP PFNGLISPOINTINFILLPATHNVPROC) (GLuint path, GLuint mask, GLfloat x, GLfloat y);
+typedef GLboolean (APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC) (GLuint path, GLfloat x, GLfloat y);
+typedef GLfloat (APIENTRYP PFNGLGETPATHLENGTHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments);
+typedef GLboolean (APIENTRYP PFNGLPOINTALONGPATHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint APIENTRY glGenPathsNV (GLsizei range);
+GLAPI void APIENTRY glDeletePathsNV (GLuint path, GLsizei range);
+GLAPI GLboolean APIENTRY glIsPathNV (GLuint path);
+GLAPI void APIENTRY glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathCoordsNV (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathSubCoordsNV (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathStringNV (GLuint path, GLenum format, GLsizei length, const void *pathString);
+GLAPI void APIENTRY glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GLAPI void APIENTRY glPathGlyphRangeNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GLAPI void APIENTRY glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
+GLAPI void APIENTRY glCopyPathNV (GLuint resultPath, GLuint srcPath);
+GLAPI void APIENTRY glInterpolatePathsNV (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
+GLAPI void APIENTRY glTransformPathNV (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glPathParameterivNV (GLuint path, GLenum pname, const GLint *value);
+GLAPI void APIENTRY glPathParameteriNV (GLuint path, GLenum pname, GLint value);
+GLAPI void APIENTRY glPathParameterfvNV (GLuint path, GLenum pname, const GLfloat *value);
+GLAPI void APIENTRY glPathParameterfNV (GLuint path, GLenum pname, GLfloat value);
+GLAPI void APIENTRY glPathDashArrayNV (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
+GLAPI void APIENTRY glPathStencilFuncNV (GLenum func, GLint ref, GLuint mask);
+GLAPI void APIENTRY glPathStencilDepthOffsetNV (GLfloat factor, GLfloat units);
+GLAPI void APIENTRY glStencilFillPathNV (GLuint path, GLenum fillMode, GLuint mask);
+GLAPI void APIENTRY glStencilStrokePathNV (GLuint path, GLint reference, GLuint mask);
+GLAPI void APIENTRY glStencilFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glStencilStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glPathCoverDepthFuncNV (GLenum func);
+GLAPI void APIENTRY glPathColorGenNV (GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat *coeffs);
+GLAPI void APIENTRY glPathTexGenNV (GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat *coeffs);
+GLAPI void APIENTRY glPathFogGenNV (GLenum genMode);
+GLAPI void APIENTRY glCoverFillPathNV (GLuint path, GLenum coverMode);
+GLAPI void APIENTRY glCoverStrokePathNV (GLuint path, GLenum coverMode);
+GLAPI void APIENTRY glCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glGetPathParameterivNV (GLuint path, GLenum pname, GLint *value);
+GLAPI void APIENTRY glGetPathParameterfvNV (GLuint path, GLenum pname, GLfloat *value);
+GLAPI void APIENTRY glGetPathCommandsNV (GLuint path, GLubyte *commands);
+GLAPI void APIENTRY glGetPathCoordsNV (GLuint path, GLfloat *coords);
+GLAPI void APIENTRY glGetPathDashArrayNV (GLuint path, GLfloat *dashArray);
+GLAPI void APIENTRY glGetPathMetricsNV (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
+GLAPI void APIENTRY glGetPathMetricRangeNV (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
+GLAPI void APIENTRY glGetPathSpacingNV (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
+GLAPI void APIENTRY glGetPathColorGenivNV (GLenum color, GLenum pname, GLint *value);
+GLAPI void APIENTRY glGetPathColorGenfvNV (GLenum color, GLenum pname, GLfloat *value);
+GLAPI void APIENTRY glGetPathTexGenivNV (GLenum texCoordSet, GLenum pname, GLint *value);
+GLAPI void APIENTRY glGetPathTexGenfvNV (GLenum texCoordSet, GLenum pname, GLfloat *value);
+GLAPI GLboolean APIENTRY glIsPointInFillPathNV (GLuint path, GLuint mask, GLfloat x, GLfloat y);
+GLAPI GLboolean APIENTRY glIsPointInStrokePathNV (GLuint path, GLfloat x, GLfloat y);
+GLAPI GLfloat APIENTRY glGetPathLengthNV (GLuint path, GLsizei startSegment, GLsizei numSegments);
+GLAPI GLboolean APIENTRY glPointAlongPathNV (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
+#endif
+#endif /* GL_NV_path_rendering */
+
+#ifndef GL_NV_pixel_data_range
+#define GL_NV_pixel_data_range 1
+#define GL_WRITE_PIXEL_DATA_RANGE_NV      0x8878
+#define GL_READ_PIXEL_DATA_RANGE_NV       0x8879
+#define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A
+#define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B
+#define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C
+#define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D
+typedef void (APIENTRYP PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, const void *pointer);
+typedef void (APIENTRYP PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPixelDataRangeNV (GLenum target, GLsizei length, const void *pointer);
+GLAPI void APIENTRY glFlushPixelDataRangeNV (GLenum target);
+#endif
+#endif /* GL_NV_pixel_data_range */
+
+#ifndef GL_NV_point_sprite
+#define GL_NV_point_sprite 1
+#define GL_POINT_SPRITE_NV                0x8861
+#define GL_COORD_REPLACE_NV               0x8862
+#define GL_POINT_SPRITE_R_MODE_NV         0x8863
+typedef void (APIENTRYP PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPointParameteriNV (GLenum pname, GLint param);
+GLAPI void APIENTRY glPointParameterivNV (GLenum pname, const GLint *params);
+#endif
+#endif /* GL_NV_point_sprite */
+
+#ifndef GL_NV_present_video
+#define GL_NV_present_video 1
+#define GL_FRAME_NV                       0x8E26
+#define GL_FIELDS_NV                      0x8E27
+#define GL_CURRENT_TIME_NV                0x8E28
+#define GL_NUM_FILL_STREAMS_NV            0x8E29
+#define GL_PRESENT_TIME_NV                0x8E2A
+#define GL_PRESENT_DURATION_NV            0x8E2B
+typedef void (APIENTRYP PFNGLPRESENTFRAMEKEYEDNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1);
+typedef void (APIENTRYP PFNGLPRESENTFRAMEDUALFILLNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3);
+typedef void (APIENTRYP PFNGLGETVIDEOIVNVPROC) (GLuint video_slot, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVIDEOUIVNVPROC) (GLuint video_slot, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLGETVIDEOI64VNVPROC) (GLuint video_slot, GLenum pname, GLint64EXT *params);
+typedef void (APIENTRYP PFNGLGETVIDEOUI64VNVPROC) (GLuint video_slot, GLenum pname, GLuint64EXT *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPresentFrameKeyedNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1);
+GLAPI void APIENTRY glPresentFrameDualFillNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3);
+GLAPI void APIENTRY glGetVideoivNV (GLuint video_slot, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVideouivNV (GLuint video_slot, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glGetVideoi64vNV (GLuint video_slot, GLenum pname, GLint64EXT *params);
+GLAPI void APIENTRY glGetVideoui64vNV (GLuint video_slot, GLenum pname, GLuint64EXT *params);
+#endif
+#endif /* GL_NV_present_video */
+
+#ifndef GL_NV_primitive_restart
+#define GL_NV_primitive_restart 1
+#define GL_PRIMITIVE_RESTART_NV           0x8558
+#define GL_PRIMITIVE_RESTART_INDEX_NV     0x8559
+typedef void (APIENTRYP PFNGLPRIMITIVERESTARTNVPROC) (void);
+typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPrimitiveRestartNV (void);
+GLAPI void APIENTRY glPrimitiveRestartIndexNV (GLuint index);
+#endif
+#endif /* GL_NV_primitive_restart */
+
+#ifndef GL_NV_register_combiners
+#define GL_NV_register_combiners 1
+#define GL_REGISTER_COMBINERS_NV          0x8522
+#define GL_VARIABLE_A_NV                  0x8523
+#define GL_VARIABLE_B_NV                  0x8524
+#define GL_VARIABLE_C_NV                  0x8525
+#define GL_VARIABLE_D_NV                  0x8526
+#define GL_VARIABLE_E_NV                  0x8527
+#define GL_VARIABLE_F_NV                  0x8528
+#define GL_VARIABLE_G_NV                  0x8529
+#define GL_CONSTANT_COLOR0_NV             0x852A
+#define GL_CONSTANT_COLOR1_NV             0x852B
+#define GL_SPARE0_NV                      0x852E
+#define GL_SPARE1_NV                      0x852F
+#define GL_DISCARD_NV                     0x8530
+#define GL_E_TIMES_F_NV                   0x8531
+#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
+#define GL_UNSIGNED_IDENTITY_NV           0x8536
+#define GL_UNSIGNED_INVERT_NV             0x8537
+#define GL_EXPAND_NORMAL_NV               0x8538
+#define GL_EXPAND_NEGATE_NV               0x8539
+#define GL_HALF_BIAS_NORMAL_NV            0x853A
+#define GL_HALF_BIAS_NEGATE_NV            0x853B
+#define GL_SIGNED_IDENTITY_NV             0x853C
+#define GL_SIGNED_NEGATE_NV               0x853D
+#define GL_SCALE_BY_TWO_NV                0x853E
+#define GL_SCALE_BY_FOUR_NV               0x853F
+#define GL_SCALE_BY_ONE_HALF_NV           0x8540
+#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV   0x8541
+#define GL_COMBINER_INPUT_NV              0x8542
+#define GL_COMBINER_MAPPING_NV            0x8543
+#define GL_COMBINER_COMPONENT_USAGE_NV    0x8544
+#define GL_COMBINER_AB_DOT_PRODUCT_NV     0x8545
+#define GL_COMBINER_CD_DOT_PRODUCT_NV     0x8546
+#define GL_COMBINER_MUX_SUM_NV            0x8547
+#define GL_COMBINER_SCALE_NV              0x8548
+#define GL_COMBINER_BIAS_NV               0x8549
+#define GL_COMBINER_AB_OUTPUT_NV          0x854A
+#define GL_COMBINER_CD_OUTPUT_NV          0x854B
+#define GL_COMBINER_SUM_OUTPUT_NV         0x854C
+#define GL_MAX_GENERAL_COMBINERS_NV       0x854D
+#define GL_NUM_GENERAL_COMBINERS_NV       0x854E
+#define GL_COLOR_SUM_CLAMP_NV             0x854F
+#define GL_COMBINER0_NV                   0x8550
+#define GL_COMBINER1_NV                   0x8551
+#define GL_COMBINER2_NV                   0x8552
+#define GL_COMBINER3_NV                   0x8553
+#define GL_COMBINER4_NV                   0x8554
+#define GL_COMBINER5_NV                   0x8555
+#define GL_COMBINER6_NV                   0x8556
+#define GL_COMBINER7_NV                   0x8557
+typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+typedef void (APIENTRYP PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
+typedef void (APIENTRYP PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCombinerParameterfvNV (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glCombinerParameterfNV (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glCombinerParameterivNV (GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCombinerParameteriNV (GLenum pname, GLint param);
+GLAPI void APIENTRY glCombinerInputNV (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+GLAPI void APIENTRY glCombinerOutputNV (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
+GLAPI void APIENTRY glFinalCombinerInputNV (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+GLAPI void APIENTRY glGetCombinerInputParameterfvNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetCombinerInputParameterivNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetCombinerOutputParameterfvNV (GLenum stage, GLenum portion, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetCombinerOutputParameterivNV (GLenum stage, GLenum portion, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetFinalCombinerInputParameterfvNV (GLenum variable, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetFinalCombinerInputParameterivNV (GLenum variable, GLenum pname, GLint *params);
+#endif
+#endif /* GL_NV_register_combiners */
+
+#ifndef GL_NV_register_combiners2
+#define GL_NV_register_combiners2 1
+#define GL_PER_STAGE_CONSTANTS_NV         0x8535
+typedef void (APIENTRYP PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCombinerStageParameterfvNV (GLenum stage, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetCombinerStageParameterfvNV (GLenum stage, GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_NV_register_combiners2 */
+
+#ifndef GL_NV_shader_atomic_counters
+#define GL_NV_shader_atomic_counters 1
+#endif /* GL_NV_shader_atomic_counters */
+
+#ifndef GL_NV_shader_atomic_float
+#define GL_NV_shader_atomic_float 1
+#endif /* GL_NV_shader_atomic_float */
+
+#ifndef GL_NV_shader_buffer_load
+#define GL_NV_shader_buffer_load 1
+#define GL_BUFFER_GPU_ADDRESS_NV          0x8F1D
+#define GL_GPU_ADDRESS_NV                 0x8F34
+#define GL_MAX_SHADER_BUFFER_ADDRESS_NV   0x8F35
+typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access);
+typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target);
+typedef GLboolean (APIENTRYP PFNGLISBUFFERRESIDENTNVPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access);
+typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer);
+typedef GLboolean (APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT *result);
+typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value);
+typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMakeBufferResidentNV (GLenum target, GLenum access);
+GLAPI void APIENTRY glMakeBufferNonResidentNV (GLenum target);
+GLAPI GLboolean APIENTRY glIsBufferResidentNV (GLenum target);
+GLAPI void APIENTRY glMakeNamedBufferResidentNV (GLuint buffer, GLenum access);
+GLAPI void APIENTRY glMakeNamedBufferNonResidentNV (GLuint buffer);
+GLAPI GLboolean APIENTRY glIsNamedBufferResidentNV (GLuint buffer);
+GLAPI void APIENTRY glGetBufferParameterui64vNV (GLenum target, GLenum pname, GLuint64EXT *params);
+GLAPI void APIENTRY glGetNamedBufferParameterui64vNV (GLuint buffer, GLenum pname, GLuint64EXT *params);
+GLAPI void APIENTRY glGetIntegerui64vNV (GLenum value, GLuint64EXT *result);
+GLAPI void APIENTRY glUniformui64NV (GLint location, GLuint64EXT value);
+GLAPI void APIENTRY glUniformui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniformui64NV (GLuint program, GLint location, GLuint64EXT value);
+GLAPI void APIENTRY glProgramUniformui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#endif
+#endif /* GL_NV_shader_buffer_load */
+
+#ifndef GL_NV_shader_buffer_store
+#define GL_NV_shader_buffer_store 1
+#define GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV 0x00000010
+#endif /* GL_NV_shader_buffer_store */
+
+#ifndef GL_NV_shader_storage_buffer_object
+#define GL_NV_shader_storage_buffer_object 1
+#endif /* GL_NV_shader_storage_buffer_object */
+
+#ifndef GL_NV_shader_thread_group
+#define GL_NV_shader_thread_group 1
+#define GL_WARP_SIZE_NV                   0x9339
+#define GL_WARPS_PER_SM_NV                0x933A
+#define GL_SM_COUNT_NV                    0x933B
+#endif /* GL_NV_shader_thread_group */
+
+#ifndef GL_NV_shader_thread_shuffle
+#define GL_NV_shader_thread_shuffle 1
+#endif /* GL_NV_shader_thread_shuffle */
+
+#ifndef GL_NV_tessellation_program5
+#define GL_NV_tessellation_program5 1
+#define GL_MAX_PROGRAM_PATCH_ATTRIBS_NV   0x86D8
+#define GL_TESS_CONTROL_PROGRAM_NV        0x891E
+#define GL_TESS_EVALUATION_PROGRAM_NV     0x891F
+#define GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74
+#define GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75
+#endif /* GL_NV_tessellation_program5 */
+
+#ifndef GL_NV_texgen_emboss
+#define GL_NV_texgen_emboss 1
+#define GL_EMBOSS_LIGHT_NV                0x855D
+#define GL_EMBOSS_CONSTANT_NV             0x855E
+#define GL_EMBOSS_MAP_NV                  0x855F
+#endif /* GL_NV_texgen_emboss */
+
+#ifndef GL_NV_texgen_reflection
+#define GL_NV_texgen_reflection 1
+#define GL_NORMAL_MAP_NV                  0x8511
+#define GL_REFLECTION_MAP_NV              0x8512
+#endif /* GL_NV_texgen_reflection */
+
+#ifndef GL_NV_texture_barrier
+#define GL_NV_texture_barrier 1
+typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTextureBarrierNV (void);
+#endif
+#endif /* GL_NV_texture_barrier */
+
+#ifndef GL_NV_texture_compression_vtc
+#define GL_NV_texture_compression_vtc 1
+#endif /* GL_NV_texture_compression_vtc */
+
+#ifndef GL_NV_texture_env_combine4
+#define GL_NV_texture_env_combine4 1
+#define GL_COMBINE4_NV                    0x8503
+#define GL_SOURCE3_RGB_NV                 0x8583
+#define GL_SOURCE3_ALPHA_NV               0x858B
+#define GL_OPERAND3_RGB_NV                0x8593
+#define GL_OPERAND3_ALPHA_NV              0x859B
+#endif /* GL_NV_texture_env_combine4 */
+
+#ifndef GL_NV_texture_expand_normal
+#define GL_NV_texture_expand_normal 1
+#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F
+#endif /* GL_NV_texture_expand_normal */
+
+#ifndef GL_NV_texture_multisample
+#define GL_NV_texture_multisample 1
+#define GL_TEXTURE_COVERAGE_SAMPLES_NV    0x9045
+#define GL_TEXTURE_COLOR_SAMPLES_NV       0x9046
+typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexImage2DMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+GLAPI void APIENTRY glTexImage3DMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+GLAPI void APIENTRY glTextureImage2DMultisampleNV (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+GLAPI void APIENTRY glTextureImage3DMultisampleNV (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+GLAPI void APIENTRY glTextureImage2DMultisampleCoverageNV (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+GLAPI void APIENTRY glTextureImage3DMultisampleCoverageNV (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+#endif
+#endif /* GL_NV_texture_multisample */
+
+#ifndef GL_NV_texture_rectangle
+#define GL_NV_texture_rectangle 1
+#define GL_TEXTURE_RECTANGLE_NV           0x84F5
+#define GL_TEXTURE_BINDING_RECTANGLE_NV   0x84F6
+#define GL_PROXY_TEXTURE_RECTANGLE_NV     0x84F7
+#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV  0x84F8
+#endif /* GL_NV_texture_rectangle */
+
+#ifndef GL_NV_texture_shader
+#define GL_NV_texture_shader 1
+#define GL_OFFSET_TEXTURE_RECTANGLE_NV    0x864C
+#define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D
+#define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E
+#define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9
+#define GL_UNSIGNED_INT_S8_S8_8_8_NV      0x86DA
+#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV  0x86DB
+#define GL_DSDT_MAG_INTENSITY_NV          0x86DC
+#define GL_SHADER_CONSISTENT_NV           0x86DD
+#define GL_TEXTURE_SHADER_NV              0x86DE
+#define GL_SHADER_OPERATION_NV            0x86DF
+#define GL_CULL_MODES_NV                  0x86E0
+#define GL_OFFSET_TEXTURE_MATRIX_NV       0x86E1
+#define GL_OFFSET_TEXTURE_SCALE_NV        0x86E2
+#define GL_OFFSET_TEXTURE_BIAS_NV         0x86E3
+#define GL_OFFSET_TEXTURE_2D_MATRIX_NV    0x86E1
+#define GL_OFFSET_TEXTURE_2D_SCALE_NV     0x86E2
+#define GL_OFFSET_TEXTURE_2D_BIAS_NV      0x86E3
+#define GL_PREVIOUS_TEXTURE_INPUT_NV      0x86E4
+#define GL_CONST_EYE_NV                   0x86E5
+#define GL_PASS_THROUGH_NV                0x86E6
+#define GL_CULL_FRAGMENT_NV               0x86E7
+#define GL_OFFSET_TEXTURE_2D_NV           0x86E8
+#define GL_DEPENDENT_AR_TEXTURE_2D_NV     0x86E9
+#define GL_DEPENDENT_GB_TEXTURE_2D_NV     0x86EA
+#define GL_DOT_PRODUCT_NV                 0x86EC
+#define GL_DOT_PRODUCT_DEPTH_REPLACE_NV   0x86ED
+#define GL_DOT_PRODUCT_TEXTURE_2D_NV      0x86EE
+#define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0
+#define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1
+#define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2
+#define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3
+#define GL_HILO_NV                        0x86F4
+#define GL_DSDT_NV                        0x86F5
+#define GL_DSDT_MAG_NV                    0x86F6
+#define GL_DSDT_MAG_VIB_NV                0x86F7
+#define GL_HILO16_NV                      0x86F8
+#define GL_SIGNED_HILO_NV                 0x86F9
+#define GL_SIGNED_HILO16_NV               0x86FA
+#define GL_SIGNED_RGBA_NV                 0x86FB
+#define GL_SIGNED_RGBA8_NV                0x86FC
+#define GL_SIGNED_RGB_NV                  0x86FE
+#define GL_SIGNED_RGB8_NV                 0x86FF
+#define GL_SIGNED_LUMINANCE_NV            0x8701
+#define GL_SIGNED_LUMINANCE8_NV           0x8702
+#define GL_SIGNED_LUMINANCE_ALPHA_NV      0x8703
+#define GL_SIGNED_LUMINANCE8_ALPHA8_NV    0x8704
+#define GL_SIGNED_ALPHA_NV                0x8705
+#define GL_SIGNED_ALPHA8_NV               0x8706
+#define GL_SIGNED_INTENSITY_NV            0x8707
+#define GL_SIGNED_INTENSITY8_NV           0x8708
+#define GL_DSDT8_NV                       0x8709
+#define GL_DSDT8_MAG8_NV                  0x870A
+#define GL_DSDT8_MAG8_INTENSITY8_NV       0x870B
+#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV   0x870C
+#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D
+#define GL_HI_SCALE_NV                    0x870E
+#define GL_LO_SCALE_NV                    0x870F
+#define GL_DS_SCALE_NV                    0x8710
+#define GL_DT_SCALE_NV                    0x8711
+#define GL_MAGNITUDE_SCALE_NV             0x8712
+#define GL_VIBRANCE_SCALE_NV              0x8713
+#define GL_HI_BIAS_NV                     0x8714
+#define GL_LO_BIAS_NV                     0x8715
+#define GL_DS_BIAS_NV                     0x8716
+#define GL_DT_BIAS_NV                     0x8717
+#define GL_MAGNITUDE_BIAS_NV              0x8718
+#define GL_VIBRANCE_BIAS_NV               0x8719
+#define GL_TEXTURE_BORDER_VALUES_NV       0x871A
+#define GL_TEXTURE_HI_SIZE_NV             0x871B
+#define GL_TEXTURE_LO_SIZE_NV             0x871C
+#define GL_TEXTURE_DS_SIZE_NV             0x871D
+#define GL_TEXTURE_DT_SIZE_NV             0x871E
+#define GL_TEXTURE_MAG_SIZE_NV            0x871F
+#endif /* GL_NV_texture_shader */
+
+#ifndef GL_NV_texture_shader2
+#define GL_NV_texture_shader2 1
+#define GL_DOT_PRODUCT_TEXTURE_3D_NV      0x86EF
+#endif /* GL_NV_texture_shader2 */
+
+#ifndef GL_NV_texture_shader3
+#define GL_NV_texture_shader3 1
+#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850
+#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851
+#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852
+#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853
+#define GL_OFFSET_HILO_TEXTURE_2D_NV      0x8854
+#define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855
+#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856
+#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857
+#define GL_DEPENDENT_HILO_TEXTURE_2D_NV   0x8858
+#define GL_DEPENDENT_RGB_TEXTURE_3D_NV    0x8859
+#define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A
+#define GL_DOT_PRODUCT_PASS_THROUGH_NV    0x885B
+#define GL_DOT_PRODUCT_TEXTURE_1D_NV      0x885C
+#define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D
+#define GL_HILO8_NV                       0x885E
+#define GL_SIGNED_HILO8_NV                0x885F
+#define GL_FORCE_BLUE_TO_ONE_NV           0x8860
+#endif /* GL_NV_texture_shader3 */
+
+#ifndef GL_NV_transform_feedback
+#define GL_NV_transform_feedback 1
+#define GL_BACK_PRIMARY_COLOR_NV          0x8C77
+#define GL_BACK_SECONDARY_COLOR_NV        0x8C78
+#define GL_TEXTURE_COORD_NV               0x8C79
+#define GL_CLIP_DISTANCE_NV               0x8C7A
+#define GL_VERTEX_ID_NV                   0x8C7B
+#define GL_PRIMITIVE_ID_NV                0x8C7C
+#define GL_GENERIC_ATTRIB_NV              0x8C7D
+#define GL_TRANSFORM_FEEDBACK_ATTRIBS_NV  0x8C7E
+#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV 0x8C7F
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80
+#define GL_ACTIVE_VARYINGS_NV             0x8C81
+#define GL_ACTIVE_VARYING_MAX_LENGTH_NV   0x8C82
+#define GL_TRANSFORM_FEEDBACK_VARYINGS_NV 0x8C83
+#define GL_TRANSFORM_FEEDBACK_BUFFER_START_NV 0x8C84
+#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV 0x8C85
+#define GL_TRANSFORM_FEEDBACK_RECORD_NV   0x8C86
+#define GL_PRIMITIVES_GENERATED_NV        0x8C87
+#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88
+#define GL_RASTERIZER_DISCARD_NV          0x8C89
+#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV 0x8C8A
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B
+#define GL_INTERLEAVED_ATTRIBS_NV         0x8C8C
+#define GL_SEPARATE_ATTRIBS_NV            0x8C8D
+#define GL_TRANSFORM_FEEDBACK_BUFFER_NV   0x8C8E
+#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV 0x8C8F
+#define GL_LAYER_NV                       0x8DAA
+#define GL_NEXT_BUFFER_NV                 -2
+#define GL_SKIP_COMPONENTS4_NV            -3
+#define GL_SKIP_COMPONENTS3_NV            -4
+#define GL_SKIP_COMPONENTS2_NV            -5
+#define GL_SKIP_COMPONENTS1_NV            -6
+typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode);
+typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKNVPROC) (void);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLuint count, const GLint *attribs, GLenum bufferMode);
+typedef void (APIENTRYP PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
+typedef void (APIENTRYP PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
+typedef void (APIENTRYP PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKSTREAMATTRIBSNVPROC) (GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginTransformFeedbackNV (GLenum primitiveMode);
+GLAPI void APIENTRY glEndTransformFeedbackNV (void);
+GLAPI void APIENTRY glTransformFeedbackAttribsNV (GLuint count, const GLint *attribs, GLenum bufferMode);
+GLAPI void APIENTRY glBindBufferRangeNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glBindBufferOffsetNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
+GLAPI void APIENTRY glBindBufferBaseNV (GLenum target, GLuint index, GLuint buffer);
+GLAPI void APIENTRY glTransformFeedbackVaryingsNV (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
+GLAPI void APIENTRY glActiveVaryingNV (GLuint program, const GLchar *name);
+GLAPI GLint APIENTRY glGetVaryingLocationNV (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGetActiveVaryingNV (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glGetTransformFeedbackVaryingNV (GLuint program, GLuint index, GLint *location);
+GLAPI void APIENTRY glTransformFeedbackStreamAttribsNV (GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode);
+#endif
+#endif /* GL_NV_transform_feedback */
+
+#ifndef GL_NV_transform_feedback2
+#define GL_NV_transform_feedback2 1
+#define GL_TRANSFORM_FEEDBACK_NV          0x8E22
+#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV 0x8E23
+#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV 0x8E24
+#define GL_TRANSFORM_FEEDBACK_BINDING_NV  0x8E25
+typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKNVPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSNVPROC) (GLsizei n, const GLuint *ids);
+typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSNVPROC) (GLsizei n, GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKNVPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKNVPROC) (void);
+typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKNVPROC) (void);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKNVPROC) (GLenum mode, GLuint id);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindTransformFeedbackNV (GLenum target, GLuint id);
+GLAPI void APIENTRY glDeleteTransformFeedbacksNV (GLsizei n, const GLuint *ids);
+GLAPI void APIENTRY glGenTransformFeedbacksNV (GLsizei n, GLuint *ids);
+GLAPI GLboolean APIENTRY glIsTransformFeedbackNV (GLuint id);
+GLAPI void APIENTRY glPauseTransformFeedbackNV (void);
+GLAPI void APIENTRY glResumeTransformFeedbackNV (void);
+GLAPI void APIENTRY glDrawTransformFeedbackNV (GLenum mode, GLuint id);
+#endif
+#endif /* GL_NV_transform_feedback2 */
+
+#ifndef GL_NV_vdpau_interop
+#define GL_NV_vdpau_interop 1
+typedef GLintptr GLvdpauSurfaceNV;
+#define GL_SURFACE_STATE_NV               0x86EB
+#define GL_SURFACE_REGISTERED_NV          0x86FD
+#define GL_SURFACE_MAPPED_NV              0x8700
+#define GL_WRITE_DISCARD_NV               0x88BE
+typedef void (APIENTRYP PFNGLVDPAUINITNVPROC) (const void *vdpDevice, const void *getProcAddress);
+typedef void (APIENTRYP PFNGLVDPAUFININVPROC) (void);
+typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTERVIDEOSURFACENVPROC) (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
+typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC) (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
+typedef GLboolean (APIENTRYP PFNGLVDPAUISSURFACENVPROC) (GLvdpauSurfaceNV surface);
+typedef void (APIENTRYP PFNGLVDPAUUNREGISTERSURFACENVPROC) (GLvdpauSurfaceNV surface);
+typedef void (APIENTRYP PFNGLVDPAUGETSURFACEIVNVPROC) (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
+typedef void (APIENTRYP PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access);
+typedef void (APIENTRYP PFNGLVDPAUMAPSURFACESNVPROC) (GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces);
+typedef void (APIENTRYP PFNGLVDPAUUNMAPSURFACESNVPROC) (GLsizei numSurface, const GLvdpauSurfaceNV *surfaces);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVDPAUInitNV (const void *vdpDevice, const void *getProcAddress);
+GLAPI void APIENTRY glVDPAUFiniNV (void);
+GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterVideoSurfaceNV (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
+GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterOutputSurfaceNV (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
+GLAPI GLboolean APIENTRY glVDPAUIsSurfaceNV (GLvdpauSurfaceNV surface);
+GLAPI void APIENTRY glVDPAUUnregisterSurfaceNV (GLvdpauSurfaceNV surface);
+GLAPI void APIENTRY glVDPAUGetSurfaceivNV (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
+GLAPI void APIENTRY glVDPAUSurfaceAccessNV (GLvdpauSurfaceNV surface, GLenum access);
+GLAPI void APIENTRY glVDPAUMapSurfacesNV (GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces);
+GLAPI void APIENTRY glVDPAUUnmapSurfacesNV (GLsizei numSurface, const GLvdpauSurfaceNV *surfaces);
+#endif
+#endif /* GL_NV_vdpau_interop */
+
+#ifndef GL_NV_vertex_array_range
+#define GL_NV_vertex_array_range 1
+#define GL_VERTEX_ARRAY_RANGE_NV          0x851D
+#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV   0x851E
+#define GL_VERTEX_ARRAY_RANGE_VALID_NV    0x851F
+#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520
+#define GL_VERTEX_ARRAY_RANGE_POINTER_NV  0x8521
+typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void);
+typedef void (APIENTRYP PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFlushVertexArrayRangeNV (void);
+GLAPI void APIENTRY glVertexArrayRangeNV (GLsizei length, const void *pointer);
+#endif
+#endif /* GL_NV_vertex_array_range */
+
+#ifndef GL_NV_vertex_array_range2
+#define GL_NV_vertex_array_range2 1
+#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533
+#endif /* GL_NV_vertex_array_range2 */
+
+#ifndef GL_NV_vertex_attrib_integer_64bit
+#define GL_NV_vertex_attrib_integer_64bit 1
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribL1i64NV (GLuint index, GLint64EXT x);
+GLAPI void APIENTRY glVertexAttribL2i64NV (GLuint index, GLint64EXT x, GLint64EXT y);
+GLAPI void APIENTRY glVertexAttribL3i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GLAPI void APIENTRY glVertexAttribL4i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GLAPI void APIENTRY glVertexAttribL1i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL2i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL3i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL4i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL1ui64NV (GLuint index, GLuint64EXT x);
+GLAPI void APIENTRY glVertexAttribL2ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y);
+GLAPI void APIENTRY glVertexAttribL3ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GLAPI void APIENTRY glVertexAttribL4ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GLAPI void APIENTRY glVertexAttribL1ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL2ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL3ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL4ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glGetVertexAttribLi64vNV (GLuint index, GLenum pname, GLint64EXT *params);
+GLAPI void APIENTRY glGetVertexAttribLui64vNV (GLuint index, GLenum pname, GLuint64EXT *params);
+GLAPI void APIENTRY glVertexAttribLFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride);
+#endif
+#endif /* GL_NV_vertex_attrib_integer_64bit */
+
+#ifndef GL_NV_vertex_buffer_unified_memory
+#define GL_NV_vertex_buffer_unified_memory 1
+#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E
+#define GL_ELEMENT_ARRAY_UNIFIED_NV       0x8F1F
+#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20
+#define GL_VERTEX_ARRAY_ADDRESS_NV        0x8F21
+#define GL_NORMAL_ARRAY_ADDRESS_NV        0x8F22
+#define GL_COLOR_ARRAY_ADDRESS_NV         0x8F23
+#define GL_INDEX_ARRAY_ADDRESS_NV         0x8F24
+#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25
+#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV     0x8F26
+#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27
+#define GL_FOG_COORD_ARRAY_ADDRESS_NV     0x8F28
+#define GL_ELEMENT_ARRAY_ADDRESS_NV       0x8F29
+#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV  0x8F2A
+#define GL_VERTEX_ARRAY_LENGTH_NV         0x8F2B
+#define GL_NORMAL_ARRAY_LENGTH_NV         0x8F2C
+#define GL_COLOR_ARRAY_LENGTH_NV          0x8F2D
+#define GL_INDEX_ARRAY_LENGTH_NV          0x8F2E
+#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV  0x8F2F
+#define GL_EDGE_FLAG_ARRAY_LENGTH_NV      0x8F30
+#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31
+#define GL_FOG_COORD_ARRAY_LENGTH_NV      0x8F32
+#define GL_ELEMENT_ARRAY_LENGTH_NV        0x8F33
+#define GL_DRAW_INDIRECT_UNIFIED_NV       0x8F40
+#define GL_DRAW_INDIRECT_ADDRESS_NV       0x8F41
+#define GL_DRAW_INDIRECT_LENGTH_NV        0x8F42
+typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferAddressRangeNV (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
+GLAPI void APIENTRY glVertexFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glNormalFormatNV (GLenum type, GLsizei stride);
+GLAPI void APIENTRY glColorFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glIndexFormatNV (GLenum type, GLsizei stride);
+GLAPI void APIENTRY glTexCoordFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glEdgeFlagFormatNV (GLsizei stride);
+GLAPI void APIENTRY glSecondaryColorFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glFogCoordFormatNV (GLenum type, GLsizei stride);
+GLAPI void APIENTRY glVertexAttribFormatNV (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
+GLAPI void APIENTRY glVertexAttribIFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glGetIntegerui64i_vNV (GLenum value, GLuint index, GLuint64EXT *result);
+#endif
+#endif /* GL_NV_vertex_buffer_unified_memory */
+
+#ifndef GL_NV_vertex_program
+#define GL_NV_vertex_program 1
+#define GL_VERTEX_PROGRAM_NV              0x8620
+#define GL_VERTEX_STATE_PROGRAM_NV        0x8621
+#define GL_ATTRIB_ARRAY_SIZE_NV           0x8623
+#define GL_ATTRIB_ARRAY_STRIDE_NV         0x8624
+#define GL_ATTRIB_ARRAY_TYPE_NV           0x8625
+#define GL_CURRENT_ATTRIB_NV              0x8626
+#define GL_PROGRAM_LENGTH_NV              0x8627
+#define GL_PROGRAM_STRING_NV              0x8628
+#define GL_MODELVIEW_PROJECTION_NV        0x8629
+#define GL_IDENTITY_NV                    0x862A
+#define GL_INVERSE_NV                     0x862B
+#define GL_TRANSPOSE_NV                   0x862C
+#define GL_INVERSE_TRANSPOSE_NV           0x862D
+#define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E
+#define GL_MAX_TRACK_MATRICES_NV          0x862F
+#define GL_MATRIX0_NV                     0x8630
+#define GL_MATRIX1_NV                     0x8631
+#define GL_MATRIX2_NV                     0x8632
+#define GL_MATRIX3_NV                     0x8633
+#define GL_MATRIX4_NV                     0x8634
+#define GL_MATRIX5_NV                     0x8635
+#define GL_MATRIX6_NV                     0x8636
+#define GL_MATRIX7_NV                     0x8637
+#define GL_CURRENT_MATRIX_STACK_DEPTH_NV  0x8640
+#define GL_CURRENT_MATRIX_NV              0x8641
+#define GL_VERTEX_PROGRAM_POINT_SIZE_NV   0x8642
+#define GL_VERTEX_PROGRAM_TWO_SIDE_NV     0x8643
+#define GL_PROGRAM_PARAMETER_NV           0x8644
+#define GL_ATTRIB_ARRAY_POINTER_NV        0x8645
+#define GL_PROGRAM_TARGET_NV              0x8646
+#define GL_PROGRAM_RESIDENT_NV            0x8647
+#define GL_TRACK_MATRIX_NV                0x8648
+#define GL_TRACK_MATRIX_TRANSFORM_NV      0x8649
+#define GL_VERTEX_PROGRAM_BINDING_NV      0x864A
+#define GL_PROGRAM_ERROR_POSITION_NV      0x864B
+#define GL_VERTEX_ATTRIB_ARRAY0_NV        0x8650
+#define GL_VERTEX_ATTRIB_ARRAY1_NV        0x8651
+#define GL_VERTEX_ATTRIB_ARRAY2_NV        0x8652
+#define GL_VERTEX_ATTRIB_ARRAY3_NV        0x8653
+#define GL_VERTEX_ATTRIB_ARRAY4_NV        0x8654
+#define GL_VERTEX_ATTRIB_ARRAY5_NV        0x8655
+#define GL_VERTEX_ATTRIB_ARRAY6_NV        0x8656
+#define GL_VERTEX_ATTRIB_ARRAY7_NV        0x8657
+#define GL_VERTEX_ATTRIB_ARRAY8_NV        0x8658
+#define GL_VERTEX_ATTRIB_ARRAY9_NV        0x8659
+#define GL_VERTEX_ATTRIB_ARRAY10_NV       0x865A
+#define GL_VERTEX_ATTRIB_ARRAY11_NV       0x865B
+#define GL_VERTEX_ATTRIB_ARRAY12_NV       0x865C
+#define GL_VERTEX_ATTRIB_ARRAY13_NV       0x865D
+#define GL_VERTEX_ATTRIB_ARRAY14_NV       0x865E
+#define GL_VERTEX_ATTRIB_ARRAY15_NV       0x865F
+#define GL_MAP1_VERTEX_ATTRIB0_4_NV       0x8660
+#define GL_MAP1_VERTEX_ATTRIB1_4_NV       0x8661
+#define GL_MAP1_VERTEX_ATTRIB2_4_NV       0x8662
+#define GL_MAP1_VERTEX_ATTRIB3_4_NV       0x8663
+#define GL_MAP1_VERTEX_ATTRIB4_4_NV       0x8664
+#define GL_MAP1_VERTEX_ATTRIB5_4_NV       0x8665
+#define GL_MAP1_VERTEX_ATTRIB6_4_NV       0x8666
+#define GL_MAP1_VERTEX_ATTRIB7_4_NV       0x8667
+#define GL_MAP1_VERTEX_ATTRIB8_4_NV       0x8668
+#define GL_MAP1_VERTEX_ATTRIB9_4_NV       0x8669
+#define GL_MAP1_VERTEX_ATTRIB10_4_NV      0x866A
+#define GL_MAP1_VERTEX_ATTRIB11_4_NV      0x866B
+#define GL_MAP1_VERTEX_ATTRIB12_4_NV      0x866C
+#define GL_MAP1_VERTEX_ATTRIB13_4_NV      0x866D
+#define GL_MAP1_VERTEX_ATTRIB14_4_NV      0x866E
+#define GL_MAP1_VERTEX_ATTRIB15_4_NV      0x866F
+#define GL_MAP2_VERTEX_ATTRIB0_4_NV       0x8670
+#define GL_MAP2_VERTEX_ATTRIB1_4_NV       0x8671
+#define GL_MAP2_VERTEX_ATTRIB2_4_NV       0x8672
+#define GL_MAP2_VERTEX_ATTRIB3_4_NV       0x8673
+#define GL_MAP2_VERTEX_ATTRIB4_4_NV       0x8674
+#define GL_MAP2_VERTEX_ATTRIB5_4_NV       0x8675
+#define GL_MAP2_VERTEX_ATTRIB6_4_NV       0x8676
+#define GL_MAP2_VERTEX_ATTRIB7_4_NV       0x8677
+#define GL_MAP2_VERTEX_ATTRIB8_4_NV       0x8678
+#define GL_MAP2_VERTEX_ATTRIB9_4_NV       0x8679
+#define GL_MAP2_VERTEX_ATTRIB10_4_NV      0x867A
+#define GL_MAP2_VERTEX_ATTRIB11_4_NV      0x867B
+#define GL_MAP2_VERTEX_ATTRIB12_4_NV      0x867C
+#define GL_MAP2_VERTEX_ATTRIB13_4_NV      0x867D
+#define GL_MAP2_VERTEX_ATTRIB14_4_NV      0x867E
+#define GL_MAP2_VERTEX_ATTRIB15_4_NV      0x867F
+typedef GLboolean (APIENTRYP PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences);
+typedef void (APIENTRYP PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
+typedef void (APIENTRYP PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs);
+typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program);
+typedef void (APIENTRYP PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, void **pointer);
+typedef GLboolean (APIENTRYP PFNGLISPROGRAMNVPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
+typedef void (APIENTRYP PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLboolean APIENTRY glAreProgramsResidentNV (GLsizei n, const GLuint *programs, GLboolean *residences);
+GLAPI void APIENTRY glBindProgramNV (GLenum target, GLuint id);
+GLAPI void APIENTRY glDeleteProgramsNV (GLsizei n, const GLuint *programs);
+GLAPI void APIENTRY glExecuteProgramNV (GLenum target, GLuint id, const GLfloat *params);
+GLAPI void APIENTRY glGenProgramsNV (GLsizei n, GLuint *programs);
+GLAPI void APIENTRY glGetProgramParameterdvNV (GLenum target, GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetProgramParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetProgramivNV (GLuint id, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetProgramStringNV (GLuint id, GLenum pname, GLubyte *program);
+GLAPI void APIENTRY glGetTrackMatrixivNV (GLenum target, GLuint address, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribdvNV (GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetVertexAttribfvNV (GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVertexAttribivNV (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribPointervNV (GLuint index, GLenum pname, void **pointer);
+GLAPI GLboolean APIENTRY glIsProgramNV (GLuint id);
+GLAPI void APIENTRY glLoadProgramNV (GLenum target, GLuint id, GLsizei len, const GLubyte *program);
+GLAPI void APIENTRY glProgramParameter4dNV (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramParameter4dvNV (GLenum target, GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glProgramParameter4fNV (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glProgramParameter4fvNV (GLenum target, GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glProgramParameters4dvNV (GLenum target, GLuint index, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glProgramParameters4fvNV (GLenum target, GLuint index, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glRequestResidentProgramsNV (GLsizei n, const GLuint *programs);
+GLAPI void APIENTRY glTrackMatrixNV (GLenum target, GLuint address, GLenum matrix, GLenum transform);
+GLAPI void APIENTRY glVertexAttribPointerNV (GLuint index, GLint fsize, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glVertexAttrib1dNV (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttrib1dvNV (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib1fNV (GLuint index, GLfloat x);
+GLAPI void APIENTRY glVertexAttrib1fvNV (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib1sNV (GLuint index, GLshort x);
+GLAPI void APIENTRY glVertexAttrib1svNV (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib2dNV (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttrib2dvNV (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib2fNV (GLuint index, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glVertexAttrib2fvNV (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib2sNV (GLuint index, GLshort x, GLshort y);
+GLAPI void APIENTRY glVertexAttrib2svNV (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib3dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttrib3dvNV (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib3fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glVertexAttrib3fvNV (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib3sNV (GLuint index, GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glVertexAttrib3svNV (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttrib4dvNV (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib4fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glVertexAttrib4fvNV (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib4sNV (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glVertexAttrib4svNV (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4ubNV (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+GLAPI void APIENTRY glVertexAttrib4ubvNV (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttribs1dvNV (GLuint index, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribs1fvNV (GLuint index, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttribs1svNV (GLuint index, GLsizei count, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribs2dvNV (GLuint index, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribs2fvNV (GLuint index, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttribs2svNV (GLuint index, GLsizei count, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribs3dvNV (GLuint index, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribs3fvNV (GLuint index, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttribs3svNV (GLuint index, GLsizei count, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribs4dvNV (GLuint index, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribs4fvNV (GLuint index, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttribs4svNV (GLuint index, GLsizei count, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribs4ubvNV (GLuint index, GLsizei count, const GLubyte *v);
+#endif
+#endif /* GL_NV_vertex_program */
+
+#ifndef GL_NV_vertex_program1_1
+#define GL_NV_vertex_program1_1 1
+#endif /* GL_NV_vertex_program1_1 */
+
+#ifndef GL_NV_vertex_program2
+#define GL_NV_vertex_program2 1
+#endif /* GL_NV_vertex_program2 */
+
+#ifndef GL_NV_vertex_program2_option
+#define GL_NV_vertex_program2_option 1
+#endif /* GL_NV_vertex_program2_option */
+
+#ifndef GL_NV_vertex_program3
+#define GL_NV_vertex_program3 1
+#endif /* GL_NV_vertex_program3 */
+
+#ifndef GL_NV_vertex_program4
+#define GL_NV_vertex_program4 1
+#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribI1iEXT (GLuint index, GLint x);
+GLAPI void APIENTRY glVertexAttribI2iEXT (GLuint index, GLint x, GLint y);
+GLAPI void APIENTRY glVertexAttribI3iEXT (GLuint index, GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glVertexAttribI4iEXT (GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glVertexAttribI1uiEXT (GLuint index, GLuint x);
+GLAPI void APIENTRY glVertexAttribI2uiEXT (GLuint index, GLuint x, GLuint y);
+GLAPI void APIENTRY glVertexAttribI3uiEXT (GLuint index, GLuint x, GLuint y, GLuint z);
+GLAPI void APIENTRY glVertexAttribI4uiEXT (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glVertexAttribI1ivEXT (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI2ivEXT (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI3ivEXT (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI4ivEXT (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI1uivEXT (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI2uivEXT (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI3uivEXT (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI4uivEXT (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI4bvEXT (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttribI4svEXT (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribI4ubvEXT (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttribI4usvEXT (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttribIPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glGetVertexAttribIivEXT (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribIuivEXT (GLuint index, GLenum pname, GLuint *params);
+#endif
+#endif /* GL_NV_vertex_program4 */
+
+#ifndef GL_NV_video_capture
+#define GL_NV_video_capture 1
+#define GL_VIDEO_BUFFER_NV                0x9020
+#define GL_VIDEO_BUFFER_BINDING_NV        0x9021
+#define GL_FIELD_UPPER_NV                 0x9022
+#define GL_FIELD_LOWER_NV                 0x9023
+#define GL_NUM_VIDEO_CAPTURE_STREAMS_NV   0x9024
+#define GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV 0x9025
+#define GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV 0x9026
+#define GL_LAST_VIDEO_CAPTURE_STATUS_NV   0x9027
+#define GL_VIDEO_BUFFER_PITCH_NV          0x9028
+#define GL_VIDEO_COLOR_CONVERSION_MATRIX_NV 0x9029
+#define GL_VIDEO_COLOR_CONVERSION_MAX_NV  0x902A
+#define GL_VIDEO_COLOR_CONVERSION_MIN_NV  0x902B
+#define GL_VIDEO_COLOR_CONVERSION_OFFSET_NV 0x902C
+#define GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV 0x902D
+#define GL_PARTIAL_SUCCESS_NV             0x902E
+#define GL_SUCCESS_NV                     0x902F
+#define GL_FAILURE_NV                     0x9030
+#define GL_YCBYCR8_422_NV                 0x9031
+#define GL_YCBAYCR8A_4224_NV              0x9032
+#define GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV  0x9033
+#define GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV 0x9034
+#define GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV  0x9035
+#define GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV 0x9036
+#define GL_Z4Y12Z4CB12Z4CR12_444_NV       0x9037
+#define GL_VIDEO_CAPTURE_FRAME_WIDTH_NV   0x9038
+#define GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV  0x9039
+#define GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV 0x903A
+#define GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV 0x903B
+#define GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV 0x903C
+typedef void (APIENTRYP PFNGLBEGINVIDEOCAPTURENVPROC) (GLuint video_capture_slot);
+typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset);
+typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture);
+typedef void (APIENTRYP PFNGLENDVIDEOCAPTURENVPROC) (GLuint video_capture_slot);
+typedef void (APIENTRYP PFNGLGETVIDEOCAPTUREIVNVPROC) (GLuint video_capture_slot, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params);
+typedef GLenum (APIENTRYP PFNGLVIDEOCAPTURENVPROC) (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time);
+typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginVideoCaptureNV (GLuint video_capture_slot);
+GLAPI void APIENTRY glBindVideoCaptureStreamBufferNV (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset);
+GLAPI void APIENTRY glBindVideoCaptureStreamTextureNV (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture);
+GLAPI void APIENTRY glEndVideoCaptureNV (GLuint video_capture_slot);
+GLAPI void APIENTRY glGetVideoCaptureivNV (GLuint video_capture_slot, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVideoCaptureStreamivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVideoCaptureStreamfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVideoCaptureStreamdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params);
+GLAPI GLenum APIENTRY glVideoCaptureNV (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time);
+GLAPI void APIENTRY glVideoCaptureStreamParameterivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glVideoCaptureStreamParameterfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glVideoCaptureStreamParameterdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params);
+#endif
+#endif /* GL_NV_video_capture */
+
+#ifndef GL_OML_interlace
+#define GL_OML_interlace 1
+#define GL_INTERLACE_OML                  0x8980
+#define GL_INTERLACE_READ_OML             0x8981
+#endif /* GL_OML_interlace */
+
+#ifndef GL_OML_resample
+#define GL_OML_resample 1
+#define GL_PACK_RESAMPLE_OML              0x8984
+#define GL_UNPACK_RESAMPLE_OML            0x8985
+#define GL_RESAMPLE_REPLICATE_OML         0x8986
+#define GL_RESAMPLE_ZERO_FILL_OML         0x8987
+#define GL_RESAMPLE_AVERAGE_OML           0x8988
+#define GL_RESAMPLE_DECIMATE_OML          0x8989
+#endif /* GL_OML_resample */
+
+#ifndef GL_OML_subsample
+#define GL_OML_subsample 1
+#define GL_FORMAT_SUBSAMPLE_24_24_OML     0x8982
+#define GL_FORMAT_SUBSAMPLE_244_244_OML   0x8983
+#endif /* GL_OML_subsample */
+
+#ifndef GL_PGI_misc_hints
+#define GL_PGI_misc_hints 1
+#define GL_PREFER_DOUBLEBUFFER_HINT_PGI   0x1A1F8
+#define GL_CONSERVE_MEMORY_HINT_PGI       0x1A1FD
+#define GL_RECLAIM_MEMORY_HINT_PGI        0x1A1FE
+#define GL_NATIVE_GRAPHICS_HANDLE_PGI     0x1A202
+#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203
+#define GL_NATIVE_GRAPHICS_END_HINT_PGI   0x1A204
+#define GL_ALWAYS_FAST_HINT_PGI           0x1A20C
+#define GL_ALWAYS_SOFT_HINT_PGI           0x1A20D
+#define GL_ALLOW_DRAW_OBJ_HINT_PGI        0x1A20E
+#define GL_ALLOW_DRAW_WIN_HINT_PGI        0x1A20F
+#define GL_ALLOW_DRAW_FRG_HINT_PGI        0x1A210
+#define GL_ALLOW_DRAW_MEM_HINT_PGI        0x1A211
+#define GL_STRICT_DEPTHFUNC_HINT_PGI      0x1A216
+#define GL_STRICT_LIGHTING_HINT_PGI       0x1A217
+#define GL_STRICT_SCISSOR_HINT_PGI        0x1A218
+#define GL_FULL_STIPPLE_HINT_PGI          0x1A219
+#define GL_CLIP_NEAR_HINT_PGI             0x1A220
+#define GL_CLIP_FAR_HINT_PGI              0x1A221
+#define GL_WIDE_LINE_HINT_PGI             0x1A222
+#define GL_BACK_NORMALS_HINT_PGI          0x1A223
+typedef void (APIENTRYP PFNGLHINTPGIPROC) (GLenum target, GLint mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glHintPGI (GLenum target, GLint mode);
+#endif
+#endif /* GL_PGI_misc_hints */
+
+#ifndef GL_PGI_vertex_hints
+#define GL_PGI_vertex_hints 1
+#define GL_VERTEX_DATA_HINT_PGI           0x1A22A
+#define GL_VERTEX_CONSISTENT_HINT_PGI     0x1A22B
+#define GL_MATERIAL_SIDE_HINT_PGI         0x1A22C
+#define GL_MAX_VERTEX_HINT_PGI            0x1A22D
+#define GL_COLOR3_BIT_PGI                 0x00010000
+#define GL_COLOR4_BIT_PGI                 0x00020000
+#define GL_EDGEFLAG_BIT_PGI               0x00040000
+#define GL_INDEX_BIT_PGI                  0x00080000
+#define GL_MAT_AMBIENT_BIT_PGI            0x00100000
+#define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000
+#define GL_MAT_DIFFUSE_BIT_PGI            0x00400000
+#define GL_MAT_EMISSION_BIT_PGI           0x00800000
+#define GL_MAT_COLOR_INDEXES_BIT_PGI      0x01000000
+#define GL_MAT_SHININESS_BIT_PGI          0x02000000
+#define GL_MAT_SPECULAR_BIT_PGI           0x04000000
+#define GL_NORMAL_BIT_PGI                 0x08000000
+#define GL_TEXCOORD1_BIT_PGI              0x10000000
+#define GL_TEXCOORD2_BIT_PGI              0x20000000
+#define GL_TEXCOORD3_BIT_PGI              0x40000000
+#define GL_TEXCOORD4_BIT_PGI              0x80000000
+#define GL_VERTEX23_BIT_PGI               0x00000004
+#define GL_VERTEX4_BIT_PGI                0x00000008
+#endif /* GL_PGI_vertex_hints */
+
+#ifndef GL_REND_screen_coordinates
+#define GL_REND_screen_coordinates 1
+#define GL_SCREEN_COORDINATES_REND        0x8490
+#define GL_INVERTED_SCREEN_W_REND         0x8491
+#endif /* GL_REND_screen_coordinates */
+
+#ifndef GL_S3_s3tc
+#define GL_S3_s3tc 1
+#define GL_RGB_S3TC                       0x83A0
+#define GL_RGB4_S3TC                      0x83A1
+#define GL_RGBA_S3TC                      0x83A2
+#define GL_RGBA4_S3TC                     0x83A3
+#define GL_RGBA_DXT5_S3TC                 0x83A4
+#define GL_RGBA4_DXT5_S3TC                0x83A5
+#endif /* GL_S3_s3tc */
+
+#ifndef GL_SGIS_detail_texture
+#define GL_SGIS_detail_texture 1
+#define GL_DETAIL_TEXTURE_2D_SGIS         0x8095
+#define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096
+#define GL_LINEAR_DETAIL_SGIS             0x8097
+#define GL_LINEAR_DETAIL_ALPHA_SGIS       0x8098
+#define GL_LINEAR_DETAIL_COLOR_SGIS       0x8099
+#define GL_DETAIL_TEXTURE_LEVEL_SGIS      0x809A
+#define GL_DETAIL_TEXTURE_MODE_SGIS       0x809B
+#define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C
+typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
+typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDetailTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points);
+GLAPI void APIENTRY glGetDetailTexFuncSGIS (GLenum target, GLfloat *points);
+#endif
+#endif /* GL_SGIS_detail_texture */
+
+#ifndef GL_SGIS_fog_function
+#define GL_SGIS_fog_function 1
+#define GL_FOG_FUNC_SGIS                  0x812A
+#define GL_FOG_FUNC_POINTS_SGIS           0x812B
+#define GL_MAX_FOG_FUNC_POINTS_SGIS       0x812C
+typedef void (APIENTRYP PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points);
+typedef void (APIENTRYP PFNGLGETFOGFUNCSGISPROC) (GLfloat *points);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFogFuncSGIS (GLsizei n, const GLfloat *points);
+GLAPI void APIENTRY glGetFogFuncSGIS (GLfloat *points);
+#endif
+#endif /* GL_SGIS_fog_function */
+
+#ifndef GL_SGIS_generate_mipmap
+#define GL_SGIS_generate_mipmap 1
+#define GL_GENERATE_MIPMAP_SGIS           0x8191
+#define GL_GENERATE_MIPMAP_HINT_SGIS      0x8192
+#endif /* GL_SGIS_generate_mipmap */
+
+#ifndef GL_SGIS_multisample
+#define GL_SGIS_multisample 1
+#define GL_MULTISAMPLE_SGIS               0x809D
+#define GL_SAMPLE_ALPHA_TO_MASK_SGIS      0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE_SGIS       0x809F
+#define GL_SAMPLE_MASK_SGIS               0x80A0
+#define GL_1PASS_SGIS                     0x80A1
+#define GL_2PASS_0_SGIS                   0x80A2
+#define GL_2PASS_1_SGIS                   0x80A3
+#define GL_4PASS_0_SGIS                   0x80A4
+#define GL_4PASS_1_SGIS                   0x80A5
+#define GL_4PASS_2_SGIS                   0x80A6
+#define GL_4PASS_3_SGIS                   0x80A7
+#define GL_SAMPLE_BUFFERS_SGIS            0x80A8
+#define GL_SAMPLES_SGIS                   0x80A9
+#define GL_SAMPLE_MASK_VALUE_SGIS         0x80AA
+#define GL_SAMPLE_MASK_INVERT_SGIS        0x80AB
+#define GL_SAMPLE_PATTERN_SGIS            0x80AC
+typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert);
+typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSampleMaskSGIS (GLclampf value, GLboolean invert);
+GLAPI void APIENTRY glSamplePatternSGIS (GLenum pattern);
+#endif
+#endif /* GL_SGIS_multisample */
+
+#ifndef GL_SGIS_pixel_texture
+#define GL_SGIS_pixel_texture 1
+#define GL_PIXEL_TEXTURE_SGIS             0x8353
+#define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354
+#define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355
+#define GL_PIXEL_GROUP_COLOR_SGIS         0x8356
+typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPixelTexGenParameteriSGIS (GLenum pname, GLint param);
+GLAPI void APIENTRY glPixelTexGenParameterivSGIS (GLenum pname, const GLint *params);
+GLAPI void APIENTRY glPixelTexGenParameterfSGIS (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPixelTexGenParameterfvSGIS (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS (GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS (GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_SGIS_pixel_texture */
+
+#ifndef GL_SGIS_point_line_texgen
+#define GL_SGIS_point_line_texgen 1
+#define GL_EYE_DISTANCE_TO_POINT_SGIS     0x81F0
+#define GL_OBJECT_DISTANCE_TO_POINT_SGIS  0x81F1
+#define GL_EYE_DISTANCE_TO_LINE_SGIS      0x81F2
+#define GL_OBJECT_DISTANCE_TO_LINE_SGIS   0x81F3
+#define GL_EYE_POINT_SGIS                 0x81F4
+#define GL_OBJECT_POINT_SGIS              0x81F5
+#define GL_EYE_LINE_SGIS                  0x81F6
+#define GL_OBJECT_LINE_SGIS               0x81F7
+#endif /* GL_SGIS_point_line_texgen */
+
+#ifndef GL_SGIS_point_parameters
+#define GL_SGIS_point_parameters 1
+#define GL_POINT_SIZE_MIN_SGIS            0x8126
+#define GL_POINT_SIZE_MAX_SGIS            0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128
+#define GL_DISTANCE_ATTENUATION_SGIS      0x8129
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPointParameterfSGIS (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPointParameterfvSGIS (GLenum pname, const GLfloat *params);
+#endif
+#endif /* GL_SGIS_point_parameters */
+
+#ifndef GL_SGIS_sharpen_texture
+#define GL_SGIS_sharpen_texture 1
+#define GL_LINEAR_SHARPEN_SGIS            0x80AD
+#define GL_LINEAR_SHARPEN_ALPHA_SGIS      0x80AE
+#define GL_LINEAR_SHARPEN_COLOR_SGIS      0x80AF
+#define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0
+typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
+typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSharpenTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points);
+GLAPI void APIENTRY glGetSharpenTexFuncSGIS (GLenum target, GLfloat *points);
+#endif
+#endif /* GL_SGIS_sharpen_texture */
+
+#ifndef GL_SGIS_texture4D
+#define GL_SGIS_texture4D 1
+#define GL_PACK_SKIP_VOLUMES_SGIS         0x8130
+#define GL_PACK_IMAGE_DEPTH_SGIS          0x8131
+#define GL_UNPACK_SKIP_VOLUMES_SGIS       0x8132
+#define GL_UNPACK_IMAGE_DEPTH_SGIS        0x8133
+#define GL_TEXTURE_4D_SGIS                0x8134
+#define GL_PROXY_TEXTURE_4D_SGIS          0x8135
+#define GL_TEXTURE_4DSIZE_SGIS            0x8136
+#define GL_TEXTURE_WRAP_Q_SGIS            0x8137
+#define GL_MAX_4D_TEXTURE_SIZE_SGIS       0x8138
+#define GL_TEXTURE_4D_BINDING_SGIS        0x814F
+typedef void (APIENTRYP PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const void *pixels);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexImage4DSGIS (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage4DSGIS (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const void *pixels);
+#endif
+#endif /* GL_SGIS_texture4D */
+
+#ifndef GL_SGIS_texture_border_clamp
+#define GL_SGIS_texture_border_clamp 1
+#define GL_CLAMP_TO_BORDER_SGIS           0x812D
+#endif /* GL_SGIS_texture_border_clamp */
+
+#ifndef GL_SGIS_texture_color_mask
+#define GL_SGIS_texture_color_mask 1
+#define GL_TEXTURE_COLOR_WRITEMASK_SGIS   0x81EF
+typedef void (APIENTRYP PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTextureColorMaskSGIS (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+#endif
+#endif /* GL_SGIS_texture_color_mask */
+
+#ifndef GL_SGIS_texture_edge_clamp
+#define GL_SGIS_texture_edge_clamp 1
+#define GL_CLAMP_TO_EDGE_SGIS             0x812F
+#endif /* GL_SGIS_texture_edge_clamp */
+
+#ifndef GL_SGIS_texture_filter4
+#define GL_SGIS_texture_filter4 1
+#define GL_FILTER4_SGIS                   0x8146
+#define GL_TEXTURE_FILTER4_SIZE_SGIS      0x8147
+typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights);
+typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetTexFilterFuncSGIS (GLenum target, GLenum filter, GLfloat *weights);
+GLAPI void APIENTRY glTexFilterFuncSGIS (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
+#endif
+#endif /* GL_SGIS_texture_filter4 */
+
+#ifndef GL_SGIS_texture_lod
+#define GL_SGIS_texture_lod 1
+#define GL_TEXTURE_MIN_LOD_SGIS           0x813A
+#define GL_TEXTURE_MAX_LOD_SGIS           0x813B
+#define GL_TEXTURE_BASE_LEVEL_SGIS        0x813C
+#define GL_TEXTURE_MAX_LEVEL_SGIS         0x813D
+#endif /* GL_SGIS_texture_lod */
+
+#ifndef GL_SGIS_texture_select
+#define GL_SGIS_texture_select 1
+#define GL_DUAL_ALPHA4_SGIS               0x8110
+#define GL_DUAL_ALPHA8_SGIS               0x8111
+#define GL_DUAL_ALPHA12_SGIS              0x8112
+#define GL_DUAL_ALPHA16_SGIS              0x8113
+#define GL_DUAL_LUMINANCE4_SGIS           0x8114
+#define GL_DUAL_LUMINANCE8_SGIS           0x8115
+#define GL_DUAL_LUMINANCE12_SGIS          0x8116
+#define GL_DUAL_LUMINANCE16_SGIS          0x8117
+#define GL_DUAL_INTENSITY4_SGIS           0x8118
+#define GL_DUAL_INTENSITY8_SGIS           0x8119
+#define GL_DUAL_INTENSITY12_SGIS          0x811A
+#define GL_DUAL_INTENSITY16_SGIS          0x811B
+#define GL_DUAL_LUMINANCE_ALPHA4_SGIS     0x811C
+#define GL_DUAL_LUMINANCE_ALPHA8_SGIS     0x811D
+#define GL_QUAD_ALPHA4_SGIS               0x811E
+#define GL_QUAD_ALPHA8_SGIS               0x811F
+#define GL_QUAD_LUMINANCE4_SGIS           0x8120
+#define GL_QUAD_LUMINANCE8_SGIS           0x8121
+#define GL_QUAD_INTENSITY4_SGIS           0x8122
+#define GL_QUAD_INTENSITY8_SGIS           0x8123
+#define GL_DUAL_TEXTURE_SELECT_SGIS       0x8124
+#define GL_QUAD_TEXTURE_SELECT_SGIS       0x8125
+#endif /* GL_SGIS_texture_select */
+
+#ifndef GL_SGIX_async
+#define GL_SGIX_async 1
+#define GL_ASYNC_MARKER_SGIX              0x8329
+typedef void (APIENTRYP PFNGLASYNCMARKERSGIXPROC) (GLuint marker);
+typedef GLint (APIENTRYP PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp);
+typedef GLint (APIENTRYP PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp);
+typedef GLuint (APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range);
+typedef void (APIENTRYP PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range);
+typedef GLboolean (APIENTRYP PFNGLISASYNCMARKERSGIXPROC) (GLuint marker);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glAsyncMarkerSGIX (GLuint marker);
+GLAPI GLint APIENTRY glFinishAsyncSGIX (GLuint *markerp);
+GLAPI GLint APIENTRY glPollAsyncSGIX (GLuint *markerp);
+GLAPI GLuint APIENTRY glGenAsyncMarkersSGIX (GLsizei range);
+GLAPI void APIENTRY glDeleteAsyncMarkersSGIX (GLuint marker, GLsizei range);
+GLAPI GLboolean APIENTRY glIsAsyncMarkerSGIX (GLuint marker);
+#endif
+#endif /* GL_SGIX_async */
+
+#ifndef GL_SGIX_async_histogram
+#define GL_SGIX_async_histogram 1
+#define GL_ASYNC_HISTOGRAM_SGIX           0x832C
+#define GL_MAX_ASYNC_HISTOGRAM_SGIX       0x832D
+#endif /* GL_SGIX_async_histogram */
+
+#ifndef GL_SGIX_async_pixel
+#define GL_SGIX_async_pixel 1
+#define GL_ASYNC_TEX_IMAGE_SGIX           0x835C
+#define GL_ASYNC_DRAW_PIXELS_SGIX         0x835D
+#define GL_ASYNC_READ_PIXELS_SGIX         0x835E
+#define GL_MAX_ASYNC_TEX_IMAGE_SGIX       0x835F
+#define GL_MAX_ASYNC_DRAW_PIXELS_SGIX     0x8360
+#define GL_MAX_ASYNC_READ_PIXELS_SGIX     0x8361
+#endif /* GL_SGIX_async_pixel */
+
+#ifndef GL_SGIX_blend_alpha_minmax
+#define GL_SGIX_blend_alpha_minmax 1
+#define GL_ALPHA_MIN_SGIX                 0x8320
+#define GL_ALPHA_MAX_SGIX                 0x8321
+#endif /* GL_SGIX_blend_alpha_minmax */
+
+#ifndef GL_SGIX_calligraphic_fragment
+#define GL_SGIX_calligraphic_fragment 1
+#define GL_CALLIGRAPHIC_FRAGMENT_SGIX     0x8183
+#endif /* GL_SGIX_calligraphic_fragment */
+
+#ifndef GL_SGIX_clipmap
+#define GL_SGIX_clipmap 1
+#define GL_LINEAR_CLIPMAP_LINEAR_SGIX     0x8170
+#define GL_TEXTURE_CLIPMAP_CENTER_SGIX    0x8171
+#define GL_TEXTURE_CLIPMAP_FRAME_SGIX     0x8172
+#define GL_TEXTURE_CLIPMAP_OFFSET_SGIX    0x8173
+#define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174
+#define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175
+#define GL_TEXTURE_CLIPMAP_DEPTH_SGIX     0x8176
+#define GL_MAX_CLIPMAP_DEPTH_SGIX         0x8177
+#define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178
+#define GL_NEAREST_CLIPMAP_NEAREST_SGIX   0x844D
+#define GL_NEAREST_CLIPMAP_LINEAR_SGIX    0x844E
+#define GL_LINEAR_CLIPMAP_NEAREST_SGIX    0x844F
+#endif /* GL_SGIX_clipmap */
+
+#ifndef GL_SGIX_convolution_accuracy
+#define GL_SGIX_convolution_accuracy 1
+#define GL_CONVOLUTION_HINT_SGIX          0x8316
+#endif /* GL_SGIX_convolution_accuracy */
+
+#ifndef GL_SGIX_depth_pass_instrument
+#define GL_SGIX_depth_pass_instrument 1
+#endif /* GL_SGIX_depth_pass_instrument */
+
+#ifndef GL_SGIX_depth_texture
+#define GL_SGIX_depth_texture 1
+#define GL_DEPTH_COMPONENT16_SGIX         0x81A5
+#define GL_DEPTH_COMPONENT24_SGIX         0x81A6
+#define GL_DEPTH_COMPONENT32_SGIX         0x81A7
+#endif /* GL_SGIX_depth_texture */
+
+#ifndef GL_SGIX_flush_raster
+#define GL_SGIX_flush_raster 1
+typedef void (APIENTRYP PFNGLFLUSHRASTERSGIXPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFlushRasterSGIX (void);
+#endif
+#endif /* GL_SGIX_flush_raster */
+
+#ifndef GL_SGIX_fog_offset
+#define GL_SGIX_fog_offset 1
+#define GL_FOG_OFFSET_SGIX                0x8198
+#define GL_FOG_OFFSET_VALUE_SGIX          0x8199
+#endif /* GL_SGIX_fog_offset */
+
+#ifndef GL_SGIX_fragment_lighting
+#define GL_SGIX_fragment_lighting 1
+#define GL_FRAGMENT_LIGHTING_SGIX         0x8400
+#define GL_FRAGMENT_COLOR_MATERIAL_SGIX   0x8401
+#define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402
+#define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403
+#define GL_MAX_FRAGMENT_LIGHTS_SGIX       0x8404
+#define GL_MAX_ACTIVE_LIGHTS_SGIX         0x8405
+#define GL_CURRENT_RASTER_NORMAL_SGIX     0x8406
+#define GL_LIGHT_ENV_MODE_SGIX            0x8407
+#define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408
+#define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409
+#define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A
+#define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B
+#define GL_FRAGMENT_LIGHT0_SGIX           0x840C
+#define GL_FRAGMENT_LIGHT1_SGIX           0x840D
+#define GL_FRAGMENT_LIGHT2_SGIX           0x840E
+#define GL_FRAGMENT_LIGHT3_SGIX           0x840F
+#define GL_FRAGMENT_LIGHT4_SGIX           0x8410
+#define GL_FRAGMENT_LIGHT5_SGIX           0x8411
+#define GL_FRAGMENT_LIGHT6_SGIX           0x8412
+#define GL_FRAGMENT_LIGHT7_SGIX           0x8413
+typedef void (APIENTRYP PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFragmentColorMaterialSGIX (GLenum face, GLenum mode);
+GLAPI void APIENTRY glFragmentLightfSGIX (GLenum light, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glFragmentLightfvSGIX (GLenum light, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glFragmentLightiSGIX (GLenum light, GLenum pname, GLint param);
+GLAPI void APIENTRY glFragmentLightivSGIX (GLenum light, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glFragmentLightModelfSGIX (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glFragmentLightModelfvSGIX (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glFragmentLightModeliSGIX (GLenum pname, GLint param);
+GLAPI void APIENTRY glFragmentLightModelivSGIX (GLenum pname, const GLint *params);
+GLAPI void APIENTRY glFragmentMaterialfSGIX (GLenum face, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glFragmentMaterialfvSGIX (GLenum face, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glFragmentMaterialiSGIX (GLenum face, GLenum pname, GLint param);
+GLAPI void APIENTRY glFragmentMaterialivSGIX (GLenum face, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glGetFragmentLightfvSGIX (GLenum light, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetFragmentLightivSGIX (GLenum light, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetFragmentMaterialfvSGIX (GLenum face, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params);
+GLAPI void APIENTRY glLightEnviSGIX (GLenum pname, GLint param);
+#endif
+#endif /* GL_SGIX_fragment_lighting */
+
+#ifndef GL_SGIX_framezoom
+#define GL_SGIX_framezoom 1
+#define GL_FRAMEZOOM_SGIX                 0x818B
+#define GL_FRAMEZOOM_FACTOR_SGIX          0x818C
+#define GL_MAX_FRAMEZOOM_FACTOR_SGIX      0x818D
+typedef void (APIENTRYP PFNGLFRAMEZOOMSGIXPROC) (GLint factor);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFrameZoomSGIX (GLint factor);
+#endif
+#endif /* GL_SGIX_framezoom */
+
+#ifndef GL_SGIX_igloo_interface
+#define GL_SGIX_igloo_interface 1
+typedef void (APIENTRYP PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const void *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glIglooInterfaceSGIX (GLenum pname, const void *params);
+#endif
+#endif /* GL_SGIX_igloo_interface */
+
+#ifndef GL_SGIX_instruments
+#define GL_SGIX_instruments 1
+#define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180
+#define GL_INSTRUMENT_MEASUREMENTS_SGIX   0x8181
+typedef GLint (APIENTRYP PFNGLGETINSTRUMENTSSGIXPROC) (void);
+typedef void (APIENTRYP PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer);
+typedef GLint (APIENTRYP PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p);
+typedef void (APIENTRYP PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker);
+typedef void (APIENTRYP PFNGLSTARTINSTRUMENTSSGIXPROC) (void);
+typedef void (APIENTRYP PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLint APIENTRY glGetInstrumentsSGIX (void);
+GLAPI void APIENTRY glInstrumentsBufferSGIX (GLsizei size, GLint *buffer);
+GLAPI GLint APIENTRY glPollInstrumentsSGIX (GLint *marker_p);
+GLAPI void APIENTRY glReadInstrumentsSGIX (GLint marker);
+GLAPI void APIENTRY glStartInstrumentsSGIX (void);
+GLAPI void APIENTRY glStopInstrumentsSGIX (GLint marker);
+#endif
+#endif /* GL_SGIX_instruments */
+
+#ifndef GL_SGIX_interlace
+#define GL_SGIX_interlace 1
+#define GL_INTERLACE_SGIX                 0x8094
+#endif /* GL_SGIX_interlace */
+
+#ifndef GL_SGIX_ir_instrument1
+#define GL_SGIX_ir_instrument1 1
+#define GL_IR_INSTRUMENT1_SGIX            0x817F
+#endif /* GL_SGIX_ir_instrument1 */
+
+#ifndef GL_SGIX_list_priority
+#define GL_SGIX_list_priority 1
+#define GL_LIST_PRIORITY_SGIX             0x8182
+typedef void (APIENTRYP PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetListParameterfvSGIX (GLuint list, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetListParameterivSGIX (GLuint list, GLenum pname, GLint *params);
+GLAPI void APIENTRY glListParameterfSGIX (GLuint list, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glListParameterfvSGIX (GLuint list, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glListParameteriSGIX (GLuint list, GLenum pname, GLint param);
+GLAPI void APIENTRY glListParameterivSGIX (GLuint list, GLenum pname, const GLint *params);
+#endif
+#endif /* GL_SGIX_list_priority */
+
+#ifndef GL_SGIX_pixel_texture
+#define GL_SGIX_pixel_texture 1
+#define GL_PIXEL_TEX_GEN_SGIX             0x8139
+#define GL_PIXEL_TEX_GEN_MODE_SGIX        0x832B
+typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPixelTexGenSGIX (GLenum mode);
+#endif
+#endif /* GL_SGIX_pixel_texture */
+
+#ifndef GL_SGIX_pixel_tiles
+#define GL_SGIX_pixel_tiles 1
+#define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E
+#define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F
+#define GL_PIXEL_TILE_WIDTH_SGIX          0x8140
+#define GL_PIXEL_TILE_HEIGHT_SGIX         0x8141
+#define GL_PIXEL_TILE_GRID_WIDTH_SGIX     0x8142
+#define GL_PIXEL_TILE_GRID_HEIGHT_SGIX    0x8143
+#define GL_PIXEL_TILE_GRID_DEPTH_SGIX     0x8144
+#define GL_PIXEL_TILE_CACHE_SIZE_SGIX     0x8145
+#endif /* GL_SGIX_pixel_tiles */
+
+#ifndef GL_SGIX_polynomial_ffd
+#define GL_SGIX_polynomial_ffd 1
+#define GL_TEXTURE_DEFORMATION_BIT_SGIX   0x00000001
+#define GL_GEOMETRY_DEFORMATION_BIT_SGIX  0x00000002
+#define GL_GEOMETRY_DEFORMATION_SGIX      0x8194
+#define GL_TEXTURE_DEFORMATION_SGIX       0x8195
+#define GL_DEFORMATIONS_MASK_SGIX         0x8196
+#define GL_MAX_DEFORMATION_ORDER_SGIX     0x8197
+typedef void (APIENTRYP PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points);
+typedef void (APIENTRYP PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points);
+typedef void (APIENTRYP PFNGLDEFORMSGIXPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDeformationMap3dSGIX (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points);
+GLAPI void APIENTRY glDeformationMap3fSGIX (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points);
+GLAPI void APIENTRY glDeformSGIX (GLbitfield mask);
+GLAPI void APIENTRY glLoadIdentityDeformationMapSGIX (GLbitfield mask);
+#endif
+#endif /* GL_SGIX_polynomial_ffd */
+
+#ifndef GL_SGIX_reference_plane
+#define GL_SGIX_reference_plane 1
+#define GL_REFERENCE_PLANE_SGIX           0x817D
+#define GL_REFERENCE_PLANE_EQUATION_SGIX  0x817E
+typedef void (APIENTRYP PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glReferencePlaneSGIX (const GLdouble *equation);
+#endif
+#endif /* GL_SGIX_reference_plane */
+
+#ifndef GL_SGIX_resample
+#define GL_SGIX_resample 1
+#define GL_PACK_RESAMPLE_SGIX             0x842C
+#define GL_UNPACK_RESAMPLE_SGIX           0x842D
+#define GL_RESAMPLE_REPLICATE_SGIX        0x842E
+#define GL_RESAMPLE_ZERO_FILL_SGIX        0x842F
+#define GL_RESAMPLE_DECIMATE_SGIX         0x8430
+#endif /* GL_SGIX_resample */
+
+#ifndef GL_SGIX_scalebias_hint
+#define GL_SGIX_scalebias_hint 1
+#define GL_SCALEBIAS_HINT_SGIX            0x8322
+#endif /* GL_SGIX_scalebias_hint */
+
+#ifndef GL_SGIX_shadow
+#define GL_SGIX_shadow 1
+#define GL_TEXTURE_COMPARE_SGIX           0x819A
+#define GL_TEXTURE_COMPARE_OPERATOR_SGIX  0x819B
+#define GL_TEXTURE_LEQUAL_R_SGIX          0x819C
+#define GL_TEXTURE_GEQUAL_R_SGIX          0x819D
+#endif /* GL_SGIX_shadow */
+
+#ifndef GL_SGIX_shadow_ambient
+#define GL_SGIX_shadow_ambient 1
+#define GL_SHADOW_AMBIENT_SGIX            0x80BF
+#endif /* GL_SGIX_shadow_ambient */
+
+#ifndef GL_SGIX_sprite
+#define GL_SGIX_sprite 1
+#define GL_SPRITE_SGIX                    0x8148
+#define GL_SPRITE_MODE_SGIX               0x8149
+#define GL_SPRITE_AXIS_SGIX               0x814A
+#define GL_SPRITE_TRANSLATION_SGIX        0x814B
+#define GL_SPRITE_AXIAL_SGIX              0x814C
+#define GL_SPRITE_OBJECT_ALIGNED_SGIX     0x814D
+#define GL_SPRITE_EYE_ALIGNED_SGIX        0x814E
+typedef void (APIENTRYP PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSpriteParameterfSGIX (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glSpriteParameterfvSGIX (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glSpriteParameteriSGIX (GLenum pname, GLint param);
+GLAPI void APIENTRY glSpriteParameterivSGIX (GLenum pname, const GLint *params);
+#endif
+#endif /* GL_SGIX_sprite */
+
+#ifndef GL_SGIX_subsample
+#define GL_SGIX_subsample 1
+#define GL_PACK_SUBSAMPLE_RATE_SGIX       0x85A0
+#define GL_UNPACK_SUBSAMPLE_RATE_SGIX     0x85A1
+#define GL_PIXEL_SUBSAMPLE_4444_SGIX      0x85A2
+#define GL_PIXEL_SUBSAMPLE_2424_SGIX      0x85A3
+#define GL_PIXEL_SUBSAMPLE_4242_SGIX      0x85A4
+#endif /* GL_SGIX_subsample */
+
+#ifndef GL_SGIX_tag_sample_buffer
+#define GL_SGIX_tag_sample_buffer 1
+typedef void (APIENTRYP PFNGLTAGSAMPLEBUFFERSGIXPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTagSampleBufferSGIX (void);
+#endif
+#endif /* GL_SGIX_tag_sample_buffer */
+
+#ifndef GL_SGIX_texture_add_env
+#define GL_SGIX_texture_add_env 1
+#define GL_TEXTURE_ENV_BIAS_SGIX          0x80BE
+#endif /* GL_SGIX_texture_add_env */
+
+#ifndef GL_SGIX_texture_coordinate_clamp
+#define GL_SGIX_texture_coordinate_clamp 1
+#define GL_TEXTURE_MAX_CLAMP_S_SGIX       0x8369
+#define GL_TEXTURE_MAX_CLAMP_T_SGIX       0x836A
+#define GL_TEXTURE_MAX_CLAMP_R_SGIX       0x836B
+#endif /* GL_SGIX_texture_coordinate_clamp */
+
+#ifndef GL_SGIX_texture_lod_bias
+#define GL_SGIX_texture_lod_bias 1
+#define GL_TEXTURE_LOD_BIAS_S_SGIX        0x818E
+#define GL_TEXTURE_LOD_BIAS_T_SGIX        0x818F
+#define GL_TEXTURE_LOD_BIAS_R_SGIX        0x8190
+#endif /* GL_SGIX_texture_lod_bias */
+
+#ifndef GL_SGIX_texture_multi_buffer
+#define GL_SGIX_texture_multi_buffer 1
+#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E
+#endif /* GL_SGIX_texture_multi_buffer */
+
+#ifndef GL_SGIX_texture_scale_bias
+#define GL_SGIX_texture_scale_bias 1
+#define GL_POST_TEXTURE_FILTER_BIAS_SGIX  0x8179
+#define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A
+#define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B
+#define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C
+#endif /* GL_SGIX_texture_scale_bias */
+
+#ifndef GL_SGIX_vertex_preclip
+#define GL_SGIX_vertex_preclip 1
+#define GL_VERTEX_PRECLIP_SGIX            0x83EE
+#define GL_VERTEX_PRECLIP_HINT_SGIX       0x83EF
+#endif /* GL_SGIX_vertex_preclip */
+
+#ifndef GL_SGIX_ycrcb
+#define GL_SGIX_ycrcb 1
+#define GL_YCRCB_422_SGIX                 0x81BB
+#define GL_YCRCB_444_SGIX                 0x81BC
+#endif /* GL_SGIX_ycrcb */
+
+#ifndef GL_SGIX_ycrcb_subsample
+#define GL_SGIX_ycrcb_subsample 1
+#endif /* GL_SGIX_ycrcb_subsample */
+
+#ifndef GL_SGIX_ycrcba
+#define GL_SGIX_ycrcba 1
+#define GL_YCRCB_SGIX                     0x8318
+#define GL_YCRCBA_SGIX                    0x8319
+#endif /* GL_SGIX_ycrcba */
+
+#ifndef GL_SGI_color_matrix
+#define GL_SGI_color_matrix 1
+#define GL_COLOR_MATRIX_SGI               0x80B1
+#define GL_COLOR_MATRIX_STACK_DEPTH_SGI   0x80B2
+#define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3
+#define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4
+#define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5
+#define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6
+#define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7
+#define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8
+#define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9
+#define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA
+#define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB
+#endif /* GL_SGI_color_matrix */
+
+#ifndef GL_SGI_color_table
+#define GL_SGI_color_table 1
+#define GL_COLOR_TABLE_SGI                0x80D0
+#define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1
+#define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2
+#define GL_PROXY_COLOR_TABLE_SGI          0x80D3
+#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4
+#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5
+#define GL_COLOR_TABLE_SCALE_SGI          0x80D6
+#define GL_COLOR_TABLE_BIAS_SGI           0x80D7
+#define GL_COLOR_TABLE_FORMAT_SGI         0x80D8
+#define GL_COLOR_TABLE_WIDTH_SGI          0x80D9
+#define GL_COLOR_TABLE_RED_SIZE_SGI       0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE_SGI     0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE_SGI      0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE_SGI     0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF
+typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
+typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, void *table);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorTableSGI (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
+GLAPI void APIENTRY glColorTableParameterfvSGI (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glColorTableParameterivSGI (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCopyColorTableSGI (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glGetColorTableSGI (GLenum target, GLenum format, GLenum type, void *table);
+GLAPI void APIENTRY glGetColorTableParameterfvSGI (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetColorTableParameterivSGI (GLenum target, GLenum pname, GLint *params);
+#endif
+#endif /* GL_SGI_color_table */
+
+#ifndef GL_SGI_texture_color_table
+#define GL_SGI_texture_color_table 1
+#define GL_TEXTURE_COLOR_TABLE_SGI        0x80BC
+#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI  0x80BD
+#endif /* GL_SGI_texture_color_table */
+
+#ifndef GL_SUNX_constant_data
+#define GL_SUNX_constant_data 1
+#define GL_UNPACK_CONSTANT_DATA_SUNX      0x81D5
+#define GL_TEXTURE_CONSTANT_DATA_SUNX     0x81D6
+typedef void (APIENTRYP PFNGLFINISHTEXTURESUNXPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFinishTextureSUNX (void);
+#endif
+#endif /* GL_SUNX_constant_data */
+
+#ifndef GL_SUN_convolution_border_modes
+#define GL_SUN_convolution_border_modes 1
+#define GL_WRAP_BORDER_SUN                0x81D4
+#endif /* GL_SUN_convolution_border_modes */
+
+#ifndef GL_SUN_global_alpha
+#define GL_SUN_global_alpha 1
+#define GL_GLOBAL_ALPHA_SUN               0x81D9
+#define GL_GLOBAL_ALPHA_FACTOR_SUN        0x81DA
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGlobalAlphaFactorbSUN (GLbyte factor);
+GLAPI void APIENTRY glGlobalAlphaFactorsSUN (GLshort factor);
+GLAPI void APIENTRY glGlobalAlphaFactoriSUN (GLint factor);
+GLAPI void APIENTRY glGlobalAlphaFactorfSUN (GLfloat factor);
+GLAPI void APIENTRY glGlobalAlphaFactordSUN (GLdouble factor);
+GLAPI void APIENTRY glGlobalAlphaFactorubSUN (GLubyte factor);
+GLAPI void APIENTRY glGlobalAlphaFactorusSUN (GLushort factor);
+GLAPI void APIENTRY glGlobalAlphaFactoruiSUN (GLuint factor);
+#endif
+#endif /* GL_SUN_global_alpha */
+
+#ifndef GL_SUN_mesh_array
+#define GL_SUN_mesh_array 1
+#define GL_QUAD_MESH_SUN                  0x8614
+#define GL_TRIANGLE_MESH_SUN              0x8615
+typedef void (APIENTRYP PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawMeshArraysSUN (GLenum mode, GLint first, GLsizei count, GLsizei width);
+#endif
+#endif /* GL_SUN_mesh_array */
+
+#ifndef GL_SUN_slice_accum
+#define GL_SUN_slice_accum 1
+#define GL_SLICE_ACCUM_SUN                0x85CC
+#endif /* GL_SUN_slice_accum */
+
+#ifndef GL_SUN_triangle_list
+#define GL_SUN_triangle_list 1
+#define GL_RESTART_SUN                    0x0001
+#define GL_REPLACE_MIDDLE_SUN             0x0002
+#define GL_REPLACE_OLDEST_SUN             0x0003
+#define GL_TRIANGLE_LIST_SUN              0x81D7
+#define GL_REPLACEMENT_CODE_SUN           0x81D8
+#define GL_REPLACEMENT_CODE_ARRAY_SUN     0x85C0
+#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1
+#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2
+#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3
+#define GL_R1UI_V3F_SUN                   0x85C4
+#define GL_R1UI_C4UB_V3F_SUN              0x85C5
+#define GL_R1UI_C3F_V3F_SUN               0x85C6
+#define GL_R1UI_N3F_V3F_SUN               0x85C7
+#define GL_R1UI_C4F_N3F_V3F_SUN           0x85C8
+#define GL_R1UI_T2F_V3F_SUN               0x85C9
+#define GL_R1UI_T2F_N3F_V3F_SUN           0x85CA
+#define GL_R1UI_T2F_C4F_N3F_V3F_SUN       0x85CB
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const void **pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glReplacementCodeuiSUN (GLuint code);
+GLAPI void APIENTRY glReplacementCodeusSUN (GLushort code);
+GLAPI void APIENTRY glReplacementCodeubSUN (GLubyte code);
+GLAPI void APIENTRY glReplacementCodeuivSUN (const GLuint *code);
+GLAPI void APIENTRY glReplacementCodeusvSUN (const GLushort *code);
+GLAPI void APIENTRY glReplacementCodeubvSUN (const GLubyte *code);
+GLAPI void APIENTRY glReplacementCodePointerSUN (GLenum type, GLsizei stride, const void **pointer);
+#endif
+#endif /* GL_SUN_triangle_list */
+
+#ifndef GL_SUN_vertex
+#define GL_SUN_vertex 1
+typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColor4ubVertex2fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glColor4ubVertex2fvSUN (const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glColor4ubVertex3fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glColor4ubVertex3fvSUN (const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glColor3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glColor3fVertex3fvSUN (const GLfloat *c, const GLfloat *v);
+GLAPI void APIENTRY glNormal3fVertex3fSUN (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glNormal3fVertex3fvSUN (const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glColor4fNormal3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glColor4fNormal3fVertex3fvSUN (const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fVertex3fSUN (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fVertex3fvSUN (const GLfloat *tc, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord4fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glTexCoord4fVertex4fvSUN (const GLfloat *tc, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fSUN (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fvSUN (const GLfloat *tc, const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fColor3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fColor3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiVertex3fSUN (GLuint rc, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiVertex3fvSUN (const GLuint *rc, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fSUN (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fvSUN (const GLuint *rc, const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fSUN (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fvSUN (const GLuint *rc, const GLfloat *c, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fSUN (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fSUN (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+#endif
+#endif /* GL_SUN_vertex */
+
+#ifndef GL_WIN_phong_shading
+#define GL_WIN_phong_shading 1
+#define GL_PHONG_WIN                      0x80EA
+#define GL_PHONG_HINT_WIN                 0x80EB
+#endif /* GL_WIN_phong_shading */
+
+#ifndef GL_WIN_specular_fog
+#define GL_WIN_specular_fog 1
+#define GL_FOG_SPECULAR_TEXTURE_WIN       0x80EC
+#endif /* GL_WIN_specular_fog */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles.h
new file mode 100644
index 0000000..18dd984
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles.h
@@ -0,0 +1,39 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_opengles.h
+ *
+ *  This is a simple file to encapsulate the OpenGL ES 1.X API headers.
+ */
+#include "SDL_config.h"
+
+#ifdef __IPHONEOS__
+#include <OpenGLES/ES1/gl.h>
+#include <OpenGLES/ES1/glext.h>
+#else
+#include <GLES/gl.h>
+#include <GLES/glext.h>
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY
+#endif
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2.h
new file mode 100644
index 0000000..6ccecf2
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2.h
@@ -0,0 +1,52 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_opengles2.h
+ *
+ *  This is a simple file to encapsulate the OpenGL ES 2.0 API headers.
+ */
+#include "SDL_config.h"
+
+#ifndef _MSC_VER
+
+#ifdef __IPHONEOS__
+#include <OpenGLES/ES2/gl.h>
+#include <OpenGLES/ES2/glext.h>
+#else
+#include <GLES2/gl2platform.h>
+#include <GLES2/gl2.h>
+#include <GLES2/gl2ext.h>
+#endif
+
+#else /* _MSC_VER */
+
+/* OpenGL ES2 headers for Visual Studio */
+#include "SDL_opengles2_khrplatform.h"
+#include "SDL_opengles2_gl2platform.h"
+#include "SDL_opengles2_gl2.h"
+#include "SDL_opengles2_gl2ext.h"
+
+#endif /* _MSC_VER */
+
+#ifndef APIENTRY
+#define APIENTRY GL_APIENTRY
+#endif
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_gl2.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_gl2.h
new file mode 100644
index 0000000..c62fb0a
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_gl2.h
@@ -0,0 +1,621 @@
+#ifndef __gl2_h_
+#define __gl2_h_
+
+/* $Revision: 20555 $ on $Date:: 2013-02-12 14:32:47 -0800 #$ */
+
+/*#include <GLES2/gl2platform.h>*/
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * This document is licensed under the SGI Free Software B License Version
+ * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
+ */
+
+/*-------------------------------------------------------------------------
+ * Data type definitions
+ *-----------------------------------------------------------------------*/
+
+typedef void             GLvoid;
+typedef char             GLchar;
+typedef unsigned int     GLenum;
+typedef unsigned char    GLboolean;
+typedef unsigned int     GLbitfield;
+typedef khronos_int8_t   GLbyte;
+typedef short            GLshort;
+typedef int              GLint;
+typedef int              GLsizei;
+typedef khronos_uint8_t  GLubyte;
+typedef unsigned short   GLushort;
+typedef unsigned int     GLuint;
+typedef khronos_float_t  GLfloat;
+typedef khronos_float_t  GLclampf;
+typedef khronos_int32_t  GLfixed;
+
+/* GL types for handling large vertex buffer objects */
+typedef khronos_intptr_t GLintptr;
+typedef khronos_ssize_t  GLsizeiptr;
+
+/* OpenGL ES core versions */
+#define GL_ES_VERSION_2_0                 1
+
+/* ClearBufferMask */
+#define GL_DEPTH_BUFFER_BIT               0x00000100
+#define GL_STENCIL_BUFFER_BIT             0x00000400
+#define GL_COLOR_BUFFER_BIT               0x00004000
+
+/* Boolean */
+#define GL_FALSE                          0
+#define GL_TRUE                           1
+
+/* BeginMode */
+#define GL_POINTS                         0x0000
+#define GL_LINES                          0x0001
+#define GL_LINE_LOOP                      0x0002
+#define GL_LINE_STRIP                     0x0003
+#define GL_TRIANGLES                      0x0004
+#define GL_TRIANGLE_STRIP                 0x0005
+#define GL_TRIANGLE_FAN                   0x0006
+
+/* AlphaFunction (not supported in ES20) */
+/*      GL_NEVER */
+/*      GL_LESS */
+/*      GL_EQUAL */
+/*      GL_LEQUAL */
+/*      GL_GREATER */
+/*      GL_NOTEQUAL */
+/*      GL_GEQUAL */
+/*      GL_ALWAYS */
+
+/* BlendingFactorDest */
+#define GL_ZERO                           0
+#define GL_ONE                            1
+#define GL_SRC_COLOR                      0x0300
+#define GL_ONE_MINUS_SRC_COLOR            0x0301
+#define GL_SRC_ALPHA                      0x0302
+#define GL_ONE_MINUS_SRC_ALPHA            0x0303
+#define GL_DST_ALPHA                      0x0304
+#define GL_ONE_MINUS_DST_ALPHA            0x0305
+
+/* BlendingFactorSrc */
+/*      GL_ZERO */
+/*      GL_ONE */
+#define GL_DST_COLOR                      0x0306
+#define GL_ONE_MINUS_DST_COLOR            0x0307
+#define GL_SRC_ALPHA_SATURATE             0x0308
+/*      GL_SRC_ALPHA */
+/*      GL_ONE_MINUS_SRC_ALPHA */
+/*      GL_DST_ALPHA */
+/*      GL_ONE_MINUS_DST_ALPHA */
+
+/* BlendEquationSeparate */
+#define GL_FUNC_ADD                       0x8006
+#define GL_BLEND_EQUATION                 0x8009
+#define GL_BLEND_EQUATION_RGB             0x8009    /* same as BLEND_EQUATION */
+#define GL_BLEND_EQUATION_ALPHA           0x883D
+
+/* BlendSubtract */
+#define GL_FUNC_SUBTRACT                  0x800A
+#define GL_FUNC_REVERSE_SUBTRACT          0x800B
+
+/* Separate Blend Functions */
+#define GL_BLEND_DST_RGB                  0x80C8
+#define GL_BLEND_SRC_RGB                  0x80C9
+#define GL_BLEND_DST_ALPHA                0x80CA
+#define GL_BLEND_SRC_ALPHA                0x80CB
+#define GL_CONSTANT_COLOR                 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
+#define GL_CONSTANT_ALPHA                 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
+#define GL_BLEND_COLOR                    0x8005
+
+/* Buffer Objects */
+#define GL_ARRAY_BUFFER                   0x8892
+#define GL_ELEMENT_ARRAY_BUFFER           0x8893
+#define GL_ARRAY_BUFFER_BINDING           0x8894
+#define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
+
+#define GL_STREAM_DRAW                    0x88E0
+#define GL_STATIC_DRAW                    0x88E4
+#define GL_DYNAMIC_DRAW                   0x88E8
+
+#define GL_BUFFER_SIZE                    0x8764
+#define GL_BUFFER_USAGE                   0x8765
+
+#define GL_CURRENT_VERTEX_ATTRIB          0x8626
+
+/* CullFaceMode */
+#define GL_FRONT                          0x0404
+#define GL_BACK                           0x0405
+#define GL_FRONT_AND_BACK                 0x0408
+
+/* DepthFunction */
+/*      GL_NEVER */
+/*      GL_LESS */
+/*      GL_EQUAL */
+/*      GL_LEQUAL */
+/*      GL_GREATER */
+/*      GL_NOTEQUAL */
+/*      GL_GEQUAL */
+/*      GL_ALWAYS */
+
+/* EnableCap */
+#define GL_TEXTURE_2D                     0x0DE1
+#define GL_CULL_FACE                      0x0B44
+#define GL_BLEND                          0x0BE2
+#define GL_DITHER                         0x0BD0
+#define GL_STENCIL_TEST                   0x0B90
+#define GL_DEPTH_TEST                     0x0B71
+#define GL_SCISSOR_TEST                   0x0C11
+#define GL_POLYGON_OFFSET_FILL            0x8037
+#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
+#define GL_SAMPLE_COVERAGE                0x80A0
+
+/* ErrorCode */
+#define GL_NO_ERROR                       0
+#define GL_INVALID_ENUM                   0x0500
+#define GL_INVALID_VALUE                  0x0501
+#define GL_INVALID_OPERATION              0x0502
+#define GL_OUT_OF_MEMORY                  0x0505
+
+/* FrontFaceDirection */
+#define GL_CW                             0x0900
+#define GL_CCW                            0x0901
+
+/* GetPName */
+#define GL_LINE_WIDTH                     0x0B21
+#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
+#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
+#define GL_CULL_FACE_MODE                 0x0B45
+#define GL_FRONT_FACE                     0x0B46
+#define GL_DEPTH_RANGE                    0x0B70
+#define GL_DEPTH_WRITEMASK                0x0B72
+#define GL_DEPTH_CLEAR_VALUE              0x0B73
+#define GL_DEPTH_FUNC                     0x0B74
+#define GL_STENCIL_CLEAR_VALUE            0x0B91
+#define GL_STENCIL_FUNC                   0x0B92
+#define GL_STENCIL_FAIL                   0x0B94
+#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
+#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96
+#define GL_STENCIL_REF                    0x0B97
+#define GL_STENCIL_VALUE_MASK             0x0B93
+#define GL_STENCIL_WRITEMASK              0x0B98
+#define GL_STENCIL_BACK_FUNC              0x8800
+#define GL_STENCIL_BACK_FAIL              0x8801
+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
+#define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
+#define GL_STENCIL_BACK_REF               0x8CA3
+#define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
+#define GL_STENCIL_BACK_WRITEMASK         0x8CA5
+#define GL_VIEWPORT                       0x0BA2
+#define GL_SCISSOR_BOX                    0x0C10
+/*      GL_SCISSOR_TEST */
+#define GL_COLOR_CLEAR_VALUE              0x0C22
+#define GL_COLOR_WRITEMASK                0x0C23
+#define GL_UNPACK_ALIGNMENT               0x0CF5
+#define GL_PACK_ALIGNMENT                 0x0D05
+#define GL_MAX_TEXTURE_SIZE               0x0D33
+#define GL_MAX_VIEWPORT_DIMS              0x0D3A
+#define GL_SUBPIXEL_BITS                  0x0D50
+#define GL_RED_BITS                       0x0D52
+#define GL_GREEN_BITS                     0x0D53
+#define GL_BLUE_BITS                      0x0D54
+#define GL_ALPHA_BITS                     0x0D55
+#define GL_DEPTH_BITS                     0x0D56
+#define GL_STENCIL_BITS                   0x0D57
+#define GL_POLYGON_OFFSET_UNITS           0x2A00
+/*      GL_POLYGON_OFFSET_FILL */
+#define GL_POLYGON_OFFSET_FACTOR          0x8038
+#define GL_TEXTURE_BINDING_2D             0x8069
+#define GL_SAMPLE_BUFFERS                 0x80A8
+#define GL_SAMPLES                        0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
+
+/* GetTextureParameter */
+/*      GL_TEXTURE_MAG_FILTER */
+/*      GL_TEXTURE_MIN_FILTER */
+/*      GL_TEXTURE_WRAP_S */
+/*      GL_TEXTURE_WRAP_T */
+
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
+
+/* HintMode */
+#define GL_DONT_CARE                      0x1100
+#define GL_FASTEST                        0x1101
+#define GL_NICEST                         0x1102
+
+/* HintTarget */
+#define GL_GENERATE_MIPMAP_HINT            0x8192
+
+/* DataType */
+#define GL_BYTE                           0x1400
+#define GL_UNSIGNED_BYTE                  0x1401
+#define GL_SHORT                          0x1402
+#define GL_UNSIGNED_SHORT                 0x1403
+#define GL_INT                            0x1404
+#define GL_UNSIGNED_INT                   0x1405
+#define GL_FLOAT                          0x1406
+#define GL_FIXED                          0x140C
+
+/* PixelFormat */
+#define GL_DEPTH_COMPONENT                0x1902
+#define GL_ALPHA                          0x1906
+#define GL_RGB                            0x1907
+#define GL_RGBA                           0x1908
+#define GL_LUMINANCE                      0x1909
+#define GL_LUMINANCE_ALPHA                0x190A
+
+/* PixelType */
+/*      GL_UNSIGNED_BYTE */
+#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
+#define GL_UNSIGNED_SHORT_5_6_5           0x8363
+
+/* Shaders */
+#define GL_FRAGMENT_SHADER                  0x8B30
+#define GL_VERTEX_SHADER                    0x8B31
+#define GL_MAX_VERTEX_ATTRIBS               0x8869
+#define GL_MAX_VERTEX_UNIFORM_VECTORS       0x8DFB
+#define GL_MAX_VARYING_VECTORS              0x8DFC
+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS   0x8B4C
+#define GL_MAX_TEXTURE_IMAGE_UNITS          0x8872
+#define GL_MAX_FRAGMENT_UNIFORM_VECTORS     0x8DFD
+#define GL_SHADER_TYPE                      0x8B4F
+#define GL_DELETE_STATUS                    0x8B80
+#define GL_LINK_STATUS                      0x8B82
+#define GL_VALIDATE_STATUS                  0x8B83
+#define GL_ATTACHED_SHADERS                 0x8B85
+#define GL_ACTIVE_UNIFORMS                  0x8B86
+#define GL_ACTIVE_UNIFORM_MAX_LENGTH        0x8B87
+#define GL_ACTIVE_ATTRIBUTES                0x8B89
+#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH      0x8B8A
+#define GL_SHADING_LANGUAGE_VERSION         0x8B8C
+#define GL_CURRENT_PROGRAM                  0x8B8D
+
+/* StencilFunction */
+#define GL_NEVER                          0x0200
+#define GL_LESS                           0x0201
+#define GL_EQUAL                          0x0202
+#define GL_LEQUAL                         0x0203
+#define GL_GREATER                        0x0204
+#define GL_NOTEQUAL                       0x0205
+#define GL_GEQUAL                         0x0206
+#define GL_ALWAYS                         0x0207
+
+/* StencilOp */
+/*      GL_ZERO */
+#define GL_KEEP                           0x1E00
+#define GL_REPLACE                        0x1E01
+#define GL_INCR                           0x1E02
+#define GL_DECR                           0x1E03
+#define GL_INVERT                         0x150A
+#define GL_INCR_WRAP                      0x8507
+#define GL_DECR_WRAP                      0x8508
+
+/* StringName */
+#define GL_VENDOR                         0x1F00
+#define GL_RENDERER                       0x1F01
+#define GL_VERSION                        0x1F02
+#define GL_EXTENSIONS                     0x1F03
+
+/* TextureMagFilter */
+#define GL_NEAREST                        0x2600
+#define GL_LINEAR                         0x2601
+
+/* TextureMinFilter */
+/*      GL_NEAREST */
+/*      GL_LINEAR */
+#define GL_NEAREST_MIPMAP_NEAREST         0x2700
+#define GL_LINEAR_MIPMAP_NEAREST          0x2701
+#define GL_NEAREST_MIPMAP_LINEAR          0x2702
+#define GL_LINEAR_MIPMAP_LINEAR           0x2703
+
+/* TextureParameterName */
+#define GL_TEXTURE_MAG_FILTER             0x2800
+#define GL_TEXTURE_MIN_FILTER             0x2801
+#define GL_TEXTURE_WRAP_S                 0x2802
+#define GL_TEXTURE_WRAP_T                 0x2803
+
+/* TextureTarget */
+/*      GL_TEXTURE_2D */
+#define GL_TEXTURE                        0x1702
+
+#define GL_TEXTURE_CUBE_MAP               0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
+
+/* TextureUnit */
+#define GL_TEXTURE0                       0x84C0
+#define GL_TEXTURE1                       0x84C1
+#define GL_TEXTURE2                       0x84C2
+#define GL_TEXTURE3                       0x84C3
+#define GL_TEXTURE4                       0x84C4
+#define GL_TEXTURE5                       0x84C5
+#define GL_TEXTURE6                       0x84C6
+#define GL_TEXTURE7                       0x84C7
+#define GL_TEXTURE8                       0x84C8
+#define GL_TEXTURE9                       0x84C9
+#define GL_TEXTURE10                      0x84CA
+#define GL_TEXTURE11                      0x84CB
+#define GL_TEXTURE12                      0x84CC
+#define GL_TEXTURE13                      0x84CD
+#define GL_TEXTURE14                      0x84CE
+#define GL_TEXTURE15                      0x84CF
+#define GL_TEXTURE16                      0x84D0
+#define GL_TEXTURE17                      0x84D1
+#define GL_TEXTURE18                      0x84D2
+#define GL_TEXTURE19                      0x84D3
+#define GL_TEXTURE20                      0x84D4
+#define GL_TEXTURE21                      0x84D5
+#define GL_TEXTURE22                      0x84D6
+#define GL_TEXTURE23                      0x84D7
+#define GL_TEXTURE24                      0x84D8
+#define GL_TEXTURE25                      0x84D9
+#define GL_TEXTURE26                      0x84DA
+#define GL_TEXTURE27                      0x84DB
+#define GL_TEXTURE28                      0x84DC
+#define GL_TEXTURE29                      0x84DD
+#define GL_TEXTURE30                      0x84DE
+#define GL_TEXTURE31                      0x84DF
+#define GL_ACTIVE_TEXTURE                 0x84E0
+
+/* TextureWrapMode */
+#define GL_REPEAT                         0x2901
+#define GL_CLAMP_TO_EDGE                  0x812F
+#define GL_MIRRORED_REPEAT                0x8370
+
+/* Uniform Types */
+#define GL_FLOAT_VEC2                     0x8B50
+#define GL_FLOAT_VEC3                     0x8B51
+#define GL_FLOAT_VEC4                     0x8B52
+#define GL_INT_VEC2                       0x8B53
+#define GL_INT_VEC3                       0x8B54
+#define GL_INT_VEC4                       0x8B55
+#define GL_BOOL                           0x8B56
+#define GL_BOOL_VEC2                      0x8B57
+#define GL_BOOL_VEC3                      0x8B58
+#define GL_BOOL_VEC4                      0x8B59
+#define GL_FLOAT_MAT2                     0x8B5A
+#define GL_FLOAT_MAT3                     0x8B5B
+#define GL_FLOAT_MAT4                     0x8B5C
+#define GL_SAMPLER_2D                     0x8B5E
+#define GL_SAMPLER_CUBE                   0x8B60
+
+/* Vertex Arrays */
+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED        0x8622
+#define GL_VERTEX_ATTRIB_ARRAY_SIZE           0x8623
+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE         0x8624
+#define GL_VERTEX_ATTRIB_ARRAY_TYPE           0x8625
+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED     0x886A
+#define GL_VERTEX_ATTRIB_ARRAY_POINTER        0x8645
+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
+
+/* Read Format */
+#define GL_IMPLEMENTATION_COLOR_READ_TYPE   0x8B9A
+#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
+
+/* Shader Source */
+#define GL_COMPILE_STATUS                 0x8B81
+#define GL_INFO_LOG_LENGTH                0x8B84
+#define GL_SHADER_SOURCE_LENGTH           0x8B88
+#define GL_SHADER_COMPILER                0x8DFA
+
+/* Shader Binary */
+#define GL_SHADER_BINARY_FORMATS          0x8DF8
+#define GL_NUM_SHADER_BINARY_FORMATS      0x8DF9
+
+/* Shader Precision-Specified Types */
+#define GL_LOW_FLOAT                      0x8DF0
+#define GL_MEDIUM_FLOAT                   0x8DF1
+#define GL_HIGH_FLOAT                     0x8DF2
+#define GL_LOW_INT                        0x8DF3
+#define GL_MEDIUM_INT                     0x8DF4
+#define GL_HIGH_INT                       0x8DF5
+
+/* Framebuffer Object. */
+#define GL_FRAMEBUFFER                    0x8D40
+#define GL_RENDERBUFFER                   0x8D41
+
+#define GL_RGBA4                          0x8056
+#define GL_RGB5_A1                        0x8057
+#define GL_RGB565                         0x8D62
+#define GL_DEPTH_COMPONENT16              0x81A5
+#define GL_STENCIL_INDEX8                 0x8D48
+
+#define GL_RENDERBUFFER_WIDTH             0x8D42
+#define GL_RENDERBUFFER_HEIGHT            0x8D43
+#define GL_RENDERBUFFER_INTERNAL_FORMAT   0x8D44
+#define GL_RENDERBUFFER_RED_SIZE          0x8D50
+#define GL_RENDERBUFFER_GREEN_SIZE        0x8D51
+#define GL_RENDERBUFFER_BLUE_SIZE         0x8D52
+#define GL_RENDERBUFFER_ALPHA_SIZE        0x8D53
+#define GL_RENDERBUFFER_DEPTH_SIZE        0x8D54
+#define GL_RENDERBUFFER_STENCIL_SIZE      0x8D55
+
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE           0x8CD0
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME           0x8CD1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL         0x8CD2
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
+
+#define GL_COLOR_ATTACHMENT0              0x8CE0
+#define GL_DEPTH_ATTACHMENT               0x8D00
+#define GL_STENCIL_ATTACHMENT             0x8D20
+
+#define GL_NONE                           0
+
+#define GL_FRAMEBUFFER_COMPLETE                      0x8CD5
+#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT         0x8CD6
+#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
+#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS         0x8CD9
+#define GL_FRAMEBUFFER_UNSUPPORTED                   0x8CDD
+
+#define GL_FRAMEBUFFER_BINDING            0x8CA6
+#define GL_RENDERBUFFER_BINDING           0x8CA7
+#define GL_MAX_RENDERBUFFER_SIZE          0x84E8
+
+#define GL_INVALID_FRAMEBUFFER_OPERATION  0x0506
+
+/*-------------------------------------------------------------------------
+ * GL core functions.
+ *-----------------------------------------------------------------------*/
+
+GL_APICALL void         GL_APIENTRY glActiveTexture (GLenum texture);
+GL_APICALL void         GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
+GL_APICALL void         GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar* name);
+GL_APICALL void         GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);
+GL_APICALL void         GL_APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
+GL_APICALL void         GL_APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
+GL_APICALL void         GL_APIENTRY glBindTexture (GLenum target, GLuint texture);
+GL_APICALL void         GL_APIENTRY glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+GL_APICALL void         GL_APIENTRY glBlendEquation ( GLenum mode );
+GL_APICALL void         GL_APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
+GL_APICALL void         GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
+GL_APICALL void         GL_APIENTRY glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+GL_APICALL void         GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
+GL_APICALL void         GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
+GL_APICALL GLenum       GL_APIENTRY glCheckFramebufferStatus (GLenum target);
+GL_APICALL void         GL_APIENTRY glClear (GLbitfield mask);
+GL_APICALL void         GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+GL_APICALL void         GL_APIENTRY glClearDepthf (GLclampf depth);
+GL_APICALL void         GL_APIENTRY glClearStencil (GLint s);
+GL_APICALL void         GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+GL_APICALL void         GL_APIENTRY glCompileShader (GLuint shader);
+GL_APICALL void         GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
+GL_APICALL void         GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
+GL_APICALL void         GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GL_APICALL void         GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GL_APICALL GLuint       GL_APIENTRY glCreateProgram (void);
+GL_APICALL GLuint       GL_APIENTRY glCreateShader (GLenum type);
+GL_APICALL void         GL_APIENTRY glCullFace (GLenum mode);
+GL_APICALL void         GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint* buffers);
+GL_APICALL void         GL_APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint* framebuffers);
+GL_APICALL void         GL_APIENTRY glDeleteProgram (GLuint program);
+GL_APICALL void         GL_APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers);
+GL_APICALL void         GL_APIENTRY glDeleteShader (GLuint shader);
+GL_APICALL void         GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint* textures);
+GL_APICALL void         GL_APIENTRY glDepthFunc (GLenum func);
+GL_APICALL void         GL_APIENTRY glDepthMask (GLboolean flag);
+GL_APICALL void         GL_APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);
+GL_APICALL void         GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
+GL_APICALL void         GL_APIENTRY glDisable (GLenum cap);
+GL_APICALL void         GL_APIENTRY glDisableVertexAttribArray (GLuint index);
+GL_APICALL void         GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
+GL_APICALL void         GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices);
+GL_APICALL void         GL_APIENTRY glEnable (GLenum cap);
+GL_APICALL void         GL_APIENTRY glEnableVertexAttribArray (GLuint index);
+GL_APICALL void         GL_APIENTRY glFinish (void);
+GL_APICALL void         GL_APIENTRY glFlush (void);
+GL_APICALL void         GL_APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GL_APICALL void         GL_APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GL_APICALL void         GL_APIENTRY glFrontFace (GLenum mode);
+GL_APICALL void         GL_APIENTRY glGenBuffers (GLsizei n, GLuint* buffers);
+GL_APICALL void         GL_APIENTRY glGenerateMipmap (GLenum target);
+GL_APICALL void         GL_APIENTRY glGenFramebuffers (GLsizei n, GLuint* framebuffers);
+GL_APICALL void         GL_APIENTRY glGenRenderbuffers (GLsizei n, GLuint* renderbuffers);
+GL_APICALL void         GL_APIENTRY glGenTextures (GLsizei n, GLuint* textures);
+GL_APICALL void         GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
+GL_APICALL void         GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
+GL_APICALL void         GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);
+GL_APICALL GLint        GL_APIENTRY glGetAttribLocation (GLuint program, const GLchar* name);
+GL_APICALL void         GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean* params);
+GL_APICALL void         GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params);
+GL_APICALL GLenum       GL_APIENTRY glGetError (void);
+GL_APICALL void         GL_APIENTRY glGetFloatv (GLenum pname, GLfloat* params);
+GL_APICALL void         GL_APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params);
+GL_APICALL void         GL_APIENTRY glGetIntegerv (GLenum pname, GLint* params);
+GL_APICALL void         GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint* params);
+GL_APICALL void         GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog);
+GL_APICALL void         GL_APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params);
+GL_APICALL void         GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint* params);
+GL_APICALL void         GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog);
+GL_APICALL void         GL_APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision);
+GL_APICALL void         GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
+GL_APICALL const GLubyte* GL_APIENTRY glGetString (GLenum name);
+GL_APICALL void         GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params);
+GL_APICALL void         GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint* params);
+GL_APICALL void         GL_APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat* params);
+GL_APICALL void         GL_APIENTRY glGetUniformiv (GLuint program, GLint location, GLint* params);
+GL_APICALL GLint        GL_APIENTRY glGetUniformLocation (GLuint program, const GLchar* name);
+GL_APICALL void         GL_APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params);
+GL_APICALL void         GL_APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params);
+GL_APICALL void         GL_APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer);
+GL_APICALL void         GL_APIENTRY glHint (GLenum target, GLenum mode);
+GL_APICALL GLboolean    GL_APIENTRY glIsBuffer (GLuint buffer);
+GL_APICALL GLboolean    GL_APIENTRY glIsEnabled (GLenum cap);
+GL_APICALL GLboolean    GL_APIENTRY glIsFramebuffer (GLuint framebuffer);
+GL_APICALL GLboolean    GL_APIENTRY glIsProgram (GLuint program);
+GL_APICALL GLboolean    GL_APIENTRY glIsRenderbuffer (GLuint renderbuffer);
+GL_APICALL GLboolean    GL_APIENTRY glIsShader (GLuint shader);
+GL_APICALL GLboolean    GL_APIENTRY glIsTexture (GLuint texture);
+GL_APICALL void         GL_APIENTRY glLineWidth (GLfloat width);
+GL_APICALL void         GL_APIENTRY glLinkProgram (GLuint program);
+GL_APICALL void         GL_APIENTRY glPixelStorei (GLenum pname, GLint param);
+GL_APICALL void         GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
+GL_APICALL void         GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels);
+GL_APICALL void         GL_APIENTRY glReleaseShaderCompiler (void);
+GL_APICALL void         GL_APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void         GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
+GL_APICALL void         GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
+GL_APICALL void         GL_APIENTRY glShaderBinary (GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length);
+GL_APICALL void         GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length);
+GL_APICALL void         GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
+GL_APICALL void         GL_APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
+GL_APICALL void         GL_APIENTRY glStencilMask (GLuint mask);
+GL_APICALL void         GL_APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
+GL_APICALL void         GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
+GL_APICALL void         GL_APIENTRY glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
+GL_APICALL void         GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
+GL_APICALL void         GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
+GL_APICALL void         GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat* params);
+GL_APICALL void         GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
+GL_APICALL void         GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint* params);
+GL_APICALL void         GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels);
+GL_APICALL void         GL_APIENTRY glUniform1f (GLint location, GLfloat x);
+GL_APICALL void         GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat* v);
+GL_APICALL void         GL_APIENTRY glUniform1i (GLint location, GLint x);
+GL_APICALL void         GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint* v);
+GL_APICALL void         GL_APIENTRY glUniform2f (GLint location, GLfloat x, GLfloat y);
+GL_APICALL void         GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat* v);
+GL_APICALL void         GL_APIENTRY glUniform2i (GLint location, GLint x, GLint y);
+GL_APICALL void         GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint* v);
+GL_APICALL void         GL_APIENTRY glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z);
+GL_APICALL void         GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat* v);
+GL_APICALL void         GL_APIENTRY glUniform3i (GLint location, GLint x, GLint y, GLint z);
+GL_APICALL void         GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint* v);
+GL_APICALL void         GL_APIENTRY glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GL_APICALL void         GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat* v);
+GL_APICALL void         GL_APIENTRY glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w);
+GL_APICALL void         GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint* v);
+GL_APICALL void         GL_APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+GL_APICALL void         GL_APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+GL_APICALL void         GL_APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+GL_APICALL void         GL_APIENTRY glUseProgram (GLuint program);
+GL_APICALL void         GL_APIENTRY glValidateProgram (GLuint program);
+GL_APICALL void         GL_APIENTRY glVertexAttrib1f (GLuint indx, GLfloat x);
+GL_APICALL void         GL_APIENTRY glVertexAttrib1fv (GLuint indx, const GLfloat* values);
+GL_APICALL void         GL_APIENTRY glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y);
+GL_APICALL void         GL_APIENTRY glVertexAttrib2fv (GLuint indx, const GLfloat* values);
+GL_APICALL void         GL_APIENTRY glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z);
+GL_APICALL void         GL_APIENTRY glVertexAttrib3fv (GLuint indx, const GLfloat* values);
+GL_APICALL void         GL_APIENTRY glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GL_APICALL void         GL_APIENTRY glVertexAttrib4fv (GLuint indx, const GLfloat* values);
+GL_APICALL void         GL_APIENTRY glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr);
+GL_APICALL void         GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __gl2_h_ */
+
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_gl2ext.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_gl2ext.h
new file mode 100644
index 0000000..e8ca8b1
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_gl2ext.h
@@ -0,0 +1,2050 @@
+#ifndef __gl2ext_h_
+#define __gl2ext_h_
+
+/* $Revision: 22801 $ on $Date:: 2013-08-21 03:20:48 -0700 #$ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * This document is licensed under the SGI Free Software B License Version
+ * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
+ */
+
+#ifndef GL_APIENTRYP
+#   define GL_APIENTRYP GL_APIENTRY*
+#endif
+
+/* New types shared by several extensions */
+
+#ifndef __gl3_h_
+/* These are defined with respect to <inttypes.h> in the
+ * Apple extension spec, but they are also used by non-APPLE
+ * extensions, and in the Khronos header we use the Khronos
+ * portable types in khrplatform.h, which must be defined.
+ */
+typedef khronos_int64_t GLint64;
+typedef khronos_uint64_t GLuint64;
+typedef struct __GLsync *GLsync;
+#endif
+
+
+/*------------------------------------------------------------------------*
+ * OES extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_OES_compressed_ETC1_RGB8_texture */
+#ifndef GL_OES_compressed_ETC1_RGB8_texture
+#define GL_ETC1_RGB8_OES                                        0x8D64
+#endif
+
+/* GL_OES_compressed_paletted_texture */
+#ifndef GL_OES_compressed_paletted_texture
+#define GL_PALETTE4_RGB8_OES                                    0x8B90
+#define GL_PALETTE4_RGBA8_OES                                   0x8B91
+#define GL_PALETTE4_R5_G6_B5_OES                                0x8B92
+#define GL_PALETTE4_RGBA4_OES                                   0x8B93
+#define GL_PALETTE4_RGB5_A1_OES                                 0x8B94
+#define GL_PALETTE8_RGB8_OES                                    0x8B95
+#define GL_PALETTE8_RGBA8_OES                                   0x8B96
+#define GL_PALETTE8_R5_G6_B5_OES                                0x8B97
+#define GL_PALETTE8_RGBA4_OES                                   0x8B98
+#define GL_PALETTE8_RGB5_A1_OES                                 0x8B99
+#endif
+
+/* GL_OES_depth24 */
+#ifndef GL_OES_depth24
+#define GL_DEPTH_COMPONENT24_OES                                0x81A6
+#endif
+
+/* GL_OES_depth32 */
+#ifndef GL_OES_depth32
+#define GL_DEPTH_COMPONENT32_OES                                0x81A7
+#endif
+
+/* GL_OES_depth_texture */
+/* No new tokens introduced by this extension. */
+
+/* GL_OES_EGL_image */
+#ifndef GL_OES_EGL_image
+typedef void* GLeglImageOES;
+#endif
+
+/* GL_OES_EGL_image_external */
+#ifndef GL_OES_EGL_image_external
+/* GLeglImageOES defined in GL_OES_EGL_image already. */
+#define GL_TEXTURE_EXTERNAL_OES                                 0x8D65
+#define GL_SAMPLER_EXTERNAL_OES                                 0x8D66
+#define GL_TEXTURE_BINDING_EXTERNAL_OES                         0x8D67
+#define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES                     0x8D68
+#endif
+
+/* GL_OES_element_index_uint */
+#ifndef GL_OES_element_index_uint
+#define GL_UNSIGNED_INT                                         0x1405
+#endif
+
+/* GL_OES_get_program_binary */
+#ifndef GL_OES_get_program_binary
+#define GL_PROGRAM_BINARY_LENGTH_OES                            0x8741
+#define GL_NUM_PROGRAM_BINARY_FORMATS_OES                       0x87FE
+#define GL_PROGRAM_BINARY_FORMATS_OES                           0x87FF
+#endif
+
+/* GL_OES_mapbuffer */
+#ifndef GL_OES_mapbuffer
+#define GL_WRITE_ONLY_OES                                       0x88B9
+#define GL_BUFFER_ACCESS_OES                                    0x88BB
+#define GL_BUFFER_MAPPED_OES                                    0x88BC
+#define GL_BUFFER_MAP_POINTER_OES                               0x88BD
+#endif
+
+/* GL_OES_packed_depth_stencil */
+#ifndef GL_OES_packed_depth_stencil
+#define GL_DEPTH_STENCIL_OES                                    0x84F9
+#define GL_UNSIGNED_INT_24_8_OES                                0x84FA
+#define GL_DEPTH24_STENCIL8_OES                                 0x88F0
+#endif
+
+/* GL_OES_required_internalformat */
+#ifndef GL_OES_required_internalformat
+#define GL_ALPHA8_OES                                           0x803C
+#define GL_DEPTH_COMPONENT16_OES                                0x81A5
+/* reuse GL_DEPTH_COMPONENT24_OES */
+/* reuse GL_DEPTH24_STENCIL8_OES */
+/* reuse GL_DEPTH_COMPONENT32_OES */
+#define GL_LUMINANCE4_ALPHA4_OES                                0x8043
+#define GL_LUMINANCE8_ALPHA8_OES                                0x8045
+#define GL_LUMINANCE8_OES                                       0x8040
+#define GL_RGBA4_OES                                            0x8056
+#define GL_RGB5_A1_OES                                          0x8057
+#define GL_RGB565_OES                                           0x8D62
+/* reuse GL_RGB8_OES */
+/* reuse GL_RGBA8_OES */
+/* reuse GL_RGB10_EXT */
+/* reuse GL_RGB10_A2_EXT */
+#endif
+
+/* GL_OES_rgb8_rgba8 */
+#ifndef GL_OES_rgb8_rgba8
+#define GL_RGB8_OES                                             0x8051
+#define GL_RGBA8_OES                                            0x8058
+#endif
+
+/* GL_OES_standard_derivatives */
+#ifndef GL_OES_standard_derivatives
+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES                  0x8B8B
+#endif
+
+/* GL_OES_stencil1 */
+#ifndef GL_OES_stencil1
+#define GL_STENCIL_INDEX1_OES                                   0x8D46
+#endif
+
+/* GL_OES_stencil4 */
+#ifndef GL_OES_stencil4
+#define GL_STENCIL_INDEX4_OES                                   0x8D47
+#endif
+
+#ifndef GL_OES_surfaceless_context
+#define GL_FRAMEBUFFER_UNDEFINED_OES                            0x8219
+#endif
+
+/* GL_OES_texture_3D */
+#ifndef GL_OES_texture_3D
+#define GL_TEXTURE_WRAP_R_OES                                   0x8072
+#define GL_TEXTURE_3D_OES                                       0x806F
+#define GL_TEXTURE_BINDING_3D_OES                               0x806A
+#define GL_MAX_3D_TEXTURE_SIZE_OES                              0x8073
+#define GL_SAMPLER_3D_OES                                       0x8B5F
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES        0x8CD4
+#endif
+
+/* GL_OES_texture_float */
+/* No new tokens introduced by this extension. */
+
+/* GL_OES_texture_float_linear */
+/* No new tokens introduced by this extension. */
+
+/* GL_OES_texture_half_float */
+#ifndef GL_OES_texture_half_float
+#define GL_HALF_FLOAT_OES                                       0x8D61
+#endif
+
+/* GL_OES_texture_half_float_linear */
+/* No new tokens introduced by this extension. */
+
+/* GL_OES_texture_npot */
+/* No new tokens introduced by this extension. */
+
+/* GL_OES_vertex_array_object */
+#ifndef GL_OES_vertex_array_object
+#define GL_VERTEX_ARRAY_BINDING_OES                             0x85B5
+#endif
+
+/* GL_OES_vertex_half_float */
+/* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
+
+/* GL_OES_vertex_type_10_10_10_2 */
+#ifndef GL_OES_vertex_type_10_10_10_2
+#define GL_UNSIGNED_INT_10_10_10_2_OES                          0x8DF6
+#define GL_INT_10_10_10_2_OES                                   0x8DF7
+#endif
+
+/*------------------------------------------------------------------------*
+ * KHR extension tokens
+ *------------------------------------------------------------------------*/
+
+#ifndef GL_KHR_debug
+typedef void (GL_APIENTRYP GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
+#define GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR                         0x8242
+#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR                 0x8243
+#define GL_DEBUG_CALLBACK_FUNCTION_KHR                          0x8244
+#define GL_DEBUG_CALLBACK_USER_PARAM_KHR                        0x8245
+#define GL_DEBUG_SOURCE_API_KHR                                 0x8246
+#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR                       0x8247
+#define GL_DEBUG_SOURCE_SHADER_COMPILER_KHR                     0x8248
+#define GL_DEBUG_SOURCE_THIRD_PARTY_KHR                         0x8249
+#define GL_DEBUG_SOURCE_APPLICATION_KHR                         0x824A
+#define GL_DEBUG_SOURCE_OTHER_KHR                               0x824B
+#define GL_DEBUG_TYPE_ERROR_KHR                                 0x824C
+#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR                   0x824D
+#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR                    0x824E
+#define GL_DEBUG_TYPE_PORTABILITY_KHR                           0x824F
+#define GL_DEBUG_TYPE_PERFORMANCE_KHR                           0x8250
+#define GL_DEBUG_TYPE_OTHER_KHR                                 0x8251
+#define GL_DEBUG_TYPE_MARKER_KHR                                0x8268
+#define GL_DEBUG_TYPE_PUSH_GROUP_KHR                            0x8269
+#define GL_DEBUG_TYPE_POP_GROUP_KHR                             0x826A
+#define GL_DEBUG_SEVERITY_NOTIFICATION_KHR                      0x826B
+#define GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR                      0x826C
+#define GL_DEBUG_GROUP_STACK_DEPTH_KHR                          0x826D
+#define GL_BUFFER_KHR                                           0x82E0
+#define GL_SHADER_KHR                                           0x82E1
+#define GL_PROGRAM_KHR                                          0x82E2
+#define GL_QUERY_KHR                                            0x82E3
+/* PROGRAM_PIPELINE only in GL */
+#define GL_SAMPLER_KHR                                          0x82E6
+/* DISPLAY_LIST only in GL */
+#define GL_MAX_LABEL_LENGTH_KHR                                 0x82E8
+#define GL_MAX_DEBUG_MESSAGE_LENGTH_KHR                         0x9143
+#define GL_MAX_DEBUG_LOGGED_MESSAGES_KHR                        0x9144
+#define GL_DEBUG_LOGGED_MESSAGES_KHR                            0x9145
+#define GL_DEBUG_SEVERITY_HIGH_KHR                              0x9146
+#define GL_DEBUG_SEVERITY_MEDIUM_KHR                            0x9147
+#define GL_DEBUG_SEVERITY_LOW_KHR                               0x9148
+#define GL_DEBUG_OUTPUT_KHR                                     0x92E0
+#define GL_CONTEXT_FLAG_DEBUG_BIT_KHR                           0x00000002
+#define GL_STACK_OVERFLOW_KHR                                   0x0503
+#define GL_STACK_UNDERFLOW_KHR                                  0x0504
+#endif
+
+#ifndef GL_KHR_texture_compression_astc_ldr
+#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR                         0x93B0
+#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR                         0x93B1
+#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR                         0x93B2
+#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR                         0x93B3
+#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR                         0x93B4
+#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR                         0x93B5
+#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR                         0x93B6
+#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR                         0x93B7
+#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR                        0x93B8
+#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR                        0x93B9
+#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR                        0x93BA
+#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR                       0x93BB
+#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR                       0x93BC
+#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR                       0x93BD
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR                 0x93D0
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR                 0x93D1
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR                 0x93D2
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR                 0x93D3
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR                 0x93D4
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR                 0x93D5
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR                 0x93D6
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR                 0x93D7
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR                0x93D8
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR                0x93D9
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR                0x93DA
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR               0x93DB
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR               0x93DC
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR               0x93DD
+#endif
+
+/*------------------------------------------------------------------------*
+ * AMD extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_AMD_compressed_3DC_texture */
+#ifndef GL_AMD_compressed_3DC_texture
+#define GL_3DC_X_AMD                                            0x87F9
+#define GL_3DC_XY_AMD                                           0x87FA
+#endif
+
+/* GL_AMD_compressed_ATC_texture */
+#ifndef GL_AMD_compressed_ATC_texture
+#define GL_ATC_RGB_AMD                                          0x8C92
+#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD                          0x8C93
+#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD                      0x87EE
+#endif
+
+/* GL_AMD_performance_monitor */
+#ifndef GL_AMD_performance_monitor
+#define GL_COUNTER_TYPE_AMD                                     0x8BC0
+#define GL_COUNTER_RANGE_AMD                                    0x8BC1
+#define GL_UNSIGNED_INT64_AMD                                   0x8BC2
+#define GL_PERCENTAGE_AMD                                       0x8BC3
+#define GL_PERFMON_RESULT_AVAILABLE_AMD                         0x8BC4
+#define GL_PERFMON_RESULT_SIZE_AMD                              0x8BC5
+#define GL_PERFMON_RESULT_AMD                                   0x8BC6
+#endif
+
+/* GL_AMD_program_binary_Z400 */
+#ifndef GL_AMD_program_binary_Z400
+#define GL_Z400_BINARY_AMD                                      0x8740
+#endif
+
+/*------------------------------------------------------------------------*
+ * ANGLE extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_ANGLE_depth_texture */
+#ifndef GL_ANGLE_depth_texture
+#define GL_DEPTH_COMPONENT                                      0x1902
+#define GL_DEPTH_STENCIL_OES                                    0x84F9
+#define GL_UNSIGNED_SHORT                                       0x1403
+#define GL_UNSIGNED_INT                                         0x1405
+#define GL_UNSIGNED_INT_24_8_OES                                0x84FA
+#define GL_DEPTH_COMPONENT16                                    0x81A5
+#define GL_DEPTH_COMPONENT32_OES                                0x81A7
+#define GL_DEPTH24_STENCIL8_OES                                 0x88F0
+#endif
+
+/* GL_ANGLE_framebuffer_blit */
+#ifndef GL_ANGLE_framebuffer_blit
+#define GL_READ_FRAMEBUFFER_ANGLE                               0x8CA8
+#define GL_DRAW_FRAMEBUFFER_ANGLE                               0x8CA9
+#define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE                       0x8CA6
+#define GL_READ_FRAMEBUFFER_BINDING_ANGLE                       0x8CAA
+#endif
+
+/* GL_ANGLE_framebuffer_multisample */
+#ifndef GL_ANGLE_framebuffer_multisample
+#define GL_RENDERBUFFER_SAMPLES_ANGLE                           0x8CAB
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE             0x8D56
+#define GL_MAX_SAMPLES_ANGLE                                    0x8D57
+#endif
+
+/* GL_ANGLE_instanced_arrays */
+#ifndef GL_ANGLE_instanced_arrays
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE                    0x88FE
+#endif
+
+/* GL_ANGLE_pack_reverse_row_order */
+#ifndef GL_ANGLE_pack_reverse_row_order
+#define GL_PACK_REVERSE_ROW_ORDER_ANGLE                         0x93A4
+#endif
+
+/* GL_ANGLE_program_binary */
+#ifndef GL_ANGLE_program_binary
+#define GL_PROGRAM_BINARY_ANGLE                                 0x93A6
+#endif
+
+/* GL_ANGLE_texture_compression_dxt3 */
+#ifndef GL_ANGLE_texture_compression_dxt3
+#define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE                      0x83F2
+#endif
+
+/* GL_ANGLE_texture_compression_dxt5 */
+#ifndef GL_ANGLE_texture_compression_dxt5
+#define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE                      0x83F3
+#endif
+
+/* GL_ANGLE_texture_usage */
+#ifndef GL_ANGLE_texture_usage
+#define GL_TEXTURE_USAGE_ANGLE                                  0x93A2
+#define GL_FRAMEBUFFER_ATTACHMENT_ANGLE                         0x93A3
+#endif
+
+/* GL_ANGLE_translated_shader_source */
+#ifndef GL_ANGLE_translated_shader_source
+#define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE                0x93A0
+#endif
+
+/*------------------------------------------------------------------------*
+ * APPLE extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_APPLE_copy_texture_levels */
+/* No new tokens introduced by this extension. */
+
+/* GL_APPLE_framebuffer_multisample */
+#ifndef GL_APPLE_framebuffer_multisample
+#define GL_RENDERBUFFER_SAMPLES_APPLE                           0x8CAB
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE             0x8D56
+#define GL_MAX_SAMPLES_APPLE                                    0x8D57
+#define GL_READ_FRAMEBUFFER_APPLE                               0x8CA8
+#define GL_DRAW_FRAMEBUFFER_APPLE                               0x8CA9
+#define GL_DRAW_FRAMEBUFFER_BINDING_APPLE                       0x8CA6
+#define GL_READ_FRAMEBUFFER_BINDING_APPLE                       0x8CAA
+#endif
+
+/* GL_APPLE_rgb_422 */
+#ifndef GL_APPLE_rgb_422
+#define GL_RGB_422_APPLE                                        0x8A1F
+#define GL_UNSIGNED_SHORT_8_8_APPLE                             0x85BA
+#define GL_UNSIGNED_SHORT_8_8_REV_APPLE                         0x85BB
+#endif
+
+/* GL_APPLE_sync */
+#ifndef GL_APPLE_sync
+
+#define GL_SYNC_OBJECT_APPLE                                    0x8A53
+#define GL_MAX_SERVER_WAIT_TIMEOUT_APPLE                        0x9111
+#define GL_OBJECT_TYPE_APPLE                                    0x9112
+#define GL_SYNC_CONDITION_APPLE                                 0x9113
+#define GL_SYNC_STATUS_APPLE                                    0x9114
+#define GL_SYNC_FLAGS_APPLE                                     0x9115
+#define GL_SYNC_FENCE_APPLE                                     0x9116
+#define GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE                     0x9117
+#define GL_UNSIGNALED_APPLE                                     0x9118
+#define GL_SIGNALED_APPLE                                       0x9119
+#define GL_ALREADY_SIGNALED_APPLE                               0x911A
+#define GL_TIMEOUT_EXPIRED_APPLE                                0x911B
+#define GL_CONDITION_SATISFIED_APPLE                            0x911C
+#define GL_WAIT_FAILED_APPLE                                    0x911D
+#define GL_SYNC_FLUSH_COMMANDS_BIT_APPLE                        0x00000001
+#define GL_TIMEOUT_IGNORED_APPLE                                0xFFFFFFFFFFFFFFFFull
+#endif
+
+/* GL_APPLE_texture_format_BGRA8888 */
+#ifndef GL_APPLE_texture_format_BGRA8888
+#define GL_BGRA_EXT                                             0x80E1
+#endif
+
+/* GL_APPLE_texture_max_level */
+#ifndef GL_APPLE_texture_max_level
+#define GL_TEXTURE_MAX_LEVEL_APPLE                              0x813D
+#endif
+
+/*------------------------------------------------------------------------*
+ * ARM extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_ARM_mali_program_binary */
+#ifndef GL_ARM_mali_program_binary
+#define GL_MALI_PROGRAM_BINARY_ARM                              0x8F61
+#endif
+
+/* GL_ARM_mali_shader_binary */
+#ifndef GL_ARM_mali_shader_binary
+#define GL_MALI_SHADER_BINARY_ARM                               0x8F60
+#endif
+
+/* GL_ARM_rgba8 */
+/* No new tokens introduced by this extension. */
+
+/*------------------------------------------------------------------------*
+ * EXT extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_EXT_blend_minmax */
+#ifndef GL_EXT_blend_minmax
+#define GL_MIN_EXT                                              0x8007
+#define GL_MAX_EXT                                              0x8008
+#endif
+
+/* GL_EXT_color_buffer_half_float */
+#ifndef GL_EXT_color_buffer_half_float
+#define GL_RGBA16F_EXT                                          0x881A
+#define GL_RGB16F_EXT                                           0x881B
+#define GL_RG16F_EXT                                            0x822F
+#define GL_R16F_EXT                                             0x822D
+#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT            0x8211
+#define GL_UNSIGNED_NORMALIZED_EXT                              0x8C17
+#endif
+
+/* GL_EXT_debug_label */
+#ifndef GL_EXT_debug_label
+#define GL_PROGRAM_PIPELINE_OBJECT_EXT                          0x8A4F
+#define GL_PROGRAM_OBJECT_EXT                                   0x8B40
+#define GL_SHADER_OBJECT_EXT                                    0x8B48
+#define GL_BUFFER_OBJECT_EXT                                    0x9151
+#define GL_QUERY_OBJECT_EXT                                     0x9153
+#define GL_VERTEX_ARRAY_OBJECT_EXT                              0x9154
+#endif
+
+/* GL_EXT_debug_marker */
+/* No new tokens introduced by this extension. */
+
+/* GL_EXT_discard_framebuffer */
+#ifndef GL_EXT_discard_framebuffer
+#define GL_COLOR_EXT                                            0x1800
+#define GL_DEPTH_EXT                                            0x1801
+#define GL_STENCIL_EXT                                          0x1802
+#endif
+
+#ifndef GL_EXT_disjoint_timer_query
+#define GL_QUERY_COUNTER_BITS_EXT                               0x8864
+#define GL_CURRENT_QUERY_EXT                                    0x8865
+#define GL_QUERY_RESULT_EXT                                     0x8866
+#define GL_QUERY_RESULT_AVAILABLE_EXT                           0x8867
+#define GL_TIME_ELAPSED_EXT                                     0x88BF
+#define GL_TIMESTAMP_EXT                                        0x8E28
+#define GL_GPU_DISJOINT_EXT                                     0x8FBB
+#endif
+
+#ifndef GL_EXT_draw_buffers
+#define GL_EXT_draw_buffers 1
+#define GL_MAX_COLOR_ATTACHMENTS_EXT                            0x8CDF
+#define GL_MAX_DRAW_BUFFERS_EXT                                 0x8824
+#define GL_DRAW_BUFFER0_EXT                                     0x8825
+#define GL_DRAW_BUFFER1_EXT                                     0x8826
+#define GL_DRAW_BUFFER2_EXT                                     0x8827
+#define GL_DRAW_BUFFER3_EXT                                     0x8828
+#define GL_DRAW_BUFFER4_EXT                                     0x8829
+#define GL_DRAW_BUFFER5_EXT                                     0x882A
+#define GL_DRAW_BUFFER6_EXT                                     0x882B
+#define GL_DRAW_BUFFER7_EXT                                     0x882C
+#define GL_DRAW_BUFFER8_EXT                                     0x882D
+#define GL_DRAW_BUFFER9_EXT                                     0x882E
+#define GL_DRAW_BUFFER10_EXT                                    0x882F
+#define GL_DRAW_BUFFER11_EXT                                    0x8830
+#define GL_DRAW_BUFFER12_EXT                                    0x8831
+#define GL_DRAW_BUFFER13_EXT                                    0x8832
+#define GL_DRAW_BUFFER14_EXT                                    0x8833
+#define GL_DRAW_BUFFER15_EXT                                    0x8834
+#define GL_COLOR_ATTACHMENT0_EXT                                0x8CE0
+#define GL_COLOR_ATTACHMENT1_EXT                                0x8CE1
+#define GL_COLOR_ATTACHMENT2_EXT                                0x8CE2
+#define GL_COLOR_ATTACHMENT3_EXT                                0x8CE3
+#define GL_COLOR_ATTACHMENT4_EXT                                0x8CE4
+#define GL_COLOR_ATTACHMENT5_EXT                                0x8CE5
+#define GL_COLOR_ATTACHMENT6_EXT                                0x8CE6
+#define GL_COLOR_ATTACHMENT7_EXT                                0x8CE7
+#define GL_COLOR_ATTACHMENT8_EXT                                0x8CE8
+#define GL_COLOR_ATTACHMENT9_EXT                                0x8CE9
+#define GL_COLOR_ATTACHMENT10_EXT                               0x8CEA
+#define GL_COLOR_ATTACHMENT11_EXT                               0x8CEB
+#define GL_COLOR_ATTACHMENT12_EXT                               0x8CEC
+#define GL_COLOR_ATTACHMENT13_EXT                               0x8CED
+#define GL_COLOR_ATTACHMENT14_EXT                               0x8CEE
+#define GL_COLOR_ATTACHMENT15_EXT                               0x8CEF
+#endif
+
+/* GL_EXT_map_buffer_range */
+#ifndef GL_EXT_map_buffer_range
+#define GL_MAP_READ_BIT_EXT                                     0x0001
+#define GL_MAP_WRITE_BIT_EXT                                    0x0002
+#define GL_MAP_INVALIDATE_RANGE_BIT_EXT                         0x0004
+#define GL_MAP_INVALIDATE_BUFFER_BIT_EXT                        0x0008
+#define GL_MAP_FLUSH_EXPLICIT_BIT_EXT                           0x0010
+#define GL_MAP_UNSYNCHRONIZED_BIT_EXT                           0x0020
+#endif
+
+/* GL_EXT_multisampled_render_to_texture */
+#ifndef GL_EXT_multisampled_render_to_texture
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT           0x8D6C
+/* reuse values from GL_EXT_framebuffer_multisample (desktop extension) */
+#define GL_RENDERBUFFER_SAMPLES_EXT                             0x8CAB
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT               0x8D56
+#define GL_MAX_SAMPLES_EXT                                      0x8D57
+#endif
+
+/* GL_EXT_multiview_draw_buffers */
+#ifndef GL_EXT_multiview_draw_buffers
+#define GL_COLOR_ATTACHMENT_EXT                                 0x90F0
+#define GL_MULTIVIEW_EXT                                        0x90F1
+#define GL_DRAW_BUFFER_EXT                                      0x0C01
+#define GL_READ_BUFFER_EXT                                      0x0C02
+#define GL_MAX_MULTIVIEW_BUFFERS_EXT                            0x90F2
+#endif
+
+/* GL_EXT_multi_draw_arrays */
+/* No new tokens introduced by this extension. */
+
+/* GL_EXT_occlusion_query_boolean */
+#ifndef GL_EXT_occlusion_query_boolean
+#define GL_ANY_SAMPLES_PASSED_EXT                               0x8C2F
+#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT                  0x8D6A
+#define GL_CURRENT_QUERY_EXT                                    0x8865
+#define GL_QUERY_RESULT_EXT                                     0x8866
+#define GL_QUERY_RESULT_AVAILABLE_EXT                           0x8867
+#endif
+
+/* GL_EXT_read_format_bgra */
+#ifndef GL_EXT_read_format_bgra
+#define GL_BGRA_EXT                                             0x80E1
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT                       0x8365
+#define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT                       0x8366
+#endif
+
+/* GL_EXT_robustness */
+#ifndef GL_EXT_robustness
+/* reuse GL_NO_ERROR */
+#define GL_GUILTY_CONTEXT_RESET_EXT                             0x8253
+#define GL_INNOCENT_CONTEXT_RESET_EXT                           0x8254
+#define GL_UNKNOWN_CONTEXT_RESET_EXT                            0x8255
+#define GL_CONTEXT_ROBUST_ACCESS_EXT                            0x90F3
+#define GL_RESET_NOTIFICATION_STRATEGY_EXT                      0x8256
+#define GL_LOSE_CONTEXT_ON_RESET_EXT                            0x8252
+#define GL_NO_RESET_NOTIFICATION_EXT                            0x8261
+#endif
+
+/* GL_EXT_separate_shader_objects */
+#ifndef GL_EXT_separate_shader_objects
+#define GL_VERTEX_SHADER_BIT_EXT                                0x00000001
+#define GL_FRAGMENT_SHADER_BIT_EXT                              0x00000002
+#define GL_ALL_SHADER_BITS_EXT                                  0xFFFFFFFF
+#define GL_PROGRAM_SEPARABLE_EXT                                0x8258
+#define GL_ACTIVE_PROGRAM_EXT                                   0x8259
+#define GL_PROGRAM_PIPELINE_BINDING_EXT                         0x825A
+#endif
+
+/* GL_EXT_shader_framebuffer_fetch */
+#ifndef GL_EXT_shader_framebuffer_fetch
+#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT                 0x8A52
+#endif
+
+/* GL_EXT_shader_texture_lod */
+/* No new tokens introduced by this extension. */
+
+/* GL_EXT_shadow_samplers */
+#ifndef GL_EXT_shadow_samplers
+#define GL_TEXTURE_COMPARE_MODE_EXT                             0x884C
+#define GL_TEXTURE_COMPARE_FUNC_EXT                             0x884D
+#define GL_COMPARE_REF_TO_TEXTURE_EXT                           0x884E
+#define GL_SAMPLER_2D_SHADOW_EXT                                0x8B62
+#endif
+
+/* GL_EXT_sRGB */
+#ifndef GL_EXT_sRGB
+#define GL_SRGB_EXT                                             0x8C40
+#define GL_SRGB_ALPHA_EXT                                       0x8C42
+#define GL_SRGB8_ALPHA8_EXT                                     0x8C43
+#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT            0x8210
+#endif
+
+/* GL_EXT_sRGB_write_control */
+#ifndef GL_EXT_sRGB_write_control
+#define GL_EXT_sRGB_write_control 1
+#define GL_FRAMEBUFFER_SRGB_EXT                                 0x8DB9
+#endif
+
+/* GL_EXT_texture_compression_dxt1 */
+#ifndef GL_EXT_texture_compression_dxt1
+#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT                         0x83F0
+#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT                        0x83F1
+#endif
+
+/* GL_EXT_texture_filter_anisotropic */
+#ifndef GL_EXT_texture_filter_anisotropic
+#define GL_TEXTURE_MAX_ANISOTROPY_EXT                           0x84FE
+#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT                       0x84FF
+#endif
+
+/* GL_EXT_texture_format_BGRA8888 */
+#ifndef GL_EXT_texture_format_BGRA8888
+#define GL_BGRA_EXT                                             0x80E1
+#endif
+
+/* GL_EXT_texture_rg */
+#ifndef GL_EXT_texture_rg
+#define GL_RED_EXT                                              0x1903
+#define GL_RG_EXT                                               0x8227
+#define GL_R8_EXT                                               0x8229
+#define GL_RG8_EXT                                              0x822B
+#endif
+
+/* GL_EXT_texture_sRGB_decode */
+#ifndef GL_EXT_texture_sRGB_decode
+#define GL_EXT_texture_sRGB_decode 1
+#define GL_TEXTURE_SRGB_DECODE_EXT                              0x8A48
+#define GL_DECODE_EXT                                           0x8A49
+#define GL_SKIP_DECODE_EXT                                      0x8A4A
+#endif
+
+/* GL_EXT_texture_storage */
+#ifndef GL_EXT_texture_storage
+#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT                         0x912F
+#define GL_ALPHA8_EXT                                           0x803C
+#define GL_LUMINANCE8_EXT                                       0x8040
+#define GL_LUMINANCE8_ALPHA8_EXT                                0x8045
+#define GL_RGBA32F_EXT                                          0x8814
+#define GL_RGB32F_EXT                                           0x8815
+#define GL_ALPHA32F_EXT                                         0x8816
+#define GL_LUMINANCE32F_EXT                                     0x8818
+#define GL_LUMINANCE_ALPHA32F_EXT                               0x8819
+/* reuse GL_RGBA16F_EXT */
+/* reuse GL_RGB16F_EXT */
+#define GL_ALPHA16F_EXT                                         0x881C
+#define GL_LUMINANCE16F_EXT                                     0x881E
+#define GL_LUMINANCE_ALPHA16F_EXT                               0x881F
+#define GL_RGB10_A2_EXT                                         0x8059
+#define GL_RGB10_EXT                                            0x8052
+#define GL_BGRA8_EXT                                            0x93A1
+#define GL_R8_EXT                                               0x8229
+#define GL_RG8_EXT                                              0x822B
+#define GL_R32F_EXT                                             0x822E
+#define GL_RG32F_EXT                                            0x8230
+#define GL_R16F_EXT                                             0x822D
+#define GL_RG16F_EXT                                            0x822F
+#endif
+
+/* GL_EXT_texture_type_2_10_10_10_REV */
+#ifndef GL_EXT_texture_type_2_10_10_10_REV
+#define GL_UNSIGNED_INT_2_10_10_10_REV_EXT                      0x8368
+#endif
+
+/* GL_EXT_unpack_subimage */
+#ifndef GL_EXT_unpack_subimage
+#define GL_UNPACK_ROW_LENGTH_EXT                                0x0CF2
+#define GL_UNPACK_SKIP_ROWS_EXT                                 0x0CF3
+#define GL_UNPACK_SKIP_PIXELS_EXT                               0x0CF4
+#endif
+
+/*------------------------------------------------------------------------*
+ * DMP extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_DMP_shader_binary */
+#ifndef GL_DMP_shader_binary
+#define GL_SHADER_BINARY_DMP                                    0x9250
+#endif
+
+/*------------------------------------------------------------------------*
+ * FJ extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_FJ_shader_binary_GCCSO */
+#ifndef GL_FJ_shader_binary_GCCSO
+#define GL_GCCSO_SHADER_BINARY_FJ                               0x9260
+#endif
+
+/*------------------------------------------------------------------------*
+ * IMG extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_IMG_program_binary */
+#ifndef GL_IMG_program_binary
+#define GL_SGX_PROGRAM_BINARY_IMG                               0x9130
+#endif
+
+/* GL_IMG_read_format */
+#ifndef GL_IMG_read_format
+#define GL_BGRA_IMG                                             0x80E1
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG                       0x8365
+#endif
+
+/* GL_IMG_shader_binary */
+#ifndef GL_IMG_shader_binary
+#define GL_SGX_BINARY_IMG                                       0x8C0A
+#endif
+
+/* GL_IMG_texture_compression_pvrtc */
+#ifndef GL_IMG_texture_compression_pvrtc
+#define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG                      0x8C00
+#define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG                      0x8C01
+#define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG                     0x8C02
+#define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG                     0x8C03
+#endif
+
+/* GL_IMG_texture_compression_pvrtc2 */
+#ifndef GL_IMG_texture_compression_pvrtc2
+#define GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG                     0x9137
+#define GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG                     0x9138
+#endif
+
+/* GL_IMG_multisampled_render_to_texture */
+#ifndef GL_IMG_multisampled_render_to_texture
+#define GL_RENDERBUFFER_SAMPLES_IMG                             0x9133
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG               0x9134
+#define GL_MAX_SAMPLES_IMG                                      0x9135
+#define GL_TEXTURE_SAMPLES_IMG                                  0x9136
+#endif
+
+/*------------------------------------------------------------------------*
+ * NV extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_NV_coverage_sample */
+#ifndef GL_NV_coverage_sample
+#define GL_COVERAGE_COMPONENT_NV                                0x8ED0
+#define GL_COVERAGE_COMPONENT4_NV                               0x8ED1
+#define GL_COVERAGE_ATTACHMENT_NV                               0x8ED2
+#define GL_COVERAGE_BUFFERS_NV                                  0x8ED3
+#define GL_COVERAGE_SAMPLES_NV                                  0x8ED4
+#define GL_COVERAGE_ALL_FRAGMENTS_NV                            0x8ED5
+#define GL_COVERAGE_EDGE_FRAGMENTS_NV                           0x8ED6
+#define GL_COVERAGE_AUTOMATIC_NV                                0x8ED7
+#define GL_COVERAGE_BUFFER_BIT_NV                               0x00008000
+#endif
+
+/* GL_NV_depth_nonlinear */
+#ifndef GL_NV_depth_nonlinear
+#define GL_DEPTH_COMPONENT16_NONLINEAR_NV                       0x8E2C
+#endif
+
+/* GL_NV_draw_buffers */
+#ifndef GL_NV_draw_buffers
+#define GL_MAX_DRAW_BUFFERS_NV                                  0x8824
+#define GL_DRAW_BUFFER0_NV                                      0x8825
+#define GL_DRAW_BUFFER1_NV                                      0x8826
+#define GL_DRAW_BUFFER2_NV                                      0x8827
+#define GL_DRAW_BUFFER3_NV                                      0x8828
+#define GL_DRAW_BUFFER4_NV                                      0x8829
+#define GL_DRAW_BUFFER5_NV                                      0x882A
+#define GL_DRAW_BUFFER6_NV                                      0x882B
+#define GL_DRAW_BUFFER7_NV                                      0x882C
+#define GL_DRAW_BUFFER8_NV                                      0x882D
+#define GL_DRAW_BUFFER9_NV                                      0x882E
+#define GL_DRAW_BUFFER10_NV                                     0x882F
+#define GL_DRAW_BUFFER11_NV                                     0x8830
+#define GL_DRAW_BUFFER12_NV                                     0x8831
+#define GL_DRAW_BUFFER13_NV                                     0x8832
+#define GL_DRAW_BUFFER14_NV                                     0x8833
+#define GL_DRAW_BUFFER15_NV                                     0x8834
+#define GL_COLOR_ATTACHMENT0_NV                                 0x8CE0
+#define GL_COLOR_ATTACHMENT1_NV                                 0x8CE1
+#define GL_COLOR_ATTACHMENT2_NV                                 0x8CE2
+#define GL_COLOR_ATTACHMENT3_NV                                 0x8CE3
+#define GL_COLOR_ATTACHMENT4_NV                                 0x8CE4
+#define GL_COLOR_ATTACHMENT5_NV                                 0x8CE5
+#define GL_COLOR_ATTACHMENT6_NV                                 0x8CE6
+#define GL_COLOR_ATTACHMENT7_NV                                 0x8CE7
+#define GL_COLOR_ATTACHMENT8_NV                                 0x8CE8
+#define GL_COLOR_ATTACHMENT9_NV                                 0x8CE9
+#define GL_COLOR_ATTACHMENT10_NV                                0x8CEA
+#define GL_COLOR_ATTACHMENT11_NV                                0x8CEB
+#define GL_COLOR_ATTACHMENT12_NV                                0x8CEC
+#define GL_COLOR_ATTACHMENT13_NV                                0x8CED
+#define GL_COLOR_ATTACHMENT14_NV                                0x8CEE
+#define GL_COLOR_ATTACHMENT15_NV                                0x8CEF
+#endif
+
+/* GL_NV_draw_instanced */
+/* No new tokens introduced by this extension. */
+
+/* GL_NV_fbo_color_attachments */
+#ifndef GL_NV_fbo_color_attachments
+#define GL_MAX_COLOR_ATTACHMENTS_NV                             0x8CDF
+/* GL_COLOR_ATTACHMENT{0-15}_NV defined in GL_NV_draw_buffers already. */
+#endif
+
+/* GL_NV_fence */
+#ifndef GL_NV_fence
+#define GL_ALL_COMPLETED_NV                                     0x84F2
+#define GL_FENCE_STATUS_NV                                      0x84F3
+#define GL_FENCE_CONDITION_NV                                   0x84F4
+#endif
+
+/* GL_NV_framebuffer_blit */
+#ifndef GL_NV_framebuffer_blit
+#define GL_READ_FRAMEBUFFER_NV                                  0x8CA8
+#define GL_DRAW_FRAMEBUFFER_NV                                  0x8CA9
+#define GL_DRAW_FRAMEBUFFER_BINDING_NV                          0x8CA6
+#define GL_READ_FRAMEBUFFER_BINDING_NV                          0x8CAA
+#endif
+
+/* GL_NV_framebuffer_multisample */
+#ifndef GL_NV_framebuffer_multisample
+#define GL_RENDERBUFFER_SAMPLES_NV                              0x8CAB
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV                0x8D56
+#define GL_MAX_SAMPLES_NV                                       0x8D57
+#endif
+
+/* GL_NV_generate_mipmap_sRGB */
+/* No new tokens introduced by this extension. */
+
+/* GL_NV_instanced_arrays */
+#ifndef GL_NV_instanced_arrays
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_NV                       0x88FE
+#endif
+
+/* GL_NV_read_buffer */
+#ifndef GL_NV_read_buffer
+#define GL_READ_BUFFER_NV                                       0x0C02
+#endif
+
+/* GL_NV_read_buffer_front */
+/* No new tokens introduced by this extension. */
+
+/* GL_NV_read_depth */
+/* No new tokens introduced by this extension. */
+
+/* GL_NV_read_depth_stencil */
+/* No new tokens introduced by this extension. */
+
+/* GL_NV_read_stencil */
+/* No new tokens introduced by this extension. */
+
+/* GL_NV_shadow_samplers_array */
+#ifndef GL_NV_shadow_samplers_array
+#define GL_SAMPLER_2D_ARRAY_SHADOW_NV                           0x8DC4
+#endif
+
+/* GL_NV_shadow_samplers_cube */
+#ifndef GL_NV_shadow_samplers_cube
+#define GL_SAMPLER_CUBE_SHADOW_NV                               0x8DC5
+#endif
+
+/* GL_NV_sRGB_formats */
+#ifndef GL_NV_sRGB_formats
+#define GL_SLUMINANCE_NV                                        0x8C46
+#define GL_SLUMINANCE_ALPHA_NV                                  0x8C44
+#define GL_SRGB8_NV                                             0x8C41
+#define GL_SLUMINANCE8_NV                                       0x8C47
+#define GL_SLUMINANCE8_ALPHA8_NV                                0x8C45
+#define GL_COMPRESSED_SRGB_S3TC_DXT1_NV                         0x8C4C
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV                   0x8C4D
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV                   0x8C4E
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV                   0x8C4F
+#define GL_ETC1_SRGB8_NV                                        0x88EE
+#endif
+
+/* GL_NV_texture_border_clamp */
+#ifndef GL_NV_texture_border_clamp
+#define GL_TEXTURE_BORDER_COLOR_NV                              0x1004
+#define GL_CLAMP_TO_BORDER_NV                                   0x812D
+#endif
+
+/* GL_NV_texture_compression_s3tc_update */
+/* No new tokens introduced by this extension. */
+
+/* GL_NV_texture_npot_2D_mipmap */
+/* No new tokens introduced by this extension. */
+
+/*------------------------------------------------------------------------*
+ * QCOM extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_QCOM_alpha_test */
+#ifndef GL_QCOM_alpha_test
+#define GL_ALPHA_TEST_QCOM                                      0x0BC0
+#define GL_ALPHA_TEST_FUNC_QCOM                                 0x0BC1
+#define GL_ALPHA_TEST_REF_QCOM                                  0x0BC2
+#endif
+
+/* GL_QCOM_binning_control */
+#ifndef GL_QCOM_binning_control
+#define GL_BINNING_CONTROL_HINT_QCOM                            0x8FB0
+#define GL_CPU_OPTIMIZED_QCOM                                   0x8FB1
+#define GL_GPU_OPTIMIZED_QCOM                                   0x8FB2
+#define GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM                    0x8FB3
+#endif
+
+/* GL_QCOM_driver_control */
+/* No new tokens introduced by this extension. */
+
+/* GL_QCOM_extended_get */
+#ifndef GL_QCOM_extended_get
+#define GL_TEXTURE_WIDTH_QCOM                                   0x8BD2
+#define GL_TEXTURE_HEIGHT_QCOM                                  0x8BD3
+#define GL_TEXTURE_DEPTH_QCOM                                   0x8BD4
+#define GL_TEXTURE_INTERNAL_FORMAT_QCOM                         0x8BD5
+#define GL_TEXTURE_FORMAT_QCOM                                  0x8BD6
+#define GL_TEXTURE_TYPE_QCOM                                    0x8BD7
+#define GL_TEXTURE_IMAGE_VALID_QCOM                             0x8BD8
+#define GL_TEXTURE_NUM_LEVELS_QCOM                              0x8BD9
+#define GL_TEXTURE_TARGET_QCOM                                  0x8BDA
+#define GL_TEXTURE_OBJECT_VALID_QCOM                            0x8BDB
+#define GL_STATE_RESTORE                                        0x8BDC
+#endif
+
+/* GL_QCOM_extended_get2 */
+/* No new tokens introduced by this extension. */
+
+/* GL_QCOM_perfmon_global_mode */
+#ifndef GL_QCOM_perfmon_global_mode
+#define GL_PERFMON_GLOBAL_MODE_QCOM                             0x8FA0
+#endif
+
+/* GL_QCOM_writeonly_rendering */
+#ifndef GL_QCOM_writeonly_rendering
+#define GL_WRITEONLY_RENDERING_QCOM                             0x8823
+#endif
+
+/* GL_QCOM_tiled_rendering */
+#ifndef GL_QCOM_tiled_rendering
+#define GL_COLOR_BUFFER_BIT0_QCOM                               0x00000001
+#define GL_COLOR_BUFFER_BIT1_QCOM                               0x00000002
+#define GL_COLOR_BUFFER_BIT2_QCOM                               0x00000004
+#define GL_COLOR_BUFFER_BIT3_QCOM                               0x00000008
+#define GL_COLOR_BUFFER_BIT4_QCOM                               0x00000010
+#define GL_COLOR_BUFFER_BIT5_QCOM                               0x00000020
+#define GL_COLOR_BUFFER_BIT6_QCOM                               0x00000040
+#define GL_COLOR_BUFFER_BIT7_QCOM                               0x00000080
+#define GL_DEPTH_BUFFER_BIT0_QCOM                               0x00000100
+#define GL_DEPTH_BUFFER_BIT1_QCOM                               0x00000200
+#define GL_DEPTH_BUFFER_BIT2_QCOM                               0x00000400
+#define GL_DEPTH_BUFFER_BIT3_QCOM                               0x00000800
+#define GL_DEPTH_BUFFER_BIT4_QCOM                               0x00001000
+#define GL_DEPTH_BUFFER_BIT5_QCOM                               0x00002000
+#define GL_DEPTH_BUFFER_BIT6_QCOM                               0x00004000
+#define GL_DEPTH_BUFFER_BIT7_QCOM                               0x00008000
+#define GL_STENCIL_BUFFER_BIT0_QCOM                             0x00010000
+#define GL_STENCIL_BUFFER_BIT1_QCOM                             0x00020000
+#define GL_STENCIL_BUFFER_BIT2_QCOM                             0x00040000
+#define GL_STENCIL_BUFFER_BIT3_QCOM                             0x00080000
+#define GL_STENCIL_BUFFER_BIT4_QCOM                             0x00100000
+#define GL_STENCIL_BUFFER_BIT5_QCOM                             0x00200000
+#define GL_STENCIL_BUFFER_BIT6_QCOM                             0x00400000
+#define GL_STENCIL_BUFFER_BIT7_QCOM                             0x00800000
+#define GL_MULTISAMPLE_BUFFER_BIT0_QCOM                         0x01000000
+#define GL_MULTISAMPLE_BUFFER_BIT1_QCOM                         0x02000000
+#define GL_MULTISAMPLE_BUFFER_BIT2_QCOM                         0x04000000
+#define GL_MULTISAMPLE_BUFFER_BIT3_QCOM                         0x08000000
+#define GL_MULTISAMPLE_BUFFER_BIT4_QCOM                         0x10000000
+#define GL_MULTISAMPLE_BUFFER_BIT5_QCOM                         0x20000000
+#define GL_MULTISAMPLE_BUFFER_BIT6_QCOM                         0x40000000
+#define GL_MULTISAMPLE_BUFFER_BIT7_QCOM                         0x80000000
+#endif
+
+/*------------------------------------------------------------------------*
+ * VIV extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_VIV_shader_binary */
+#ifndef GL_VIV_shader_binary
+#define GL_SHADER_BINARY_VIV                                    0x8FC4
+#endif
+
+/*------------------------------------------------------------------------*
+ * End of extension tokens, start of corresponding extension functions
+ *------------------------------------------------------------------------*/
+
+/*------------------------------------------------------------------------*
+ * OES extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_OES_compressed_ETC1_RGB8_texture */
+#ifndef GL_OES_compressed_ETC1_RGB8_texture
+#define GL_OES_compressed_ETC1_RGB8_texture 1
+#endif
+
+/* GL_OES_compressed_paletted_texture */
+#ifndef GL_OES_compressed_paletted_texture
+#define GL_OES_compressed_paletted_texture 1
+#endif
+
+/* GL_OES_depth24 */
+#ifndef GL_OES_depth24
+#define GL_OES_depth24 1
+#endif
+
+/* GL_OES_depth32 */
+#ifndef GL_OES_depth32
+#define GL_OES_depth32 1
+#endif
+
+/* GL_OES_depth_texture */
+#ifndef GL_OES_depth_texture
+#define GL_OES_depth_texture 1
+#endif
+
+/* GL_OES_EGL_image */
+#ifndef GL_OES_EGL_image
+#define GL_OES_EGL_image 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
+GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
+#endif
+typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
+typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
+#endif
+
+/* GL_OES_EGL_image_external */
+#ifndef GL_OES_EGL_image_external
+#define GL_OES_EGL_image_external 1
+/* glEGLImageTargetTexture2DOES defined in GL_OES_EGL_image already. */
+#endif
+
+/* GL_OES_element_index_uint */
+#ifndef GL_OES_element_index_uint
+#define GL_OES_element_index_uint 1
+#endif
+
+/* GL_OES_fbo_render_mipmap */
+#ifndef GL_OES_fbo_render_mipmap
+#define GL_OES_fbo_render_mipmap 1
+#endif
+
+/* GL_OES_fragment_precision_high */
+#ifndef GL_OES_fragment_precision_high
+#define GL_OES_fragment_precision_high 1
+#endif
+
+/* GL_OES_get_program_binary */
+#ifndef GL_OES_get_program_binary
+#define GL_OES_get_program_binary 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
+GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
+#endif
+typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
+typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
+#endif
+
+/* GL_OES_mapbuffer */
+#ifndef GL_OES_mapbuffer
+#define GL_OES_mapbuffer 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
+GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
+GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, GLvoid **params);
+#endif
+typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
+typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
+typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, GLvoid **params);
+#endif
+
+/* GL_OES_packed_depth_stencil */
+#ifndef GL_OES_packed_depth_stencil
+#define GL_OES_packed_depth_stencil 1
+#endif
+
+/* GL_OES_required_internalformat */
+#ifndef GL_OES_required_internalformat
+#define GL_OES_required_internalformat 1
+#endif
+
+/* GL_OES_rgb8_rgba8 */
+#ifndef GL_OES_rgb8_rgba8
+#define GL_OES_rgb8_rgba8 1
+#endif
+
+/* GL_OES_standard_derivatives */
+#ifndef GL_OES_standard_derivatives
+#define GL_OES_standard_derivatives 1
+#endif
+
+/* GL_OES_stencil1 */
+#ifndef GL_OES_stencil1
+#define GL_OES_stencil1 1
+#endif
+
+/* GL_OES_stencil4 */
+#ifndef GL_OES_stencil4
+#define GL_OES_stencil4 1
+#endif
+
+#ifndef GL_OES_surfaceless_context
+#define GL_OES_surfaceless_context 1
+#endif
+
+/* GL_OES_texture_3D */
+#ifndef GL_OES_texture_3D
+#define GL_OES_texture_3D 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
+GL_APICALL void GL_APIENTRY glTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels);
+GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
+GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data);
+GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+#endif
+typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
+typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels);
+typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
+typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data);
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+#endif
+
+/* GL_OES_texture_float */
+#ifndef GL_OES_texture_float
+#define GL_OES_texture_float 1
+#endif
+
+/* GL_OES_texture_float_linear */
+#ifndef GL_OES_texture_float_linear
+#define GL_OES_texture_float_linear 1
+#endif
+
+/* GL_OES_texture_half_float */
+#ifndef GL_OES_texture_half_float
+#define GL_OES_texture_half_float 1
+#endif
+
+/* GL_OES_texture_half_float_linear */
+#ifndef GL_OES_texture_half_float_linear
+#define GL_OES_texture_half_float_linear 1
+#endif
+
+/* GL_OES_texture_npot */
+#ifndef GL_OES_texture_npot
+#define GL_OES_texture_npot 1
+#endif
+
+/* GL_OES_vertex_array_object */
+#ifndef GL_OES_vertex_array_object
+#define GL_OES_vertex_array_object 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBindVertexArrayOES (GLuint array);
+GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays);
+GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
+GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
+#endif
+typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
+typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays);
+typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
+typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
+#endif
+
+/* GL_OES_vertex_half_float */
+#ifndef GL_OES_vertex_half_float
+#define GL_OES_vertex_half_float 1
+#endif
+
+/* GL_OES_vertex_type_10_10_10_2 */
+#ifndef GL_OES_vertex_type_10_10_10_2
+#define GL_OES_vertex_type_10_10_10_2 1
+#endif
+
+/*------------------------------------------------------------------------*
+ * KHR extension functions
+ *------------------------------------------------------------------------*/
+
+#ifndef GL_KHR_debug
+#define GL_KHR_debug 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDebugMessageControlKHR (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+GL_APICALL void GL_APIENTRY glDebugMessageInsertKHR (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+GL_APICALL void GL_APIENTRY glDebugMessageCallbackKHR (GLDEBUGPROCKHR callback, const void *userParam);
+GL_APICALL GLuint GL_APIENTRY glGetDebugMessageLogKHR (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+GL_APICALL void GL_APIENTRY glPushDebugGroupKHR (GLenum source, GLuint id, GLsizei length, const GLchar *message);
+GL_APICALL void GL_APIENTRY glPopDebugGroupKHR (void);
+GL_APICALL void GL_APIENTRY glObjectLabelKHR (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
+GL_APICALL void GL_APIENTRY glGetObjectLabelKHR (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
+GL_APICALL void GL_APIENTRY glObjectPtrLabelKHR (const void *ptr, GLsizei length, const GLchar *label);
+GL_APICALL void GL_APIENTRY glGetObjectPtrLabelKHR (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
+GL_APICALL void GL_APIENTRY glGetPointervKHR (GLenum pname, GLvoid **params);
+#endif
+typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECONTROLKHRPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGEINSERTKHRPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECALLBACKKHRPROC) (GLDEBUGPROCKHR callback, const void *userParam);
+typedef GLuint (GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+typedef void (GL_APIENTRYP PFNGLPUSHDEBUGGROUPKHRPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
+typedef void (GL_APIENTRYP PFNGLPOPDEBUGGROUPKHRPROC) (void);
+typedef void (GL_APIENTRYP PFNGLOBJECTLABELKHRPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
+typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELKHRPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
+typedef void (GL_APIENTRYP PFNGLOBJECTPTRLABELKHRPROC) (const void *ptr, GLsizei length, const GLchar *label);
+typedef void (GL_APIENTRYP PFNGLGETOBJECTPTRLABELKHRPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
+typedef void (GL_APIENTRYP PFNGLGETPOINTERVKHRPROC) (GLenum pname, GLvoid **params);
+#endif
+
+#ifndef GL_KHR_texture_compression_astc_ldr
+#define GL_KHR_texture_compression_astc_ldr 1
+#endif
+
+
+/*------------------------------------------------------------------------*
+ * AMD extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_AMD_compressed_3DC_texture */
+#ifndef GL_AMD_compressed_3DC_texture
+#define GL_AMD_compressed_3DC_texture 1
+#endif
+
+/* GL_AMD_compressed_ATC_texture */
+#ifndef GL_AMD_compressed_ATC_texture
+#define GL_AMD_compressed_ATC_texture 1
+#endif
+
+/* AMD_performance_monitor */
+#ifndef GL_AMD_performance_monitor
+#define GL_AMD_performance_monitor 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
+GL_APICALL void GL_APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
+GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
+GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
+GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
+GL_APICALL void GL_APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
+GL_APICALL void GL_APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
+GL_APICALL void GL_APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
+GL_APICALL void GL_APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
+GL_APICALL void GL_APIENTRY glEndPerfMonitorAMD (GLuint monitor);
+GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
+#endif
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
+typedef void (GL_APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
+typedef void (GL_APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
+typedef void (GL_APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
+typedef void (GL_APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
+typedef void (GL_APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
+#endif
+
+/* GL_AMD_program_binary_Z400 */
+#ifndef GL_AMD_program_binary_Z400
+#define GL_AMD_program_binary_Z400 1
+#endif
+
+/*------------------------------------------------------------------------*
+ * ANGLE extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_ANGLE_depth_texture */
+#ifndef GL_ANGLE_depth_texture
+#define GL_ANGLE_depth_texture 1
+#endif
+
+/* GL_ANGLE_framebuffer_blit */
+#ifndef GL_ANGLE_framebuffer_blit
+#define GL_ANGLE_framebuffer_blit 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBlitFramebufferANGLE (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#endif
+typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFERANGLEPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#endif
+
+/* GL_ANGLE_framebuffer_multisample */
+#ifndef GL_ANGLE_framebuffer_multisample
+#define GL_ANGLE_framebuffer_multisample 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+
+#ifndef GL_ANGLE_instanced_arrays
+#define GL_ANGLE_instanced_arrays 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+GL_APICALL void GL_APIENTRY glVertexAttribDivisorANGLE (GLuint index, GLuint divisor);
+#endif
+typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
+#endif
+
+/* GL_ANGLE_pack_reverse_row_order */
+#ifndef GL_ANGLE_pack_reverse_row_order
+#define GL_ANGLE_pack_reverse_row_order 1
+#endif
+
+/* GL_ANGLE_program_binary */
+#ifndef GL_ANGLE_program_binary
+#define GL_ANGLE_program_binary 1
+#endif
+
+/* GL_ANGLE_texture_compression_dxt3 */
+#ifndef GL_ANGLE_texture_compression_dxt3
+#define GL_ANGLE_texture_compression_dxt3 1
+#endif
+
+/* GL_ANGLE_texture_compression_dxt5 */
+#ifndef GL_ANGLE_texture_compression_dxt5
+#define GL_ANGLE_texture_compression_dxt5 1
+#endif
+
+/* GL_ANGLE_texture_usage */
+#ifndef GL_ANGLE_texture_usage
+#define GL_ANGLE_texture_usage 1
+#endif
+
+#ifndef GL_ANGLE_translated_shader_source
+#define GL_ANGLE_translated_shader_source 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
+#endif
+typedef void (GL_APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
+#endif
+
+/*------------------------------------------------------------------------*
+ * APPLE extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_APPLE_copy_texture_levels */
+#ifndef GL_APPLE_copy_texture_levels
+#define GL_APPLE_copy_texture_levels 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glCopyTextureLevelsAPPLE (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
+#endif
+typedef void (GL_APIENTRYP PFNGLCOPYTEXTURELEVELSAPPLEPROC) (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
+#endif
+
+/* GL_APPLE_framebuffer_multisample */
+#ifndef GL_APPLE_framebuffer_multisample
+#define GL_APPLE_framebuffer_multisample 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void);
+#endif /* GL_GLEXT_PROTOTYPES */
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
+#endif
+
+/* GL_APPLE_rgb_422 */
+#ifndef GL_APPLE_rgb_422
+#define GL_APPLE_rgb_422 1
+#endif
+
+/* GL_APPLE_sync */
+#ifndef GL_APPLE_sync
+#define GL_APPLE_sync 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL GLsync GL_APIENTRY glFenceSyncAPPLE (GLenum condition, GLbitfield flags);
+GL_APICALL GLboolean GL_APIENTRY glIsSyncAPPLE (GLsync sync);
+GL_APICALL void GL_APIENTRY glDeleteSyncAPPLE (GLsync sync);
+GL_APICALL GLenum GL_APIENTRY glClientWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
+GL_APICALL void GL_APIENTRY glWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
+GL_APICALL void GL_APIENTRY glGetInteger64vAPPLE (GLenum pname, GLint64 *params);
+GL_APICALL void GL_APIENTRY glGetSyncivAPPLE (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
+#endif
+typedef GLsync (GL_APIENTRYP PFNGLFENCESYNCAPPLEPROC) (GLenum condition, GLbitfield flags);
+typedef GLboolean (GL_APIENTRYP PFNGLISSYNCAPPLEPROC) (GLsync sync);
+typedef void (GL_APIENTRYP PFNGLDELETESYNCAPPLEPROC) (GLsync sync);
+typedef GLenum (GL_APIENTRYP PFNGLCLIENTWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
+typedef void (GL_APIENTRYP PFNGLWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
+typedef void (GL_APIENTRYP PFNGLGETINTEGER64VAPPLEPROC) (GLenum pname, GLint64 *params);
+typedef void (GL_APIENTRYP PFNGLGETSYNCIVAPPLEPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
+#endif
+
+/* GL_APPLE_texture_format_BGRA8888 */
+#ifndef GL_APPLE_texture_format_BGRA8888
+#define GL_APPLE_texture_format_BGRA8888 1
+#endif
+
+/* GL_APPLE_texture_max_level */
+#ifndef GL_APPLE_texture_max_level
+#define GL_APPLE_texture_max_level 1
+#endif
+
+/*------------------------------------------------------------------------*
+ * ARM extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_ARM_mali_program_binary */
+#ifndef GL_ARM_mali_program_binary
+#define GL_ARM_mali_program_binary 1
+#endif
+
+/* GL_ARM_mali_shader_binary */
+#ifndef GL_ARM_mali_shader_binary
+#define GL_ARM_mali_shader_binary 1
+#endif
+
+/* GL_ARM_rgba8 */
+#ifndef GL_ARM_rgba8
+#define GL_ARM_rgba8 1
+#endif
+
+/*------------------------------------------------------------------------*
+ * EXT extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_EXT_blend_minmax */
+#ifndef GL_EXT_blend_minmax
+#define GL_EXT_blend_minmax 1
+#endif
+
+/* GL_EXT_color_buffer_half_float */
+#ifndef GL_EXT_color_buffer_half_float
+#define GL_EXT_color_buffer_half_float 1
+#endif
+
+/* GL_EXT_debug_label */
+#ifndef GL_EXT_debug_label
+#define GL_EXT_debug_label 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
+GL_APICALL void GL_APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
+#endif
+typedef void (GL_APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
+typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
+#endif
+
+/* GL_EXT_debug_marker */
+#ifndef GL_EXT_debug_marker
+#define GL_EXT_debug_marker 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
+GL_APICALL void GL_APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
+GL_APICALL void GL_APIENTRY glPopGroupMarkerEXT (void);
+#endif
+typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
+typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
+typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
+#endif
+
+/* GL_EXT_discard_framebuffer */
+#ifndef GL_EXT_discard_framebuffer
+#define GL_EXT_discard_framebuffer 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments);
+#endif
+typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
+#endif
+
+#ifndef GL_EXT_disjoint_timer_query
+#define GL_EXT_disjoint_timer_query 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizei n, GLuint *ids);
+GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizei n, const GLuint *ids);
+GL_APICALL GLboolean GL_APIENTRY glIsQueryEXT (GLuint id);
+GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenum target, GLuint id);
+GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenum target);
+GL_APICALL void GL_APIENTRY glQueryCounterEXT (GLuint id, GLenum target);
+GL_APICALL void GL_APIENTRY glGetQueryivEXT (GLenum target, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetQueryObjectivEXT (GLuint id, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLuint id, GLenum pname, GLuint *params);
+GL_APICALL void GL_APIENTRY glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64 *params);
+GL_APICALL void GL_APIENTRY glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64 *params);
+#endif
+typedef void (GL_APIENTRYP PFNGLGENQUERIESEXTPROC) (GLsizei n, GLuint *ids);
+typedef void (GL_APIENTRYP PFNGLDELETEQUERIESEXTPROC) (GLsizei n, const GLuint *ids);
+typedef GLboolean (GL_APIENTRYP PFNGLISQUERYEXTPROC) (GLuint id);
+typedef void (GL_APIENTRYP PFNGLBEGINQUERYEXTPROC) (GLenum target, GLuint id);
+typedef void (GL_APIENTRYP PFNGLENDQUERYEXTPROC) (GLenum target);
+typedef void (GL_APIENTRYP PFNGLQUERYCOUNTEREXTPROC) (GLuint id, GLenum target);
+typedef void (GL_APIENTRYP PFNGLGETQUERYIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTIVEXTPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUIVEXTPROC) (GLuint id, GLenum pname, GLuint *params);
+typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64 *params);
+typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64 *params);
+#endif /* GL_EXT_disjoint_timer_query */
+
+#ifndef GL_EXT_draw_buffers
+#define GL_EXT_draw_buffers 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawBuffersEXT (GLsizei n, const GLenum *bufs);
+#endif
+typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSEXTPROC) (GLsizei n, const GLenum *bufs);
+#endif /* GL_EXT_draw_buffers */
+
+/* GL_EXT_map_buffer_range */
+#ifndef GL_EXT_map_buffer_range
+#define GL_EXT_map_buffer_range 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void* GL_APIENTRY glMapBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
+GL_APICALL void GL_APIENTRY glFlushMappedBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length);
+#endif
+typedef void* (GL_APIENTRYP PFNGLMAPBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
+typedef void (GL_APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
+#endif
+
+/* GL_EXT_multisampled_render_to_texture */
+#ifndef GL_EXT_multisampled_render_to_texture
+#define GL_EXT_multisampled_render_to_texture 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);             
+GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
+#endif
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
+#endif
+
+/* GL_EXT_multiview_draw_buffers */
+#ifndef GL_EXT_multiview_draw_buffers
+#define GL_EXT_multiview_draw_buffers 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glReadBufferIndexedEXT (GLenum src, GLint index);
+GL_APICALL void GL_APIENTRY glDrawBuffersIndexedEXT (GLint n, const GLenum *location, const GLint *indices);
+GL_APICALL void GL_APIENTRY glGetIntegeri_vEXT (GLenum target, GLuint index, GLint *data);
+#endif
+typedef void (GL_APIENTRYP PFNGLREADBUFFERINDEXEDEXTPROC) (GLenum src, GLint index);
+typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSINDEXEDEXTPROC) (GLint n, const GLenum *location, const GLint *indices);
+typedef void (GL_APIENTRYP PFNGLGETINTEGERI_VEXTPROC) (GLenum target, GLuint index, GLint *data);
+#endif
+
+#ifndef GL_EXT_multi_draw_arrays
+#define GL_EXT_multi_draw_arrays 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glMultiDrawArraysEXT (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+GL_APICALL void GL_APIENTRY glMultiDrawElementsEXT (GLenum mode, const GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount);
+#endif /* GL_GLEXT_PROTOTYPES */
+typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount);
+#endif
+
+/* GL_EXT_occlusion_query_boolean */
+#ifndef GL_EXT_occlusion_query_boolean
+#define GL_EXT_occlusion_query_boolean 1
+/* All entry points also exist in GL_EXT_disjoint_timer_query */
+#endif
+
+/* GL_EXT_read_format_bgra */
+#ifndef GL_EXT_read_format_bgra
+#define GL_EXT_read_format_bgra 1
+#endif
+
+/* GL_EXT_robustness */
+#ifndef GL_EXT_robustness
+#define GL_EXT_robustness 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusEXT (void);
+GL_APICALL void GL_APIENTRY glReadnPixelsEXT (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data);
+GL_APICALL void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+GL_APICALL void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+#endif
+typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC) (void);
+typedef void (GL_APIENTRYP PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data);
+typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+#endif
+
+/* GL_EXT_separate_shader_objects */
+#ifndef GL_EXT_separate_shader_objects
+#define GL_EXT_separate_shader_objects 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glUseProgramStagesEXT (GLuint pipeline, GLbitfield stages, GLuint program);
+GL_APICALL void GL_APIENTRY glActiveShaderProgramEXT (GLuint pipeline, GLuint program);
+GL_APICALL GLuint GL_APIENTRY glCreateShaderProgramvEXT (GLenum type, GLsizei count, const GLchar **strings);
+GL_APICALL void GL_APIENTRY glBindProgramPipelineEXT (GLuint pipeline);
+GL_APICALL void GL_APIENTRY glDeleteProgramPipelinesEXT (GLsizei n, const GLuint *pipelines);
+GL_APICALL void GL_APIENTRY glGenProgramPipelinesEXT (GLsizei n, GLuint *pipelines);
+GL_APICALL GLboolean GL_APIENTRY glIsProgramPipelineEXT (GLuint pipeline);
+GL_APICALL void GL_APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
+GL_APICALL void GL_APIENTRY glGetProgramPipelineivEXT (GLuint pipeline, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint x);
+GL_APICALL void GL_APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint x, GLint y);
+GL_APICALL void GL_APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z);
+GL_APICALL void GL_APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
+GL_APICALL void GL_APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat x);
+GL_APICALL void GL_APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat x, GLfloat y);
+GL_APICALL void GL_APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
+GL_APICALL void GL_APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GL_APICALL void GL_APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glValidateProgramPipelineEXT (GLuint pipeline);
+GL_APICALL void GL_APIENTRY glGetProgramPipelineInfoLogEXT (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+#endif
+typedef void (GL_APIENTRYP PFNGLUSEPROGRAMSTAGESEXTPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
+typedef void (GL_APIENTRYP PFNGLACTIVESHADERPROGRAMEXTPROC) (GLuint pipeline, GLuint program);
+typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROGRAMVEXTPROC) (GLenum type, GLsizei count, const GLchar **strings);
+typedef void (GL_APIENTRYP PFNGLBINDPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
+typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPIPELINESEXTPROC) (GLsizei n, const GLuint *pipelines);
+typedef void (GL_APIENTRYP PFNGLGENPROGRAMPIPELINESEXTPROC) (GLsizei n, GLuint *pipelines);
+typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
+typedef void (GL_APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
+typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEIVEXTPROC) (GLuint pipeline, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint x);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint x, GLint y);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat x);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
+typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+#endif
+
+/* GL_EXT_shader_framebuffer_fetch */
+#ifndef GL_EXT_shader_framebuffer_fetch
+#define GL_EXT_shader_framebuffer_fetch 1
+#endif
+
+/* GL_EXT_shader_texture_lod */
+#ifndef GL_EXT_shader_texture_lod
+#define GL_EXT_shader_texture_lod 1
+#endif
+
+/* GL_EXT_shadow_samplers */
+#ifndef GL_EXT_shadow_samplers
+#define GL_EXT_shadow_samplers 1
+#endif
+
+/* GL_EXT_sRGB */
+#ifndef GL_EXT_sRGB
+#define GL_EXT_sRGB 1
+#endif
+
+/* GL_EXT_texture_compression_dxt1 */
+#ifndef GL_EXT_texture_compression_dxt1
+#define GL_EXT_texture_compression_dxt1 1
+#endif
+
+/* GL_EXT_texture_filter_anisotropic */
+#ifndef GL_EXT_texture_filter_anisotropic
+#define GL_EXT_texture_filter_anisotropic 1
+#endif
+
+/* GL_EXT_texture_format_BGRA8888 */
+#ifndef GL_EXT_texture_format_BGRA8888
+#define GL_EXT_texture_format_BGRA8888 1
+#endif
+
+/* GL_EXT_texture_rg */
+#ifndef GL_EXT_texture_rg
+#define GL_EXT_texture_rg 1
+#endif
+
+/* GL_EXT_texture_storage */
+#ifndef GL_EXT_texture_storage
+#define GL_EXT_texture_storage 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+GL_APICALL void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GL_APICALL void GL_APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+#endif
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+#endif
+
+/* GL_EXT_texture_type_2_10_10_10_REV */
+#ifndef GL_EXT_texture_type_2_10_10_10_REV
+#define GL_EXT_texture_type_2_10_10_10_REV 1
+#endif
+
+/* GL_EXT_unpack_subimage */
+#ifndef GL_EXT_unpack_subimage
+#define GL_EXT_unpack_subimage 1
+#endif
+
+/*------------------------------------------------------------------------*
+ * DMP extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_DMP_shader_binary */
+#ifndef GL_DMP_shader_binary
+#define GL_DMP_shader_binary 1
+#endif
+
+/*------------------------------------------------------------------------*
+ * FJ extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_FJ_shader_binary_GCCSO */
+#ifndef GL_FJ_shader_binary_GCCSO
+#define GL_FJ_shader_binary_GCCSO 1
+#endif
+
+/*------------------------------------------------------------------------*
+ * IMG extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_IMG_program_binary */
+#ifndef GL_IMG_program_binary
+#define GL_IMG_program_binary 1
+#endif
+
+/* GL_IMG_read_format */
+#ifndef GL_IMG_read_format
+#define GL_IMG_read_format 1
+#endif
+
+/* GL_IMG_shader_binary */
+#ifndef GL_IMG_shader_binary
+#define GL_IMG_shader_binary 1
+#endif
+
+/* GL_IMG_texture_compression_pvrtc */
+#ifndef GL_IMG_texture_compression_pvrtc
+#define GL_IMG_texture_compression_pvrtc 1
+#endif
+
+/* GL_IMG_texture_compression_pvrtc2 */
+#ifndef GL_IMG_texture_compression_pvrtc2
+#define GL_IMG_texture_compression_pvrtc2 1
+#endif
+
+/* GL_IMG_multisampled_render_to_texture */
+#ifndef GL_IMG_multisampled_render_to_texture
+#define GL_IMG_multisampled_render_to_texture 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
+#endif
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
+#endif
+
+/*------------------------------------------------------------------------*
+ * NV extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_NV_coverage_sample */
+#ifndef GL_NV_coverage_sample
+#define GL_NV_coverage_sample 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glCoverageMaskNV (GLboolean mask);
+GL_APICALL void GL_APIENTRY glCoverageOperationNV (GLenum operation);
+#endif
+typedef void (GL_APIENTRYP PFNGLCOVERAGEMASKNVPROC) (GLboolean mask);
+typedef void (GL_APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation);
+#endif
+
+/* GL_NV_depth_nonlinear */
+#ifndef GL_NV_depth_nonlinear
+#define GL_NV_depth_nonlinear 1
+#endif
+
+/* GL_NV_draw_buffers */
+#ifndef GL_NV_draw_buffers
+#define GL_NV_draw_buffers 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);
+#endif
+typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
+#endif
+
+/* GL_NV_draw_instanced */
+#ifndef GL_NV_draw_instanced
+#define GL_NV_draw_instanced 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawArraysInstancedNV (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+GL_APICALL void GL_APIENTRY glDrawElementsInstancedNV (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
+#endif
+typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDNVPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDNVPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
+#endif
+
+/* GL_NV_fbo_color_attachments */
+#ifndef GL_NV_fbo_color_attachments
+#define GL_NV_fbo_color_attachments 1
+#endif
+
+/* GL_NV_fence */
+#ifndef GL_NV_fence
+#define GL_NV_fence 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei n, const GLuint *fences);
+GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei n, GLuint *fences);
+GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint fence);
+GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint fence);
+GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint fence);
+GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint fence, GLenum condition);
+#endif
+typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
+typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
+typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
+typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
+typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
+typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
+#endif
+
+/* GL_NV_framebuffer_blit */
+#ifndef GL_NV_framebuffer_blit
+#define GL_NV_framebuffer_blit 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBlitFramebufferNV (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#endif
+typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFERNVPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#endif
+
+/* GL_NV_framebuffer_multisample */
+#ifndef GL_NV_framebuffer_multisample
+#define GL_NV_framebuffer_multisample 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleNV ( GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLENVPROC) ( GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+
+/* GL_NV_generate_mipmap_sRGB */
+#ifndef GL_NV_generate_mipmap_sRGB
+#define GL_NV_generate_mipmap_sRGB 1
+#endif
+
+/* GL_NV_instanced_arrays */
+#ifndef GL_NV_instanced_arrays
+#define GL_NV_instanced_arrays 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glVertexAttribDivisorNV (GLuint index, GLuint divisor);
+#endif
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORNVPROC) (GLuint index, GLuint divisor);
+#endif
+
+/* GL_NV_read_buffer */
+#ifndef GL_NV_read_buffer
+#define GL_NV_read_buffer 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glReadBufferNV (GLenum mode);
+#endif
+typedef void (GL_APIENTRYP PFNGLREADBUFFERNVPROC) (GLenum mode);
+#endif
+
+/* GL_NV_read_buffer_front */
+#ifndef GL_NV_read_buffer_front
+#define GL_NV_read_buffer_front 1
+#endif
+
+/* GL_NV_read_depth */
+#ifndef GL_NV_read_depth
+#define GL_NV_read_depth 1
+#endif
+
+/* GL_NV_read_depth_stencil */
+#ifndef GL_NV_read_depth_stencil
+#define GL_NV_read_depth_stencil 1
+#endif
+
+/* GL_NV_read_stencil */
+#ifndef GL_NV_read_stencil
+#define GL_NV_read_stencil 1
+#endif
+
+/* GL_NV_shadow_samplers_array */
+#ifndef GL_NV_shadow_samplers_array
+#define GL_NV_shadow_samplers_array 1
+#endif
+
+/* GL_NV_shadow_samplers_cube */
+#ifndef GL_NV_shadow_samplers_cube
+#define GL_NV_shadow_samplers_cube 1
+#endif
+
+/* GL_NV_sRGB_formats */
+#ifndef GL_NV_sRGB_formats
+#define GL_NV_sRGB_formats 1
+#endif
+
+/* GL_NV_texture_border_clamp */
+#ifndef GL_NV_texture_border_clamp
+#define GL_NV_texture_border_clamp 1
+#endif
+
+/* GL_NV_texture_compression_s3tc_update */
+#ifndef GL_NV_texture_compression_s3tc_update
+#define GL_NV_texture_compression_s3tc_update 1
+#endif
+
+/* GL_NV_texture_npot_2D_mipmap */
+#ifndef GL_NV_texture_npot_2D_mipmap
+#define GL_NV_texture_npot_2D_mipmap 1
+#endif
+
+/*------------------------------------------------------------------------*
+ * QCOM extension functions
+ *------------------------------------------------------------------------*/
+
+/* GL_QCOM_alpha_test */
+#ifndef GL_QCOM_alpha_test
+#define GL_QCOM_alpha_test 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glAlphaFuncQCOM (GLenum func, GLclampf ref);
+#endif
+typedef void (GL_APIENTRYP PFNGLALPHAFUNCQCOMPROC) (GLenum func, GLclampf ref);
+#endif
+
+/* GL_QCOM_binning_control */
+#ifndef GL_QCOM_binning_control
+#define GL_QCOM_binning_control 1
+#endif
+
+/* GL_QCOM_driver_control */
+#ifndef GL_QCOM_driver_control
+#define GL_QCOM_driver_control 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);
+GL_APICALL void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
+GL_APICALL void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl);
+GL_APICALL void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl);
+#endif
+typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls);
+typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
+typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
+typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
+#endif
+
+/* GL_QCOM_extended_get */
+#ifndef GL_QCOM_extended_get
+#define GL_QCOM_extended_get 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures);
+GL_APICALL void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
+GL_APICALL void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
+GL_APICALL void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
+GL_APICALL void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param);
+GL_APICALL void GL_APIENTRY glExtGetTexSubImageQCOM (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels);
+GL_APICALL void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, GLvoid **params);
+#endif
+typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures);
+typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
+typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
+typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
+typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (GL_APIENTRYP PFNGLEXTGETTEXSUBIMAGEQCOMPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels);
+typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, GLvoid **params);
+#endif
+
+/* GL_QCOM_extended_get2 */
+#ifndef GL_QCOM_extended_get2
+#define GL_QCOM_extended_get2 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders);
+GL_APICALL void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
+GL_APICALL GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
+GL_APICALL void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
+#endif
+typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders);
+typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
+typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
+typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
+#endif
+
+/* GL_QCOM_perfmon_global_mode */
+#ifndef GL_QCOM_perfmon_global_mode
+#define GL_QCOM_perfmon_global_mode 1
+#endif
+
+/* GL_QCOM_writeonly_rendering */
+#ifndef GL_QCOM_writeonly_rendering
+#define GL_QCOM_writeonly_rendering 1
+#endif
+
+/* GL_QCOM_tiled_rendering */
+#ifndef GL_QCOM_tiled_rendering
+#define GL_QCOM_tiled_rendering 1
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
+GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
+#endif
+typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
+typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
+#endif
+
+/*------------------------------------------------------------------------*
+ * VIV extension tokens
+ *------------------------------------------------------------------------*/
+
+/* GL_VIV_shader_binary */
+#ifndef GL_VIV_shader_binary
+#define GL_VIV_shader_binary 1
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __gl2ext_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_gl2platform.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_gl2platform.h
new file mode 100644
index 0000000..c325686
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_gl2platform.h
@@ -0,0 +1,30 @@
+#ifndef __gl2platform_h_
+#define __gl2platform_h_
+
+/* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */
+
+/*
+ * This document is licensed under the SGI Free Software B License Version
+ * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
+ */
+
+/* Platform-specific types and definitions for OpenGL ES 2.X  gl2.h
+ *
+ * Adopters may modify khrplatform.h and this file to suit their platform.
+ * You are encouraged to submit all modifications to the Khronos group so that
+ * they can be included in future versions of this file.  Please submit changes
+ * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
+ * by filing a bug against product "OpenGL-ES" component "Registry".
+ */
+
+/*#include <KHR/khrplatform.h>*/
+
+#ifndef GL_APICALL
+#define GL_APICALL  KHRONOS_APICALL
+#endif
+
+#ifndef GL_APIENTRY
+#define GL_APIENTRY KHRONOS_APIENTRY
+#endif
+
+#endif /* __gl2platform_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_khrplatform.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_khrplatform.h
new file mode 100644
index 0000000..c9e6f17
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_opengles2_khrplatform.h
@@ -0,0 +1,282 @@
+#ifndef __khrplatform_h_
+#define __khrplatform_h_
+
+/*
+** Copyright (c) 2008-2009 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+
+/* Khronos platform-specific types and definitions.
+ *
+ * $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $
+ *
+ * Adopters may modify this file to suit their platform. Adopters are
+ * encouraged to submit platform specific modifications to the Khronos
+ * group so that they can be included in future versions of this file.
+ * Please submit changes by sending them to the public Khronos Bugzilla
+ * (http://khronos.org/bugzilla) by filing a bug against product
+ * "Khronos (general)" component "Registry".
+ *
+ * A predefined template which fills in some of the bug fields can be
+ * reached using http://tinyurl.com/khrplatform-h-bugreport, but you
+ * must create a Bugzilla login first.
+ *
+ *
+ * See the Implementer's Guidelines for information about where this file
+ * should be located on your system and for more details of its use:
+ *    http://www.khronos.org/registry/implementers_guide.pdf
+ *
+ * This file should be included as
+ *        #include <KHR/khrplatform.h>
+ * by Khronos client API header files that use its types and defines.
+ *
+ * The types in khrplatform.h should only be used to define API-specific types.
+ *
+ * Types defined in khrplatform.h:
+ *    khronos_int8_t              signed   8  bit
+ *    khronos_uint8_t             unsigned 8  bit
+ *    khronos_int16_t             signed   16 bit
+ *    khronos_uint16_t            unsigned 16 bit
+ *    khronos_int32_t             signed   32 bit
+ *    khronos_uint32_t            unsigned 32 bit
+ *    khronos_int64_t             signed   64 bit
+ *    khronos_uint64_t            unsigned 64 bit
+ *    khronos_intptr_t            signed   same number of bits as a pointer
+ *    khronos_uintptr_t           unsigned same number of bits as a pointer
+ *    khronos_ssize_t             signed   size
+ *    khronos_usize_t             unsigned size
+ *    khronos_float_t             signed   32 bit floating point
+ *    khronos_time_ns_t           unsigned 64 bit time in nanoseconds
+ *    khronos_utime_nanoseconds_t unsigned time interval or absolute time in
+ *                                         nanoseconds
+ *    khronos_stime_nanoseconds_t signed time interval in nanoseconds
+ *    khronos_boolean_enum_t      enumerated boolean type. This should
+ *      only be used as a base type when a client API's boolean type is
+ *      an enum. Client APIs which use an integer or other type for
+ *      booleans cannot use this as the base type for their boolean.
+ *
+ * Tokens defined in khrplatform.h:
+ *
+ *    KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
+ *
+ *    KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
+ *    KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
+ *
+ * Calling convention macros defined in this file:
+ *    KHRONOS_APICALL
+ *    KHRONOS_APIENTRY
+ *    KHRONOS_APIATTRIBUTES
+ *
+ * These may be used in function prototypes as:
+ *
+ *      KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
+ *                                  int arg1,
+ *                                  int arg2) KHRONOS_APIATTRIBUTES;
+ */
+
+/*-------------------------------------------------------------------------
+ * Definition of KHRONOS_APICALL
+ *-------------------------------------------------------------------------
+ * This precedes the return type of the function in the function prototype.
+ */
+#if defined(_WIN32) && !defined(__SCITECH_SNAP__)
+#   define KHRONOS_APICALL __declspec(dllimport)
+#elif defined (__SYMBIAN32__)
+#   define KHRONOS_APICALL IMPORT_C
+#else
+#   define KHRONOS_APICALL
+#endif
+
+/*-------------------------------------------------------------------------
+ * Definition of KHRONOS_APIENTRY
+ *-------------------------------------------------------------------------
+ * This follows the return type of the function  and precedes the function
+ * name in the function prototype.
+ */
+#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
+    /* Win32 but not WinCE */
+#   define KHRONOS_APIENTRY __stdcall
+#else
+#   define KHRONOS_APIENTRY
+#endif
+
+/*-------------------------------------------------------------------------
+ * Definition of KHRONOS_APIATTRIBUTES
+ *-------------------------------------------------------------------------
+ * This follows the closing parenthesis of the function prototype arguments.
+ */
+#if defined (__ARMCC_2__)
+#define KHRONOS_APIATTRIBUTES __softfp
+#else
+#define KHRONOS_APIATTRIBUTES
+#endif
+
+/*-------------------------------------------------------------------------
+ * basic type definitions
+ *-----------------------------------------------------------------------*/
+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
+
+
+/*
+ * Using <stdint.h>
+ */
+#include <stdint.h>
+typedef int32_t                 khronos_int32_t;
+typedef uint32_t                khronos_uint32_t;
+typedef int64_t                 khronos_int64_t;
+typedef uint64_t                khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64   1
+#define KHRONOS_SUPPORT_FLOAT   1
+
+#elif defined(__VMS ) || defined(__sgi)
+
+/*
+ * Using <inttypes.h>
+ */
+#include <inttypes.h>
+typedef int32_t                 khronos_int32_t;
+typedef uint32_t                khronos_uint32_t;
+typedef int64_t                 khronos_int64_t;
+typedef uint64_t                khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64   1
+#define KHRONOS_SUPPORT_FLOAT   1
+
+#elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
+
+/*
+ * Win32
+ */
+typedef __int32                 khronos_int32_t;
+typedef unsigned __int32        khronos_uint32_t;
+typedef __int64                 khronos_int64_t;
+typedef unsigned __int64        khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64   1
+#define KHRONOS_SUPPORT_FLOAT   1
+
+#elif defined(__sun__) || defined(__digital__)
+
+/*
+ * Sun or Digital
+ */
+typedef int                     khronos_int32_t;
+typedef unsigned int            khronos_uint32_t;
+#if defined(__arch64__) || defined(_LP64)
+typedef long int                khronos_int64_t;
+typedef unsigned long int       khronos_uint64_t;
+#else
+typedef long long int           khronos_int64_t;
+typedef unsigned long long int  khronos_uint64_t;
+#endif /* __arch64__ */
+#define KHRONOS_SUPPORT_INT64   1
+#define KHRONOS_SUPPORT_FLOAT   1
+
+#elif 0
+
+/*
+ * Hypothetical platform with no float or int64 support
+ */
+typedef int                     khronos_int32_t;
+typedef unsigned int            khronos_uint32_t;
+#define KHRONOS_SUPPORT_INT64   0
+#define KHRONOS_SUPPORT_FLOAT   0
+
+#else
+
+/*
+ * Generic fallback
+ */
+#include <stdint.h>
+typedef int32_t                 khronos_int32_t;
+typedef uint32_t                khronos_uint32_t;
+typedef int64_t                 khronos_int64_t;
+typedef uint64_t                khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64   1
+#define KHRONOS_SUPPORT_FLOAT   1
+
+#endif
+
+
+/*
+ * Types that are (so far) the same on all platforms
+ */
+typedef signed   char          khronos_int8_t;
+typedef unsigned char          khronos_uint8_t;
+typedef signed   short int     khronos_int16_t;
+typedef unsigned short int     khronos_uint16_t;
+
+/*
+ * Types that differ between LLP64 and LP64 architectures - in LLP64, 
+ * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
+ * to be the only LLP64 architecture in current use.
+ */
+#ifdef _WIN64
+typedef signed   long long int khronos_intptr_t;
+typedef unsigned long long int khronos_uintptr_t;
+typedef signed   long long int khronos_ssize_t;
+typedef unsigned long long int khronos_usize_t;
+#else
+typedef signed   long  int     khronos_intptr_t;
+typedef unsigned long  int     khronos_uintptr_t;
+typedef signed   long  int     khronos_ssize_t;
+typedef unsigned long  int     khronos_usize_t;
+#endif
+
+#if KHRONOS_SUPPORT_FLOAT
+/*
+ * Float type
+ */
+typedef          float         khronos_float_t;
+#endif
+
+#if KHRONOS_SUPPORT_INT64
+/* Time types
+ *
+ * These types can be used to represent a time interval in nanoseconds or
+ * an absolute Unadjusted System Time.  Unadjusted System Time is the number
+ * of nanoseconds since some arbitrary system event (e.g. since the last
+ * time the system booted).  The Unadjusted System Time is an unsigned
+ * 64 bit value that wraps back to 0 every 584 years.  Time intervals
+ * may be either signed or unsigned.
+ */
+typedef khronos_uint64_t       khronos_utime_nanoseconds_t;
+typedef khronos_int64_t        khronos_stime_nanoseconds_t;
+#endif
+
+/*
+ * Dummy value used to pad enum types to 32 bits.
+ */
+#ifndef KHRONOS_MAX_ENUM
+#define KHRONOS_MAX_ENUM 0x7FFFFFFF
+#endif
+
+/*
+ * Enumerated boolean type
+ *
+ * Values other than zero should be considered to be true.  Therefore
+ * comparisons should not be made against KHRONOS_TRUE.
+ */
+typedef enum {
+    KHRONOS_FALSE = 0,
+    KHRONOS_TRUE  = 1,
+    KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
+} khronos_boolean_enum_t;
+
+#endif /* __khrplatform_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_pixels.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_pixels.h
new file mode 100644
index 0000000..0b4364b
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_pixels.h
@@ -0,0 +1,470 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_pixels.h
+ *
+ *  Header for the enumerated pixel format definitions.
+ */
+
+#ifndef SDL_pixels_h_
+#define SDL_pixels_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_endian.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \name Transparency definitions
+ *
+ *  These define alpha as the opacity of a surface.
+ */
+/* @{ */
+#define SDL_ALPHA_OPAQUE 255
+#define SDL_ALPHA_TRANSPARENT 0
+/* @} */
+
+/** Pixel type. */
+enum
+{
+    SDL_PIXELTYPE_UNKNOWN,
+    SDL_PIXELTYPE_INDEX1,
+    SDL_PIXELTYPE_INDEX4,
+    SDL_PIXELTYPE_INDEX8,
+    SDL_PIXELTYPE_PACKED8,
+    SDL_PIXELTYPE_PACKED16,
+    SDL_PIXELTYPE_PACKED32,
+    SDL_PIXELTYPE_ARRAYU8,
+    SDL_PIXELTYPE_ARRAYU16,
+    SDL_PIXELTYPE_ARRAYU32,
+    SDL_PIXELTYPE_ARRAYF16,
+    SDL_PIXELTYPE_ARRAYF32
+};
+
+/** Bitmap pixel order, high bit -> low bit. */
+enum
+{
+    SDL_BITMAPORDER_NONE,
+    SDL_BITMAPORDER_4321,
+    SDL_BITMAPORDER_1234
+};
+
+/** Packed component order, high bit -> low bit. */
+enum
+{
+    SDL_PACKEDORDER_NONE,
+    SDL_PACKEDORDER_XRGB,
+    SDL_PACKEDORDER_RGBX,
+    SDL_PACKEDORDER_ARGB,
+    SDL_PACKEDORDER_RGBA,
+    SDL_PACKEDORDER_XBGR,
+    SDL_PACKEDORDER_BGRX,
+    SDL_PACKEDORDER_ABGR,
+    SDL_PACKEDORDER_BGRA
+};
+
+/** Array component order, low byte -> high byte. */
+/* !!! FIXME: in 2.1, make these not overlap differently with
+   !!! FIXME:  SDL_PACKEDORDER_*, so we can simplify SDL_ISPIXELFORMAT_ALPHA */
+enum
+{
+    SDL_ARRAYORDER_NONE,
+    SDL_ARRAYORDER_RGB,
+    SDL_ARRAYORDER_RGBA,
+    SDL_ARRAYORDER_ARGB,
+    SDL_ARRAYORDER_BGR,
+    SDL_ARRAYORDER_BGRA,
+    SDL_ARRAYORDER_ABGR
+};
+
+/** Packed component layout. */
+enum
+{
+    SDL_PACKEDLAYOUT_NONE,
+    SDL_PACKEDLAYOUT_332,
+    SDL_PACKEDLAYOUT_4444,
+    SDL_PACKEDLAYOUT_1555,
+    SDL_PACKEDLAYOUT_5551,
+    SDL_PACKEDLAYOUT_565,
+    SDL_PACKEDLAYOUT_8888,
+    SDL_PACKEDLAYOUT_2101010,
+    SDL_PACKEDLAYOUT_1010102
+};
+
+#define SDL_DEFINE_PIXELFOURCC(A, B, C, D) SDL_FOURCC(A, B, C, D)
+
+#define SDL_DEFINE_PIXELFORMAT(type, order, layout, bits, bytes) \
+    ((1 << 28) | ((type) << 24) | ((order) << 20) | ((layout) << 16) | \
+     ((bits) << 8) | ((bytes) << 0))
+
+#define SDL_PIXELFLAG(X)    (((X) >> 28) & 0x0F)
+#define SDL_PIXELTYPE(X)    (((X) >> 24) & 0x0F)
+#define SDL_PIXELORDER(X)   (((X) >> 20) & 0x0F)
+#define SDL_PIXELLAYOUT(X)  (((X) >> 16) & 0x0F)
+#define SDL_BITSPERPIXEL(X) (((X) >> 8) & 0xFF)
+#define SDL_BYTESPERPIXEL(X) \
+    (SDL_ISPIXELFORMAT_FOURCC(X) ? \
+        ((((X) == SDL_PIXELFORMAT_YUY2) || \
+          ((X) == SDL_PIXELFORMAT_UYVY) || \
+          ((X) == SDL_PIXELFORMAT_YVYU)) ? 2 : 1) : (((X) >> 0) & 0xFF))
+
+#define SDL_ISPIXELFORMAT_INDEXED(format)   \
+    (!SDL_ISPIXELFORMAT_FOURCC(format) && \
+     ((SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX1) || \
+      (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX4) || \
+      (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX8)))
+
+#define SDL_ISPIXELFORMAT_PACKED(format) \
+    (!SDL_ISPIXELFORMAT_FOURCC(format) && \
+     ((SDL_PIXELTYPE(format) == SDL_PIXELTYPE_PACKED8) || \
+      (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_PACKED16) || \
+      (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_PACKED32)))
+
+#define SDL_ISPIXELFORMAT_ARRAY(format) \
+    (!SDL_ISPIXELFORMAT_FOURCC(format) && \
+     ((SDL_PIXELTYPE(format) == SDL_PIXELTYPE_ARRAYU8) || \
+      (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_ARRAYU16) || \
+      (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_ARRAYU32) || \
+      (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_ARRAYF16) || \
+      (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_ARRAYF32)))
+
+#define SDL_ISPIXELFORMAT_ALPHA(format)   \
+    ((SDL_ISPIXELFORMAT_PACKED(format) && \
+     ((SDL_PIXELORDER(format) == SDL_PACKEDORDER_ARGB) || \
+      (SDL_PIXELORDER(format) == SDL_PACKEDORDER_RGBA) || \
+      (SDL_PIXELORDER(format) == SDL_PACKEDORDER_ABGR) || \
+      (SDL_PIXELORDER(format) == SDL_PACKEDORDER_BGRA))) || \
+    (SDL_ISPIXELFORMAT_ARRAY(format) && \
+     ((SDL_PIXELORDER(format) == SDL_ARRAYORDER_ARGB) || \
+      (SDL_PIXELORDER(format) == SDL_ARRAYORDER_RGBA) || \
+      (SDL_PIXELORDER(format) == SDL_ARRAYORDER_ABGR) || \
+      (SDL_PIXELORDER(format) == SDL_ARRAYORDER_BGRA))))
+
+/* The flag is set to 1 because 0x1? is not in the printable ASCII range */
+#define SDL_ISPIXELFORMAT_FOURCC(format)    \
+    ((format) && (SDL_PIXELFLAG(format) != 1))
+
+/* Note: If you modify this list, update SDL_GetPixelFormatName() */
+enum
+{
+    SDL_PIXELFORMAT_UNKNOWN,
+    SDL_PIXELFORMAT_INDEX1LSB =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_4321, 0,
+                               1, 0),
+    SDL_PIXELFORMAT_INDEX1MSB =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_1234, 0,
+                               1, 0),
+    SDL_PIXELFORMAT_INDEX4LSB =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_4321, 0,
+                               4, 0),
+    SDL_PIXELFORMAT_INDEX4MSB =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_1234, 0,
+                               4, 0),
+    SDL_PIXELFORMAT_INDEX8 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX8, 0, 0, 8, 1),
+    SDL_PIXELFORMAT_RGB332 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED8, SDL_PACKEDORDER_XRGB,
+                               SDL_PACKEDLAYOUT_332, 8, 1),
+    SDL_PIXELFORMAT_RGB444 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB,
+                               SDL_PACKEDLAYOUT_4444, 12, 2),
+    SDL_PIXELFORMAT_RGB555 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB,
+                               SDL_PACKEDLAYOUT_1555, 15, 2),
+    SDL_PIXELFORMAT_BGR555 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XBGR,
+                               SDL_PACKEDLAYOUT_1555, 15, 2),
+    SDL_PIXELFORMAT_ARGB4444 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ARGB,
+                               SDL_PACKEDLAYOUT_4444, 16, 2),
+    SDL_PIXELFORMAT_RGBA4444 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_RGBA,
+                               SDL_PACKEDLAYOUT_4444, 16, 2),
+    SDL_PIXELFORMAT_ABGR4444 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ABGR,
+                               SDL_PACKEDLAYOUT_4444, 16, 2),
+    SDL_PIXELFORMAT_BGRA4444 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_BGRA,
+                               SDL_PACKEDLAYOUT_4444, 16, 2),
+    SDL_PIXELFORMAT_ARGB1555 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ARGB,
+                               SDL_PACKEDLAYOUT_1555, 16, 2),
+    SDL_PIXELFORMAT_RGBA5551 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_RGBA,
+                               SDL_PACKEDLAYOUT_5551, 16, 2),
+    SDL_PIXELFORMAT_ABGR1555 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ABGR,
+                               SDL_PACKEDLAYOUT_1555, 16, 2),
+    SDL_PIXELFORMAT_BGRA5551 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_BGRA,
+                               SDL_PACKEDLAYOUT_5551, 16, 2),
+    SDL_PIXELFORMAT_RGB565 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB,
+                               SDL_PACKEDLAYOUT_565, 16, 2),
+    SDL_PIXELFORMAT_BGR565 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XBGR,
+                               SDL_PACKEDLAYOUT_565, 16, 2),
+    SDL_PIXELFORMAT_RGB24 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU8, SDL_ARRAYORDER_RGB, 0,
+                               24, 3),
+    SDL_PIXELFORMAT_BGR24 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU8, SDL_ARRAYORDER_BGR, 0,
+                               24, 3),
+    SDL_PIXELFORMAT_RGB888 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_XRGB,
+                               SDL_PACKEDLAYOUT_8888, 24, 4),
+    SDL_PIXELFORMAT_RGBX8888 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_RGBX,
+                               SDL_PACKEDLAYOUT_8888, 24, 4),
+    SDL_PIXELFORMAT_BGR888 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_XBGR,
+                               SDL_PACKEDLAYOUT_8888, 24, 4),
+    SDL_PIXELFORMAT_BGRX8888 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_BGRX,
+                               SDL_PACKEDLAYOUT_8888, 24, 4),
+    SDL_PIXELFORMAT_ARGB8888 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ARGB,
+                               SDL_PACKEDLAYOUT_8888, 32, 4),
+    SDL_PIXELFORMAT_RGBA8888 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_RGBA,
+                               SDL_PACKEDLAYOUT_8888, 32, 4),
+    SDL_PIXELFORMAT_ABGR8888 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ABGR,
+                               SDL_PACKEDLAYOUT_8888, 32, 4),
+    SDL_PIXELFORMAT_BGRA8888 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_BGRA,
+                               SDL_PACKEDLAYOUT_8888, 32, 4),
+    SDL_PIXELFORMAT_ARGB2101010 =
+        SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ARGB,
+                               SDL_PACKEDLAYOUT_2101010, 32, 4),
+
+    /* Aliases for RGBA byte arrays of color data, for the current platform */
+#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+    SDL_PIXELFORMAT_RGBA32 = SDL_PIXELFORMAT_RGBA8888,
+    SDL_PIXELFORMAT_ARGB32 = SDL_PIXELFORMAT_ARGB8888,
+    SDL_PIXELFORMAT_BGRA32 = SDL_PIXELFORMAT_BGRA8888,
+    SDL_PIXELFORMAT_ABGR32 = SDL_PIXELFORMAT_ABGR8888,
+#else
+    SDL_PIXELFORMAT_RGBA32 = SDL_PIXELFORMAT_ABGR8888,
+    SDL_PIXELFORMAT_ARGB32 = SDL_PIXELFORMAT_BGRA8888,
+    SDL_PIXELFORMAT_BGRA32 = SDL_PIXELFORMAT_ARGB8888,
+    SDL_PIXELFORMAT_ABGR32 = SDL_PIXELFORMAT_RGBA8888,
+#endif
+
+    SDL_PIXELFORMAT_YV12 =      /**< Planar mode: Y + V + U  (3 planes) */
+        SDL_DEFINE_PIXELFOURCC('Y', 'V', '1', '2'),
+    SDL_PIXELFORMAT_IYUV =      /**< Planar mode: Y + U + V  (3 planes) */
+        SDL_DEFINE_PIXELFOURCC('I', 'Y', 'U', 'V'),
+    SDL_PIXELFORMAT_YUY2 =      /**< Packed mode: Y0+U0+Y1+V0 (1 plane) */
+        SDL_DEFINE_PIXELFOURCC('Y', 'U', 'Y', '2'),
+    SDL_PIXELFORMAT_UYVY =      /**< Packed mode: U0+Y0+V0+Y1 (1 plane) */
+        SDL_DEFINE_PIXELFOURCC('U', 'Y', 'V', 'Y'),
+    SDL_PIXELFORMAT_YVYU =      /**< Packed mode: Y0+V0+Y1+U0 (1 plane) */
+        SDL_DEFINE_PIXELFOURCC('Y', 'V', 'Y', 'U'),
+    SDL_PIXELFORMAT_NV12 =      /**< Planar mode: Y + U/V interleaved  (2 planes) */
+        SDL_DEFINE_PIXELFOURCC('N', 'V', '1', '2'),
+    SDL_PIXELFORMAT_NV21 =      /**< Planar mode: Y + V/U interleaved  (2 planes) */
+        SDL_DEFINE_PIXELFOURCC('N', 'V', '2', '1'),
+    SDL_PIXELFORMAT_EXTERNAL_OES =      /**< Android video texture format */
+        SDL_DEFINE_PIXELFOURCC('O', 'E', 'S', ' ')
+};
+
+typedef struct SDL_Color
+{
+    Uint8 r;
+    Uint8 g;
+    Uint8 b;
+    Uint8 a;
+} SDL_Color;
+#define SDL_Colour SDL_Color
+
+typedef struct SDL_Palette
+{
+    int ncolors;
+    SDL_Color *colors;
+    Uint32 version;
+    int refcount;
+} SDL_Palette;
+
+/**
+ *  \note Everything in the pixel format structure is read-only.
+ */
+typedef struct SDL_PixelFormat
+{
+    Uint32 format;
+    SDL_Palette *palette;
+    Uint8 BitsPerPixel;
+    Uint8 BytesPerPixel;
+    Uint8 padding[2];
+    Uint32 Rmask;
+    Uint32 Gmask;
+    Uint32 Bmask;
+    Uint32 Amask;
+    Uint8 Rloss;
+    Uint8 Gloss;
+    Uint8 Bloss;
+    Uint8 Aloss;
+    Uint8 Rshift;
+    Uint8 Gshift;
+    Uint8 Bshift;
+    Uint8 Ashift;
+    int refcount;
+    struct SDL_PixelFormat *next;
+} SDL_PixelFormat;
+
+/**
+ * \brief Get the human readable name of a pixel format
+ */
+extern DECLSPEC const char* SDLCALL SDL_GetPixelFormatName(Uint32 format);
+
+/**
+ *  \brief Convert one of the enumerated pixel formats to a bpp and RGBA masks.
+ *
+ *  \return SDL_TRUE, or SDL_FALSE if the conversion wasn't possible.
+ *
+ *  \sa SDL_MasksToPixelFormatEnum()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_PixelFormatEnumToMasks(Uint32 format,
+                                                            int *bpp,
+                                                            Uint32 * Rmask,
+                                                            Uint32 * Gmask,
+                                                            Uint32 * Bmask,
+                                                            Uint32 * Amask);
+
+/**
+ *  \brief Convert a bpp and RGBA masks to an enumerated pixel format.
+ *
+ *  \return The pixel format, or ::SDL_PIXELFORMAT_UNKNOWN if the conversion
+ *          wasn't possible.
+ *
+ *  \sa SDL_PixelFormatEnumToMasks()
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_MasksToPixelFormatEnum(int bpp,
+                                                          Uint32 Rmask,
+                                                          Uint32 Gmask,
+                                                          Uint32 Bmask,
+                                                          Uint32 Amask);
+
+/**
+ *  \brief Create an SDL_PixelFormat structure from a pixel format enum.
+ */
+extern DECLSPEC SDL_PixelFormat * SDLCALL SDL_AllocFormat(Uint32 pixel_format);
+
+/**
+ *  \brief Free an SDL_PixelFormat structure.
+ */
+extern DECLSPEC void SDLCALL SDL_FreeFormat(SDL_PixelFormat *format);
+
+/**
+ *  \brief Create a palette structure with the specified number of color
+ *         entries.
+ *
+ *  \return A new palette, or NULL if there wasn't enough memory.
+ *
+ *  \note The palette entries are initialized to white.
+ *
+ *  \sa SDL_FreePalette()
+ */
+extern DECLSPEC SDL_Palette *SDLCALL SDL_AllocPalette(int ncolors);
+
+/**
+ *  \brief Set the palette for a pixel format structure.
+ */
+extern DECLSPEC int SDLCALL SDL_SetPixelFormatPalette(SDL_PixelFormat * format,
+                                                      SDL_Palette *palette);
+
+/**
+ *  \brief Set a range of colors in a palette.
+ *
+ *  \param palette    The palette to modify.
+ *  \param colors     An array of colors to copy into the palette.
+ *  \param firstcolor The index of the first palette entry to modify.
+ *  \param ncolors    The number of entries to modify.
+ *
+ *  \return 0 on success, or -1 if not all of the colors could be set.
+ */
+extern DECLSPEC int SDLCALL SDL_SetPaletteColors(SDL_Palette * palette,
+                                                 const SDL_Color * colors,
+                                                 int firstcolor, int ncolors);
+
+/**
+ *  \brief Free a palette created with SDL_AllocPalette().
+ *
+ *  \sa SDL_AllocPalette()
+ */
+extern DECLSPEC void SDLCALL SDL_FreePalette(SDL_Palette * palette);
+
+/**
+ *  \brief Maps an RGB triple to an opaque pixel value for a given pixel format.
+ *
+ *  \sa SDL_MapRGBA
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_MapRGB(const SDL_PixelFormat * format,
+                                          Uint8 r, Uint8 g, Uint8 b);
+
+/**
+ *  \brief Maps an RGBA quadruple to a pixel value for a given pixel format.
+ *
+ *  \sa SDL_MapRGB
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(const SDL_PixelFormat * format,
+                                           Uint8 r, Uint8 g, Uint8 b,
+                                           Uint8 a);
+
+/**
+ *  \brief Get the RGB components from a pixel of the specified format.
+ *
+ *  \sa SDL_GetRGBA
+ */
+extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel,
+                                        const SDL_PixelFormat * format,
+                                        Uint8 * r, Uint8 * g, Uint8 * b);
+
+/**
+ *  \brief Get the RGBA components from a pixel of the specified format.
+ *
+ *  \sa SDL_GetRGB
+ */
+extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel,
+                                         const SDL_PixelFormat * format,
+                                         Uint8 * r, Uint8 * g, Uint8 * b,
+                                         Uint8 * a);
+
+/**
+ *  \brief Calculate a 256 entry gamma ramp for a gamma value.
+ */
+extern DECLSPEC void SDLCALL SDL_CalculateGammaRamp(float gamma, Uint16 * ramp);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_pixels_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_platform.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_platform.h
new file mode 100644
index 0000000..7dea4ce
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_platform.h
@@ -0,0 +1,198 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_platform.h
+ *
+ *  Try to get a standard set of platform defines.
+ */
+
+#ifndef SDL_platform_h_
+#define SDL_platform_h_
+
+#if defined(_AIX)
+#undef __AIX__
+#define __AIX__     1
+#endif
+#if defined(__HAIKU__)
+#undef __HAIKU__
+#define __HAIKU__   1
+#endif
+#if defined(bsdi) || defined(__bsdi) || defined(__bsdi__)
+#undef __BSDI__
+#define __BSDI__    1
+#endif
+#if defined(_arch_dreamcast)
+#undef __DREAMCAST__
+#define __DREAMCAST__   1
+#endif
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
+#undef __FREEBSD__
+#define __FREEBSD__ 1
+#endif
+#if defined(hpux) || defined(__hpux) || defined(__hpux__)
+#undef __HPUX__
+#define __HPUX__    1
+#endif
+#if defined(sgi) || defined(__sgi) || defined(__sgi__) || defined(_SGI_SOURCE)
+#undef __IRIX__
+#define __IRIX__    1
+#endif
+#if (defined(linux) || defined(__linux) || defined(__linux__))
+#undef __LINUX__
+#define __LINUX__   1
+#endif
+#if defined(ANDROID) || defined(__ANDROID__)
+#undef __ANDROID__
+#undef __LINUX__ /* do we need to do this? */
+#define __ANDROID__ 1
+#endif
+
+#if defined(__APPLE__)
+/* lets us know what version of Mac OS X we're compiling on */
+#include "AvailabilityMacros.h"
+#include "TargetConditionals.h"
+#if TARGET_OS_TV
+#undef __TVOS__
+#define __TVOS__ 1
+#endif
+#if TARGET_OS_IPHONE
+/* if compiling for iOS */
+#undef __IPHONEOS__
+#define __IPHONEOS__ 1
+#undef __MACOSX__
+#else
+/* if not compiling for iOS */
+#undef __MACOSX__
+#define __MACOSX__  1
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
+# error SDL for Mac OS X only supports deploying on 10.6 and above.
+#endif /* MAC_OS_X_VERSION_MIN_REQUIRED < 1060 */
+#endif /* TARGET_OS_IPHONE */
+#endif /* defined(__APPLE__) */
+
+#if defined(__NetBSD__)
+#undef __NETBSD__
+#define __NETBSD__  1
+#endif
+#if defined(__OpenBSD__)
+#undef __OPENBSD__
+#define __OPENBSD__ 1
+#endif
+#if defined(__OS2__) || defined(__EMX__)
+#undef __OS2__
+#define __OS2__     1
+#endif
+#if defined(osf) || defined(__osf) || defined(__osf__) || defined(_OSF_SOURCE)
+#undef __OSF__
+#define __OSF__     1
+#endif
+#if defined(__QNXNTO__)
+#undef __QNXNTO__
+#define __QNXNTO__  1
+#endif
+#if defined(riscos) || defined(__riscos) || defined(__riscos__)
+#undef __RISCOS__
+#define __RISCOS__  1
+#endif
+#if defined(__sun) && defined(__SVR4)
+#undef __SOLARIS__
+#define __SOLARIS__ 1
+#endif
+
+#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
+/* Try to find out if we're compiling for WinRT or non-WinRT */
+#if defined(_MSC_VER) && defined(__has_include)
+#if __has_include(<winapifamily.h>)
+#define HAVE_WINAPIFAMILY_H 1
+#else
+#define HAVE_WINAPIFAMILY_H 0
+#endif
+
+/* If _USING_V110_SDK71_ is defined it means we are using the Windows XP toolset. */
+#elif defined(_MSC_VER) && (_MSC_VER >= 1700 && !_USING_V110_SDK71_)    /* _MSC_VER == 1700 for Visual Studio 2012 */
+#define HAVE_WINAPIFAMILY_H 1
+#else
+#define HAVE_WINAPIFAMILY_H 0
+#endif
+
+#if HAVE_WINAPIFAMILY_H
+#include <winapifamily.h>
+#define WINAPI_FAMILY_WINRT (!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP))
+#else
+#define WINAPI_FAMILY_WINRT 0
+#endif /* HAVE_WINAPIFAMILY_H */
+
+#if WINAPI_FAMILY_WINRT
+#undef __WINRT__
+#define __WINRT__ 1
+#else
+#undef __WINDOWS__
+#define __WINDOWS__ 1
+#endif
+#endif /* defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) */
+
+#if defined(__WINDOWS__)
+#undef __WIN32__
+#define __WIN32__ 1
+#endif
+#if defined(__PSP__)
+#undef __PSP__
+#define __PSP__ 1
+#endif
+
+/* The NACL compiler defines __native_client__ and __pnacl__
+ * Ref: http://www.chromium.org/nativeclient/pnacl/stability-of-the-pnacl-bitcode-abi
+ */
+#if defined(__native_client__)
+#undef __LINUX__
+#undef __NACL__
+#define __NACL__ 1
+#endif
+#if defined(__pnacl__)
+#undef __LINUX__
+#undef __PNACL__
+#define __PNACL__ 1
+/* PNACL with newlib supports static linking only */
+#define __SDL_NOGETPROCADDR__
+#endif
+
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \brief Gets the name of the platform.
+ */
+extern DECLSPEC const char * SDLCALL SDL_GetPlatform (void);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_platform_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_power.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_power.h
new file mode 100644
index 0000000..a4fe8a9
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_power.h
@@ -0,0 +1,75 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_power_h_
+#define SDL_power_h_
+
+/**
+ *  \file SDL_power.h
+ *
+ *  Header for the SDL power management routines.
+ */
+
+#include "SDL_stdinc.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \brief The basic state for the system's power supply.
+ */
+typedef enum
+{
+    SDL_POWERSTATE_UNKNOWN,      /**< cannot determine power status */
+    SDL_POWERSTATE_ON_BATTERY,   /**< Not plugged in, running on the battery */
+    SDL_POWERSTATE_NO_BATTERY,   /**< Plugged in, no battery available */
+    SDL_POWERSTATE_CHARGING,     /**< Plugged in, charging battery */
+    SDL_POWERSTATE_CHARGED       /**< Plugged in, battery charged */
+} SDL_PowerState;
+
+
+/**
+ *  \brief Get the current power supply details.
+ *
+ *  \param secs Seconds of battery life left. You can pass a NULL here if
+ *              you don't care. Will return -1 if we can't determine a
+ *              value, or we're not running on a battery.
+ *
+ *  \param pct Percentage of battery life left, between 0 and 100. You can
+ *             pass a NULL here if you don't care. Will return -1 if we
+ *             can't determine a value, or we're not running on a battery.
+ *
+ *  \return The state of the battery (if any).
+ */
+extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *secs, int *pct);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_power_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_quit.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_quit.h
new file mode 100644
index 0000000..fea56a8
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_quit.h
@@ -0,0 +1,58 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_quit.h
+ *
+ *  Include file for SDL quit event handling.
+ */
+
+#ifndef SDL_quit_h_
+#define SDL_quit_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+
+/**
+ *  \file SDL_quit.h
+ *
+ *  An ::SDL_QUIT event is generated when the user tries to close the application
+ *  window.  If it is ignored or filtered out, the window will remain open.
+ *  If it is not ignored or filtered, it is queued normally and the window
+ *  is allowed to close.  When the window is closed, screen updates will
+ *  complete, but have no effect.
+ *
+ *  SDL_Init() installs signal handlers for SIGINT (keyboard interrupt)
+ *  and SIGTERM (system termination request), if handlers do not already
+ *  exist, that generate ::SDL_QUIT events as well.  There is no way
+ *  to determine the cause of an ::SDL_QUIT event, but setting a signal
+ *  handler in your application will override the default generation of
+ *  quit events for that signal.
+ *
+ *  \sa SDL_Quit()
+ */
+
+/* There are no functions directly affecting the quit event */
+
+#define SDL_QuitRequested() \
+        (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0))
+
+#endif /* SDL_quit_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_rect.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_rect.h
new file mode 100644
index 0000000..543bb61
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_rect.h
@@ -0,0 +1,148 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_rect.h
+ *
+ *  Header file for SDL_rect definition and management functions.
+ */
+
+#ifndef SDL_rect_h_
+#define SDL_rect_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_pixels.h"
+#include "SDL_rwops.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \brief  The structure that defines a point
+ *
+ *  \sa SDL_EnclosePoints
+ *  \sa SDL_PointInRect
+ */
+typedef struct SDL_Point
+{
+    int x;
+    int y;
+} SDL_Point;
+
+/**
+ *  \brief A rectangle, with the origin at the upper left.
+ *
+ *  \sa SDL_RectEmpty
+ *  \sa SDL_RectEquals
+ *  \sa SDL_HasIntersection
+ *  \sa SDL_IntersectRect
+ *  \sa SDL_UnionRect
+ *  \sa SDL_EnclosePoints
+ */
+typedef struct SDL_Rect
+{
+    int x, y;
+    int w, h;
+} SDL_Rect;
+
+/**
+ *  \brief Returns true if point resides inside a rectangle.
+ */
+SDL_FORCE_INLINE SDL_bool SDL_PointInRect(const SDL_Point *p, const SDL_Rect *r)
+{
+    return ( (p->x >= r->x) && (p->x < (r->x + r->w)) &&
+             (p->y >= r->y) && (p->y < (r->y + r->h)) ) ? SDL_TRUE : SDL_FALSE;
+}
+
+/**
+ *  \brief Returns true if the rectangle has no area.
+ */
+SDL_FORCE_INLINE SDL_bool SDL_RectEmpty(const SDL_Rect *r)
+{
+    return ((!r) || (r->w <= 0) || (r->h <= 0)) ? SDL_TRUE : SDL_FALSE;
+}
+
+/**
+ *  \brief Returns true if the two rectangles are equal.
+ */
+SDL_FORCE_INLINE SDL_bool SDL_RectEquals(const SDL_Rect *a, const SDL_Rect *b)
+{
+    return (a && b && (a->x == b->x) && (a->y == b->y) &&
+            (a->w == b->w) && (a->h == b->h)) ? SDL_TRUE : SDL_FALSE;
+}
+
+/**
+ *  \brief Determine whether two rectangles intersect.
+ *
+ *  \return SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasIntersection(const SDL_Rect * A,
+                                                     const SDL_Rect * B);
+
+/**
+ *  \brief Calculate the intersection of two rectangles.
+ *
+ *  \return SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_IntersectRect(const SDL_Rect * A,
+                                                   const SDL_Rect * B,
+                                                   SDL_Rect * result);
+
+/**
+ *  \brief Calculate the union of two rectangles.
+ */
+extern DECLSPEC void SDLCALL SDL_UnionRect(const SDL_Rect * A,
+                                           const SDL_Rect * B,
+                                           SDL_Rect * result);
+
+/**
+ *  \brief Calculate a minimal rectangle enclosing a set of points
+ *
+ *  \return SDL_TRUE if any points were within the clipping rect
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_EnclosePoints(const SDL_Point * points,
+                                                   int count,
+                                                   const SDL_Rect * clip,
+                                                   SDL_Rect * result);
+
+/**
+ *  \brief Calculate the intersection of a rectangle and line segment.
+ *
+ *  \return SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_IntersectRectAndLine(const SDL_Rect *
+                                                          rect, int *X1,
+                                                          int *Y1, int *X2,
+                                                          int *Y2);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_rect_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_render.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_render.h
new file mode 100644
index 0000000..d336192
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_render.h
@@ -0,0 +1,931 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_render.h
+ *
+ *  Header file for SDL 2D rendering functions.
+ *
+ *  This API supports the following features:
+ *      * single pixel points
+ *      * single pixel lines
+ *      * filled rectangles
+ *      * texture images
+ *
+ *  The primitives may be drawn in opaque, blended, or additive modes.
+ *
+ *  The texture images may be drawn in opaque, blended, or additive modes.
+ *  They can have an additional color tint or alpha modulation applied to
+ *  them, and may also be stretched with linear interpolation.
+ *
+ *  This API is designed to accelerate simple 2D operations. You may
+ *  want more functionality such as polygons and particle effects and
+ *  in that case you should use SDL's OpenGL/Direct3D support or one
+ *  of the many good 3D engines.
+ *
+ *  These functions must be called from the main thread.
+ *  See this bug for details: http://bugzilla.libsdl.org/show_bug.cgi?id=1995
+ */
+
+#ifndef SDL_render_h_
+#define SDL_render_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_rect.h"
+#include "SDL_video.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \brief Flags used when creating a rendering context
+ */
+typedef enum
+{
+    SDL_RENDERER_SOFTWARE = 0x00000001,         /**< The renderer is a software fallback */
+    SDL_RENDERER_ACCELERATED = 0x00000002,      /**< The renderer uses hardware
+                                                     acceleration */
+    SDL_RENDERER_PRESENTVSYNC = 0x00000004,     /**< Present is synchronized
+                                                     with the refresh rate */
+    SDL_RENDERER_TARGETTEXTURE = 0x00000008     /**< The renderer supports
+                                                     rendering to texture */
+} SDL_RendererFlags;
+
+/**
+ *  \brief Information on the capabilities of a render driver or context.
+ */
+typedef struct SDL_RendererInfo
+{
+    const char *name;           /**< The name of the renderer */
+    Uint32 flags;               /**< Supported ::SDL_RendererFlags */
+    Uint32 num_texture_formats; /**< The number of available texture formats */
+    Uint32 texture_formats[16]; /**< The available texture formats */
+    int max_texture_width;      /**< The maximum texture width */
+    int max_texture_height;     /**< The maximum texture height */
+} SDL_RendererInfo;
+
+/**
+ *  \brief The access pattern allowed for a texture.
+ */
+typedef enum
+{
+    SDL_TEXTUREACCESS_STATIC,    /**< Changes rarely, not lockable */
+    SDL_TEXTUREACCESS_STREAMING, /**< Changes frequently, lockable */
+    SDL_TEXTUREACCESS_TARGET     /**< Texture can be used as a render target */
+} SDL_TextureAccess;
+
+/**
+ *  \brief The texture channel modulation used in SDL_RenderCopy().
+ */
+typedef enum
+{
+    SDL_TEXTUREMODULATE_NONE = 0x00000000,     /**< No modulation */
+    SDL_TEXTUREMODULATE_COLOR = 0x00000001,    /**< srcC = srcC * color */
+    SDL_TEXTUREMODULATE_ALPHA = 0x00000002     /**< srcA = srcA * alpha */
+} SDL_TextureModulate;
+
+/**
+ *  \brief Flip constants for SDL_RenderCopyEx
+ */
+typedef enum
+{
+    SDL_FLIP_NONE = 0x00000000,     /**< Do not flip */
+    SDL_FLIP_HORIZONTAL = 0x00000001,    /**< flip horizontally */
+    SDL_FLIP_VERTICAL = 0x00000002     /**< flip vertically */
+} SDL_RendererFlip;
+
+/**
+ *  \brief A structure representing rendering state
+ */
+struct SDL_Renderer;
+typedef struct SDL_Renderer SDL_Renderer;
+
+/**
+ *  \brief An efficient driver-specific representation of pixel data
+ */
+struct SDL_Texture;
+typedef struct SDL_Texture SDL_Texture;
+
+
+/* Function prototypes */
+
+/**
+ *  \brief Get the number of 2D rendering drivers available for the current
+ *         display.
+ *
+ *  A render driver is a set of code that handles rendering and texture
+ *  management on a particular display.  Normally there is only one, but
+ *  some drivers may have several available with different capabilities.
+ *
+ *  \sa SDL_GetRenderDriverInfo()
+ *  \sa SDL_CreateRenderer()
+ */
+extern DECLSPEC int SDLCALL SDL_GetNumRenderDrivers(void);
+
+/**
+ *  \brief Get information about a specific 2D rendering driver for the current
+ *         display.
+ *
+ *  \param index The index of the driver to query information about.
+ *  \param info  A pointer to an SDL_RendererInfo struct to be filled with
+ *               information on the rendering driver.
+ *
+ *  \return 0 on success, -1 if the index was out of range.
+ *
+ *  \sa SDL_CreateRenderer()
+ */
+extern DECLSPEC int SDLCALL SDL_GetRenderDriverInfo(int index,
+                                                    SDL_RendererInfo * info);
+
+/**
+ *  \brief Create a window and default renderer
+ *
+ *  \param width    The width of the window
+ *  \param height   The height of the window
+ *  \param window_flags The flags used to create the window
+ *  \param window   A pointer filled with the window, or NULL on error
+ *  \param renderer A pointer filled with the renderer, or NULL on error
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_CreateWindowAndRenderer(
+                                int width, int height, Uint32 window_flags,
+                                SDL_Window **window, SDL_Renderer **renderer);
+
+
+/**
+ *  \brief Create a 2D rendering context for a window.
+ *
+ *  \param window The window where rendering is displayed.
+ *  \param index    The index of the rendering driver to initialize, or -1 to
+ *                  initialize the first one supporting the requested flags.
+ *  \param flags    ::SDL_RendererFlags.
+ *
+ *  \return A valid rendering context or NULL if there was an error.
+ *
+ *  \sa SDL_CreateSoftwareRenderer()
+ *  \sa SDL_GetRendererInfo()
+ *  \sa SDL_DestroyRenderer()
+ */
+extern DECLSPEC SDL_Renderer * SDLCALL SDL_CreateRenderer(SDL_Window * window,
+                                               int index, Uint32 flags);
+
+/**
+ *  \brief Create a 2D software rendering context for a surface.
+ *
+ *  \param surface The surface where rendering is done.
+ *
+ *  \return A valid rendering context or NULL if there was an error.
+ *
+ *  \sa SDL_CreateRenderer()
+ *  \sa SDL_DestroyRenderer()
+ */
+extern DECLSPEC SDL_Renderer * SDLCALL SDL_CreateSoftwareRenderer(SDL_Surface * surface);
+
+/**
+ *  \brief Get the renderer associated with a window.
+ */
+extern DECLSPEC SDL_Renderer * SDLCALL SDL_GetRenderer(SDL_Window * window);
+
+/**
+ *  \brief Get information about a rendering context.
+ */
+extern DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer * renderer,
+                                                SDL_RendererInfo * info);
+
+/**
+ *  \brief Get the output size in pixels of a rendering context.
+ */
+extern DECLSPEC int SDLCALL SDL_GetRendererOutputSize(SDL_Renderer * renderer,
+                                                      int *w, int *h);
+
+/**
+ *  \brief Create a texture for a rendering context.
+ *
+ *  \param renderer The renderer.
+ *  \param format The format of the texture.
+ *  \param access One of the enumerated values in ::SDL_TextureAccess.
+ *  \param w      The width of the texture in pixels.
+ *  \param h      The height of the texture in pixels.
+ *
+ *  \return The created texture is returned, or NULL if no rendering context was
+ *          active,  the format was unsupported, or the width or height were out
+ *          of range.
+ *
+ *  \note The contents of the texture are not defined at creation.
+ *
+ *  \sa SDL_QueryTexture()
+ *  \sa SDL_UpdateTexture()
+ *  \sa SDL_DestroyTexture()
+ */
+extern DECLSPEC SDL_Texture * SDLCALL SDL_CreateTexture(SDL_Renderer * renderer,
+                                                        Uint32 format,
+                                                        int access, int w,
+                                                        int h);
+
+/**
+ *  \brief Create a texture from an existing surface.
+ *
+ *  \param renderer The renderer.
+ *  \param surface The surface containing pixel data used to fill the texture.
+ *
+ *  \return The created texture is returned, or NULL on error.
+ *
+ *  \note The surface is not modified or freed by this function.
+ *
+ *  \sa SDL_QueryTexture()
+ *  \sa SDL_DestroyTexture()
+ */
+extern DECLSPEC SDL_Texture * SDLCALL SDL_CreateTextureFromSurface(SDL_Renderer * renderer, SDL_Surface * surface);
+
+/**
+ *  \brief Query the attributes of a texture
+ *
+ *  \param texture A texture to be queried.
+ *  \param format  A pointer filled in with the raw format of the texture.  The
+ *                 actual format may differ, but pixel transfers will use this
+ *                 format.
+ *  \param access  A pointer filled in with the actual access to the texture.
+ *  \param w       A pointer filled in with the width of the texture in pixels.
+ *  \param h       A pointer filled in with the height of the texture in pixels.
+ *
+ *  \return 0 on success, or -1 if the texture is not valid.
+ */
+extern DECLSPEC int SDLCALL SDL_QueryTexture(SDL_Texture * texture,
+                                             Uint32 * format, int *access,
+                                             int *w, int *h);
+
+/**
+ *  \brief Set an additional color value used in render copy operations.
+ *
+ *  \param texture The texture to update.
+ *  \param r       The red color value multiplied into copy operations.
+ *  \param g       The green color value multiplied into copy operations.
+ *  \param b       The blue color value multiplied into copy operations.
+ *
+ *  \return 0 on success, or -1 if the texture is not valid or color modulation
+ *          is not supported.
+ *
+ *  \sa SDL_GetTextureColorMod()
+ */
+extern DECLSPEC int SDLCALL SDL_SetTextureColorMod(SDL_Texture * texture,
+                                                   Uint8 r, Uint8 g, Uint8 b);
+
+
+/**
+ *  \brief Get the additional color value used in render copy operations.
+ *
+ *  \param texture The texture to query.
+ *  \param r         A pointer filled in with the current red color value.
+ *  \param g         A pointer filled in with the current green color value.
+ *  \param b         A pointer filled in with the current blue color value.
+ *
+ *  \return 0 on success, or -1 if the texture is not valid.
+ *
+ *  \sa SDL_SetTextureColorMod()
+ */
+extern DECLSPEC int SDLCALL SDL_GetTextureColorMod(SDL_Texture * texture,
+                                                   Uint8 * r, Uint8 * g,
+                                                   Uint8 * b);
+
+/**
+ *  \brief Set an additional alpha value used in render copy operations.
+ *
+ *  \param texture The texture to update.
+ *  \param alpha     The alpha value multiplied into copy operations.
+ *
+ *  \return 0 on success, or -1 if the texture is not valid or alpha modulation
+ *          is not supported.
+ *
+ *  \sa SDL_GetTextureAlphaMod()
+ */
+extern DECLSPEC int SDLCALL SDL_SetTextureAlphaMod(SDL_Texture * texture,
+                                                   Uint8 alpha);
+
+/**
+ *  \brief Get the additional alpha value used in render copy operations.
+ *
+ *  \param texture The texture to query.
+ *  \param alpha     A pointer filled in with the current alpha value.
+ *
+ *  \return 0 on success, or -1 if the texture is not valid.
+ *
+ *  \sa SDL_SetTextureAlphaMod()
+ */
+extern DECLSPEC int SDLCALL SDL_GetTextureAlphaMod(SDL_Texture * texture,
+                                                   Uint8 * alpha);
+
+/**
+ *  \brief Set the blend mode used for texture copy operations.
+ *
+ *  \param texture The texture to update.
+ *  \param blendMode ::SDL_BlendMode to use for texture blending.
+ *
+ *  \return 0 on success, or -1 if the texture is not valid or the blend mode is
+ *          not supported.
+ *
+ *  \note If the blend mode is not supported, the closest supported mode is
+ *        chosen.
+ *
+ *  \sa SDL_GetTextureBlendMode()
+ */
+extern DECLSPEC int SDLCALL SDL_SetTextureBlendMode(SDL_Texture * texture,
+                                                    SDL_BlendMode blendMode);
+
+/**
+ *  \brief Get the blend mode used for texture copy operations.
+ *
+ *  \param texture   The texture to query.
+ *  \param blendMode A pointer filled in with the current blend mode.
+ *
+ *  \return 0 on success, or -1 if the texture is not valid.
+ *
+ *  \sa SDL_SetTextureBlendMode()
+ */
+extern DECLSPEC int SDLCALL SDL_GetTextureBlendMode(SDL_Texture * texture,
+                                                    SDL_BlendMode *blendMode);
+
+/**
+ *  \brief Update the given texture rectangle with new pixel data.
+ *
+ *  \param texture   The texture to update
+ *  \param rect      A pointer to the rectangle of pixels to update, or NULL to
+ *                   update the entire texture.
+ *  \param pixels    The raw pixel data in the format of the texture.
+ *  \param pitch     The number of bytes in a row of pixel data, including padding between lines.
+ *
+ *  The pixel data must be in the format of the texture. The pixel format can be
+ *  queried with SDL_QueryTexture.
+ *
+ *  \return 0 on success, or -1 if the texture is not valid.
+ *
+ *  \note This is a fairly slow function.
+ */
+extern DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture * texture,
+                                              const SDL_Rect * rect,
+                                              const void *pixels, int pitch);
+
+/**
+ *  \brief Update a rectangle within a planar YV12 or IYUV texture with new pixel data.
+ *
+ *  \param texture   The texture to update
+ *  \param rect      A pointer to the rectangle of pixels to update, or NULL to
+ *                   update the entire texture.
+ *  \param Yplane    The raw pixel data for the Y plane.
+ *  \param Ypitch    The number of bytes between rows of pixel data for the Y plane.
+ *  \param Uplane    The raw pixel data for the U plane.
+ *  \param Upitch    The number of bytes between rows of pixel data for the U plane.
+ *  \param Vplane    The raw pixel data for the V plane.
+ *  \param Vpitch    The number of bytes between rows of pixel data for the V plane.
+ *
+ *  \return 0 on success, or -1 if the texture is not valid.
+ *
+ *  \note You can use SDL_UpdateTexture() as long as your pixel data is
+ *        a contiguous block of Y and U/V planes in the proper order, but
+ *        this function is available if your pixel data is not contiguous.
+ */
+extern DECLSPEC int SDLCALL SDL_UpdateYUVTexture(SDL_Texture * texture,
+                                                 const SDL_Rect * rect,
+                                                 const Uint8 *Yplane, int Ypitch,
+                                                 const Uint8 *Uplane, int Upitch,
+                                                 const Uint8 *Vplane, int Vpitch);
+
+/**
+ *  \brief Lock a portion of the texture for write-only pixel access.
+ *
+ *  \param texture   The texture to lock for access, which was created with
+ *                   ::SDL_TEXTUREACCESS_STREAMING.
+ *  \param rect      A pointer to the rectangle to lock for access. If the rect
+ *                   is NULL, the entire texture will be locked.
+ *  \param pixels    This is filled in with a pointer to the locked pixels,
+ *                   appropriately offset by the locked area.
+ *  \param pitch     This is filled in with the pitch of the locked pixels.
+ *
+ *  \return 0 on success, or -1 if the texture is not valid or was not created with ::SDL_TEXTUREACCESS_STREAMING.
+ *
+ *  \sa SDL_UnlockTexture()
+ */
+extern DECLSPEC int SDLCALL SDL_LockTexture(SDL_Texture * texture,
+                                            const SDL_Rect * rect,
+                                            void **pixels, int *pitch);
+
+/**
+ *  \brief Unlock a texture, uploading the changes to video memory, if needed.
+ *
+ *  \sa SDL_LockTexture()
+ */
+extern DECLSPEC void SDLCALL SDL_UnlockTexture(SDL_Texture * texture);
+
+/**
+ * \brief Determines whether a window supports the use of render targets
+ *
+ * \param renderer The renderer that will be checked
+ *
+ * \return SDL_TRUE if supported, SDL_FALSE if not.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *renderer);
+
+/**
+ * \brief Set a texture as the current rendering target.
+ *
+ * \param renderer The renderer.
+ * \param texture The targeted texture, which must be created with the SDL_TEXTUREACCESS_TARGET flag, or NULL for the default render target
+ *
+ * \return 0 on success, or -1 on error
+ *
+ *  \sa SDL_GetRenderTarget()
+ */
+extern DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer,
+                                                SDL_Texture *texture);
+
+/**
+ * \brief Get the current render target or NULL for the default render target.
+ *
+ * \return The current render target
+ *
+ *  \sa SDL_SetRenderTarget()
+ */
+extern DECLSPEC SDL_Texture * SDLCALL SDL_GetRenderTarget(SDL_Renderer *renderer);
+
+/**
+ *  \brief Set device independent resolution for rendering
+ *
+ *  \param renderer The renderer for which resolution should be set.
+ *  \param w      The width of the logical resolution
+ *  \param h      The height of the logical resolution
+ *
+ *  This function uses the viewport and scaling functionality to allow a fixed logical
+ *  resolution for rendering, regardless of the actual output resolution.  If the actual
+ *  output resolution doesn't have the same aspect ratio the output rendering will be
+ *  centered within the output display.
+ *
+ *  If the output display is a window, mouse events in the window will be filtered
+ *  and scaled so they seem to arrive within the logical resolution.
+ *
+ *  \note If this function results in scaling or subpixel drawing by the
+ *        rendering backend, it will be handled using the appropriate
+ *        quality hints.
+ *
+ *  \sa SDL_RenderGetLogicalSize()
+ *  \sa SDL_RenderSetScale()
+ *  \sa SDL_RenderSetViewport()
+ */
+extern DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer * renderer, int w, int h);
+
+/**
+ *  \brief Get device independent resolution for rendering
+ *
+ *  \param renderer The renderer from which resolution should be queried.
+ *  \param w      A pointer filled with the width of the logical resolution
+ *  \param h      A pointer filled with the height of the logical resolution
+ *
+ *  \sa SDL_RenderSetLogicalSize()
+ */
+extern DECLSPEC void SDLCALL SDL_RenderGetLogicalSize(SDL_Renderer * renderer, int *w, int *h);
+
+/**
+ *  \brief Set whether to force integer scales for resolution-independent rendering
+ *
+ *  \param renderer The renderer for which integer scaling should be set.
+ *  \param enable   Enable or disable integer scaling
+ *
+ *  This function restricts the logical viewport to integer values - that is, when
+ *  a resolution is between two multiples of a logical size, the viewport size is
+ *  rounded down to the lower multiple.
+ *
+ *  \sa SDL_RenderSetLogicalSize()
+ */
+extern DECLSPEC int SDLCALL SDL_RenderSetIntegerScale(SDL_Renderer * renderer,
+                                                      SDL_bool enable);
+
+/**
+ *  \brief Get whether integer scales are forced for resolution-independent rendering
+ *
+ *  \param renderer The renderer from which integer scaling should be queried.
+ *
+ *  \sa SDL_RenderSetIntegerScale()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_RenderGetIntegerScale(SDL_Renderer * renderer);
+
+/**
+ *  \brief Set the drawing area for rendering on the current target.
+ *
+ *  \param renderer The renderer for which the drawing area should be set.
+ *  \param rect The rectangle representing the drawing area, or NULL to set the viewport to the entire target.
+ *
+ *  The x,y of the viewport rect represents the origin for rendering.
+ *
+ *  \return 0 on success, or -1 on error
+ *
+ *  \note If the window associated with the renderer is resized, the viewport is automatically reset.
+ *
+ *  \sa SDL_RenderGetViewport()
+ *  \sa SDL_RenderSetLogicalSize()
+ */
+extern DECLSPEC int SDLCALL SDL_RenderSetViewport(SDL_Renderer * renderer,
+                                                  const SDL_Rect * rect);
+
+/**
+ *  \brief Get the drawing area for the current target.
+ *
+ *  \sa SDL_RenderSetViewport()
+ */
+extern DECLSPEC void SDLCALL SDL_RenderGetViewport(SDL_Renderer * renderer,
+                                                   SDL_Rect * rect);
+
+/**
+ *  \brief Set the clip rectangle for the current target.
+ *
+ *  \param renderer The renderer for which clip rectangle should be set.
+ *  \param rect   A pointer to the rectangle to set as the clip rectangle, or
+ *                NULL to disable clipping.
+ *
+ *  \return 0 on success, or -1 on error
+ *
+ *  \sa SDL_RenderGetClipRect()
+ */
+extern DECLSPEC int SDLCALL SDL_RenderSetClipRect(SDL_Renderer * renderer,
+                                                  const SDL_Rect * rect);
+
+/**
+ *  \brief Get the clip rectangle for the current target.
+ *
+ *  \param renderer The renderer from which clip rectangle should be queried.
+ *  \param rect   A pointer filled in with the current clip rectangle, or
+ *                an empty rectangle if clipping is disabled.
+ *
+ *  \sa SDL_RenderSetClipRect()
+ */
+extern DECLSPEC void SDLCALL SDL_RenderGetClipRect(SDL_Renderer * renderer,
+                                                   SDL_Rect * rect);
+
+/**
+ *  \brief Get whether clipping is enabled on the given renderer.
+ *
+ *  \param renderer The renderer from which clip state should be queried.
+ *
+ *  \sa SDL_RenderGetClipRect()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_RenderIsClipEnabled(SDL_Renderer * renderer);
+
+
+/**
+ *  \brief Set the drawing scale for rendering on the current target.
+ *
+ *  \param renderer The renderer for which the drawing scale should be set.
+ *  \param scaleX The horizontal scaling factor
+ *  \param scaleY The vertical scaling factor
+ *
+ *  The drawing coordinates are scaled by the x/y scaling factors
+ *  before they are used by the renderer.  This allows resolution
+ *  independent drawing with a single coordinate system.
+ *
+ *  \note If this results in scaling or subpixel drawing by the
+ *        rendering backend, it will be handled using the appropriate
+ *        quality hints.  For best results use integer scaling factors.
+ *
+ *  \sa SDL_RenderGetScale()
+ *  \sa SDL_RenderSetLogicalSize()
+ */
+extern DECLSPEC int SDLCALL SDL_RenderSetScale(SDL_Renderer * renderer,
+                                               float scaleX, float scaleY);
+
+/**
+ *  \brief Get the drawing scale for the current target.
+ *
+ *  \param renderer The renderer from which drawing scale should be queried.
+ *  \param scaleX A pointer filled in with the horizontal scaling factor
+ *  \param scaleY A pointer filled in with the vertical scaling factor
+ *
+ *  \sa SDL_RenderSetScale()
+ */
+extern DECLSPEC void SDLCALL SDL_RenderGetScale(SDL_Renderer * renderer,
+                                               float *scaleX, float *scaleY);
+
+/**
+ *  \brief Set the color used for drawing operations (Rect, Line and Clear).
+ *
+ *  \param renderer The renderer for which drawing color should be set.
+ *  \param r The red value used to draw on the rendering target.
+ *  \param g The green value used to draw on the rendering target.
+ *  \param b The blue value used to draw on the rendering target.
+ *  \param a The alpha value used to draw on the rendering target, usually
+ *           ::SDL_ALPHA_OPAQUE (255).
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_SetRenderDrawColor(SDL_Renderer * renderer,
+                                           Uint8 r, Uint8 g, Uint8 b,
+                                           Uint8 a);
+
+/**
+ *  \brief Get the color used for drawing operations (Rect, Line and Clear).
+ *
+ *  \param renderer The renderer from which drawing color should be queried.
+ *  \param r A pointer to the red value used to draw on the rendering target.
+ *  \param g A pointer to the green value used to draw on the rendering target.
+ *  \param b A pointer to the blue value used to draw on the rendering target.
+ *  \param a A pointer to the alpha value used to draw on the rendering target,
+ *           usually ::SDL_ALPHA_OPAQUE (255).
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_GetRenderDrawColor(SDL_Renderer * renderer,
+                                           Uint8 * r, Uint8 * g, Uint8 * b,
+                                           Uint8 * a);
+
+/**
+ *  \brief Set the blend mode used for drawing operations (Fill and Line).
+ *
+ *  \param renderer The renderer for which blend mode should be set.
+ *  \param blendMode ::SDL_BlendMode to use for blending.
+ *
+ *  \return 0 on success, or -1 on error
+ *
+ *  \note If the blend mode is not supported, the closest supported mode is
+ *        chosen.
+ *
+ *  \sa SDL_GetRenderDrawBlendMode()
+ */
+extern DECLSPEC int SDLCALL SDL_SetRenderDrawBlendMode(SDL_Renderer * renderer,
+                                                       SDL_BlendMode blendMode);
+
+/**
+ *  \brief Get the blend mode used for drawing operations.
+ *
+ *  \param renderer The renderer from which blend mode should be queried.
+ *  \param blendMode A pointer filled in with the current blend mode.
+ *
+ *  \return 0 on success, or -1 on error
+ *
+ *  \sa SDL_SetRenderDrawBlendMode()
+ */
+extern DECLSPEC int SDLCALL SDL_GetRenderDrawBlendMode(SDL_Renderer * renderer,
+                                                       SDL_BlendMode *blendMode);
+
+/**
+ *  \brief Clear the current rendering target with the drawing color
+ *
+ *  This function clears the entire rendering target, ignoring the viewport and
+ *  the clip rectangle.
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderClear(SDL_Renderer * renderer);
+
+/**
+ *  \brief Draw a point on the current rendering target.
+ *
+ *  \param renderer The renderer which should draw a point.
+ *  \param x The x coordinate of the point.
+ *  \param y The y coordinate of the point.
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderDrawPoint(SDL_Renderer * renderer,
+                                                int x, int y);
+
+/**
+ *  \brief Draw multiple points on the current rendering target.
+ *
+ *  \param renderer The renderer which should draw multiple points.
+ *  \param points The points to draw
+ *  \param count The number of points to draw
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderDrawPoints(SDL_Renderer * renderer,
+                                                 const SDL_Point * points,
+                                                 int count);
+
+/**
+ *  \brief Draw a line on the current rendering target.
+ *
+ *  \param renderer The renderer which should draw a line.
+ *  \param x1 The x coordinate of the start point.
+ *  \param y1 The y coordinate of the start point.
+ *  \param x2 The x coordinate of the end point.
+ *  \param y2 The y coordinate of the end point.
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderDrawLine(SDL_Renderer * renderer,
+                                               int x1, int y1, int x2, int y2);
+
+/**
+ *  \brief Draw a series of connected lines on the current rendering target.
+ *
+ *  \param renderer The renderer which should draw multiple lines.
+ *  \param points The points along the lines
+ *  \param count The number of points, drawing count-1 lines
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderDrawLines(SDL_Renderer * renderer,
+                                                const SDL_Point * points,
+                                                int count);
+
+/**
+ *  \brief Draw a rectangle on the current rendering target.
+ *
+ *  \param renderer The renderer which should draw a rectangle.
+ *  \param rect A pointer to the destination rectangle, or NULL to outline the entire rendering target.
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderDrawRect(SDL_Renderer * renderer,
+                                               const SDL_Rect * rect);
+
+/**
+ *  \brief Draw some number of rectangles on the current rendering target.
+ *
+ *  \param renderer The renderer which should draw multiple rectangles.
+ *  \param rects A pointer to an array of destination rectangles.
+ *  \param count The number of rectangles.
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderDrawRects(SDL_Renderer * renderer,
+                                                const SDL_Rect * rects,
+                                                int count);
+
+/**
+ *  \brief Fill a rectangle on the current rendering target with the drawing color.
+ *
+ *  \param renderer The renderer which should fill a rectangle.
+ *  \param rect A pointer to the destination rectangle, or NULL for the entire
+ *              rendering target.
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderFillRect(SDL_Renderer * renderer,
+                                               const SDL_Rect * rect);
+
+/**
+ *  \brief Fill some number of rectangles on the current rendering target with the drawing color.
+ *
+ *  \param renderer The renderer which should fill multiple rectangles.
+ *  \param rects A pointer to an array of destination rectangles.
+ *  \param count The number of rectangles.
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderFillRects(SDL_Renderer * renderer,
+                                                const SDL_Rect * rects,
+                                                int count);
+
+/**
+ *  \brief Copy a portion of the texture to the current rendering target.
+ *
+ *  \param renderer The renderer which should copy parts of a texture.
+ *  \param texture The source texture.
+ *  \param srcrect   A pointer to the source rectangle, or NULL for the entire
+ *                   texture.
+ *  \param dstrect   A pointer to the destination rectangle, or NULL for the
+ *                   entire rendering target.
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderCopy(SDL_Renderer * renderer,
+                                           SDL_Texture * texture,
+                                           const SDL_Rect * srcrect,
+                                           const SDL_Rect * dstrect);
+
+/**
+ *  \brief Copy a portion of the source texture to the current rendering target, rotating it by angle around the given center
+ *
+ *  \param renderer The renderer which should copy parts of a texture.
+ *  \param texture The source texture.
+ *  \param srcrect   A pointer to the source rectangle, or NULL for the entire
+ *                   texture.
+ *  \param dstrect   A pointer to the destination rectangle, or NULL for the
+ *                   entire rendering target.
+ *  \param angle    An angle in degrees that indicates the rotation that will be applied to dstrect, rotating it in a clockwise direction
+ *  \param center   A pointer to a point indicating the point around which dstrect will be rotated (if NULL, rotation will be done around dstrect.w/2, dstrect.h/2).
+ *  \param flip     An SDL_RendererFlip value stating which flipping actions should be performed on the texture
+ *
+ *  \return 0 on success, or -1 on error
+ */
+extern DECLSPEC int SDLCALL SDL_RenderCopyEx(SDL_Renderer * renderer,
+                                           SDL_Texture * texture,
+                                           const SDL_Rect * srcrect,
+                                           const SDL_Rect * dstrect,
+                                           const double angle,
+                                           const SDL_Point *center,
+                                           const SDL_RendererFlip flip);
+
+/**
+ *  \brief Read pixels from the current rendering target.
+ *
+ *  \param renderer The renderer from which pixels should be read.
+ *  \param rect   A pointer to the rectangle to read, or NULL for the entire
+ *                render target.
+ *  \param format The desired format of the pixel data, or 0 to use the format
+ *                of the rendering target
+ *  \param pixels A pointer to be filled in with the pixel data
+ *  \param pitch  The pitch of the pixels parameter.
+ *
+ *  \return 0 on success, or -1 if pixel reading is not supported.
+ *
+ *  \warning This is a very slow operation, and should not be used frequently.
+ */
+extern DECLSPEC int SDLCALL SDL_RenderReadPixels(SDL_Renderer * renderer,
+                                                 const SDL_Rect * rect,
+                                                 Uint32 format,
+                                                 void *pixels, int pitch);
+
+/**
+ *  \brief Update the screen with rendering performed.
+ */
+extern DECLSPEC void SDLCALL SDL_RenderPresent(SDL_Renderer * renderer);
+
+/**
+ *  \brief Destroy the specified texture.
+ *
+ *  \sa SDL_CreateTexture()
+ *  \sa SDL_CreateTextureFromSurface()
+ */
+extern DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_Texture * texture);
+
+/**
+ *  \brief Destroy the rendering context for a window and free associated
+ *         textures.
+ *
+ *  \sa SDL_CreateRenderer()
+ */
+extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Renderer * renderer);
+
+
+/**
+ *  \brief Bind the texture to the current OpenGL/ES/ES2 context for use with
+ *         OpenGL instructions.
+ *
+ *  \param texture  The SDL texture to bind
+ *  \param texw     A pointer to a float that will be filled with the texture width
+ *  \param texh     A pointer to a float that will be filled with the texture height
+ *
+ *  \return 0 on success, or -1 if the operation is not supported
+ */
+extern DECLSPEC int SDLCALL SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh);
+
+/**
+ *  \brief Unbind a texture from the current OpenGL/ES/ES2 context.
+ *
+ *  \param texture  The SDL texture to unbind
+ *
+ *  \return 0 on success, or -1 if the operation is not supported
+ */
+extern DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture);
+
+/**
+ *  \brief Get the CAMetalLayer associated with the given Metal renderer
+ *
+ *  \param renderer The renderer to query
+ *
+ *  \return CAMetalLayer* on success, or NULL if the renderer isn't a Metal renderer
+ *
+ *  \sa SDL_RenderGetMetalCommandEncoder()
+ */
+extern DECLSPEC void *SDLCALL SDL_RenderGetMetalLayer(SDL_Renderer * renderer);
+
+/**
+ *  \brief Get the Metal command encoder for the current frame
+ *
+ *  \param renderer The renderer to query
+ *
+ *  \return id<MTLRenderCommandEncoder> on success, or NULL if the renderer isn't a Metal renderer
+ *
+ *  \sa SDL_RenderGetMetalLayer()
+ */
+extern DECLSPEC void *SDLCALL SDL_RenderGetMetalCommandEncoder(SDL_Renderer * renderer);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_render_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_revision.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_revision.h
new file mode 100644
index 0000000..dbe9b97
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_revision.h
@@ -0,0 +1,2 @@
+#define SDL_REVISION "hg-11914:f1084c419f33"
+#define SDL_REVISION_NUMBER 11914
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_rwops.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_rwops.h
new file mode 100644
index 0000000..0960699
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_rwops.h
@@ -0,0 +1,254 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_rwops.h
+ *
+ *  This file provides a general interface for SDL to read and write
+ *  data streams.  It can easily be extended to files, memory, etc.
+ */
+
+#ifndef SDL_rwops_h_
+#define SDL_rwops_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* RWops Types */
+#define SDL_RWOPS_UNKNOWN   0U  /**< Unknown stream type */
+#define SDL_RWOPS_WINFILE   1U  /**< Win32 file */
+#define SDL_RWOPS_STDFILE   2U  /**< Stdio file */
+#define SDL_RWOPS_JNIFILE   3U  /**< Android asset */
+#define SDL_RWOPS_MEMORY    4U  /**< Memory stream */
+#define SDL_RWOPS_MEMORY_RO 5U  /**< Read-Only memory stream */
+
+/**
+ * This is the read/write operation structure -- very basic.
+ */
+typedef struct SDL_RWops
+{
+    /**
+     *  Return the size of the file in this rwops, or -1 if unknown
+     */
+    Sint64 (SDLCALL * size) (struct SDL_RWops * context);
+
+    /**
+     *  Seek to \c offset relative to \c whence, one of stdio's whence values:
+     *  RW_SEEK_SET, RW_SEEK_CUR, RW_SEEK_END
+     *
+     *  \return the final offset in the data stream, or -1 on error.
+     */
+    Sint64 (SDLCALL * seek) (struct SDL_RWops * context, Sint64 offset,
+                             int whence);
+
+    /**
+     *  Read up to \c maxnum objects each of size \c size from the data
+     *  stream to the area pointed at by \c ptr.
+     *
+     *  \return the number of objects read, or 0 at error or end of file.
+     */
+    size_t (SDLCALL * read) (struct SDL_RWops * context, void *ptr,
+                             size_t size, size_t maxnum);
+
+    /**
+     *  Write exactly \c num objects each of size \c size from the area
+     *  pointed at by \c ptr to data stream.
+     *
+     *  \return the number of objects written, or 0 at error or end of file.
+     */
+    size_t (SDLCALL * write) (struct SDL_RWops * context, const void *ptr,
+                              size_t size, size_t num);
+
+    /**
+     *  Close and free an allocated SDL_RWops structure.
+     *
+     *  \return 0 if successful or -1 on write error when flushing data.
+     */
+    int (SDLCALL * close) (struct SDL_RWops * context);
+
+    Uint32 type;
+    union
+    {
+#if defined(__ANDROID__)
+        struct
+        {
+            void *fileNameRef;
+            void *inputStreamRef;
+            void *readableByteChannelRef;
+            void *readMethod;
+            void *assetFileDescriptorRef;
+            long position;
+            long size;
+            long offset;
+            int fd;
+        } androidio;
+#elif defined(__WIN32__)
+        struct
+        {
+            SDL_bool append;
+            void *h;
+            struct
+            {
+                void *data;
+                size_t size;
+                size_t left;
+            } buffer;
+        } windowsio;
+#endif
+
+#ifdef HAVE_STDIO_H
+        struct
+        {
+            SDL_bool autoclose;
+            FILE *fp;
+        } stdio;
+#endif
+        struct
+        {
+            Uint8 *base;
+            Uint8 *here;
+            Uint8 *stop;
+        } mem;
+        struct
+        {
+            void *data1;
+            void *data2;
+        } unknown;
+    } hidden;
+
+} SDL_RWops;
+
+
+/**
+ *  \name RWFrom functions
+ *
+ *  Functions to create SDL_RWops structures from various data streams.
+ */
+/* @{ */
+
+extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFile(const char *file,
+                                                  const char *mode);
+
+#ifdef HAVE_STDIO_H
+extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,
+                                                SDL_bool autoclose);
+#else
+extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(void * fp,
+                                                SDL_bool autoclose);
+#endif
+
+extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromMem(void *mem, int size);
+extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromConstMem(const void *mem,
+                                                      int size);
+
+/* @} *//* RWFrom functions */
+
+
+extern DECLSPEC SDL_RWops *SDLCALL SDL_AllocRW(void);
+extern DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops * area);
+
+#define RW_SEEK_SET 0       /**< Seek from the beginning of data */
+#define RW_SEEK_CUR 1       /**< Seek relative to current read point */
+#define RW_SEEK_END 2       /**< Seek relative to the end of data */
+
+/**
+ *  \name Read/write macros
+ *
+ *  Macros to easily read and write from an SDL_RWops structure.
+ */
+/* @{ */
+#define SDL_RWsize(ctx)         (ctx)->size(ctx)
+#define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence)
+#define SDL_RWtell(ctx)         (ctx)->seek(ctx, 0, RW_SEEK_CUR)
+#define SDL_RWread(ctx, ptr, size, n)   (ctx)->read(ctx, ptr, size, n)
+#define SDL_RWwrite(ctx, ptr, size, n)  (ctx)->write(ctx, ptr, size, n)
+#define SDL_RWclose(ctx)        (ctx)->close(ctx)
+/* @} *//* Read/write macros */
+
+
+/**
+ *  Load all the data from an SDL data stream.
+ *
+ *  The data is allocated with a zero byte at the end (null terminated)
+ *
+ *  If \c datasize is not NULL, it is filled with the size of the data read.
+ *
+ *  If \c freesrc is non-zero, the stream will be closed after being read.
+ *
+ *  The data should be freed with SDL_free().
+ *
+ *  \return the data, or NULL if there was an error.
+ */
+extern DECLSPEC void *SDLCALL SDL_LoadFile_RW(SDL_RWops * src, size_t *datasize,
+                                                    int freesrc);
+
+/**
+ *  Load an entire file.
+ *
+ *  Convenience macro.
+ */
+#define SDL_LoadFile(file, datasize)   SDL_LoadFile_RW(SDL_RWFromFile(file, "rb"), datasize, 1)
+
+/**
+ *  \name Read endian functions
+ *
+ *  Read an item of the specified endianness and return in native format.
+ */
+/* @{ */
+extern DECLSPEC Uint8 SDLCALL SDL_ReadU8(SDL_RWops * src);
+extern DECLSPEC Uint16 SDLCALL SDL_ReadLE16(SDL_RWops * src);
+extern DECLSPEC Uint16 SDLCALL SDL_ReadBE16(SDL_RWops * src);
+extern DECLSPEC Uint32 SDLCALL SDL_ReadLE32(SDL_RWops * src);
+extern DECLSPEC Uint32 SDLCALL SDL_ReadBE32(SDL_RWops * src);
+extern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops * src);
+extern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops * src);
+/* @} *//* Read endian functions */
+
+/**
+ *  \name Write endian functions
+ *
+ *  Write an item of native format to the specified endianness.
+ */
+/* @{ */
+extern DECLSPEC size_t SDLCALL SDL_WriteU8(SDL_RWops * dst, Uint8 value);
+extern DECLSPEC size_t SDLCALL SDL_WriteLE16(SDL_RWops * dst, Uint16 value);
+extern DECLSPEC size_t SDLCALL SDL_WriteBE16(SDL_RWops * dst, Uint16 value);
+extern DECLSPEC size_t SDLCALL SDL_WriteLE32(SDL_RWops * dst, Uint32 value);
+extern DECLSPEC size_t SDLCALL SDL_WriteBE32(SDL_RWops * dst, Uint32 value);
+extern DECLSPEC size_t SDLCALL SDL_WriteLE64(SDL_RWops * dst, Uint64 value);
+extern DECLSPEC size_t SDLCALL SDL_WriteBE64(SDL_RWops * dst, Uint64 value);
+/* @} *//* Write endian functions */
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_rwops_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_scancode.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_scancode.h
new file mode 100644
index 0000000..63871aa
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_scancode.h
@@ -0,0 +1,413 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_scancode.h
+ *
+ *  Defines keyboard scancodes.
+ */
+
+#ifndef SDL_scancode_h_
+#define SDL_scancode_h_
+
+#include "SDL_stdinc.h"
+
+/**
+ *  \brief The SDL keyboard scancode representation.
+ *
+ *  Values of this type are used to represent keyboard keys, among other places
+ *  in the \link SDL_Keysym::scancode key.keysym.scancode \endlink field of the
+ *  SDL_Event structure.
+ *
+ *  The values in this enumeration are based on the USB usage page standard:
+ *  http://www.usb.org/developers/hidpage/Hut1_12v2.pdf
+ */
+typedef enum
+{
+    SDL_SCANCODE_UNKNOWN = 0,
+
+    /**
+     *  \name Usage page 0x07
+     *
+     *  These values are from usage page 0x07 (USB keyboard page).
+     */
+    /* @{ */
+
+    SDL_SCANCODE_A = 4,
+    SDL_SCANCODE_B = 5,
+    SDL_SCANCODE_C = 6,
+    SDL_SCANCODE_D = 7,
+    SDL_SCANCODE_E = 8,
+    SDL_SCANCODE_F = 9,
+    SDL_SCANCODE_G = 10,
+    SDL_SCANCODE_H = 11,
+    SDL_SCANCODE_I = 12,
+    SDL_SCANCODE_J = 13,
+    SDL_SCANCODE_K = 14,
+    SDL_SCANCODE_L = 15,
+    SDL_SCANCODE_M = 16,
+    SDL_SCANCODE_N = 17,
+    SDL_SCANCODE_O = 18,
+    SDL_SCANCODE_P = 19,
+    SDL_SCANCODE_Q = 20,
+    SDL_SCANCODE_R = 21,
+    SDL_SCANCODE_S = 22,
+    SDL_SCANCODE_T = 23,
+    SDL_SCANCODE_U = 24,
+    SDL_SCANCODE_V = 25,
+    SDL_SCANCODE_W = 26,
+    SDL_SCANCODE_X = 27,
+    SDL_SCANCODE_Y = 28,
+    SDL_SCANCODE_Z = 29,
+
+    SDL_SCANCODE_1 = 30,
+    SDL_SCANCODE_2 = 31,
+    SDL_SCANCODE_3 = 32,
+    SDL_SCANCODE_4 = 33,
+    SDL_SCANCODE_5 = 34,
+    SDL_SCANCODE_6 = 35,
+    SDL_SCANCODE_7 = 36,
+    SDL_SCANCODE_8 = 37,
+    SDL_SCANCODE_9 = 38,
+    SDL_SCANCODE_0 = 39,
+
+    SDL_SCANCODE_RETURN = 40,
+    SDL_SCANCODE_ESCAPE = 41,
+    SDL_SCANCODE_BACKSPACE = 42,
+    SDL_SCANCODE_TAB = 43,
+    SDL_SCANCODE_SPACE = 44,
+
+    SDL_SCANCODE_MINUS = 45,
+    SDL_SCANCODE_EQUALS = 46,
+    SDL_SCANCODE_LEFTBRACKET = 47,
+    SDL_SCANCODE_RIGHTBRACKET = 48,
+    SDL_SCANCODE_BACKSLASH = 49, /**< Located at the lower left of the return
+                                  *   key on ISO keyboards and at the right end
+                                  *   of the QWERTY row on ANSI keyboards.
+                                  *   Produces REVERSE SOLIDUS (backslash) and
+                                  *   VERTICAL LINE in a US layout, REVERSE
+                                  *   SOLIDUS and VERTICAL LINE in a UK Mac
+                                  *   layout, NUMBER SIGN and TILDE in a UK
+                                  *   Windows layout, DOLLAR SIGN and POUND SIGN
+                                  *   in a Swiss German layout, NUMBER SIGN and
+                                  *   APOSTROPHE in a German layout, GRAVE
+                                  *   ACCENT and POUND SIGN in a French Mac
+                                  *   layout, and ASTERISK and MICRO SIGN in a
+                                  *   French Windows layout.
+                                  */
+    SDL_SCANCODE_NONUSHASH = 50, /**< ISO USB keyboards actually use this code
+                                  *   instead of 49 for the same key, but all
+                                  *   OSes I've seen treat the two codes
+                                  *   identically. So, as an implementor, unless
+                                  *   your keyboard generates both of those
+                                  *   codes and your OS treats them differently,
+                                  *   you should generate SDL_SCANCODE_BACKSLASH
+                                  *   instead of this code. As a user, you
+                                  *   should not rely on this code because SDL
+                                  *   will never generate it with most (all?)
+                                  *   keyboards.
+                                  */
+    SDL_SCANCODE_SEMICOLON = 51,
+    SDL_SCANCODE_APOSTROPHE = 52,
+    SDL_SCANCODE_GRAVE = 53, /**< Located in the top left corner (on both ANSI
+                              *   and ISO keyboards). Produces GRAVE ACCENT and
+                              *   TILDE in a US Windows layout and in US and UK
+                              *   Mac layouts on ANSI keyboards, GRAVE ACCENT
+                              *   and NOT SIGN in a UK Windows layout, SECTION
+                              *   SIGN and PLUS-MINUS SIGN in US and UK Mac
+                              *   layouts on ISO keyboards, SECTION SIGN and
+                              *   DEGREE SIGN in a Swiss German layout (Mac:
+                              *   only on ISO keyboards), CIRCUMFLEX ACCENT and
+                              *   DEGREE SIGN in a German layout (Mac: only on
+                              *   ISO keyboards), SUPERSCRIPT TWO and TILDE in a
+                              *   French Windows layout, COMMERCIAL AT and
+                              *   NUMBER SIGN in a French Mac layout on ISO
+                              *   keyboards, and LESS-THAN SIGN and GREATER-THAN
+                              *   SIGN in a Swiss German, German, or French Mac
+                              *   layout on ANSI keyboards.
+                              */
+    SDL_SCANCODE_COMMA = 54,
+    SDL_SCANCODE_PERIOD = 55,
+    SDL_SCANCODE_SLASH = 56,
+
+    SDL_SCANCODE_CAPSLOCK = 57,
+
+    SDL_SCANCODE_F1 = 58,
+    SDL_SCANCODE_F2 = 59,
+    SDL_SCANCODE_F3 = 60,
+    SDL_SCANCODE_F4 = 61,
+    SDL_SCANCODE_F5 = 62,
+    SDL_SCANCODE_F6 = 63,
+    SDL_SCANCODE_F7 = 64,
+    SDL_SCANCODE_F8 = 65,
+    SDL_SCANCODE_F9 = 66,
+    SDL_SCANCODE_F10 = 67,
+    SDL_SCANCODE_F11 = 68,
+    SDL_SCANCODE_F12 = 69,
+
+    SDL_SCANCODE_PRINTSCREEN = 70,
+    SDL_SCANCODE_SCROLLLOCK = 71,
+    SDL_SCANCODE_PAUSE = 72,
+    SDL_SCANCODE_INSERT = 73, /**< insert on PC, help on some Mac keyboards (but
+                                   does send code 73, not 117) */
+    SDL_SCANCODE_HOME = 74,
+    SDL_SCANCODE_PAGEUP = 75,
+    SDL_SCANCODE_DELETE = 76,
+    SDL_SCANCODE_END = 77,
+    SDL_SCANCODE_PAGEDOWN = 78,
+    SDL_SCANCODE_RIGHT = 79,
+    SDL_SCANCODE_LEFT = 80,
+    SDL_SCANCODE_DOWN = 81,
+    SDL_SCANCODE_UP = 82,
+
+    SDL_SCANCODE_NUMLOCKCLEAR = 83, /**< num lock on PC, clear on Mac keyboards
+                                     */
+    SDL_SCANCODE_KP_DIVIDE = 84,
+    SDL_SCANCODE_KP_MULTIPLY = 85,
+    SDL_SCANCODE_KP_MINUS = 86,
+    SDL_SCANCODE_KP_PLUS = 87,
+    SDL_SCANCODE_KP_ENTER = 88,
+    SDL_SCANCODE_KP_1 = 89,
+    SDL_SCANCODE_KP_2 = 90,
+    SDL_SCANCODE_KP_3 = 91,
+    SDL_SCANCODE_KP_4 = 92,
+    SDL_SCANCODE_KP_5 = 93,
+    SDL_SCANCODE_KP_6 = 94,
+    SDL_SCANCODE_KP_7 = 95,
+    SDL_SCANCODE_KP_8 = 96,
+    SDL_SCANCODE_KP_9 = 97,
+    SDL_SCANCODE_KP_0 = 98,
+    SDL_SCANCODE_KP_PERIOD = 99,
+
+    SDL_SCANCODE_NONUSBACKSLASH = 100, /**< This is the additional key that ISO
+                                        *   keyboards have over ANSI ones,
+                                        *   located between left shift and Y.
+                                        *   Produces GRAVE ACCENT and TILDE in a
+                                        *   US or UK Mac layout, REVERSE SOLIDUS
+                                        *   (backslash) and VERTICAL LINE in a
+                                        *   US or UK Windows layout, and
+                                        *   LESS-THAN SIGN and GREATER-THAN SIGN
+                                        *   in a Swiss German, German, or French
+                                        *   layout. */
+    SDL_SCANCODE_APPLICATION = 101, /**< windows contextual menu, compose */
+    SDL_SCANCODE_POWER = 102, /**< The USB document says this is a status flag,
+                               *   not a physical key - but some Mac keyboards
+                               *   do have a power key. */
+    SDL_SCANCODE_KP_EQUALS = 103,
+    SDL_SCANCODE_F13 = 104,
+    SDL_SCANCODE_F14 = 105,
+    SDL_SCANCODE_F15 = 106,
+    SDL_SCANCODE_F16 = 107,
+    SDL_SCANCODE_F17 = 108,
+    SDL_SCANCODE_F18 = 109,
+    SDL_SCANCODE_F19 = 110,
+    SDL_SCANCODE_F20 = 111,
+    SDL_SCANCODE_F21 = 112,
+    SDL_SCANCODE_F22 = 113,
+    SDL_SCANCODE_F23 = 114,
+    SDL_SCANCODE_F24 = 115,
+    SDL_SCANCODE_EXECUTE = 116,
+    SDL_SCANCODE_HELP = 117,
+    SDL_SCANCODE_MENU = 118,
+    SDL_SCANCODE_SELECT = 119,
+    SDL_SCANCODE_STOP = 120,
+    SDL_SCANCODE_AGAIN = 121,   /**< redo */
+    SDL_SCANCODE_UNDO = 122,
+    SDL_SCANCODE_CUT = 123,
+    SDL_SCANCODE_COPY = 124,
+    SDL_SCANCODE_PASTE = 125,
+    SDL_SCANCODE_FIND = 126,
+    SDL_SCANCODE_MUTE = 127,
+    SDL_SCANCODE_VOLUMEUP = 128,
+    SDL_SCANCODE_VOLUMEDOWN = 129,
+/* not sure whether there's a reason to enable these */
+/*     SDL_SCANCODE_LOCKINGCAPSLOCK = 130,  */
+/*     SDL_SCANCODE_LOCKINGNUMLOCK = 131, */
+/*     SDL_SCANCODE_LOCKINGSCROLLLOCK = 132, */
+    SDL_SCANCODE_KP_COMMA = 133,
+    SDL_SCANCODE_KP_EQUALSAS400 = 134,
+
+    SDL_SCANCODE_INTERNATIONAL1 = 135, /**< used on Asian keyboards, see
+                                            footnotes in USB doc */
+    SDL_SCANCODE_INTERNATIONAL2 = 136,
+    SDL_SCANCODE_INTERNATIONAL3 = 137, /**< Yen */
+    SDL_SCANCODE_INTERNATIONAL4 = 138,
+    SDL_SCANCODE_INTERNATIONAL5 = 139,
+    SDL_SCANCODE_INTERNATIONAL6 = 140,
+    SDL_SCANCODE_INTERNATIONAL7 = 141,
+    SDL_SCANCODE_INTERNATIONAL8 = 142,
+    SDL_SCANCODE_INTERNATIONAL9 = 143,
+    SDL_SCANCODE_LANG1 = 144, /**< Hangul/English toggle */
+    SDL_SCANCODE_LANG2 = 145, /**< Hanja conversion */
+    SDL_SCANCODE_LANG3 = 146, /**< Katakana */
+    SDL_SCANCODE_LANG4 = 147, /**< Hiragana */
+    SDL_SCANCODE_LANG5 = 148, /**< Zenkaku/Hankaku */
+    SDL_SCANCODE_LANG6 = 149, /**< reserved */
+    SDL_SCANCODE_LANG7 = 150, /**< reserved */
+    SDL_SCANCODE_LANG8 = 151, /**< reserved */
+    SDL_SCANCODE_LANG9 = 152, /**< reserved */
+
+    SDL_SCANCODE_ALTERASE = 153, /**< Erase-Eaze */
+    SDL_SCANCODE_SYSREQ = 154,
+    SDL_SCANCODE_CANCEL = 155,
+    SDL_SCANCODE_CLEAR = 156,
+    SDL_SCANCODE_PRIOR = 157,
+    SDL_SCANCODE_RETURN2 = 158,
+    SDL_SCANCODE_SEPARATOR = 159,
+    SDL_SCANCODE_OUT = 160,
+    SDL_SCANCODE_OPER = 161,
+    SDL_SCANCODE_CLEARAGAIN = 162,
+    SDL_SCANCODE_CRSEL = 163,
+    SDL_SCANCODE_EXSEL = 164,
+
+    SDL_SCANCODE_KP_00 = 176,
+    SDL_SCANCODE_KP_000 = 177,
+    SDL_SCANCODE_THOUSANDSSEPARATOR = 178,
+    SDL_SCANCODE_DECIMALSEPARATOR = 179,
+    SDL_SCANCODE_CURRENCYUNIT = 180,
+    SDL_SCANCODE_CURRENCYSUBUNIT = 181,
+    SDL_SCANCODE_KP_LEFTPAREN = 182,
+    SDL_SCANCODE_KP_RIGHTPAREN = 183,
+    SDL_SCANCODE_KP_LEFTBRACE = 184,
+    SDL_SCANCODE_KP_RIGHTBRACE = 185,
+    SDL_SCANCODE_KP_TAB = 186,
+    SDL_SCANCODE_KP_BACKSPACE = 187,
+    SDL_SCANCODE_KP_A = 188,
+    SDL_SCANCODE_KP_B = 189,
+    SDL_SCANCODE_KP_C = 190,
+    SDL_SCANCODE_KP_D = 191,
+    SDL_SCANCODE_KP_E = 192,
+    SDL_SCANCODE_KP_F = 193,
+    SDL_SCANCODE_KP_XOR = 194,
+    SDL_SCANCODE_KP_POWER = 195,
+    SDL_SCANCODE_KP_PERCENT = 196,
+    SDL_SCANCODE_KP_LESS = 197,
+    SDL_SCANCODE_KP_GREATER = 198,
+    SDL_SCANCODE_KP_AMPERSAND = 199,
+    SDL_SCANCODE_KP_DBLAMPERSAND = 200,
+    SDL_SCANCODE_KP_VERTICALBAR = 201,
+    SDL_SCANCODE_KP_DBLVERTICALBAR = 202,
+    SDL_SCANCODE_KP_COLON = 203,
+    SDL_SCANCODE_KP_HASH = 204,
+    SDL_SCANCODE_KP_SPACE = 205,
+    SDL_SCANCODE_KP_AT = 206,
+    SDL_SCANCODE_KP_EXCLAM = 207,
+    SDL_SCANCODE_KP_MEMSTORE = 208,
+    SDL_SCANCODE_KP_MEMRECALL = 209,
+    SDL_SCANCODE_KP_MEMCLEAR = 210,
+    SDL_SCANCODE_KP_MEMADD = 211,
+    SDL_SCANCODE_KP_MEMSUBTRACT = 212,
+    SDL_SCANCODE_KP_MEMMULTIPLY = 213,
+    SDL_SCANCODE_KP_MEMDIVIDE = 214,
+    SDL_SCANCODE_KP_PLUSMINUS = 215,
+    SDL_SCANCODE_KP_CLEAR = 216,
+    SDL_SCANCODE_KP_CLEARENTRY = 217,
+    SDL_SCANCODE_KP_BINARY = 218,
+    SDL_SCANCODE_KP_OCTAL = 219,
+    SDL_SCANCODE_KP_DECIMAL = 220,
+    SDL_SCANCODE_KP_HEXADECIMAL = 221,
+
+    SDL_SCANCODE_LCTRL = 224,
+    SDL_SCANCODE_LSHIFT = 225,
+    SDL_SCANCODE_LALT = 226, /**< alt, option */
+    SDL_SCANCODE_LGUI = 227, /**< windows, command (apple), meta */
+    SDL_SCANCODE_RCTRL = 228,
+    SDL_SCANCODE_RSHIFT = 229,
+    SDL_SCANCODE_RALT = 230, /**< alt gr, option */
+    SDL_SCANCODE_RGUI = 231, /**< windows, command (apple), meta */
+
+    SDL_SCANCODE_MODE = 257,    /**< I'm not sure if this is really not covered
+                                 *   by any of the above, but since there's a
+                                 *   special KMOD_MODE for it I'm adding it here
+                                 */
+
+    /* @} *//* Usage page 0x07 */
+
+    /**
+     *  \name Usage page 0x0C
+     *
+     *  These values are mapped from usage page 0x0C (USB consumer page).
+     */
+    /* @{ */
+
+    SDL_SCANCODE_AUDIONEXT = 258,
+    SDL_SCANCODE_AUDIOPREV = 259,
+    SDL_SCANCODE_AUDIOSTOP = 260,
+    SDL_SCANCODE_AUDIOPLAY = 261,
+    SDL_SCANCODE_AUDIOMUTE = 262,
+    SDL_SCANCODE_MEDIASELECT = 263,
+    SDL_SCANCODE_WWW = 264,
+    SDL_SCANCODE_MAIL = 265,
+    SDL_SCANCODE_CALCULATOR = 266,
+    SDL_SCANCODE_COMPUTER = 267,
+    SDL_SCANCODE_AC_SEARCH = 268,
+    SDL_SCANCODE_AC_HOME = 269,
+    SDL_SCANCODE_AC_BACK = 270,
+    SDL_SCANCODE_AC_FORWARD = 271,
+    SDL_SCANCODE_AC_STOP = 272,
+    SDL_SCANCODE_AC_REFRESH = 273,
+    SDL_SCANCODE_AC_BOOKMARKS = 274,
+
+    /* @} *//* Usage page 0x0C */
+
+    /**
+     *  \name Walther keys
+     *
+     *  These are values that Christian Walther added (for mac keyboard?).
+     */
+    /* @{ */
+
+    SDL_SCANCODE_BRIGHTNESSDOWN = 275,
+    SDL_SCANCODE_BRIGHTNESSUP = 276,
+    SDL_SCANCODE_DISPLAYSWITCH = 277, /**< display mirroring/dual display
+                                           switch, video mode switch */
+    SDL_SCANCODE_KBDILLUMTOGGLE = 278,
+    SDL_SCANCODE_KBDILLUMDOWN = 279,
+    SDL_SCANCODE_KBDILLUMUP = 280,
+    SDL_SCANCODE_EJECT = 281,
+    SDL_SCANCODE_SLEEP = 282,
+
+    SDL_SCANCODE_APP1 = 283,
+    SDL_SCANCODE_APP2 = 284,
+
+    /* @} *//* Walther keys */
+
+    /**
+     *  \name Usage page 0x0C (additional media keys)
+     *
+     *  These values are mapped from usage page 0x0C (USB consumer page).
+     */
+    /* @{ */
+
+    SDL_SCANCODE_AUDIOREWIND = 285,
+    SDL_SCANCODE_AUDIOFASTFORWARD = 286,
+
+    /* @} *//* Usage page 0x0C (additional media keys) */
+
+    /* Add any other keys here. */
+
+    SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes
+                                 for array bounds */
+} SDL_Scancode;
+
+#endif /* SDL_scancode_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_shape.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_shape.h
new file mode 100644
index 0000000..40a6baa
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_shape.h
@@ -0,0 +1,144 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_shape_h_
+#define SDL_shape_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_pixels.h"
+#include "SDL_rect.h"
+#include "SDL_surface.h"
+#include "SDL_video.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** \file SDL_shape.h
+ *
+ * Header file for the shaped window API.
+ */
+
+#define SDL_NONSHAPEABLE_WINDOW -1
+#define SDL_INVALID_SHAPE_ARGUMENT -2
+#define SDL_WINDOW_LACKS_SHAPE -3
+
+/**
+ *  \brief Create a window that can be shaped with the specified position, dimensions, and flags.
+ *
+ *  \param title The title of the window, in UTF-8 encoding.
+ *  \param x     The x position of the window, ::SDL_WINDOWPOS_CENTERED, or
+ *               ::SDL_WINDOWPOS_UNDEFINED.
+ *  \param y     The y position of the window, ::SDL_WINDOWPOS_CENTERED, or
+ *               ::SDL_WINDOWPOS_UNDEFINED.
+ *  \param w     The width of the window.
+ *  \param h     The height of the window.
+ *  \param flags The flags for the window, a mask of SDL_WINDOW_BORDERLESS with any of the following:
+ *               ::SDL_WINDOW_OPENGL,     ::SDL_WINDOW_INPUT_GRABBED,
+ *               ::SDL_WINDOW_HIDDEN,     ::SDL_WINDOW_RESIZABLE,
+ *               ::SDL_WINDOW_MAXIMIZED,  ::SDL_WINDOW_MINIMIZED,
+ *       ::SDL_WINDOW_BORDERLESS is always set, and ::SDL_WINDOW_FULLSCREEN is always unset.
+ *
+ *  \return The window created, or NULL if window creation failed.
+ *
+ *  \sa SDL_DestroyWindow()
+ */
+extern DECLSPEC SDL_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
+
+/**
+ * \brief Return whether the given window is a shaped window.
+ *
+ * \param window The window to query for being shaped.
+ *
+ * \return SDL_TRUE if the window is a window that can be shaped, SDL_FALSE if the window is unshaped or NULL.
+ *
+ * \sa SDL_CreateShapedWindow
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_IsShapedWindow(const SDL_Window *window);
+
+/** \brief An enum denoting the specific type of contents present in an SDL_WindowShapeParams union. */
+typedef enum {
+    /** \brief The default mode, a binarized alpha cutoff of 1. */
+    ShapeModeDefault,
+    /** \brief A binarized alpha cutoff with a given integer value. */
+    ShapeModeBinarizeAlpha,
+    /** \brief A binarized alpha cutoff with a given integer value, but with the opposite comparison. */
+    ShapeModeReverseBinarizeAlpha,
+    /** \brief A color key is applied. */
+    ShapeModeColorKey
+} WindowShapeMode;
+
+#define SDL_SHAPEMODEALPHA(mode) (mode == ShapeModeDefault || mode == ShapeModeBinarizeAlpha || mode == ShapeModeReverseBinarizeAlpha)
+
+/** \brief A union containing parameters for shaped windows. */
+typedef union {
+    /** \brief A cutoff alpha value for binarization of the window shape's alpha channel. */
+    Uint8 binarizationCutoff;
+    SDL_Color colorKey;
+} SDL_WindowShapeParams;
+
+/** \brief A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents. */
+typedef struct SDL_WindowShapeMode {
+    /** \brief The mode of these window-shape parameters. */
+    WindowShapeMode mode;
+    /** \brief Window-shape parameters. */
+    SDL_WindowShapeParams parameters;
+} SDL_WindowShapeMode;
+
+/**
+ * \brief Set the shape and parameters of a shaped window.
+ *
+ * \param window The shaped window whose parameters should be set.
+ * \param shape A surface encoding the desired shape for the window.
+ * \param shape_mode The parameters to set for the shaped window.
+ *
+ * \return 0 on success, SDL_INVALID_SHAPE_ARGUMENT on an invalid shape argument, or SDL_NONSHAPEABLE_WINDOW
+ *           if the SDL_Window given does not reference a valid shaped window.
+ *
+ * \sa SDL_WindowShapeMode
+ * \sa SDL_GetShapedWindowMode.
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode);
+
+/**
+ * \brief Get the shape parameters of a shaped window.
+ *
+ * \param window The shaped window whose parameters should be retrieved.
+ * \param shape_mode An empty shape-mode structure to fill, or NULL to check whether the window has a shape.
+ *
+ * \return 0 if the window has a shape and, provided shape_mode was not NULL, shape_mode has been filled with the mode
+ *           data, SDL_NONSHAPEABLE_WINDOW if the SDL_Window given is not a shaped window, or SDL_WINDOW_LACKS_SHAPE if
+ *           the SDL_Window given is a shapeable window currently lacking a shape.
+ *
+ * \sa SDL_WindowShapeMode
+ * \sa SDL_SetWindowShape
+ */
+extern DECLSPEC int SDLCALL SDL_GetShapedWindowMode(SDL_Window *window,SDL_WindowShapeMode *shape_mode);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_shape_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_stdinc.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_stdinc.h
new file mode 100644
index 0000000..111a064
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_stdinc.h
@@ -0,0 +1,605 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_stdinc.h
+ *
+ *  This is a general header that includes C language support.
+ */
+
+#ifndef SDL_stdinc_h_
+#define SDL_stdinc_h_
+
+#include "SDL_config.h"
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+#if defined(STDC_HEADERS)
+# include <stdlib.h>
+# include <stddef.h>
+# include <stdarg.h>
+#else
+# if defined(HAVE_STDLIB_H)
+#  include <stdlib.h>
+# elif defined(HAVE_MALLOC_H)
+#  include <malloc.h>
+# endif
+# if defined(HAVE_STDDEF_H)
+#  include <stddef.h>
+# endif
+# if defined(HAVE_STDARG_H)
+#  include <stdarg.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
+#  include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_WCHAR_H
+# include <wchar.h>
+#endif
+#if defined(HAVE_INTTYPES_H)
+# include <inttypes.h>
+#elif defined(HAVE_STDINT_H)
+# include <stdint.h>
+#endif
+#ifdef HAVE_CTYPE_H
+# include <ctype.h>
+#endif
+#ifdef HAVE_MATH_H
+# if defined(__WINRT__)
+/* Defining _USE_MATH_DEFINES is required to get M_PI to be defined on
+   WinRT.  See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
+   for more information.
+*/
+#  define _USE_MATH_DEFINES
+# endif
+# include <math.h>
+#endif
+#ifdef HAVE_FLOAT_H
+# include <float.h>
+#endif
+
+/**
+ *  The number of elements in an array.
+ */
+#define SDL_arraysize(array)    (sizeof(array)/sizeof(array[0]))
+#define SDL_TABLESIZE(table)    SDL_arraysize(table)
+
+/**
+ *  Macro useful for building other macros with strings in them
+ *
+ *  e.g. #define LOG_ERROR(X) OutputDebugString(SDL_STRINGIFY_ARG(__FUNCTION__) ": " X "\n")
+ */
+#define SDL_STRINGIFY_ARG(arg)  #arg
+
+/**
+ *  \name Cast operators
+ *
+ *  Use proper C++ casts when compiled as C++ to be compatible with the option
+ *  -Wold-style-cast of GCC (and -Werror=old-style-cast in GCC 4.2 and above).
+ */
+/* @{ */
+#ifdef __cplusplus
+#define SDL_reinterpret_cast(type, expression) reinterpret_cast<type>(expression)
+#define SDL_static_cast(type, expression) static_cast<type>(expression)
+#define SDL_const_cast(type, expression) const_cast<type>(expression)
+#else
+#define SDL_reinterpret_cast(type, expression) ((type)(expression))
+#define SDL_static_cast(type, expression) ((type)(expression))
+#define SDL_const_cast(type, expression) ((type)(expression))
+#endif
+/* @} *//* Cast operators */
+
+/* Define a four character code as a Uint32 */
+#define SDL_FOURCC(A, B, C, D) \
+    ((SDL_static_cast(Uint32, SDL_static_cast(Uint8, (A))) << 0) | \
+     (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (B))) << 8) | \
+     (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (C))) << 16) | \
+     (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (D))) << 24))
+
+/**
+ *  \name Basic data types
+ */
+/* @{ */
+
+#ifdef __CC_ARM
+/* ARM's compiler throws warnings if we use an enum: like "SDL_bool x = a < b;" */
+#define SDL_FALSE 0
+#define SDL_TRUE 1
+typedef int SDL_bool;
+#else
+typedef enum
+{
+    SDL_FALSE = 0,
+    SDL_TRUE = 1
+} SDL_bool;
+#endif
+
+/**
+ * \brief A signed 8-bit integer type.
+ */
+#define SDL_MAX_SINT8   ((Sint8)0x7F)           /* 127 */
+#define SDL_MIN_SINT8   ((Sint8)(~0x7F))        /* -128 */
+typedef int8_t Sint8;
+/**
+ * \brief An unsigned 8-bit integer type.
+ */
+#define SDL_MAX_UINT8   ((Uint8)0xFF)           /* 255 */
+#define SDL_MIN_UINT8   ((Uint8)0x00)           /* 0 */
+typedef uint8_t Uint8;
+/**
+ * \brief A signed 16-bit integer type.
+ */
+#define SDL_MAX_SINT16  ((Sint16)0x7FFF)        /* 32767 */
+#define SDL_MIN_SINT16  ((Sint16)(~0x7FFF))     /* -32768 */
+typedef int16_t Sint16;
+/**
+ * \brief An unsigned 16-bit integer type.
+ */
+#define SDL_MAX_UINT16  ((Uint16)0xFFFF)        /* 65535 */
+#define SDL_MIN_UINT16  ((Uint16)0x0000)        /* 0 */
+typedef uint16_t Uint16;
+/**
+ * \brief A signed 32-bit integer type.
+ */
+#define SDL_MAX_SINT32  ((Sint32)0x7FFFFFFF)    /* 2147483647 */
+#define SDL_MIN_SINT32  ((Sint32)(~0x7FFFFFFF)) /* -2147483648 */
+typedef int32_t Sint32;
+/**
+ * \brief An unsigned 32-bit integer type.
+ */
+#define SDL_MAX_UINT32  ((Uint32)0xFFFFFFFFu)   /* 4294967295 */
+#define SDL_MIN_UINT32  ((Uint32)0x00000000)    /* 0 */
+typedef uint32_t Uint32;
+
+/**
+ * \brief A signed 64-bit integer type.
+ */
+#define SDL_MAX_SINT64  ((Sint64)0x7FFFFFFFFFFFFFFFll)      /* 9223372036854775807 */
+#define SDL_MIN_SINT64  ((Sint64)(~0x7FFFFFFFFFFFFFFFll))   /* -9223372036854775808 */
+typedef int64_t Sint64;
+/**
+ * \brief An unsigned 64-bit integer type.
+ */
+#define SDL_MAX_UINT64  ((Uint64)0xFFFFFFFFFFFFFFFFull)     /* 18446744073709551615 */
+#define SDL_MIN_UINT64  ((Uint64)(0x0000000000000000ull))   /* 0 */
+typedef uint64_t Uint64;
+
+/* @} *//* Basic data types */
+
+/* Make sure we have macros for printing 64 bit values.
+ * <stdint.h> should define these but this is not true all platforms.
+ * (for example win32) */
+#ifndef SDL_PRIs64
+#ifdef PRIs64
+#define SDL_PRIs64 PRIs64
+#elif defined(__WIN32__)
+#define SDL_PRIs64 "I64d"
+#elif defined(__LINUX__) && defined(__LP64__)
+#define SDL_PRIs64 "ld"
+#else
+#define SDL_PRIs64 "lld"
+#endif
+#endif
+#ifndef SDL_PRIu64
+#ifdef PRIu64
+#define SDL_PRIu64 PRIu64
+#elif defined(__WIN32__)
+#define SDL_PRIu64 "I64u"
+#elif defined(__LINUX__) && defined(__LP64__)
+#define SDL_PRIu64 "lu"
+#else
+#define SDL_PRIu64 "llu"
+#endif
+#endif
+#ifndef SDL_PRIx64
+#ifdef PRIx64
+#define SDL_PRIx64 PRIx64
+#elif defined(__WIN32__)
+#define SDL_PRIx64 "I64x"
+#elif defined(__LINUX__) && defined(__LP64__)
+#define SDL_PRIx64 "lx"
+#else
+#define SDL_PRIx64 "llx"
+#endif
+#endif
+#ifndef SDL_PRIX64
+#ifdef PRIX64
+#define SDL_PRIX64 PRIX64
+#elif defined(__WIN32__)
+#define SDL_PRIX64 "I64X"
+#elif defined(__LINUX__) && defined(__LP64__)
+#define SDL_PRIX64 "lX"
+#else
+#define SDL_PRIX64 "llX"
+#endif
+#endif
+
+/* Annotations to help code analysis tools */
+#ifdef SDL_DISABLE_ANALYZE_MACROS
+#define SDL_IN_BYTECAP(x)
+#define SDL_INOUT_Z_CAP(x)
+#define SDL_OUT_Z_CAP(x)
+#define SDL_OUT_CAP(x)
+#define SDL_OUT_BYTECAP(x)
+#define SDL_OUT_Z_BYTECAP(x)
+#define SDL_PRINTF_FORMAT_STRING
+#define SDL_SCANF_FORMAT_STRING
+#define SDL_PRINTF_VARARG_FUNC( fmtargnumber )
+#define SDL_SCANF_VARARG_FUNC( fmtargnumber )
+#else
+#if defined(_MSC_VER) && (_MSC_VER >= 1600) /* VS 2010 and above */
+#include <sal.h>
+
+#define SDL_IN_BYTECAP(x) _In_bytecount_(x)
+#define SDL_INOUT_Z_CAP(x) _Inout_z_cap_(x)
+#define SDL_OUT_Z_CAP(x) _Out_z_cap_(x)
+#define SDL_OUT_CAP(x) _Out_cap_(x)
+#define SDL_OUT_BYTECAP(x) _Out_bytecap_(x)
+#define SDL_OUT_Z_BYTECAP(x) _Out_z_bytecap_(x)
+
+#define SDL_PRINTF_FORMAT_STRING _Printf_format_string_
+#define SDL_SCANF_FORMAT_STRING _Scanf_format_string_impl_
+#else
+#define SDL_IN_BYTECAP(x)
+#define SDL_INOUT_Z_CAP(x)
+#define SDL_OUT_Z_CAP(x)
+#define SDL_OUT_CAP(x)
+#define SDL_OUT_BYTECAP(x)
+#define SDL_OUT_Z_BYTECAP(x)
+#define SDL_PRINTF_FORMAT_STRING
+#define SDL_SCANF_FORMAT_STRING
+#endif
+#if defined(__GNUC__)
+#define SDL_PRINTF_VARARG_FUNC( fmtargnumber ) __attribute__ (( format( __printf__, fmtargnumber, fmtargnumber+1 )))
+#define SDL_SCANF_VARARG_FUNC( fmtargnumber ) __attribute__ (( format( __scanf__, fmtargnumber, fmtargnumber+1 )))
+#else
+#define SDL_PRINTF_VARARG_FUNC( fmtargnumber )
+#define SDL_SCANF_VARARG_FUNC( fmtargnumber )
+#endif
+#endif /* SDL_DISABLE_ANALYZE_MACROS */
+
+#define SDL_COMPILE_TIME_ASSERT(name, x)               \
+       typedef int SDL_compile_time_assert_ ## name[(x) * 2 - 1]
+/** \cond */
+#ifndef DOXYGEN_SHOULD_IGNORE_THIS
+SDL_COMPILE_TIME_ASSERT(uint8, sizeof(Uint8) == 1);
+SDL_COMPILE_TIME_ASSERT(sint8, sizeof(Sint8) == 1);
+SDL_COMPILE_TIME_ASSERT(uint16, sizeof(Uint16) == 2);
+SDL_COMPILE_TIME_ASSERT(sint16, sizeof(Sint16) == 2);
+SDL_COMPILE_TIME_ASSERT(uint32, sizeof(Uint32) == 4);
+SDL_COMPILE_TIME_ASSERT(sint32, sizeof(Sint32) == 4);
+SDL_COMPILE_TIME_ASSERT(uint64, sizeof(Uint64) == 8);
+SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8);
+#endif /* DOXYGEN_SHOULD_IGNORE_THIS */
+/** \endcond */
+
+/* Check to make sure enums are the size of ints, for structure packing.
+   For both Watcom C/C++ and Borland C/C++ the compiler option that makes
+   enums having the size of an int must be enabled.
+   This is "-b" for Borland C/C++ and "-ei" for Watcom C/C++ (v11).
+*/
+
+/** \cond */
+#ifndef DOXYGEN_SHOULD_IGNORE_THIS
+#if !defined(__ANDROID__)
+   /* TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative */
+typedef enum
+{
+    DUMMY_ENUM_VALUE
+} SDL_DUMMY_ENUM;
+
+SDL_COMPILE_TIME_ASSERT(enum, sizeof(SDL_DUMMY_ENUM) == sizeof(int));
+#endif
+#endif /* DOXYGEN_SHOULD_IGNORE_THIS */
+/** \endcond */
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined(HAVE_ALLOCA) && !defined(alloca)
+# if defined(HAVE_ALLOCA_H)
+#  include <alloca.h>
+# elif defined(__GNUC__)
+#  define alloca __builtin_alloca
+# elif defined(_MSC_VER)
+#  include <malloc.h>
+#  define alloca _alloca
+# elif defined(__WATCOMC__)
+#  include <malloc.h>
+# elif defined(__BORLANDC__)
+#  include <malloc.h>
+# elif defined(__DMC__)
+#  include <stdlib.h>
+# elif defined(__AIX__)
+#pragma alloca
+# elif defined(__MRC__)
+void *alloca(unsigned);
+# else
+char *alloca();
+# endif
+#endif
+#ifdef HAVE_ALLOCA
+#define SDL_stack_alloc(type, count)    (type*)alloca(sizeof(type)*(count))
+#define SDL_stack_free(data)
+#else
+#define SDL_stack_alloc(type, count)    (type*)SDL_malloc(sizeof(type)*(count))
+#define SDL_stack_free(data)            SDL_free(data)
+#endif
+
+extern DECLSPEC void *SDLCALL SDL_malloc(size_t size);
+extern DECLSPEC void *SDLCALL SDL_calloc(size_t nmemb, size_t size);
+extern DECLSPEC void *SDLCALL SDL_realloc(void *mem, size_t size);
+extern DECLSPEC void SDLCALL SDL_free(void *mem);
+
+typedef void *(SDLCALL *SDL_malloc_func)(size_t size);
+typedef void *(SDLCALL *SDL_calloc_func)(size_t nmemb, size_t size);
+typedef void *(SDLCALL *SDL_realloc_func)(void *mem, size_t size);
+typedef void (SDLCALL *SDL_free_func)(void *mem);
+
+/**
+ *  \brief Get the current set of SDL memory functions
+ */
+extern DECLSPEC void SDLCALL SDL_GetMemoryFunctions(SDL_malloc_func *malloc_func,
+                                                    SDL_calloc_func *calloc_func,
+                                                    SDL_realloc_func *realloc_func,
+                                                    SDL_free_func *free_func);
+
+/**
+ *  \brief Replace SDL's memory allocation functions with a custom set
+ *
+ *  \note If you are replacing SDL's memory functions, you should call
+ *        SDL_GetNumAllocations() and be very careful if it returns non-zero.
+ *        That means that your free function will be called with memory
+ *        allocated by the previous memory allocation functions.
+ */
+extern DECLSPEC int SDLCALL SDL_SetMemoryFunctions(SDL_malloc_func malloc_func,
+                                                   SDL_calloc_func calloc_func,
+                                                   SDL_realloc_func realloc_func,
+                                                   SDL_free_func free_func);
+
+/**
+ *  \brief Get the number of outstanding (unfreed) allocations
+ */
+extern DECLSPEC int SDLCALL SDL_GetNumAllocations(void);
+
+extern DECLSPEC char *SDLCALL SDL_getenv(const char *name);
+extern DECLSPEC int SDLCALL SDL_setenv(const char *name, const char *value, int overwrite);
+
+extern DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size, int (*compare) (const void *, const void *));
+
+extern DECLSPEC int SDLCALL SDL_abs(int x);
+
+/* !!! FIXME: these have side effects. You probably shouldn't use them. */
+/* !!! FIXME: Maybe we do forceinline functions of SDL_mini, SDL_minf, etc? */
+#define SDL_min(x, y) (((x) < (y)) ? (x) : (y))
+#define SDL_max(x, y) (((x) > (y)) ? (x) : (y))
+
+extern DECLSPEC int SDLCALL SDL_isdigit(int x);
+extern DECLSPEC int SDLCALL SDL_isspace(int x);
+extern DECLSPEC int SDLCALL SDL_toupper(int x);
+extern DECLSPEC int SDLCALL SDL_tolower(int x);
+
+extern DECLSPEC void *SDLCALL SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len);
+
+#define SDL_zero(x) SDL_memset(&(x), 0, sizeof((x)))
+#define SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x)))
+
+/* Note that memset() is a byte assignment and this is a 32-bit assignment, so they're not directly equivalent. */
+SDL_FORCE_INLINE void SDL_memset4(void *dst, Uint32 val, size_t dwords)
+{
+#if defined(__GNUC__) && defined(i386)
+    int u0, u1, u2;
+    __asm__ __volatile__ (
+        "cld \n\t"
+        "rep ; stosl \n\t"
+        : "=&D" (u0), "=&a" (u1), "=&c" (u2)
+        : "0" (dst), "1" (val), "2" (SDL_static_cast(Uint32, dwords))
+        : "memory"
+    );
+#else
+    size_t _n = (dwords + 3) / 4;
+    Uint32 *_p = SDL_static_cast(Uint32 *, dst);
+    Uint32 _val = (val);
+    if (dwords == 0)
+        return;
+    switch (dwords % 4)
+    {
+        case 0: do {    *_p++ = _val;   /* fallthrough */
+        case 3:         *_p++ = _val;   /* fallthrough */
+        case 2:         *_p++ = _val;   /* fallthrough */
+        case 1:         *_p++ = _val;   /* fallthrough */
+        } while ( --_n );
+    }
+#endif
+}
+
+
+extern DECLSPEC void *SDLCALL SDL_memcpy(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len);
+
+extern DECLSPEC void *SDLCALL SDL_memmove(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len);
+extern DECLSPEC int SDLCALL SDL_memcmp(const void *s1, const void *s2, size_t len);
+
+extern DECLSPEC size_t SDLCALL SDL_wcslen(const wchar_t *wstr);
+extern DECLSPEC size_t SDLCALL SDL_wcslcpy(SDL_OUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen);
+extern DECLSPEC size_t SDLCALL SDL_wcslcat(SDL_INOUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen);
+extern DECLSPEC int SDLCALL SDL_wcscmp(const wchar_t *str1, const wchar_t *str2);
+
+extern DECLSPEC size_t SDLCALL SDL_strlen(const char *str);
+extern DECLSPEC size_t SDLCALL SDL_strlcpy(SDL_OUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen);
+extern DECLSPEC size_t SDLCALL SDL_utf8strlcpy(SDL_OUT_Z_CAP(dst_bytes) char *dst, const char *src, size_t dst_bytes);
+extern DECLSPEC size_t SDLCALL SDL_strlcat(SDL_INOUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen);
+extern DECLSPEC char *SDLCALL SDL_strdup(const char *str);
+extern DECLSPEC char *SDLCALL SDL_strrev(char *str);
+extern DECLSPEC char *SDLCALL SDL_strupr(char *str);
+extern DECLSPEC char *SDLCALL SDL_strlwr(char *str);
+extern DECLSPEC char *SDLCALL SDL_strchr(const char *str, int c);
+extern DECLSPEC char *SDLCALL SDL_strrchr(const char *str, int c);
+extern DECLSPEC char *SDLCALL SDL_strstr(const char *haystack, const char *needle);
+extern DECLSPEC size_t SDLCALL SDL_utf8strlen(const char *str);
+
+extern DECLSPEC char *SDLCALL SDL_itoa(int value, char *str, int radix);
+extern DECLSPEC char *SDLCALL SDL_uitoa(unsigned int value, char *str, int radix);
+extern DECLSPEC char *SDLCALL SDL_ltoa(long value, char *str, int radix);
+extern DECLSPEC char *SDLCALL SDL_ultoa(unsigned long value, char *str, int radix);
+extern DECLSPEC char *SDLCALL SDL_lltoa(Sint64 value, char *str, int radix);
+extern DECLSPEC char *SDLCALL SDL_ulltoa(Uint64 value, char *str, int radix);
+
+extern DECLSPEC int SDLCALL SDL_atoi(const char *str);
+extern DECLSPEC double SDLCALL SDL_atof(const char *str);
+extern DECLSPEC long SDLCALL SDL_strtol(const char *str, char **endp, int base);
+extern DECLSPEC unsigned long SDLCALL SDL_strtoul(const char *str, char **endp, int base);
+extern DECLSPEC Sint64 SDLCALL SDL_strtoll(const char *str, char **endp, int base);
+extern DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *str, char **endp, int base);
+extern DECLSPEC double SDLCALL SDL_strtod(const char *str, char **endp);
+
+extern DECLSPEC int SDLCALL SDL_strcmp(const char *str1, const char *str2);
+extern DECLSPEC int SDLCALL SDL_strncmp(const char *str1, const char *str2, size_t maxlen);
+extern DECLSPEC int SDLCALL SDL_strcasecmp(const char *str1, const char *str2);
+extern DECLSPEC int SDLCALL SDL_strncasecmp(const char *str1, const char *str2, size_t len);
+
+extern DECLSPEC int SDLCALL SDL_sscanf(const char *text, SDL_SCANF_FORMAT_STRING const char *fmt, ...) SDL_SCANF_VARARG_FUNC(2);
+extern DECLSPEC int SDLCALL SDL_vsscanf(const char *text, const char *fmt, va_list ap);
+extern DECLSPEC int SDLCALL SDL_snprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt, ... ) SDL_PRINTF_VARARG_FUNC(3);
+extern DECLSPEC int SDLCALL SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, const char *fmt, va_list ap);
+
+#ifndef HAVE_M_PI
+#ifndef M_PI
+#define M_PI    3.14159265358979323846264338327950288   /**< pi */
+#endif
+#endif
+
+extern DECLSPEC double SDLCALL SDL_acos(double x);
+extern DECLSPEC float SDLCALL SDL_acosf(float x);
+extern DECLSPEC double SDLCALL SDL_asin(double x);
+extern DECLSPEC float SDLCALL SDL_asinf(float x);
+extern DECLSPEC double SDLCALL SDL_atan(double x);
+extern DECLSPEC float SDLCALL SDL_atanf(float x);
+extern DECLSPEC double SDLCALL SDL_atan2(double x, double y);
+extern DECLSPEC float SDLCALL SDL_atan2f(float x, float y);
+extern DECLSPEC double SDLCALL SDL_ceil(double x);
+extern DECLSPEC float SDLCALL SDL_ceilf(float x);
+extern DECLSPEC double SDLCALL SDL_copysign(double x, double y);
+extern DECLSPEC float SDLCALL SDL_copysignf(float x, float y);
+extern DECLSPEC double SDLCALL SDL_cos(double x);
+extern DECLSPEC float SDLCALL SDL_cosf(float x);
+extern DECLSPEC double SDLCALL SDL_fabs(double x);
+extern DECLSPEC float SDLCALL SDL_fabsf(float x);
+extern DECLSPEC double SDLCALL SDL_floor(double x);
+extern DECLSPEC float SDLCALL SDL_floorf(float x);
+extern DECLSPEC double SDLCALL SDL_fmod(double x, double y);
+extern DECLSPEC float SDLCALL SDL_fmodf(float x, float y);
+extern DECLSPEC double SDLCALL SDL_log(double x);
+extern DECLSPEC float SDLCALL SDL_logf(float x);
+extern DECLSPEC double SDLCALL SDL_log10(double x);
+extern DECLSPEC float SDLCALL SDL_log10f(float x);
+extern DECLSPEC double SDLCALL SDL_pow(double x, double y);
+extern DECLSPEC float SDLCALL SDL_powf(float x, float y);
+extern DECLSPEC double SDLCALL SDL_scalbn(double x, int n);
+extern DECLSPEC float SDLCALL SDL_scalbnf(float x, int n);
+extern DECLSPEC double SDLCALL SDL_sin(double x);
+extern DECLSPEC float SDLCALL SDL_sinf(float x);
+extern DECLSPEC double SDLCALL SDL_sqrt(double x);
+extern DECLSPEC float SDLCALL SDL_sqrtf(float x);
+extern DECLSPEC double SDLCALL SDL_tan(double x);
+extern DECLSPEC float SDLCALL SDL_tanf(float x);
+
+/* The SDL implementation of iconv() returns these error codes */
+#define SDL_ICONV_ERROR     (size_t)-1
+#define SDL_ICONV_E2BIG     (size_t)-2
+#define SDL_ICONV_EILSEQ    (size_t)-3
+#define SDL_ICONV_EINVAL    (size_t)-4
+
+/* SDL_iconv_* are now always real symbols/types, not macros or inlined. */
+typedef struct _SDL_iconv_t *SDL_iconv_t;
+extern DECLSPEC SDL_iconv_t SDLCALL SDL_iconv_open(const char *tocode,
+                                                   const char *fromcode);
+extern DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd);
+extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf,
+                                         size_t * inbytesleft, char **outbuf,
+                                         size_t * outbytesleft);
+/**
+ *  This function converts a string between encodings in one pass, returning a
+ *  string that must be freed with SDL_free() or NULL on error.
+ */
+extern DECLSPEC char *SDLCALL SDL_iconv_string(const char *tocode,
+                                               const char *fromcode,
+                                               const char *inbuf,
+                                               size_t inbytesleft);
+#define SDL_iconv_utf8_locale(S)    SDL_iconv_string("", "UTF-8", S, SDL_strlen(S)+1)
+#define SDL_iconv_utf8_ucs2(S)      (Uint16 *)SDL_iconv_string("UCS-2-INTERNAL", "UTF-8", S, SDL_strlen(S)+1)
+#define SDL_iconv_utf8_ucs4(S)      (Uint32 *)SDL_iconv_string("UCS-4-INTERNAL", "UTF-8", S, SDL_strlen(S)+1)
+
+/* force builds using Clang's static analysis tools to use literal C runtime
+   here, since there are possibly tests that are ineffective otherwise. */
+#if defined(__clang_analyzer__) && !defined(SDL_DISABLE_ANALYZE_MACROS)
+#define SDL_malloc malloc
+#define SDL_calloc calloc
+#define SDL_realloc realloc
+#define SDL_free free
+#define SDL_memset memset
+#define SDL_memcpy memcpy
+#define SDL_memmove memmove
+#define SDL_memcmp memcmp
+#define SDL_strlen strlen
+#define SDL_strlcpy strlcpy
+#define SDL_strlcat strlcat
+#define SDL_strdup strdup
+#define SDL_strchr strchr
+#define SDL_strrchr strrchr
+#define SDL_strstr strstr
+#define SDL_strcmp strcmp
+#define SDL_strncmp strncmp
+#define SDL_strcasecmp strcasecmp
+#define SDL_strncasecmp strncasecmp
+#define SDL_sscanf sscanf
+#define SDL_vsscanf vsscanf
+#define SDL_snprintf snprintf
+#define SDL_vsnprintf vsnprintf
+#endif
+
+SDL_FORCE_INLINE void *SDL_memcpy4(SDL_OUT_BYTECAP(dwords*4) void *dst, SDL_IN_BYTECAP(dwords*4) const void *src, size_t dwords)
+{
+    return SDL_memcpy(dst, src, dwords * 4);
+}
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_stdinc_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_surface.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_surface.h
new file mode 100644
index 0000000..45e5366
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_surface.h
@@ -0,0 +1,546 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_surface.h
+ *
+ *  Header file for ::SDL_Surface definition and management functions.
+ */
+
+#ifndef SDL_surface_h_
+#define SDL_surface_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_pixels.h"
+#include "SDL_rect.h"
+#include "SDL_blendmode.h"
+#include "SDL_rwops.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \name Surface flags
+ *
+ *  These are the currently supported flags for the ::SDL_Surface.
+ *
+ *  \internal
+ *  Used internally (read-only).
+ */
+/* @{ */
+#define SDL_SWSURFACE       0           /**< Just here for compatibility */
+#define SDL_PREALLOC        0x00000001  /**< Surface uses preallocated memory */
+#define SDL_RLEACCEL        0x00000002  /**< Surface is RLE encoded */
+#define SDL_DONTFREE        0x00000004  /**< Surface is referenced internally */
+/* @} *//* Surface flags */
+
+/**
+ *  Evaluates to true if the surface needs to be locked before access.
+ */
+#define SDL_MUSTLOCK(S) (((S)->flags & SDL_RLEACCEL) != 0)
+
+/**
+ * \brief A collection of pixels used in software blitting.
+ *
+ * \note  This structure should be treated as read-only, except for \c pixels,
+ *        which, if not NULL, contains the raw pixel data for the surface.
+ */
+typedef struct SDL_Surface
+{
+    Uint32 flags;               /**< Read-only */
+    SDL_PixelFormat *format;    /**< Read-only */
+    int w, h;                   /**< Read-only */
+    int pitch;                  /**< Read-only */
+    void *pixels;               /**< Read-write */
+
+    /** Application data associated with the surface */
+    void *userdata;             /**< Read-write */
+
+    /** information needed for surfaces requiring locks */
+    int locked;                 /**< Read-only */
+    void *lock_data;            /**< Read-only */
+
+    /** clipping information */
+    SDL_Rect clip_rect;         /**< Read-only */
+
+    /** info for fast blit mapping to other surfaces */
+    struct SDL_BlitMap *map;    /**< Private */
+
+    /** Reference count -- used when freeing surface */
+    int refcount;               /**< Read-mostly */
+} SDL_Surface;
+
+/**
+ * \brief The type of function used for surface blitting functions.
+ */
+typedef int (SDLCALL *SDL_blit) (struct SDL_Surface * src, SDL_Rect * srcrect,
+                                 struct SDL_Surface * dst, SDL_Rect * dstrect);
+
+/**
+ * \brief The formula used for converting between YUV and RGB
+ */
+typedef enum
+{
+    SDL_YUV_CONVERSION_JPEG,        /**< Full range JPEG */
+    SDL_YUV_CONVERSION_BT601,       /**< BT.601 (the default) */
+    SDL_YUV_CONVERSION_BT709,       /**< BT.709 */
+    SDL_YUV_CONVERSION_AUTOMATIC    /**< BT.601 for SD content, BT.709 for HD content */
+} SDL_YUV_CONVERSION_MODE;
+
+/**
+ *  Allocate and free an RGB surface.
+ *
+ *  If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
+ *  If the depth is greater than 8 bits, the pixel format is set using the
+ *  flags '[RGB]mask'.
+ *
+ *  If the function runs out of memory, it will return NULL.
+ *
+ *  \param flags The \c flags are obsolete and should be set to 0.
+ *  \param width The width in pixels of the surface to create.
+ *  \param height The height in pixels of the surface to create.
+ *  \param depth The depth in bits of the surface to create.
+ *  \param Rmask The red mask of the surface to create.
+ *  \param Gmask The green mask of the surface to create.
+ *  \param Bmask The blue mask of the surface to create.
+ *  \param Amask The alpha mask of the surface to create.
+ */
+extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurface
+    (Uint32 flags, int width, int height, int depth,
+     Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
+
+/* !!! FIXME for 2.1: why does this ask for depth? Format provides that. */
+extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceWithFormat
+    (Uint32 flags, int width, int height, int depth, Uint32 format);
+
+extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels,
+                                                              int width,
+                                                              int height,
+                                                              int depth,
+                                                              int pitch,
+                                                              Uint32 Rmask,
+                                                              Uint32 Gmask,
+                                                              Uint32 Bmask,
+                                                              Uint32 Amask);
+extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceWithFormatFrom
+    (void *pixels, int width, int height, int depth, int pitch, Uint32 format);
+extern DECLSPEC void SDLCALL SDL_FreeSurface(SDL_Surface * surface);
+
+/**
+ *  \brief Set the palette used by a surface.
+ *
+ *  \return 0, or -1 if the surface format doesn't use a palette.
+ *
+ *  \note A single palette can be shared with many surfaces.
+ */
+extern DECLSPEC int SDLCALL SDL_SetSurfacePalette(SDL_Surface * surface,
+                                                  SDL_Palette * palette);
+
+/**
+ *  \brief Sets up a surface for directly accessing the pixels.
+ *
+ *  Between calls to SDL_LockSurface() / SDL_UnlockSurface(), you can write
+ *  to and read from \c surface->pixels, using the pixel format stored in
+ *  \c surface->format.  Once you are done accessing the surface, you should
+ *  use SDL_UnlockSurface() to release it.
+ *
+ *  Not all surfaces require locking.  If SDL_MUSTLOCK(surface) evaluates
+ *  to 0, then you can read and write to the surface at any time, and the
+ *  pixel format of the surface will not change.
+ *
+ *  No operating system or library calls should be made between lock/unlock
+ *  pairs, as critical system locks may be held during this time.
+ *
+ *  SDL_LockSurface() returns 0, or -1 if the surface couldn't be locked.
+ *
+ *  \sa SDL_UnlockSurface()
+ */
+extern DECLSPEC int SDLCALL SDL_LockSurface(SDL_Surface * surface);
+/** \sa SDL_LockSurface() */
+extern DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface * surface);
+
+/**
+ *  Load a surface from a seekable SDL data stream (memory or file).
+ *
+ *  If \c freesrc is non-zero, the stream will be closed after being read.
+ *
+ *  The new surface should be freed with SDL_FreeSurface().
+ *
+ *  \return the new surface, or NULL if there was an error.
+ */
+extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadBMP_RW(SDL_RWops * src,
+                                                    int freesrc);
+
+/**
+ *  Load a surface from a file.
+ *
+ *  Convenience macro.
+ */
+#define SDL_LoadBMP(file)   SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1)
+
+/**
+ *  Save a surface to a seekable SDL data stream (memory or file).
+ *
+ *  Surfaces with a 24-bit, 32-bit and paletted 8-bit format get saved in the
+ *  BMP directly. Other RGB formats with 8-bit or higher get converted to a
+ *  24-bit surface or, if they have an alpha mask or a colorkey, to a 32-bit
+ *  surface before they are saved. YUV and paletted 1-bit and 4-bit formats are
+ *  not supported.
+ *
+ *  If \c freedst is non-zero, the stream will be closed after being written.
+ *
+ *  \return 0 if successful or -1 if there was an error.
+ */
+extern DECLSPEC int SDLCALL SDL_SaveBMP_RW
+    (SDL_Surface * surface, SDL_RWops * dst, int freedst);
+
+/**
+ *  Save a surface to a file.
+ *
+ *  Convenience macro.
+ */
+#define SDL_SaveBMP(surface, file) \
+        SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1)
+
+/**
+ *  \brief Sets the RLE acceleration hint for a surface.
+ *
+ *  \return 0 on success, or -1 if the surface is not valid
+ *
+ *  \note If RLE is enabled, colorkey and alpha blending blits are much faster,
+ *        but the surface must be locked before directly accessing the pixels.
+ */
+extern DECLSPEC int SDLCALL SDL_SetSurfaceRLE(SDL_Surface * surface,
+                                              int flag);
+
+/**
+ *  \brief Sets the color key (transparent pixel) in a blittable surface.
+ *
+ *  \param surface The surface to update
+ *  \param flag Non-zero to enable colorkey and 0 to disable colorkey
+ *  \param key The transparent pixel in the native surface format
+ *
+ *  \return 0 on success, or -1 if the surface is not valid
+ *
+ *  You can pass SDL_RLEACCEL to enable RLE accelerated blits.
+ */
+extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface,
+                                            int flag, Uint32 key);
+
+/**
+ *  \brief Gets the color key (transparent pixel) in a blittable surface.
+ *
+ *  \param surface The surface to update
+ *  \param key A pointer filled in with the transparent pixel in the native
+ *             surface format
+ *
+ *  \return 0 on success, or -1 if the surface is not valid or colorkey is not
+ *          enabled.
+ */
+extern DECLSPEC int SDLCALL SDL_GetColorKey(SDL_Surface * surface,
+                                            Uint32 * key);
+
+/**
+ *  \brief Set an additional color value used in blit operations.
+ *
+ *  \param surface The surface to update.
+ *  \param r The red color value multiplied into blit operations.
+ *  \param g The green color value multiplied into blit operations.
+ *  \param b The blue color value multiplied into blit operations.
+ *
+ *  \return 0 on success, or -1 if the surface is not valid.
+ *
+ *  \sa SDL_GetSurfaceColorMod()
+ */
+extern DECLSPEC int SDLCALL SDL_SetSurfaceColorMod(SDL_Surface * surface,
+                                                   Uint8 r, Uint8 g, Uint8 b);
+
+
+/**
+ *  \brief Get the additional color value used in blit operations.
+ *
+ *  \param surface The surface to query.
+ *  \param r A pointer filled in with the current red color value.
+ *  \param g A pointer filled in with the current green color value.
+ *  \param b A pointer filled in with the current blue color value.
+ *
+ *  \return 0 on success, or -1 if the surface is not valid.
+ *
+ *  \sa SDL_SetSurfaceColorMod()
+ */
+extern DECLSPEC int SDLCALL SDL_GetSurfaceColorMod(SDL_Surface * surface,
+                                                   Uint8 * r, Uint8 * g,
+                                                   Uint8 * b);
+
+/**
+ *  \brief Set an additional alpha value used in blit operations.
+ *
+ *  \param surface The surface to update.
+ *  \param alpha The alpha value multiplied into blit operations.
+ *
+ *  \return 0 on success, or -1 if the surface is not valid.
+ *
+ *  \sa SDL_GetSurfaceAlphaMod()
+ */
+extern DECLSPEC int SDLCALL SDL_SetSurfaceAlphaMod(SDL_Surface * surface,
+                                                   Uint8 alpha);
+
+/**
+ *  \brief Get the additional alpha value used in blit operations.
+ *
+ *  \param surface The surface to query.
+ *  \param alpha A pointer filled in with the current alpha value.
+ *
+ *  \return 0 on success, or -1 if the surface is not valid.
+ *
+ *  \sa SDL_SetSurfaceAlphaMod()
+ */
+extern DECLSPEC int SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface * surface,
+                                                   Uint8 * alpha);
+
+/**
+ *  \brief Set the blend mode used for blit operations.
+ *
+ *  \param surface The surface to update.
+ *  \param blendMode ::SDL_BlendMode to use for blit blending.
+ *
+ *  \return 0 on success, or -1 if the parameters are not valid.
+ *
+ *  \sa SDL_GetSurfaceBlendMode()
+ */
+extern DECLSPEC int SDLCALL SDL_SetSurfaceBlendMode(SDL_Surface * surface,
+                                                    SDL_BlendMode blendMode);
+
+/**
+ *  \brief Get the blend mode used for blit operations.
+ *
+ *  \param surface   The surface to query.
+ *  \param blendMode A pointer filled in with the current blend mode.
+ *
+ *  \return 0 on success, or -1 if the surface is not valid.
+ *
+ *  \sa SDL_SetSurfaceBlendMode()
+ */
+extern DECLSPEC int SDLCALL SDL_GetSurfaceBlendMode(SDL_Surface * surface,
+                                                    SDL_BlendMode *blendMode);
+
+/**
+ *  Sets the clipping rectangle for the destination surface in a blit.
+ *
+ *  If the clip rectangle is NULL, clipping will be disabled.
+ *
+ *  If the clip rectangle doesn't intersect the surface, the function will
+ *  return SDL_FALSE and blits will be completely clipped.  Otherwise the
+ *  function returns SDL_TRUE and blits to the surface will be clipped to
+ *  the intersection of the surface area and the clipping rectangle.
+ *
+ *  Note that blits are automatically clipped to the edges of the source
+ *  and destination surfaces.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_SetClipRect(SDL_Surface * surface,
+                                                 const SDL_Rect * rect);
+
+/**
+ *  Gets the clipping rectangle for the destination surface in a blit.
+ *
+ *  \c rect must be a pointer to a valid rectangle which will be filled
+ *  with the correct values.
+ */
+extern DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface * surface,
+                                             SDL_Rect * rect);
+
+/*
+ * Creates a new surface identical to the existing surface
+ */
+extern DECLSPEC SDL_Surface *SDLCALL SDL_DuplicateSurface(SDL_Surface * surface);
+
+/**
+ *  Creates a new surface of the specified format, and then copies and maps
+ *  the given surface to it so the blit of the converted surface will be as
+ *  fast as possible.  If this function fails, it returns NULL.
+ *
+ *  The \c flags parameter is passed to SDL_CreateRGBSurface() and has those
+ *  semantics.  You can also pass ::SDL_RLEACCEL in the flags parameter and
+ *  SDL will try to RLE accelerate colorkey and alpha blits in the resulting
+ *  surface.
+ */
+extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurface
+    (SDL_Surface * src, const SDL_PixelFormat * fmt, Uint32 flags);
+extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurfaceFormat
+    (SDL_Surface * src, Uint32 pixel_format, Uint32 flags);
+
+/**
+ * \brief Copy a block of pixels of one format to another format
+ *
+ *  \return 0 on success, or -1 if there was an error
+ */
+extern DECLSPEC int SDLCALL SDL_ConvertPixels(int width, int height,
+                                              Uint32 src_format,
+                                              const void * src, int src_pitch,
+                                              Uint32 dst_format,
+                                              void * dst, int dst_pitch);
+
+/**
+ *  Performs a fast fill of the given rectangle with \c color.
+ *
+ *  If \c rect is NULL, the whole surface will be filled with \c color.
+ *
+ *  The color should be a pixel of the format used by the surface, and
+ *  can be generated by the SDL_MapRGB() function.
+ *
+ *  \return 0 on success, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_FillRect
+    (SDL_Surface * dst, const SDL_Rect * rect, Uint32 color);
+extern DECLSPEC int SDLCALL SDL_FillRects
+    (SDL_Surface * dst, const SDL_Rect * rects, int count, Uint32 color);
+
+/**
+ *  Performs a fast blit from the source surface to the destination surface.
+ *
+ *  This assumes that the source and destination rectangles are
+ *  the same size.  If either \c srcrect or \c dstrect are NULL, the entire
+ *  surface (\c src or \c dst) is copied.  The final blit rectangles are saved
+ *  in \c srcrect and \c dstrect after all clipping is performed.
+ *
+ *  \return If the blit is successful, it returns 0, otherwise it returns -1.
+ *
+ *  The blit function should not be called on a locked surface.
+ *
+ *  The blit semantics for surfaces with and without blending and colorkey
+ *  are defined as follows:
+ *  \verbatim
+    RGBA->RGB:
+      Source surface blend mode set to SDL_BLENDMODE_BLEND:
+        alpha-blend (using the source alpha-channel and per-surface alpha)
+        SDL_SRCCOLORKEY ignored.
+      Source surface blend mode set to SDL_BLENDMODE_NONE:
+        copy RGB.
+        if SDL_SRCCOLORKEY set, only copy the pixels matching the
+        RGB values of the source color key, ignoring alpha in the
+        comparison.
+
+    RGB->RGBA:
+      Source surface blend mode set to SDL_BLENDMODE_BLEND:
+        alpha-blend (using the source per-surface alpha)
+      Source surface blend mode set to SDL_BLENDMODE_NONE:
+        copy RGB, set destination alpha to source per-surface alpha value.
+      both:
+        if SDL_SRCCOLORKEY set, only copy the pixels matching the
+        source color key.
+
+    RGBA->RGBA:
+      Source surface blend mode set to SDL_BLENDMODE_BLEND:
+        alpha-blend (using the source alpha-channel and per-surface alpha)
+        SDL_SRCCOLORKEY ignored.
+      Source surface blend mode set to SDL_BLENDMODE_NONE:
+        copy all of RGBA to the destination.
+        if SDL_SRCCOLORKEY set, only copy the pixels matching the
+        RGB values of the source color key, ignoring alpha in the
+        comparison.
+
+    RGB->RGB:
+      Source surface blend mode set to SDL_BLENDMODE_BLEND:
+        alpha-blend (using the source per-surface alpha)
+      Source surface blend mode set to SDL_BLENDMODE_NONE:
+        copy RGB.
+      both:
+        if SDL_SRCCOLORKEY set, only copy the pixels matching the
+        source color key.
+    \endverbatim
+ *
+ *  You should call SDL_BlitSurface() unless you know exactly how SDL
+ *  blitting works internally and how to use the other blit functions.
+ */
+#define SDL_BlitSurface SDL_UpperBlit
+
+/**
+ *  This is the public blit function, SDL_BlitSurface(), and it performs
+ *  rectangle validation and clipping before passing it to SDL_LowerBlit()
+ */
+extern DECLSPEC int SDLCALL SDL_UpperBlit
+    (SDL_Surface * src, const SDL_Rect * srcrect,
+     SDL_Surface * dst, SDL_Rect * dstrect);
+
+/**
+ *  This is a semi-private blit function and it performs low-level surface
+ *  blitting only.
+ */
+extern DECLSPEC int SDLCALL SDL_LowerBlit
+    (SDL_Surface * src, SDL_Rect * srcrect,
+     SDL_Surface * dst, SDL_Rect * dstrect);
+
+/**
+ *  \brief Perform a fast, low quality, stretch blit between two surfaces of the
+ *         same pixel format.
+ *
+ *  \note This function uses a static buffer, and is not thread-safe.
+ */
+extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface * src,
+                                            const SDL_Rect * srcrect,
+                                            SDL_Surface * dst,
+                                            const SDL_Rect * dstrect);
+
+#define SDL_BlitScaled SDL_UpperBlitScaled
+
+/**
+ *  This is the public scaled blit function, SDL_BlitScaled(), and it performs
+ *  rectangle validation and clipping before passing it to SDL_LowerBlitScaled()
+ */
+extern DECLSPEC int SDLCALL SDL_UpperBlitScaled
+    (SDL_Surface * src, const SDL_Rect * srcrect,
+    SDL_Surface * dst, SDL_Rect * dstrect);
+
+/**
+ *  This is a semi-private blit function and it performs low-level surface
+ *  scaled blitting only.
+ */
+extern DECLSPEC int SDLCALL SDL_LowerBlitScaled
+    (SDL_Surface * src, SDL_Rect * srcrect,
+    SDL_Surface * dst, SDL_Rect * dstrect);
+
+/**
+ *  \brief Set the YUV conversion mode
+ */
+extern DECLSPEC void SDLCALL SDL_SetYUVConversionMode(SDL_YUV_CONVERSION_MODE mode);
+
+/**
+ *  \brief Get the YUV conversion mode
+ */
+extern DECLSPEC SDL_YUV_CONVERSION_MODE SDLCALL SDL_GetYUVConversionMode(void);
+
+/**
+ *  \brief Get the YUV conversion mode, returning the correct mode for the resolution when the current conversion mode is SDL_YUV_CONVERSION_AUTOMATIC
+ */
+extern DECLSPEC SDL_YUV_CONVERSION_MODE SDLCALL SDL_GetYUVConversionModeForResolution(int width, int height);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_surface_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_system.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_system.h
new file mode 100644
index 0000000..7b776fd
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_system.h
@@ -0,0 +1,247 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_system.h
+ *
+ *  Include file for platform specific SDL API functions
+ */
+
+#ifndef SDL_system_h_
+#define SDL_system_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_keyboard.h"
+#include "SDL_render.h"
+#include "SDL_video.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* Platform specific functions for Windows */
+#ifdef __WIN32__
+	
+/**
+   \brief Set a function that is called for every windows message, before TranslateMessage()
+*/
+typedef void (SDLCALL * SDL_WindowsMessageHook)(void *userdata, void *hWnd, unsigned int message, Uint64 wParam, Sint64 lParam);
+extern DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata);
+
+/**
+   \brief Returns the D3D9 adapter index that matches the specified display index.
+
+   This adapter index can be passed to IDirect3D9::CreateDevice and controls
+   on which monitor a full screen application will appear.
+*/
+extern DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex( int displayIndex );
+
+typedef struct IDirect3DDevice9 IDirect3DDevice9;
+/**
+   \brief Returns the D3D device associated with a renderer, or NULL if it's not a D3D renderer.
+
+   Once you are done using the device, you should release it to avoid a resource leak.
+ */
+extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_RenderGetD3D9Device(SDL_Renderer * renderer);
+
+/**
+   \brief Returns the DXGI Adapter and Output indices for the specified display index.
+
+   These can be passed to EnumAdapters and EnumOutputs respectively to get the objects
+   required to create a DX10 or DX11 device and swap chain.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_DXGIGetOutputInfo( int displayIndex, int *adapterIndex, int *outputIndex );
+
+#endif /* __WIN32__ */
+
+
+/* Platform specific functions for iOS */
+#if defined(__IPHONEOS__) && __IPHONEOS__
+
+#define SDL_iOSSetAnimationCallback(window, interval, callback, callbackParam) SDL_iPhoneSetAnimationCallback(window, interval, callback, callbackParam)
+extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
+
+#define SDL_iOSSetEventPump(enabled) SDL_iPhoneSetEventPump(enabled)
+extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
+
+#endif /* __IPHONEOS__ */
+
+
+/* Platform specific functions for Android */
+#if defined(__ANDROID__) && __ANDROID__
+
+/**
+   \brief Get the JNI environment for the current thread
+
+   This returns JNIEnv*, but the prototype is void* so we don't need jni.h
+ */
+extern DECLSPEC void * SDLCALL SDL_AndroidGetJNIEnv(void);
+
+/**
+   \brief Get the SDL Activity object for the application
+
+   This returns jobject, but the prototype is void* so we don't need jni.h
+   The jobject returned by SDL_AndroidGetActivity is a local reference.
+   It is the caller's responsibility to properly release it
+   (using env->Push/PopLocalFrame or manually with env->DeleteLocalRef)
+ */
+extern DECLSPEC void * SDLCALL SDL_AndroidGetActivity(void);
+
+/**
+   \brief Return true if the application is running on Android TV
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_IsAndroidTV(void);
+
+/**
+   See the official Android developer guide for more information:
+   http://developer.android.com/guide/topics/data/data-storage.html
+*/
+#define SDL_ANDROID_EXTERNAL_STORAGE_READ   0x01
+#define SDL_ANDROID_EXTERNAL_STORAGE_WRITE  0x02
+
+/**
+   \brief Get the path used for internal storage for this application.
+
+   This path is unique to your application and cannot be written to
+   by other applications.
+ */
+extern DECLSPEC const char * SDLCALL SDL_AndroidGetInternalStoragePath(void);
+
+/**
+   \brief Get the current state of external storage, a bitmask of these values:
+    SDL_ANDROID_EXTERNAL_STORAGE_READ
+    SDL_ANDROID_EXTERNAL_STORAGE_WRITE
+
+   If external storage is currently unavailable, this will return 0.
+*/
+extern DECLSPEC int SDLCALL SDL_AndroidGetExternalStorageState(void);
+
+/**
+   \brief Get the path used for external storage for this application.
+
+   This path is unique to your application, but is public and can be
+   written to by other applications.
+ */
+extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath(void);
+
+#endif /* __ANDROID__ */
+
+/* Platform specific functions for WinRT */
+#if defined(__WINRT__) && __WINRT__
+
+/**
+ *  \brief WinRT / Windows Phone path types
+ */
+typedef enum
+{
+    /** \brief The installed app's root directory.
+        Files here are likely to be read-only. */
+    SDL_WINRT_PATH_INSTALLED_LOCATION,
+
+    /** \brief The app's local data store.  Files may be written here */
+    SDL_WINRT_PATH_LOCAL_FOLDER,
+
+    /** \brief The app's roaming data store.  Unsupported on Windows Phone.
+        Files written here may be copied to other machines via a network
+        connection.
+    */
+    SDL_WINRT_PATH_ROAMING_FOLDER,
+
+    /** \brief The app's temporary data store.  Unsupported on Windows Phone.
+        Files written here may be deleted at any time. */
+    SDL_WINRT_PATH_TEMP_FOLDER
+} SDL_WinRT_Path;
+
+
+/**
+ *  \brief WinRT Device Family
+ */
+typedef enum
+{
+    /** \brief Unknown family  */
+    SDL_WINRT_DEVICEFAMILY_UNKNOWN,
+
+    /** \brief Desktop family*/
+    SDL_WINRT_DEVICEFAMILY_DESKTOP,
+
+    /** \brief Mobile family (for example smartphone) */
+    SDL_WINRT_DEVICEFAMILY_MOBILE,
+
+    /** \brief XBox family */
+    SDL_WINRT_DEVICEFAMILY_XBOX,
+} SDL_WinRT_DeviceFamily;
+
+
+/**
+ *  \brief Retrieves a WinRT defined path on the local file system
+ *
+ *  \note Documentation on most app-specific path types on WinRT
+ *      can be found on MSDN, at the URL:
+ *      http://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx
+ *
+ *  \param pathType The type of path to retrieve.
+ *  \return A UCS-2 string (16-bit, wide-char) containing the path, or NULL
+ *      if the path is not available for any reason.  Not all paths are
+ *      available on all versions of Windows.  This is especially true on
+ *      Windows Phone.  Check the documentation for the given
+ *      SDL_WinRT_Path for more information on which path types are
+ *      supported where.
+ */
+extern DECLSPEC const wchar_t * SDLCALL SDL_WinRTGetFSPathUNICODE(SDL_WinRT_Path pathType);
+
+/**
+ *  \brief Retrieves a WinRT defined path on the local file system
+ *
+ *  \note Documentation on most app-specific path types on WinRT
+ *      can be found on MSDN, at the URL:
+ *      http://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx
+ *
+ *  \param pathType The type of path to retrieve.
+ *  \return A UTF-8 string (8-bit, multi-byte) containing the path, or NULL
+ *      if the path is not available for any reason.  Not all paths are
+ *      available on all versions of Windows.  This is especially true on
+ *      Windows Phone.  Check the documentation for the given
+ *      SDL_WinRT_Path for more information on which path types are
+ *      supported where.
+ */
+extern DECLSPEC const char * SDLCALL SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path pathType);
+
+/**
+ *  \brief Detects the device family of WinRT plattform on runtime
+ *
+ *  \return Device family
+ */
+extern DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily();
+
+#endif /* __WINRT__ */
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_system_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_syswm.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_syswm.h
new file mode 100644
index 0000000..8aa4a39
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_syswm.h
@@ -0,0 +1,324 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_syswm.h
+ *
+ *  Include file for SDL custom system window manager hooks.
+ */
+
+#ifndef SDL_syswm_h_
+#define SDL_syswm_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_video.h"
+#include "SDL_version.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \file SDL_syswm.h
+ *
+ *  Your application has access to a special type of event ::SDL_SYSWMEVENT,
+ *  which contains window-manager specific information and arrives whenever
+ *  an unhandled window event occurs.  This event is ignored by default, but
+ *  you can enable it with SDL_EventState().
+ */
+#ifdef SDL_PROTOTYPES_ONLY
+struct SDL_SysWMinfo;
+#else
+
+#if defined(SDL_VIDEO_DRIVER_WINDOWS)
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
+#endif
+#include <windows.h>
+#endif
+
+#if defined(SDL_VIDEO_DRIVER_WINRT)
+#include <Inspectable.h>
+#endif
+
+/* This is the structure for custom window manager events */
+#if defined(SDL_VIDEO_DRIVER_X11)
+#if defined(__APPLE__) && defined(__MACH__)
+/* conflicts with Quickdraw.h */
+#define Cursor X11Cursor
+#endif
+
+#include <X11/Xlib.h>
+#include <X11/Xatom.h>
+
+#if defined(__APPLE__) && defined(__MACH__)
+/* matches the re-define above */
+#undef Cursor
+#endif
+
+#endif /* defined(SDL_VIDEO_DRIVER_X11) */
+
+#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
+#include <directfb.h>
+#endif
+
+#if defined(SDL_VIDEO_DRIVER_COCOA)
+#ifdef __OBJC__
+@class NSWindow;
+#else
+typedef struct _NSWindow NSWindow;
+#endif
+#endif
+
+#if defined(SDL_VIDEO_DRIVER_UIKIT)
+#ifdef __OBJC__
+#include <UIKit/UIKit.h>
+#else
+typedef struct _UIWindow UIWindow;
+typedef struct _UIViewController UIViewController;
+#endif
+typedef Uint32 GLuint;
+#endif
+
+#if defined(SDL_VIDEO_DRIVER_ANDROID)
+typedef struct ANativeWindow ANativeWindow;
+typedef void *EGLSurface;
+#endif
+
+#if defined(SDL_VIDEO_DRIVER_VIVANTE)
+#include "SDL_egl.h"
+#endif
+
+/**
+ *  These are the various supported windowing subsystems
+ */
+typedef enum
+{
+    SDL_SYSWM_UNKNOWN,
+    SDL_SYSWM_WINDOWS,
+    SDL_SYSWM_X11,
+    SDL_SYSWM_DIRECTFB,
+    SDL_SYSWM_COCOA,
+    SDL_SYSWM_UIKIT,
+    SDL_SYSWM_WAYLAND,
+    SDL_SYSWM_MIR,
+    SDL_SYSWM_WINRT,
+    SDL_SYSWM_ANDROID,
+    SDL_SYSWM_VIVANTE,
+    SDL_SYSWM_OS2
+} SDL_SYSWM_TYPE;
+
+/**
+ *  The custom event structure.
+ */
+struct SDL_SysWMmsg
+{
+    SDL_version version;
+    SDL_SYSWM_TYPE subsystem;
+    union
+    {
+#if defined(SDL_VIDEO_DRIVER_WINDOWS)
+        struct {
+            HWND hwnd;                  /**< The window for the message */
+            UINT msg;                   /**< The type of message */
+            WPARAM wParam;              /**< WORD message parameter */
+            LPARAM lParam;              /**< LONG message parameter */
+        } win;
+#endif
+#if defined(SDL_VIDEO_DRIVER_X11)
+        struct {
+            XEvent event;
+        } x11;
+#endif
+#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
+        struct {
+            DFBEvent event;
+        } dfb;
+#endif
+#if defined(SDL_VIDEO_DRIVER_COCOA)
+        struct
+        {
+            /* Latest version of Xcode clang complains about empty structs in C v. C++:
+                 error: empty struct has size 0 in C, size 1 in C++
+             */
+            int dummy;
+            /* No Cocoa window events yet */
+        } cocoa;
+#endif
+#if defined(SDL_VIDEO_DRIVER_UIKIT)
+        struct
+        {
+            int dummy;
+            /* No UIKit window events yet */
+        } uikit;
+#endif
+#if defined(SDL_VIDEO_DRIVER_VIVANTE)
+        struct
+        {
+            int dummy;
+            /* No Vivante window events yet */
+        } vivante;
+#endif
+        /* Can't have an empty union */
+        int dummy;
+    } msg;
+};
+
+/**
+ *  The custom window manager information structure.
+ *
+ *  When this structure is returned, it holds information about which
+ *  low level system it is using, and will be one of SDL_SYSWM_TYPE.
+ */
+struct SDL_SysWMinfo
+{
+    SDL_version version;
+    SDL_SYSWM_TYPE subsystem;
+    union
+    {
+#if defined(SDL_VIDEO_DRIVER_WINDOWS)
+        struct
+        {
+            HWND window;                /**< The window handle */
+            HDC hdc;                    /**< The window device context */
+            HINSTANCE hinstance;        /**< The instance handle */
+        } win;
+#endif
+#if defined(SDL_VIDEO_DRIVER_WINRT)
+        struct
+        {
+            IInspectable * window;      /**< The WinRT CoreWindow */
+        } winrt;
+#endif
+#if defined(SDL_VIDEO_DRIVER_X11)
+        struct
+        {
+            Display *display;           /**< The X11 display */
+            Window window;              /**< The X11 window */
+        } x11;
+#endif
+#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
+        struct
+        {
+            IDirectFB *dfb;             /**< The directfb main interface */
+            IDirectFBWindow *window;    /**< The directfb window handle */
+            IDirectFBSurface *surface;  /**< The directfb client surface */
+        } dfb;
+#endif
+#if defined(SDL_VIDEO_DRIVER_COCOA)
+        struct
+        {
+#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
+            NSWindow __unsafe_unretained *window; /**< The Cocoa window */
+#else
+            NSWindow *window;                     /**< The Cocoa window */
+#endif
+        } cocoa;
+#endif
+#if defined(SDL_VIDEO_DRIVER_UIKIT)
+        struct
+        {
+#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
+            UIWindow __unsafe_unretained *window; /**< The UIKit window */
+#else
+            UIWindow *window;                     /**< The UIKit window */
+#endif
+            GLuint framebuffer; /**< The GL view's Framebuffer Object. It must be bound when rendering to the screen using GL. */
+            GLuint colorbuffer; /**< The GL view's color Renderbuffer Object. It must be bound when SDL_GL_SwapWindow is called. */
+            GLuint resolveFramebuffer; /**< The Framebuffer Object which holds the resolve color Renderbuffer, when MSAA is used. */
+        } uikit;
+#endif
+#if defined(SDL_VIDEO_DRIVER_WAYLAND)
+        struct
+        {
+            struct wl_display *display;            /**< Wayland display */
+            struct wl_surface *surface;            /**< Wayland surface */
+            struct wl_shell_surface *shell_surface; /**< Wayland shell_surface (window manager handle) */
+        } wl;
+#endif
+#if defined(SDL_VIDEO_DRIVER_MIR)
+        struct
+        {
+            struct MirConnection *connection;  /**< Mir display server connection */
+            struct MirSurface *surface;  /**< Mir surface */
+        } mir;
+#endif
+
+#if defined(SDL_VIDEO_DRIVER_ANDROID)
+        struct
+        {
+            ANativeWindow *window;
+            EGLSurface surface;
+        } android;
+#endif
+
+#if defined(SDL_VIDEO_DRIVER_VIVANTE)
+        struct
+        {
+            EGLNativeDisplayType display;
+            EGLNativeWindowType window;
+        } vivante;
+#endif
+
+        /* Make sure this union is always 64 bytes (8 64-bit pointers). */
+        /* Be careful not to overflow this if you add a new target! */
+        Uint8 dummy[64];
+    } info;
+};
+
+#endif /* SDL_PROTOTYPES_ONLY */
+
+typedef struct SDL_SysWMinfo SDL_SysWMinfo;
+
+/* Function prototypes */
+/**
+ *  \brief This function allows access to driver-dependent window information.
+ *
+ *  \param window The window about which information is being requested
+ *  \param info This structure must be initialized with the SDL version, and is
+ *              then filled in with information about the given window.
+ *
+ *  \return SDL_TRUE if the function is implemented and the version member of
+ *          the \c info struct is valid, SDL_FALSE otherwise.
+ *
+ *  You typically use this function like this:
+ *  \code
+ *  SDL_SysWMinfo info;
+ *  SDL_VERSION(&info.version);
+ *  if ( SDL_GetWindowWMInfo(window, &info) ) { ... }
+ *  \endcode
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowWMInfo(SDL_Window * window,
+                                                     SDL_SysWMinfo * info);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_syswm_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test.h
new file mode 100644
index 0000000..6cc373b
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test.h
@@ -0,0 +1,69 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+#ifndef SDL_test_h_
+#define SDL_test_h_
+
+#include "SDL.h"
+#include "SDL_test_assert.h"
+#include "SDL_test_common.h"
+#include "SDL_test_compare.h"
+#include "SDL_test_crc32.h"
+#include "SDL_test_font.h"
+#include "SDL_test_fuzzer.h"
+#include "SDL_test_harness.h"
+#include "SDL_test_images.h"
+#include "SDL_test_log.h"
+#include "SDL_test_md5.h"
+#include "SDL_test_memory.h"
+#include "SDL_test_random.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Global definitions */
+
+/*
+ * Note: Maximum size of SDLTest log message is less than SDL's limit
+ * to ensure we can fit additional information such as the timestamp.
+ */
+#define SDLTEST_MAX_LOGMESSAGE_LENGTH   3584
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_assert.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_assert.h
new file mode 100644
index 0000000..1788d7a
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_assert.h
@@ -0,0 +1,105 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_assert.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+/*
+ *
+ * Assert API for test code and test cases
+ *
+ */
+
+#ifndef SDL_test_assert_h_
+#define SDL_test_assert_h_
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * \brief Fails the assert.
+ */
+#define ASSERT_FAIL     0
+
+/**
+ * \brief Passes the assert.
+ */
+#define ASSERT_PASS     1
+
+/**
+ * \brief Assert that logs and break execution flow on failures.
+ *
+ * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0).
+ * \param assertDescription Message to log with the assert describing it.
+ */
+void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2);
+
+/**
+ * \brief Assert for test cases that logs but does not break execution flow on failures. Updates assertion counters.
+ *
+ * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0).
+ * \param assertDescription Message to log with the assert describing it.
+ *
+ * \returns Returns the assertCondition so it can be used to externally to break execution flow if desired.
+ */
+int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2);
+
+/**
+ * \brief Explicitly pass without checking an assertion condition. Updates assertion counter.
+ *
+ * \param assertDescription Message to log with the assert describing it.
+ */
+void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(1);
+
+/**
+ * \brief Resets the assert summary counters to zero.
+ */
+void SDLTest_ResetAssertSummary(void);
+
+/**
+ * \brief Logs summary of all assertions (total, pass, fail) since last reset as INFO or ERROR.
+ */
+void SDLTest_LogAssertSummary(void);
+
+
+/**
+ * \brief Converts the current assert summary state to a test result.
+ *
+ * \returns TEST_RESULT_PASSED, TEST_RESULT_FAILED, or TEST_RESULT_NO_ASSERT
+ */
+int SDLTest_AssertSummaryToTestResult(void);
+
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_assert_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_common.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_common.h
new file mode 100644
index 0000000..be2e6b2
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_common.h
@@ -0,0 +1,188 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_common.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+/* Ported from original test\common.h file. */
+
+#ifndef SDL_test_common_h_
+#define SDL_test_common_h_
+
+#include "SDL.h"
+
+#if defined(__PSP__)
+#define DEFAULT_WINDOW_WIDTH  480
+#define DEFAULT_WINDOW_HEIGHT 272
+#else
+#define DEFAULT_WINDOW_WIDTH  640
+#define DEFAULT_WINDOW_HEIGHT 480
+#endif
+
+#define VERBOSE_VIDEO   0x00000001
+#define VERBOSE_MODES   0x00000002
+#define VERBOSE_RENDER  0x00000004
+#define VERBOSE_EVENT   0x00000008
+#define VERBOSE_AUDIO   0x00000010
+
+typedef struct
+{
+    /* SDL init flags */
+    char **argv;
+    Uint32 flags;
+    Uint32 verbose;
+
+    /* Video info */
+    const char *videodriver;
+    int display;
+    const char *window_title;
+    const char *window_icon;
+    Uint32 window_flags;
+    int window_x;
+    int window_y;
+    int window_w;
+    int window_h;
+    int window_minW;
+    int window_minH;
+    int window_maxW;
+    int window_maxH;
+    int logical_w;
+    int logical_h;
+    float scale;
+    int depth;
+    int refresh_rate;
+    int num_windows;
+    SDL_Window **windows;
+
+    /* Renderer info */
+    const char *renderdriver;
+    Uint32 render_flags;
+    SDL_bool skip_renderer;
+    SDL_Renderer **renderers;
+    SDL_Texture **targets;
+
+    /* Audio info */
+    const char *audiodriver;
+    SDL_AudioSpec audiospec;
+
+    /* GL settings */
+    int gl_red_size;
+    int gl_green_size;
+    int gl_blue_size;
+    int gl_alpha_size;
+    int gl_buffer_size;
+    int gl_depth_size;
+    int gl_stencil_size;
+    int gl_double_buffer;
+    int gl_accum_red_size;
+    int gl_accum_green_size;
+    int gl_accum_blue_size;
+    int gl_accum_alpha_size;
+    int gl_stereo;
+    int gl_multisamplebuffers;
+    int gl_multisamplesamples;
+    int gl_retained_backing;
+    int gl_accelerated;
+    int gl_major_version;
+    int gl_minor_version;
+    int gl_debug;
+    int gl_profile_mask;
+} SDLTest_CommonState;
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Function prototypes */
+
+/**
+ * \brief Parse command line parameters and create common state.
+ *
+ * \param argv Array of command line parameters
+ * \param flags Flags indicating which subsystem to initialize (i.e. SDL_INIT_VIDEO | SDL_INIT_AUDIO)
+ *
+ * \returns Returns a newly allocated common state object.
+ */
+SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags);
+
+/**
+ * \brief Process one common argument.
+ *
+ * \param state The common state describing the test window to create.
+ * \param index The index of the argument to process in argv[].
+ *
+ * \returns The number of arguments processed (i.e. 1 for --fullscreen, 2 for --video [videodriver], or -1 on error.
+ */
+int SDLTest_CommonArg(SDLTest_CommonState * state, int index);
+
+/**
+ * \brief Returns common usage information
+ *
+ * \param state The common state describing the test window to create.
+ *
+ * \returns String with usage information
+ */
+const char *SDLTest_CommonUsage(SDLTest_CommonState * state);
+
+/**
+ * \brief Open test window.
+ *
+ * \param state The common state describing the test window to create.
+ *
+ * \returns True if initialization succeeded, false otherwise
+ */
+SDL_bool SDLTest_CommonInit(SDLTest_CommonState * state);
+
+/**
+ * \brief Common event handler for test windows.
+ *
+ * \param state The common state used to create test window.
+ * \param event The event to handle.
+ * \param done Flag indicating we are done.
+ *
+ */
+void SDLTest_CommonEvent(SDLTest_CommonState * state, SDL_Event * event, int *done);
+
+/**
+ * \brief Close test window.
+ *
+ * \param state The common state used to create test window.
+ *
+ */
+void SDLTest_CommonQuit(SDLTest_CommonState * state);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_common_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_compare.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_compare.h
new file mode 100644
index 0000000..c22e447
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_compare.h
@@ -0,0 +1,69 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_compare.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+/*
+
+ Defines comparison functions (i.e. for surfaces).
+
+*/
+
+#ifndef SDL_test_compare_h_
+#define SDL_test_compare_h_
+
+#include "SDL.h"
+
+#include "SDL_test_images.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * \brief Compares a surface and with reference image data for equality
+ *
+ * \param surface Surface used in comparison
+ * \param referenceSurface Test Surface used in comparison
+ * \param allowable_error Allowable difference (=sum of squared difference for each RGB component) in blending accuracy.
+ *
+ * \returns 0 if comparison succeeded, >0 (=number of pixels for which the comparison failed) if comparison failed, -1 if any of the surfaces were NULL, -2 if the surface sizes differ.
+ */
+int SDLTest_CompareSurfaces(SDL_Surface *surface, SDL_Surface *referenceSurface, int allowable_error);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_compare_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_crc32.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_crc32.h
new file mode 100644
index 0000000..3d235d0
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_crc32.h
@@ -0,0 +1,124 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_crc32.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+/*
+
+ Implements CRC32 calculations (default output is Perl String::CRC32 compatible).
+
+*/
+
+#ifndef SDL_test_crc32_h_
+#define SDL_test_crc32_h_
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* ------------ Definitions --------- */
+
+/* Definition shared by all CRC routines */
+
+#ifndef CrcUint32
+ #define CrcUint32  unsigned int
+#endif
+#ifndef CrcUint8
+ #define CrcUint8   unsigned char
+#endif
+
+#ifdef ORIGINAL_METHOD
+ #define CRC32_POLY 0x04c11db7   /* AUTODIN II, Ethernet, & FDDI */
+#else
+ #define CRC32_POLY 0xEDB88320   /* Perl String::CRC32 compatible */
+#endif
+
+/**
+ * Data structure for CRC32 (checksum) computation
+ */
+  typedef struct {
+    CrcUint32    crc32_table[256]; /* CRC table */
+  } SDLTest_Crc32Context;
+
+/* ---------- Function Prototypes ------------- */
+
+/**
+ * \brief Initialize the CRC context
+ *
+ * Note: The function initializes the crc table required for all crc calculations.
+ *
+ * \param crcContext        pointer to context variable
+ *
+ * \returns 0 for OK, -1 on error
+ *
+ */
+ int SDLTest_Crc32Init(SDLTest_Crc32Context * crcContext);
+
+
+/**
+ * \brief calculate a crc32 from a data block
+ *
+ * \param crcContext         pointer to context variable
+ * \param inBuf              input buffer to checksum
+ * \param inLen              length of input buffer
+ * \param crc32              pointer to Uint32 to store the final CRC into
+ *
+ * \returns 0 for OK, -1 on error
+ *
+ */
+int SDLTest_Crc32Calc(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32);
+
+/* Same routine broken down into three steps */
+int SDLTest_Crc32CalcStart(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32);
+int SDLTest_Crc32CalcEnd(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32);
+int SDLTest_Crc32CalcBuffer(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32);
+
+
+/**
+ * \brief clean up CRC context
+ *
+ * \param crcContext        pointer to context variable
+ *
+ * \returns 0 for OK, -1 on error
+ *
+*/
+
+int SDLTest_Crc32Done(SDLTest_Crc32Context * crcContext);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_crc32_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_font.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_font.h
new file mode 100644
index 0000000..59cbdca
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_font.h
@@ -0,0 +1,81 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_font.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+#ifndef SDL_test_font_h_
+#define SDL_test_font_h_
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Function prototypes */
+
+#define FONT_CHARACTER_SIZE  8
+
+/**
+ *  \brief Draw a string in the currently set font.
+ *
+ *  \param renderer The renderer to draw on.
+ *  \param x The X coordinate of the upper left corner of the character.
+ *  \param y The Y coordinate of the upper left corner of the character.
+ *  \param c The character to draw.
+ *
+ *  \returns Returns 0 on success, -1 on failure.
+ */
+int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, char c);
+
+/**
+ *  \brief Draw a string in the currently set font.
+ *
+ *  \param renderer The renderer to draw on.
+ *  \param x The X coordinate of the upper left corner of the string.
+ *  \param y The Y coordinate of the upper left corner of the string.
+ *  \param s The string to draw.
+ *
+ *  \returns Returns 0 on success, -1 on failure.
+ */
+int SDLTest_DrawString(SDL_Renderer *renderer, int x, int y, const char *s);
+
+
+/**
+ *  \brief Cleanup textures used by font drawing functions.
+ */
+void SDLTest_CleanupTextDrawing(void);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_font_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_fuzzer.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_fuzzer.h
new file mode 100644
index 0000000..8fcb9eb
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_fuzzer.h
@@ -0,0 +1,384 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_fuzzer.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+/*
+
+  Data generators for fuzzing test data in a reproducible way.
+
+*/
+
+#ifndef SDL_test_fuzzer_h_
+#define SDL_test_fuzzer_h_
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+  Based on GSOC code by Markus Kauppila <markus.kauppila@gmail.com>
+*/
+
+
+/**
+ * \file
+ * Note: The fuzzer implementation uses a static instance of random context
+ * internally which makes it thread-UNsafe.
+ */
+
+/**
+ * Initializes the fuzzer for a test
+ *
+ * \param execKey Execution "Key" that initializes the random number generator uniquely for the test.
+ *
+ */
+void SDLTest_FuzzerInit(Uint64 execKey);
+
+
+/**
+ * Returns a random Uint8
+ *
+ * \returns Generated integer
+ */
+Uint8 SDLTest_RandomUint8(void);
+
+/**
+ * Returns a random Sint8
+ *
+ * \returns Generated signed integer
+ */
+Sint8 SDLTest_RandomSint8(void);
+
+
+/**
+ * Returns a random Uint16
+ *
+ * \returns Generated integer
+ */
+Uint16 SDLTest_RandomUint16(void);
+
+/**
+ * Returns a random Sint16
+ *
+ * \returns Generated signed integer
+ */
+Sint16 SDLTest_RandomSint16(void);
+
+
+/**
+ * Returns a random integer
+ *
+ * \returns Generated integer
+ */
+Sint32 SDLTest_RandomSint32(void);
+
+
+/**
+ * Returns a random positive integer
+ *
+ * \returns Generated integer
+ */
+Uint32 SDLTest_RandomUint32(void);
+
+/**
+ * Returns random Uint64.
+ *
+ * \returns Generated integer
+ */
+Uint64 SDLTest_RandomUint64(void);
+
+
+/**
+ * Returns random Sint64.
+ *
+ * \returns Generated signed integer
+ */
+Sint64 SDLTest_RandomSint64(void);
+
+/**
+ * \returns random float in range [0.0 - 1.0[
+ */
+float SDLTest_RandomUnitFloat(void);
+
+/**
+ * \returns random double in range [0.0 - 1.0[
+ */
+double SDLTest_RandomUnitDouble(void);
+
+/**
+ * \returns random float.
+ *
+ */
+float SDLTest_RandomFloat(void);
+
+/**
+ * \returns random double.
+ *
+ */
+double SDLTest_RandomDouble(void);
+
+/**
+ * Returns a random boundary value for Uint8 within the given boundaries.
+ * Boundaries are inclusive, see the usage examples below. If validDomain
+ * is true, the function will only return valid boundaries, otherwise non-valid
+ * boundaries are also possible.
+ * If boundary1 > boundary2, the values are swapped
+ *
+ * Usage examples:
+ * RandomUint8BoundaryValue(10, 20, SDL_TRUE) returns 10, 11, 19 or 20
+ * RandomUint8BoundaryValue(1, 20, SDL_FALSE) returns 0 or 21
+ * RandomUint8BoundaryValue(0, 99, SDL_FALSE) returns 100
+ * RandomUint8BoundaryValue(0, 255, SDL_FALSE) returns 0 (error set)
+ *
+ * \param boundary1 Lower boundary limit
+ * \param boundary2 Upper boundary limit
+ * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
+ *
+ * \returns Random boundary value for the given range and domain or 0 with error set
+ */
+Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_bool validDomain);
+
+/**
+ * Returns a random boundary value for Uint16 within the given boundaries.
+ * Boundaries are inclusive, see the usage examples below. If validDomain
+ * is true, the function will only return valid boundaries, otherwise non-valid
+ * boundaries are also possible.
+ * If boundary1 > boundary2, the values are swapped
+ *
+ * Usage examples:
+ * RandomUint16BoundaryValue(10, 20, SDL_TRUE) returns 10, 11, 19 or 20
+ * RandomUint16BoundaryValue(1, 20, SDL_FALSE) returns 0 or 21
+ * RandomUint16BoundaryValue(0, 99, SDL_FALSE) returns 100
+ * RandomUint16BoundaryValue(0, 0xFFFF, SDL_FALSE) returns 0 (error set)
+ *
+ * \param boundary1 Lower boundary limit
+ * \param boundary2 Upper boundary limit
+ * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
+ *
+ * \returns Random boundary value for the given range and domain or 0 with error set
+ */
+Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL_bool validDomain);
+
+/**
+ * Returns a random boundary value for Uint32 within the given boundaries.
+ * Boundaries are inclusive, see the usage examples below. If validDomain
+ * is true, the function will only return valid boundaries, otherwise non-valid
+ * boundaries are also possible.
+ * If boundary1 > boundary2, the values are swapped
+ *
+ * Usage examples:
+ * RandomUint32BoundaryValue(10, 20, SDL_TRUE) returns 10, 11, 19 or 20
+ * RandomUint32BoundaryValue(1, 20, SDL_FALSE) returns 0 or 21
+ * RandomUint32BoundaryValue(0, 99, SDL_FALSE) returns 100
+ * RandomUint32BoundaryValue(0, 0xFFFFFFFF, SDL_FALSE) returns 0 (with error set)
+ *
+ * \param boundary1 Lower boundary limit
+ * \param boundary2 Upper boundary limit
+ * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
+ *
+ * \returns Random boundary value for the given range and domain or 0 with error set
+ */
+Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL_bool validDomain);
+
+/**
+ * Returns a random boundary value for Uint64 within the given boundaries.
+ * Boundaries are inclusive, see the usage examples below. If validDomain
+ * is true, the function will only return valid boundaries, otherwise non-valid
+ * boundaries are also possible.
+ * If boundary1 > boundary2, the values are swapped
+ *
+ * Usage examples:
+ * RandomUint64BoundaryValue(10, 20, SDL_TRUE) returns 10, 11, 19 or 20
+ * RandomUint64BoundaryValue(1, 20, SDL_FALSE) returns 0 or 21
+ * RandomUint64BoundaryValue(0, 99, SDL_FALSE) returns 100
+ * RandomUint64BoundaryValue(0, 0xFFFFFFFFFFFFFFFF, SDL_FALSE) returns 0 (with error set)
+ *
+ * \param boundary1 Lower boundary limit
+ * \param boundary2 Upper boundary limit
+ * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
+ *
+ * \returns Random boundary value for the given range and domain or 0 with error set
+ */
+Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain);
+
+/**
+ * Returns a random boundary value for Sint8 within the given boundaries.
+ * Boundaries are inclusive, see the usage examples below. If validDomain
+ * is true, the function will only return valid boundaries, otherwise non-valid
+ * boundaries are also possible.
+ * If boundary1 > boundary2, the values are swapped
+ *
+ * Usage examples:
+ * RandomSint8BoundaryValue(-10, 20, SDL_TRUE) returns -11, -10, 19 or 20
+ * RandomSint8BoundaryValue(-100, -10, SDL_FALSE) returns -101 or -9
+ * RandomSint8BoundaryValue(SINT8_MIN, 99, SDL_FALSE) returns 100
+ * RandomSint8BoundaryValue(SINT8_MIN, SINT8_MAX, SDL_FALSE) returns SINT8_MIN (== error value) with error set
+ *
+ * \param boundary1 Lower boundary limit
+ * \param boundary2 Upper boundary limit
+ * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
+ *
+ * \returns Random boundary value for the given range and domain or SINT8_MIN with error set
+ */
+Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain);
+
+
+/**
+ * Returns a random boundary value for Sint16 within the given boundaries.
+ * Boundaries are inclusive, see the usage examples below. If validDomain
+ * is true, the function will only return valid boundaries, otherwise non-valid
+ * boundaries are also possible.
+ * If boundary1 > boundary2, the values are swapped
+ *
+ * Usage examples:
+ * RandomSint16BoundaryValue(-10, 20, SDL_TRUE) returns -11, -10, 19 or 20
+ * RandomSint16BoundaryValue(-100, -10, SDL_FALSE) returns -101 or -9
+ * RandomSint16BoundaryValue(SINT16_MIN, 99, SDL_FALSE) returns 100
+ * RandomSint16BoundaryValue(SINT16_MIN, SINT16_MAX, SDL_FALSE) returns SINT16_MIN (== error value) with error set
+ *
+ * \param boundary1 Lower boundary limit
+ * \param boundary2 Upper boundary limit
+ * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
+ *
+ * \returns Random boundary value for the given range and domain or SINT16_MIN with error set
+ */
+Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain);
+
+/**
+ * Returns a random boundary value for Sint32 within the given boundaries.
+ * Boundaries are inclusive, see the usage examples below. If validDomain
+ * is true, the function will only return valid boundaries, otherwise non-valid
+ * boundaries are also possible.
+ * If boundary1 > boundary2, the values are swapped
+ *
+ * Usage examples:
+ * RandomSint32BoundaryValue(-10, 20, SDL_TRUE) returns -11, -10, 19 or 20
+ * RandomSint32BoundaryValue(-100, -10, SDL_FALSE) returns -101 or -9
+ * RandomSint32BoundaryValue(SINT32_MIN, 99, SDL_FALSE) returns 100
+ * RandomSint32BoundaryValue(SINT32_MIN, SINT32_MAX, SDL_FALSE) returns SINT32_MIN (== error value)
+ *
+ * \param boundary1 Lower boundary limit
+ * \param boundary2 Upper boundary limit
+ * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
+ *
+ * \returns Random boundary value for the given range and domain or SINT32_MIN with error set
+ */
+Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL_bool validDomain);
+
+/**
+ * Returns a random boundary value for Sint64 within the given boundaries.
+ * Boundaries are inclusive, see the usage examples below. If validDomain
+ * is true, the function will only return valid boundaries, otherwise non-valid
+ * boundaries are also possible.
+ * If boundary1 > boundary2, the values are swapped
+ *
+ * Usage examples:
+ * RandomSint64BoundaryValue(-10, 20, SDL_TRUE) returns -11, -10, 19 or 20
+ * RandomSint64BoundaryValue(-100, -10, SDL_FALSE) returns -101 or -9
+ * RandomSint64BoundaryValue(SINT64_MIN, 99, SDL_FALSE) returns 100
+ * RandomSint64BoundaryValue(SINT64_MIN, SINT64_MAX, SDL_FALSE) returns SINT64_MIN (== error value) and error set
+ *
+ * \param boundary1 Lower boundary limit
+ * \param boundary2 Upper boundary limit
+ * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
+ *
+ * \returns Random boundary value for the given range and domain or SINT64_MIN with error set
+ */
+Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain);
+
+
+/**
+ * Returns integer in range [min, max] (inclusive).
+ * Min and max values can be negative values.
+ * If Max in smaller than min, then the values are swapped.
+ * Min and max are the same value, that value will be returned.
+ *
+ * \param min Minimum inclusive value of returned random number
+ * \param max Maximum inclusive value of returned random number
+ *
+ * \returns Generated random integer in range
+ */
+Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max);
+
+
+/**
+ * Generates random null-terminated string. The minimum length for
+ * the string is 1 character, maximum length for the string is 255
+ * characters and it can contain ASCII characters from 32 to 126.
+ *
+ * Note: Returned string needs to be deallocated.
+ *
+ * \returns Newly allocated random string; or NULL if length was invalid or string could not be allocated.
+ */
+char * SDLTest_RandomAsciiString(void);
+
+
+/**
+ * Generates random null-terminated string. The maximum length for
+ * the string is defined by the maxLength parameter.
+ * String can contain ASCII characters from 32 to 126.
+ *
+ * Note: Returned string needs to be deallocated.
+ *
+ * \param maxLength The maximum length of the generated string.
+ *
+ * \returns Newly allocated random string; or NULL if maxLength was invalid or string could not be allocated.
+ */
+char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength);
+
+
+/**
+ * Generates random null-terminated string. The length for
+ * the string is defined by the size parameter.
+ * String can contain ASCII characters from 32 to 126.
+ *
+ * Note: Returned string needs to be deallocated.
+ *
+ * \param size The length of the generated string
+ *
+ * \returns Newly allocated random string; or NULL if size was invalid or string could not be allocated.
+ */
+char * SDLTest_RandomAsciiStringOfSize(int size);
+
+/**
+ * Returns the invocation count for the fuzzer since last ...FuzzerInit.
+ */
+int SDLTest_GetFuzzerInvocationCount(void);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_fuzzer_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_harness.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_harness.h
new file mode 100644
index 0000000..8641e0a
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_harness.h
@@ -0,0 +1,134 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_harness.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+/*
+  Defines types for test case definitions and the test execution harness API.
+
+  Based on original GSOC code by Markus Kauppila <markus.kauppila@gmail.com>
+*/
+
+#ifndef SDL_test_h_arness_h
+#define SDL_test_h_arness_h
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* ! Definitions for test case structures */
+#define TEST_ENABLED  1
+#define TEST_DISABLED 0
+
+/* ! Definition of all the possible test return values of the test case method */
+#define TEST_ABORTED        -1
+#define TEST_STARTED         0
+#define TEST_COMPLETED       1
+#define TEST_SKIPPED         2
+
+/* ! Definition of all the possible test results for the harness */
+#define TEST_RESULT_PASSED              0
+#define TEST_RESULT_FAILED              1
+#define TEST_RESULT_NO_ASSERT           2
+#define TEST_RESULT_SKIPPED             3
+#define TEST_RESULT_SETUP_FAILURE       4
+
+/* !< Function pointer to a test case setup function (run before every test) */
+typedef void (*SDLTest_TestCaseSetUpFp)(void *arg);
+
+/* !< Function pointer to a test case function */
+typedef int (*SDLTest_TestCaseFp)(void *arg);
+
+/* !< Function pointer to a test case teardown function (run after every test) */
+typedef void  (*SDLTest_TestCaseTearDownFp)(void *arg);
+
+/**
+ * Holds information about a single test case.
+ */
+typedef struct SDLTest_TestCaseReference {
+    /* !< Func2Stress */
+    SDLTest_TestCaseFp testCase;
+    /* !< Short name (or function name) "Func2Stress" */
+    char *name;
+    /* !< Long name or full description "This test pushes func2() to the limit." */
+    char *description;
+    /* !< Set to TEST_ENABLED or TEST_DISABLED (test won't be run) */
+    int enabled;
+} SDLTest_TestCaseReference;
+
+/**
+ * Holds information about a test suite (multiple test cases).
+ */
+typedef struct SDLTest_TestSuiteReference {
+    /* !< "PlatformSuite" */
+    char *name;
+    /* !< The function that is run before each test. NULL skips. */
+    SDLTest_TestCaseSetUpFp testSetUp;
+    /* !< The test cases that are run as part of the suite. Last item should be NULL. */
+    const SDLTest_TestCaseReference **testCases;
+    /* !< The function that is run after each test. NULL skips. */
+    SDLTest_TestCaseTearDownFp testTearDown;
+} SDLTest_TestSuiteReference;
+
+
+/**
+ * \brief Generates a random run seed string for the harness. The generated seed will contain alphanumeric characters (0-9A-Z).
+ *
+ * Note: The returned string needs to be deallocated by the caller.
+ *
+ * \param length The length of the seed string to generate
+ *
+ * \returns The generated seed string
+ */
+char *SDLTest_GenerateRunSeed(const int length);
+
+/**
+ * \brief Execute a test suite using the given run seed and execution key.
+ *
+ * \param testSuites Suites containing the test case.
+ * \param userRunSeed Custom run seed provided by user, or NULL to autogenerate one.
+ * \param userExecKey Custom execution key provided by user, or 0 to autogenerate one.
+ * \param filter Filter specification. NULL disables. Case sensitive.
+ * \param testIterations Number of iterations to run each test case.
+ *
+ * \returns Test run result; 0 when all tests passed, 1 if any tests failed.
+ */
+int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *userRunSeed, Uint64 userExecKey, const char *filter, int testIterations);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_h_arness_h */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_images.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_images.h
new file mode 100644
index 0000000..9c4dd5b
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_images.h
@@ -0,0 +1,78 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_images.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+/*
+
+ Defines some images for tests.
+
+*/
+
+#ifndef SDL_test_images_h_
+#define SDL_test_images_h_
+
+#include "SDL.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *Type for test images.
+ */
+typedef struct SDLTest_SurfaceImage_s {
+  int width;
+  int height;
+  unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
+  const char *pixel_data;
+} SDLTest_SurfaceImage_t;
+
+/* Test images */
+SDL_Surface *SDLTest_ImageBlit(void);
+SDL_Surface *SDLTest_ImageBlitColor(void);
+SDL_Surface *SDLTest_ImageBlitAlpha(void);
+SDL_Surface *SDLTest_ImageBlitBlendAdd(void);
+SDL_Surface *SDLTest_ImageBlitBlend(void);
+SDL_Surface *SDLTest_ImageBlitBlendMod(void);
+SDL_Surface *SDLTest_ImageBlitBlendNone(void);
+SDL_Surface *SDLTest_ImageBlitBlendAll(void);
+SDL_Surface *SDLTest_ImageFace(void);
+SDL_Surface *SDLTest_ImagePrimitives(void);
+SDL_Surface *SDLTest_ImagePrimitivesBlend(void);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_images_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_log.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_log.h
new file mode 100644
index 0000000..ebd44fb
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_log.h
@@ -0,0 +1,67 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_log.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+/*
+ *
+ *  Wrapper to log in the TEST category
+ *
+ */
+
+#ifndef SDL_test_log_h_
+#define SDL_test_log_h_
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * \brief Prints given message with a timestamp in the TEST category and INFO priority.
+ *
+ * \param fmt Message to be logged
+ */
+void SDLTest_Log(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
+
+/**
+ * \brief Prints given message with a timestamp in the TEST category and the ERROR priority.
+ *
+ * \param fmt Message to be logged
+ */
+void SDLTest_LogError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_log_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_md5.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_md5.h
new file mode 100644
index 0000000..0e41057
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_md5.h
@@ -0,0 +1,129 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_md5.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+/*
+ ***********************************************************************
+ ** Header file for implementation of MD5                             **
+ ** RSA Data Security, Inc. MD5 Message-Digest Algorithm              **
+ ** Created: 2/17/90 RLR                                              **
+ ** Revised: 12/27/90 SRD,AJ,BSK,JT Reference C version               **
+ ** Revised (for MD5): RLR 4/27/91                                    **
+ **   -- G modified to have y&~z instead of y&z                       **
+ **   -- FF, GG, HH modified to add in last register done             **
+ **   -- Access pattern: round 2 works mod 5, round 3 works mod 3     **
+ **   -- distinct additive constant for each step                     **
+ **   -- round 4 added, working mod 7                                 **
+ ***********************************************************************
+*/
+
+/*
+ ***********************************************************************
+ **  Message-digest routines:                                         **
+ **  To form the message digest for a message M                       **
+ **    (1) Initialize a context buffer mdContext using MD5Init        **
+ **    (2) Call MD5Update on mdContext and M                          **
+ **    (3) Call MD5Final on mdContext                                 **
+ **  The message digest is now in mdContext->digest[0...15]           **
+ ***********************************************************************
+*/
+
+#ifndef SDL_test_md5_h_
+#define SDL_test_md5_h_
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* ------------ Definitions --------- */
+
+/* typedef a 32-bit type */
+  typedef unsigned long int MD5UINT4;
+
+/* Data structure for MD5 (Message-Digest) computation */
+  typedef struct {
+    MD5UINT4  i[2];     /* number of _bits_ handled mod 2^64 */
+    MD5UINT4  buf[4];       /* scratch buffer */
+    unsigned char in[64];   /* input buffer */
+    unsigned char digest[16];   /* actual digest after Md5Final call */
+  } SDLTest_Md5Context;
+
+/* ---------- Function Prototypes ------------- */
+
+/**
+ * \brief initialize the context
+ *
+ * \param  mdContext        pointer to context variable
+ *
+ * Note: The function initializes the message-digest context
+ *       mdContext. Call before each new use of the context -
+ *       all fields are set to zero.
+ */
+ void SDLTest_Md5Init(SDLTest_Md5Context * mdContext);
+
+
+/**
+ * \brief update digest from variable length data
+ *
+ * \param  mdContext       pointer to context variable
+ * \param  inBuf           pointer to data array/string
+ * \param  inLen           length of data array/string
+ *
+ * Note: The function updates the message-digest context to account
+ *       for the presence of each of the characters inBuf[0..inLen-1]
+ *       in the message whose digest is being computed.
+*/
+
+ void SDLTest_Md5Update(SDLTest_Md5Context * mdContext, unsigned char *inBuf,
+                 unsigned int inLen);
+
+
+/**
+ * \brief complete digest computation
+ *
+ * \param mdContext     pointer to context variable
+ *
+ * Note: The function terminates the message-digest computation and
+ *       ends with the desired message digest in mdContext.digest[0..15].
+ *       Always call before using the digest[] variable.
+*/
+
+ void SDLTest_Md5Final(SDLTest_Md5Context * mdContext);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_md5_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_memory.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_memory.h
new file mode 100644
index 0000000..4827ae6
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_memory.h
@@ -0,0 +1,63 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_memory.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+#ifndef SDL_test_memory_h_
+#define SDL_test_memory_h_
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/**
+ * \brief Start tracking SDL memory allocations
+ * 
+ * \note This should be called before any other SDL functions for complete tracking coverage
+ */
+int SDLTest_TrackAllocations();
+
+/**
+ * \brief Print a log of any outstanding allocations
+ *
+ * \note This can be called after SDL_Quit()
+ */
+void SDLTest_LogAllocations();
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_memory_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_random.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_random.h
new file mode 100644
index 0000000..0eb414f
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_test_random.h
@@ -0,0 +1,115 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_test_random.h
+ *
+ *  Include file for SDL test framework.
+ *
+ *  This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+/*
+
+ A "32-bit Multiply with carry random number generator. Very fast.
+ Includes a list of recommended multipliers.
+
+ multiply-with-carry generator: x(n) = a*x(n-1) + carry mod 2^32.
+ period: (a*2^31)-1
+
+*/
+
+#ifndef SDL_test_random_h_
+#define SDL_test_random_h_
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* --- Definitions */
+
+/*
+ * Macros that return a random number in a specific format.
+ */
+#define SDLTest_RandomInt(c)        ((int)SDLTest_Random(c))
+
+/*
+ * Context structure for the random number generator state.
+ */
+  typedef struct {
+    unsigned int a;
+    unsigned int x;
+    unsigned int c;
+    unsigned int ah;
+    unsigned int al;
+  } SDLTest_RandomContext;
+
+
+/* --- Function prototypes */
+
+/**
+ *  \brief Initialize random number generator with two integers.
+ *
+ *  Note: The random sequence of numbers returned by ...Random() is the
+ *  same for the same two integers and has a period of 2^31.
+ *
+ *  \param rndContext     pointer to context structure
+ *  \param xi         integer that defines the random sequence
+ *  \param ci         integer that defines the random sequence
+ *
+ */
+ void SDLTest_RandomInit(SDLTest_RandomContext * rndContext, unsigned int xi,
+                  unsigned int ci);
+
+/**
+ *  \brief Initialize random number generator based on current system time.
+ *
+ *  \param rndContext     pointer to context structure
+ *
+ */
+ void SDLTest_RandomInitTime(SDLTest_RandomContext *rndContext);
+
+
+/**
+ *  \brief Initialize random number generator based on current system time.
+ *
+ *  Note: ...RandomInit() or ...RandomInitTime() must have been called
+ *  before using this function.
+ *
+ *  \param rndContext     pointer to context structure
+ *
+ *  \returns A random number (32bit unsigned integer)
+ *
+ */
+ unsigned int SDLTest_Random(SDLTest_RandomContext *rndContext);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_random_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_thread.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_thread.h
new file mode 100644
index 0000000..82a43fc
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_thread.h
@@ -0,0 +1,308 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_thread_h_
+#define SDL_thread_h_
+
+/**
+ *  \file SDL_thread.h
+ *
+ *  Header for the SDL thread management routines.
+ */
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+
+/* Thread synchronization primitives */
+#include "SDL_atomic.h"
+#include "SDL_mutex.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* The SDL thread structure, defined in SDL_thread.c */
+struct SDL_Thread;
+typedef struct SDL_Thread SDL_Thread;
+
+/* The SDL thread ID */
+typedef unsigned long SDL_threadID;
+
+/* Thread local storage ID, 0 is the invalid ID */
+typedef unsigned int SDL_TLSID;
+
+/**
+ *  The SDL thread priority.
+ *
+ *  \note On many systems you require special privileges to set high priority.
+ */
+typedef enum {
+    SDL_THREAD_PRIORITY_LOW,
+    SDL_THREAD_PRIORITY_NORMAL,
+    SDL_THREAD_PRIORITY_HIGH
+} SDL_ThreadPriority;
+
+/**
+ *  The function passed to SDL_CreateThread().
+ *  It is passed a void* user context parameter and returns an int.
+ */
+typedef int (SDLCALL * SDL_ThreadFunction) (void *data);
+
+#if defined(__WIN32__) && !defined(HAVE_LIBC)
+/**
+ *  \file SDL_thread.h
+ *
+ *  We compile SDL into a DLL. This means, that it's the DLL which
+ *  creates a new thread for the calling process with the SDL_CreateThread()
+ *  API. There is a problem with this, that only the RTL of the SDL2.DLL will
+ *  be initialized for those threads, and not the RTL of the calling
+ *  application!
+ *
+ *  To solve this, we make a little hack here.
+ *
+ *  We'll always use the caller's _beginthread() and _endthread() APIs to
+ *  start a new thread. This way, if it's the SDL2.DLL which uses this API,
+ *  then the RTL of SDL2.DLL will be used to create the new thread, and if it's
+ *  the application, then the RTL of the application will be used.
+ *
+ *  So, in short:
+ *  Always use the _beginthread() and _endthread() of the calling runtime
+ *  library!
+ */
+#define SDL_PASSED_BEGINTHREAD_ENDTHREAD
+#include <process.h> /* _beginthreadex() and _endthreadex() */
+
+typedef uintptr_t(__cdecl * pfnSDL_CurrentBeginThread)
+                   (void *, unsigned, unsigned (__stdcall *func)(void *),
+                    void * /*arg*/, unsigned, unsigned * /* threadID */);
+typedef void (__cdecl * pfnSDL_CurrentEndThread) (unsigned code);
+
+/**
+ *  Create a thread.
+ */
+extern DECLSPEC SDL_Thread *SDLCALL
+SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data,
+                 pfnSDL_CurrentBeginThread pfnBeginThread,
+                 pfnSDL_CurrentEndThread pfnEndThread);
+
+/**
+ *  Create a thread.
+ */
+#if defined(SDL_CreateThread) && SDL_DYNAMIC_API
+#undef SDL_CreateThread
+#define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
+#else
+#define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
+#endif
+
+#elif defined(__OS2__)
+/*
+ * just like the windows case above:  We compile SDL2
+ * into a dll with Watcom's runtime statically linked.
+ */
+#define SDL_PASSED_BEGINTHREAD_ENDTHREAD
+#ifndef __EMX__
+#include <process.h>
+#else
+#include <stdlib.h>
+#endif
+typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void * /*arg*/);
+typedef void (*pfnSDL_CurrentEndThread)(void);
+extern DECLSPEC SDL_Thread *SDLCALL
+SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data,
+                 pfnSDL_CurrentBeginThread pfnBeginThread,
+                 pfnSDL_CurrentEndThread pfnEndThread);
+#if defined(SDL_CreateThread) && SDL_DYNAMIC_API
+#undef SDL_CreateThread
+#define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread)
+#else
+#define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread)
+#endif
+
+#else
+
+/**
+ *  Create a thread.
+ *
+ *   Thread naming is a little complicated: Most systems have very small
+ *    limits for the string length (Haiku has 32 bytes, Linux currently has 16,
+ *    Visual C++ 6.0 has nine!), and possibly other arbitrary rules. You'll
+ *    have to see what happens with your system's debugger. The name should be
+ *    UTF-8 (but using the naming limits of C identifiers is a better bet).
+ *   There are no requirements for thread naming conventions, so long as the
+ *    string is null-terminated UTF-8, but these guidelines are helpful in
+ *    choosing a name:
+ *
+ *    http://stackoverflow.com/questions/149932/naming-conventions-for-threads
+ *
+ *   If a system imposes requirements, SDL will try to munge the string for
+ *    it (truncate, etc), but the original string contents will be available
+ *    from SDL_GetThreadName().
+ */
+extern DECLSPEC SDL_Thread *SDLCALL
+SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data);
+
+#endif
+
+/**
+ * Get the thread name, as it was specified in SDL_CreateThread().
+ *  This function returns a pointer to a UTF-8 string that names the
+ *  specified thread, or NULL if it doesn't have a name. This is internal
+ *  memory, not to be free()'d by the caller, and remains valid until the
+ *  specified thread is cleaned up by SDL_WaitThread().
+ */
+extern DECLSPEC const char *SDLCALL SDL_GetThreadName(SDL_Thread *thread);
+
+/**
+ *  Get the thread identifier for the current thread.
+ */
+extern DECLSPEC SDL_threadID SDLCALL SDL_ThreadID(void);
+
+/**
+ *  Get the thread identifier for the specified thread.
+ *
+ *  Equivalent to SDL_ThreadID() if the specified thread is NULL.
+ */
+extern DECLSPEC SDL_threadID SDLCALL SDL_GetThreadID(SDL_Thread * thread);
+
+/**
+ *  Set the priority for the current thread
+ */
+extern DECLSPEC int SDLCALL SDL_SetThreadPriority(SDL_ThreadPriority priority);
+
+/**
+ *  Wait for a thread to finish. Threads that haven't been detached will
+ *  remain (as a "zombie") until this function cleans them up. Not doing so
+ *  is a resource leak.
+ *
+ *  Once a thread has been cleaned up through this function, the SDL_Thread
+ *  that references it becomes invalid and should not be referenced again.
+ *  As such, only one thread may call SDL_WaitThread() on another.
+ *
+ *  The return code for the thread function is placed in the area
+ *  pointed to by \c status, if \c status is not NULL.
+ *
+ *  You may not wait on a thread that has been used in a call to
+ *  SDL_DetachThread(). Use either that function or this one, but not
+ *  both, or behavior is undefined.
+ *
+ *  It is safe to pass NULL to this function; it is a no-op.
+ */
+extern DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread * thread, int *status);
+
+/**
+ *  A thread may be "detached" to signify that it should not remain until
+ *  another thread has called SDL_WaitThread() on it. Detaching a thread
+ *  is useful for long-running threads that nothing needs to synchronize
+ *  with or further manage. When a detached thread is done, it simply
+ *  goes away.
+ *
+ *  There is no way to recover the return code of a detached thread. If you
+ *  need this, don't detach the thread and instead use SDL_WaitThread().
+ *
+ *  Once a thread is detached, you should usually assume the SDL_Thread isn't
+ *  safe to reference again, as it will become invalid immediately upon
+ *  the detached thread's exit, instead of remaining until someone has called
+ *  SDL_WaitThread() to finally clean it up. As such, don't detach the same
+ *  thread more than once.
+ *
+ *  If a thread has already exited when passed to SDL_DetachThread(), it will
+ *  stop waiting for a call to SDL_WaitThread() and clean up immediately.
+ *  It is not safe to detach a thread that might be used with SDL_WaitThread().
+ *
+ *  You may not call SDL_WaitThread() on a thread that has been detached.
+ *  Use either that function or this one, but not both, or behavior is
+ *  undefined.
+ *
+ *  It is safe to pass NULL to this function; it is a no-op.
+ */
+extern DECLSPEC void SDLCALL SDL_DetachThread(SDL_Thread * thread);
+
+/**
+ *  \brief Create an identifier that is globally visible to all threads but refers to data that is thread-specific.
+ *
+ *  \return The newly created thread local storage identifier, or 0 on error
+ *
+ *  \code
+ *  static SDL_SpinLock tls_lock;
+ *  static SDL_TLSID thread_local_storage;
+ * 
+ *  void SetMyThreadData(void *value)
+ *  {
+ *      if (!thread_local_storage) {
+ *          SDL_AtomicLock(&tls_lock);
+ *          if (!thread_local_storage) {
+ *              thread_local_storage = SDL_TLSCreate();
+ *          }
+ *          SDL_AtomicUnlock(&tls_lock);
+ *      }
+ *      SDL_TLSSet(thread_local_storage, value, 0);
+ *  }
+ *  
+ *  void *GetMyThreadData(void)
+ *  {
+ *      return SDL_TLSGet(thread_local_storage);
+ *  }
+ *  \endcode
+ *
+ *  \sa SDL_TLSGet()
+ *  \sa SDL_TLSSet()
+ */
+extern DECLSPEC SDL_TLSID SDLCALL SDL_TLSCreate(void);
+
+/**
+ *  \brief Get the value associated with a thread local storage ID for the current thread.
+ *
+ *  \param id The thread local storage ID
+ *
+ *  \return The value associated with the ID for the current thread, or NULL if no value has been set.
+ *
+ *  \sa SDL_TLSCreate()
+ *  \sa SDL_TLSSet()
+ */
+extern DECLSPEC void * SDLCALL SDL_TLSGet(SDL_TLSID id);
+
+/**
+ *  \brief Set the value associated with a thread local storage ID for the current thread.
+ *
+ *  \param id The thread local storage ID
+ *  \param value The value to associate with the ID for the current thread
+ *  \param destructor A function called when the thread exits, to free the value.
+ *
+ *  \return 0 on success, -1 on error
+ *
+ *  \sa SDL_TLSCreate()
+ *  \sa SDL_TLSGet()
+ */
+extern DECLSPEC int SDLCALL SDL_TLSSet(SDL_TLSID id, const void *value, void (SDLCALL *destructor)(void*));
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_thread_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_timer.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_timer.h
new file mode 100644
index 0000000..5600618
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_timer.h
@@ -0,0 +1,115 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_timer_h_
+#define SDL_timer_h_
+
+/**
+ *  \file SDL_timer.h
+ *
+ *  Header for the SDL time management routines.
+ */
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * \brief Get the number of milliseconds since the SDL library initialization.
+ *
+ * \note This value wraps if the program runs for more than ~49 days.
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_GetTicks(void);
+
+/**
+ * \brief Compare SDL ticks values, and return true if A has passed B
+ *
+ * e.g. if you want to wait 100 ms, you could do this:
+ *  Uint32 timeout = SDL_GetTicks() + 100;
+ *  while (!SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) {
+ *      ... do work until timeout has elapsed
+ *  }
+ */
+#define SDL_TICKS_PASSED(A, B)  ((Sint32)((B) - (A)) <= 0)
+
+/**
+ * \brief Get the current value of the high resolution counter
+ */
+extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceCounter(void);
+
+/**
+ * \brief Get the count per second of the high resolution counter
+ */
+extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceFrequency(void);
+
+/**
+ * \brief Wait a specified number of milliseconds before returning.
+ */
+extern DECLSPEC void SDLCALL SDL_Delay(Uint32 ms);
+
+/**
+ *  Function prototype for the timer callback function.
+ *
+ *  The callback function is passed the current timer interval and returns
+ *  the next timer interval.  If the returned value is the same as the one
+ *  passed in, the periodic alarm continues, otherwise a new alarm is
+ *  scheduled.  If the callback returns 0, the periodic alarm is cancelled.
+ */
+typedef Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval, void *param);
+
+/**
+ * Definition of the timer ID type.
+ */
+typedef int SDL_TimerID;
+
+/**
+ * \brief Add a new timer to the pool of timers already running.
+ *
+ * \return A timer ID, or 0 when an error occurs.
+ */
+extern DECLSPEC SDL_TimerID SDLCALL SDL_AddTimer(Uint32 interval,
+                                                 SDL_TimerCallback callback,
+                                                 void *param);
+
+/**
+ * \brief Remove a timer knowing its ID.
+ *
+ * \return A boolean value indicating success or failure.
+ *
+ * \warning It is not safe to remove a timer multiple times.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer(SDL_TimerID id);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_timer_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_touch.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_touch.h
new file mode 100644
index 0000000..f4075e7
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_touch.h
@@ -0,0 +1,86 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_touch.h
+ *
+ *  Include file for SDL touch event handling.
+ */
+
+#ifndef SDL_touch_h_
+#define SDL_touch_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_video.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef Sint64 SDL_TouchID;
+typedef Sint64 SDL_FingerID;
+
+typedef struct SDL_Finger
+{
+    SDL_FingerID id;
+    float x;
+    float y;
+    float pressure;
+} SDL_Finger;
+
+/* Used as the device ID for mouse events simulated with touch input */
+#define SDL_TOUCH_MOUSEID ((Uint32)-1)
+
+
+/* Function prototypes */
+
+/**
+ *  \brief Get the number of registered touch devices.
+ */
+extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void);
+
+/**
+ *  \brief Get the touch ID with the given index, or 0 if the index is invalid.
+ */
+extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index);
+
+/**
+ *  \brief Get the number of active fingers for a given touch device.
+ */
+extern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID);
+
+/**
+ *  \brief Get the finger object of the given touch, with the given index.
+ */
+extern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_touch_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_types.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_types.h
new file mode 100644
index 0000000..4ac248c
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_types.h
@@ -0,0 +1,29 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_types.h
+ *
+ *  \deprecated
+ */
+
+/* DEPRECATED */
+#include "SDL_stdinc.h"
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_version.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_version.h
new file mode 100644
index 0000000..584b48c
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_version.h
@@ -0,0 +1,162 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_version.h
+ *
+ *  This header defines the current SDL version.
+ */
+
+#ifndef SDL_version_h_
+#define SDL_version_h_
+
+#include "SDL_stdinc.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \brief Information the version of SDL in use.
+ *
+ *  Represents the library's version as three levels: major revision
+ *  (increments with massive changes, additions, and enhancements),
+ *  minor revision (increments with backwards-compatible changes to the
+ *  major revision), and patchlevel (increments with fixes to the minor
+ *  revision).
+ *
+ *  \sa SDL_VERSION
+ *  \sa SDL_GetVersion
+ */
+typedef struct SDL_version
+{
+    Uint8 major;        /**< major version */
+    Uint8 minor;        /**< minor version */
+    Uint8 patch;        /**< update version */
+} SDL_version;
+
+/* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
+*/
+#define SDL_MAJOR_VERSION   2
+#define SDL_MINOR_VERSION   0
+#define SDL_PATCHLEVEL      8
+
+/**
+ *  \brief Macro to determine SDL version program was compiled against.
+ *
+ *  This macro fills in a SDL_version structure with the version of the
+ *  library you compiled against. This is determined by what header the
+ *  compiler uses. Note that if you dynamically linked the library, you might
+ *  have a slightly newer or older version at runtime. That version can be
+ *  determined with SDL_GetVersion(), which, unlike SDL_VERSION(),
+ *  is not a macro.
+ *
+ *  \param x A pointer to a SDL_version struct to initialize.
+ *
+ *  \sa SDL_version
+ *  \sa SDL_GetVersion
+ */
+#define SDL_VERSION(x)                          \
+{                                   \
+    (x)->major = SDL_MAJOR_VERSION;                 \
+    (x)->minor = SDL_MINOR_VERSION;                 \
+    (x)->patch = SDL_PATCHLEVEL;                    \
+}
+
+/**
+ *  This macro turns the version numbers into a numeric value:
+ *  \verbatim
+    (1,2,3) -> (1203)
+    \endverbatim
+ *
+ *  This assumes that there will never be more than 100 patchlevels.
+ */
+#define SDL_VERSIONNUM(X, Y, Z)                     \
+    ((X)*1000 + (Y)*100 + (Z))
+
+/**
+ *  This is the version number macro for the current SDL version.
+ */
+#define SDL_COMPILEDVERSION \
+    SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
+
+/**
+ *  This macro will evaluate to true if compiled with SDL at least X.Y.Z.
+ */
+#define SDL_VERSION_ATLEAST(X, Y, Z) \
+    (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
+
+/**
+ *  \brief Get the version of SDL that is linked against your program.
+ *
+ *  If you are linking to SDL dynamically, then it is possible that the
+ *  current version will be different than the version you compiled against.
+ *  This function returns the current version, while SDL_VERSION() is a
+ *  macro that tells you what version you compiled with.
+ *
+ *  \code
+ *  SDL_version compiled;
+ *  SDL_version linked;
+ *
+ *  SDL_VERSION(&compiled);
+ *  SDL_GetVersion(&linked);
+ *  printf("We compiled against SDL version %d.%d.%d ...\n",
+ *         compiled.major, compiled.minor, compiled.patch);
+ *  printf("But we linked against SDL version %d.%d.%d.\n",
+ *         linked.major, linked.minor, linked.patch);
+ *  \endcode
+ *
+ *  This function may be called safely at any time, even before SDL_Init().
+ *
+ *  \sa SDL_VERSION
+ */
+extern DECLSPEC void SDLCALL SDL_GetVersion(SDL_version * ver);
+
+/**
+ *  \brief Get the code revision of SDL that is linked against your program.
+ *
+ *  Returns an arbitrary string (a hash value) uniquely identifying the
+ *  exact revision of the SDL library in use, and is only useful in comparing
+ *  against other revisions. It is NOT an incrementing number.
+ */
+extern DECLSPEC const char *SDLCALL SDL_GetRevision(void);
+
+/**
+ *  \brief Get the revision number of SDL that is linked against your program.
+ *
+ *  Returns a number uniquely identifying the exact revision of the SDL
+ *  library in use. It is an incrementing number based on commits to
+ *  hg.libsdl.org.
+ */
+extern DECLSPEC int SDLCALL SDL_GetRevisionNumber(void);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_version_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_video.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_video.h
new file mode 100644
index 0000000..83f49fa
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_video.h
@@ -0,0 +1,1249 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_video.h
+ *
+ *  Header file for SDL video functions.
+ */
+
+#ifndef SDL_video_h_
+#define SDL_video_h_
+
+#include "SDL_stdinc.h"
+#include "SDL_pixels.h"
+#include "SDL_rect.h"
+#include "SDL_surface.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  \brief  The structure that defines a display mode
+ *
+ *  \sa SDL_GetNumDisplayModes()
+ *  \sa SDL_GetDisplayMode()
+ *  \sa SDL_GetDesktopDisplayMode()
+ *  \sa SDL_GetCurrentDisplayMode()
+ *  \sa SDL_GetClosestDisplayMode()
+ *  \sa SDL_SetWindowDisplayMode()
+ *  \sa SDL_GetWindowDisplayMode()
+ */
+typedef struct
+{
+    Uint32 format;              /**< pixel format */
+    int w;                      /**< width, in screen coordinates */
+    int h;                      /**< height, in screen coordinates */
+    int refresh_rate;           /**< refresh rate (or zero for unspecified) */
+    void *driverdata;           /**< driver-specific data, initialize to 0 */
+} SDL_DisplayMode;
+
+/**
+ *  \brief The type used to identify a window
+ *
+ *  \sa SDL_CreateWindow()
+ *  \sa SDL_CreateWindowFrom()
+ *  \sa SDL_DestroyWindow()
+ *  \sa SDL_GetWindowData()
+ *  \sa SDL_GetWindowFlags()
+ *  \sa SDL_GetWindowGrab()
+ *  \sa SDL_GetWindowPosition()
+ *  \sa SDL_GetWindowSize()
+ *  \sa SDL_GetWindowTitle()
+ *  \sa SDL_HideWindow()
+ *  \sa SDL_MaximizeWindow()
+ *  \sa SDL_MinimizeWindow()
+ *  \sa SDL_RaiseWindow()
+ *  \sa SDL_RestoreWindow()
+ *  \sa SDL_SetWindowData()
+ *  \sa SDL_SetWindowFullscreen()
+ *  \sa SDL_SetWindowGrab()
+ *  \sa SDL_SetWindowIcon()
+ *  \sa SDL_SetWindowPosition()
+ *  \sa SDL_SetWindowSize()
+ *  \sa SDL_SetWindowBordered()
+ *  \sa SDL_SetWindowResizable()
+ *  \sa SDL_SetWindowTitle()
+ *  \sa SDL_ShowWindow()
+ */
+typedef struct SDL_Window SDL_Window;
+
+/**
+ *  \brief The flags on a window
+ *
+ *  \sa SDL_GetWindowFlags()
+ */
+typedef enum
+{
+    /* !!! FIXME: change this to name = (1<<x). */
+    SDL_WINDOW_FULLSCREEN = 0x00000001,         /**< fullscreen window */
+    SDL_WINDOW_OPENGL = 0x00000002,             /**< window usable with OpenGL context */
+    SDL_WINDOW_SHOWN = 0x00000004,              /**< window is visible */
+    SDL_WINDOW_HIDDEN = 0x00000008,             /**< window is not visible */
+    SDL_WINDOW_BORDERLESS = 0x00000010,         /**< no window decoration */
+    SDL_WINDOW_RESIZABLE = 0x00000020,          /**< window can be resized */
+    SDL_WINDOW_MINIMIZED = 0x00000040,          /**< window is minimized */
+    SDL_WINDOW_MAXIMIZED = 0x00000080,          /**< window is maximized */
+    SDL_WINDOW_INPUT_GRABBED = 0x00000100,      /**< window has grabbed input focus */
+    SDL_WINDOW_INPUT_FOCUS = 0x00000200,        /**< window has input focus */
+    SDL_WINDOW_MOUSE_FOCUS = 0x00000400,        /**< window has mouse focus */
+    SDL_WINDOW_FULLSCREEN_DESKTOP = ( SDL_WINDOW_FULLSCREEN | 0x00001000 ),
+    SDL_WINDOW_FOREIGN = 0x00000800,            /**< window not created by SDL */
+    SDL_WINDOW_ALLOW_HIGHDPI = 0x00002000,      /**< window should be created in high-DPI mode if supported.
+                                                     On macOS NSHighResolutionCapable must be set true in the
+                                                     application's Info.plist for this to have any effect. */
+    SDL_WINDOW_MOUSE_CAPTURE = 0x00004000,      /**< window has mouse captured (unrelated to INPUT_GRABBED) */
+    SDL_WINDOW_ALWAYS_ON_TOP = 0x00008000,      /**< window should always be above others */
+    SDL_WINDOW_SKIP_TASKBAR  = 0x00010000,      /**< window should not be added to the taskbar */
+    SDL_WINDOW_UTILITY       = 0x00020000,      /**< window should be treated as a utility window */
+    SDL_WINDOW_TOOLTIP       = 0x00040000,      /**< window should be treated as a tooltip */
+    SDL_WINDOW_POPUP_MENU    = 0x00080000,      /**< window should be treated as a popup menu */
+    SDL_WINDOW_VULKAN        = 0x10000000       /**< window usable for Vulkan surface */
+} SDL_WindowFlags;
+
+/**
+ *  \brief Used to indicate that you don't care what the window position is.
+ */
+#define SDL_WINDOWPOS_UNDEFINED_MASK    0x1FFF0000u
+#define SDL_WINDOWPOS_UNDEFINED_DISPLAY(X)  (SDL_WINDOWPOS_UNDEFINED_MASK|(X))
+#define SDL_WINDOWPOS_UNDEFINED         SDL_WINDOWPOS_UNDEFINED_DISPLAY(0)
+#define SDL_WINDOWPOS_ISUNDEFINED(X)    \
+            (((X)&0xFFFF0000) == SDL_WINDOWPOS_UNDEFINED_MASK)
+
+/**
+ *  \brief Used to indicate that the window position should be centered.
+ */
+#define SDL_WINDOWPOS_CENTERED_MASK    0x2FFF0000u
+#define SDL_WINDOWPOS_CENTERED_DISPLAY(X)  (SDL_WINDOWPOS_CENTERED_MASK|(X))
+#define SDL_WINDOWPOS_CENTERED         SDL_WINDOWPOS_CENTERED_DISPLAY(0)
+#define SDL_WINDOWPOS_ISCENTERED(X)    \
+            (((X)&0xFFFF0000) == SDL_WINDOWPOS_CENTERED_MASK)
+
+/**
+ *  \brief Event subtype for window events
+ */
+typedef enum
+{
+    SDL_WINDOWEVENT_NONE,           /**< Never used */
+    SDL_WINDOWEVENT_SHOWN,          /**< Window has been shown */
+    SDL_WINDOWEVENT_HIDDEN,         /**< Window has been hidden */
+    SDL_WINDOWEVENT_EXPOSED,        /**< Window has been exposed and should be
+                                         redrawn */
+    SDL_WINDOWEVENT_MOVED,          /**< Window has been moved to data1, data2
+                                     */
+    SDL_WINDOWEVENT_RESIZED,        /**< Window has been resized to data1xdata2 */
+    SDL_WINDOWEVENT_SIZE_CHANGED,   /**< The window size has changed, either as
+                                         a result of an API call or through the
+                                         system or user changing the window size. */
+    SDL_WINDOWEVENT_MINIMIZED,      /**< Window has been minimized */
+    SDL_WINDOWEVENT_MAXIMIZED,      /**< Window has been maximized */
+    SDL_WINDOWEVENT_RESTORED,       /**< Window has been restored to normal size
+                                         and position */
+    SDL_WINDOWEVENT_ENTER,          /**< Window has gained mouse focus */
+    SDL_WINDOWEVENT_LEAVE,          /**< Window has lost mouse focus */
+    SDL_WINDOWEVENT_FOCUS_GAINED,   /**< Window has gained keyboard focus */
+    SDL_WINDOWEVENT_FOCUS_LOST,     /**< Window has lost keyboard focus */
+    SDL_WINDOWEVENT_CLOSE,          /**< The window manager requests that the window be closed */
+    SDL_WINDOWEVENT_TAKE_FOCUS,     /**< Window is being offered a focus (should SetWindowInputFocus() on itself or a subwindow, or ignore) */
+    SDL_WINDOWEVENT_HIT_TEST        /**< Window had a hit test that wasn't SDL_HITTEST_NORMAL. */
+} SDL_WindowEventID;
+
+/**
+ *  \brief An opaque handle to an OpenGL context.
+ */
+typedef void *SDL_GLContext;
+
+/**
+ *  \brief OpenGL configuration attributes
+ */
+typedef enum
+{
+    SDL_GL_RED_SIZE,
+    SDL_GL_GREEN_SIZE,
+    SDL_GL_BLUE_SIZE,
+    SDL_GL_ALPHA_SIZE,
+    SDL_GL_BUFFER_SIZE,
+    SDL_GL_DOUBLEBUFFER,
+    SDL_GL_DEPTH_SIZE,
+    SDL_GL_STENCIL_SIZE,
+    SDL_GL_ACCUM_RED_SIZE,
+    SDL_GL_ACCUM_GREEN_SIZE,
+    SDL_GL_ACCUM_BLUE_SIZE,
+    SDL_GL_ACCUM_ALPHA_SIZE,
+    SDL_GL_STEREO,
+    SDL_GL_MULTISAMPLEBUFFERS,
+    SDL_GL_MULTISAMPLESAMPLES,
+    SDL_GL_ACCELERATED_VISUAL,
+    SDL_GL_RETAINED_BACKING,
+    SDL_GL_CONTEXT_MAJOR_VERSION,
+    SDL_GL_CONTEXT_MINOR_VERSION,
+    SDL_GL_CONTEXT_EGL,
+    SDL_GL_CONTEXT_FLAGS,
+    SDL_GL_CONTEXT_PROFILE_MASK,
+    SDL_GL_SHARE_WITH_CURRENT_CONTEXT,
+    SDL_GL_FRAMEBUFFER_SRGB_CAPABLE,
+    SDL_GL_CONTEXT_RELEASE_BEHAVIOR,
+    SDL_GL_CONTEXT_RESET_NOTIFICATION,
+    SDL_GL_CONTEXT_NO_ERROR
+} SDL_GLattr;
+
+typedef enum
+{
+    SDL_GL_CONTEXT_PROFILE_CORE           = 0x0001,
+    SDL_GL_CONTEXT_PROFILE_COMPATIBILITY  = 0x0002,
+    SDL_GL_CONTEXT_PROFILE_ES             = 0x0004 /**< GLX_CONTEXT_ES2_PROFILE_BIT_EXT */
+} SDL_GLprofile;
+
+typedef enum
+{
+    SDL_GL_CONTEXT_DEBUG_FLAG              = 0x0001,
+    SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG = 0x0002,
+    SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG      = 0x0004,
+    SDL_GL_CONTEXT_RESET_ISOLATION_FLAG    = 0x0008
+} SDL_GLcontextFlag;
+
+typedef enum
+{
+    SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE   = 0x0000,
+    SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH  = 0x0001
+} SDL_GLcontextReleaseFlag;
+
+typedef enum
+{
+    SDL_GL_CONTEXT_RESET_NO_NOTIFICATION = 0x0000,
+    SDL_GL_CONTEXT_RESET_LOSE_CONTEXT    = 0x0001
+} SDL_GLContextResetNotification;
+
+/* Function prototypes */
+
+/**
+ *  \brief Get the number of video drivers compiled into SDL
+ *
+ *  \sa SDL_GetVideoDriver()
+ */
+extern DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void);
+
+/**
+ *  \brief Get the name of a built in video driver.
+ *
+ *  \note The video drivers are presented in the order in which they are
+ *        normally checked during initialization.
+ *
+ *  \sa SDL_GetNumVideoDrivers()
+ */
+extern DECLSPEC const char *SDLCALL SDL_GetVideoDriver(int index);
+
+/**
+ *  \brief Initialize the video subsystem, optionally specifying a video driver.
+ *
+ *  \param driver_name Initialize a specific driver by name, or NULL for the
+ *                     default video driver.
+ *
+ *  \return 0 on success, -1 on error
+ *
+ *  This function initializes the video subsystem; setting up a connection
+ *  to the window manager, etc, and determines the available display modes
+ *  and pixel formats, but does not initialize a window or graphics mode.
+ *
+ *  \sa SDL_VideoQuit()
+ */
+extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name);
+
+/**
+ *  \brief Shuts down the video subsystem.
+ *
+ *  This function closes all windows, and restores the original video mode.
+ *
+ *  \sa SDL_VideoInit()
+ */
+extern DECLSPEC void SDLCALL SDL_VideoQuit(void);
+
+/**
+ *  \brief Returns the name of the currently initialized video driver.
+ *
+ *  \return The name of the current video driver or NULL if no driver
+ *          has been initialized
+ *
+ *  \sa SDL_GetNumVideoDrivers()
+ *  \sa SDL_GetVideoDriver()
+ */
+extern DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void);
+
+/**
+ *  \brief Returns the number of available video displays.
+ *
+ *  \sa SDL_GetDisplayBounds()
+ */
+extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void);
+
+/**
+ *  \brief Get the name of a display in UTF-8 encoding
+ *
+ *  \return The name of a display, or NULL for an invalid display index.
+ *
+ *  \sa SDL_GetNumVideoDisplays()
+ */
+extern DECLSPEC const char * SDLCALL SDL_GetDisplayName(int displayIndex);
+
+/**
+ *  \brief Get the desktop area represented by a display, with the primary
+ *         display located at 0,0
+ *
+ *  \return 0 on success, or -1 if the index is out of range.
+ *
+ *  \sa SDL_GetNumVideoDisplays()
+ */
+extern DECLSPEC int SDLCALL SDL_GetDisplayBounds(int displayIndex, SDL_Rect * rect);
+
+/**
+ *  \brief Get the dots/pixels-per-inch for a display
+ *
+ *  \note Diagonal, horizontal and vertical DPI can all be optionally
+ *        returned if the parameter is non-NULL.
+ *
+ *  \return 0 on success, or -1 if no DPI information is available or the index is out of range.
+ *
+ *  \sa SDL_GetNumVideoDisplays()
+ */
+extern DECLSPEC int SDLCALL SDL_GetDisplayDPI(int displayIndex, float * ddpi, float * hdpi, float * vdpi);
+
+/**
+ *  \brief Get the usable desktop area represented by a display, with the
+ *         primary display located at 0,0
+ *
+ *  This is the same area as SDL_GetDisplayBounds() reports, but with portions
+ *  reserved by the system removed. For example, on Mac OS X, this subtracts
+ *  the area occupied by the menu bar and dock.
+ *
+ *  Setting a window to be fullscreen generally bypasses these unusable areas,
+ *  so these are good guidelines for the maximum space available to a
+ *  non-fullscreen window.
+ *
+ *  \return 0 on success, or -1 if the index is out of range.
+ *
+ *  \sa SDL_GetDisplayBounds()
+ *  \sa SDL_GetNumVideoDisplays()
+ */
+extern DECLSPEC int SDLCALL SDL_GetDisplayUsableBounds(int displayIndex, SDL_Rect * rect);
+
+/**
+ *  \brief Returns the number of available display modes.
+ *
+ *  \sa SDL_GetDisplayMode()
+ */
+extern DECLSPEC int SDLCALL SDL_GetNumDisplayModes(int displayIndex);
+
+/**
+ *  \brief Fill in information about a specific display mode.
+ *
+ *  \note The display modes are sorted in this priority:
+ *        \li bits per pixel -> more colors to fewer colors
+ *        \li width -> largest to smallest
+ *        \li height -> largest to smallest
+ *        \li refresh rate -> highest to lowest
+ *
+ *  \sa SDL_GetNumDisplayModes()
+ */
+extern DECLSPEC int SDLCALL SDL_GetDisplayMode(int displayIndex, int modeIndex,
+                                               SDL_DisplayMode * mode);
+
+/**
+ *  \brief Fill in information about the desktop display mode.
+ */
+extern DECLSPEC int SDLCALL SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode * mode);
+
+/**
+ *  \brief Fill in information about the current display mode.
+ */
+extern DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode * mode);
+
+
+/**
+ *  \brief Get the closest match to the requested display mode.
+ *
+ *  \param displayIndex The index of display from which mode should be queried.
+ *  \param mode The desired display mode
+ *  \param closest A pointer to a display mode to be filled in with the closest
+ *                 match of the available display modes.
+ *
+ *  \return The passed in value \c closest, or NULL if no matching video mode
+ *          was available.
+ *
+ *  The available display modes are scanned, and \c closest is filled in with the
+ *  closest mode matching the requested mode and returned.  The mode format and
+ *  refresh_rate default to the desktop mode if they are 0.  The modes are
+ *  scanned with size being first priority, format being second priority, and
+ *  finally checking the refresh_rate.  If all the available modes are too
+ *  small, then NULL is returned.
+ *
+ *  \sa SDL_GetNumDisplayModes()
+ *  \sa SDL_GetDisplayMode()
+ */
+extern DECLSPEC SDL_DisplayMode * SDLCALL SDL_GetClosestDisplayMode(int displayIndex, const SDL_DisplayMode * mode, SDL_DisplayMode * closest);
+
+/**
+ *  \brief Get the display index associated with a window.
+ *
+ *  \return the display index of the display containing the center of the
+ *          window, or -1 on error.
+ */
+extern DECLSPEC int SDLCALL SDL_GetWindowDisplayIndex(SDL_Window * window);
+
+/**
+ *  \brief Set the display mode used when a fullscreen window is visible.
+ *
+ *  By default the window's dimensions and the desktop format and refresh rate
+ *  are used.
+ *
+ *  \param window The window for which the display mode should be set.
+ *  \param mode The mode to use, or NULL for the default mode.
+ *
+ *  \return 0 on success, or -1 if setting the display mode failed.
+ *
+ *  \sa SDL_GetWindowDisplayMode()
+ *  \sa SDL_SetWindowFullscreen()
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowDisplayMode(SDL_Window * window,
+                                                     const SDL_DisplayMode
+                                                         * mode);
+
+/**
+ *  \brief Fill in information about the display mode used when a fullscreen
+ *         window is visible.
+ *
+ *  \sa SDL_SetWindowDisplayMode()
+ *  \sa SDL_SetWindowFullscreen()
+ */
+extern DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window * window,
+                                                     SDL_DisplayMode * mode);
+
+/**
+ *  \brief Get the pixel format associated with the window.
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window * window);
+
+/**
+ *  \brief Create a window with the specified position, dimensions, and flags.
+ *
+ *  \param title The title of the window, in UTF-8 encoding.
+ *  \param x     The x position of the window, ::SDL_WINDOWPOS_CENTERED, or
+ *               ::SDL_WINDOWPOS_UNDEFINED.
+ *  \param y     The y position of the window, ::SDL_WINDOWPOS_CENTERED, or
+ *               ::SDL_WINDOWPOS_UNDEFINED.
+ *  \param w     The width of the window, in screen coordinates.
+ *  \param h     The height of the window, in screen coordinates.
+ *  \param flags The flags for the window, a mask of any of the following:
+ *               ::SDL_WINDOW_FULLSCREEN,    ::SDL_WINDOW_OPENGL,
+ *               ::SDL_WINDOW_HIDDEN,        ::SDL_WINDOW_BORDERLESS,
+ *               ::SDL_WINDOW_RESIZABLE,     ::SDL_WINDOW_MAXIMIZED,
+ *               ::SDL_WINDOW_MINIMIZED,     ::SDL_WINDOW_INPUT_GRABBED,
+ *               ::SDL_WINDOW_ALLOW_HIGHDPI, ::SDL_WINDOW_VULKAN.
+ *
+ *  \return The created window, or NULL if window creation failed.
+ *
+ *  If the window is created with the SDL_WINDOW_ALLOW_HIGHDPI flag, its size
+ *  in pixels may differ from its size in screen coordinates on platforms with
+ *  high-DPI support (e.g. iOS and Mac OS X). Use SDL_GetWindowSize() to query
+ *  the client area's size in screen coordinates, and SDL_GL_GetDrawableSize(),
+ *  SDL_Vulkan_GetDrawableSize(), or SDL_GetRendererOutputSize() to query the
+ *  drawable size in pixels.
+ *
+ *  If the window is created with any of the SDL_WINDOW_OPENGL or
+ *  SDL_WINDOW_VULKAN flags, then the corresponding LoadLibrary function
+ *  (SDL_GL_LoadLibrary or SDL_Vulkan_LoadLibrary) is called and the
+ *  corresponding UnloadLibrary function is called by SDL_DestroyWindow().
+ *
+ *  If SDL_WINDOW_VULKAN is specified and there isn't a working Vulkan driver,
+ *  SDL_CreateWindow() will fail because SDL_Vulkan_LoadLibrary() will fail.
+ *
+ *  \note On non-Apple devices, SDL requires you to either not link to the
+ *        Vulkan loader or link to a dynamic library version. This limitation
+ *        may be removed in a future version of SDL.
+ *
+ *  \sa SDL_DestroyWindow()
+ *  \sa SDL_GL_LoadLibrary()
+ *  \sa SDL_Vulkan_LoadLibrary()
+ */
+extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindow(const char *title,
+                                                      int x, int y, int w,
+                                                      int h, Uint32 flags);
+
+/**
+ *  \brief Create an SDL window from an existing native window.
+ *
+ *  \param data A pointer to driver-dependent window creation data
+ *
+ *  \return The created window, or NULL if window creation failed.
+ *
+ *  \sa SDL_DestroyWindow()
+ */
+extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindowFrom(const void *data);
+
+/**
+ *  \brief Get the numeric ID of a window, for logging purposes.
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window * window);
+
+/**
+ *  \brief Get a window from a stored ID, or NULL if it doesn't exist.
+ */
+extern DECLSPEC SDL_Window * SDLCALL SDL_GetWindowFromID(Uint32 id);
+
+/**
+ *  \brief Get the window flags.
+ */
+extern DECLSPEC Uint32 SDLCALL SDL_GetWindowFlags(SDL_Window * window);
+
+/**
+ *  \brief Set the title of a window, in UTF-8 format.
+ *
+ *  \sa SDL_GetWindowTitle()
+ */
+extern DECLSPEC void SDLCALL SDL_SetWindowTitle(SDL_Window * window,
+                                                const char *title);
+
+/**
+ *  \brief Get the title of a window, in UTF-8 format.
+ *
+ *  \sa SDL_SetWindowTitle()
+ */
+extern DECLSPEC const char *SDLCALL SDL_GetWindowTitle(SDL_Window * window);
+
+/**
+ *  \brief Set the icon for a window.
+ *
+ *  \param window The window for which the icon should be set.
+ *  \param icon The icon for the window.
+ */
+extern DECLSPEC void SDLCALL SDL_SetWindowIcon(SDL_Window * window,
+                                               SDL_Surface * icon);
+
+/**
+ *  \brief Associate an arbitrary named pointer with a window.
+ *
+ *  \param window   The window to associate with the pointer.
+ *  \param name     The name of the pointer.
+ *  \param userdata The associated pointer.
+ *
+ *  \return The previous value associated with 'name'
+ *
+ *  \note The name is case-sensitive.
+ *
+ *  \sa SDL_GetWindowData()
+ */
+extern DECLSPEC void* SDLCALL SDL_SetWindowData(SDL_Window * window,
+                                                const char *name,
+                                                void *userdata);
+
+/**
+ *  \brief Retrieve the data pointer associated with a window.
+ *
+ *  \param window   The window to query.
+ *  \param name     The name of the pointer.
+ *
+ *  \return The value associated with 'name'
+ *
+ *  \sa SDL_SetWindowData()
+ */
+extern DECLSPEC void *SDLCALL SDL_GetWindowData(SDL_Window * window,
+                                                const char *name);
+
+/**
+ *  \brief Set the position of a window.
+ *
+ *  \param window   The window to reposition.
+ *  \param x        The x coordinate of the window in screen coordinates, or
+ *                  ::SDL_WINDOWPOS_CENTERED or ::SDL_WINDOWPOS_UNDEFINED.
+ *  \param y        The y coordinate of the window in screen coordinates, or
+ *                  ::SDL_WINDOWPOS_CENTERED or ::SDL_WINDOWPOS_UNDEFINED.
+ *
+ *  \note The window coordinate origin is the upper left of the display.
+ *
+ *  \sa SDL_GetWindowPosition()
+ */
+extern DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window * window,
+                                                   int x, int y);
+
+/**
+ *  \brief Get the position of a window.
+ *
+ *  \param window   The window to query.
+ *  \param x        Pointer to variable for storing the x position, in screen
+ *                  coordinates. May be NULL.
+ *  \param y        Pointer to variable for storing the y position, in screen
+ *                  coordinates. May be NULL.
+ *
+ *  \sa SDL_SetWindowPosition()
+ */
+extern DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_Window * window,
+                                                   int *x, int *y);
+
+/**
+ *  \brief Set the size of a window's client area.
+ *
+ *  \param window   The window to resize.
+ *  \param w        The width of the window, in screen coordinates. Must be >0.
+ *  \param h        The height of the window, in screen coordinates. Must be >0.
+ *
+ *  \note Fullscreen windows automatically match the size of the display mode,
+ *        and you should use SDL_SetWindowDisplayMode() to change their size.
+ *
+ *  The window size in screen coordinates may differ from the size in pixels, if
+ *  the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with
+ *  high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize() or
+ *  SDL_GetRendererOutputSize() to get the real client area size in pixels.
+ *
+ *  \sa SDL_GetWindowSize()
+ *  \sa SDL_SetWindowDisplayMode()
+ */
+extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window * window, int w,
+                                               int h);
+
+/**
+ *  \brief Get the size of a window's client area.
+ *
+ *  \param window   The window to query.
+ *  \param w        Pointer to variable for storing the width, in screen
+ *                  coordinates. May be NULL.
+ *  \param h        Pointer to variable for storing the height, in screen
+ *                  coordinates. May be NULL.
+ *
+ *  The window size in screen coordinates may differ from the size in pixels, if
+ *  the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with
+ *  high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize() or
+ *  SDL_GetRendererOutputSize() to get the real client area size in pixels.
+ *
+ *  \sa SDL_SetWindowSize()
+ */
+extern DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window * window, int *w,
+                                               int *h);
+
+/**
+ *  \brief Get the size of a window's borders (decorations) around the client area.
+ *
+ *  \param window The window to query.
+ *  \param top Pointer to variable for storing the size of the top border. NULL is permitted.
+ *  \param left Pointer to variable for storing the size of the left border. NULL is permitted.
+ *  \param bottom Pointer to variable for storing the size of the bottom border. NULL is permitted.
+ *  \param right Pointer to variable for storing the size of the right border. NULL is permitted.
+ *
+ *  \return 0 on success, or -1 if getting this information is not supported.
+ *
+ *  \note if this function fails (returns -1), the size values will be
+ *        initialized to 0, 0, 0, 0 (if a non-NULL pointer is provided), as
+ *        if the window in question was borderless.
+ */
+extern DECLSPEC int SDLCALL SDL_GetWindowBordersSize(SDL_Window * window,
+                                                     int *top, int *left,
+                                                     int *bottom, int *right);
+
+/**
+ *  \brief Set the minimum size of a window's client area.
+ *
+ *  \param window    The window to set a new minimum size.
+ *  \param min_w     The minimum width of the window, must be >0
+ *  \param min_h     The minimum height of the window, must be >0
+ *
+ *  \note You can't change the minimum size of a fullscreen window, it
+ *        automatically matches the size of the display mode.
+ *
+ *  \sa SDL_GetWindowMinimumSize()
+ *  \sa SDL_SetWindowMaximumSize()
+ */
+extern DECLSPEC void SDLCALL SDL_SetWindowMinimumSize(SDL_Window * window,
+                                                      int min_w, int min_h);
+
+/**
+ *  \brief Get the minimum size of a window's client area.
+ *
+ *  \param window   The window to query.
+ *  \param w        Pointer to variable for storing the minimum width, may be NULL
+ *  \param h        Pointer to variable for storing the minimum height, may be NULL
+ *
+ *  \sa SDL_GetWindowMaximumSize()
+ *  \sa SDL_SetWindowMinimumSize()
+ */
+extern DECLSPEC void SDLCALL SDL_GetWindowMinimumSize(SDL_Window * window,
+                                                      int *w, int *h);
+
+/**
+ *  \brief Set the maximum size of a window's client area.
+ *
+ *  \param window    The window to set a new maximum size.
+ *  \param max_w     The maximum width of the window, must be >0
+ *  \param max_h     The maximum height of the window, must be >0
+ *
+ *  \note You can't change the maximum size of a fullscreen window, it
+ *        automatically matches the size of the display mode.
+ *
+ *  \sa SDL_GetWindowMaximumSize()
+ *  \sa SDL_SetWindowMinimumSize()
+ */
+extern DECLSPEC void SDLCALL SDL_SetWindowMaximumSize(SDL_Window * window,
+                                                      int max_w, int max_h);
+
+/**
+ *  \brief Get the maximum size of a window's client area.
+ *
+ *  \param window   The window to query.
+ *  \param w        Pointer to variable for storing the maximum width, may be NULL
+ *  \param h        Pointer to variable for storing the maximum height, may be NULL
+ *
+ *  \sa SDL_GetWindowMinimumSize()
+ *  \sa SDL_SetWindowMaximumSize()
+ */
+extern DECLSPEC void SDLCALL SDL_GetWindowMaximumSize(SDL_Window * window,
+                                                      int *w, int *h);
+
+/**
+ *  \brief Set the border state of a window.
+ *
+ *  This will add or remove the window's SDL_WINDOW_BORDERLESS flag and
+ *  add or remove the border from the actual window. This is a no-op if the
+ *  window's border already matches the requested state.
+ *
+ *  \param window The window of which to change the border state.
+ *  \param bordered SDL_FALSE to remove border, SDL_TRUE to add border.
+ *
+ *  \note You can't change the border state of a fullscreen window.
+ *
+ *  \sa SDL_GetWindowFlags()
+ */
+extern DECLSPEC void SDLCALL SDL_SetWindowBordered(SDL_Window * window,
+                                                   SDL_bool bordered);
+
+/**
+ *  \brief Set the user-resizable state of a window.
+ *
+ *  This will add or remove the window's SDL_WINDOW_RESIZABLE flag and
+ *  allow/disallow user resizing of the window. This is a no-op if the
+ *  window's resizable state already matches the requested state.
+ *
+ *  \param window The window of which to change the resizable state.
+ *  \param resizable SDL_TRUE to allow resizing, SDL_FALSE to disallow.
+ *
+ *  \note You can't change the resizable state of a fullscreen window.
+ *
+ *  \sa SDL_GetWindowFlags()
+ */
+extern DECLSPEC void SDLCALL SDL_SetWindowResizable(SDL_Window * window,
+                                                    SDL_bool resizable);
+
+/**
+ *  \brief Show a window.
+ *
+ *  \sa SDL_HideWindow()
+ */
+extern DECLSPEC void SDLCALL SDL_ShowWindow(SDL_Window * window);
+
+/**
+ *  \brief Hide a window.
+ *
+ *  \sa SDL_ShowWindow()
+ */
+extern DECLSPEC void SDLCALL SDL_HideWindow(SDL_Window * window);
+
+/**
+ *  \brief Raise a window above other windows and set the input focus.
+ */
+extern DECLSPEC void SDLCALL SDL_RaiseWindow(SDL_Window * window);
+
+/**
+ *  \brief Make a window as large as possible.
+ *
+ *  \sa SDL_RestoreWindow()
+ */
+extern DECLSPEC void SDLCALL SDL_MaximizeWindow(SDL_Window * window);
+
+/**
+ *  \brief Minimize a window to an iconic representation.
+ *
+ *  \sa SDL_RestoreWindow()
+ */
+extern DECLSPEC void SDLCALL SDL_MinimizeWindow(SDL_Window * window);
+
+/**
+ *  \brief Restore the size and position of a minimized or maximized window.
+ *
+ *  \sa SDL_MaximizeWindow()
+ *  \sa SDL_MinimizeWindow()
+ */
+extern DECLSPEC void SDLCALL SDL_RestoreWindow(SDL_Window * window);
+
+/**
+ *  \brief Set a window's fullscreen state.
+ *
+ *  \return 0 on success, or -1 if setting the display mode failed.
+ *
+ *  \sa SDL_SetWindowDisplayMode()
+ *  \sa SDL_GetWindowDisplayMode()
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window * window,
+                                                    Uint32 flags);
+
+/**
+ *  \brief Get the SDL surface associated with the window.
+ *
+ *  \return The window's framebuffer surface, or NULL on error.
+ *
+ *  A new surface will be created with the optimal format for the window,
+ *  if necessary. This surface will be freed when the window is destroyed.
+ *
+ *  \note You may not combine this with 3D or the rendering API on this window.
+ *
+ *  \sa SDL_UpdateWindowSurface()
+ *  \sa SDL_UpdateWindowSurfaceRects()
+ */
+extern DECLSPEC SDL_Surface * SDLCALL SDL_GetWindowSurface(SDL_Window * window);
+
+/**
+ *  \brief Copy the window surface to the screen.
+ *
+ *  \return 0 on success, or -1 on error.
+ *
+ *  \sa SDL_GetWindowSurface()
+ *  \sa SDL_UpdateWindowSurfaceRects()
+ */
+extern DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window * window);
+
+/**
+ *  \brief Copy a number of rectangles on the window surface to the screen.
+ *
+ *  \return 0 on success, or -1 on error.
+ *
+ *  \sa SDL_GetWindowSurface()
+ *  \sa SDL_UpdateWindowSurface()
+ */
+extern DECLSPEC int SDLCALL SDL_UpdateWindowSurfaceRects(SDL_Window * window,
+                                                         const SDL_Rect * rects,
+                                                         int numrects);
+
+/**
+ *  \brief Set a window's input grab mode.
+ *
+ *  \param window The window for which the input grab mode should be set.
+ *  \param grabbed This is SDL_TRUE to grab input, and SDL_FALSE to release input.
+ *
+ *  If the caller enables a grab while another window is currently grabbed,
+ *  the other window loses its grab in favor of the caller's window.
+ *
+ *  \sa SDL_GetWindowGrab()
+ */
+extern DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window * window,
+                                               SDL_bool grabbed);
+
+/**
+ *  \brief Get a window's input grab mode.
+ *
+ *  \return This returns SDL_TRUE if input is grabbed, and SDL_FALSE otherwise.
+ *
+ *  \sa SDL_SetWindowGrab()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window * window);
+
+/**
+ *  \brief Get the window that currently has an input grab enabled.
+ *
+ *  \return This returns the window if input is grabbed, and NULL otherwise.
+ *
+ *  \sa SDL_SetWindowGrab()
+ */
+extern DECLSPEC SDL_Window * SDLCALL SDL_GetGrabbedWindow(void);
+
+/**
+ *  \brief Set the brightness (gamma correction) for a window.
+ *
+ *  \return 0 on success, or -1 if setting the brightness isn't supported.
+ *
+ *  \sa SDL_GetWindowBrightness()
+ *  \sa SDL_SetWindowGammaRamp()
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowBrightness(SDL_Window * window, float brightness);
+
+/**
+ *  \brief Get the brightness (gamma correction) for a window.
+ *
+ *  \return The last brightness value passed to SDL_SetWindowBrightness()
+ *
+ *  \sa SDL_SetWindowBrightness()
+ */
+extern DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window * window);
+
+/**
+ *  \brief Set the opacity for a window
+ *
+ *  \param window The window which will be made transparent or opaque
+ *  \param opacity Opacity (0.0f - transparent, 1.0f - opaque) This will be
+ *                 clamped internally between 0.0f and 1.0f.
+ *
+ *  \return 0 on success, or -1 if setting the opacity isn't supported.
+ *
+ *  \sa SDL_GetWindowOpacity()
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowOpacity(SDL_Window * window, float opacity);
+
+/**
+ *  \brief Get the opacity of a window.
+ *
+ *  If transparency isn't supported on this platform, opacity will be reported
+ *  as 1.0f without error.
+ *
+ *  \param window The window in question.
+ *  \param out_opacity Opacity (0.0f - transparent, 1.0f - opaque)
+ *
+ *  \return 0 on success, or -1 on error (invalid window, etc).
+ *
+ *  \sa SDL_SetWindowOpacity()
+ */
+extern DECLSPEC int SDLCALL SDL_GetWindowOpacity(SDL_Window * window, float * out_opacity);
+
+/**
+ *  \brief Sets the window as a modal for another window (TODO: reconsider this function and/or its name)
+ *
+ *  \param modal_window The window that should be modal
+ *  \param parent_window The parent window
+ *
+ *  \return 0 on success, or -1 otherwise.
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowModalFor(SDL_Window * modal_window, SDL_Window * parent_window);
+
+/**
+ *  \brief Explicitly sets input focus to the window.
+ *
+ *  You almost certainly want SDL_RaiseWindow() instead of this function. Use
+ *  this with caution, as you might give focus to a window that's completely
+ *  obscured by other windows.
+ *
+ *  \param window The window that should get the input focus
+ *
+ *  \return 0 on success, or -1 otherwise.
+ *  \sa SDL_RaiseWindow()
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowInputFocus(SDL_Window * window);
+
+/**
+ *  \brief Set the gamma ramp for a window.
+ *
+ *  \param window The window for which the gamma ramp should be set.
+ *  \param red The translation table for the red channel, or NULL.
+ *  \param green The translation table for the green channel, or NULL.
+ *  \param blue The translation table for the blue channel, or NULL.
+ *
+ *  \return 0 on success, or -1 if gamma ramps are unsupported.
+ *
+ *  Set the gamma translation table for the red, green, and blue channels
+ *  of the video hardware.  Each table is an array of 256 16-bit quantities,
+ *  representing a mapping between the input and output for that channel.
+ *  The input is the index into the array, and the output is the 16-bit
+ *  gamma value at that index, scaled to the output color precision.
+ *
+ *  \sa SDL_GetWindowGammaRamp()
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowGammaRamp(SDL_Window * window,
+                                                   const Uint16 * red,
+                                                   const Uint16 * green,
+                                                   const Uint16 * blue);
+
+/**
+ *  \brief Get the gamma ramp for a window.
+ *
+ *  \param window The window from which the gamma ramp should be queried.
+ *  \param red   A pointer to a 256 element array of 16-bit quantities to hold
+ *               the translation table for the red channel, or NULL.
+ *  \param green A pointer to a 256 element array of 16-bit quantities to hold
+ *               the translation table for the green channel, or NULL.
+ *  \param blue  A pointer to a 256 element array of 16-bit quantities to hold
+ *               the translation table for the blue channel, or NULL.
+ *
+ *  \return 0 on success, or -1 if gamma ramps are unsupported.
+ *
+ *  \sa SDL_SetWindowGammaRamp()
+ */
+extern DECLSPEC int SDLCALL SDL_GetWindowGammaRamp(SDL_Window * window,
+                                                   Uint16 * red,
+                                                   Uint16 * green,
+                                                   Uint16 * blue);
+
+/**
+ *  \brief Possible return values from the SDL_HitTest callback.
+ *
+ *  \sa SDL_HitTest
+ */
+typedef enum
+{
+    SDL_HITTEST_NORMAL,  /**< Region is normal. No special properties. */
+    SDL_HITTEST_DRAGGABLE,  /**< Region can drag entire window. */
+    SDL_HITTEST_RESIZE_TOPLEFT,
+    SDL_HITTEST_RESIZE_TOP,
+    SDL_HITTEST_RESIZE_TOPRIGHT,
+    SDL_HITTEST_RESIZE_RIGHT,
+    SDL_HITTEST_RESIZE_BOTTOMRIGHT,
+    SDL_HITTEST_RESIZE_BOTTOM,
+    SDL_HITTEST_RESIZE_BOTTOMLEFT,
+    SDL_HITTEST_RESIZE_LEFT
+} SDL_HitTestResult;
+
+/**
+ *  \brief Callback used for hit-testing.
+ *
+ *  \sa SDL_SetWindowHitTest
+ */
+typedef SDL_HitTestResult (SDLCALL *SDL_HitTest)(SDL_Window *win,
+                                                 const SDL_Point *area,
+                                                 void *data);
+
+/**
+ *  \brief Provide a callback that decides if a window region has special properties.
+ *
+ *  Normally windows are dragged and resized by decorations provided by the
+ *  system window manager (a title bar, borders, etc), but for some apps, it
+ *  makes sense to drag them from somewhere else inside the window itself; for
+ *  example, one might have a borderless window that wants to be draggable
+ *  from any part, or simulate its own title bar, etc.
+ *
+ *  This function lets the app provide a callback that designates pieces of
+ *  a given window as special. This callback is run during event processing
+ *  if we need to tell the OS to treat a region of the window specially; the
+ *  use of this callback is known as "hit testing."
+ *
+ *  Mouse input may not be delivered to your application if it is within
+ *  a special area; the OS will often apply that input to moving the window or
+ *  resizing the window and not deliver it to the application.
+ *
+ *  Specifying NULL for a callback disables hit-testing. Hit-testing is
+ *  disabled by default.
+ *
+ *  Platforms that don't support this functionality will return -1
+ *  unconditionally, even if you're attempting to disable hit-testing.
+ *
+ *  Your callback may fire at any time, and its firing does not indicate any
+ *  specific behavior (for example, on Windows, this certainly might fire
+ *  when the OS is deciding whether to drag your window, but it fires for lots
+ *  of other reasons, too, some unrelated to anything you probably care about
+ *  _and when the mouse isn't actually at the location it is testing_).
+ *  Since this can fire at any time, you should try to keep your callback
+ *  efficient, devoid of allocations, etc.
+ *
+ *  \param window The window to set hit-testing on.
+ *  \param callback The callback to call when doing a hit-test.
+ *  \param callback_data An app-defined void pointer passed to the callback.
+ *  \return 0 on success, -1 on error (including unsupported).
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowHitTest(SDL_Window * window,
+                                                 SDL_HitTest callback,
+                                                 void *callback_data);
+
+/**
+ *  \brief Destroy a window.
+ */
+extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window * window);
+
+
+/**
+ *  \brief Returns whether the screensaver is currently enabled (default off).
+ *
+ *  \sa SDL_EnableScreenSaver()
+ *  \sa SDL_DisableScreenSaver()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_IsScreenSaverEnabled(void);
+
+/**
+ *  \brief Allow the screen to be blanked by a screensaver
+ *
+ *  \sa SDL_IsScreenSaverEnabled()
+ *  \sa SDL_DisableScreenSaver()
+ */
+extern DECLSPEC void SDLCALL SDL_EnableScreenSaver(void);
+
+/**
+ *  \brief Prevent the screen from being blanked by a screensaver
+ *
+ *  \sa SDL_IsScreenSaverEnabled()
+ *  \sa SDL_EnableScreenSaver()
+ */
+extern DECLSPEC void SDLCALL SDL_DisableScreenSaver(void);
+
+
+/**
+ *  \name OpenGL support functions
+ */
+/* @{ */
+
+/**
+ *  \brief Dynamically load an OpenGL library.
+ *
+ *  \param path The platform dependent OpenGL library name, or NULL to open the
+ *              default OpenGL library.
+ *
+ *  \return 0 on success, or -1 if the library couldn't be loaded.
+ *
+ *  This should be done after initializing the video driver, but before
+ *  creating any OpenGL windows.  If no OpenGL library is loaded, the default
+ *  library will be loaded upon creation of the first OpenGL window.
+ *
+ *  \note If you do this, you need to retrieve all of the GL functions used in
+ *        your program from the dynamic library using SDL_GL_GetProcAddress().
+ *
+ *  \sa SDL_GL_GetProcAddress()
+ *  \sa SDL_GL_UnloadLibrary()
+ */
+extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path);
+
+/**
+ *  \brief Get the address of an OpenGL function.
+ */
+extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc);
+
+/**
+ *  \brief Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary().
+ *
+ *  \sa SDL_GL_LoadLibrary()
+ */
+extern DECLSPEC void SDLCALL SDL_GL_UnloadLibrary(void);
+
+/**
+ *  \brief Return true if an OpenGL extension is supported for the current
+ *         context.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_GL_ExtensionSupported(const char
+                                                           *extension);
+
+/**
+ *  \brief Reset all previously set OpenGL context attributes to their default values
+ */
+extern DECLSPEC void SDLCALL SDL_GL_ResetAttributes(void);
+
+/**
+ *  \brief Set an OpenGL window attribute before window creation.
+ *
+ *  \return 0 on success, or -1 if the attribute could not be set.
+ */
+extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value);
+
+/**
+ *  \brief Get the actual value for an attribute from the current context.
+ *
+ *  \return 0 on success, or -1 if the attribute could not be retrieved.
+ *          The integer at \c value will be modified in either case.
+ */
+extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value);
+
+/**
+ *  \brief Create an OpenGL context for use with an OpenGL window, and make it
+ *         current.
+ *
+ *  \sa SDL_GL_DeleteContext()
+ */
+extern DECLSPEC SDL_GLContext SDLCALL SDL_GL_CreateContext(SDL_Window *
+                                                           window);
+
+/**
+ *  \brief Set up an OpenGL context for rendering into an OpenGL window.
+ *
+ *  \note The context must have been created with a compatible window.
+ */
+extern DECLSPEC int SDLCALL SDL_GL_MakeCurrent(SDL_Window * window,
+                                               SDL_GLContext context);
+
+/**
+ *  \brief Get the currently active OpenGL window.
+ */
+extern DECLSPEC SDL_Window* SDLCALL SDL_GL_GetCurrentWindow(void);
+
+/**
+ *  \brief Get the currently active OpenGL context.
+ */
+extern DECLSPEC SDL_GLContext SDLCALL SDL_GL_GetCurrentContext(void);
+
+/**
+ *  \brief Get the size of a window's underlying drawable in pixels (for use
+ *         with glViewport).
+ *
+ *  \param window   Window from which the drawable size should be queried
+ *  \param w        Pointer to variable for storing the width in pixels, may be NULL
+ *  \param h        Pointer to variable for storing the height in pixels, may be NULL
+ *
+ * This may differ from SDL_GetWindowSize() if we're rendering to a high-DPI
+ * drawable, i.e. the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a
+ * platform with high-DPI support (Apple calls this "Retina"), and not disabled
+ * by the SDL_HINT_VIDEO_HIGHDPI_DISABLED hint.
+ *
+ *  \sa SDL_GetWindowSize()
+ *  \sa SDL_CreateWindow()
+ */
+extern DECLSPEC void SDLCALL SDL_GL_GetDrawableSize(SDL_Window * window, int *w,
+                                                    int *h);
+
+/**
+ *  \brief Set the swap interval for the current OpenGL context.
+ *
+ *  \param interval 0 for immediate updates, 1 for updates synchronized with the
+ *                  vertical retrace. If the system supports it, you may
+ *                  specify -1 to allow late swaps to happen immediately
+ *                  instead of waiting for the next retrace.
+ *
+ *  \return 0 on success, or -1 if setting the swap interval is not supported.
+ *
+ *  \sa SDL_GL_GetSwapInterval()
+ */
+extern DECLSPEC int SDLCALL SDL_GL_SetSwapInterval(int interval);
+
+/**
+ *  \brief Get the swap interval for the current OpenGL context.
+ *
+ *  \return 0 if there is no vertical retrace synchronization, 1 if the buffer
+ *          swap is synchronized with the vertical retrace, and -1 if late
+ *          swaps happen immediately instead of waiting for the next retrace.
+ *          If the system can't determine the swap interval, or there isn't a
+ *          valid current context, this will return 0 as a safe default.
+ *
+ *  \sa SDL_GL_SetSwapInterval()
+ */
+extern DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void);
+
+/**
+ * \brief Swap the OpenGL buffers for a window, if double-buffering is
+ *        supported.
+ */
+extern DECLSPEC void SDLCALL SDL_GL_SwapWindow(SDL_Window * window);
+
+/**
+ *  \brief Delete an OpenGL context.
+ *
+ *  \sa SDL_GL_CreateContext()
+ */
+extern DECLSPEC void SDLCALL SDL_GL_DeleteContext(SDL_GLContext context);
+
+/* @} *//* OpenGL support functions */
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_video_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_vulkan.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_vulkan.h
new file mode 100644
index 0000000..f04c21a
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/SDL_vulkan.h
@@ -0,0 +1,273 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 2017, Mark Callow
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file SDL_vulkan.h
+ *
+ *  Header file for functions to creating Vulkan surfaces on SDL windows.
+ */
+
+#ifndef SDL_vulkan_h_
+#define SDL_vulkan_h_
+
+#include "SDL_video.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Avoid including vulkan.h, don't define VkInstance if it's already included */
+#ifdef VULKAN_H_
+#define NO_SDL_VULKAN_TYPEDEFS
+#endif
+#ifndef NO_SDL_VULKAN_TYPEDEFS
+#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object;
+
+#if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
+#define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object;
+#else
+#define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object;
+#endif
+
+VK_DEFINE_HANDLE(VkInstance)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)
+
+#endif /* !NO_SDL_VULKAN_TYPEDEFS */
+
+typedef VkInstance SDL_vulkanInstance;
+typedef VkSurfaceKHR SDL_vulkanSurface; /* for compatibility with Tizen */
+
+/**
+ *  \name Vulkan support functions
+ *
+ *  \note SDL_Vulkan_GetInstanceExtensions & SDL_Vulkan_CreateSurface API
+ *        is compatable with Tizen's implementation of Vulkan in SDL.
+ */
+/* @{ */
+
+/**
+ *  \brief Dynamically load a Vulkan loader library.
+ *
+ *  \param [in] path The platform dependent Vulkan loader library name, or
+ *              \c NULL.
+ *
+ *  \return \c 0 on success, or \c -1 if the library couldn't be loaded.
+ *
+ *  If \a path is NULL SDL will use the value of the environment variable
+ *  \c SDL_VULKAN_LIBRARY, if set, otherwise it loads the default Vulkan
+ *  loader library.
+ *
+ *  This should be called after initializing the video driver, but before
+ *  creating any Vulkan windows. If no Vulkan loader library is loaded, the
+ *  default library will be loaded upon creation of the first Vulkan window.
+ *
+ *  \note It is fairly common for Vulkan applications to link with \a libvulkan
+ *        instead of explicitly loading it at run time. This will work with
+ *        SDL provided the application links to a dynamic library and both it
+ *        and SDL use the same search path.
+ *
+ *  \note If you specify a non-NULL \c path, an application should retrieve all
+ *        of the Vulkan functions it uses from the dynamic library using
+ *        \c SDL_Vulkan_GetVkGetInstanceProcAddr() unless you can guarantee
+ *        \c path points to the same vulkan loader library the application
+ *        linked to.
+ *
+ *  \note On Apple devices, if \a path is NULL, SDL will attempt to find
+ *        the vkGetInstanceProcAddr address within all the mach-o images of
+ *        the current process. This is because it is fairly common for Vulkan
+ *        applications to link with libvulkan (and historically MoltenVK was
+ *        provided as a static library). If it is not found then, on macOS, SDL
+ *        will attempt to load \c vulkan.framework/vulkan, \c libvulkan.1.dylib,
+ *        \c MoltenVK.framework/MoltenVK and \c libMoltenVK.dylib in that order.
+ *        On iOS SDL will attempt to load \c libMoltenVK.dylib. Applications
+ *        using a dynamic framework or .dylib must ensure it is included in its
+ *        application bundle.
+ *
+ *  \note On non-Apple devices, application linking with a static libvulkan is
+ *        not supported. Either do not link to the Vulkan loader or link to a
+ *        dynamic library version.
+ *
+ *  \note This function will fail if there are no working Vulkan drivers
+ *        installed.
+ *
+ *  \sa SDL_Vulkan_GetVkGetInstanceProcAddr()
+ *  \sa SDL_Vulkan_UnloadLibrary()
+ */
+extern DECLSPEC int SDLCALL SDL_Vulkan_LoadLibrary(const char *path);
+
+/**
+ *  \brief Get the address of the \c vkGetInstanceProcAddr function.
+ *
+ *  \note This should be called after either calling SDL_Vulkan_LoadLibrary
+ *        or creating an SDL_Window with the SDL_WINDOW_VULKAN flag.
+ */
+extern DECLSPEC void *SDLCALL SDL_Vulkan_GetVkGetInstanceProcAddr(void);
+
+/**
+ *  \brief Unload the Vulkan loader library previously loaded by
+ *         \c SDL_Vulkan_LoadLibrary().
+ *
+ *  \sa SDL_Vulkan_LoadLibrary()
+ */
+extern DECLSPEC void SDLCALL SDL_Vulkan_UnloadLibrary(void);
+
+/**
+ *  \brief Get the names of the Vulkan instance extensions needed to create
+ *         a surface with \c SDL_Vulkan_CreateSurface().
+ *
+ *  \param [in]     window Window for which the required Vulkan instance
+ *                  extensions should be retrieved
+ *  \param [in,out] count pointer to an \c unsigned related to the number of
+ *                  required Vulkan instance extensions
+ *  \param [out]    names \c NULL or a pointer to an array to be filled with the
+ *                  required Vulkan instance extensions
+ *
+ *  \return \c SDL_TRUE on success, \c SDL_FALSE on error.
+ *
+ *  If \a pNames is \c NULL, then the number of required Vulkan instance
+ *  extensions is returned in pCount. Otherwise, \a pCount must point to a
+ *  variable set to the number of elements in the \a pNames array, and on
+ *  return the variable is overwritten with the number of names actually
+ *  written to \a pNames. If \a pCount is less than the number of required
+ *  extensions, at most \a pCount structures will be written. If \a pCount
+ *  is smaller than the number of required extensions, \c SDL_FALSE will be
+ *  returned instead of \c SDL_TRUE, to indicate that not all the required
+ *  extensions were returned.
+ *
+ *  \note The returned list of extensions will contain \c VK_KHR_surface
+ *        and zero or more platform specific extensions
+ *
+ *  \note The extension names queried here must be enabled when calling
+ *        VkCreateInstance, otherwise surface creation will fail.
+ *
+ *  \note \c window should have been created with the \c SDL_WINDOW_VULKAN flag.
+ *
+ *  \code
+ *  unsigned int count;
+ *  // get count of required extensions
+ *  if(!SDL_Vulkan_GetInstanceExtensions(window, &count, NULL))
+ *      handle_error();
+ *
+ *  static const char *const additionalExtensions[] =
+ *  {
+ *      VK_EXT_DEBUG_REPORT_EXTENSION_NAME, // example additional extension
+ *  };
+ *  size_t additionalExtensionsCount = sizeof(additionalExtensions) / sizeof(additionalExtensions[0]);
+ *  size_t extensionCount = count + additionalExtensionsCount;
+ *  const char **names = malloc(sizeof(const char *) * extensionCount);
+ *  if(!names)
+ *      handle_error();
+ *
+ *  // get names of required extensions
+ *  if(!SDL_Vulkan_GetInstanceExtensions(window, &count, names))
+ *      handle_error();
+ *
+ *  // copy additional extensions after required extensions
+ *  for(size_t i = 0; i < additionalExtensionsCount; i++)
+ *      names[i + count] = additionalExtensions[i];
+ *
+ *  VkInstanceCreateInfo instanceCreateInfo = {};
+ *  instanceCreateInfo.enabledExtensionCount = extensionCount;
+ *  instanceCreateInfo.ppEnabledExtensionNames = names;
+ *  // fill in rest of instanceCreateInfo
+ *
+ *  VkInstance instance;
+ *  // create the Vulkan instance
+ *  VkResult result = vkCreateInstance(&instanceCreateInfo, NULL, &instance);
+ *  free(names);
+ *  \endcode
+ *
+ *  \sa SDL_Vulkan_CreateSurface()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_Vulkan_GetInstanceExtensions(
+														SDL_Window *window,
+														unsigned int *pCount,
+														const char **pNames);
+
+/**
+ *  \brief Create a Vulkan rendering surface for a window.
+ *
+ *  \param [in]  window   SDL_Window to which to attach the rendering surface.
+ *  \param [in]  instance handle to the Vulkan instance to use.
+ *  \param [out] surface  pointer to a VkSurfaceKHR handle to receive the
+ *                        handle of the newly created surface.
+ *
+ *  \return \c SDL_TRUE on success, \c SDL_FALSE on error.
+ *
+ *  \code
+ *  VkInstance instance;
+ *  SDL_Window *window;
+ *
+ *  // create instance and window
+ *
+ *  // create the Vulkan surface
+ *  VkSurfaceKHR surface;
+ *  if(!SDL_Vulkan_CreateSurface(window, instance, &surface))
+ *      handle_error();
+ *  \endcode
+ *
+ *  \note \a window should have been created with the \c SDL_WINDOW_VULKAN flag.
+ *
+ *  \note \a instance should have been created with the extensions returned
+ *        by \c SDL_Vulkan_CreateSurface() enabled.
+ *
+ *  \sa SDL_Vulkan_GetInstanceExtensions()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_Vulkan_CreateSurface(
+												SDL_Window *window,
+												VkInstance instance,
+												VkSurfaceKHR* surface);
+
+/**
+ *  \brief Get the size of a window's underlying drawable in pixels (for use
+ *         with setting viewport, scissor & etc).
+ *
+ *  \param window   SDL_Window from which the drawable size should be queried
+ *  \param w        Pointer to variable for storing the width in pixels,
+ *                  may be NULL
+ *  \param h        Pointer to variable for storing the height in pixels,
+ *                  may be NULL
+ *
+ * This may differ from SDL_GetWindowSize() if we're rendering to a high-DPI
+ * drawable, i.e. the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a
+ * platform with high-DPI support (Apple calls this "Retina"), and not disabled
+ * by the \c SDL_HINT_VIDEO_HIGHDPI_DISABLED hint.
+ *
+ *  \note On macOS high-DPI support must be enabled for an application by
+ *        setting NSHighResolutionCapable to true in its Info.plist.
+ *
+ *  \sa SDL_GetWindowSize()
+ *  \sa SDL_CreateWindow()
+ */
+extern DECLSPEC void SDLCALL SDL_Vulkan_GetDrawableSize(SDL_Window * window,
+                                                        int *w, int *h);
+
+/* @} *//* Vulkan support functions */
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_vulkan_h_ */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/begin_code.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/begin_code.h
new file mode 100644
index 0000000..6c21062
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/begin_code.h
@@ -0,0 +1,167 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file begin_code.h
+ *
+ *  This file sets things up for C dynamic library function definitions,
+ *  static inlined functions, and structures aligned at 4-byte alignment.
+ *  If you don't like ugly C preprocessor code, don't look at this file. :)
+ */
+
+/* This shouldn't be nested -- included it around code only. */
+#ifdef _begin_code_h
+#error Nested inclusion of begin_code.h
+#endif
+#define _begin_code_h
+
+#ifndef SDL_DEPRECATED
+#  if (__GNUC__ >= 4)  /* technically, this arrived in gcc 3.1, but oh well. */
+#    define SDL_DEPRECATED __attribute__((deprecated))
+#  else
+#    define SDL_DEPRECATED
+#  endif
+#endif
+
+#ifndef SDL_UNUSED
+#  ifdef __GNUC__
+#    define SDL_UNUSED __attribute__((unused))
+#  else
+#    define SDL_UNUSED
+#  endif
+#endif
+
+/* Some compilers use a special export keyword */
+#ifndef DECLSPEC
+# if defined(__WIN32__) || defined(__WINRT__)
+#  ifdef __BORLANDC__
+#   ifdef BUILD_SDL
+#    define DECLSPEC
+#   else
+#    define DECLSPEC    __declspec(dllimport)
+#   endif
+#  else
+#   define DECLSPEC __declspec(dllexport)
+#  endif
+# elif defined(__OS2__)
+#   ifdef BUILD_SDL
+#    define DECLSPEC    __declspec(dllexport)
+#   else
+#    define DECLSPEC
+#   endif
+# else
+#  if defined(__GNUC__) && __GNUC__ >= 4
+#   define DECLSPEC __attribute__ ((visibility("default")))
+#  else
+#   define DECLSPEC
+#  endif
+# endif
+#endif
+
+/* By default SDL uses the C calling convention */
+#ifndef SDLCALL
+#if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__)
+#define SDLCALL __cdecl
+#elif defined(__OS2__) || defined(__EMX__)
+#define SDLCALL _System
+# if defined (__GNUC__) && !defined(_System)
+#  define _System /* for old EMX/GCC compat.  */
+# endif
+#else
+#define SDLCALL
+#endif
+#endif /* SDLCALL */
+
+/* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */
+#ifdef __SYMBIAN32__
+#undef DECLSPEC
+#define DECLSPEC
+#endif /* __SYMBIAN32__ */
+
+/* Force structure packing at 4 byte alignment.
+   This is necessary if the header is included in code which has structure
+   packing set to an alternate value, say for loading structures from disk.
+   The packing is reset to the previous value in close_code.h
+ */
+#if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)
+#ifdef _MSC_VER
+#pragma warning(disable: 4103)
+#endif
+#ifdef __BORLANDC__
+#pragma nopackwarning
+#endif
+#ifdef _M_X64
+/* Use 8-byte alignment on 64-bit architectures, so pointers are aligned */
+#pragma pack(push,8)
+#else
+#pragma pack(push,4)
+#endif
+#endif /* Compiler needs structure packing set */
+
+#ifndef SDL_INLINE
+#if defined(__GNUC__)
+#define SDL_INLINE __inline__
+#elif defined(_MSC_VER) || defined(__BORLANDC__) || \
+      defined(__DMC__) || defined(__SC__) || \
+      defined(__WATCOMC__) || defined(__LCC__) || \
+      defined(__DECC) || defined(__CC_ARM)
+#define SDL_INLINE __inline
+#ifndef __inline__
+#define __inline__ __inline
+#endif
+#else
+#define SDL_INLINE inline
+#ifndef __inline__
+#define __inline__ inline
+#endif
+#endif
+#endif /* SDL_INLINE not defined */
+
+#ifndef SDL_FORCE_INLINE
+#if defined(_MSC_VER)
+#define SDL_FORCE_INLINE __forceinline
+#elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
+#define SDL_FORCE_INLINE __attribute__((always_inline)) static __inline__
+#else
+#define SDL_FORCE_INLINE static SDL_INLINE
+#endif
+#endif /* SDL_FORCE_INLINE not defined */
+
+#ifndef SDL_NORETURN
+#if defined(__GNUC__)
+#define SDL_NORETURN __attribute__((noreturn))
+#elif defined(_MSC_VER)
+#define SDL_NORETURN __declspec(noreturn)
+#else
+#define SDL_NORETURN
+#endif
+#endif /* SDL_NORETURN not defined */
+
+/* Apparently this is needed by several Windows compilers */
+#if !defined(__MACH__)
+#ifndef NULL
+#ifdef __cplusplus
+#define NULL 0
+#else
+#define NULL ((void *)0)
+#endif
+#endif /* NULL */
+#endif /* ! Mac OS X - breaks precompiled headers */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/close_code.h b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/close_code.h
new file mode 100644
index 0000000..b3b70a4
--- /dev/null
+++ b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/include/close_code.h
@@ -0,0 +1,37 @@
+/*
+  Simple DirectMedia Layer
+  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ *  \file close_code.h
+ *
+ *  This file reverses the effects of begin_code.h and should be included
+ *  after you finish any function and structure declarations in your headers
+ */
+
+#undef _begin_code_h
+
+/* Reset structure packing at previous byte alignment */
+#if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)
+#ifdef __BORLANDC__
+#pragma nopackwarning
+#endif
+#pragma pack(pop)
+#endif /* Compiler needs structure packing set */
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2.dll b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2.dll
new file mode 100644
index 0000000..6cf858c
Binary files /dev/null and b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2.dll differ
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2.lib b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2.lib
new file mode 100644
index 0000000..933a177
Binary files /dev/null and b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2.lib differ
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2main.lib b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2main.lib
new file mode 100644
index 0000000..1de4551
Binary files /dev/null and b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2main.lib differ
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2test.lib b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2test.lib
new file mode 100644
index 0000000..32e9ba9
Binary files /dev/null and b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x64/SDL2test.lib differ
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2.dll b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2.dll
new file mode 100644
index 0000000..a25b05a
Binary files /dev/null and b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2.dll differ
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2.lib b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2.lib
new file mode 100644
index 0000000..034efbd
Binary files /dev/null and b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2.lib differ
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2main.lib b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2main.lib
new file mode 100644
index 0000000..965a7de
Binary files /dev/null and b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2main.lib differ
diff --git a/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2test.lib b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2test.lib
new file mode 100644
index 0000000..e6c157e
Binary files /dev/null and b/SDL2-devel-2.0.8-VC/SDL2-2.0.8/lib/x86/SDL2test.lib differ
diff --git a/cosp-0.5a-win32.zip b/cosp-0.5a-win32.zip
new file mode 100644
index 0000000..bd83e1d
Binary files /dev/null and b/cosp-0.5a-win32.zip differ
diff --git a/cosp-0.6-src.zip b/cosp-0.6-src.zip
new file mode 100644
index 0000000..6396b7a
Binary files /dev/null and b/cosp-0.6-src.zip differ
diff --git a/cosp-0.6-src/ClouGame/.vs/ClouGame/v14/.suo b/cosp-0.6-src/ClouGame/.vs/ClouGame/v14/.suo
new file mode 100644
index 0000000..cfe145d
Binary files /dev/null and b/cosp-0.6-src/ClouGame/.vs/ClouGame/v14/.suo differ
diff --git a/cosp-0.6-src/ClouGame/ClouGame.VC.db b/cosp-0.6-src/ClouGame/ClouGame.VC.db
new file mode 100644
index 0000000..de44e14
Binary files /dev/null and b/cosp-0.6-src/ClouGame/ClouGame.VC.db differ
diff --git a/cosp-0.6-src/ClouGame/ClouGame.sln b/cosp-0.6-src/ClouGame/ClouGame.sln
new file mode 100644
index 0000000..99b669e
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame.sln
@@ -0,0 +1,19 @@
+﻿
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.25420.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Library", "Library", "{279E19C8-0E28-4BF4-80AF-580ED8627308}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ClouGame.Shared", "ClouGame\ClouGame.Shared\ClouGame.Shared.vcxitems", "{FAE67312-0267-4B1A-AA63-029EB09EC900}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ClouGame.Android.Application", "ClouGame.Android.Application", "{E7AC9B20-9DE5-4AEF-A952-6D640C05C1A3}"
+EndProject
+Global
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(NestedProjects) = preSolution
+		{FAE67312-0267-4B1A-AA63-029EB09EC900} = {279E19C8-0E28-4BF4-80AF-580ED8627308}
+	EndGlobalSection
+EndGlobal
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.NativeActivity/ClouGame.Android.NativeActivity.vcxproj b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.NativeActivity/ClouGame.Android.NativeActivity.vcxproj
new file mode 100644
index 0000000..a84bc92
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.NativeActivity/ClouGame.Android.NativeActivity.vcxproj
@@ -0,0 +1,137 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|ARM">
+      <Configuration>Debug</Configuration>
+      <Platform>ARM</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x86">
+      <Configuration>Debug</Configuration>
+      <Platform>x86</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|ARM">
+      <Configuration>Release</Configuration>
+      <Platform>ARM</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x86">
+      <Configuration>Release</Configuration>
+      <Platform>x86</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{7bd1445b-5ac9-4cbc-b080-2fa48f8e21e8}</ProjectGuid>
+    <Keyword>Android</Keyword>
+    <RootNamespace>ClouGame</RootNamespace>
+    <DefaultLanguage>de-DE</DefaultLanguage>
+    <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
+    <ApplicationType>Android</ApplicationType>
+    <ApplicationTypeRevision>1.0</ApplicationTypeRevision>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>Clang_3_6</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>Clang_3_6</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>Clang_3_6</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>Clang_3_6</PlatformToolset>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings">
+  </ImportGroup>
+  <ImportGroup Label="Shared">
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <PropertyGroup Label="UserMacros" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'" />
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
+    <ClCompile>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+      <CompileAs>CompileAsCpp</CompileAs>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+    </ClCompile>
+    <Link>
+      <LibraryDependencies>%(LibraryDependencies);GLESv2;EGL;m</LibraryDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
+    <ClCompile>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+      <CompileAs>CompileAsCpp</CompileAs>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+    </ClCompile>
+    <Link>
+      <LibraryDependencies>%(LibraryDependencies);GLESv2;EGL;m</LibraryDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
+    <ClCompile>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+      <CompileAs>CompileAsCpp</CompileAs>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+    </ClCompile>
+    <Link>
+      <LibraryDependencies>%(LibraryDependencies);GLESv2;EGL;m</LibraryDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
+    <ClCompile>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+      <CompileAs>CompileAsCpp</CompileAs>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+    </ClCompile>
+    <Link>
+      <LibraryDependencies>%(LibraryDependencies);GLESv2;EGL;m</LibraryDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemGroup>
+    <ClInclude Include="pch.h" />
+    <ClInclude Include="android_native_app_glue.h" />
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="android_native_app_glue.c" />
+    <ClCompile Include="main.cpp" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\ClouGame.Android.StaticLibrary\ClouGame.Android.StaticLibrary.vcxproj">
+      <Project>{102ff243-1e8b-49b9-91c9-8faef3f550cc}</Project>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets">
+  </ImportGroup>
+</Project>
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.NativeActivity/ClouGame.Android.NativeActivity.vcxproj.filters b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.NativeActivity/ClouGame.Android.NativeActivity.vcxproj.filters
new file mode 100644
index 0000000..8f6e544
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.NativeActivity/ClouGame.Android.NativeActivity.vcxproj.filters
@@ -0,0 +1,11 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup>
+    <ClInclude Include="pch.h" />
+    <ClInclude Include="android_native_app_glue.h" />
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="android_native_app_glue.c" />
+    <ClCompile Include="main.cpp" />
+  </ItemGroup>
+</Project>
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.StaticLibrary/ClouGame.Android.StaticLibrary.vcxproj b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.StaticLibrary/ClouGame.Android.StaticLibrary.vcxproj
new file mode 100644
index 0000000..cf4bc75
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.StaticLibrary/ClouGame.Android.StaticLibrary.vcxproj
@@ -0,0 +1,95 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|ARM">
+      <Configuration>Debug</Configuration>
+      <Platform>ARM</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x86">
+      <Configuration>Debug</Configuration>
+      <Platform>x86</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|ARM">
+      <Configuration>Release</Configuration>
+      <Platform>ARM</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x86">
+      <Configuration>Release</Configuration>
+      <Platform>x86</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{102ff243-1e8b-49b9-91c9-8faef3f550cc}</ProjectGuid>
+    <Keyword>Android</Keyword>
+    <ApplicationType>Android</ApplicationType>
+    <ApplicationTypeRevision>1.0</ApplicationTypeRevision>
+    <RootNamespace>ClouGame</RootNamespace>
+    <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" Label="Configuration">
+    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>Clang_3_6</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
+    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>Clang_3_6</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'" Label="Configuration">
+    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>Clang_3_6</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
+    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>Clang_3_6</PlatformToolset>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings" />
+  <ImportGroup Label="Shared">
+    <Import Project="..\ClouGame.Shared\ClouGame.Shared.vcxitems" Label="Shared" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" />
+  <PropertyGroup Label="UserMacros" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
+  </PropertyGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
+    <ClCompile>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>..\ClouGame.Shared\pch.h</PrecompiledHeaderFile>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+    </ClCompile>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
+    <ClCompile>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>..\ClouGame.Shared\pch.h</PrecompiledHeaderFile>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+    </ClCompile>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
+    <ClCompile>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>..\ClouGame.Shared\pch.h</PrecompiledHeaderFile>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+    </ClCompile>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
+    <ClCompile>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>..\ClouGame.Shared\pch.h</PrecompiledHeaderFile>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+    </ClCompile>
+  </ItemDefinitionGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets" />
+</Project>
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.StaticLibrary/ClouGame.Android.StaticLibrary.vcxproj.filters b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.StaticLibrary/ClouGame.Android.StaticLibrary.vcxproj.filters
new file mode 100644
index 0000000..ef1ebf5
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Android.StaticLibrary/ClouGame.Android.StaticLibrary.vcxproj.filters
@@ -0,0 +1,2 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/ClouGame.Shared.vcxitems b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/ClouGame.Shared.vcxitems
new file mode 100644
index 0000000..4dd04ee
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/ClouGame.Shared.vcxitems
@@ -0,0 +1,24 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup Label="Globals">
+    <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
+    <HasSharedItems>true</HasSharedItems>
+    <ItemsProjectGuid>{fae67312-0267-4b1a-aa63-029eb09ec900}</ItemsProjectGuid>
+  </PropertyGroup>
+  <ItemDefinitionGroup>
+    <ClCompile>
+      <AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(MSBuildThisFileDirectory)</AdditionalIncludeDirectories>
+    </ClCompile>
+  </ItemDefinitionGroup>
+  <ItemGroup>
+    <ProjectCapability Include="SourceItemsFromImports" />
+  </ItemGroup>
+  <ItemGroup>
+    <ClInclude Include="$(MSBuildThisFileDirectory)MathHelper.h" />
+    <ClInclude Include="$(MSBuildThisFileDirectory)pch.h" />
+    <ClInclude Include="$(MSBuildThisFileDirectory)SimpleRenderer.h" />
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="$(MSBuildThisFileDirectory)SimpleRenderer.cpp" />
+  </ItemGroup>
+</Project>
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/MathHelper.h b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/MathHelper.h
new file mode 100644
index 0000000..8621c92
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/MathHelper.h
@@ -0,0 +1,64 @@
+#pragma once
+
+// These are some simple math helpers to enable the template to render a spinning cube. It is not a complete math library.
+// You can replace this with your favorite math library that's suitable for your target platforms, e.g. DirectXMath or GLM.
+
+#include <math.h>
+
+namespace MathHelper
+{
+
+struct Matrix4
+{
+    Matrix4(float m00, float m01, float m02, float m03,
+            float m10, float m11, float m12, float m13,
+            float m20, float m21, float m22, float m23,
+            float m30, float m31, float m32, float m33)
+    {
+        m[0][0] = m00; m[0][1] = m01; m[0][2] = m02; m[0][3] = m03;
+        m[1][0] = m10; m[1][1] = m11; m[1][2] = m12; m[1][3] = m13;
+        m[2][0] = m20; m[2][1] = m21; m[2][2] = m22; m[2][3] = m23;
+        m[3][0] = m30; m[3][1] = m31; m[3][2] = m32; m[3][3] = m33;
+    }
+
+    float m[4][4];
+};
+
+inline static Matrix4 SimpleModelMatrix(float radians)
+{
+    float cosine = cosf(radians);
+    float sine = sinf(radians);
+
+    return Matrix4(cosine, 0.0f,  -sine, 0.0f,
+                     0.0f, 1.0f,   0.0f, 0.0f,
+                     sine, 0.0f, cosine, 0.0f,
+                     0.0f, 0.0f,   0.0f, 1.0f);
+}
+
+inline static Matrix4 SimpleViewMatrix()
+{
+    // Camera is at 60 degrees to the ground, in the YZ plane.
+    // Camera Look-At is hardcoded to (0, 0, 0).
+    // Camera Up is hardcoded to (0, 1, 0).
+    const float sqrt3over2 = 0.86603f;
+    const float cameraDistance = 5.0f;
+
+    return Matrix4(1.0f,       0.0f,            0.0f, 0.0f,
+                   0.0f, sqrt3over2,            0.5f, 0.0f,
+                   0.0f,      -0.5f,      sqrt3over2, 0.0f,
+                   0.0f,       0.0f, -cameraDistance, 1.0f);
+}
+
+inline static Matrix4 SimpleProjectionMatrix(float aspectRatio)
+{
+    // Far plane is at 50.0f, near plane is at 1.0f.
+    // FoV is hardcoded to pi/3.
+    const float cotangent = 1 / tanf(3.14159f / 6.0f);
+
+    return Matrix4(cotangent / aspectRatio,      0.0f,                    0.0f,                             0.0f,
+                                      0.0f, cotangent,                    0.0f,                             0.0f,
+                                      0.0f,      0.0f, -50.0f / (50.0f - 1.0f), (-50.0f * 1.0f) / (50.0f - 1.0f),
+                                      0.0f,      0.0f,                   -1.0f,                             0.0f);
+}
+
+}
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/SimpleRenderer.cpp b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/SimpleRenderer.cpp
new file mode 100644
index 0000000..4b801c8
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/SimpleRenderer.cpp
@@ -0,0 +1,254 @@
+//
+// This file is used by the template to render a basic scene using GL.
+//
+#include "pch.h"
+
+#include "SimpleRenderer.h"
+#include "MathHelper.h"
+
+// These are used by the shader compilation methods.
+#include <vector>
+#include <iostream>
+#include <fstream>
+#include <stdexcept>
+
+GLuint CompileShader(GLenum type, const std::string &source)
+{
+    GLuint shader = glCreateShader(type);
+
+    const char *sourceArray[1] = { source.c_str() };
+    glShaderSource(shader, 1, sourceArray, NULL);
+    glCompileShader(shader);
+
+    GLint compileResult;
+    glGetShaderiv(shader, GL_COMPILE_STATUS, &compileResult);
+
+    if (compileResult == 0)
+    {
+        GLint infoLogLength;
+        glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLogLength);
+
+        std::vector<GLchar> infoLog(infoLogLength);
+        glGetShaderInfoLog(shader, (GLsizei)infoLog.size(), NULL, infoLog.data());
+
+        std::string errorMessage = std::string("Shader compilation failed: ");
+        errorMessage += std::string(infoLog.begin(), infoLog.end()); 
+
+        throw std::runtime_error(errorMessage.c_str());
+    }
+
+    return shader;
+}
+
+GLuint CompileProgram(const std::string &vsSource, const std::string &fsSource)
+{
+    GLuint program = glCreateProgram();
+
+    if (program == 0)
+    {
+        throw std::runtime_error("Program creation failed");
+    }
+
+    GLuint vs = CompileShader(GL_VERTEX_SHADER, vsSource);
+    GLuint fs = CompileShader(GL_FRAGMENT_SHADER, fsSource);
+
+    if (vs == 0 || fs == 0)
+    {
+        glDeleteShader(fs);
+        glDeleteShader(vs);
+        glDeleteProgram(program);
+        return 0;
+    }
+
+    glAttachShader(program, vs);
+    glDeleteShader(vs);
+
+    glAttachShader(program, fs);
+    glDeleteShader(fs);
+
+    glLinkProgram(program);
+
+    GLint linkStatus;
+    glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
+
+    if (linkStatus == 0)
+    {
+        GLint infoLogLength;
+        glGetProgramiv(program, GL_INFO_LOG_LENGTH, &infoLogLength);
+
+        std::vector<GLchar> infoLog(infoLogLength);
+        glGetProgramInfoLog(program, (GLsizei)infoLog.size(), NULL, infoLog.data());
+
+        std::string errorMessage = std::string("Program link failed: ");
+        errorMessage += std::string(infoLog.begin(), infoLog.end()); 
+
+        throw std::runtime_error(errorMessage.c_str());
+    }
+
+    return program;
+}
+
+SimpleRenderer::SimpleRenderer() :
+    mWindowWidth(0),
+    mWindowHeight(0),
+    mDrawCount(0)
+{
+    // Vertex Shader source
+    const std::string vs = R"(
+        uniform mat4 uModelMatrix;
+        uniform mat4 uViewMatrix;
+        uniform mat4 uProjMatrix;
+        attribute vec4 aPosition;
+        attribute vec4 aColor;
+        varying vec4 vColor;
+        void main()
+        {
+            gl_Position = uProjMatrix * uViewMatrix * uModelMatrix * aPosition;
+            vColor = aColor;
+        }
+    )";
+
+    // Fragment Shader source
+    const std::string fs = R"(
+        precision mediump float;
+        varying vec4 vColor;
+        void main()
+        {
+            gl_FragColor = vColor;
+        }
+    )";
+
+    // Set up the shader and its uniform/attribute locations.
+    mProgram = CompileProgram(vs, fs);
+    mPositionAttribLocation = glGetAttribLocation(mProgram, "aPosition");
+    mColorAttribLocation = glGetAttribLocation(mProgram, "aColor");
+    mModelUniformLocation = glGetUniformLocation(mProgram, "uModelMatrix");
+    mViewUniformLocation = glGetUniformLocation(mProgram, "uViewMatrix");
+    mProjUniformLocation = glGetUniformLocation(mProgram, "uProjMatrix");
+
+    // Then set up the cube geometry.
+    GLfloat vertexPositions[] =
+    {
+        -1.0f, -1.0f, -1.0f,
+        -1.0f, -1.0f,  1.0f,
+        -1.0f,  1.0f, -1.0f,
+        -1.0f,  1.0f,  1.0f,
+         1.0f, -1.0f, -1.0f,
+         1.0f, -1.0f,  1.0f,
+         1.0f,  1.0f, -1.0f,
+         1.0f,  1.0f,  1.0f,
+    };
+
+    glGenBuffers(1, &mVertexPositionBuffer);
+    glBindBuffer(GL_ARRAY_BUFFER, mVertexPositionBuffer);
+    glBufferData(GL_ARRAY_BUFFER, sizeof(vertexPositions), vertexPositions, GL_STATIC_DRAW);
+
+    GLfloat vertexColors[] =
+    {
+        0.0f, 0.0f, 0.0f,
+        0.0f, 0.0f, 1.0f,
+        0.0f, 1.0f, 0.0f,
+        0.0f, 1.0f, 1.0f,
+        1.0f, 0.0f, 0.0f,
+        1.0f, 0.0f, 1.0f,
+        1.0f, 1.0f, 0.0f,
+        1.0f, 1.0f, 1.0f,
+    };
+
+    glGenBuffers(1, &mVertexColorBuffer);
+    glBindBuffer(GL_ARRAY_BUFFER, mVertexColorBuffer);
+    glBufferData(GL_ARRAY_BUFFER, sizeof(vertexColors), vertexColors, GL_STATIC_DRAW);
+
+    short indices[] =
+    {
+        0, 1, 2, // -x
+        1, 3, 2,
+
+        4, 6, 5, // +x
+        5, 6, 7,
+
+        0, 5, 1, // -y
+        0, 4, 5,
+
+        2, 7, 6, // +y
+        2, 3, 7,
+              
+        0, 6, 4, // -z
+        0, 2, 6,
+              
+        1, 7, 3, // +z
+        1, 5, 7,
+    };
+
+    glGenBuffers(1, &mIndexBuffer);
+    glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer);
+    glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), indices, GL_STATIC_DRAW);
+}
+
+SimpleRenderer::~SimpleRenderer()
+{
+    if (mProgram != 0)
+    {
+        glDeleteProgram(mProgram);
+        mProgram = 0;
+    }
+
+    if (mVertexPositionBuffer != 0)
+    {
+        glDeleteBuffers(1, &mVertexPositionBuffer);
+        mVertexPositionBuffer = 0;
+    }
+
+    if (mVertexColorBuffer != 0)
+    {
+        glDeleteBuffers(1, &mVertexColorBuffer);
+        mVertexColorBuffer = 0;
+    }
+
+    if (mIndexBuffer != 0)
+    {
+        glDeleteBuffers(1, &mIndexBuffer);
+        mIndexBuffer = 0;
+    }
+}
+
+void SimpleRenderer::Draw()
+{
+    glEnable(GL_DEPTH_TEST);
+    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+    if (mProgram == 0)
+        return;
+
+    glUseProgram(mProgram);
+	
+    glBindBuffer(GL_ARRAY_BUFFER, mVertexPositionBuffer);
+    glEnableVertexAttribArray(mPositionAttribLocation);
+    glVertexAttribPointer(mPositionAttribLocation, 3, GL_FLOAT, GL_FALSE, 0, 0);
+
+    glBindBuffer(GL_ARRAY_BUFFER, mVertexColorBuffer);
+    glEnableVertexAttribArray(mColorAttribLocation);
+    glVertexAttribPointer(mColorAttribLocation, 3, GL_FLOAT, GL_FALSE, 0, 0);
+
+    MathHelper::Matrix4 modelMatrix = MathHelper::SimpleModelMatrix((float)mDrawCount / 50.0f);
+    glUniformMatrix4fv(mModelUniformLocation, 1, GL_FALSE, &(modelMatrix.m[0][0]));
+
+    MathHelper::Matrix4 viewMatrix = MathHelper::SimpleViewMatrix();
+    glUniformMatrix4fv(mViewUniformLocation, 1, GL_FALSE, &(viewMatrix.m[0][0]));
+
+    MathHelper::Matrix4 projectionMatrix = MathHelper::SimpleProjectionMatrix(float(mWindowWidth) / float(mWindowHeight));
+    glUniformMatrix4fv(mProjUniformLocation, 1, GL_FALSE, &(projectionMatrix.m[0][0]));
+
+    // Draw 36 indices: six faces, two triangles per face, 3 indices per triangle
+    glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer);
+    glDrawElements(GL_TRIANGLES, (6 * 2) * 3, GL_UNSIGNED_SHORT, 0);
+
+    mDrawCount += 1;
+}
+
+void SimpleRenderer::UpdateWindowSize(GLsizei width, GLsizei height)
+{
+    glViewport(0, 0, width, height);
+    mWindowWidth = width;
+    mWindowHeight = height;
+}
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/SimpleRenderer.h b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/SimpleRenderer.h
new file mode 100644
index 0000000..c22d9ea
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/SimpleRenderer.h
@@ -0,0 +1,39 @@
+#pragma once
+
+#include <string.h>
+
+#ifdef __APPLE__
+#include <unistd.h>
+#include <sys/resource.h>
+
+#include <OpenGLES/ES2/gl.h>
+#else // __ANDROID__ or _WIN32
+#include <GLES2/gl2.h>
+#endif
+
+class SimpleRenderer
+{
+public:
+    SimpleRenderer();
+    ~SimpleRenderer();
+    void Draw();
+    void UpdateWindowSize(GLsizei width, GLsizei height);
+
+private:
+    GLuint mProgram;
+    GLsizei mWindowWidth;
+    GLsizei mWindowHeight;
+
+    GLint mPositionAttribLocation;
+    GLint mColorAttribLocation;
+
+    GLint mModelUniformLocation;
+    GLint mViewUniformLocation;
+    GLint mProjUniformLocation;
+
+    GLuint mVertexPositionBuffer;
+    GLuint mVertexColorBuffer;
+    GLuint mIndexBuffer;
+
+    int mDrawCount;
+};
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/pch.h b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/pch.h
new file mode 100644
index 0000000..3a55e7f
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.Shared/pch.h
@@ -0,0 +1,26 @@
+#ifdef _WIN32
+
+	// Including SDKDDKVer.h defines the highest available Windows platform.
+
+	// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
+	// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
+
+	#include <SDKDDKVer.h>
+
+	#ifndef WIN32_LEAN_AND_MEAN
+	#define WIN32_LEAN_AND_MEAN
+	#endif
+
+	#include <windows.h>
+#elif __ANDROID__
+
+	#include <jni.h>
+	#include <errno.h>
+
+	#include <string.h>
+	#include <unistd.h>
+	#include <sys/resource.h>
+
+	#include <android/log.h>
+
+#endif
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.iOS.StaticLibrary/ClouGame.iOS.StaticLibrary.vcxproj b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.iOS.StaticLibrary/ClouGame.iOS.StaticLibrary.vcxproj
new file mode 100644
index 0000000..906b7b0
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.iOS.StaticLibrary/ClouGame.iOS.StaticLibrary.vcxproj
@@ -0,0 +1,96 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|ARM">
+      <Configuration>Debug</Configuration>
+      <Platform>ARM</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x86">
+      <Configuration>Debug</Configuration>
+      <Platform>x86</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|ARM">
+      <Configuration>Release</Configuration>
+      <Platform>ARM</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x86">
+      <Configuration>Release</Configuration>
+      <Platform>x86</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{01e13cd6-2b52-4559-9df2-3e11b4a7e61e}</ProjectGuid>
+    <RootNamespace>ClouGame</RootNamespace>
+    <Keyword>iOS</Keyword>
+    <ApplicationType>iOS</ApplicationType>
+    <ApplicationTypeRevision>1.0</ApplicationTypeRevision>
+    <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
+    <DefaultLanguage>de-DE</DefaultLanguage>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" Label="Configuration">
+    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>XCode_6_1</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
+    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>XCode_6_1</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'" Label="Configuration">
+    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>XCode_6_1</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
+    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>XCode_6_1</PlatformToolset>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings" />
+  <ImportGroup Label="Shared">
+    <Import Project="..\ClouGame.Shared\ClouGame.Shared.vcxitems" Label="Shared" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" />
+  <PropertyGroup Label="UserMacros" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
+  </PropertyGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
+    <ClCompile>
+      <PrecompiledHeader>NotUsing</PrecompiledHeader>
+      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+    </ClCompile>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
+    <ClCompile>
+      <PrecompiledHeader>NotUsing</PrecompiledHeader>
+      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+    </ClCompile>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
+    <ClCompile>
+      <PrecompiledHeader>NotUsing</PrecompiledHeader>
+      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+    </ClCompile>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
+    <ClCompile>
+      <PrecompiledHeader>NotUsing</PrecompiledHeader>
+      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+      <ExceptionHandling>Enabled</ExceptionHandling>
+      <CppLanguageStandard>c++11</CppLanguageStandard>
+    </ClCompile>
+  </ItemDefinitionGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets" />
+</Project>
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouGame/ClouGame/ClouGame.iOS.StaticLibrary/ClouGame.iOS.StaticLibrary.vcxproj.filters b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.iOS.StaticLibrary/ClouGame.iOS.StaticLibrary.vcxproj.filters
new file mode 100644
index 0000000..ef1ebf5
--- /dev/null
+++ b/cosp-0.6-src/ClouGame/ClouGame/ClouGame.iOS.StaticLibrary/ClouGame.iOS.StaticLibrary.vcxproj.filters
@@ -0,0 +1,2 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouRemake/.vs/ClouRemake/v14/.suo b/cosp-0.6-src/ClouRemake/.vs/ClouRemake/v14/.suo
new file mode 100644
index 0000000..e0ae6da
Binary files /dev/null and b/cosp-0.6-src/ClouRemake/.vs/ClouRemake/v14/.suo differ
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake.VC.db b/cosp-0.6-src/ClouRemake/ClouRemake.VC.db
new file mode 100644
index 0000000..a5733d0
Binary files /dev/null and b/cosp-0.6-src/ClouRemake/ClouRemake.VC.db differ
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake.sln b/cosp-0.6-src/ClouRemake/ClouRemake.sln
new file mode 100644
index 0000000..8ab376b
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake.sln
@@ -0,0 +1,30 @@
+﻿
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.25420.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ClouRemake", "ClouRemake\ClouRemake.vcxproj", "{A12EDFA5-3FF7-4C09-9C5C-1BFEF984826B}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{1CCC7ACD-18A6-4CAB-B5C4-72647473FAFA}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|x64 = Debug|x64
+		Debug|x86 = Debug|x86
+		Release|x64 = Release|x64
+		Release|x86 = Release|x86
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{A12EDFA5-3FF7-4C09-9C5C-1BFEF984826B}.Debug|x64.ActiveCfg = Debug|x64
+		{A12EDFA5-3FF7-4C09-9C5C-1BFEF984826B}.Debug|x64.Build.0 = Debug|x64
+		{A12EDFA5-3FF7-4C09-9C5C-1BFEF984826B}.Debug|x86.ActiveCfg = Debug|Win32
+		{A12EDFA5-3FF7-4C09-9C5C-1BFEF984826B}.Debug|x86.Build.0 = Debug|Win32
+		{A12EDFA5-3FF7-4C09-9C5C-1BFEF984826B}.Release|x64.ActiveCfg = Release|x64
+		{A12EDFA5-3FF7-4C09-9C5C-1BFEF984826B}.Release|x64.Build.0 = Release|x64
+		{A12EDFA5-3FF7-4C09-9C5C-1BFEF984826B}.Release|x86.ActiveCfg = Release|Win32
+		{A12EDFA5-3FF7-4C09-9C5C-1BFEF984826B}.Release|x86.Build.0 = Release|Win32
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.cpp b/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.cpp
new file mode 100644
index 0000000..906964a
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.cpp
@@ -0,0 +1,6 @@
+// ClouRemake.cpp : Definiert die exportierten Funktionen f�r die DLL-Anwendung.
+//
+
+#include "stdafx.h"
+
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.vcxproj b/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.vcxproj
new file mode 100644
index 0000000..472133f
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.vcxproj
@@ -0,0 +1,296 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|Win32">
+      <Configuration>Debug</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|Win32">
+      <Configuration>Release</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x64">
+      <Configuration>Debug</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x64">
+      <Configuration>Release</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{A12EDFA5-3FF7-4C09-9C5C-1BFEF984826B}</ProjectGuid>
+    <Keyword>Win32Proj</Keyword>
+    <RootNamespace>ClouRemake</RootNamespace>
+    <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>v140</PlatformToolset>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>v140</PlatformToolset>
+    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>v140</PlatformToolset>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>v140</PlatformToolset>
+    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings">
+  </ImportGroup>
+  <ImportGroup Label="Shared">
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <PropertyGroup Label="UserMacros" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <LinkIncremental>true</LinkIncremental>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <LinkIncremental>true</LinkIncremental>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <LinkIncremental>false</LinkIncremental>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <LinkIncremental>false</LinkIncremental>
+  </PropertyGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <ClCompile>
+      <PrecompiledHeader>Create</PrecompiledHeader>
+      <WarningLevel>Level3</WarningLevel>
+      <Optimization>Disabled</Optimization>
+      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;CLOUREMAKE_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <SDLCheck>true</SDLCheck>
+    </ClCompile>
+    <Link>
+      <SubSystem>Windows</SubSystem>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <ClCompile>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <WarningLevel>Level3</WarningLevel>
+      <Optimization>Disabled</Optimization>
+      <PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;CLOUREMAKE_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <SDLCheck>true</SDLCheck>
+    </ClCompile>
+    <Link>
+      <SubSystem>Windows</SubSystem>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <ClCompile>
+      <WarningLevel>Level3</WarningLevel>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <Optimization>MaxSpeed</Optimization>
+      <FunctionLevelLinking>true</FunctionLevelLinking>
+      <IntrinsicFunctions>true</IntrinsicFunctions>
+      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CLOUREMAKE_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <SDLCheck>true</SDLCheck>
+    </ClCompile>
+    <Link>
+      <SubSystem>Windows</SubSystem>
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>
+      <OptimizeReferences>true</OptimizeReferences>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <ClCompile>
+      <WarningLevel>Level3</WarningLevel>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <Optimization>MaxSpeed</Optimization>
+      <FunctionLevelLinking>true</FunctionLevelLinking>
+      <IntrinsicFunctions>true</IntrinsicFunctions>
+      <PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;CLOUREMAKE_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <SDLCheck>true</SDLCheck>
+    </ClCompile>
+    <Link>
+      <SubSystem>Windows</SubSystem>
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>
+      <OptimizeReferences>true</OptimizeReferences>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemGroup>
+    <Text Include="ReadMe.txt" />
+  </ItemGroup>
+  <ItemGroup>
+    <ClInclude Include="..\..\..\SDL2-devel-2.0.8-VC\SDL2-2.0.8\include\SDL.h" />
+    <ClInclude Include="..\..\..\SDL2-devel-2.0.8-VC\SDL2-2.0.8\include\SDL_main.h" />
+    <ClInclude Include="anim\sysanim.h" />
+    <ClInclude Include="base\base.h" />
+    <ClInclude Include="cdrom\cdrom.h" />
+    <ClInclude Include="data\dataappl.h" />
+    <ClInclude Include="data\database.h" />
+    <ClInclude Include="data\database_p.h" />
+    <ClInclude Include="data\datacalc.h" />
+    <ClInclude Include="data\relation.h" />
+    <ClInclude Include="data\tcdata.h" />
+    <ClInclude Include="dialog\dialog.h" />
+    <ClInclude Include="dialog\talkappl.h" />
+    <ClInclude Include="disk\disk.h" />
+    <ClInclude Include="disk\disk_e.h" />
+    <ClInclude Include="error\error.h" />
+    <ClInclude Include="gameplay\gamefunc.h" />
+    <ClInclude Include="gameplay\gp.h" />
+    <ClInclude Include="gameplay\gp_app.h" />
+    <ClInclude Include="gfx\filter.h" />
+    <ClInclude Include="gfx\gfx.h" />
+    <ClInclude Include="gfx\gfx_p.h" />
+    <ClInclude Include="inphdl\inphdl.h" />
+    <ClInclude Include="intro\iffanim.h" />
+    <ClInclude Include="intro\intro.h" />
+    <ClInclude Include="landscap\landscap.h" />
+    <ClInclude Include="landscap\landscap_p.h" />
+    <ClInclude Include="landscap\raster.h" />
+    <ClInclude Include="landscap\spot.h" />
+    <ClInclude Include="list\list.h" />
+    <ClInclude Include="living\bob.h" />
+    <ClInclude Include="living\living.h" />
+    <ClInclude Include="living\living_p.h" />
+    <ClInclude Include="memory\memory.h" />
+    <ClInclude Include="organisa\organisa.h" />
+    <ClInclude Include="planing\graphics.h" />
+    <ClInclude Include="planing\guards.h" />
+    <ClInclude Include="planing\io.h" />
+    <ClInclude Include="planing\main.h" />
+    <ClInclude Include="planing\planer.h" />
+    <ClInclude Include="planing\player.h" />
+    <ClInclude Include="planing\prepare.h" />
+    <ClInclude Include="planing\support.h" />
+    <ClInclude Include="planing\sync.h" />
+    <ClInclude Include="planing\system.h" />
+    <ClInclude Include="port\port.h" />
+    <ClInclude Include="present\interac.h" />
+    <ClInclude Include="present\interac_p.h" />
+    <ClInclude Include="present\present.h" />
+    <ClInclude Include="present\present_p.h" />
+    <ClInclude Include="random\random.h" />
+    <ClInclude Include="scenes\evidence.h" />
+    <ClInclude Include="scenes\scenes.h" />
+    <ClInclude Include="sound\fmopl.h" />
+    <ClInclude Include="sound\fx.h" />
+    <ClInclude Include="sound\mxr.h" />
+    <ClInclude Include="sound\newsound.h" />
+    <ClInclude Include="stdafx.h" />
+    <ClInclude Include="story\story.h" />
+    <ClInclude Include="targetver.h" />
+    <ClInclude Include="text\text.h" />
+    <ClInclude Include="text\text_e.h" />
+    <ClInclude Include="text\text_p.h" />
+    <ClInclude Include="theclou.h" />
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="anim\sysanim.c" />
+    <ClCompile Include="base\base.c" />
+    <ClCompile Include="base\fullenv.c" />
+    <ClCompile Include="cdrom\cdrom.c" />
+    <ClCompile Include="ClouRemake.cpp" />
+    <ClCompile Include="data\dataappl.c" />
+    <ClCompile Include="data\database.c" />
+    <ClCompile Include="data\datacalc.c" />
+    <ClCompile Include="data\relation.c" />
+    <ClCompile Include="dialog\dialog.c" />
+    <ClCompile Include="dialog\talkappl.c" />
+    <ClCompile Include="disk\disk.c" />
+    <ClCompile Include="error\error.c" />
+    <ClCompile Include="gameplay\gp.c" />
+    <ClCompile Include="gameplay\gp_app.c" />
+    <ClCompile Include="gameplay\loadsave.c" />
+    <ClCompile Include="gameplay\tcreques.c" />
+    <ClCompile Include="gfx\filter.c" />
+    <ClCompile Include="gfx\gfx.c" />
+    <ClCompile Include="gfx\gfxmcga.c" />
+    <ClCompile Include="gfx\gfxnch4.c" />
+    <ClCompile Include="inphdl\arrow1x_xpm.c" />
+    <ClCompile Include="inphdl\arrow2x_xpm.c" />
+    <ClCompile Include="inphdl\inphdl.c" />
+    <ClCompile Include="intro\iffanim.c" />
+    <ClCompile Include="intro\intro.c" />
+    <ClCompile Include="landscap\access.c" />
+    <ClCompile Include="landscap\hardware.c" />
+    <ClCompile Include="landscap\init.c" />
+    <ClCompile Include="landscap\landscap.c" />
+    <ClCompile Include="landscap\raster.c" />
+    <ClCompile Include="landscap\scroll.c" />
+    <ClCompile Include="landscap\spot.c" />
+    <ClCompile Include="list\list.c" />
+    <ClCompile Include="living\bob.c" />
+    <ClCompile Include="living\living.c" />
+    <ClCompile Include="memory\memory.c" />
+    <ClCompile Include="organisa\display.c" />
+    <ClCompile Include="organisa\organisa.c" />
+    <ClCompile Include="planing\graphics.c" />
+    <ClCompile Include="planing\guards.c" />
+    <ClCompile Include="planing\io.c" />
+    <ClCompile Include="planing\main.c" />
+    <ClCompile Include="planing\planer.c" />
+    <ClCompile Include="planing\player.c" />
+    <ClCompile Include="planing\prepare.c" />
+    <ClCompile Include="planing\support.c" />
+    <ClCompile Include="planing\sync.c" />
+    <ClCompile Include="planing\system.c" />
+    <ClCompile Include="port\port.c" />
+    <ClCompile Include="present\interac.c" />
+    <ClCompile Include="present\present.c" />
+    <ClCompile Include="present\presenta.c" />
+    <ClCompile Include="random\random.c" />
+    <ClCompile Include="scenes\cars.c" />
+    <ClCompile Include="scenes\dealer.c" />
+    <ClCompile Include="scenes\done.c" />
+    <ClCompile Include="scenes\evidence.c" />
+    <ClCompile Include="scenes\inside.c" />
+    <ClCompile Include="scenes\invest.c" />
+    <ClCompile Include="scenes\scenes.c" />
+    <ClCompile Include="scenes\tools.c" />
+    <ClCompile Include="SDL_win32_main.c" />
+    <ClCompile Include="sound\fmopl.c" />
+    <ClCompile Include="sound\fx.c" />
+    <ClCompile Include="sound\mxr.c" />
+    <ClCompile Include="sound\mxr_hsc.c" />
+    <ClCompile Include="sound\mxr_voc.c" />
+    <ClCompile Include="sound\mxr_wav.c" />
+    <ClCompile Include="sound\newsound.c" />
+    <ClCompile Include="stdafx.cpp">
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
+    </ClCompile>
+    <ClCompile Include="story\story.c" />
+    <ClCompile Include="text\text.c" />
+  </ItemGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets">
+  </ImportGroup>
+</Project>
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.vcxproj.filters b/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.vcxproj.filters
new file mode 100644
index 0000000..a914c27
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.vcxproj.filters
@@ -0,0 +1,435 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup>
+    <Filter Include="Quelldateien">
+      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
+      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
+    </Filter>
+    <Filter Include="Headerdateien">
+      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
+      <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
+    </Filter>
+    <Filter Include="Ressourcendateien">
+      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
+    </Filter>
+  </ItemGroup>
+  <ItemGroup>
+    <Text Include="ReadMe.txt" />
+  </ItemGroup>
+  <ItemGroup>
+    <ClInclude Include="stdafx.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="targetver.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="anim\sysanim.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="base\base.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="cdrom\cdrom.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="data\dataappl.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="data\database.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="data\database_p.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="data\datacalc.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="data\relation.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="data\tcdata.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="dialog\dialog.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="dialog\talkappl.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="disk\disk.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="disk\disk_e.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="error\error.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="gameplay\gamefunc.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="gameplay\gp.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="gameplay\gp_app.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="gfx\filter.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="gfx\gfx.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="gfx\gfx_p.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="inphdl\inphdl.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="intro\iffanim.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="intro\intro.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="landscap\landscap.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="landscap\landscap_p.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="landscap\raster.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="landscap\spot.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="list\list.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="living\bob.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="living\living.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="living\living_p.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="memory\memory.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="organisa\organisa.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="planing\graphics.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="planing\guards.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="planing\io.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="planing\main.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="planing\planer.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="planing\player.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="planing\prepare.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="planing\support.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="planing\sync.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="planing\system.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="port\port.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="present\interac.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="present\interac_p.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="present\present.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="present\present_p.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="random\random.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="scenes\evidence.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="scenes\scenes.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="sound\fmopl.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="sound\fx.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="sound\mxr.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="sound\newsound.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="story\story.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="text\text.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="text\text_e.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="text\text_p.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="theclou.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\SDL2-devel-2.0.8-VC\SDL2-2.0.8\include\SDL_main.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\SDL2-devel-2.0.8-VC\SDL2-2.0.8\include\SDL.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="stdafx.cpp">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="ClouRemake.cpp">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="anim\sysanim.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="base\base.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="base\fullenv.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="cdrom\cdrom.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="data\dataappl.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="data\database.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="data\datacalc.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="data\relation.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="dialog\dialog.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="dialog\talkappl.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="disk\disk.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="error\error.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="gameplay\gp.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="gameplay\gp_app.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="gameplay\loadsave.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="gameplay\tcreques.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="gfx\filter.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="gfx\gfx.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="gfx\gfxmcga.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="gfx\gfxnch4.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="inphdl\arrow1x_xpm.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="inphdl\arrow2x_xpm.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="inphdl\inphdl.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="intro\iffanim.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="intro\intro.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="landscap\access.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="landscap\hardware.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="landscap\init.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="landscap\landscap.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="landscap\raster.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="landscap\scroll.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="landscap\spot.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="list\list.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="living\bob.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="living\living.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="memory\memory.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="organisa\display.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="organisa\organisa.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="planing\graphics.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="planing\guards.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="planing\io.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="planing\main.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="planing\planer.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="planing\player.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="planing\prepare.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="planing\support.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="planing\sync.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="planing\system.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="port\port.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="present\interac.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="present\present.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="present\presenta.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="random\random.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="scenes\cars.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="scenes\dealer.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="scenes\done.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="scenes\evidence.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="scenes\inside.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="scenes\invest.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="scenes\scenes.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="scenes\tools.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="sound\fmopl.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="sound\fx.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="sound\mxr.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="sound\mxr_hsc.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="sound\mxr_voc.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="sound\mxr_wav.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="sound\newsound.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="story\story.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="text\text.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+    <ClCompile Include="SDL_win32_main.c">
+      <Filter>Quelldateien</Filter>
+    </ClCompile>
+  </ItemGroup>
+</Project>
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.vcxproj.user b/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.vcxproj.user
new file mode 100644
index 0000000..e11921f
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/ClouRemake.vcxproj.user
@@ -0,0 +1,6 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <ShowAllFiles>true</ShowAllFiles>
+  </PropertyGroup>
+</Project>
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.log b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.log
new file mode 100644
index 0000000..2104a8f
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.log
@@ -0,0 +1,415 @@
+﻿  text.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\text\text.c(9): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "text\text.h": No such file or directory
+  story.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\story\story.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "story\story.h": No such file or directory
+  newsound.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\sound\newsound.c(13): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "SDL.h": No such file or directory
+  mxr_wav.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\sound\mxr.h(44): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "theclou.h": No such file or directory
+  mxr_voc.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\sound\mxr.h(44): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "theclou.h": No such file or directory
+  mxr_hsc.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\sound\mxr.h(44): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "theclou.h": No such file or directory
+  mxr.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\sound\mxr.c(11): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "SDL.h": No such file or directory
+  fx.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\sound\fx.c(14): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "SDL.h": No such file or directory
+  fmopl.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\sound\fmopl.h(4): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "theclou.h": No such file or directory
+  SDL_win32_main.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\sdl_win32_main.c(28): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "SDL.h": No such file or directory
+  tools.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\scenes\tools.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "scenes\scenes.h": No such file or directory
+  scenes.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\scenes\scenes.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "scenes\scenes.h": No such file or directory
+  invest.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\scenes\invest.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "scenes\scenes.h": No such file or directory
+  inside.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\scenes\inside.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "scenes\scenes.h": No such file or directory
+  evidence.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\scenes\evidence.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "scenes\evidence.h": No such file or directory
+  done.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\scenes\done.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "scenes\scenes.h": No such file or directory
+  dealer.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\scenes\dealer.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "scenes\scenes.h": No such file or directory
+  cars.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\scenes\cars.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "scenes\scenes.h": No such file or directory
+  random.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\random\random.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "random\random.h": No such file or directory
+  presenta.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(7): error C2146: Syntaxfehler: Fehlendes ")" vor Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(7): error C2061: Syntaxfehler: Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(7): error C2059: Syntaxfehler: ";"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(7): error C2059: Syntaxfehler: ","
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(7): error C2059: Syntaxfehler: ")"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(25): error C2146: Syntaxfehler: Fehlendes ")" vor Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(25): error C2061: Syntaxfehler: Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(25): error C2059: Syntaxfehler: ";"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(25): error C2059: Syntaxfehler: ","
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(25): error C2059: Syntaxfehler: ")"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(49): error C2146: Syntaxfehler: Fehlendes ")" vor Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(49): error C2061: Syntaxfehler: Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(49): error C2059: Syntaxfehler: ";"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(49): error C2059: Syntaxfehler: ","
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(49): error C2059: Syntaxfehler: ")"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(71): error C2146: Syntaxfehler: Fehlendes ")" vor Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(71): error C2061: Syntaxfehler: Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(71): error C2059: Syntaxfehler: ";"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(71): error C2059: Syntaxfehler: ","
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(71): error C2059: Syntaxfehler: ")"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(98): error C2146: Syntaxfehler: Fehlendes ")" vor Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(98): error C2061: Syntaxfehler: Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(98): error C2059: Syntaxfehler: ";"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(98): error C2059: Syntaxfehler: ","
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(98): error C2059: Syntaxfehler: ")"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(160): error C2146: Syntaxfehler: Fehlendes ")" vor Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(160): error C2061: Syntaxfehler: Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(160): error C2059: Syntaxfehler: ";"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(160): error C2059: Syntaxfehler: ","
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(160): error C2059: Syntaxfehler: ")"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(186): error C2146: Syntaxfehler: Fehlendes ")" vor Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(186): error C2061: Syntaxfehler: Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(186): error C2059: Syntaxfehler: ";"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(186): error C2059: Syntaxfehler: ","
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(186): error C2059: Syntaxfehler: ")"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(197): error C2146: Syntaxfehler: Fehlendes ")" vor Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(197): error C2061: Syntaxfehler: Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(197): error C2059: Syntaxfehler: ";"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(197): error C2059: Syntaxfehler: ","
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(197): error C2059: Syntaxfehler: ")"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(254): error C2146: Syntaxfehler: Fehlendes ")" vor Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(254): error C2061: Syntaxfehler: Bezeichner "nr"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(254): error C2059: Syntaxfehler: ";"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(254): error C2059: Syntaxfehler: ","
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\presenta.c(254): error C2059: Syntaxfehler: ")"
+  present.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\present.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "present\present.h": No such file or directory
+  interac.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\present\interac.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "present\interac.h": No such file or directory
+  port.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\port\port.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "SDL_byteorder.h": No such file or directory
+  system.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\planing\system.c(14): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "planing\system.h": No such file or directory
+  sync.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\planing\sync.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "planing\sync.h": No such file or directory
+  support.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\planing\support.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "planing\support.h": No such file or directory
+  prepare.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\planing\prepare.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "planing\prepare.h": No such file or directory
+  player.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\planing\player.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "planing\player.h": No such file or directory
+  planer.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\planing\planer.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "planing\planer.h": No such file or directory
+  main.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\planing\main.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "planing\main.h": No such file or directory
+  io.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\planing\io.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "planing\io.h": No such file or directory
+  guards.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\planing\guards.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "planing\guards.h": No such file or directory
+  graphics.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\planing\graphics.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "planing\graphics.h": No such file or directory
+  organisa.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\organisa.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "organisa\organisa.h": No such file or directory
+  display.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(16): warning C4013: "gfxChangeColors" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(16): error C2065: "l_wrp": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(16): error C2065: "GFX_FADE_OUT": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(17): warning C4013: "gfxClearArea" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(17): error C2065: "l_wrp": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(18): warning C4013: "RefreshDisplayConfig" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(21): error C2371: "RefreshDisplayConfig": Neudefinition; unterschiedliche Basistypen
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(23): warning C4013: "gfxSetDestRPForShow" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(23): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(24): warning C4013: "gfxShow" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(24): error C2065: "GFX_NO_REFRESH": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(24): error C2065: "GFX_BLEND_UP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(26): error C2065: "CurrentBackground": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(26): error C2065: "BGD_PLANUNG": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(27): warning C4013: "ShowMenuBackground" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(32): error C2065: "l_wrp": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(32): error C2065: "GFX_FADE_OUT": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(33): error C2065: "l_wrp": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(34): warning C4013: "gfxSetPens" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(34): error C2065: "m_wrp": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(34): error C2065: "GFX_SAME_PEN": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(39): warning C4013: "tcDisplayCommon" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(40): warning C4013: "tcDisplayPerson" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(40): error C2065: "ORG_DISP_ABILITIES": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(42): warning C4013: "gfxBlit" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(42): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(42): error C2065: "l_wrp": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(42): error C2065: "GFX_ONE_STEP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(45): error C2371: "tcDisplayCommon": Neudefinition; unterschiedliche Basistypen
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(47): error C2065: "LIST": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(47): error C2065: "texts": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(47): warning C4552: "*": Operator hat keine Auswirkungen; Operator mit Nebeneffekt erwartet
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(48): error C2065: "TXT_KEY_LENGTH": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(48): error C2057: Konstanter Ausdruck erwartet
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(48): error C2466: Zuordnung eines Arrays der konstanten Größe 0 nicht möglich.
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(48): error C2133: "line": Unbekannte Größe
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(48): error C2133: "name": Unbekannte Größe
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(49): error C2065: "Building": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(49): error C2146: Syntaxfehler: Fehlendes ";" vor Bezeichner "building"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(49): error C2065: "building": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(51): error C2065: "texts": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(51): warning C4013: "txtGoKey" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(51): error C2065: "BUSINESS_TXT": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(53): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(54): error C2065: "GFX_ONE_STEP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(54): error C2065: "GFX_NO_REFRESH": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(58): warning C4013: "gfxSetFont" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(58): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(58): error C2065: "menuFont": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(59): warning C4013: "gfxSetDrMd" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(59): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(59): error C2065: "GFX_JAM_1": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(60): warning C4013: "gfxSetRect" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(62): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(62): error C2065: "GFX_SAME_PEN": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(64): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(64): error C2224: Der linke Teil von ".BuildingID" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(66): error C2065: "building": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(66): error C2065: "Building": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(66): error C2146: Syntaxfehler: Fehlendes ";" vor Bezeichner "dbGetObject"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(66): warning C4013: "dbGetObject" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(66): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(66): error C2224: Der linke Teil von ".BuildingID" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(68): warning C4013: "dbGetObjectName" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(68): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(68): error C2224: Der linke Teil von ".BuildingID" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(69): warning C4013: "gfxPrint" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(69): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(69): error C2065: "GFX_PRINT_CENTER": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(69): error C2065: "GFX_PRINT_SHADOW": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(73): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(73): error C2065: "bubbleFont": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(74): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(74): error C2065: "GFX_SAME_PEN": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(81): warning C4013: "strcpy" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(81): warning C4013: "NODE_NAME" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(81): warning C4013: "GetNthNode" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(81): error C2065: "texts": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(83): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(83): error C2224: Der linke Teil von ".CarID" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(85): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(85): error C2224: Der linke Teil von ".CarID" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(86): warning C4013: "tcCutName" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(86): error C2065: "ubyte": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(86): error C2143: Syntaxfehler: Es fehlt ")" vor "Konstante"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(86): error C2059: Syntaxfehler: ")"
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(87): warning C4013: "strcat" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(92): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(92): error C2065: "GFX_PRINT_LEFT": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(99): error C2065: "texts": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(101): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(101): error C2224: Der linke Teil von ".CarID" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(103): warning C4013: "sprintf" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(103): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(103): error C2224: Der linke Teil von ".PlacesInCar" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(109): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(109): error C2065: "GFX_PRINT_CENTER": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(116): error C2065: "texts": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(118): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(118): error C2224: Der linke Teil von ".DriverID" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(120): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(120): error C2224: Der linke Teil von ".DriverID" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(126): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(126): error C2065: "GFX_PRINT_RIGHT": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(133): error C2065: "texts": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(135): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(135): error C2224: Der linke Teil von ".BuildingID" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(137): error C2065: "LIST": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(137): error C2065: "enums": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(137): error C2065: "OBJECTS_ENUM_TXT": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(137): error C2106: "=": Linker Operand muss ein L-Wert sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(139): error C2065: "enums": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(139): error C2065: "building": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(139): error C2223: Der linke Teil von "->EscapeRoute" muss auf eine Struktur/Union zeigen
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(142): warning C4013: "RemoveList" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(142): error C2065: "enums": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(147): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(147): error C2065: "GFX_PRINT_LEFT": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(154): error C2065: "texts": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(156): error C2065: "Organisation": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(156): error C2224: Der linke Teil von ".BuildingID" muss eine Struktur/Union sein
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(159): error C2065: "building": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(159): error C2223: Der linke Teil von "->EscapeRouteLength" muss auf eine Struktur/Union zeigen
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(165): error C2065: "RefreshRP": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(165): error C2065: "GFX_PRINT_CENTER": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(172): error C2065: "texts": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\organisa\display.c(172): fatal error C1003: Mehr als 100 Fehler gefunden; Kompilierung wird abgebrochen.
+  memory.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\memory\memory.c(11): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "memory\memory.h": No such file or directory
+  living.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\living\living.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "living\living.h": No such file or directory
+  bob.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\living\bob.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "living\bob.h": No such file or directory
+  list.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\list\list.c(11): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "list\list.h": No such file or directory
+  spot.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\landscap\spot.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "landscap\spot.h": No such file or directory
+  scroll.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\landscap\scroll.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "landscap\landscap.h": No such file or directory
+  raster.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\landscap\raster.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "landscap\raster.h": No such file or directory
+  landscap.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\landscap\landscap.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "landscap\landscap.h": No such file or directory
+  init.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\landscap\init.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "landscap\landscap.h": No such file or directory
+  hardware.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\landscap\hardware.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "landscap\landscap.h": No such file or directory
+  access.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\landscap\access.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "landscap\landscap.h": No such file or directory
+  intro.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\intro\intro.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "SDL.h": No such file or directory
+  iffanim.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\intro\iffanim.c(11): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "error\error.h": No such file or directory
+  inphdl.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\inphdl\inphdl.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "SDL.h": No such file or directory
+  arrow2x_xpm.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\inphdl\arrow2x_xpm.c(44): error C2857: Die mit der Befehlszeilenoption /Ycstdafx.h festgelegte "#include"-Anweisung konnte in der Quelldatei nicht gefunden werden
+  arrow1x_xpm.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\inphdl\arrow1x_xpm.c(44): error C2857: Die mit der Befehlszeilenoption /Ycstdafx.h festgelegte "#include"-Anweisung konnte in der Quelldatei nicht gefunden werden
+  gfxnch4.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\gfx\gfxnch4.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "gfx\gfx.h": No such file or directory
+  gfxmcga.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\gfx\gfxmcga.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "gfx\gfx.h": No such file or directory
+  gfx.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\gfx\gfx.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "SDL.h": No such file or directory
+  filter.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\gfx\filter.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "gfx\filter.h": No such file or directory
+  tcreques.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\gameplay\tcreques.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "gameplay\gp.h": No such file or directory
+  loadsave.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\gameplay\loadsave.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "gameplay\gp.h": No such file or directory
+  gp_app.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\gameplay\gp_app.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "gameplay\gp_app.h": No such file or directory
+  gp.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\gameplay\gp.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "gameplay\gp.h": No such file or directory
+  error.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\error\error.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "error\error.h": No such file or directory
+  disk.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\disk\disk.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "disk\disk.h": No such file or directory
+  talkappl.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\dialog\talkappl.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "dialog\talkappl.h": No such file or directory
+  dialog.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\dialog\dialog.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "dialog\dialog.h": No such file or directory
+  relation.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\data\relation.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "data\relation.h": No such file or directory
+  datacalc.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\data\datacalc.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "data\datacalc.h": No such file or directory
+  database.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\data\database.c(9): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "data\database.h": No such file or directory
+  dataappl.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\data\dataappl.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "data\dataappl.h": No such file or directory
+  cdrom.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\cdrom\cdrom.c(10): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "SDL.h": No such file or directory
+  fullenv.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(14): warning C4013: "hasSetP" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(14): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(14): error C2065: "Ability_Elektronik": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(15): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(15): error C2065: "Ability_Schloesser": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(16): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(16): error C2065: "Ability_Aufpassen": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(17): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(17): error C2065: "Ability_Safes": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(19): error C2065: "Person_Marc_Smith": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(19): error C2065: "Ability_Autos": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(20): error C2065: "Person_Mohammed_Abdula": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(20): error C2065: "Ability_Kampf": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(25): warning C4013: "hasSet" undefiniert; Annahme: extern mit Rückgabetyp int
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(25): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(25): error C2065: "Car_Triumph_Roadstar_1947": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(26): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(26): error C2065: "Car_Triumph_Roadstar_1949": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(27): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(27): error C2065: "Car_Cadillac_Club_1952": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(28): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(28): error C2065: "Car_Opel_Olympia_1953": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(29): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(29): error C2065: "Car_Standard_Vanguard_1950": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(30): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(30): error C2065: "Car_Standard_Vanguard_1951": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(31): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(31): error C2065: "Car_Standard_Vanguard_1953": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(32): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(32): error C2065: "Car_Jaguar_XK_1950": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(33): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(33): error C2065: "Car_Pontiac_Streamliner_1944": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(34): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(34): error C2065: "Car_Pontiac_Streamliner_1946": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(35): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(35): error C2065: "Car_Pontiac_Streamliner_1949": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(36): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(36): error C2065: "Car_Fiat_Topolino_1936": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(37): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(37): error C2065: "Car_Fiat_Topolino_1940": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(38): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(38): error C2065: "Car_Fiat_Topolino_1942": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(39): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(39): error C2065: "Car_Morris_Minor_1948": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(40): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(40): error C2065: "Car_Morris_Minor_1950": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(41): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(41): error C2065: "Car_Morris_Minor_1953": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(42): error C2065: "bProfidisk": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(44): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(44): error C2065: "Car_Rover_75_1949": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(45): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(45): error C2065: "Car_Rover_75_1950": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(46): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(46): error C2065: "Car_Rover_75_1952": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(47): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(47): error C2065: "Car_Ford_Model_T__1926": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(48): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(48): error C2065: "Car_Bentley_Continental_Typ_R_1952": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(49): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(49): error C2065: "Car_Bentley_Continental_Typ_R_1953": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(50): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(50): error C2065: "Car_Fiat_634_N_1936": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(51): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(51): error C2065: "Car_Fiat_634_N_1943": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(57): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(57): error C2065: "Tool_Dietrich": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(58): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(58): error C2065: "Tool_Hammer": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(59): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(59): error C2065: "Tool_Axt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(60): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(60): error C2065: "Tool_Kernbohrer": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(61): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(61): error C2065: "Tool_Handschuhe": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(62): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(62): error C2065: "Tool_Schuhe": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(63): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(63): error C2065: "Tool_Maske": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(64): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(64): error C2065: "Tool_Chloroform": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(65): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(65): error C2065: "Tool_Brecheisen": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(66): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(66): error C2065: "Tool_Winkelschleifer": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(67): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(67): error C2065: "Tool_Bohrmaschine": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(68): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(68): error C2065: "Tool_Bohrwinde": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(69): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(69): error C2065: "Tool_Schloszstecher": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(70): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(70): error C2065: "Tool_Schneidbrenner": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(71): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(71): error C2065: "Tool_Sauerstofflanze": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(72): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(72): error C2065: "Tool_Stethoskop": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(73): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(73): error C2065: "Tool_Batterie": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(74): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(74): error C2065: "Tool_Stromgenerator": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(75): error C2065: "Person_Matt_Stuvysunt": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(75): error C2065: "Tool_Elektroset": nichtdeklarierter Bezeichner
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\fullenv.c(75): fatal error C1003: Mehr als 100 Fehler gefunden; Kompilierung wird abgebrochen.
+  base.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\base\base.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "SDL.h": No such file or directory
+  sysanim.c
+d:\privater code\cosp-0.6-src\clouremake\clouremake\anim\sysanim.c(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "anim\sysanim.h": No such file or directory
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/CL.command.1.tlog b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/CL.command.1.tlog
new file mode 100644
index 0000000..48c81aa
Binary files /dev/null and b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/CL.command.1.tlog differ
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/CL.read.1.tlog b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/CL.read.1.tlog
new file mode 100644
index 0000000..139e71c
Binary files /dev/null and b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/CL.read.1.tlog differ
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/CL.write.1.tlog b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/CL.write.1.tlog
new file mode 100644
index 0000000..f0c64ce
Binary files /dev/null and b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/CL.write.1.tlog differ
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/ClouRemake.lastbuildstate b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/ClouRemake.lastbuildstate
new file mode 100644
index 0000000..b8644a7
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/ClouRemake.lastbuildstate
@@ -0,0 +1,2 @@
+#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
+Debug|Win32|D:\Privater Code\cosp-0.6-src\ClouRemake\|
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/unsuccessfulbuild b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/ClouRemake.tlog/unsuccessfulbuild
new file mode 100644
index 0000000..e69de29
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/Debug/stdafx.obj b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/stdafx.obj
new file mode 100644
index 0000000..75e240c
Binary files /dev/null and b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/stdafx.obj differ
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/Debug/vc140.idb b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/vc140.idb
new file mode 100644
index 0000000..35ce443
Binary files /dev/null and b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/vc140.idb differ
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/Debug/vc140.pdb b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/vc140.pdb
new file mode 100644
index 0000000..d53d771
Binary files /dev/null and b/cosp-0.6-src/ClouRemake/ClouRemake/Debug/vc140.pdb differ
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/Properties/AssemblyInfo.cs b/cosp-0.6-src/ClouRemake/ClouRemake/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..3c46883
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+﻿using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Allgemeine Informationen über eine Assembly werden über die folgenden 
+// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
+// die einer Assembly zugeordnet sind.
+[assembly: AssemblyTitle("Clou_Game")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Orgname")]
+[assembly: AssemblyProduct("Clou_Game")]
+[assembly: AssemblyCopyright("Copyright © Orgname 2018")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar 
+// für COM-Komponenten.  Wenn Sie auf einen Typ in dieser Assembly von 
+// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
+[assembly: ComVisible(false)]
+
+// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
+[assembly: Guid("b98facf3-b60c-46af-a23e-dca4e73eba82")]
+
+// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
+//
+//      Hauptversion
+//      Nebenversion 
+//      Buildnummer
+//      Revision
+//
+// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern 
+// übernehmen, indem Sie "*" eingeben:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/PublicLicenceContract.txt b/cosp-0.6-src/ClouRemake/ClouRemake/PublicLicenceContract.txt
new file mode 100644
index 0000000..8394fdd
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/PublicLicenceContract.txt
@@ -0,0 +1,94 @@
+Allgemeine �ffentliche Lizenzbestimmungen
+
+
+Lizenznehmer:
+Zum Lizenznehmer wird jeder, der die vom Lizenzgeber zur Verf�gung gestellten
+Unterlagen (Sourcecodes, Grafiken, Musik etc.) des Produktes verbreitet und/oder ver�ndert.	
+
+Lizenzgeber: 
+neo Software Produktions GmbH
+Wienerbergstra�e 9/1
+A-1100 Wien
+�sterreich
+
+I.
+Allgemeines
+
+Produkt: Ein Computer- Onlinespiel mit dem (Arbeits-)Titel "Xxxxxx" f�r Windows 95/98/NT, 
+Windows 2000 und kompatible Computer Systeme, basierend auf anh�ngigem Konzept.
+
+Gegenstand der Lizenz ist die �ffentliche Weiterentwicklung und Ver�nderung des Produktes 
+durch Lizenznehmer.
+
+
+II.
+Verg�tung
+
+Der Lizenzgeber erh�lt f�r die zur Verf�gungstellung des Produktes keinerlei Verg�tung.
+
+Der Lizenzgeber erh�lt bei Fertigstellung durch Lizenznehmer innerhalb von 14 Kalendertagen 
+nach Fertigstellung eine Kopie aller ver�nderten oder f�r das Produkt neu erstellten Unterlagen 
+(Sourcecodes, Grafiken, Grafik Rohdaten) sowie ein lauff�higes Master der neuen Version f�r 
+seinen eigenen Bedarf an seine offizielle Email Adresse "office@neo.at" mit dem Betreff 
+"Open Source" und dem Produktnamen.
+
+Jede durch Lizenznehmer erstellte Version muss in zwei Versionen kostenlos und �ffentlich 
+zug�ngig gemacht werden:
+
+� Binary Distribution:
+Enth�lt ein installierbares Master UND diese Lizenzbestimmungen in Form dieser DOC Datei.
+
+� Developer's Distribution:
+Enth�lt alle Sourcecodes, alles Bild und Ton Material das zur Weiterentwicklung verwendet 
+wurde UND diese Lizenzbestimmungen in Form dieser DOC Datei.
+
+ III.
+Rechte und Pflichten
+
+Der Lizenzgeber �bertr�gt den Lizenznehmern r�umlich und zeitlich unbeschr�nkt das nicht 
+exklusive Recht, die unter diese Bestimmungen fallenden Versionen des Produktes zur G�nze 
+auf Datentr�gern jeder heute (insbes., jedoch nicht nur, CD-ROM, DVD, CD-V, Laserdisc usw.) 
+und zuk�nftig technisch realisierbaren Konfiguration (insbes., jedoch nicht nur PC-Chip, 
+Diskette, magnetooptische Speicher, Band, Online usw.) umfassend und ausschlie�lich nichtkommerziell 
+zu vervielf�ltigen und/oder zu verbreiten, und zwar in jeder heute und zuk�nftig technisch m�glichen 
+Form sowie das nicht exklusive Recht, die Versionen der Produktion zur G�nze ausschlie�lich 
+unentgeltlich in jeder heute und k�nftig technisch m�glichen Art (insbes., jedoch nicht nur 
+Online, �ber das Internet oder sonstige Netzwerke, Online-Dienste, CD-ROM oder �hnliche 
+Multimedia-Tr�ger usw.) zu verbreiten.
+
+Lizenznehmer d�rfen den urspr�nglichen Namen des Produktes nicht ver�ndern und die neuen Versionen
+ausschlie�lich durch Zus�tze kenntlich machen.
+
+Beispiel Original Name:
+Der Clou!
+
+Beispiele Versions Name:
+Der Clou! - Windows Version V1.0
+Der Clou! - Beute f�r Alle...
+
+Lizenznehmer m�ssen in jeder Version in der branchen�blichen Form auf den Lizenzgeber hinweisen. 
+Ausschlie�lich hierf�r ist den Lizenznehmern die Benutzung der Wortbildmarke "neo" des Lizenzgebers 
+bis auf Widerruf gestattet. 
+
+Die Vermerke "basierend auf der Originalversion von neo Software" und 
+"Details dar�ber finden Sie unter www.neo.at" m�ssen deutlich lesbar im Installationsteil und nach 
+dem Start des Produktes am Bildschirm dargestellt werden. Eine inhaltlich unver�nderte �bersetzung dieser 
+Phrasen in andere Sprachen ist zul�ssig.
+
+
+IV.
+Gew�hrleistung und Haftung
+
+In keinem Fall kann der Lizenzgeber f�r irgendwelche Sch�den, Folgesch�den, Forderungen etc. haftbar 
+gemacht werden, die durch die von Lizenzgeber erstmals ver�ffentlichte Version oder eine durch Lizenznehmer 
+erstellte Version des Produktes entstanden sind. Im zweiten Falle sind die Lizenznehmer verpflichtet, den 
+Lizenzgeber vollkommen schadlos zu halten.
+
+
+ V.
+Schlussbestimmungen
+
+Diese Bedingungen unterliegen dem Recht der Republik �sterreich.
+
+Gerichtsstand ist Wien.
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/ReadMe.txt b/cosp-0.6-src/ClouRemake/ClouRemake/ReadMe.txt
new file mode 100644
index 0000000..da179c2
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/ReadMe.txt
@@ -0,0 +1,34 @@
+﻿========================================================================
+    DYNAMIC LINK LIBRARY: ClouRemake-Projektübersicht
+========================================================================
+
+Diese ClouRemake-DLL wurde vom Anwendungs-Assistenten für Sie erstellt.
+
+Diese Datei bietet eine Übersicht über den Inhalt der einzelnen Dateien, aus
+denen Ihre ClouRemake-Anwendung besteht.
+
+
+ClouRemake.vcxproj
+    Dies ist die Hauptprojektdatei für VC++-Projekte, die mit dem Anwendungs-Assistenten generiert werden. Sie enthält Informationen über die Version von Visual C++, mit der die Datei generiert wurde, sowie über die Plattformen, Konfigurationen und Projektfunktionen, die im Anwendungs-Assistenten ausgewählt wurden.
+
+ClouRemake.vcxproj.filters
+    Dies ist die Filterdatei für VC++-Projekte, die mithilfe eines Anwendungs-Assistenten erstellt werden. Sie enthält Informationen über die Zuordnung zwischen den Dateien im Projekt und den Filtern. Diese Zuordnung wird in der IDE zur Darstellung der Gruppierung von Dateien mit ähnlichen Erweiterungen unter einem bestimmten Knoten verwendet (z. B. sind CPP-Dateien dem Filter "Quelldateien" zugeordnet).
+
+ClouRemake.cpp
+    Dies ist die Hauptquelldatei der DLL.
+
+	Diese DLL exportiert keine Symbole, Dies führt dazu, dass sie beim Buildvorgang keine LIB-Datei generiert. Wenn dieses Projekt eine Projektabhängigkeit eines anderen Projekts sein soll, müssen Sie entweder Code zum Exportieren einiger Symbole aus der DLL hinzufügen, damit eine Exportbibliothek erstellt wird, oder Sie können im Ordner "Linker" auf der Eigenschaftenseite "Allgemein" im Dialogfeld "Eigenschaftenseiten" des Projekts die Eigenschaft "Ignore Input Library" auf "Ja" festlegen.
+
+/////////////////////////////////////////////////////////////////////////////
+Andere Standarddateien:
+
+StdAfx.h, StdAfx.cpp
+    Mit diesen Dateien werden eine vorkompilierte Headerdatei (PCH) mit dem Namen ClouRemake.pch und eine vorkompilierte Typendatei mit dem Namen StdAfx.obj erstellt.
+
+/////////////////////////////////////////////////////////////////////////////
+Weitere Hinweise:
+
+Der Anwendungs-Assistent weist Sie mit "TODO:"-Kommentaren auf Teile des
+Quellcodes hin, die Sie ergänzen oder anpassen sollten.
+
+/////////////////////////////////////////////////////////////////////////////
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/SDL.dll b/cosp-0.6-src/ClouRemake/ClouRemake/SDL.dll
new file mode 100644
index 0000000..69fd61e
Binary files /dev/null and b/cosp-0.6-src/ClouRemake/ClouRemake/SDL.dll differ
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/SDL_win32_main.c b/cosp-0.6-src/ClouRemake/ClouRemake/SDL_win32_main.c
new file mode 100644
index 0000000..0c8b453
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/SDL_win32_main.c
@@ -0,0 +1,393 @@
+/*
+    SDL_main.c, placed in the public domain by Sam Lantinga  4/13/98
+
+    The WinMain function -- calls your program's main() function
+*/
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+
+#ifdef _WIN32_WCE
+# define DIR_SEPERATOR TEXT("\\")
+# undef _getcwd
+# define _getcwd(str,len)	wcscpy(str,TEXT(""))
+# define setbuf(f,b)
+# define setvbuf(w,x,y,z)
+# define fopen		_wfopen
+# define freopen	_wfreopen
+# define remove(x)	DeleteFile(x)
+#else
+# define DIR_SEPERATOR TEXT("/")
+# include <direct.h>
+#endif
+
+/* Include the SDL main definition header */
+#include "SDL.h"
+#include "SDL_main.h"
+
+#ifdef main
+# ifndef _WIN32_WCE_EMULATION
+#  undef main
+# endif /* _WIN32_WCE_EMULATION */
+#endif /* main */
+
+/* The standard output files */
+#define STDOUT_FILE	TEXT("stdout.txt")
+#define STDERR_FILE	TEXT("stderr.txt")
+
+/* Set a variable to tell if the stdio redirect has been enabled. */
+static int stdioRedirectEnabled = 0;
+
+#ifdef _WIN32_WCE
+  static wchar_t stdoutPath[MAX_PATH];
+  static wchar_t stderrPath[MAX_PATH];
+#else
+  static char stdoutPath[MAX_PATH];
+  static char stderrPath[MAX_PATH];
+#endif
+
+#if defined(_WIN32_WCE) && _WIN32_WCE < 300
+/* seems to be undefined in Win CE although in online help */
+#define isspace(a) (((CHAR)a == ' ') || ((CHAR)a == '\t'))
+#endif /* _WIN32_WCE < 300 */
+
+static void UnEscapeQuotes( char *arg )
+{
+	char *last = NULL;
+
+	while( *arg ) {
+		if( *arg == '"' && *last == '\\' ) {
+			char *c_curr = arg;
+			char *c_last = last;
+
+			while( *c_curr ) {
+				*c_last = *c_curr;
+				c_last = c_curr;
+				c_curr++;
+			}
+			*c_last = '\0';
+		}
+		last = arg;
+		arg++;
+	}
+}
+
+/* Parse a command line buffer into arguments */
+static int ParseCommandLine(char *cmdline, char **argv)
+{
+	char *bufp;
+	char *lastp = NULL;
+	int argc, last_argc;
+
+	argc = last_argc = 0;
+	for ( bufp = cmdline; *bufp; ) {
+		/* Skip leading whitespace */
+		while ( isspace(*bufp) ) {
+			++bufp;
+		}
+		/* Skip over argument */
+		if ( *bufp == '"' ) {
+			++bufp;
+			if ( *bufp ) {
+				if ( argv ) {
+					argv[argc] = bufp;
+				}
+				++argc;
+			}
+			/* Skip over word */
+			while ( *bufp && ( *bufp != '"' || (lastp && *lastp == '\\') ) ) {
+				lastp = bufp;
+				++bufp;
+			}
+		} else {
+			if ( *bufp ) {
+				if ( argv ) {
+					argv[argc] = bufp;
+				}
+				++argc;
+			}
+			/* Skip over word */
+			while ( *bufp && ! isspace(*bufp) ) {
+				++bufp;
+			}
+		}
+		if ( *bufp ) {
+			if ( argv ) {
+				*bufp = '\0';
+			}
+			++bufp;
+		}
+
+		/* Strip out \ from \" sequences */
+		if( argv && last_argc != argc ) {
+			UnEscapeQuotes( argv[last_argc] );
+		}
+		last_argc = argc;
+	}
+	if ( argv ) {
+		argv[argc] = NULL;
+	}
+	return(argc);
+}
+
+/* Show an error message */
+static void ShowError(const char *title, const char *message)
+{
+/* If USE_MESSAGEBOX is defined, you need to link with user32.lib */
+#ifdef USE_MESSAGEBOX
+	MessageBox(NULL, message, title, MB_ICONEXCLAMATION|MB_OK);
+#else
+	fprintf(stderr, "%s: %s\n", title, message);
+#endif
+}
+
+/* Pop up an out of memory message, returns to Windows */
+static BOOL OutOfMemory(void)
+{
+	ShowError("Fatal Error", "Out of memory - aborting");
+	return FALSE;
+}
+
+/* SDL_Quit() shouldn't be used with atexit() directly because
+   calling conventions may differ... */
+static void cleanup(void)
+{
+	SDL_Quit();
+}
+
+/* Remove the output files if there was no output written */
+static void cleanup_output(void) {
+	FILE *file;
+	int empty;
+
+	/* Flush the output in case anything is queued */
+	fclose(stdout);
+	fclose(stderr);
+
+	/* Without redirection we're done */
+	if (!stdioRedirectEnabled) {
+		return;
+	}
+
+	/* See if the files have any output in them */
+	if ( stdoutPath[0] ) {
+		file = fopen(stdoutPath, (char*)TEXT("rb"));
+		if ( file ) {
+			empty = (fgetc(file) == EOF) ? 1 : 0;
+			fclose(file);
+			if ( empty ) {
+				remove(stdoutPath);
+			}
+		}
+	}
+	if ( stderrPath[0] ) {
+		file = fopen(stderrPath, (char*)TEXT("rb"));
+		if ( file ) {
+			empty = (fgetc(file) == EOF) ? 1 : 0;
+			fclose(file);
+			if ( empty ) {
+				remove(stderrPath);
+			}
+		}
+	}
+}
+
+/* converts wide char to char */
+static char* WChartoChar(const wchar_t* str, unsigned int page)
+{
+    int size; 
+    char* retStr;
+	size = WideCharToMultiByte(page, 0, str, -1, NULL, 0, NULL, NULL);
+	retStr = (char *)calloc(sizeof(char), size);
+    WideCharToMultiByte(page, 0, str, -1, retStr, size, NULL, NULL);
+    return retStr;
+}
+
+/* Redirect the output (stdout and stderr) to a file */
+static void redirect_output(void)
+{
+	DWORD pathlen;
+	FILE *newfp;
+#ifdef _WIN32_WCE
+	wchar_t path[MAX_PATH];
+	pathlen = GetModuleFileName(NULL, (LPWSTR)path, SDL_arraysize(path));
+#else
+	char path[MAX_PATH];
+	pathlen = GetModuleFileNameA(NULL, (char*)path, SDL_arraysize(path));
+#endif
+	while ( pathlen > 0 && path[pathlen] != '\\' ) {
+		--pathlen;
+	}
+	path[pathlen] = '\0';
+
+#ifdef _WIN32_WCE
+	wcsncpy( stdoutPath, path, SDL_arraysize(stdoutPath) );
+	wcsncat( stdoutPath, DIR_SEPERATOR STDOUT_FILE, SDL_arraysize(stdoutPath) );
+#else
+	SDL_strlcpy( stdoutPath, path, SDL_arraysize(stdoutPath) );
+	SDL_strlcat( stdoutPath, (char*)DIR_SEPERATOR STDOUT_FILE, SDL_arraysize(stdoutPath) );
+#endif
+
+	/* Redirect standard input and standard output */
+	newfp = freopen(stdoutPath, (char*)TEXT("w"), stdout);
+
+#ifndef _WIN32_WCE
+	if ( newfp == NULL ) {	/* This happens on NT */
+#if !defined(stdout)
+		stdout = fopen(stdoutPath, TEXT("w"));
+#else
+		newfp = fopen(stdoutPath, (char*)TEXT("w"));
+		if ( newfp ) {
+			*stdout = *newfp;
+		}
+#endif
+	}
+#endif /* _WIN32_WCE */
+
+#ifdef _WIN32_WCE
+	wcsncpy( stderrPath, path, SDL_arraysize(stdoutPath) );
+	wcsncat( stderrPath, DIR_SEPERATOR STDOUT_FILE, SDL_arraysize(stdoutPath) );
+#else
+	SDL_strlcpy( stderrPath, path, SDL_arraysize(stderrPath) );
+	SDL_strlcat( stderrPath, (char*)DIR_SEPERATOR STDERR_FILE, SDL_arraysize(stderrPath) );
+#endif
+
+	newfp = freopen(stderrPath, (char*)TEXT("w"), stderr);
+#ifndef _WIN32_WCE
+	if ( newfp == NULL ) {	/* This happens on NT */
+#if !defined(stderr)
+		stderr = fopen(stderrPath, TEXT("w"));
+#else
+		newfp = fopen(stderrPath, (char*)TEXT("w"));
+		if ( newfp ) {
+			*stderr = *newfp;
+		}
+#endif
+	}
+#endif /* _WIN32_WCE */
+
+	setvbuf(stdout, NULL, _IOLBF, BUFSIZ);	/* Line buffered */
+	setbuf(stderr, NULL);			/* No buffering */
+	stdioRedirectEnabled = 1;
+}
+
+#if defined(_MSC_VER) && !defined(_WIN32_WCE)
+/* The VC++ compiler needs main defined */
+#define console_main main
+#endif
+
+/* This is where execution begins [console apps] */
+int console_main(int argc, char *argv[])
+{
+	int status;
+
+	/* Load SDL dynamic link library */
+	if ( SDL_Init(SDL_INIT_NOPARACHUTE) < 0 ) {
+		ShowError("WinMain() error", SDL_GetError());
+		return(FALSE);
+	}
+	atexit(cleanup_output);
+	atexit(cleanup);
+
+	/* Sam:
+	   We still need to pass in the application handle so that
+	   DirectInput will initialize properly when SDL_RegisterApp()
+	   is called later in the video initialization.
+	 */
+	SDL_SetModuleHandle(GetModuleHandle(NULL));
+
+	/* Run the application main() code */
+	status = SDL_main(argc, argv);
+
+	/* Exit cleanly, calling atexit() functions */
+	exit(status);
+
+	/* Hush little compiler, don't you cry... */
+	return 0;
+}
+
+/* This is where execution begins [windowed apps] */
+#ifdef _WIN32_WCE
+int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPWSTR szCmdLine, int sw)
+#else
+int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw)
+#endif
+{
+	HMODULE handle;
+	char **argv;
+	int argc;
+	char *cmdline;
+	char *env_str;
+#ifdef _WIN32_WCE
+	wchar_t *bufp;
+	int nLen;
+#else
+	char *bufp;
+	size_t nLen;
+#endif
+
+	/* Start up DDHELP.EXE before opening any files, so DDHELP doesn't
+	   keep them open.  This is a hack.. hopefully it will be fixed
+	   someday.  DDHELP.EXE starts up the first time DDRAW.DLL is loaded.
+	 */
+	handle = LoadLibrary(TEXT("DDRAW.DLL"));
+	if ( handle != NULL ) {
+		FreeLibrary(handle);
+	}
+
+	/* Check for stdio redirect settings and do the redirection */
+	if ((env_str = SDL_getenv("SDL_STDIO_REDIRECT"))) {
+		if (SDL_atoi(env_str)) {
+			redirect_output();
+		}
+	}
+#ifndef NO_STDIO_REDIRECT
+	else {
+		redirect_output();
+	}
+#endif
+
+#ifdef _WIN32_WCE
+	nLen = wcslen(szCmdLine)+128+1;
+	bufp = SDL_stack_alloc(wchar_t, nLen*2);
+	wcscpy (bufp, TEXT("\""));
+	GetModuleFileName(NULL, bufp+1, 128-3);
+	wcscpy (bufp+wcslen(bufp), TEXT("\" "));
+	wcsncpy(bufp+wcslen(bufp), szCmdLine,nLen-wcslen(bufp));
+	nLen = wcslen(bufp)+1;
+	cmdline = SDL_stack_alloc(char, nLen);
+	if ( cmdline == NULL ) {
+		return OutOfMemory();
+	}
+	WideCharToMultiByte(CP_ACP, 0, bufp, -1, cmdline, nLen, NULL, NULL);
+#else
+	/* Grab the command line */
+	bufp = WChartoChar(GetCommandLineW(),CP_UTF8);
+	nLen = SDL_strlen(bufp)+1;
+	//cmdline = SDL_stack_alloc(char, nLen);
+	cmdline = (char*)calloc(sizeof(char), nLen);
+	if ( cmdline == NULL ) {
+		return OutOfMemory();
+	}
+	SDL_strlcpy(cmdline, bufp, nLen);
+	free(bufp);
+#endif
+
+	/* Parse it into argv and argc */
+	argc = ParseCommandLine(cmdline, NULL);
+	//argv = SDL_stack_alloc(char*, argc+1);
+	argv = (char**)calloc(sizeof(char*), argc+1);
+	if ( argv == NULL ) {
+		return OutOfMemory();
+	}
+	ParseCommandLine(cmdline, argv);
+
+	/* Run the main program (after a little SDL initialization) */
+	console_main(argc, argv);
+
+	/* Hush little compiler, don't you cry... */
+	return 0;
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/anim/sysanim.c b/cosp-0.6-src/ClouRemake/ClouRemake/anim/sysanim.c
new file mode 100644
index 0000000..e0f4ab3
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/anim/sysanim.c
@@ -0,0 +1,304 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "anim\sysanim.h"
+
+#define	PIC_MODE_POS		1
+#define	PIC_P_SEC_POS		2
+#define	PIC_1_ID_POS		3
+#define	ANIM_COLL_ID_POS	4
+#define	PIC_COUNT_POS		5
+#define	PHASE_WIDTH_POS	6
+#define	PHASE_HEIGHT_POS	7
+#define	PHASE_OFFSET_POS	8
+#define	X_DEST_OFFSET_POS	9
+#define	Y_DEST_OFFSET_POS	10
+#define	PLAY_MODE_POS		11
+
+/* Defines f�r Playmode */
+#define	PM_NORMAL			     1
+#define	PM_PING_PONG		     2
+#define  PM_SYNCHRON            4
+
+/* Defines f�r AnimPic Aufbau */
+#define 	Y_OFFSET		           0	/* 1 Pixel zwischen 2 Reihen */
+
+struct AnimHandler
+{
+	ubyte	*RunningAnimID;      /* Anim, die gerade l�uft */
+
+	uword destX;
+	uword destY;
+	uword width;
+	uword height;
+
+	uword offset;
+	uword frameCount;
+
+	uword pictsPerRow;
+	uword totalWidth;
+
+	uword NrOfAnims;
+	uword PictureRate;	      /* Rate mit der Anim gespielt wird */
+
+	uword Repeatation;	      /* wie oft wiederholen */
+	uword RepeatationCount;	/* wie oft schon wiederholt */
+
+	ulong WaitCounter;
+
+	uword AnimCollection;		/* einzelnen Animphasen */
+
+	uword CurrPictNr;
+	word  Direction;
+
+	ubyte PlayMode;
+
+	ubyte AnimatorState;
+};
+
+struct AnimHandler Handler = {NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
+char  RunningAnimLine[TXT_KEY_LENGTH];
+
+#define ANIM_FRAME_XMS_RP	AnimRPInXMS
+#define ANIM_FRAME_RP		PrepareRP
+
+#define ANIM_STATE_SUSPENDED	1<<0
+
+void	LoadAnim(char *AnimID);
+
+static void GetAnim(char *AnimID,char *Dest);
+static void PrepareAnim (char *AnimID);
+
+/*
+* init & dones
+*/
+
+void InitAnimHandler (void)
+{
+	Handler.RunningAnimID =(ubyte*) RunningAnimLine;
+	strcpy((char*)Handler.RunningAnimID, "");
+}
+
+void CloseAnimHandler (void)
+{
+	StopAnim();
+}
+
+void SuspendAnim(void)
+{
+	Handler.AnimatorState |= ANIM_STATE_SUSPENDED;
+}
+
+void ContinueAnim(void)
+{
+	Handler.AnimatorState &= (0xff - ANIM_STATE_SUSPENDED);
+}
+
+/*
+* prepare...
+*/
+
+// initialisert diverse Werte und kopiert anschlie�end die Animphasen
+// in den XMS Speicher
+static void PrepareAnim (char *AnimID)
+{
+	char pict_list[TXT_KEY_LENGTH] = {0};
+	struct	Collection *coll;
+
+	GetAnim(AnimID, pict_list);
+
+	if ((ulong)(txtCountKey(pict_list)) > PIC_1_ID_POS)
+	{
+		coll = gfxGetCollection((uword) txtGetKeyAsULONG((uword)ANIM_COLL_ID_POS, pict_list));
+
+		Handler.frameCount  = txtGetKeyAsULONG((uword)PIC_COUNT_POS, pict_list);
+
+		Handler.width  = (uword) txtGetKeyAsULONG((uword)PHASE_WIDTH_POS, pict_list);
+		Handler.height = (uword) txtGetKeyAsULONG((uword)PHASE_HEIGHT_POS, pict_list);
+
+		Handler.offset = (uword) txtGetKeyAsULONG((uword)PHASE_OFFSET_POS, pict_list);
+
+		Handler.destX  = (uword) txtGetKeyAsULONG((uword)X_DEST_OFFSET_POS, pict_list);
+		Handler.destY  = (uword) txtGetKeyAsULONG((uword)Y_DEST_OFFSET_POS, pict_list);
+
+		/* einen Offset mu� ich zur Totalbreite addieren ! Beispiel :	 */
+		/* 3 Bilder mit Width = 80, Offset = 2 -> TotalWidth = 244		 */
+		/* 244 / 3 ist aber nur 2, obwohl in dieser Zeile 3 Bilder sind ! */
+		Handler.pictsPerRow    = (coll->us_TotalWidth+Handler.offset)/(Handler.width+Handler.offset);
+		Handler.totalWidth     = coll->us_TotalWidth;
+
+		Handler.AnimCollection = coll->us_CollId;
+
+		/* jetzt die Animphasen vorbereiten und ins XMS kopieren */
+		gfxCopyCollToXMS(coll->us_CollId, &ANIM_FRAME_XMS_RP);
+	}
+}
+
+/*
+* PlayAnim
+* StopAnim
+*/
+
+void PlayAnim (char *AnimID, word how_often, ulong mode)
+{
+	char pict_list[TXT_KEY_LENGTH] = {0};
+	uword	pict_id=0, rate;
+
+	GetAnim(AnimID, pict_list);
+
+	if (pict_list[0] == '\0')
+	{
+		gfxClearArea(l_wrp);
+	}
+	else
+	{
+		StopAnim();
+
+		PrepareAnim(AnimID);
+
+		if (!(mode & GFX_DONT_SHOW_FIRST_PIC))
+		{
+			if (!mode)
+			{
+				mode = (ulong)txtGetKeyAsULONG((uword)PIC_MODE_POS,(char*)pict_list);
+			}
+			pict_id = (uword)txtGetKeyAsULONG((uword)PIC_1_ID_POS,(char*)pict_list);
+		}
+
+		if (pict_id)
+		{
+			gfxShow(pict_id, mode, 2, -1L, -1L);
+		}
+
+		if ((ulong)(txtCountKey((char*)pict_list)) > PIC_1_ID_POS)
+		{
+			rate = (uword)txtGetKeyAsULONG((uword)PIC_P_SEC_POS, (char*)pict_list);
+
+			Handler.PlayMode    = (ubyte)txtGetKeyAsULONG((uword)PLAY_MODE_POS, (char*)pict_list);
+			Handler.PictureRate = rate;
+			Handler.Repeatation = how_often;
+
+			Handler.CurrPictNr 		 = 0;
+			Handler.Direction  		 = 1;
+			Handler.RepeatationCount = 0;
+
+			Handler.WaitCounter      = 1;
+
+			/* DoAnim ist ready to play and our anim is decrunched */
+			strcpy((char*)Handler.RunningAnimID, (char*)AnimID);
+
+			ContinueAnim();	// falls Anim zuvor "suspended" wurde
+		}
+		else
+		{
+			strcpy((char*)Handler.RunningAnimID, "");
+		}
+	}
+}
+
+void StopAnim(void)
+{
+	char pict_list[TXT_KEY_LENGTH] = {0};
+	struct Picture *pict;
+
+	if (Handler.RunningAnimID)   /* es laeuft eine Anim */
+	{
+		if(strcmp((char*)Handler.RunningAnimID,"") != 0)
+		{
+			GetAnim((char*)Handler.RunningAnimID, pict_list);
+
+			/* der Vollstaendigkeit wegen die Bilder "unpreparen" */
+			pict = gfxGetPicture((uword)txtGetKeyAsULONG((uword)PIC_1_ID_POS,(char*)pict_list));
+			/* 2015-01-07 LucyG: Baris reported NULL pointer access in exploding Jaguar scene */
+			if (pict) {
+				gfxUnPrepareColl ((uword)pict->us_CollId);
+			} else {
+				Log("%s|%s: gfxGetPicture(PIC_1_ID_POS, %s) = NULL", __FILE__, __func__, pict_list ? pict_list : "NULL");
+			}
+
+			/* der Vollstaendigkeit wegen die Bilder "unpreparen" */
+			if(txtCountKey((char*)pict_list) > PIC_1_ID_POS) {
+				gfxUnPrepareColl ((uword)txtGetKeyAsULONG((uword)ANIM_COLL_ID_POS,(char*)pict_list));
+			}
+
+			strcpy((char*)Handler.RunningAnimID,"");
+		}
+	}
+}
+
+/*
+* access function
+* GetAnim
+*/
+
+static void GetAnim(char *AnimID,char *Dest)
+{
+	long i;
+	char ID[TXT_KEY_LENGTH] = {0};
+
+	strcpy(ID, (char*)AnimID);
+
+	for(i = 0;i < strlen(ID); i++)
+		if(ID[i] == ',')   ID[i] = '_';
+
+	txtGetNthString(ANIM_TXT, ID, 0, Dest);
+}
+
+/*
+* Animator
+*/
+
+void animator(void)
+{
+	long destX = Handler.destX;
+	long destY = Handler.destY;
+
+	if (!(Handler.AnimatorState & ANIM_STATE_SUSPENDED))
+	{
+		if ((Handler.RunningAnimID) && (strcmp((char*)Handler.RunningAnimID,"") != 0))
+		{
+			if (Handler.RepeatationCount <= Handler.Repeatation)
+			{
+				if ((--Handler.WaitCounter) == 0)
+				{
+					Handler.WaitCounter = Handler.PictureRate + CalcRandomNr(0, 3);
+
+					if(Handler.CurrPictNr == 0)
+					{
+						Handler.RepeatationCount++;
+
+						Handler.Direction = 1;
+					}
+
+					if (Handler.CurrPictNr == (Handler.frameCount - 1))
+					{
+						Handler.RepeatationCount++;
+
+						if (Handler.PlayMode & PM_NORMAL)
+							Handler.CurrPictNr = 0;
+						else
+							Handler.Direction = -1;
+					}
+
+					if(Handler.RepeatationCount <= Handler.Repeatation)
+					{
+						uword sourceX = ((Handler.width+Handler.offset)*Handler.CurrPictNr) % (Handler.totalWidth);
+						uword sourceY = (Handler.CurrPictNr / Handler.pictsPerRow) * (Handler.height+Y_OFFSET);
+
+						/* sicherstellen, da� Animframes immer vorhanden sind */
+
+						gfxCopyCollFromXMS(Handler.AnimCollection, ANIM_FRAME_RP.p_BitMap);
+
+						gfxBlit(&ANIM_FRAME_RP, sourceX, sourceY, l_wrp, destX, destY,
+							Handler.width, Handler.height, GFX_ONE_STEP);
+					}
+
+					Handler.CurrPictNr = Handler.CurrPictNr + Handler.Direction;
+				}
+			}
+		}
+	}
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/anim/sysanim.h b/cosp-0.6-src/ClouRemake/ClouRemake/anim/sysanim.h
new file mode 100644
index 0000000..d10ce59
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/anim/sysanim.h
@@ -0,0 +1,46 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+
+/*
+ * Aufbau der Anim.List Datei (Aufbau einer Zeile)
+ *
+ * 	PictureMode,PictsPerSecc,Pic1,AnimPic,PicAnzahl,Animphase
+ *	Breite, Animphase Hoehe, Animphase offset, PlayMode
+ *	XDest, YDest (als Offset zum 1. Bild)
+ */
+
+#ifndef MODULE_ANIM
+#define MODULE_ANIM
+
+#include "theclou.h"
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_RANDOM
+#include "random\random.h"
+#endif
+
+/* global functions */
+extern void	InitAnimHandler(void);
+extern void	CloseAnimHandler(void);
+
+extern void	PlayAnim(char *AnimID,word how_often,ulong mode);	/* -> docs vom 16.08.92 ! */
+extern void	StopAnim(void);
+
+extern void animator(void);
+
+extern void SuspendAnim(void);
+extern void ContinueAnim(void);
+
+#endif
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/base/base.c b/cosp-0.6-src/ClouRemake/ClouRemake/base/base.c
new file mode 100644
index 0000000..635d2fb
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/base/base.c
@@ -0,0 +1,578 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "SDL.h"
+#include "base\base.h"
+#include "intro\intro.h"
+
+// cheat function
+#include "base\fullenv.c"
+
+Configuration_t Config;
+
+void *StdBuffer0 = 0;
+void *StdBuffer1 = 0;
+
+char prgname[255];
+
+/************************************************/
+char bProfidisk=0; //default = 0
+char bCDRom=0; //default = 0
+/************************************************/
+
+void tcClearStdBuffer(void *p_Buffer)
+{
+	long i;
+	char *p = (char *) p_Buffer;
+	long size = 0;
+
+	if (p == StdBuffer0)
+		size = STD_BUFFER0_SIZE;
+
+	if (p == StdBuffer1)
+		size = STD_BUFFER1_SIZE;
+
+	for (i = 0; i < size; i++)
+		p[i] = 0;
+}
+
+static void tcDone(void)
+{
+	plDone();
+	sndDoneFX(); // Attention!
+	sndDone();
+
+	RemoveAudio();
+
+	dbDone();
+	CloseAnimHandler();
+	txtDone();
+	inpCloseAllInputDevs();
+	gfxDone();
+	rndDone();
+
+	if (bCDRom)
+	{
+		if (CDRomInstalled)
+		{
+			CDROM_StopAudioTrack();
+			CDROM_UnInstall();
+		}
+	}
+
+	if (StdBuffer0)
+		MemFree(StdBuffer0, STD_BUFFER0_SIZE);
+
+	if (StdBuffer1)
+		MemFree(StdBuffer1, STD_BUFFER1_SIZE);
+
+	if (MemGetAllocated()) {
+		Log("WARNING! Memory Leak (%d bytes)", MemGetAllocated());
+
+		Log("Total memory used: %d bytes", MemGetMaxAllocated());
+	}
+
+	pcErrClose();
+}
+
+/* 2014-06-27 templer
+Suggestion for automatic detection of the language of the game
+*/
+static ubyte detectLanguage(void)
+{
+	char languageMark[4] = {'E', 'D', 'F', 'S'};
+    int count = 0;
+
+	for (count = 0; count < sizeof(languageMark) / sizeof(languageMark[0]); count++)
+	{
+	    char fileName[TXT_KEY_LENGTH];
+	    char fileWithPath[TXT_KEY_LENGTH];
+	    FILE *p_File;
+
+	    sprintf(fileName,"tcmaine%c.txt", languageMark[count]);
+	    dskBuildPathName(TEXT_DIRECTORY, fileName, fileWithPath);
+	    if (p_File = fopen(fileWithPath, "r"))
+	    {
+			fclose(p_File);
+	        return (ubyte)count;
+	    }
+	}
+
+	Log("couldn't detect language of the game!");
+	NewErrorMsg(Internal_Error, __FILE__, __func__, 1);
+	return 0;
+}
+
+/* 2014-07-01 templer
+ * detect the game version (STD/PROFI/CD) based on the "please wait loading" text in "THECLOUx.TXT"
+ * must call after txtInit */
+static void detectGameVersionType(void)
+{
+	if (txtKeyExists(THECLOU_TXT, "BITTE_WARTEN_PC_CD_ROM")) // || (txtKeyExists(THECLOU_TXT, "BITTE_WARTEM_PC_CD_ROM"))
+	{
+		bProfidisk = 0;
+		bCDRom = 1; 
+	}
+	else if (txtKeyExists(THECLOU_TXT, "BITTE_WARTEN_PC_CD_ROM_PROFI"))
+	{
+		bProfidisk = 1;
+		bCDRom = 1;
+	}
+	else if (txtKeyExists(THECLOU_TXT, "BITTE_WARTEN_PC_PROFI"))
+	{
+		bProfidisk = 1;
+		bCDRom = 0;
+
+	}
+	else if (txtKeyExists(THECLOU_TXT, "BITTE_WARTEN_PC"))
+	{
+		bProfidisk = 0;
+		bCDRom = 0;
+	}
+
+}
+
+static int tcInit(void)
+{
+	pcErrOpen(ERR_NO_OUTPUT, tcDone, NULL);
+
+	StdBuffer0 = (void *)MemAlloc(STD_BUFFER0_SIZE);
+	StdBuffer1 = (void *)MemAlloc(STD_BUFFER1_SIZE);
+
+
+	if (StdBuffer0 && StdBuffer1)
+	{
+		gfxInit();
+		inpOpenAllInputDevs();
+
+		txtInit(detectLanguage());	/* 2014-06-27 templer */
+
+		detectGameVersionType(); /* 2014-07-01 templer */
+
+		if (bCDRom) /* 2014-07-01 templer */
+		{
+			char flag=0;
+			while (!flag)
+			{
+				if (CDROM_Install() != 0) 
+				{
+					flag=1;
+				}
+				else
+				{
+					Log("%s|%s: could not find or read CD/DVD", __FILE__, __func__);
+					/* BAD: Windows specific code..., sorry templer
+					mID = MessageBox(NULL,(LPCWSTR)"could not find or read CD/DVD \n press 'Cancel' to continue without CD",(LPCWSTR)"CD/DVD Error!", MB_ICONWARNING | MB_RETRYCANCEL | MB_DEFBUTTON2);
+					if (mID == IDRETRY)
+					{
+						CDROM_SetGameCDDrive();
+					}
+					else 
+					*/
+					{
+						flag = 1;
+					}
+				}
+			}
+		}
+
+		InitAnimHandler();
+
+		dbInit();
+
+		InitAudio();
+
+		sndInit();
+
+		if (!(GamePlayMode & GP_NO_SAMPLES))
+			sndInitFX();
+
+		plInit();
+
+		gfxCopyCollToXMS(128, &StdRP0InXMS);    // Men�� nach StdRP0InXMS
+		gfxCopyCollToXMS(129, &StdRP1InXMS);    // Bubbles etc nach StdRP1InXMS
+
+		CurrentBackground = BGD_LONDON;
+
+		return(1);
+	}
+	return(0);
+}
+
+static void InitData(void)
+{
+	char MainData[TXT_KEY_LENGTH] = {0};
+	char BuildData[TXT_KEY_LENGTH] = {0};
+	char MainRel[TXT_KEY_LENGTH] = {0};
+	char BuildRel[TXT_KEY_LENGTH] = {0};
+	char RootPath[TXT_KEY_LENGTH] = {0};
+	ubyte result = 0;
+
+
+	dskBuildPathName(DATA_DIRECTORY, MAIN_DATA_NAME GAME_DATA_EXT, MainData);
+    dskBuildPathName(DATA_DIRECTORY, BUILD_DATA_NAME GAME_DATA_EXT, BuildData);
+
+    dskBuildPathName(DATA_DIRECTORY, MAIN_DATA_NAME GAME_REL_EXT, MainRel);
+    dskBuildPathName(DATA_DIRECTORY, BUILD_DATA_NAME GAME_REL_EXT, BuildRel);
+
+	txtReset(OBJECTS_TXT);
+
+	if (dbLoadAllObjects((char*)MainData, 0))
+	{
+		if (dbLoadAllObjects((char*)BuildData, 0))
+		{
+			if (LoadRelations((char*)MainRel, 0))
+			{
+				if (LoadRelations((char*)BuildRel, 0))
+				{
+					InitTaxiLocations();
+					result = 1;
+				}
+			}
+		}
+	}
+
+	if (!result)
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, 1);
+}
+
+static void CloseData(void)
+{
+	RemRelations(0L, 0L);
+	dbDeleteAllObjects(0L, 0L);
+}
+
+void tcSetPermanentColors(void)
+{
+	ubyte colortable[256][3];
+
+	memset(&colortable[0][0], 0, 256*3);
+
+	// RGB8
+
+	colortable[248][0] = 116;
+	colortable[248][1] = 224;
+	colortable[248][2] = 142;
+
+	colortable[249][0] = 224;
+	colortable[249][1] = 224;
+	colortable[249][2] = 224;
+
+	colortable[250][0] = 55;
+	colortable[250][1] = 12;
+	colortable[250][2] = 32;
+
+	colortable[251][0] = 128;
+	colortable[251][1] = 29;
+	colortable[251][2] = 75;
+
+	colortable[252][0] = 170;
+	colortable[252][1] = 170;
+	colortable[252][2] = 170;
+
+	colortable[253][0] = 104;
+	colortable[253][1] = 104;
+	colortable[253][2] = 104;
+
+	colortable[254][0] = 0;
+	colortable[254][1] = 0;
+	colortable[254][2] = 0;
+
+	gfxSetColorRange(248, 254);
+
+	gfxChangeColors(NULL, 0, GFX_BLEND_UP, &colortable[0][0]);
+}
+
+static ubyte StartupMenu(void)
+{
+	LIST *menu = txtGoKey(MENU_TXT, "STARTUP_MENU");
+	ulong activ;
+	char line[TXT_KEY_LENGTH] = COSP_TITLE " v" COSP_VERSION;
+	ubyte ret = 0;
+
+	ShowMenuBackground();
+
+	//2014-07-01 templer
+	if (!bProfidisk)
+	{
+		if (!bCDRom)
+		{
+			//txtGetFirstLine(THECLOU_TXT, "BITTE_WARTEN_PC", line);
+			strcat(line, " (Standard)");
+		}
+		else
+		{
+			//txtGetFirstLine(THECLOU_TXT, "BITTE_WARTEN_PC_CD_ROM", line);
+			strcat(line, " (Std. CD-ROM)");
+		}
+	}
+	else
+	{
+		if (!bCDRom)
+		{
+			//txtGetFirstLine(THECLOU_TXT, "BITTE_WARTEN_PC_PROFI", line);
+			strcat(line, " (Profidisk)");
+		}
+		else
+		{
+			//txtGetFirstLine(THECLOU_TXT, "BITTE_WARTEN_PC_CD_ROM_PROFI", line);
+			strcat(line, " (Prof. CD-ROM)");
+		}
+	}
+
+	PrintStatus(line);
+
+	inpTurnFunctionKey(0);
+	inpTurnESC(0);
+
+	activ = Menu(menu, 7L, 0, NULL, 0L);
+
+	inpTurnESC(1);
+	inpTurnFunctionKey(1);
+
+	switch (activ)
+	{
+		case 0:			// New Game
+			InitData();
+			ret = 1;
+		break;
+
+		case 1:			// Load Game
+			txtReset(OBJECTS_TXT);
+			if (tcLoadTheClou())
+			{
+				film->StartScene = SceneArgs.ReturnValue;
+				ret = 1;
+			}
+		break;
+
+		case 2:			// Quit Game
+			ret = 2;
+		break;
+	}
+
+	RemoveList (menu);
+	return(ret);
+}
+
+static void tcDo(void)
+{
+	ulong sceneId = SCENE_NEW_GAME;
+
+	gfxChangeColors(l_wrp, 0, GFX_FADE_OUT, 0);
+	gfxChangeColors(m_wrp, 0, GFX_FADE_OUT, 0);
+
+	tcSetPermanentColors();
+
+	// to fade in the menu colors once:
+	gfxShow(CurrentBackground, GFX_ONE_STEP|GFX_NO_REFRESH|GFX_BLEND_UP, 0, -1, -1);
+
+	// set mouse cursor to white - on spec set color 15 and 16 to white
+	gfxSetRGB(NULL, 15, 255, 255, 255);
+	gfxSetRGB(NULL, 16, 255, 255, 255);
+
+	SetBubbleType(SPEAK_BUBBLE);
+
+	ShowMenuBackground();
+
+	while (sceneId == SCENE_NEW_GAME)
+	{
+		ubyte ret = 0;
+
+		if (!(GamePlayMode & GP_DEMO))
+			InitStory(STORY_DAT);
+		else
+		    InitStory(STORY_DAT_DEMO);
+
+		while (!ret)
+			ret = StartupMenu();
+
+		if (ret != 2)
+		{
+			if (GamePlayMode & GP_FULL_ENV)
+				SetFullEnvironment();
+
+			sceneId = PlayStory();
+		}
+		else
+		    sceneId = SCENE_THE_END;
+
+		CloseData();
+		CloseStory();
+	}
+}
+
+// remove tabs and spaces
+static char *trimstr(char *str)
+{
+	char *p;
+
+	str += strspn(str, " \t");
+	while (p = strrchr(str, ' ')) {
+		*p = '\0';
+	}
+	while (p = strrchr(str, '\t')) {
+		*p = '\0';
+	}
+	return(str);
+}
+
+static void loadConfig(const char *rootPath)
+{
+	char config_file[256], line[256], *pParam, *pValue, *p;
+	FILE *file;
+
+	// set defaults
+	Config.gfxScreenWidth = 320;
+	Config.gfxScreenHeight = 200;
+	Config.gfxFullScreen = 0;
+	Config.gfxNoFontShadow = 0;
+	Config.NoIntro = 0;
+	Config.MusicVolume = SND_MAX_VOLUME;
+	Config.SfxVolume = SND_MAX_VOLUME;
+	Config.UseJoystick = 0;
+
+	sprintf(config_file, "%s\\%s", rootPath, "cosp.cfg");
+	file = dskOpen(config_file, "rb", 0);
+	if (!file) {
+		Log("Failed to open cosp.cfg");
+		return;
+	}
+
+	while (dskGets(line, sizeof(line)-1, file)) {
+		line[sizeof(line)-1] = '\0';	// just to be safe
+
+		if (p = strchr(line, ';')) {
+			*p = '\0';
+		}
+		if (p = strchr(line, '#')) {
+			*p = '\0';
+		}
+
+		if (pValue = strchr(line, '=')) {
+			*pValue++ = '\0';
+			pValue = trimstr(pValue);
+			if (*pValue == '\0') {	// no value after =
+				continue;
+			}
+			pParam = trimstr(line);
+
+			if (!stricmp(pParam, "screenwidth")) {
+				Config.gfxScreenWidth = atoi(pValue);
+			} else if (!stricmp(pParam, "screenheight")) {
+				Config.gfxScreenHeight = atoi(pValue);
+			} else if (!stricmp(pParam, "fullscreen")) {
+				Config.gfxFullScreen = atoi(pValue) ? 1 : 0;
+			} else if (!stricmp(pParam, "scale2x")) {
+				Config.gfxScaleNx = atoi(pValue) ? 1 : 0;
+			} else if (!stricmp(pParam, "soundvolume")) {
+				Config.SfxVolume = atoi(pValue);
+			} else if (!stricmp(pParam, "musicvolume")) {
+				Config.MusicVolume = atoi(pValue);
+			} else if (!stricmp(pParam, "nofontshadow")) {
+				Config.gfxNoFontShadow = atoi(pValue) ? 1 : 0;
+			} else if (!stricmp(pParam, "nointro")) {
+				Config.NoIntro = atoi(pValue) ? 1 : 0;
+			} else if (!stricmp(pParam, "usejoystick")) {
+				Config.UseJoystick = atoi(pValue);
+			} else if (!stricmp(pParam, "demo") && (atoi(pValue) == 42)) {
+				GamePlayMode |= GP_DEMO|GP_STORY_OFF;
+			} else if (!stricmp(pParam, "storyoff") && (atoi(pValue) == 42)) {
+				GamePlayMode |= GP_STORY_OFF;
+			} else if (!stricmp(pParam, "fullenv") && (atoi(pValue) == 42)) {
+				GamePlayMode |= GP_FULL_ENV;
+			} else if (!stricmp(pParam, "leveldesign") && (atoi(pValue) == 42)) {
+				GamePlayMode |= GP_LEVEL_DESIGN;
+			} else if (!stricmp(pParam, "guarddesign") && (atoi(pValue) == 42)) {
+				GamePlayMode |= GP_GUARD_DESIGN;
+			} else if (!stricmp(pParam, "nosamples") && (atoi(pValue) == 42)) {
+				GamePlayMode |= GP_NO_SAMPLES;
+			} else if (!stricmp(pParam, "nocollision") && (atoi(pValue) == 42)) {
+				GamePlayMode |= GP_COLLISION_CHECKING_OFF;
+			} else if (!stricmp(pParam, "showrooms") && (atoi(pValue) == 42)) {
+				GamePlayMode |= GP_SHOW_ROOMS;
+			} else if (!stricmp(pParam, "moremoney") && (atoi(pValue) == 42)) {
+				GamePlayMode |= GP_MORE_MONEY;
+			}
+		}
+	}
+
+	dskClose(file);
+}
+
+int SDL_main(int argc, char **argv)
+{
+	char result[256], res;
+	long i;
+
+#ifdef THECLOU_DEBUG_ALLOC
+	MemInit();
+#endif
+
+	remove(LOG_FILENAME);
+
+	if (SDL_InitSubSystem(SDL_INIT_TIMER)) return(0);	// 2015-01-10 LucyG : SDL_Init is already called earlier
+
+	strcpy(prgname, argv[0]);
+
+	rndInit();
+
+	strcpy(result, argv[0]);
+
+	for (i = strlen(result) - 1; i > 0; i--)
+	{
+		if (result[i] == '\\')
+		{
+			result[i] = '\0';
+			break;
+		}
+	}
+
+	// und den Pfad f��r BuildPathName setzen!
+	dskSetRootPath(result);
+
+	loadConfig(result);
+
+	if (Config.gfxScreenWidth < 320) {
+		Config.gfxScreenWidth = 320;
+	}
+	if (Config.gfxScreenHeight < 200) {
+		Config.gfxScreenHeight = 200;
+	}
+	if (Config.MusicVolume < 0) {
+		Config.MusicVolume = 0;
+	} else if (Config.MusicVolume > SND_MAX_VOLUME) {
+		Config.MusicVolume = SND_MAX_VOLUME;
+	}
+	if (Config.SfxVolume < 0) {
+		Config.SfxVolume = 0;
+	} else if (Config.SfxVolume > SND_MAX_VOLUME) {
+		Config.SfxVolume = SND_MAX_VOLUME;
+	}
+
+	if (res = tcInit()) {
+		if (!Config.NoIntro) {
+			tcIntro();	// 2014-06-29 LucyG
+		} else {
+			sndPlaySound("title.bk", 0);
+		}
+		tcDo();
+	}
+
+	tcDone();
+
+	SDL_Quit();
+
+	if (!res)
+	{
+		Log("Error: %s|%s|tcInit", __FILE__, __func__);
+	}
+
+#ifdef THECLOU_DEBUG_ALLOC
+	MemQuit();
+#endif
+	return(0);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/base/base.h b/cosp-0.6-src/ClouRemake/ClouRemake/base/base.h
new file mode 100644
index 0000000..10c74d5
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/base/base.h
@@ -0,0 +1,106 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_BASE
+#define MODULE_BASE
+
+#ifndef __STDIO_H
+#include <stdio.h>
+#endif
+
+#ifndef __STDARG_H
+#include <stdarg.h>
+#endif
+
+#ifndef __STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifndef __FCNTL_H
+#include <fcntl.h>
+#endif
+
+#include "theclou.h"
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_INPHDL
+#include "inphdl\inphdl.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_ANIM
+#include "anim\sysanim.h"
+#endif
+
+#ifndef MODULE_INTERAC
+#include "present\interac.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_GAMEPLAY
+#include "gameplay\gp.h"
+#endif
+
+#ifndef MODULE_SOUND
+#include "sound\newsound.h"
+#endif
+
+#ifndef MODULE_FX
+#include "sound\fx.h"
+#endif
+
+#ifndef MODULE_CDROM
+#include "cdrom\cdrom.h"
+#endif
+
+/*
+ * Verwendungszweck:
+ * StdBuffer0: geladenes Bild
+ *
+ * StdBuffer1: entpacktes Bild
+ */
+
+#define STD_BUFFER0_SIZE  ((long)320 * 140)
+#define STD_BUFFER1_SIZE  ((long)61 * 1024)      /* weniger geht nicht! (Bild + CMAP)*/
+
+extern char prgname[255];
+
+extern void *StdBuffer0, *StdBuffer1;
+
+extern void tcClearStdBuffer(void *p_Buffer);
+extern void tcSetPermanentColors(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/base/fullenv.c b/cosp-0.6-src/ClouRemake/ClouRemake/base/fullenv.c
new file mode 100644
index 0000000..22f06b4
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/base/fullenv.c
@@ -0,0 +1,214 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+
+/*
+ * SetFullEnvironment (Cheats!)
+ */
+
+static void SetFullAbilities(void)
+{
+	hasSetP(Person_Matt_Stuvysunt,  Ability_Elektronik, 251);
+	hasSetP(Person_Matt_Stuvysunt,  Ability_Schloesser, 210);
+	hasSetP(Person_Matt_Stuvysunt,  Ability_Aufpassen,  180);
+	hasSetP(Person_Matt_Stuvysunt,  Ability_Safes, 180);	// 2015-01-04 LucyG: was Ability_Schloesser
+
+	hasSetP(Person_Marc_Smith,      Ability_Autos,      255);
+	hasSetP(Person_Mohammed_Abdula, Ability_Kampf,      255);
+}
+
+static void SetFullCars(void)
+{
+	hasSet(Person_Matt_Stuvysunt, Car_Triumph_Roadstar_1947);
+	hasSet(Person_Matt_Stuvysunt, Car_Triumph_Roadstar_1949);
+	hasSet(Person_Matt_Stuvysunt, Car_Cadillac_Club_1952);
+	hasSet(Person_Matt_Stuvysunt, Car_Opel_Olympia_1953);
+	hasSet(Person_Matt_Stuvysunt, Car_Standard_Vanguard_1950);
+	hasSet(Person_Matt_Stuvysunt, Car_Standard_Vanguard_1951);
+	hasSet(Person_Matt_Stuvysunt, Car_Standard_Vanguard_1953);
+	hasSet(Person_Matt_Stuvysunt, Car_Jaguar_XK_1950);
+	hasSet(Person_Matt_Stuvysunt, Car_Pontiac_Streamliner_1944);
+	hasSet(Person_Matt_Stuvysunt, Car_Pontiac_Streamliner_1946);
+	hasSet(Person_Matt_Stuvysunt, Car_Pontiac_Streamliner_1949);
+	hasSet(Person_Matt_Stuvysunt, Car_Fiat_Topolino_1936);
+	hasSet(Person_Matt_Stuvysunt, Car_Fiat_Topolino_1940);
+	hasSet(Person_Matt_Stuvysunt, Car_Fiat_Topolino_1942);
+	hasSet(Person_Matt_Stuvysunt, Car_Morris_Minor_1948);
+	hasSet(Person_Matt_Stuvysunt, Car_Morris_Minor_1950);
+	hasSet(Person_Matt_Stuvysunt, Car_Morris_Minor_1953);
+	if (bProfidisk)
+	{
+		hasSet(Person_Matt_Stuvysunt, Car_Rover_75_1949);
+		hasSet(Person_Matt_Stuvysunt, Car_Rover_75_1950);
+		hasSet(Person_Matt_Stuvysunt, Car_Rover_75_1952);
+		hasSet(Person_Matt_Stuvysunt, Car_Ford_Model_T__1926);
+		hasSet(Person_Matt_Stuvysunt, Car_Bentley_Continental_Typ_R_1952);
+		hasSet(Person_Matt_Stuvysunt, Car_Bentley_Continental_Typ_R_1953);
+		hasSet(Person_Matt_Stuvysunt, Car_Fiat_634_N_1936);
+		hasSet(Person_Matt_Stuvysunt, Car_Fiat_634_N_1943);
+	}
+}
+
+static void SetFullTools(void)
+{
+	hasSet(Person_Matt_Stuvysunt, Tool_Dietrich);
+	hasSet(Person_Matt_Stuvysunt, Tool_Hammer);
+	hasSet(Person_Matt_Stuvysunt, Tool_Axt);
+	hasSet(Person_Matt_Stuvysunt, Tool_Kernbohrer);
+	hasSet(Person_Matt_Stuvysunt, Tool_Handschuhe);
+	hasSet(Person_Matt_Stuvysunt, Tool_Schuhe);
+	hasSet(Person_Matt_Stuvysunt, Tool_Maske);
+	hasSet(Person_Matt_Stuvysunt, Tool_Chloroform);
+	hasSet(Person_Matt_Stuvysunt, Tool_Brecheisen);
+	hasSet(Person_Matt_Stuvysunt, Tool_Winkelschleifer);
+	hasSet(Person_Matt_Stuvysunt, Tool_Bohrmaschine);
+	hasSet(Person_Matt_Stuvysunt, Tool_Bohrwinde);
+	hasSet(Person_Matt_Stuvysunt, Tool_Schloszstecher);
+	hasSet(Person_Matt_Stuvysunt, Tool_Schneidbrenner);
+	hasSet(Person_Matt_Stuvysunt, Tool_Sauerstofflanze);
+	hasSet(Person_Matt_Stuvysunt, Tool_Stethoskop);
+	hasSet(Person_Matt_Stuvysunt, Tool_Batterie);
+	hasSet(Person_Matt_Stuvysunt, Tool_Stromgenerator);
+	hasSet(Person_Matt_Stuvysunt, Tool_Elektroset);
+	hasSet(Person_Matt_Stuvysunt, Tool_Schutzanzug);
+	hasSet(Person_Matt_Stuvysunt, Tool_Dynamit);
+	hasSet(Person_Matt_Stuvysunt, Tool_Elektrohammer);
+	hasSet(Person_Matt_Stuvysunt, Tool_Glasschneider);
+	hasSet(Person_Matt_Stuvysunt, Tool_Strickleiter);
+	hasSet(Person_Matt_Stuvysunt, Tool_Funkgeraet);
+}
+
+static void SetFullJobOffers(void)
+{
+	joinSet(Person_Matt_Stuvysunt, Person_Paul_O_Conner);
+	joinSet(Person_Matt_Stuvysunt, Person_Marc_Smith);
+	joinSet(Person_Matt_Stuvysunt, Person_Frank_Meier);
+	joinSet(Person_Matt_Stuvysunt, Person_Herbert_Briggs);
+	joinSet(Person_Matt_Stuvysunt, Person_Tony_Allen);
+	joinSet(Person_Matt_Stuvysunt, Person_Margret_Allen);
+	joinSet(Person_Matt_Stuvysunt, Person_Mathew_Black);
+	joinSet(Person_Matt_Stuvysunt, Person_Miguel_Garcia);
+	joinSet(Person_Matt_Stuvysunt, Person_Mike_Seeger);
+	joinSet(Person_Matt_Stuvysunt, Person_Albert_Liet);
+	joinSet(Person_Matt_Stuvysunt, Person_Mohammed_Abdula);
+	joinSet(Person_Matt_Stuvysunt, Person_Serge_Fontane);
+	joinSet(Person_Matt_Stuvysunt, Person_Frank_Maloya);
+	joinSet(Person_Matt_Stuvysunt, Person_Neil_Grey);
+	joinSet(Person_Matt_Stuvysunt, Person_Mark_Hart);
+	joinSet(Person_Matt_Stuvysunt, Person_Jim_Danner);
+	joinSet(Person_Matt_Stuvysunt, Person_Robert_Bull);
+	joinSet(Person_Matt_Stuvysunt, Person_Thomas_Groul);
+	joinSet(Person_Matt_Stuvysunt, Person_Helen_Parker);
+	joinSet(Person_Matt_Stuvysunt, Person_Dan_Stanford);
+	joinSet(Person_Matt_Stuvysunt, Person_Mary_Bolton);
+	joinSet(Person_Matt_Stuvysunt, Person_Eric_Pooly);
+	joinSet(Person_Matt_Stuvysunt, Person_Prof_Emil_Schmitt);
+	joinSet(Person_Matt_Stuvysunt, Person_Elisabeth_Schmitt);
+	joinSet(Person_Matt_Stuvysunt, Person_Margrete_Briggs);
+	joinSet(Person_Matt_Stuvysunt, Person_Peter_Brook);
+	joinSet(Person_Matt_Stuvysunt, Person_Samuel_Rosenblatt);
+	joinSet(Person_Matt_Stuvysunt, Person_Lucas_Grull);
+	joinSet(Person_Matt_Stuvysunt, Person_Ken_Addison);
+	joinSet(Person_Matt_Stuvysunt, Person_Jiri_Poulin);
+	joinSet(Person_Matt_Stuvysunt, Person_Garry_Stevenson);
+	joinSet(Person_Matt_Stuvysunt, Person_Al_Mel);
+	joinSet(Person_Matt_Stuvysunt, Person_Jack_Motart);
+	joinSet(Person_Matt_Stuvysunt, Person_Kevin_Smith);
+	joinSet(Person_Matt_Stuvysunt, Person_Mike_Kahn);
+	joinSet(Person_Matt_Stuvysunt, Person_Frank_De_Silva);
+	joinSet(Person_Matt_Stuvysunt, Person_Justin_White);
+	joinSet(Person_Matt_Stuvysunt, Person_John_O_Keef);
+	joinSet(Person_Matt_Stuvysunt, Person_Luthmilla_Nervesaw);
+	joinSet(Person_Matt_Stuvysunt, Person_Thomas_Smith);
+	joinSet(Person_Matt_Stuvysunt, Person_Ben_Riggley);
+	joinSet(Person_Matt_Stuvysunt, Person_Richard_Doil);
+	joinSet(Person_Matt_Stuvysunt, Person_Pater_James);
+	if (bProfidisk)
+	{
+		joinSet(Person_Matt_Stuvysunt, Person_Tom_Cooler);
+		joinSet(Person_Matt_Stuvysunt, Person_Sid_Palmer);
+		joinSet(Person_Matt_Stuvysunt, Person_Dean_Esters);
+		joinSet(Person_Matt_Stuvysunt, Person_Prof_Marcus_Green);
+		joinSet(Person_Matt_Stuvysunt, Person_Melanie_Morgan);
+		joinSet(Person_Matt_Stuvysunt, Person_Rosi_Lambert);
+		joinSet(Person_Matt_Stuvysunt, Person_Rod_Masterson);
+		joinSet(Person_Matt_Stuvysunt, Person_Tina_Olavson);
+		joinSet(Person_Matt_Stuvysunt, Person_Phil_Ciggy);
+		joinSet(Person_Matt_Stuvysunt, Person_Pere_Ubu);
+	}
+}
+
+static void SetFullInvestigations(void)
+{
+	hasSet(Person_Matt_Stuvysunt, Building_Kiosk);
+	((Building)dbGetObject (Building_Kiosk))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Tante_Emma_Laden);
+	((Building)dbGetObject (Building_Tante_Emma_Laden))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Juwelier);
+	((Building)dbGetObject (Building_Juwelier))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Old_Curiosity_Shop);
+	((Building)dbGetObject (Building_Old_Curiosity_Shop))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Pink_Villa);
+	((Building)dbGetObject (Building_Pink_Villa))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Seniorenheim);
+	((Building)dbGetObject (Building_Seniorenheim))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Grab_von_Karl_Marx);
+	((Building)dbGetObject (Building_Grab_von_Karl_Marx))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Villa);
+	((Building)dbGetObject (Building_Villa))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Kenwood_House);
+	((Building)dbGetObject (Building_Kenwood_House))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Ham_House);
+	((Building)dbGetObject (Building_Ham_House))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Osterly_Park_House);
+	((Building)dbGetObject (Building_Osterly_Park_House))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Chiswick_House);
+	((Building)dbGetObject (Building_Chiswick_House))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Suterbys);
+	((Building)dbGetObject (Building_Suterbys))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_British_Museum);
+	((Building)dbGetObject (Building_British_Museum))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Natural_Museum);
+	((Building)dbGetObject (Building_Natural_Museum))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_National_Galery);
+	((Building)dbGetObject (Building_National_Galery))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Victoria_und_Albert_Museum);
+	((Building)dbGetObject (Building_Victoria_und_Albert_Museum))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Bank_of_England);
+	((Building)dbGetObject (Building_Bank_of_England))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Tower_of_London);
+	((Building)dbGetObject (Building_Tower_of_London))->Exactlyness = 255;
+	hasSet(Person_Matt_Stuvysunt, Building_Starford_Kaserne);
+	((Building)dbGetObject (Building_Starford_Kaserne))->Exactlyness = 255;
+	if (bProfidisk)
+	{
+		hasSet(Person_Matt_Stuvysunt, Building_Baker_Street);
+		((Building)dbGetObject (Building_Baker_Street))->Exactlyness = 255;
+		hasSet(Person_Matt_Stuvysunt, Building_Madame_Tussaud);
+		((Building)dbGetObject (Building_Madame_Tussaud))->Exactlyness = 255;
+		hasSet(Person_Matt_Stuvysunt, Building_Westminster_Abbey);
+		((Building)dbGetObject (Building_Westminster_Abbey))->Exactlyness = 255;
+		hasSet(Person_Matt_Stuvysunt, Building_Downing_Street_10);
+		((Building)dbGetObject (Building_Downing_Street_10))->Exactlyness = 255;
+		hasSet(Person_Matt_Stuvysunt, Building_Postzug);
+		((Building)dbGetObject (Building_Postzug))->Exactlyness = 255;
+		hasSet(Person_Matt_Stuvysunt, Building_Tate_Gallery);
+		((Building)dbGetObject (Building_Tate_Gallery))->Exactlyness = 255;
+		hasSet(Person_Matt_Stuvysunt, Building_Buckingham_Palace);
+		((Building)dbGetObject (Building_Buckingham_Palace))->Exactlyness = 255;
+		hasSet(Person_Matt_Stuvysunt, Building_Bulstrode_Chemestry_Ltd);
+		((Building)dbGetObject (Building_Bulstrode_Chemestry_Ltd))->Exactlyness = 255;
+	}
+}
+
+static void SetFullEnvironment(void)
+{
+	SetFullAbilities();
+	SetFullCars();
+	SetFullTools();
+	SetFullJobOffers();
+	SetFullInvestigations();
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/cdrom/cdrom.c b/cosp-0.6-src/ClouRemake/ClouRemake/cdrom/cdrom.c
new file mode 100644
index 0000000..c99ed24
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/cdrom/cdrom.c
@@ -0,0 +1,260 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+
+/*CDRom handling , 2014-07-01 by templer */
+
+#include "SDL.h"
+
+#include "cdrom\cdrom.h"
+
+SDL_CD *CDROM_Struct = NULL;
+
+unsigned int	CDROM_DriveNr;
+unsigned int    CDRomInstalled = 0;
+char CDDrive[256]="X:\\";
+
+//*********************************************************
+//*** CDROM_Install										***
+//*********************************************************
+// return code:	 0 there was no "The Clou!" CDRom found in drive
+//				-1 no CD drive found / could not init CD drive
+//               1 CD drive installed and "The Clou!" CDRom found
+//
+// CDRomInstalled is only set if CD drive and "The Clou!" CDRom was found
+
+int CDROM_Install(void)
+{
+	CDRomInstalled = 0;
+
+	if (SDL_InitSubSystem (SDL_INIT_CDROM) == 0)	// 2015-01-10 LucyG : changed from SDL_Init to SDL_InitSubSystem
+	{
+		if (SDL_CDNumDrives() > 0)
+		{
+			if (CDROM_SetGameCDDrive() == -1)
+			{
+				return 0;
+			}
+			else
+			{
+				CDROM_Struct = SDL_CDOpen(CDROM_DriveNr);
+				if (CDROM_Struct)
+				{
+					if (SDL_CDStatus(CDROM_Struct) != CD_ERROR) {	// 2014-07-12 LucyG : use SDL_CDStatus instead of CDROM_Struct->status
+						CDRomInstalled = 1;
+						return 1;
+					}
+					SDL_CDClose(CDROM_Struct);	// 2014-07-13 LucyG : cleanup on error
+					CDROM_Struct = NULL;
+				}
+			}
+		}
+		return -1;
+	}
+	return -1;
+}
+
+
+//**********************************************************
+//*** CDROM_UnInstall									***
+//**********************************************************
+
+void CDROM_UnInstall(void)
+{
+	if (CDROM_Struct && CDRomInstalled)
+	{
+		SDL_CDClose(CDROM_Struct);
+		CDRomInstalled = 0;
+	}
+}
+
+
+
+//**********************************************************
+//*** CDROM_GetDeviceStatus								***
+//**********************************************************
+/* Get the current CD-Rom status and update the SDL_CD Structure */
+int	CDROM_GetDeviceStatus(void)
+{
+	if (CDROM_Struct)
+		return SDL_CDStatus(CDROM_Struct);
+	
+	return -1;
+}
+
+
+
+
+//**********************************************************
+//*** CDROM_CheckMediaChanged							***
+//**********************************************************
+
+int	CDROM_CheckMediaChanged(void)
+{
+	if (CDROM_GetDeviceStatus() != CD_TRAYEMPTY)
+	{
+		return 0;
+	}
+	else
+	{
+		return 1;
+	}
+}
+
+
+//**********************************************************
+//*** CDROM_WaitForMedia								***
+//**********************************************************
+// returns	-1 if user wants to continue without CD
+//			0 if the CD/DVD was found
+//          
+int	CDROM_WaitForMedia(void)
+{
+	int count = 0;
+
+	// BAD: Windows specific code... sorry templer
+	/*
+	wchar_t message[256];
+	swprintf(message,255,(LPCWSTR)"could not find or read CD/DVD in drive: %s\n press 'Cancel' to continue without CD",CDDrive);
+	*/
+
+		while (CDROM_CheckMediaChanged() != 0)
+		{
+			count += 1;
+			SDL_Delay(10);
+			if (count == 10000)
+			{
+				Log("%s|%s: CD/DVD Error", __FILE__, __func__);
+				/*
+				mID = MessageBox(NULL,message,(LPCWSTR)"CD/DVD Error!", MB_ICONWARNING | MB_RETRYCANCEL | MB_DEFBUTTON2);
+				if (mID == IDRETRY)
+				{
+					count = 0;
+				}
+				else
+				*/
+				{
+					return -1;
+				}
+				
+			}
+		}
+		return 0;
+}
+
+
+//**********************************************************
+//*** CDROM_PlayAudioTrack				***
+//**********************************************************
+
+void CDROM_PlayAudioTrack(unsigned char TrackNum)
+{
+	if (CDRomInstalled && (CDROM_CheckMediaChanged() == 0))	// 2014-07-13 LucyG : check CDRomInstalled
+	{
+		if (TrackNum > 0 && CDROM_Struct->numtracks >= TrackNum)
+		{
+			SDL_CDPlayTracks(CDROM_Struct, TrackNum - 1, 0, 1, 0);
+			CDROM_GetDeviceStatus(); //Update CDROM_Struct
+		}
+		else
+		{
+			Log("Error: %s|%s|Track number <%d> not found!", __FILE__, __func__,TrackNum);
+		}
+
+	}
+	
+}
+
+
+/*
+
+
+
+//**********************************************************
+//*** CDROM_PlayAudioFrames				***
+//**********************************************************
+
+void CDROM_PlayAudioFrames(unsigned long StartFrame, unsigned long NumOfFrames)
+{
+	if (CDRomInstalled && (CDROM_CheckMediaChanged() == 0))	// 2014-07-13 LucyG : check CDRomInstalled
+	{
+			SDL_CDPlay(CDROM_Struct, StartFrame, NumOfFrames);
+			CDROM_GetDeviceStatus(); //Update CDROM_Struct
+	}
+
+}
+*/
+
+
+
+
+//**********************************************************
+//*** CDROM_PlayAudioSequence				***
+//**********************************************************
+
+void CDROM_PlayAudioSequence(unsigned char TrackNum,unsigned long StartOffset,unsigned long EndOffset)
+{
+	Log("%s|%s: TrackNum=%d, StartOffset=%d, EndOffset=%d", __FILE__, __func__, TrackNum, StartOffset, EndOffset);
+
+	if (CDRomInstalled && (CDROM_CheckMediaChanged() == 0))	// 2014-07-13 LucyG : check CDRomInstalled
+	{
+		if (TrackNum > 0 && CDROM_Struct->numtracks >= TrackNum)
+		{
+			SDL_CDPlayTracks(CDROM_Struct, TrackNum - 1, StartOffset, 0, EndOffset - StartOffset);
+			CDROM_GetDeviceStatus(); //Update CDROM_Struct
+		}
+	}
+	
+}
+
+
+//**********************************************************
+//*** CDROM_StopAudioTrack				***
+//**********************************************************
+
+void CDROM_StopAudioTrack(void)
+{
+	if (CDROM_Struct && CDROM_Struct->status != CD_STOPPED)
+	{
+		SDL_CDStop(CDROM_Struct);
+		CDROM_GetDeviceStatus(); //Update CDROM_Struct
+	}
+}
+
+/* Get the drive number which contains "The Clou!" CD
+  * returns -1 if no CD found */
+
+int CDROM_SetGameCDDrive(void)
+{
+	int num = SDL_CDNumDrives();
+	int i;
+	SDL_CD *cdrom;
+
+	CDROM_DriveNr=-1;
+
+	if (num > 0)
+	{
+		for (i=0; i < num; i++)
+		{
+			cdrom = SDL_CDOpen(i);
+			//if (cdrom->status > 0)
+			if (CD_INDRIVE(SDL_CDStatus(cdrom)))	// 2014-07-12 LucyG : now it works :)
+			{
+				if ((cdrom->numtracks == 24) && \
+					(cdrom->track[0].type == SDL_DATA_TRACK) && \
+					((cdrom->track[1].length > 146000) &&	// templer : 146374  LucyG : 146222
+					 (cdrom->track[1].length < 147000))) {
+						strcpy(CDDrive,SDL_CDName(i));
+						CDROM_DriveNr = i;
+						SDL_CDClose(cdrom);		// 2014-07-12 LucyG : close, otherwise re-opening fails
+						return i;
+				}
+			}
+			SDL_CDClose(cdrom);
+		}
+	}
+	return -1;
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/cdrom/cdrom.h b/cosp-0.6-src/ClouRemake/ClouRemake/cdrom/cdrom.h
new file mode 100644
index 0000000..91e7952
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/cdrom/cdrom.h
@@ -0,0 +1,27 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_CDROM
+#define MODULE_CDROM
+
+#include "theclou.h"
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+extern unsigned int  CDRomInstalled;
+
+extern int CDROM_Install(void);
+extern void CDROM_UnInstall(void);
+extern int CDROM_WaitForMedia(void);
+extern void CDROM_PlayAudioTrack(unsigned char TrackNum);
+//extern void CDROM_PlayAudioFrames(unsigned long StartFrame, unsigned long NumOfFrames);
+extern void CDROM_PlayAudioSequence(unsigned char TrackNum,unsigned long StartOffset,unsigned long EndOffset);
+extern void CDROM_StopAudioTrack(void);
+extern int CDROM_SetGameCDDrive(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/cosp-0.6.txt b/cosp-0.6-src/ClouRemake/ClouRemake/cosp-0.6.txt
new file mode 100644
index 0000000..8f6b3ca
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/cosp-0.6.txt
@@ -0,0 +1,116 @@
+Der Clou! Open Source Project V0.6 (2017-11-16)
+
+http://sourceforge.net/projects/cosp
+
+================================================================================
+  CREDITS
+================================================================================
+
+Idea & concept:  ...and avoid panic by
+Programming:     Helmut Gaberschek, Kaweh Kazemi
+Graphics:        Markus Hudolin
+Story:           Karam Nada
+Sound & music:   Hannes Seifert
+
+SDL conversion:  Oliver Gantert (LucyG)
+Contributions:   Baris Elmas (devkid82)
+                 Ronny Thiemann (templer)
+                 Thomas Trummer (LordSkaven)
+Playtesting:     Baris Elmas (devkid82) - first to finish German version
+                 Martin Banas (srandista) - first to finish Czech version
+                 Neno - the bug reporter :)
+
+IFF ANIM decoder C++ class by Markus Wolf (murkymind.de)
+Ported to C by Oliver Gantert.
+
+Sound playback by Vasco Alexandre da Silva Costa and Jens Granseuer
+ ( http://web.ist.utl.pt/~ist62669/theclue )
+HSC music player by Thomas Trummer
+The fmopl YM3812 emulator from MAME is under a no distribution for profit
+license contained in the included 'mame.txt' file.
+
+================================================================================
+  CHANGES/FIXES
+================================================================================
+
+v0.6 (2017-11-16)
+- new: completely rewritten audio player and mixer (LucyG)
+       (volume settings still not working)
+- fix: memory leak in the intro (LucyG)
+
+  To play CDROM voice from HD, you will need the AUDIO directory
+  from "cosp-cdaudio-22khz.zip" and of course play the CD version
+  without the CD in drive.
+
+  Um die Sprachausgabe der CD von Festplatte abzuspielen, wird das
+  AUDIO Verzeichnis aus "cosp-cdaudio-22khz.zip" ben�tigt und man
+  muss nat�rlich die CDROM-Version spielen, ohne CD im Laufwerk.
+
+v0.5a (2017-10-31)
+- fix: crash on planning Natural Museum (LucyG, reported by Neno)
+- fix: crash on visiting Buckingham Palace (LucyG, reported by Neno)
+
+v0.5 (2017-10-29)
+- new: joystick support (see clou.cfg) (LucyG)
+- new: support CDROM speech as WAV files (experimental) (LucyG)
+- fix: guard paths and alarm connections missing (LucyG, reported by Neno)
+
+v0.4f (2017-10-28)
+- fix: missing percentage on progressbars in the thinking bubble (LucyG)
+
+v0.4e (2015-01-10)
+- fix: crash with Czech localization when talking to Dan Stanford (LucyG,
+       reported by srandista)
+- fix: crash in exploding Jaguar scene (devkid82)
+- new: use mouse wheel to scroll text in bubbles (devkid82)
+
+v0.4d (2015-01-04)
+- fix: crash on executing Chiswick House (LucyG)
+
+v0.4c (2014-07-17)
+- new: intro for CD version with voice (LucyG)
+- fix: fade music volume while playing voice from CD (LucyG)
+
+v0.4b (2014-07-14)
+- new: take screenshots (BMP) with F12 (LucyG)
+- new: use custom mouse arrow (templer)
+- fix: standard disk version crashed (templer)
+
+v0.4a (2014-07-13)
+- fix: playing the CD version without CD in drive crashed (LucyG)
+
+v0.4 (2014-07-12)
+- fix: several random crashes when entering planing mode (LucyG)
+- new: config file (cosp.cfg) replaces command line parameters (LucyG)
+- new: more flexible gfx filtering "system" (LucyG)
+- fix: fullscreen modes with letterboxing (LucyG)
+- new: borrowed music and sample player from Mr da Silva Costa (LucyG)
+- fix: some changes to the sample player (LucyG)
+- fix: intro now with sound and music, no voice yet (LucyG)
+- new: automatic version detection, same exe for all versions (templer)
+- fix: savegame compatibility improved (templer)
+- new: CD-ROM handling (templer)
+- new: config parameter to disable font shadow (LucyG)
+- new: config parameter to skip intro (LucyG)
+
+v0.3 (2014-07-04)
+- fix: better timing, input handling, gfx refresh (LucyG)
+- fix: abilities corrupted (LucyG)
+- fix: dealers didn't buy anything (LucyG)
+- new: play intro animations (LucyG)
+- now also compiles with Visual C++ 2010 Express
+
+v0.2a (2014-06-27)
+- fix: no collision on background color (templer)
+- new: automatic language detection (templer)
+- replaced xmsCopyXXX macros with memcpy for clarity (LucyG)
+
+v0.2 (2014-06-25)
+- fix: load/save functionality fixed (templer)
+- fix: mouse handling (templer)
+
+v0.1d (2003-12-04)
+- initial release
+- compiled with lcc-win32
+
+================================================================================
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/data/dataappl.c b/cosp-0.6-src/ClouRemake/ClouRemake/data/dataappl.c
new file mode 100644
index 0000000..caa2c00
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/data/dataappl.c
@@ -0,0 +1,1058 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "data\dataappl.h"
+
+static long tcGetWeightOfNerves(long teamMood);
+static long tcIsConnectedWithEnabledAlarm(ulong lsoId);
+
+#define tcESCAPE_MOOD         30   /* ab hier fl��chtet einer ! */
+#define tcWALK_LOUDNESS       20
+#define tcPATROL_ALARM        5   /* ab 5 % ver�nderte Objekte schl�gt Patrolie Alarm */
+
+#define tcPIXEL_PER_SECCOND   4
+
+#define tcX_HOTSPOT           8
+
+ubyte TeamMood = 127;
+
+static long tcIsPlanPerfect(ulong timer);
+static long tcGetGuyState(ulong persId);
+static long tcInsideSameRoom(LIST *roomsList, word polX, word polY, word livX, word livY);
+
+ubyte tcSpendMoney(long money,ubyte breakAnim)
+	{
+	ubyte enough=1;
+
+	if(money > tcGetPlayerMoney)
+		{
+		enough = 0;
+
+		if(breakAnim)
+			StopAnim();
+
+		SetBubbleType(THINK_BUBBLE);
+		Say(BUSINESS_TXT,0,MATT_PICTID,"NO MONEY");
+		}
+	else
+		tcSetPlayerMoney(tcGetPlayerMoney - money);
+
+	return(enough);
+	}
+
+/* berechnet Auswirkung eines Funkspruches
+ * setzt Auswirkungen automatisch
+ * pro Funkspruch sinkt Wirkung um 30 Punkte (von 255) -> ab dem 6. Spruch
+ * automatisch demotivierend.
+ */
+void tcCalcCallValue(ulong callNr, ulong timer, ulong persId)
+	{
+	long callCount  = Search.CallCount;
+	long callWeight = ChangeAbs(255, callCount * (-30), 0, 255);
+	long perfect    = tcIsPlanPerfect(timer), situation;
+	long good       = -15, nerves;
+	Person guy;
+
+	  if(persId)
+			 {
+			 guy = (Person)dbGetObject(persId);
+		nerves = 255 - guy->Panic;
+			 }
+
+	situation = (perfect * callWeight) / 255;
+
+	switch(callNr)
+		{
+		case 0:	/* hervorragend! */
+			if (situation > 200)
+				good = situation - 200;
+			break;
+		case 1:   /* Streng Dich an! */
+			if (situation > 80 && situation < 200)
+				good = 15;
+			break;
+		case 2:  /* Beeile Dich sonst... */
+			if ((nerves + situation > 235) && (situation < 80))
+				good = nerves + situation - 235;
+			break;
+		case 3:	/* Beeile Dich, Du hast genug Zeit */
+			if ((situation < 80) && (nerves + situation < 180))
+				good = 15;
+			break;
+		case 4:   /* Du Trottel! */
+			if ((perfect < 100) && (nerves > 200))
+				good = 50;
+
+					if (persId)
+				guy->Known = CalcValue (guy->Known, 0, 255, 0, 20);
+			break;
+		default:
+			break;
+		}
+
+	if((good > 0) && persId)
+		guy->Known = CalcValue (guy->Known, 0, 255, 0, 6);
+
+	Search.CallValue = ChangeAbs(Search.CallValue, good, -500, 500);
+	}
+
+/* Berechnet ��berschlagsm�ssig den Ausgang der Flucht */
+/* basiert alleine auf den Koordinaten */
+/* vernachl�ssigt Stockwerke und Personen */
+long tcCalcEscapeTime()
+	{
+	long time = 0, i;
+	Building build = (Building)dbGetObject(Search.BuildingId);
+
+	for (i = 0; i < 4; i++)
+		{
+		if ((Search.GuyXPos[i] != -1) && (Search.GuyYPos[i] != -1))
+			{
+			long distance = abs((long) Search.GuyXPos[i] - (long) build->CarXPos);
+
+			distance += abs((long) Search.GuyYPos[i] - (long) build->CarYPos);
+			distance = CalcValue (distance, 0, 0xffff, 255, 20); /* um 20% mehr! */
+
+			distance /= tcPIXEL_PER_SECCOND;
+
+			time = max (distance, time);
+			}
+		}
+
+	time = time / 4;    /* Fluchtzeit k��rzen - war zu lang! */
+
+	return time;
+	}
+
+/* bestimmt den Ausgang eines Kampfes */
+/* Werkzeug wirkt sich nur in Geschwindigkeit und Verletzung aus */
+long tcKillTheGuard(ulong guyId, ulong buildingId)
+	{
+	Person p = (Person)dbGetObject(guyId);
+	Building b = (Building)dbGetObject (buildingId);
+	ulong power = hasGet(guyId, Ability_Kampf);
+
+	if (power >=  b->GuardStrength)
+		return 1;
+	else
+		{
+		p->OldHealth = p->Health;
+		p->Health = CalcValue (p->Health, 0, 255, 0, 90);
+		}
+
+	return 0;
+	}
+
+long tcGetCarStrike(Car car)
+	{
+	long strike = car->Strike;
+
+	strike = strike + ((car->Strike * (car->ColorIndex - 5) * 9) / 255);
+
+	strike = CalcValue (strike, 0, 255, 127 + abs(127 - car->BodyWorkState), 30);
+
+	return strike;
+	}
+
+long tcGuyCanEscape(Person p)
+	{
+	long v = (p->Intelligence + 255 - p->Panic) / 2;
+
+	v = CalcValue (v, 0, 255, 255-  p->KnownToPolice, 15);
+	v = CalcValue (v, 0, 255, 255 - p->Popularity, 25);
+
+	return v; /* the higher the better */
+	}
+
+long tcGuyTellsAll(Person p)
+	{
+	long v;
+
+	v = (512 - p->Loyality - p->Known) / 2;
+
+	return v; /* the higher the worser */
+	}
+
+long tcGetCarTraderOffer(Car car)
+	{
+	long offer  = tcGetCarPrice(car);
+	Person marc = (Person)dbGetObject(Person_Marc_Smith);
+
+	offer = CalcValue (offer, 1, 0xffff, 0, 25);      /* 25% weniger */
+	offer = CalcValue (offer, 1, 0xffff, 126 + (marc->Known / 2), 30);
+
+	return offer;
+	}
+
+ulong GetObjNrOfLocation(ulong LocNr)
+	{
+	struct dbObject *obj;
+	Location loc;
+	short objHashValue;
+
+	for (objHashValue = 0; objHashValue < OBJ_HASH_SIZE; objHashValue++)
+		{
+		for (obj = (struct dbObject *)LIST_HEAD(objHash[objHashValue]); NODE_SUCC(obj); obj = (struct dbObject *)NODE_SUCC(obj))
+			{
+			if(obj->type == Object_Location)
+				{
+				loc=(Location)((void*)(obj+1));
+
+				if(loc->LocationNr == LocNr)   return(obj->nr);
+				}
+			}
+		}
+
+	return(0L);
+	}
+
+ulong GetObjNrOfBuilding(ulong LocNr)
+	{
+	struct dbObject *obj;
+	Building bui;
+	short objHashValue;
+
+	for (objHashValue = 0; objHashValue < OBJ_HASH_SIZE; objHashValue++)
+		{
+		for (obj = (struct dbObject *)LIST_HEAD(objHash[objHashValue]); NODE_SUCC(obj); obj = (struct dbObject *)NODE_SUCC(obj))
+			{
+			if(obj->type == Object_Building)
+				{
+				bui=(Building)((void*)(obj+1));
+
+				if(bui->LocationNr == LocNr)   return(obj->nr);
+				}
+			}
+		}
+
+	return(0L);
+	}
+
+ulong tcGetPersOffer(Person person,ubyte persCount)
+	{
+	ulong persCapability=1,mattCapability=1;
+	ulong persID = dbGetObjectNr(person);
+	ulong assesment, offer, i;
+	Person Pers;
+
+	Pers = (Person) dbGetObject(persID);
+
+	/* F�higkeiten der Person */
+	if((i = hasGet(persID, Ability_Autos)) != NO_PARAMETER)
+		persCapability += i;
+	if((i = hasGet(persID, Ability_Sprengstoff)) != NO_PARAMETER)
+		persCapability += i;
+	if((i = hasGet(persID, Ability_Safes)) != NO_PARAMETER)
+		persCapability += i;
+	if((i = hasGet(persID, Ability_Elektronik)) != NO_PARAMETER)
+		persCapability += i;
+	if((i = hasGet(persID, Ability_Aufpassen)) != NO_PARAMETER)
+		persCapability += i;
+	if((i = hasGet(persID, Ability_Schloesser)) != NO_PARAMETER)
+		persCapability += i;
+
+	/* F�higkeiten von Matt */
+	if((i = hasGet(Person_Matt_Stuvysunt, Ability_Autos)) != NO_PARAMETER)
+		mattCapability += i;
+	if((i = hasGet(Person_Matt_Stuvysunt, Ability_Sprengstoff)) != NO_PARAMETER)
+		mattCapability += i;
+	if((i = hasGet(Person_Matt_Stuvysunt, Ability_Safes)) != NO_PARAMETER)
+		mattCapability += i;
+	if((i = hasGet(Person_Matt_Stuvysunt, Ability_Elektronik)) != NO_PARAMETER)
+		mattCapability += i;
+	if((i = hasGet(Person_Matt_Stuvysunt, Ability_Aufpassen)) != NO_PARAMETER)
+		mattCapability += i;
+	if((i = hasGet(Person_Matt_Stuvysunt, Ability_Schloesser)) != NO_PARAMETER)
+		mattCapability += i;
+
+	/* wieviel Prozent Leistung er bringt (Matt = 100 %) */
+	assesment = (persCapability * 100) / mattCapability;
+
+	/* MOD 18-02-04 HG 92 statt 100 (Marx Testspielempfehlung) */
+	offer = 100 / persCount;                             /* sein Anteil bei gleichen Teilen */
+	offer = (offer * assesment) / 92;                    /* ... gewichtet mit F�higkeiten   */
+
+	/* Beispiel zu oben: 2 Personen -> offer = 50, assesment = 200 */
+	/* (andere Person ist "zweimal so gut") -> offer = 50 * 300 / 200 = 75 % */
+	/* wieviel Prozent Habsucht (Matt = 100 %) */
+	offer = CalcValue(offer, 1, 90, Pers->Avarice, 20);
+	offer = CalcValue(offer, 1, 90, 255-Pers->Known, 10);
+
+	return(offer);
+	}
+
+void tcPersonLearns(ulong pId)
+	{
+	struct ObjectNode *n;
+	Person pers = (Person)dbGetObject(pId);
+	long ability, count, growth;
+
+	/* Abilites */
+	hasAll(pId, OLF_NORMAL, Object_Ability);
+
+	for (n = (struct ObjectNode *) LIST_HEAD(ObjectList); NODE_SUCC(n); n = (struct ObjectNode *) NODE_SUCC(n))
+		{
+		ability = hasGet(pId, OL_NR(n));   /* Jetztzustand der F�higkeit */
+
+		if(learned(pId, OL_NR(n)))         /* er hat dazugelernt ! */
+			{
+			count = learnedGet(pId, OL_NR(n));      /* wie oft er gelernt hat ! */
+
+			growth = 7 + count * 4;
+			learnedUnSet(pId, OL_NR(n));            /* Gelerntes nicht nocheinmal lernen! */
+			}
+		else
+			growth = 10;
+
+		growth = max((ability / 10), growth);   /* Wachstum um das Minimum von
+																	* x Punkten oder x Prozent    */
+
+		if(ability + growth < 255)
+			hasSetP(pId, OL_NR(n), ability + growth);
+		else
+			hasSetP(pId, OL_NR(n), 255);
+		}
+
+	  /* other attributes ! */
+
+	if (pers->OldHealth)
+		pers->Health = pers->OldHealth;    /* Verletzung ist kuriert */
+
+	tcImprovePanic(pers, (1 + CalcRandomNr(4, 6)));    /* 25 bis 16 % besser ! */
+
+	growth = max((pers->Known / (1 + CalcRandomNr(8, 10))), 20);
+	tcImproveKnown(pers, pers->Known + ((pers->Known * growth) / 100));     /* 10 bis 12 % */
+	}
+
+ulong tcGetBuildValues(Building bui)
+	{
+	ulong v, x;
+
+	x = (255 - bui->Exactlyness) / 3;
+
+	v = CalcValue (bui->Values, 0, bui->Values + 500000L, CalcRandomNr(0, 255), x);
+
+	return((ulong)(Round(v,3)));
+	}
+
+/*
+ * Berechnet Teamstimmung
+ * zu verwenden f��r Anzeige der Teamstimmung
+ * 0 - 255
+ */
+
+long tcGetTeamMood(ulong *guyId, ulong timer)   /* ptr auf 4 ulongs */
+	{
+	long team = 0, mood = 0, i;
+
+	/* Summe aus Einzelstimmungen */
+	for (i = 0; (i < 4) && (guyId[i]); i++)
+		{
+		mood = tcGetPersMood((dbGetObject (guyId[i])));          /* Stimmung eines
+														Einzelnen   */
+		team += mood;
+		}
+
+	team /= i;
+	TeamMood = CalcValue (team, 0, 255, (tcIsPlanPerfect(timer) * 20) / 35, 100);
+
+	return ((long) TeamMood);
+	}
+
+/*
+ * retourniert neuen Ersch�pfungszustand eines Einbrechers
+ * Aufzurufen, wenn Person Aktion durchf��hrt
+ * nur alle x Aktionsschritte aufrufen !
+ */
+
+long tcGuyInAction(ulong persId, long exhaustion)
+	{
+	long state = tcGetGuyState(persId);
+
+	if(CalcRandomNr(0, 15) == 1)
+		state = (255 - state) / 90;   /* Ersch�pfungszuwachs = Invers von Zustand */
+	else
+		state = 0;
+
+	return ChangeAbs (exhaustion, state, 0, 255);
+	}
+
+/*
+ * Setzt die Ersch�pfungsabnahme eines Einbrechers
+ * Aufzurufen, wenn Person wartet
+ * nur alle x Warteschritte aufrufen !
+ */
+
+long tcGuyIsWaiting(ulong persId, long exhaustion)
+	{
+	long state = tcGetGuyState(persId);
+
+	if(CalcRandomNr(0, 4) == 1)
+		state = state / 10;   /* Ersch�pfungsabnahme */
+	else
+		state = 0;
+
+	state = max(10, state);
+
+	return ChangeAbs (exhaustion, state * (-1), 0, 255);
+	}
+
+/*
+ * 255 : Plan wird (zeitlich) zu 100% eingehalten
+ */
+/* bei jeder Warnung eines Aufpasser , wird dieser Wert nach unten */
+/* korrigiert */
+/* R��ckgabewert steigt mit Zunahme der Zeit (Einbrecher werden immer
+	selbstsicherer
+	und sinkt mit der Differenz der Realit�t zum Plan!
+	durch Funkspr��che diesen R��ckgabewert beeinflussen!
+*/
+
+static long tcIsPlanPerfect(ulong timer)
+	{
+	long perfect = (255 * ((long)(timer + 1) - (long)Search.DeriTime)) / ((long)(timer + 1));
+
+	perfect = max(perfect, 0);
+	perfect = ChangeAbs (perfect, Search.CallValue, 0, 255);
+	perfect = ChangeAbs (perfect, Search.WarningCount * (-35), 0, 255);
+
+	return perfect;
+	}
+
+/*
+ * berechnet die Spuren
+ *
+ */
+
+long tcGetTrail(Person p, ubyte which)
+	{
+	long nerves = tcGetWeightOfNerves(TeamMood) / 7;
+	long trail;
+
+	switch(which)
+		{
+		case 0:   /* Walk */
+			trail = (255 - p->Skill) / 4;
+			trail = CalcValue (trail, 0, 255, 255 - p->Stamina, 20);
+			trail = CalcValue (trail, 0, 255, 255 - p->Health , 10);
+			break;
+		case 1:   /* Wait */
+			trail = (p->Panic) / 4;   /* umso gr�sser Panik umso mehr Spuren! */
+			break;
+		case 2:   /* Work */
+			trail = (255 - p->Skill) / 4;
+			trail = CalcValue (trail, 0, 255, 255 - p->Stamina, 15);
+			trail = CalcValue (trail, 0, 255, 255 - p->Health,  15);
+			trail = CalcValue (trail, 0, 255, 255 - p->Strength, 5);
+
+			if(!(has(Person_Matt_Stuvysunt, Tool_Handschuhe)))
+				trail = CalcValue (trail, 0, 255, 255, 50);  /* um 50 % mehr ! */
+			break;
+
+		case 3:   /* Kill */
+			trail = (255 - p->Strength) / 4;
+			trail = CalcValue (trail, 0, 255, 255 - p->Stamina, 10);
+			trail = CalcValue (trail, 0, 255, 255 - p->Health,  10);
+			trail = CalcValue (trail, 0, 255, 255 - p->Skill, 20);
+			break;
+
+		default:
+			break;
+		}
+
+	trail = CalcValue (trail, 0, 255, p->Panic, nerves);
+
+	return trail;
+	}
+
+static ulong tcGetNecessaryAbility(ulong persId, ulong toolId)
+	{
+	ulong ability = 255;  /* andere Arbeiten optimal! */
+
+	switch(toolId)
+		{
+		case Tool_Fusz:
+		case Tool_Chloroform:
+		case Tool_Hand:
+			  ability =  hasGet(persId, Ability_Kampf);
+			  break;
+		case Tool_Kernbohrer:
+		case Tool_Winkelschleifer:
+		case Tool_Schneidbrenner:
+		case Tool_Sauerstofflanze:
+		case Tool_Stethoskop:
+		case Tool_Elektrohammer:
+			  ability = hasGet(persId, Ability_Safes);
+			  break;
+		case Tool_Bohrmaschine:
+		case Tool_Bohrwinde:
+		case Tool_Dietrich:
+			  ability = hasGet(persId, Ability_Schloesser);
+			  break;
+		case Tool_Dynamit:
+			  ability = hasGet(persId, Ability_Sprengstoff);
+			  break;
+		case Tool_Elektroset:
+			  ability = hasGet(persId, Ability_Elektronik);
+			  break;
+		}
+
+	return ability;
+	}
+
+/*
+ * Berechnet Zeit, die Einbrecher f��r eine Aktion ben�tigt
+ */
+
+ulong tcGuyUsesToolInPlayer(ulong persId, Building b, ulong toolId, ulong itemId, ulong needTime)
+	{
+	ulong time    = tcGuyUsesTool(persId, b, toolId, itemId);
+	ulong ability = tcGetNecessaryAbility(persId, toolId);
+
+	if (ability < (CalcRandomNr(0,230)))
+		if (CalcRandomNr(0, ability / 20) == 1)
+			time = CalcValue (time, 0, time * 4, ability / 2, 10);
+
+	if (time < needTime)
+		time = needTime;
+
+	return time;
+	}
+
+ulong tcGuyUsesTool(ulong persId, Building b, ulong toolId, ulong itemId)
+	/*
+	 * diese Funktion darf keine Zuf�lligkeit enthalten -> Sync!!
+	 */
+	{
+	ulong origin, time;
+	Person p = (Person)dbGetObject(persId);
+
+	origin = time = breakGet(itemId, toolId);
+
+	if (time != -1)
+		{
+		switch(toolId)  /* Zeit varieren */
+			{
+			case Tool_Elektrohammer:
+			case Tool_Hammer:
+			case Tool_Axt:
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Strength) / 2, 5);
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Stamina)  / 2, 10);
+				  break;
+			case Tool_Hand:
+			case Tool_Fusz:
+			case Tool_Chloroform:
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Skill) / 2, 5);
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Strength) / 2, 10);
+				  break;
+			case Tool_Bohrwinde:
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Stamina) / 2, 5);
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Skill)   / 2, 10);
+				  break;
+			case Tool_Schloszstecher:
+			case Tool_Glasschneider:
+			case Tool_Bohrmaschine:
+			case Tool_Brecheisen:
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Strength) / 2, 10);
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Skill) / 2, 10);
+				  break;
+			case Tool_Winkelschleifer:
+			case Tool_Schneidbrenner:
+			case Tool_Sauerstofflanze:
+			case Tool_Kernbohrer:
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Strength) / 2, 0);
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Skill) / 2, 10);
+				  break;
+			case Tool_Dietrich:
+			case Tool_Strickleiter:
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Skill) / 2, 10);
+				  break;
+			case Tool_Stethoskop:
+			case Tool_Elektroset:
+			case Tool_Dynamit:
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Intelligence) / 2, 10);
+				  time = CalcValue (time, 0, origin * 4, 127 + (255 - p->Skill)        / 2 , 10);
+				  break;
+			default:break;
+			}
+
+		time = CalcValue(time, 0, origin * 4, 127 + ((255 - (tcGetNecessaryAbility(persId, toolId))) / 2), 50);
+
+		switch(itemId)  /* Alarmanlagen bonus! */
+			{
+			case Item_Alarmanlage_Z3:
+				  break;
+			case Item_Alarmanlage_X3:
+				  time = CalcValue (time, 0, origin * 4, 255, 30); break;
+			case Item_Alarmanlage_Top:
+				  time = CalcValue (time, 0, origin * 4, 255, 50); break;
+			default:
+				  break;
+			}
+
+		time = CalcValue(time, 0, origin * 4, 120 + (255 - b->Exactlyness) / 2, 20);
+		time = CalcValue(time, 0, origin * 4, 127 + (p->Panic / 2), 10);
+
+		time = max(origin, time);     /* Schneller kann man nicht sein! */
+		}
+	else
+		time = 0; /* kein Tool oder kein Item angegeben! */
+
+	return (time);
+	}
+
+/*
+ * Berechnet Verletzungsgefahr sowie Verletzung
+ * bei > 0 -> Funkspruch "Au! Ich habe mich verletzt!"
+ */
+
+long tcGetDanger(ulong persId, ulong toolId, ulong itemId)
+	{
+	Person p = (Person)dbGetObject(persId);
+	long danger = hurtGet(itemId, toolId);
+
+	danger = CalcValue (danger, 0, 255, 255 - p->Skill, 30);
+	danger = CalcValue (danger, 0, 255, 255 - p->Stamina, 10);
+	danger = CalcValue (danger, 0, 255, p->Panic, 5);
+
+	if (danger > CalcRandomNr (40, 255))          /* Verletzt ! */
+		{
+		if (CalcRandomNr (0, 10) == 1)           /* ...oder vielleicht doch nicht */
+			{
+			p->OldHealth = p->Health;
+			p->Health = CalcValue (p->Health, 0, 255, 127 - danger, 90);
+			}
+		else
+			danger = 0;
+		}
+	else
+		danger = 0;
+
+	return danger;
+	}
+
+/*
+ * berechnet die Lautst�rke einer Aktion
+ *
+ */
+
+long tcGetToolLoudness(ulong persId, ulong toolId, ulong itemId)
+	{
+	Person p = (Person)dbGetObject(persId);
+	long loudness = soundGet(itemId, toolId);
+
+	loudness = CalcValue (loudness, 0, 255, 255 - p->Skill, 10);
+	loudness = CalcValue (loudness, 0, 255, p->Panic, 5);
+
+	return loudness;
+	}
+
+/*
+ * berechnet die Lautst�rke vom Gehen
+ */
+
+long tcGetWalkLoudness(void)
+	{
+	long loudness = tcWALK_LOUDNESS;
+
+	if(has(Person_Matt_Stuvysunt, Tool_Schuhe))  loudness /= 2;
+
+	return loudness;
+	}
+
+/*
+ * berechnet Lautst�rkenpegel aller 4 Einbrecher
+ */
+
+long tcGetTotalLoudness(long loudp0, long loudp1, long loudp2, long loudp3)
+	{
+	long total;
+
+	total = max(loudp0, loudp1);
+	total = max(total, loudp2);
+	total = max(total, loudp3);
+
+	total = CalcValue (total, 0, 255, 255, 20);   /* um ca 20 % erh�hen */
+
+	return (total);
+	}
+
+/*
+ * stellen fest, ob ein Funkspruch aufgefangen oder
+ * ob durch die Lautst�rke ein Passant, Nachbar die Polizei alarmiert wurde
+ * wenn diese Funktionen 1 zur��ckliefern, ab jetzt st�ndig WatchDog
+ * aufrufen
+ */
+
+/* am besten jede Sekunde aufrufen (loudness) */
+
+long tcAlarmByLoudness(Building b, long totalLoudness)
+	{
+	if(totalLoudness > b->MaxVolume) return 1;
+	else return 0;
+	}
+
+/* nach jedem Funkspruch aufrufen */
+long tcAlarmByRadio(Building b)
+	{
+	long random = CalcRandomNr(0, 2500) + CalcRandomNr(0, 2500);         /* 10 mal funken bei Guarding = 250 -> Alarm */
+
+	if(random < b->RadioGuarding)
+		return 1;
+	else
+		return 0;
+	}
+
+long tcAlarmByPatrol(Building b, uword objChangedCount, uword totalCount, ubyte patrolCount)
+	{
+	/* Patrolien entdecken nun schneller etwas: 100 -> 125 */
+
+	if(((totalCount * tcPATROL_ALARM) / (125 * patrolCount)) < objChangedCount)
+		return 1;
+	else
+		return 0;
+	}
+
+/* f��r jedes Objekt, das vom W�chter kontrolliert wird, aufrufen! */
+/* wenn 1 -> richtiger Alarm! */
+
+long tcGuardChecksObject(LSObject lso)
+{
+	/* hier darf NICHT das OPEN_CLOSE_BIT sonst schl�gt der W�chter */
+	/* Alarm, wenn er eine T��r �ffnet!                              */
+	if ((lso->ul_Status & (1<<Const_tcIN_PROGRESS_BIT)) ||
+		(lso->ul_Status & (1<<Const_tcLOCK_UNLOCK_BIT)))
+		return 1;
+	else
+	{
+		switch(lso->Type)
+		{
+		case Item_Alarmanlage_Z3:
+		case Item_Alarmanlage_X3:
+		case Item_Alarmanlage_Top:
+		case Item_Steuerkasten:
+			/* hier darf NICHT das OPEN_CLOSE_BIT gepr��ft werden */
+			/* sonst schl�gt der W�chter Alarm, wenn er es �ffnet! */
+			if (lso->ul_Status & (1 << Const_tcON_OFF))
+				return 1;
+			break;
+		case Item_Bild:
+		case Item_Vase:
+		case Item_Gemaelde:
+		case Item_Statue:
+			if (lso->uch_Visible == 0)
+				return 1;
+			break;
+		default:
+			break;
+		}
+		if (bProfidisk)
+		{
+			switch(lso->Type)
+			{
+			case Item_Heiligenstatue:
+			case Item_Kerzenstaender:
+			case Item_Kirchenkreuz:
+
+			case Item_Hottentotten_Figur:
+			case Item_Batman_Figur:
+			case Item_Dicker_Man:
+			case Item_Unbekannter:
+			case Item_Jack_the_Ripper_Figur:
+			case Item_Koenigs_Figur:
+			case Item_Wache_Figur:
+			case Item_Miss_World_1952:
+				if (lso->uch_Visible == 0)
+					return 1;
+				break;
+			default:
+				break;
+			}
+		}
+
+	}
+
+	return 0;
+}
+
+/* vor Beginn jeder Arbeit oder alle 32 Pixel die ein Einbrecher geht,
+ * aufrufen!
+ * loudness = tcGetToolLoudness oder tcWalkLoudness
+ */
+
+long tcAlarmByMicro(uword us_XPos, uword us_YPos, long loudness)
+	{
+	if (loudness > lsGetLoudness(us_XPos, us_YPos))   return 1;
+	else return 0;
+	}
+
+/*
+ * sobald ein Alarm Marke "Nachbar" existiert, f��r jeden Aufpasser, der gerade
+ * wartet, diese Funktion aufrufen
+ * wenn diese Funktion 1 retourniert -> Aufpasser hat etwas bemerkt ->
+ * Warnung an Matt !
+ */
+
+long tcWatchDogWarning(ulong persId)
+	{
+	long watch = hasGet(persId, Ability_Aufpassen);
+	long random;
+
+	random = CalcRandomNr(0, 200) +    /* Joe soll nicht gleich in der ersten */
+				CalcRandomNr(0, 200) +    /* Sekunde etwas bemerken!             */
+				CalcRandomNr(0, 200);     /* Risiko wird durch Addition GR�SSER!! */
+
+	if ((watch > random) && (CalcRandomNr(0, 40) == 1))
+		return 1;
+
+	return 0;
+	}
+
+/*
+ * sobald KEIN Alarm Marke "Nachbar" existiert, f��r jeden Aufpasser, der
+ * gerade wartet, diese Funktion aufrufen (Fehlalarm)
+ */
+
+long tcWrongWatchDogWarning(ulong persId)
+	{
+	long watch = (long) hasGet(persId, Ability_Aufpassen);
+
+	if(CalcRandomNr(0, 255) >  watch)   /* Irrtum */
+		{
+		if(CalcRandomNr(0, watch * 50) == 1)    /* umso besser, umso kleiner Wahrscheinlichkeit */
+			return 1;
+		}
+
+	return 0;
+	}
+
+long tcIsCarRecognised(Car car, long time)
+	{
+	long strike = tcGetCarStrike(car);
+	long weight;
+
+	/* Zeit spielt eine Rolle ! */
+	/* nach einer Viertelstunde mit Alarm, ist Strike == 255 */
+
+	weight = 127 + CalcValue(time / 8, 0, 127, 0, 0); /* nur wegen Bereichs�berpr�fung */
+	strike = CalcValue(strike, 0, 255, weight, 100);
+
+	if ((strike > 220) || ((strike > (CalcRandomNr(10, 220) + CalcRandomNr(20, 220)))))
+		return 1;
+	else
+		return 0;
+	}
+
+static long tcGetGuyState(ulong persId)
+	{
+	Person p = (Person)dbGetObject(persId);
+	long state;
+
+	state = tcGetPersHealth(p);
+	state = CalcValue (state, 0, 255, p->Stamina,  50);
+	state = CalcValue (state, 0, 255, p->Strength, 15);
+
+	return state;
+	}
+
+long tcCalcMattsPart(void)
+	{
+	LIST *guys;
+	NODE *node;
+	long count = 0, part = 0;
+
+	joined_byAll(Person_Matt_Stuvysunt, OLF_INCLUDE_NAME|OLF_PRIVATE_LIST, Object_Person);
+	guys = ObjectListPrivate;
+
+	count = GetNrOfNodes(guys);
+
+	for(node=(NODE*)LIST_HEAD(guys);NODE_SUCC(node);node = (NODE*)NODE_SUCC(node))
+		{
+		if(OL_NR(node) != Person_Matt_Stuvysunt)
+			part += tcGetPersOffer((Person)(OL_DATA(node)), count);
+		}
+
+	if(part > 99 )
+		part = 99;
+
+	RemoveList (guys);
+
+	return 100 - part;
+	}
+
+/* immer wenn eine Stechuhr bet�tigt wird */
+
+void tcRefreshTimeClock(ulong buildId, ulong timerId)
+	{
+	ulong time = hasClockGet(buildId, timerId);
+
+     ClockTimerSetP(timerId, timerId, time);
+	}
+
+/* jedes Sekunde aufrufen
+ * wenn 1 -> Alarm durch Stechuhr!
+ */
+
+long tcCheckTimeClocks(ulong buildId)
+	{
+	NODE *n;
+	long alarm = 0;
+
+	/* alle Stechuhren holen */
+
+     hasClockAll(buildId, OLF_NORMAL, Object_LSObject);
+
+	/* und kontrollieren, ob die Zeit abgelaufen ist */
+
+	for (n = (NODE *) LIST_HEAD(ObjectList); NODE_SUCC(n); n = (NODE *) NODE_SUCC(n))
+		{
+		ulong timerId = OL_NR(n);
+		long time = (long) ClockTimerGet (timerId, timerId);
+
+		if (time - 1)
+               ClockTimerSetP(timerId, timerId, time - 1);
+		else
+			alarm = 1;
+		}
+
+	return alarm;
+	}
+
+/* stellt fest, ob 2 Positionen innerhalb des selben Raumes sind */
+
+static long tcInsideSameRoom(LIST *roomsList, word polX, word polY, word livX, word livY)
+     {
+     NODE   *node;
+	  long   detected = 0;
+     LSRoom room;
+
+     for (node = (NODE*) LIST_HEAD(roomsList); NODE_SUCC(node) && detected==0; node = (NODE*) NODE_SUCC(node))
+          {
+          room = (LSRoom)OL_DATA(node);
+
+          if ((polX >= room->us_LeftEdge) && (polX <= room->us_LeftEdge + room->us_Width) &&
+              (polY >= room->us_TopEdge ) && (polY <= room->us_TopEdge  + room->us_Height))
+               {
+               if ((livX >= room->us_LeftEdge) && (livX <= room->us_LeftEdge + room->us_Width) &&
+						 (livY >= room->us_TopEdge ) && (livY <= room->us_TopEdge  + room->us_Height))
+						  detected = 1;
+               }
+          }
+
+     return detected;
+     }
+
+/* F�r jeden(?) Schritt einer f�r JEDEN Einbrecher aufrufen */
+/* LivingName = names des Einbrechers */
+/* XPos, YPos = Position des W�chters */
+/* wenn 1 -> Alarm! */
+
+long tcGuardDetectsGuy(LIST *roomsList, uword us_XPos, uword us_YPos, ubyte uch_ViewDirection, char *puch_GuardName, char *puch_LivingName)
+	{
+	ubyte detected = 0;
+	uword livXPos = livGetXPos(puch_LivingName);
+	uword livYPos = livGetYPos(puch_LivingName);
+
+	if (livWhereIs(puch_GuardName) == livWhereIs(puch_LivingName))
+		if (livIsPositionInViewDirection (us_XPos, us_YPos, livXPos, livYPos, uch_ViewDirection))
+			if (tcInsideSameRoom(roomsList, us_XPos + tcX_HOTSPOT, us_YPos, livXPos + tcX_HOTSPOT, livYPos))
+				detected = 1;
+
+	return detected;
+	}
+
+/* jedesmal aufrufen, wenn ein Objekt bearbeitet wird */
+/* �berpr�ft, ob dieses Objekt mit einer Alarmanlafe verbunden ist */
+/* 1 -> Alarm */
+
+long tcAlarmByTouch(ulong lsoId)
+	{
+	LSObject lso = (LSObject)dbGetObject(lsoId);
+
+	if (lso->uch_Chained & Const_tcCHAINED_TO_ALARM)
+		if (tcIsConnectedWithEnabledAlarm(lsoId)) return 1;
+
+	return 0;
+	}
+
+
+/* kontrolliert, ob durch Stromverlust ein Alarm ausgel�st wird
+ * jedesmal aufrufen, wenn ein Steuerkasten ausgeschaltet wird!
+ * wenn 1 -> Alarm
+ */
+
+long tcAlarmByPowerLoss (ulong powerId)
+	{
+	LIST *friendlyList;
+	NODE *n;
+
+	/* alle Objekte, mit denen diese Stromversorgung verbunden ist */
+
+	SetObjectListAttr (OLF_PRIVATE_LIST, Object_LSObject);
+	AskAll (dbGetObject(powerId), hasPowerRelationID, BuildObjectList);
+	friendlyList = ObjectListPrivate;
+
+	/* eine davon mit einer Alarmanlage verbunden? */
+
+	for (n = (NODE *) LIST_HEAD(friendlyList); NODE_SUCC(n); n = (NODE*) NODE_SUCC(n))
+		{
+		LSObject lso = (LSObject)OL_DATA(n);
+
+		if (lso->ul_Status & Const_tcCHAINED_TO_ALARM)
+			if (tcIsConnectedWithEnabledAlarm (OL_NR(n)))
+				  {
+						  RemoveList(friendlyList);
+						  return 1;
+				  }
+		}
+
+	  RemoveList(friendlyList);
+	return 0;
+	}
+
+static long tcIsConnectedWithEnabledAlarm(ulong lsoId)
+	{
+	NODE *n;
+
+	/* alle Alarmanlagen, mit denen dieser Gegenstand verbunden ist */
+
+	SetObjectListAttr (OLF_NORMAL, Object_LSObject);
+	AskAll (dbGetObject(lsoId), hasAlarmRelationID, BuildObjectList);
+
+	/* ist eine davon eingeschalten? */
+
+	for (n = (NODE *) LIST_HEAD(ObjectList); NODE_SUCC(n); n = (NODE*) NODE_SUCC(n))
+		{
+		LSObject alarm = (LSObject)OL_DATA(n);
+
+			 if (!(alarm->ul_Status & (1L<<Const_tcON_OFF)))
+			return 1;
+		}
+
+	return 0;
+	}
+
+static long tcGetWeightOfNerves(long teamMood)
+	{
+	return (255 - teamMood);
+	}
+
+void tcInsertGuard(LIST *list, LIST *roomsList, uword x, uword y, uword width, uword height, ulong guardId, ubyte livId, ulong areaId)
+	{
+	char name[TXT_KEY_LENGTH] = {0};
+	uword gx, gy;
+	ulong guardedArea = isGuardedbyGet(lsGetCurrBuildingID(), guardId);
+
+	sprintf ((char*)name, "Police_%d", livId);
+
+	gx = livGetXPos(name);
+	gy = livGetYPos(name);
+
+	if (guardedArea == areaId)
+		if ((x <= (gx + 16))  && ((x+width) >= gx) && (y <= (gy + 23)) && ((y+height) >= gy))
+			if (tcInsideSameRoom(roomsList, gx + tcX_HOTSPOT, gy, x + tcX_HOTSPOT, y))
+				dbAddObjectNode (list, guardId, OLF_INCLUDE_NAME|OLF_INSERT_STAR);
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/data/dataappl.h b/cosp-0.6-src/ClouRemake/ClouRemake/data/dataappl.h
new file mode 100644
index 0000000..8c032b4
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/data/dataappl.h
@@ -0,0 +1,170 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_DATAAPPL
+#define MODULE_DATAAPPL
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_DATACALC
+#include "data\datacalc.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_EVIDENCE
+#include "scenes\evidence.h"
+#endif
+
+#ifndef MODULE_LIVING
+#include "living\living.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+extern ubyte tcSpendMoney(long money,ubyte breakAnim);
+
+extern ulong GetObjNrOfLocation(ulong LocNr);
+extern ulong GetObjNrOfBuilding(ulong LocNr);
+
+extern void	 tcCalcCallValue(ulong callNr, ulong timer, ulong persId);
+extern void  tcPersonLearns(ulong pId);
+extern void  tcRefreshTimeClock(ulong buildId, ulong timerId);
+extern ulong tcGetPersOffer(Person person, ubyte persCount);
+
+extern long  tcCalcEscapeTime(void);
+extern long  tcKillTheGuard(ulong guyId, ulong buildingId);
+extern long  tcAlarmByPowerLoss (ulong powerId);
+extern long  tcAlarmByTouch(ulong lsoId);
+extern long  tcGuardDetectsGuy(LIST *roomsList, uword us_XPos, uword us_YPos, ubyte uch_ViewDirection, char *puch_GuardName, char *puch_LivingName);
+extern long  tcGetCarStrike(Car car);
+extern long  tcCalcEscapeOfTeam(void);
+extern long  tcGuyTellsAll(Person p);
+extern long  tcGuyCanEscape(Person p);
+extern long  tcGetCarTraderOffer(Car car);
+extern long  tcGetTeamMood(ulong *guyId, ulong timer);   /* ptr auf 4 ulongs */
+extern long  tcGuyInAction(ulong persId, long exhaustion);
+extern long  tcGuyIsWaiting(ulong persId, long exhaustion);
+extern long  tcGetTrail(Person p, ubyte which);
+extern long  tcGetDanger(ulong persId, ulong toolId, ulong itemId);
+extern long  tcGetToolLoudness(ulong persId, ulong toolId, ulong itemId);
+extern long  tcGetWalkLoudness(void);
+extern long  tcGetTotalLoudness(long loudp0, long loudp1, long loudp2, long loudp3);
+extern long  tcAlarmByLoudness(Building b, long totalLoudness);
+extern long  tcAlarmByRadio(Building b);
+extern long  tcAlarmByMicro(uword us_XPos, uword us_YPos, long loudness);
+extern long  tcAlarmByPatrol(Building b, uword objChangedCount, uword totalCount, ubyte patrolCount);
+extern long  tcWatchDogWarning(ulong persId);
+extern long  tcWrongWatchDogWarning(ulong persId);
+extern long  tcIsCarRecognised(Car car, long time);
+extern long  tcGuardChecksObject(LSObject lso);
+extern long  tcCheckTimeClocks(ulong builId);
+
+extern long  tcCalcMattsPart(void);
+
+extern ulong tcGuyEscapes(void);
+extern ulong tcGuyUsesTool(ulong persId, Building b, ulong toolId, ulong itemId);
+extern ulong tcGuyUsesToolInPlayer(ulong persId, Building b, ulong toolId, ulong itemId, ulong neededTime);
+
+extern void  tcInsertGuard(LIST *list, LIST *roomsList, uword x, uword y, uword width, uword height, ulong guardId, ubyte livId, ulong areaId);
+
+/* defines for Persons */
+#define   tcPERSON_IS_ARRESTED          240 /* KnownToPolice */
+#define   tcVALUE_OF_RING_OF_PATER      320
+
+#define   tcSetPersKnown(p,v)           ((p)->Known = (v))
+#define   tcChgPersPopularity(p, v)     ((p)->Popularity = (ubyte) ChangeAbs((p)->Popularity, v, 0, 255))
+
+#define   tcGetPersHealth(p)            ((p)->Health)
+#define   tcGetPersMood(p)              (((Person)p)->Mood)
+
+#define   tcWeightPersCanCarry(p)       (((long)(p)->Stamina + (long)(p)->Strength) * 200)     /* 0 - 100000 (100 kg) in gramm ! */
+#define   tcVolumePersCanCarry(p)       (((long)(p)->Stamina + (long)(p)->Strength) * 200)  /* in cm3 -> max 1 m3 f�r eine Person */
+
+#define   tcImprovePanic(p, v)          ((p)->Panic = (p)->Panic - ((p)->Panic / (v)))
+#define   tcImproveKnown(p, v)          ((p)->Known = min(255, (v)))
+
+/* defines for object Car */
+#define   tcENGINE_PERC                 50   /* 50 % of costs of a car is engine   */
+#define   tcBODY_PERC                   40   /* 40 % of costs of a car is bodywork */
+#define   tcTYRE_PERC                   10   /* 10 % of costs of a car are tyres   */
+
+#define   tcCalcCarState(car)           (car->State = ( (long)(car->MotorState) + (long)(car->BodyWorkState) + (long)(car->TyreState)) /3)
+
+#define   tcCostsPerEngineRepair(car)   (max(((car->Value * tcENGINE_PERC) / 25500), 2))
+#define   tcCostsPerBodyRepair(car)     (max(((car->Value * tcBODY_PERC  ) / 25500), 2))
+#define   tcCostsPerTyreRepair(car)     (max(((car->Value * tcTYRE_PERC  ) / 25500), 1))
+#define   tcCostsPerTotalRepair(car)    (max(((car->Value) / 255), 5))
+#define   tcColorCosts(car)             (max((Round(car->Value / 200,1)), 1))
+
+#define   tcGetCarSpeed(car)            (car->Speed)
+#define   tcGetCarPS(car)               (car->PS)
+
+#define   tcRGetCarAge(car)             (max((GetDay /365) - (car->YearOfConstruction), 1))
+#define   tcRGetCarValue(car)           (car->Value)
+
+#define   tcGetCarPrice(car)            (Round(max(((car->Value) * (car->State)) / 255, 100), 1))
+#define   tcGetCarTotalState(car)       (((long)car->MotorState + (long)car->BodyWorkState + (long)car->TyreState) / 3)
+
+#define   tcGetDealerPerc(d, p)         (min((p + (((long)p * ((long)127L - (long)d->Known)) / (long)1270)), 255))
+#define   tcGetDealerOffer(v, p)        (((long)v * (long)p) / (long)255)
+#define   tcAddDealerSymp(d, v)         ((d)->Known = ChangeAbs ((d)->Known, v, 0, 255))
+
+#define   tcSetCarMotorState(car,v)     {car->MotorState = (ubyte)ChangeAbs((long)car->MotorState,(long)v, 0, 255); tcCalcCarState(car);}
+#define   tcSetCarBodyState(car,v)      {car->BodyWorkState = (ubyte)ChangeAbs((long)car->BodyWorkState,(long)v, 0, 255); tcCalcCarState(car);}
+#define   tcSetCarTyreState(car,v)      {car->TyreState = (ubyte)ChangeAbs((long)car->TyreState,(long)v, 0, 255); tcCalcCarState(car);}
+
+/* defines for object Player */
+#define   tcGetPlayerMoney              (((Player)dbGetObject(Player_Player_1))->Money)
+#define   tcSetPlayerMoney(amount)      (((Player)dbGetObject(Player_Player_1))->Money = amount)
+#define   tcAddPlayerMoney(amount)      (((Player)dbGetObject(Player_Player_1))->Money = (tcGetPlayerMoney + amount))
+
+/* defines for object Building */
+#define   tcRGetGRate(bui)              (bui->GRate)
+#define   tcRGetBuildStrike(bui)        (bui->Strike)
+
+#define   tcGetBuildPoliceT(bui)        (bui->PoliceTime)
+#define   tcGetBuildGRate(bui)          (bui->GRate)
+
+ulong     tcGetBuildValues(Building bui);
+
+#define   tcAddBuildExactlyness(bui,v)  (bui->Exactlyness = (ubyte)ChangeAbs((long)bui->Exactlyness,(long)v, 0, 255))
+#define   tcAddBuildStrike(bui,v)       (bui->Strike = (ubyte)ChangeAbs((long)bui->Strike,(long)v, 0, 255))
+
+/* defines for object Tool */
+#define   tcRGetDanger(tool)            (tool->Danger)
+#define   tcRGetVolume(tool)            (tool->Volume)
+
+#define   tcGetToolPrice(tool)          (tool->Value)
+#define   tcGetToolTraderOffer(tool)    (max((tcGetToolPrice(tool) - (tcGetToolPrice(tool) / tcDerivation(10,20))), 1))
+
+/* costs */
+#define   tcCOSTS_FOR_HOTEL             10
+
+/* Plan */
+#define   tcEscapeTime(building)        (16400 / building->EscapeRouteLength)
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/data/database.c b/cosp-0.6-src/ClouRemake/ClouRemake/data/database.c
new file mode 100644
index 0000000..6919379
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/data/database.c
@@ -0,0 +1,1636 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+
+// includes
+#include "data\database.h"
+#include "data\database_p.h"
+#include "port\port.h"
+
+// public declaration
+LIST *ObjectList           = NULL;
+LIST *ObjectListPrivate    = NULL;
+ulong ObjectListWidth      = 0L;
+char *(*ObjectListPrevString)(ulong, ulong, void *) = NULL;
+char *(*ObjectListSuccString)(ulong, ulong, void *) = NULL;
+
+
+// private declaration
+ulong ObjectListType       = 0L;
+ulong ObjectListFlags      = OLF_NORMAL;
+
+ubyte ObjectLoadMode			= DB_LOAD_MODE_STD;
+
+LIST *objHash[OBJ_HASH_SIZE];
+char decodeStr [11];
+
+
+// private functions - RELATION
+int dbCompare (KEY key1, KEY key2)
+{
+	return (key1 == key2);
+}
+
+char *dbDecode (KEY key)
+{
+   struct dbObject *obj = dbGetObjectReal(key);
+
+   sprintf (decodeStr, "%ld", obj->nr);
+   return decodeStr;
+}
+
+KEY dbEncode(char *key)
+{
+	void *obj = dbGetObject(atol(key));
+
+	if (!obj)
+	{
+		// LucyG 2017-10-31 : Buckingham Palace crashed with key=""
+		Log("%s|%s: dbEncode(\"%s\")", __FILE__, __func__, key);
+		//NewErrorMsg(Internal_Error, __FILE__, __func__, 1);
+	}
+	return(obj);
+}
+
+struct dbObject *dbFindRealObject(ulong realNr, ulong offset, ulong size)
+{
+   struct dbObject *obj;
+   ubyte            objHashValue;
+
+   for (objHashValue = 0; objHashValue < OBJ_HASH_SIZE; objHashValue++)
+	{
+		for (obj = (struct dbObject *)LIST_HEAD(objHash[objHashValue]); NODE_SUCC(obj); obj = (struct dbObject *)NODE_SUCC(obj))
+		{
+			if (obj->nr > offset)
+			{
+				if (size && (obj->nr > offset+size))
+					continue;
+
+				if (obj->realNr == realNr)
+					return obj;
+			}
+		}
+	}
+
+	return NULL;
+}
+
+
+// public functions - OBJECTS
+void dbSetLoadObjectsMode(ubyte mode)
+{
+	ObjectLoadMode = mode;
+}
+
+/*
+ * Some object structs need rework
+ * for correct memory alignment!
+ *
+ * We could also convert the data files
+ * to the new format instead...
+ */
+static ubyte dbLoadOrSaveObject(struct dbObjectHeader *objHd, void *obj, FILE *file, ulong structSize, char mode)
+{
+	void (*func)(FILE*, void*,ulong);
+
+	if (mode == 0) // Read mode
+	{
+		func = dskRead;
+
+		switch (objHd->type)
+		{
+		case Object_Person:
+			dbcheckSize(sizeof(*(Person)obj),structSize);
+
+			func(file, &((Person)obj)->PictID, sizeof(unsigned short));
+			EndianW(&((Person)obj)->PictID);
+			func(file, &((Person)obj)->Job, sizeof(unsigned short));
+			EndianW(&((Person)obj)->Job);
+			func(file, &((Person)obj)->Sex, sizeof(unsigned short));
+			EndianW(&((Person)obj)->Sex);
+			func(file, &((Person)obj)->Age, sizeof(char));
+			func(file, &((Person)obj)->Health, sizeof(unsigned char));
+			func(file, &((Person)obj)->Mood, sizeof(unsigned char));
+			func(file, &((Person)obj)->Intelligence, sizeof(unsigned char));
+			func(file, &((Person)obj)->Strength, sizeof(unsigned char));
+			func(file, &((Person)obj)->Stamina, sizeof(unsigned char));
+			func(file, &((Person)obj)->Loyality, sizeof(unsigned char));
+			func(file, &((Person)obj)->Skill, sizeof(unsigned char));
+			func(file, &((Person)obj)->Known, sizeof(unsigned char));
+			func(file, &((Person)obj)->Popularity, sizeof(unsigned char));
+			func(file, &((Person)obj)->Avarice, sizeof(unsigned char));
+			func(file, &((Person)obj)->Panic, sizeof(unsigned char));
+			func(file, &((Person)obj)->KnownToPolice, sizeof(unsigned char));
+			func(file, &((Person)obj)->TalkBits, sizeof(unsigned long));
+			EndianL(&((Person)obj)->TalkBits);
+			func(file, &((Person)obj)->TalkFileID, sizeof(unsigned char));
+			func(file, &((Person)obj)->OldHealth, sizeof(unsigned char));
+			break;
+		case Object_Player:
+			dbcheckSize(sizeof(*(Player)obj),structSize);
+
+			func(file, &((Player)obj)->Money, sizeof(unsigned long));
+			EndianL(&((Player)obj)->Money);
+			func(file, &((Player)obj)->StolenMoney, sizeof(unsigned long));
+			EndianL(&((Player)obj)->StolenMoney);
+			func(file, &((Player)obj)->MyStolenMoney, sizeof(unsigned long));
+			EndianL(&((Player)obj)->MyStolenMoney);
+			func(file, &((Player)obj)->NrOfBurglaries, sizeof(unsigned char));
+			func(file, &((Player)obj)->JobOfferCount, sizeof(unsigned char));
+			func(file, &((Player)obj)->MattsPart, sizeof(unsigned char));
+			func(file, &((Player)obj)->CurrScene, sizeof(unsigned long));
+			EndianL(&((Player)obj)->CurrScene);
+			func(file, &((Player)obj)->CurrDay, sizeof(unsigned long));
+			EndianL(&((Player)obj)->CurrDay);
+			func(file, &((Player)obj)->CurrMinute, sizeof(unsigned long));
+			EndianL(&((Player)obj)->CurrMinute);
+			func(file, &((Player)obj)->CurrLocation, sizeof(unsigned long));
+			EndianL(&((Player)obj)->CurrLocation);
+			break;
+		case Object_Car:
+			dbcheckSize(sizeof(*(Car)obj),structSize);
+
+			func(file, &((Car)obj)->PictID, sizeof(unsigned short));
+			EndianW(&((Car)obj)->PictID);
+			func(file, &((Car)obj)->Land, sizeof(unsigned short));
+			EndianW(&((Car)obj)->Land);
+			func(file, &((Car)obj)->Value, sizeof(unsigned long));
+			EndianL(&((Car)obj)->Value);
+			func(file, &((Car)obj)->YearOfConstruction, sizeof(unsigned short));
+			EndianW(&((Car)obj)->YearOfConstruction);
+			func(file, &((Car)obj)->ColorIndex, sizeof(unsigned short));
+			EndianW(&((Car)obj)->ColorIndex);
+			func(file, &((Car)obj)->Strike, sizeof(unsigned char));
+			func(file, &((Car)obj)->Capacity, sizeof(unsigned long));
+			EndianL(&((Car)obj)->Capacity);
+			func(file, &((Car)obj)->PS, sizeof(unsigned char));
+			func(file, &((Car)obj)->Speed, sizeof(unsigned char));
+			func(file, &((Car)obj)->State, sizeof(unsigned char));
+			func(file, &((Car)obj)->MotorState, sizeof(unsigned char));
+			func(file, &((Car)obj)->BodyWorkState, sizeof(unsigned char));
+			func(file, &((Car)obj)->TyreState, sizeof(unsigned char));
+			func(file, &((Car)obj)->PlacesInCar, sizeof(unsigned char));
+			break;
+		case Object_Ability:
+			dbcheckSize(sizeof(*(Ability)obj),structSize);
+
+			func(file, &((Ability)obj)->Name, sizeof(unsigned short));
+			EndianW(&((Ability)obj)->Name);
+			func(file, &((Ability)obj)->Use, sizeof(unsigned long));
+			EndianL(&((Ability)obj)->Use);
+			break;
+		case Object_Tool:
+			dbcheckSize(sizeof(*(Tool)obj),structSize);
+
+			func(file, &((Tool)obj)->PictID, sizeof(unsigned short));
+			EndianW(&((Tool)obj)->PictID);
+			func(file, &((Tool)obj)->Value, sizeof(unsigned long));
+			EndianL(&((Tool)obj)->Value);
+			func(file, &((Tool)obj)->Danger, sizeof(unsigned char));
+			func(file, &((Tool)obj)->Volume, sizeof(unsigned char));
+			func(file, &((Tool)obj)->Effect, sizeof(unsigned char));
+			break;
+		case Object_LSObject:
+			dbcheckSize(sizeof(*(LSObject)obj),structSize);
+
+			func(file, &((LSObject)obj)->us_OffsetFact, sizeof(unsigned short));
+			EndianW(&((LSObject)obj)->us_OffsetFact);
+			func(file, &((LSObject)obj)->us_DestX, sizeof(unsigned short));
+			EndianW(&((LSObject)obj)->us_DestX);
+			func(file, &((LSObject)obj)->us_DestY, sizeof(unsigned short));
+			EndianW(&((LSObject)obj)->us_DestY);
+			func(file, &((LSObject)obj)->uch_ExactX, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_ExactY, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_ExactX1, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_ExactY1, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_Size, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_Visible, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_Chained, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->ul_Status, sizeof(unsigned long));
+			EndianL(&((LSObject)obj)->ul_Status);
+			func(file, &((LSObject)obj)->Type, sizeof(unsigned long));
+			EndianL(&((LSObject)obj)->Type);
+			break;
+		case Object_Building:
+			dbcheckSize(sizeof(*(Building)obj),structSize);
+
+			func(file, &((Building)obj)->LocationNr, sizeof(unsigned long));
+			EndianL(&((Building)obj)->LocationNr);
+			func(file, &((Building)obj)->PoliceTime, sizeof(unsigned short));
+			EndianW(&((Building)obj)->PoliceTime);
+			func(file, &((Building)obj)->GTime, sizeof(unsigned short));
+			EndianW(&((Building)obj)->GTime);
+			func(file, &((Building)obj)->Exactlyness, sizeof(unsigned char));
+			func(file, &((Building)obj)->GRate, sizeof(unsigned char));
+			func(file, &((Building)obj)->Strike, sizeof(unsigned char));
+			func(file, &((Building)obj)->Values, sizeof(unsigned long));
+			EndianL(&((Building)obj)->Values);
+			func(file, &((Building)obj)->EscapeRoute, sizeof(unsigned short));
+			EndianW(&((Building)obj)->EscapeRoute);
+			func(file, &((Building)obj)->EscapeRouteLength, sizeof(unsigned char));
+			func(file, &((Building)obj)->RadioGuarding, sizeof(unsigned char));
+			func(file, &((Building)obj)->MaxVolume, sizeof(unsigned char));
+			func(file, &((Building)obj)->GuardStrength, sizeof(unsigned char));
+			func(file, &((Building)obj)->CarXPos, sizeof(unsigned short));
+			EndianW(&((Building)obj)->CarXPos);
+			func(file, &((Building)obj)->CarYPos, sizeof(unsigned short));
+			EndianW(&((Building)obj)->CarYPos);
+			if (bProfidisk)
+				func(file, &((Building)obj)->DiskId, sizeof(unsigned char));
+			break;
+		case Object_LSArea:
+			dbcheckSize(sizeof(*(LSArea)obj),structSize);
+
+			func(file, &((LSArea)obj)->us_Coll16ID, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_Coll16ID);
+			func(file, &((LSArea)obj)->us_Coll32ID, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_Coll32ID);
+			func(file, &((LSArea)obj)->us_Coll48ID, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_Coll48ID);
+			func(file, &((LSArea)obj)->us_PlanColl16ID, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_PlanColl16ID);
+			func(file, &((LSArea)obj)->us_PlanColl32ID, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_PlanColl32ID);
+			func(file, &((LSArea)obj)->us_PlanColl48ID, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_PlanColl48ID);
+			func(file, &((LSArea)obj)->us_FloorCollID, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_FloorCollID);
+			func(file, &((LSArea)obj)->us_PlanFloorCollID, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_PlanFloorCollID);
+			func(file, &((LSArea)obj)->us_Width, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_Width);
+			func(file, &((LSArea)obj)->us_Height, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_Height);
+			func(file, &((LSArea)obj)->ul_ObjectBaseNr, sizeof(unsigned long));
+			EndianL(&((LSArea)obj)->ul_ObjectBaseNr);
+			func(file, &((LSArea)obj)->uch_Darkness, sizeof(unsigned char));
+			func(file, &((LSArea)obj)->us_StartX0, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartX0);
+			func(file, &((LSArea)obj)->us_StartX1, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartX1);
+			func(file, &((LSArea)obj)->us_StartX2, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartX2);
+			func(file, &((LSArea)obj)->us_StartX3, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartX3);
+			func(file, &((LSArea)obj)->us_StartX4, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartX4);
+			func(file, &((LSArea)obj)->us_StartX5, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartX5);
+			func(file, &((LSArea)obj)->us_StartY0, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartY0);
+			func(file, &((LSArea)obj)->us_StartY1, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartY1);
+			func(file, &((LSArea)obj)->us_StartY2, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartY2);
+			func(file, &((LSArea)obj)->us_StartY3, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartY3);
+			func(file, &((LSArea)obj)->us_StartY4, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartY4);
+			func(file, &((LSArea)obj)->us_StartY5, sizeof(unsigned short));
+			EndianW(&((LSArea)obj)->us_StartY5);
+			break;
+
+		case Object_Location:
+			dbcheckSize(sizeof(*(Location)obj),structSize);
+
+			func(file, &((Location)obj)->LocationNr, sizeof(unsigned long));
+			EndianL(&((Location)obj)->LocationNr);
+
+			func(file, &((Location)obj)->OpenFromMinute, sizeof(unsigned short));
+			EndianW(&((Location)obj)->OpenFromMinute);
+
+			func(file, &((Location)obj)->OpenToMinute, sizeof(unsigned short));
+			EndianW(&((Location)obj)->OpenToMinute);
+			break;
+		case Object_Item:
+			dbcheckSize(sizeof(*(Item)obj),structSize);
+
+			func(file, &((Item)obj)->Type, sizeof(unsigned short));
+			EndianW(&((Item)obj)->Type);
+
+			func(file, &((Item)obj)->OffsetFact, sizeof(unsigned short));
+			EndianW(&((Item)obj)->OffsetFact);
+
+			func(file, &((Item)obj)->HExactXOffset, sizeof(unsigned short));
+			EndianW(&((Item)obj)->HExactXOffset);
+
+			func(file, &((Item)obj)->HExactYOffset, sizeof(unsigned short));
+			EndianW(&((Item)obj)->HExactYOffset);
+
+			func(file, &((Item)obj)->HExactWidth, sizeof(unsigned short));
+			EndianW(&((Item)obj)->HExactWidth);
+
+			func(file, &((Item)obj)->HExactHeight, sizeof(unsigned short));
+			EndianW(&((Item)obj)->HExactHeight);
+
+			func(file, &((Item)obj)->VExactXOffset, sizeof(unsigned short));
+			EndianW(&((Item)obj)->VExactXOffset);
+
+			func(file, &((Item)obj)->VExactYOffset, sizeof(unsigned short));
+			EndianW(&((Item)obj)->VExactYOffset);
+
+			func(file, &((Item)obj)->VExactWidth, sizeof(unsigned short));
+			EndianW(&((Item)obj)->VExactWidth);
+
+			func(file, &((Item)obj)->VExactHeight, sizeof(unsigned short));
+			EndianW(&((Item)obj)->VExactHeight);
+
+			func(file, &((Item)obj)->Size, sizeof(unsigned char));
+			func(file, &((Item)obj)->ColorNr, sizeof(unsigned char));
+			break;
+		case Object_Environment:
+			dbcheckSize(sizeof(*(Environment)obj),structSize);
+
+			func(file, &((Environment)obj)->MattHasHotelRoom, sizeof(unsigned char));
+			func(file, &((Environment)obj)->MattHasIdentityCard, sizeof(unsigned char));
+			func(file, &((Environment)obj)->WithOrWithoutYou, sizeof(unsigned char));
+			func(file, &((Environment)obj)->MattIsInLove, sizeof(unsigned char));
+			func(file, &((Environment)obj)->SouthhamptonHappened, sizeof(unsigned char));
+			func(file, &((Environment)obj)->Present, sizeof(unsigned char));
+			func(file, &((Environment)obj)->FirstTimeInSouth, sizeof(unsigned char));
+			
+			if (bProfidisk)
+				func(file, &((Environment)obj)->PostzugDone, sizeof(unsigned char));
+
+			break;
+		case Object_London:
+			dbcheckSize(sizeof(*(London)obj),structSize);
+
+			func(file, &((London)obj)->Useless, sizeof(unsigned char));
+			break;
+		case Object_Evidence:
+			dbcheckSize(sizeof(*(Evidence)obj),structSize);
+
+			func(file, &((Evidence)obj)->pers, sizeof(unsigned long));
+			EndianL(&((Evidence)obj)->pers);
+			func(file, &((Evidence)obj)->Recognition, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->WalkTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->WaitTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->WorkTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->KillTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->CallTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->PaperTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->FotoTrail, sizeof(unsigned char));
+			break;
+		case Object_Loot:
+			dbcheckSize(sizeof(*(Loot)obj),structSize);
+
+			func(file, &((Loot)obj)->Type, sizeof(unsigned short));
+			EndianW(&((Loot)obj)->Type);
+			func(file, &((Loot)obj)->Name, sizeof(unsigned short));
+			EndianW(&((Loot)obj)->Name);
+			func(file, &((Loot)obj)->Volume, sizeof(unsigned long));
+			EndianL(&((Loot)obj)->Volume);
+			func(file, &((Loot)obj)->Weight, sizeof(unsigned short));
+			EndianW(&((Loot)obj)->Weight);
+			func(file, &((Loot)obj)->PictID, sizeof(unsigned short));
+			EndianW(&((Loot)obj)->PictID);
+			break;
+		case Object_CompleteLoot:
+			dbcheckSize(sizeof(*(CompleteLoot)obj),structSize);
+			
+
+			func(file, &((CompleteLoot)obj)->Bild, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->Bild);
+			func(file, &((CompleteLoot)obj)->Gold, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->Gold);
+			func(file, &((CompleteLoot)obj)->Geld, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->Geld);
+			func(file, &((CompleteLoot)obj)->Juwelen, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->Juwelen);
+			func(file, &((CompleteLoot)obj)->Delikates, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->Delikates);
+			func(file, &((CompleteLoot)obj)->Statue, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->Statue);
+			func(file, &((CompleteLoot)obj)->Kuriositaet, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->Kuriositaet);
+			func(file, &((CompleteLoot)obj)->HistKunst, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->HistKunst);
+			func(file, &((CompleteLoot)obj)->GebrauchsArt, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->GebrauchsArt);
+			func(file, &((CompleteLoot)obj)->Vase, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->Vase);
+			func(file, &((CompleteLoot)obj)->TotalWeight, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->TotalWeight);
+			func(file, &((CompleteLoot)obj)->TotalVolume, sizeof(unsigned long));
+			EndianL(&((CompleteLoot)obj)->TotalVolume);
+			break;
+		case Object_LSOLock:
+			dbcheckSize(sizeof(*(LSOLock)obj),structSize);
+
+			func(file, &((LSOLock)obj)->Type, sizeof(unsigned short));
+			EndianW(&((LSOLock)obj)->Type);
+			break;
+		case Object_Police:
+			dbcheckSize(sizeof(*(Police)obj),structSize);
+
+			func(file, &((Police)obj)->PictID, sizeof(unsigned short));
+			EndianW(&((Police)obj)->PictID);
+			func(file, &((Police)obj)->LivingID, sizeof(unsigned char));
+			break;
+		case Object_LSRoom:
+			dbcheckSize(sizeof(*(LSRoom)obj),structSize);
+
+			func(file, &((LSRoom)obj)->us_LeftEdge, sizeof(unsigned short));
+			EndianW(&((LSRoom)obj)->us_LeftEdge);
+			func(file, &((LSRoom)obj)->us_TopEdge, sizeof(unsigned short));
+			EndianW(&((LSRoom)obj)->us_TopEdge);
+			func(file, &((LSRoom)obj)->us_Width, sizeof(unsigned short));
+			EndianW(&((LSRoom)obj)->us_Width);
+			func(file, &((LSRoom)obj)->us_Height, sizeof(unsigned short));
+			EndianW(&((LSRoom)obj)->us_Height);
+			break;
+		default:
+			//func(file, obj, objHd->size);
+			Log("Error: Unknown object type %d |dbLoadOrSaveObject" ,objHd->type);
+			break;
+		}
+	}
+	else if (mode == 1) // Write mode
+	{
+				func = dskWrite;
+				switch (objHd->type)
+		{
+		case Object_Person:
+			dbcheckSize(sizeof(*(Person)obj),structSize);
+
+			EndianW(&((Person)obj)->PictID);
+			func(file, &((Person)obj)->PictID, sizeof(unsigned short));
+
+			EndianW(&((Person)obj)->Job);
+			func(file, &((Person)obj)->Job, sizeof(unsigned short));
+			
+			EndianW(&((Person)obj)->Sex);
+			func(file, &((Person)obj)->Sex, sizeof(unsigned short));
+			func(file, &((Person)obj)->Age, sizeof(char));
+			func(file, &((Person)obj)->Health, sizeof(unsigned char));
+			func(file, &((Person)obj)->Mood, sizeof(unsigned char));
+			func(file, &((Person)obj)->Intelligence, sizeof(unsigned char));
+			func(file, &((Person)obj)->Strength, sizeof(unsigned char));
+			func(file, &((Person)obj)->Stamina, sizeof(unsigned char));
+			func(file, &((Person)obj)->Loyality, sizeof(unsigned char));
+			func(file, &((Person)obj)->Skill, sizeof(unsigned char));
+			func(file, &((Person)obj)->Known, sizeof(unsigned char));
+			func(file, &((Person)obj)->Popularity, sizeof(unsigned char));
+			func(file, &((Person)obj)->Avarice, sizeof(unsigned char));
+			func(file, &((Person)obj)->Panic, sizeof(unsigned char));
+			func(file, &((Person)obj)->KnownToPolice, sizeof(unsigned char));
+
+			EndianL(&((Person)obj)->TalkBits);
+			func(file, &((Person)obj)->TalkBits, sizeof(unsigned long));
+			func(file, &((Person)obj)->TalkFileID, sizeof(unsigned char));
+			func(file, &((Person)obj)->OldHealth, sizeof(unsigned char));
+			break;
+		case Object_Player:
+			dbcheckSize(sizeof(*(Player)obj),structSize);
+
+			EndianL(&((Player)obj)->Money);
+			func(file, &((Player)obj)->Money, sizeof(unsigned long));
+
+			EndianL(&((Player)obj)->StolenMoney);
+			func(file, &((Player)obj)->StolenMoney, sizeof(unsigned long));
+
+			EndianL(&((Player)obj)->MyStolenMoney);
+			func(file, &((Player)obj)->MyStolenMoney, sizeof(unsigned long));
+			func(file, &((Player)obj)->NrOfBurglaries, sizeof(unsigned char));
+			func(file, &((Player)obj)->JobOfferCount, sizeof(unsigned char));
+			func(file, &((Player)obj)->MattsPart, sizeof(unsigned char));
+
+			EndianL(&((Player)obj)->CurrScene);
+			func(file, &((Player)obj)->CurrScene, sizeof(unsigned long));
+
+			EndianL(&((Player)obj)->CurrDay);
+			func(file, &((Player)obj)->CurrDay, sizeof(unsigned long));
+
+			EndianL(&((Player)obj)->CurrMinute);
+			func(file, &((Player)obj)->CurrMinute, sizeof(unsigned long));
+
+			EndianL(&((Player)obj)->CurrLocation);
+			func(file, &((Player)obj)->CurrLocation, sizeof(unsigned long));
+
+			break;
+		case Object_Car:
+			dbcheckSize(sizeof(*(Car)obj),structSize);
+
+			EndianW(&((Car)obj)->PictID);
+			func(file, &((Car)obj)->PictID, sizeof(unsigned short));
+
+			EndianW(&((Car)obj)->Land);
+			func(file, &((Car)obj)->Land, sizeof(unsigned short));
+
+			EndianL(&((Car)obj)->Value);
+			func(file, &((Car)obj)->Value, sizeof(unsigned long));
+
+			EndianW(&((Car)obj)->YearOfConstruction);
+			func(file, &((Car)obj)->YearOfConstruction, sizeof(unsigned short));
+
+			EndianW(&((Car)obj)->ColorIndex);
+			func(file, &((Car)obj)->ColorIndex, sizeof(unsigned short));
+			func(file, &((Car)obj)->Strike, sizeof(unsigned char));
+			
+			EndianL(&((Car)obj)->Capacity);
+			func(file, &((Car)obj)->Capacity, sizeof(unsigned long));
+			func(file, &((Car)obj)->PS, sizeof(unsigned char));
+			func(file, &((Car)obj)->Speed, sizeof(unsigned char));
+			func(file, &((Car)obj)->State, sizeof(unsigned char));
+			func(file, &((Car)obj)->MotorState, sizeof(unsigned char));
+			func(file, &((Car)obj)->BodyWorkState, sizeof(unsigned char));
+			func(file, &((Car)obj)->TyreState, sizeof(unsigned char));
+			func(file, &((Car)obj)->PlacesInCar, sizeof(unsigned char));
+			break;
+		case Object_Ability:
+			dbcheckSize(sizeof(*(Ability)obj),structSize);
+
+			EndianW(&((Ability)obj)->Name);
+			func(file, &((Ability)obj)->Name, sizeof(unsigned short));
+
+			EndianL(&((Ability)obj)->Use);
+			func(file, &((Ability)obj)->Use, sizeof(unsigned long));
+
+			break;
+		case Object_Tool:
+			dbcheckSize(sizeof(*(Tool)obj),structSize);
+
+			EndianW(&((Tool)obj)->PictID);
+			func(file, &((Tool)obj)->PictID, sizeof(unsigned short));
+
+			EndianL(&((Tool)obj)->Value);
+			func(file, &((Tool)obj)->Value, sizeof(unsigned long));
+			func(file, &((Tool)obj)->Danger, sizeof(unsigned char));
+			func(file, &((Tool)obj)->Volume, sizeof(unsigned char));
+			func(file, &((Tool)obj)->Effect, sizeof(unsigned char));
+			break;
+		case Object_LSObject:
+			dbcheckSize(sizeof(*(LSObject)obj),structSize);
+
+			EndianW(&((LSObject)obj)->us_OffsetFact);
+			func(file, &((LSObject)obj)->us_OffsetFact, sizeof(unsigned short));
+
+			EndianW(&((LSObject)obj)->us_DestX);
+			func(file, &((LSObject)obj)->us_DestX, sizeof(unsigned short));
+
+			EndianW(&((LSObject)obj)->us_DestY);
+			func(file, &((LSObject)obj)->us_DestY, sizeof(unsigned short));
+			func(file, &((LSObject)obj)->uch_ExactX, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_ExactY, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_ExactX1, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_ExactY1, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_Size, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_Visible, sizeof(unsigned char));
+			func(file, &((LSObject)obj)->uch_Chained, sizeof(unsigned char));
+
+			EndianL(&((LSObject)obj)->ul_Status);
+			func(file, &((LSObject)obj)->ul_Status, sizeof(unsigned long));
+
+			EndianL(&((LSObject)obj)->Type);
+			func(file, &((LSObject)obj)->Type, sizeof(unsigned long));
+
+			break;
+		case Object_Building:
+			dbcheckSize(sizeof(*(Building)obj),structSize);
+
+			EndianL(&((Building)obj)->LocationNr);
+			func(file, &((Building)obj)->LocationNr, sizeof(unsigned long));
+
+			EndianW(&((Building)obj)->PoliceTime);
+			func(file, &((Building)obj)->PoliceTime, sizeof(unsigned short));
+
+			EndianW(&((Building)obj)->GTime);
+			func(file, &((Building)obj)->GTime, sizeof(unsigned short));
+			func(file, &((Building)obj)->Exactlyness, sizeof(unsigned char));
+			func(file, &((Building)obj)->GRate, sizeof(unsigned char));
+			func(file, &((Building)obj)->Strike, sizeof(unsigned char));
+
+			EndianL(&((Building)obj)->Values);
+			func(file, &((Building)obj)->Values, sizeof(unsigned long));
+
+			EndianW(&((Building)obj)->EscapeRoute);
+			func(file, &((Building)obj)->EscapeRoute, sizeof(unsigned short));
+			func(file, &((Building)obj)->EscapeRouteLength, sizeof(unsigned char));
+			func(file, &((Building)obj)->RadioGuarding, sizeof(unsigned char));
+			func(file, &((Building)obj)->MaxVolume, sizeof(unsigned char));
+			func(file, &((Building)obj)->GuardStrength, sizeof(unsigned char));
+
+			EndianW(&((Building)obj)->CarXPos);
+			func(file, &((Building)obj)->CarXPos, sizeof(unsigned short));
+
+			EndianW(&((Building)obj)->CarYPos);
+			func(file, &((Building)obj)->CarYPos, sizeof(unsigned short));
+
+			if (bProfidisk)
+				func(file, &((Building)obj)->DiskId, sizeof(unsigned char));
+			break;
+		case Object_LSArea:
+			dbcheckSize(sizeof(*(LSArea)obj),structSize);
+
+						EndianW(&((LSArea)obj)->us_Coll16ID);
+			func(file, &((LSArea)obj)->us_Coll16ID, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_Coll32ID);
+			func(file, &((LSArea)obj)->us_Coll32ID, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_Coll48ID);
+			func(file, &((LSArea)obj)->us_Coll48ID, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_PlanColl16ID);
+			func(file, &((LSArea)obj)->us_PlanColl16ID, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_PlanColl32ID);
+			func(file, &((LSArea)obj)->us_PlanColl32ID, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_PlanColl48ID);
+			func(file, &((LSArea)obj)->us_PlanColl48ID, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_FloorCollID);
+			func(file, &((LSArea)obj)->us_FloorCollID, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_PlanFloorCollID);
+			func(file, &((LSArea)obj)->us_PlanFloorCollID, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_Width);
+			func(file, &((LSArea)obj)->us_Width, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_Height);
+			func(file, &((LSArea)obj)->us_Height, sizeof(unsigned short));
+
+			EndianL(&((LSArea)obj)->ul_ObjectBaseNr);
+			func(file, &((LSArea)obj)->ul_ObjectBaseNr, sizeof(unsigned long));
+			func(file, &((LSArea)obj)->uch_Darkness, sizeof(unsigned char));
+
+			EndianW(&((LSArea)obj)->us_StartX0);
+			func(file, &((LSArea)obj)->us_StartX0, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartX1);
+			func(file, &((LSArea)obj)->us_StartX1, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartX2);
+			func(file, &((LSArea)obj)->us_StartX2, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartX3);
+			func(file, &((LSArea)obj)->us_StartX3, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartX4);
+			func(file, &((LSArea)obj)->us_StartX4, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartX5);
+			func(file, &((LSArea)obj)->us_StartX5, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartY0);
+			func(file, &((LSArea)obj)->us_StartY0, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartY1);
+			func(file, &((LSArea)obj)->us_StartY1, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartY2);
+			func(file, &((LSArea)obj)->us_StartY2, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartY3);
+			func(file, &((LSArea)obj)->us_StartY3, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartY4);
+			func(file, &((LSArea)obj)->us_StartY4, sizeof(unsigned short));
+
+			EndianW(&((LSArea)obj)->us_StartY5);
+			func(file, &((LSArea)obj)->us_StartY5, sizeof(unsigned short));
+
+			break;
+
+		case Object_Location:
+			dbcheckSize(sizeof(*(Location)obj),structSize);
+
+			EndianL(&((Location)obj)->LocationNr);
+			func(file, &((Location)obj)->LocationNr, sizeof(unsigned long));
+
+			EndianW(&((Location)obj)->OpenFromMinute);
+			func(file, &((Location)obj)->OpenFromMinute, sizeof(unsigned short));
+			
+			EndianW(&((Location)obj)->OpenToMinute);
+			func(file, &((Location)obj)->OpenToMinute, sizeof(unsigned short));
+			
+			break;
+		case Object_Item:
+			dbcheckSize(sizeof(*(Item)obj),structSize);
+
+			EndianW(&((Item)obj)->Type);
+			func(file, &((Item)obj)->Type, sizeof(unsigned short));
+			
+			EndianW(&((Item)obj)->OffsetFact);
+			func(file, &((Item)obj)->OffsetFact, sizeof(unsigned short));
+			
+			EndianW(&((Item)obj)->HExactXOffset);
+			func(file, &((Item)obj)->HExactXOffset, sizeof(unsigned short));
+			
+			EndianW(&((Item)obj)->HExactYOffset);
+			func(file, &((Item)obj)->HExactYOffset, sizeof(unsigned short));
+			
+			EndianW(&((Item)obj)->HExactWidth);
+			func(file, &((Item)obj)->HExactWidth, sizeof(unsigned short));
+			
+			EndianW(&((Item)obj)->HExactHeight);
+			func(file, &((Item)obj)->HExactHeight, sizeof(unsigned short));
+			
+			EndianW(&((Item)obj)->VExactXOffset);
+			func(file, &((Item)obj)->VExactXOffset, sizeof(unsigned short));
+			
+			EndianW(&((Item)obj)->VExactYOffset);
+			func(file, &((Item)obj)->VExactYOffset, sizeof(unsigned short));
+			
+			EndianW(&((Item)obj)->VExactWidth);
+			func(file, &((Item)obj)->VExactWidth, sizeof(unsigned short));
+			
+			EndianW(&((Item)obj)->VExactHeight);
+			func(file, &((Item)obj)->VExactHeight, sizeof(unsigned short));
+			
+			func(file, &((Item)obj)->Size, sizeof(unsigned char));
+			func(file, &((Item)obj)->ColorNr, sizeof(unsigned char));
+			break;
+
+		case Object_Environment:
+			dbcheckSize(sizeof(*(Environment)obj),structSize);
+
+			func(file, &((Environment)obj)->MattHasHotelRoom, sizeof(unsigned char));
+			func(file, &((Environment)obj)->MattHasIdentityCard, sizeof(unsigned char));
+			func(file, &((Environment)obj)->WithOrWithoutYou, sizeof(unsigned char));
+			func(file, &((Environment)obj)->MattIsInLove, sizeof(unsigned char));
+			func(file, &((Environment)obj)->SouthhamptonHappened, sizeof(unsigned char));
+			func(file, &((Environment)obj)->Present, sizeof(unsigned char));
+			func(file, &((Environment)obj)->FirstTimeInSouth, sizeof(unsigned char));
+
+			if (bProfidisk)
+				func(file, &((Environment)obj)->PostzugDone, sizeof(unsigned char));
+
+			break;
+		case Object_London:
+			dbcheckSize(sizeof(*(London)obj),structSize);
+
+			func(file, &((London)obj)->Useless, sizeof(unsigned char));
+			break;
+		case Object_Evidence:
+			dbcheckSize(sizeof(*(Evidence)obj),structSize);
+
+			EndianL(&((Evidence)obj)->pers);
+			func(file, &((Evidence)obj)->pers, sizeof(unsigned long));
+
+			func(file, &((Evidence)obj)->Recognition, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->WalkTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->WaitTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->WorkTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->KillTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->CallTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->PaperTrail, sizeof(unsigned char));
+			func(file, &((Evidence)obj)->FotoTrail, sizeof(unsigned char));
+			break;
+		case Object_Loot:
+			dbcheckSize(sizeof(*(Loot)obj),structSize);
+
+			EndianW(&((Loot)obj)->Type);
+			func(file, &((Loot)obj)->Type, sizeof(unsigned short));
+
+			EndianW(&((Loot)obj)->Name);
+			func(file, &((Loot)obj)->Name, sizeof(unsigned short));
+
+			EndianL(&((Loot)obj)->Volume);
+			func(file, &((Loot)obj)->Volume, sizeof(unsigned long));
+
+			EndianW(&((Loot)obj)->Weight);
+			func(file, &((Loot)obj)->Weight, sizeof(unsigned short));
+
+			EndianW(&((Loot)obj)->PictID);
+			func(file, &((Loot)obj)->PictID, sizeof(unsigned short));
+
+			break;
+		case Object_CompleteLoot:
+			dbcheckSize(sizeof(*(CompleteLoot)obj),structSize);
+
+			EndianL(&((CompleteLoot)obj)->Bild);
+			func(file, &((CompleteLoot)obj)->Bild, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->Gold);
+			func(file, &((CompleteLoot)obj)->Gold, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->Geld);
+			func(file, &((CompleteLoot)obj)->Geld, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->Juwelen);
+			func(file, &((CompleteLoot)obj)->Juwelen, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->Delikates);
+			func(file, &((CompleteLoot)obj)->Delikates, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->Statue);
+			func(file, &((CompleteLoot)obj)->Statue, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->Kuriositaet);
+			func(file, &((CompleteLoot)obj)->Kuriositaet, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->HistKunst);
+			func(file, &((CompleteLoot)obj)->HistKunst, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->GebrauchsArt);
+			func(file, &((CompleteLoot)obj)->GebrauchsArt, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->Vase);
+			func(file, &((CompleteLoot)obj)->Vase, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->TotalWeight);
+			func(file, &((CompleteLoot)obj)->TotalWeight, sizeof(unsigned long));
+
+			EndianL(&((CompleteLoot)obj)->TotalVolume);
+			func(file, &((CompleteLoot)obj)->TotalVolume, sizeof(unsigned long));
+
+			break;
+		case Object_LSOLock:
+			dbcheckSize(sizeof(*(LSOLock)obj),structSize);
+
+			EndianW(&((LSOLock)obj)->Type);
+			func(file, &((LSOLock)obj)->Type, sizeof(unsigned short));
+
+			break;
+		case Object_Police:
+			dbcheckSize(sizeof(*(Police)obj),structSize);
+
+			EndianW(&((Police)obj)->PictID);
+			func(file, &((Police)obj)->PictID, sizeof(unsigned short));
+
+			func(file, &((Police)obj)->LivingID, sizeof(unsigned char));
+			break;
+		case Object_LSRoom:
+			dbcheckSize(sizeof(*(LSRoom)obj),structSize);
+
+			EndianW(&((LSRoom)obj)->us_LeftEdge);
+			func(file, &((LSRoom)obj)->us_LeftEdge, sizeof(unsigned short));
+
+			EndianW(&((LSRoom)obj)->us_TopEdge);
+			func(file, &((LSRoom)obj)->us_TopEdge, sizeof(unsigned short));
+
+			EndianW(&((LSRoom)obj)->us_Width);
+			func(file, &((LSRoom)obj)->us_Width, sizeof(unsigned short));
+
+			EndianW(&((LSRoom)obj)->us_Height);
+			func(file, &((LSRoom)obj)->us_Height, sizeof(unsigned short));
+
+			break;
+		default:
+			//func(file, obj, objHd->size);
+			Log("Error: Unknown object type %d |dbLoadOrSaveObject" ,objHd->type);
+			break;
+		}
+	}
+	return(1);
+}
+
+void	dbcheckSize(ulong objSize, ulong structSize)
+{
+    if (objSize != structSize)
+    { 
+        Log("Error: wrong size (%d != %d) |dbLoadOrSaveObject", objSize, structSize);
+    }
+}
+
+ubyte dbLoadAllObjects(char *fileName, uword diskId)
+{
+	FILE *fh;
+
+	if (fh = dskOpen(fileName, "rb", diskId))
+	{
+		ulong realNr = 1L;
+		struct dbObjectHeader objHd;
+
+		while (!dskIsEOF(fh))
+		{
+			objHd.nr   = 0L;
+			objHd.type = 0L;
+			objHd.size = 0L;
+
+			dskRead(fh, &objHd.nr,sizeof(unsigned long));
+			dskRead(fh, &objHd.type,sizeof(unsigned long));
+			dskRead(fh, &objHd.size,sizeof(unsigned long));
+
+			EndianL(&objHd.nr);
+			EndianL(&objHd.type);
+			EndianL(&objHd.size);
+
+
+			if ((objHd.nr != 0xffffffff) && (objHd.type != 0xffffffff) && (objHd.size != 0xffffffff))
+			{
+				LIST *list = NULL;
+				void *obj;
+				char *name = NULL;
+				ulong objSize = dbGetObjLoadSize(objHd.type);
+
+				if (ObjectLoadMode)
+				{
+					if (list = txtGoKey(OBJECTS_TXT, NULL))      // MOD: old version GoNextKey
+					{
+						name = NODE_NAME(LIST_HEAD(list));
+					}
+				}
+
+
+				if (!(obj = dbNewObject(objHd.nr, objHd.type, objSize, name, realNr++)))
+				{
+					dskClose(fh);
+					dbDeleteAllObjects(0L,0L);
+					return 0;
+				}
+
+				if (list)
+				{
+					RemoveList(list);
+				}
+
+				dbLoadOrSaveObject(&objHd, obj, fh, objSize,0);
+			}
+		}
+
+		dskClose(fh);
+
+		return 1;
+	}
+
+	return 0;
+}
+
+ulong dbGetObjLoadSize(ulong structType)
+{
+	switch (structType) 
+	{
+	case Object_Item:
+		return Object_Item_Size;
+	case Object_London:
+		return Object_London_Size;
+	case Object_Evidence:
+		return Object_Evidence_Size;
+	case Object_Location:
+		return Object_Location_Size;
+	case Object_Person:
+		return Object_Person_Size;
+	case Object_Car:
+		return Object_Car_Size;
+	case Object_Tool:
+		return Object_Tool_Size;
+	case Object_CompleteLoot:
+		return Object_CompleteLoot_Size;
+	case Object_Ability:
+		return Object_Ability_Size;
+	case Object_Environment:
+		return Object_Environment_Size;
+	case Object_Player:
+		return Object_Player_Size;
+	case Object_LSOLock:
+		return Object_LSOLock_Size;
+	case Object_LSObject:
+		return Object_LSObject_Size;
+	case Object_Loot:
+		return Object_Loot_Size;
+	case Object_LSRoom:
+		return Object_LSRoom_Size;
+	case Object_Building:
+		return Object_Building_Size;
+	case Object_Police:
+		return Object_Police_Size;
+	case Object_LSArea:
+		return Object_LSArea_Size;
+	default:
+		return 0;
+	}
+}
+
+ulong dbGetObjSaveSize(struct dbObjectHeader *objHd)
+{
+   switch (objHd->type) 
+	{
+	case Object_Item:
+		return 22;
+	case Object_London:
+		return 1;
+	case Object_Evidence:
+		return 12;
+	case Object_Location:
+		return 8;
+	case Object_Person:
+		return 25;
+	case Object_Car:
+		return 24;
+	case Object_Tool:
+		return 9;
+	case Object_CompleteLoot:
+		return 48;
+	case Object_Ability:
+		return 6;
+	case Object_Environment:
+		if (bProfidisk)
+		{
+			return 8;
+		}
+		else
+		{
+			return 7;
+		}
+	case Object_Player:
+		return 31;
+	case Object_LSOLock:
+		return 2;
+	case Object_LSObject:
+		return 21;
+	case Object_Loot:
+		return 12;
+	case Object_LSRoom:
+		return 8;
+	case Object_Building:
+		if (bProfidisk)
+		{
+			return 26;
+		}
+		else
+		{
+			return 25;
+		}
+	case Object_Police:
+		return 3;
+	case Object_LSArea:
+		return 49;
+	default:
+		return 0;
+	} 
+}
+
+ubyte dbSaveAllObjects(char *fileName, ulong offset, ulong size, uword diskId)
+{
+	FILE *fh;
+	struct dbObject *obj;
+	ulong realNr = 1;
+	ulong dbSize = dbGetObjectCountOfDB(offset, size);
+	ulong objSize;
+
+	if (fh = dskOpen(fileName, "wb", diskId))
+	{
+		while (realNr <= dbSize)
+		{
+			if (obj = dbFindRealObject (realNr++, offset, size))
+			{
+				struct dbObjectHeader objHd;
+
+				objHd.nr   = obj->nr;
+				objHd.type = obj->type;
+				objHd.size = dbGetObjSaveSize(&objHd);
+				
+				objSize = NODE_SIZE(obj) - sizeof(struct dbObject);
+
+				EndianL(&objHd.nr);
+				EndianL(&objHd.type);
+				EndianL(&objHd.size);
+
+				dskWrite(fh, &objHd.nr, sizeof(objHd.nr));
+				dskWrite(fh, &objHd.type, sizeof(objHd.type));
+				dskWrite(fh, &objHd.size, sizeof(objHd.size));
+
+				if ((objHd.nr != 0xffffffff) && (objHd.type != 0xffffffff) && (objHd.size != 0xffffffff))
+				{
+					dbLoadOrSaveObject(&objHd,obj+1,fh, objSize, 1);
+				}
+			}
+		}
+
+		dskClose(fh);
+
+		return 1;
+	}
+
+	return 0;
+}
+
+void dbDeleteAllObjects(ulong offset, ulong size)
+{
+	struct dbObject *obj, *pred;
+   ubyte objHashValue;
+
+	for (objHashValue = 0; objHashValue < OBJ_HASH_SIZE; objHashValue++)
+	{
+      for (obj = (struct dbObject *)LIST_HEAD(objHash[objHashValue]); NODE_SUCC(obj); obj = (struct dbObject *)NODE_SUCC(obj))
+      {
+         if (obj->nr > offset)
+         {
+            if (size && (obj->nr > offset+size))
+               continue;
+
+            pred = (struct dbObject*)NODE_PRED(obj);
+            RemNode(obj);     // MOD: old version Remove
+            FreeNode(obj);
+            obj = pred;
+         }
+      }
+   }
+}
+
+ulong dbGetObjectCountOfDB(ulong offset, ulong size)
+{
+   ulong count = 0;
+   struct dbObject *obj;
+   ubyte i;
+
+   for (i = 0; i < OBJ_HASH_SIZE; i++)
+   {
+      for (obj = (struct dbObject *)LIST_HEAD(objHash[i]); NODE_SUCC(obj); obj = (struct dbObject *)NODE_SUCC(obj))
+      {
+         if ((obj->nr > offset) && (obj->nr < (offset+size)))
+            count++;
+      }
+   }
+
+   return count;
+}
+
+
+// public functions - OBJECT
+void *dbNewObject (ulong nr, ulong type, ulong size, char *name, ulong realNr)
+{
+	struct dbObject *obj;
+	ubyte objHashValue = dbGetObjectHashNr(nr);
+
+   if (!(obj = (struct dbObject *)CreateNode(objHash[objHashValue], sizeof(struct dbObject) + size, name)))
+      return NULL;
+
+   obj->nr = nr;
+   obj->type = type;
+   obj->realNr = realNr;
+
+   return dbGetObjectKey(obj);
+}
+
+void dbDeleteObject (ulong nr)
+{
+   struct dbObject *obj = NULL;
+   ubyte objHashValue = dbGetObjectHashNr(nr);
+
+   for (obj = (struct dbObject *)LIST_HEAD(objHash[objHashValue]); NODE_SUCC(obj); obj = (struct dbObject *)NODE_SUCC(obj))
+   {
+      if (obj->nr == nr)
+      {
+         UnSetAll((KEY)(obj+1), NULL);
+         RemNode(obj);     // MOD:
+         FreeNode(obj);
+         return;
+      }
+	}
+}
+
+void *dbGetObject(ulong nr)
+{
+   struct dbObject *obj;
+   ubyte objHashValue = dbGetObjectHashNr(nr);
+
+   for (obj = (struct dbObject *)LIST_HEAD(objHash[objHashValue]); NODE_SUCC(obj); obj = (struct dbObject *)NODE_SUCC(obj))
+   {
+      if (obj->nr == nr)
+         return dbGetObjectKey(obj);
+   }
+
+   return NULL;
+}
+
+ulong dbGetObjectNr(void *key)
+{
+  return dbGetObjectReal(key)->nr;
+}
+
+char *dbGetObjectName(ulong nr, char *objName)
+{
+   struct dbObject *obj;
+   ubyte objHashValue = dbGetObjectHashNr(nr);
+
+   for (obj = (struct dbObject *)LIST_HEAD(objHash[objHashValue]); NODE_SUCC(obj); obj = (struct dbObject *)NODE_SUCC(obj))
+   {
+      if (obj->nr == nr)
+      {
+         strcpy(objName, NODE_NAME(obj));
+         return objName;
+      }
+   }
+
+   return NULL;
+}
+
+void *dbIsObject (ulong nr, ulong type)
+{
+   struct dbObject *obj;
+   ubyte objHashValue = dbGetObjectHashNr(nr);
+
+   for (obj = (struct dbObject *)LIST_HEAD(objHash[objHashValue]); NODE_SUCC(obj); obj = (struct dbObject *)NODE_SUCC(obj))
+   {
+      if (obj->nr == nr)
+      {
+         if (obj->type == type)
+            return dbGetObjectKey(obj);
+
+         break;
+      }
+   }
+
+   return NULL;
+}
+
+// public prototypes - OBJECTNODE
+struct ObjectNode *dbAddObjectNode (LIST *objectList, ulong nr, ulong flags)
+{
+   struct ObjectNode *n = NULL;
+   struct dbObject *obj = dbGetObjectReal(dbGetObject(nr));
+   char name[TXT_KEY_LENGTH] = {0};
+   char *namePtr;
+
+   name[0] = EOS;
+
+   if (flags & OLF_INSERT_STAR)
+      strcpy(name, "*");
+
+   if (flags & OLF_INCLUDE_NAME)
+   {
+		char *succString;
+
+		if ((flags & OLF_ADD_PREV_STRING) && ObjectListPrevString)
+         strcat(name, ObjectListPrevString(obj->nr, obj->type, dbGetObjectKey(obj)));
+
+      strcat(name, NODE_NAME(obj));
+      namePtr = name;
+
+      if ((flags & OLF_ADD_SUCC_STRING) && ObjectListSuccString)
+         succString = ObjectListSuccString(obj->nr, obj->type, dbGetObjectKey(obj));
+
+      if ((flags & (OLF_ADD_SUCC_STRING|OLF_ALIGNED)) && ObjectListWidth)
+      {
+         ubyte i, len = strlen(name) + strlen(succString);
+
+         if (flags & OLF_INSERT_STAR)
+            len--;
+
+         for (i = len; i < ObjectListWidth; i++)
+            strcat (name, " ");
+		}
+
+      if ((flags & OLF_ADD_SUCC_STRING) && ObjectListSuccString)
+         strcat(name, succString);
+   }
+   else
+      namePtr = NULL;
+
+   if (n = (struct ObjectNode *)CreateNode(objectList, sizeof(struct ObjectNode), namePtr))
+   {
+      n->nr = obj->nr;
+      n->type = obj->type;
+      n->data = dbGetObjectKey(obj);
+   }
+
+   return n;
+}
+
+void dbRemObjectNode (LIST *objectList, ulong nr)
+{
+   struct ObjectNode *n = dbHasObjectNode (objectList, nr);
+
+   if (n)
+   {
+     RemNode(n);     // MOD:
+     FreeNode(n);
+   }
+}
+
+struct ObjectNode *dbHasObjectNode(LIST *objectList, ulong nr)
+{
+   struct ObjectNode *n;
+
+   for (n = (struct ObjectNode *)LIST_HEAD(objectList); NODE_SUCC(n); n = (struct ObjectNode *)NODE_SUCC(n))
+   {
+		if (OL_NR(n) == nr)
+         return n;
+   }
+
+   return NULL;
+}
+
+void SetObjectListAttr(ulong flags, ulong type)
+{
+	ObjectListType  = type;
+	ObjectListFlags = flags;
+
+	if (ObjectListFlags & OLF_PRIVATE_LIST)
+		ObjectListPrivate = (LIST*)CreateList(0L);
+	else
+	{
+		RemoveList(ObjectList);
+		ObjectList = (LIST*)CreateList(0L);
+	}
+}
+
+void BuildObjectList(void *key)
+{
+	struct dbObject *obj = dbGetObjectReal(key);
+	LIST *list;
+
+	if (!ObjectListType || (obj->type == ObjectListType))
+	{
+		if (ObjectListFlags & OLF_PRIVATE_LIST)
+			list = ObjectListPrivate;
+		else
+			list = ObjectList;
+
+		dbAddObjectNode(list, obj->nr, ObjectListFlags);
+	}
+}
+
+void ExpandObjectList (LIST *objectList, char *expandItem)
+{
+	struct ObjectNode *objNode;
+
+	if (!(objNode = (struct ObjectNode *)CreateNode(objectList, sizeof(struct ObjectNode), expandItem)))
+		NewErrorMsg(Internal_Error, __FILE__, __func__, 2);
+
+   objNode->nr = 0;
+   objNode->type = 0;
+   objNode->data = NULL;
+}
+
+
+word dbStdCompareObjects(struct ObjectNode *obj1, struct ObjectNode *obj2)
+{
+	if (obj1->nr > obj2->nr)
+      return -1;
+
+   if (obj1->nr < obj2->nr)
+      return 1;
+
+   return 0;
+}
+
+void dbSortPartOfList(LIST *l,struct ObjectNode *start, struct ObjectNode *end, word (*processNode)(struct ObjectNode *, struct ObjectNode *))
+{
+	LIST *newList = (LIST*)CreateList(0L);
+	struct ObjectNode *n, *n1, *startPred;
+	long i, j;
+
+	if (start == (struct ObjectNode *) LIST_HEAD(l))
+		startPred = 0L;
+	else
+		startPred = (struct ObjectNode *) NODE_PRED(start);
+
+	for (n = start, i = 1; n != end; n = (struct ObjectNode *) NODE_SUCC(n), i++);
+
+	n = start;
+
+	for (j = 0; j < i; j++)
+	{
+		n1 = n;
+		n = (struct ObjectNode *) NODE_SUCC(n);
+
+		RemNode(n1);   // MOD:
+		AddHeadNode(newList, n1);
+	}
+
+	dbSortObjectList(&newList, processNode);
+
+	for (n = (struct ObjectNode *) LIST_HEAD(newList); NODE_SUCC(n);)
+	{
+		n1 = n;
+		n = (struct ObjectNode *) NODE_SUCC(n);
+
+		RemNode(n1);   // MOD:
+		AddNode(l, n1, startPred);
+
+		startPred = n1;
+	}
+
+	RemoveList(newList);
+}
+
+long dbSortObjectList (LIST **objectList, word (*processNode)(struct ObjectNode *, struct ObjectNode *))
+{
+	LIST *newList;
+	struct ObjectNode *n1, *n2, *pred, *newNode;
+	long i = 0;
+
+	if (!LIST_EMPTY(*objectList))
+	{
+		newList = (LIST*)CreateList(0L);
+
+		for (n1 = (struct ObjectNode *) LIST_HEAD(*objectList); NODE_SUCC(n1); n1 = (struct ObjectNode *) NODE_SUCC(n1), i++)
+		{
+			pred = 0;
+
+			if (!LIST_EMPTY(newList))
+			{
+				for (n2 = (struct ObjectNode *) LIST_HEAD(newList); !pred && NODE_SUCC(n2);  n2 = (struct ObjectNode *) NODE_SUCC(n2))
+            {
+               if (processNode(n1, n2) >= 0)
+                  pred = n2;
+            }
+         }
+
+         newNode = (struct ObjectNode *)CreateNode(NULL, sizeof(struct ObjectNode), NODE_NAME(n1));
+         newNode->nr = n1->nr;
+         newNode->type = n1->type;
+         newNode->data = n1->data;
+
+         if (pred)
+         {
+				if (pred == (struct ObjectNode *) LIST_HEAD(newList))
+					AddHeadNode(newList, newNode);
+				else
+					AddNode(newList, newNode, NODE_PRED(pred));
+			}
+			else
+				AddTailNode(newList, newNode);
+      }
+
+      if (!LIST_EMPTY(newList))
+      {
+         RemoveList(*objectList);
+         *objectList = newList;
+      }
+      else
+         RemoveList(newList);
+   }
+
+   return i;
+}
+
+
+// public prototypes
+void dbInit(void)
+{
+   ubyte objHashValue;
+
+   if (!(ObjectList = (LIST*)CreateList(0L)))
+	NewErrorMsg(No_Mem, __FILE__, __func__, 3);
+
+   for (objHashValue = 0; objHashValue < OBJ_HASH_SIZE; objHashValue++)
+   {
+      if (!(objHash[objHashValue] = (LIST*)CreateList(0L)))
+	NewErrorMsg(No_Mem, __FILE__, __func__, 4);
+   }
+
+   CompareKey = dbCompare;
+   EncodeKey = dbEncode;
+	DecodeKey = dbDecode;
+}
+
+void dbDone(void)
+{
+   ubyte objHashValue;
+
+   for (objHashValue = 0; objHashValue < OBJ_HASH_SIZE; objHashValue ++)
+   {
+      if (objHash[objHashValue])
+         RemoveList(objHash[objHashValue]);
+   }
+
+   if (ObjectList)
+		RemoveList(ObjectList);
+}
+
+/* Functions for the return of the correct value 
+for the double assigned values of std and profi version */
+ulong getValue(DoubleAssignValueE val)
+{
+	switch (val) 
+	{
+	case _Ability_Kampf:
+		if (bProfidisk) 
+			return 179;
+		else
+			return 146;
+	case _Location_Cars_Vans_Office:
+		if (bProfidisk) 
+			return 100;
+		else
+			return  82;
+	case _London_London_1:
+		if (bProfidisk) 
+			return  30;
+		else 
+			return  22;
+	case _Location_Fat_Mans_Pub:
+		if (bProfidisk) 
+			return  99;
+		else
+			return  81;
+	case _Player_Player_1:
+		if (bProfidisk) 
+			return  29;
+		else 
+			return  21;
+	case _Ability_Sprengstoff:
+		if (bProfidisk) 
+			return 175;
+		else
+			return 142;
+	case _Location_Highgate_Out:
+		if (bProfidisk) 
+			return 116;
+		else
+			return  98;
+	case _Ability_Elektronik:
+		if (bProfidisk) 
+			return 177;
+		else
+			return 144;
+	case _Location_Holland_Street:
+		if (bProfidisk) 
+			return  95;
+		else
+			return  77;
+	case _Location_Parker:
+		if (bProfidisk) 
+			return 146;
+		else
+			return 128;
+	case _London_Escape:
+		if (bProfidisk) 
+			return  32;
+		else
+			return  24;
+	case _Location_Walrus:
+		if (bProfidisk) 
+			return 143;
+		else
+			return 125;
+	case _Location_Maloya:
+		if (bProfidisk) 
+			return 147;
+		else
+			return 129;
+	case _Location_Nirvana:
+		if (bProfidisk) 
+			return 151;
+		else
+			return 133;
+	case _Location_Policestation:
+		if (bProfidisk) 
+			return 102;
+		else
+			return  84;
+	case _Ability_Aufpassen:
+		if (bProfidisk) 
+			return 178;
+		else
+			return 145;
+	case _Ability_Schloesser:
+		if (bProfidisk) 
+			return 174;
+		else
+			return 141;
+	case _Ability_Safes:
+		if (bProfidisk) 
+			return 176;
+		else
+			return 143;
+	case _CompleteLoot_LastLoot:
+		if (bProfidisk) 
+			return  35;
+		else
+			return  27;
+	case _London_Jail:
+		if (bProfidisk) 
+			return  31;
+		else
+			return  23;
+	case _Location_Hotel:
+		if (bProfidisk) 
+			return 142;
+		else
+			return 124;
+	case _Person_Old_Matt:
+		if (bProfidisk) 
+			return  36;
+		else
+			return  28;
+	case _Ability_Autos:
+		if (bProfidisk) 
+			return 173;
+		else
+			return 140;
+	case _Environment_TheClou:
+		if (bProfidisk) 
+			return  28;
+		else 
+			return  20;
+	case _Evidence_Evidence_1:
+		if (bProfidisk) 
+			return  33;
+		else
+			return  25;
+	case _Location_Tools_Shop:
+		if (bProfidisk) 
+			return 101;
+		else
+			return  83;
+	case _Location_Pooly:
+		if (bProfidisk) 
+			return 148;
+		else
+			return 130;
+	default:
+		return 0;
+	}
+}
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/data/database.h b/cosp-0.6-src/ClouRemake/ClouRemake/data/database.h
new file mode 100644
index 0000000..2a88a1e
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/data/database.h
@@ -0,0 +1,131 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_DATABASE
+#define MODULE_DATABASE
+
+// includes
+#include "theclou.h"
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+
+#define GET_OUT					((ubyte)-1)	// CHG: !!!!!
+
+// public defines
+#define DB_LOAD_MODE_STD		1
+#define DB_LOAD_MODE_NO_NAME	0
+
+#define OLF_NORMAL            (0)
+#define OLF_INCLUDE_NAME      (1 << 0)
+#define OLF_INSERT_STAR       (1 << 1)
+#define OLF_PRIVATE_LIST      (1 << 2)
+#define OLF_ADD_PREV_STRING   (1 << 3)
+#define OLF_ADD_SUCC_STRING   (1 << 4)
+#define OLF_ALIGNED           (1 << 5)
+
+#define OL_NAME(n)         NODE_NAME(n)
+#define OL_NR(n)           (((struct ObjectNode *)(n))->nr)
+#define OL_TYPE(n)         (((struct ObjectNode *)(n))->type)
+#define OL_DATA(n)         (((struct ObjectNode *)(n))->data)
+
+#define OBJ_HASH_SIZE      31
+
+
+// public structures
+struct dbObject
+{
+	NODE  link;
+	ulong nr;
+	ulong type;
+	ulong realNr;
+};
+
+struct dbObjectHeader
+{
+	ulong nr;
+	ulong type;
+	ulong size;
+};
+
+struct ObjectNode
+{
+	NODE   Link;
+	ulong  nr;
+	ulong  type;
+	void  *data;
+};
+
+
+// public global data
+extern LIST *ObjectList;
+extern LIST *ObjectListPrivate;
+extern ulong ObjectListWidth;
+extern char *(*ObjectListPrevString)(ulong, ulong, void *);
+extern char *(*ObjectListSuccString)(ulong, ulong, void *);
+
+extern LIST *objHash[OBJ_HASH_SIZE];
+
+
+// public prototypes - OBJECTS
+ubyte dbLoadAllObjects(char *fileName, uword diskId);
+ubyte dbSaveAllObjects(char *fileName, ulong offset, ulong size, uword diskId);
+void  dbDeleteAllObjects(ulong offset, ulong size);
+
+ulong dbGetObjectCountOfDB(ulong offset, ulong size);
+
+void dbSetLoadObjectsMode(ubyte mode);
+
+// public prototypes - OBJECT
+void *dbNewObject(ulong nr, ulong type, ulong size, char *name, ulong realNr);
+void  dbDeleteObject(ulong nr);
+
+void *dbGetObject(ulong nr);
+ulong dbGetObjectNr(void *key);
+char *dbGetObjectName(ulong nr, char *objName);
+
+void *dbIsObject(ulong nr, ulong type);
+
+// public prototypes - OBJECTNODE
+struct ObjectNode *dbAddObjectNode(LIST *objectList, ulong nr, ulong flags);
+void   dbRemObjectNode(LIST *objectList, ulong nr);
+struct ObjectNode *dbHasObjectNode(LIST *objectList, ulong nr);
+
+void	SetObjectListAttr(ulong flags, ulong type);
+void	BuildObjectList(void *key);
+void	ExpandObjectList(LIST *objectList, char *expandItem);
+
+word	dbStdCompareObjects(struct ObjectNode *obj1, struct ObjectNode *obj2);
+long	dbSortObjectList(LIST **objectList, word (*processNode)(struct ObjectNode *, struct ObjectNode *));
+void	dbSortPartOfList(LIST *objectList,struct ObjectNode *start, struct ObjectNode *end, word (*processNode)(struct ObjectNode *, struct ObjectNode *));
+
+
+struct ObjectNode *dbAddObjectNode (LIST *objectList, ulong nr, ulong flags);
+void   dbRemObjectNode (LIST *objectList, ulong nr);
+
+// public prototypes
+void	dbInit(void);
+void	dbDone(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/data/database_p.h b/cosp-0.6-src/ClouRemake/ClouRemake/data/database_p.h
new file mode 100644
index 0000000..f3482cc
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/data/database_p.h
@@ -0,0 +1,42 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_DATABASE_PH
+#define MODULE_DATABASE_PH
+
+// includes
+
+
+// private defines
+#define dbGetObjectReal(key)  (((struct dbObject *)key)-1)
+#define dbGetObjectKey(obj)   ((void *)(obj+1))
+#define dbGetObjectHashNr(nr) ((ubyte)(nr % OBJ_HASH_SIZE))
+
+#define EOS	 					((char)'\0')
+
+
+// private definitions
+extern LIST *objHash[OBJ_HASH_SIZE];
+extern char decodeStr[11];
+
+extern ulong ObjectListType;
+extern ulong ObjectListFlags;
+
+
+// private prototypes - RELATION
+int dbCompare(KEY key1, KEY key2);
+char *dbDecode(KEY key);
+KEY dbEncode(char *key);
+
+// private prototypes - OBJECT
+struct dbObject *dbFindRealObject(ulong realNr, ulong offset, ulong size);
+
+//
+void  dbcheckSize(ulong objSize, ulong structSize);
+ulong dbGetObjLoadSize(ulong structType);
+ulong dbGetObjSaveSize(struct dbObjectHeader *objHd);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/data/datacalc.c b/cosp-0.6-src/ClouRemake/ClouRemake/data/datacalc.c
new file mode 100644
index 0000000..0c09d69
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/data/datacalc.c
@@ -0,0 +1,51 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "data\datacalc.h"
+
+long Round(long v,long p)     /* p...Stellen ! */
+     {
+     long i,z;
+
+     for(i=0,z=1; i<p; i++,z*=10);
+
+     if(v/z != 0)
+          v = (v / z) * z;
+
+     return(v);
+     }
+
+long CalcValue(long value, long min, long max, long fact, long perc)
+     {
+     perc = ((perc * fact) - (perc * 128)) / 127;
+
+     value = value + (value * perc) / 100;
+
+     if(value < min)     value = min;
+     if(value > max)     value = max;
+
+     return value;
+     }
+
+long ChangeAbs(long item, long value, long min, long max)
+     {
+     item+=value;
+
+     if(item > max)     item = max;
+     if(item < min)     item = min;
+
+     return(item);
+     }
+
+long RoundF(float num)
+{
+    if (num < 0)
+		return (long) (num - 0.5f);
+	else
+		return (long) (num + 0.5f);
+}
+
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/data/datacalc.h b/cosp-0.6-src/ClouRemake/ClouRemake/data/datacalc.h
new file mode 100644
index 0000000..beb3fae
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/data/datacalc.h
@@ -0,0 +1,31 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_DATACALC
+#define MODULE_DATACALC
+
+#include "theclou.h"
+
+#ifndef __STDARG_H
+#include <stdarg.h>
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_RANDOM
+#include "random\random.h"
+#endif
+
+#define   tcDerivation(min,max)          (CalcRandomNr(min,max))
+
+extern long Round(long v,long p);
+extern long CalcValue(long value, long min, long max, long fact, long perc);
+extern long ChangeAbs(long item, long value, long min, long max);
+extern long RoundF(float num);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/data/relation.c b/cosp-0.6-src/ClouRemake/ClouRemake/data/relation.c
new file mode 100644
index 0000000..b98ca5a
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/data/relation.c
@@ -0,0 +1,462 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "data\relation.h"
+#include "port\port.h"
+
+static RELATION            nrOfRelations    = 1;
+static struct relationDef *relationsDefBase = NULL;
+
+int   (*CompareKey)(KEY, KEY) = NULL;
+KEY   (*EncodeKey) (char *)   = NULL;
+char *(*DecodeKey) (KEY)      = NULL;
+
+
+struct relationDef *FindRelation (RELATION id)
+{
+	struct relationDef *rd = relationsDefBase;
+
+	while (rd)
+	{
+		if (rd->rd_id == id)
+			return rd;
+
+		rd = rd->rd_next;
+	}
+
+	return NULL;
+}
+
+RELATION AddRelation(RELATION id)
+{
+	struct relationDef *rd;
+
+	if (!FindRelation (id))
+	{
+		if (rd = (struct relationDef *)MemAlloc(sizeof(struct relationDef)))
+		{
+			rd->rd_next           = relationsDefBase;
+			relationsDefBase      = rd;
+
+			rd->rd_id             = id;
+			nrOfRelations++;
+
+			rd->rd_relationsTable = NULL;
+
+			return rd->rd_id;
+		}
+	}
+
+	return 0;
+}
+
+RELATION CloneRelation(RELATION id, RELATION cloneId)
+{
+	struct relationDef *rd;
+
+	if (rd = FindRelation (id))
+	{
+		if (AddRelation(cloneId) || FindRelation(cloneId))
+		{
+			struct relation *r = rd->rd_relationsTable;
+
+			while (r)
+			{
+				SetP(r->r_leftKey, cloneId, r->r_rightKey, r->r_parameter);
+				r = r->r_next;
+			}
+
+			return cloneId;
+		}
+	}
+
+	return 0;
+}
+
+RELATION RemRelation(RELATION id)
+{
+	struct relationDef *rd = relationsDefBase,
+	*h  = NULL;
+
+	while (rd)
+	{
+		if (rd->rd_id == id)
+		{
+			if (h)
+				h->rd_next = rd->rd_next;
+			else
+			    relationsDefBase = rd->rd_next;
+
+			while (rd->rd_relationsTable)
+			{
+				struct relation *h = rd->rd_relationsTable->r_next;
+
+				MemFree(rd->rd_relationsTable, sizeof(struct relation));
+				rd->rd_relationsTable = h;
+			}
+
+			MemFree(rd, sizeof(struct relationDef));
+
+			nrOfRelations--;
+
+			return id;
+		}
+
+		h  = rd;
+		rd = rd->rd_next;
+	}
+
+	return 0;
+}
+
+RELATION SetP (KEY leftKey, RELATION id, KEY rightKey, PARAMETER parameter)
+{
+	struct relationDef *rd = FindRelation (id);
+
+	if (rd && CompareKey)
+	{
+		struct relation *r = rd->rd_relationsTable;
+
+		while (r)
+		{
+			if (CompareKey (r->r_leftKey, leftKey) && CompareKey (r->r_rightKey, rightKey))
+			{
+				if (parameter != NO_PARAMETER)
+					r->r_parameter = parameter;
+				return id;
+			}
+
+			r = r->r_next;
+		}
+
+		if (r = (struct relation *)MemAlloc(sizeof(struct relation)))
+		{
+			r->r_next = rd->rd_relationsTable;
+			rd->rd_relationsTable = r;
+
+			r->r_leftKey   = leftKey;
+			r->r_rightKey  = rightKey;
+			r->r_parameter = parameter;
+
+			return id;
+		}
+	}
+
+	return 0;
+}
+
+RELATION UnSet (KEY leftKey, RELATION id, KEY rightKey)
+{
+	struct relationDef *rd = FindRelation (id);
+
+	if (rd && CompareKey)
+	{
+		struct relation *r = rd->rd_relationsTable;
+		struct relation *h = NULL;
+
+		while (r)
+		{
+			if (CompareKey (r->r_leftKey, leftKey) && CompareKey (r->r_rightKey, rightKey))
+			{
+				if (h)
+					h->r_next = r->r_next;
+				else
+				    rd->rd_relationsTable = r->r_next;
+
+				MemFree(r, sizeof(struct relation));
+
+				return id;
+			}
+
+			h = r;
+			r = r->r_next;
+		}
+	}
+
+	return 0;
+}
+
+PARAMETER GetP (KEY leftKey, RELATION id, KEY rightKey)
+{
+	struct relationDef *rd = FindRelation (id);
+
+	if (rd && CompareKey)
+	{
+		struct relation *r = rd->rd_relationsTable;
+
+		while (r)
+		{
+			if (CompareKey (r->r_leftKey, leftKey) && CompareKey (r->r_rightKey, rightKey))
+				return r->r_parameter;
+
+			r = r->r_next;
+		}
+	}
+
+	return NO_PARAMETER;
+}
+
+RELATION AskP (KEY leftKey, RELATION id, KEY rightKey, PARAMETER  parameter, COMPARSION comparsion)
+{
+	struct relationDef *rd = FindRelation (id);
+
+	if (rd && CompareKey)
+	{
+		struct relation *r = rd->rd_relationsTable;
+
+		while (r)
+		{
+			if (CompareKey (r->r_leftKey, leftKey) && CompareKey (r->r_rightKey, rightKey))
+			{
+				if (comparsion && (parameter != NO_PARAMETER))
+				{
+					if (comparsion & CMP_EQUAL)
+					{
+						if (comparsion & CMP_HIGHER)
+							return (r->r_parameter >= parameter ? id : 0);
+						else if (comparsion & CMP_LOWER)
+							return (r->r_parameter <= parameter ? id : 0);
+
+						return (r->r_parameter == parameter ? id : 0);
+					}
+					else if (comparsion & CMP_HIGHER)
+						return (r->r_parameter > parameter ? id : 0);
+					else if (comparsion & CMP_LOWER)
+						return (r->r_parameter < parameter ? id : 0);
+					else if (comparsion & CMP_NOT_EQUAL)
+						return (r->r_parameter != parameter ? id : 0);
+
+					return 0;
+				}
+
+				return id;
+			}
+
+			r = r->r_next;
+		}
+	}
+
+	return 0;
+}
+
+void AskAll (KEY leftKey, RELATION id, void (*UseKey)(void *))
+{
+	struct relationDef *rd = FindRelation (id);
+
+	if (rd && CompareKey)
+	{
+		struct relation *r = rd->rd_relationsTable;
+
+		while (r)
+		{
+			if (CompareKey (r->r_leftKey, leftKey))
+			{
+				if (UseKey)
+					UseKey (r->r_rightKey);
+			}
+
+			r = r->r_next;
+		}
+	}
+}
+
+void UnSetAll (KEY key, void (*UseKey)(KEY))
+{
+	struct relationDef *rd = relationsDefBase;
+
+	while (rd)
+	{
+		struct relation *r = rd->rd_relationsTable;
+		struct relation *h = NULL;
+
+		while (r)
+		{
+			if (CompareKey (r->r_leftKey, key) || CompareKey (r->r_rightKey, key))
+			{
+				if (UseKey)
+					UseKey (key);
+
+				if (h)
+					h->r_next = r->r_next;
+				else
+				    rd->rd_relationsTable = r->r_next;
+
+				MemFree(r, sizeof(struct relation));
+			}
+
+			h = r;
+			r = r->r_next;
+		}
+
+		rd = rd->rd_next;
+	}
+}
+
+int SaveRelations (char *file, unsigned long offset, unsigned long size, uword disk_id)
+{
+	struct relationDef *rd = relationsDefBase;
+	struct relation    *r;
+	FILE *fh;
+	char left   [256];
+	char right  [256];
+
+	if (rd && DecodeKey)
+	{
+		if (fh = dskOpen (file, "w", disk_id))
+		{
+			fprintf (fh, "%s\n", REL_FILE_MARK);
+
+			while (rd)
+			{
+				if (rd->rd_id > offset)
+				{
+					if (size &&  (rd->rd_id > offset+size))
+					{
+						rd = rd->rd_next;
+						continue;
+					}
+
+					fprintf (fh, "%s\n", REL_TABLE_MARK);
+
+					fprintf (fh, "%ld\n", rd->rd_id);
+
+					if (r = rd->rd_relationsTable)
+					{
+						while (r)
+						{
+							strcpy (left,  DecodeKey (r->r_leftKey));
+							strcpy (right, DecodeKey (r->r_rightKey));
+							fprintf (fh, "%s\n%s\n%ld\n", left, right, r->r_parameter);
+							r = r->r_next;
+						}
+					}
+				}
+
+				rd = rd->rd_next;
+			}
+
+			dskClose (fh);
+
+			return 1;
+		}
+	}
+
+	return 0;
+}
+
+int LoadRelations(char *file, uword disk_id)
+{
+	RELATION  rd;
+	PARAMETER parameter;
+	char buffer [256];
+	char left   [256];
+	char right  [256];
+	ubyte goOn;
+	int   size = 255;
+	FILE *fh = NULL;
+
+	strcpy (buffer,"");
+	strcpy (left,"");
+	strcpy (right,"");
+
+	if (EncodeKey)
+	{
+		if (fh = dskOpen (file, "r", disk_id))
+		{
+			dskGets(buffer, size, fh);
+
+			buffer [strlen(REL_FILE_MARK)] = '\0';
+
+			if (!strcmp (buffer, REL_FILE_MARK))
+			{
+				dskGets(buffer, size, fh);
+
+				buffer [strlen (REL_TABLE_MARK)] = '\0';
+
+				while (!dskIsEOF(fh))
+				{
+					while (strcmp (buffer, REL_TABLE_MARK) == 0)
+					{
+						dskGets (buffer, size, fh);
+
+						rd = atol(buffer);
+
+						goOn = 0;
+						if (FindRelation (rd))
+							goOn = 1;
+						else
+						{
+							if (AddRelation (rd))
+								goOn = 1;
+						}
+
+						if (goOn)
+						{
+							while (!dskIsEOF(fh))
+							{
+								if (dskGets (left, size, fh))
+								{
+									if (!strcmp (left, REL_TABLE_MARK))
+									{
+										strcpy (buffer, left);
+										break;
+									}
+
+									dskGets (right,size, fh);
+
+									dskGets (buffer,size, fh);
+
+									parameter = atol(buffer);
+
+									if (!SetP (EncodeKey (left), rd, EncodeKey (right), parameter))
+									{
+										dskClose (fh);
+										return 0;
+									}
+								}
+							}
+						}
+						else
+						    {
+							dskClose (fh);
+							return 0;
+						}
+					}
+				}
+
+				dskClose (fh);
+				return 1;
+			}
+
+			dskClose (fh);
+		}
+	}
+
+	return 0;
+}
+
+void RemRelations (unsigned long offset, unsigned long size)
+{
+	struct relationDef *rd = relationsDefBase, *help;
+
+	while (rd)
+	{
+		if (rd->rd_id > offset)
+		{
+			if (size &&  (rd->rd_id > offset+size))
+			{
+				rd = rd->rd_next;
+				continue;
+			}
+
+			help = rd->rd_next;
+			RemRelation (rd->rd_id);
+			rd = help;
+		}
+		else
+			rd = rd->rd_next;
+	}
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/data/relation.h b/cosp-0.6-src/ClouRemake/ClouRemake/data/relation.h
new file mode 100644
index 0000000..56cfc83
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/data/relation.h
@@ -0,0 +1,99 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_RELATION
+#define MODULE_RELATION
+
+#ifndef __STDIO_H
+#include <stdio.h>
+#endif
+
+#ifndef __STRING_H
+#include <string.h>
+#endif
+
+#ifndef __STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifndef __LIMITS_H
+#include <limits.h>
+#endif
+
+#include "theclou.h"
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#define RELATION           unsigned long
+#define KEY                void *
+#define PARAMETER          unsigned long
+#define COMPARSION         unsigned char
+
+#define CMP_NO             ((COMPARSION)0)
+#define CMP_EQUAL          ((COMPARSION)(1 << 0))
+#define CMP_NOT_EQUAL      ((COMPARSION)(1 << 1))
+#define CMP_HIGHER         ((COMPARSION)(1 << 2))
+#define CMP_LOWER          ((COMPARSION)(1 << 3))
+
+#define REL_FILE_MARK      "RELF"
+#define REL_TABLE_MARK     "RTAB"
+
+#define NO_PARAMETER       (0xffffffff)
+
+
+#define Set(leftKey,id,rightKey)  SetP (leftKey, id, rightKey, NO_PARAMETER)
+#define Ask(leftKey,id,rightKey)  AskP (leftKey, id, rightKey, NO_PARAMETER, CMP_NO)
+
+
+struct relation
+{
+   struct relation *r_next;
+
+   KEY       r_leftKey;
+   KEY       r_rightKey;
+   PARAMETER r_parameter;
+};
+
+struct relationDef
+{
+   struct relationDef *rd_next;
+
+   RELATION            rd_id;
+   struct relation    *rd_relationsTable;
+};
+
+
+extern int   (*CompareKey)(KEY, KEY);
+extern KEY   (*EncodeKey) (char *);
+extern char *(*DecodeKey) (KEY);
+
+
+RELATION  AddRelation  (RELATION);
+RELATION  CloneRelation(RELATION, RELATION);
+RELATION  RemRelation  (RELATION);
+
+RELATION  SetP    (KEY, RELATION, KEY, PARAMETER);
+RELATION  UnSet   (KEY, RELATION, KEY);
+PARAMETER GetP    (KEY, RELATION, KEY);
+RELATION  AskP    (KEY, RELATION, KEY, PARAMETER, COMPARSION);
+void      AskAll  (KEY, RELATION, void (*)(void *));
+void      UnSetAll(KEY, void (*)(KEY));
+
+int  SaveRelations(char *, unsigned long, unsigned long, uword disk_id);
+int  LoadRelations(char *, uword disk_id);
+void RemRelations (unsigned long, unsigned long);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/data/tcdata.h b/cosp-0.6-src/ClouRemake/ClouRemake/data/tcdata.h
new file mode 100644
index 0000000..b13103b
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/data/tcdata.h
@@ -0,0 +1,1340 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+/* modified 2014-07-01 by byteranger*/
+
+#ifndef MODULE_TCDATA
+#define MODULE_TCDATA
+
+/*
+ * Data header file created with dc
+ * Database (offset, size) : tcMain (0, 10000)
+ */
+
+/*
+ * Make sure enums are 16bit
+ */
+#define TCenum(e)	unsigned short
+
+#define DB_tcMain_OFFSET        0
+#define DB_tcMain_SIZE          10000
+
+#define Const_tcTALK_ABILITY       4
+#define Const_tcIN_PROGRESS_BIT       5
+#define Const_tcLOCK_UNLOCK_BIT       2
+#define Const_tcTALK_JOB_OFFER       0
+#define Const_tcON_OFF       6
+#define Const_tcCAR_PICT_OFFSET       24
+#define Const_tcCHAINED_TO_ALARM       1
+#define Const_tcHORIZ_VERT_BIT       0
+#define Const_tcTAKE_BIT       3
+#define Const_tcALARM_PICT_OFFSET       25
+#define Const_tcTALK_PRISON_BEFORE       2
+#define Const_tcACCESS_BIT       4
+#define Const_tcTALK_YOUR_JOB       1
+#define Const_tcOPEN_CLOSE_BIT       1
+#define Const_tcNO_CHAINING       0
+#define Const_tcTOOL_OPENS       1
+#define Const_tcCHAINED_TO_POWER       2
+#define Const_tcSYMBOL_PICT_SIZE       16
+#define Const_tcPOWER_PICT_OFFSET       26
+
+#define Relation_joined_by      8
+#define joined_byP(l,r,p,c)     AskP   (dbGetObject (l), 8, dbGetObject (r), p, c)
+#define joined_by(l,r)          AskP   (dbGetObject (l), 8, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define joined_byAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 8, BuildObjectList); }
+#define joined_bySetP(l,r,p)    SetP   (dbGetObject (l), 8, dbGetObject (r), p)
+#define joined_bySet(l,r)       SetP   (dbGetObject (l), 8, dbGetObject (r), NO_PARAMETER)
+#define joined_byUnSet(l,r)     UnSet  (dbGetObject (l), 8, dbGetObject (r))
+#define joined_byGet(l,r)       GetP   (dbGetObject (l), 8, dbGetObject (r))
+
+#define Relation_hurt      12
+#define hurtP(l,r,p,c)     AskP   (dbGetObject (l), 12, dbGetObject (r), p, c)
+#define hurt(l,r)          AskP   (dbGetObject (l), 12, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define hurtAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 12, BuildObjectList); }
+#define hurtSetP(l,r,p)    SetP   (dbGetObject (l), 12, dbGetObject (r), p)
+#define hurtSet(l,r)       SetP   (dbGetObject (l), 12, dbGetObject (r), NO_PARAMETER)
+#define hurtUnSet(l,r)     UnSet  (dbGetObject (l), 12, dbGetObject (r))
+#define hurtGet(l,r)       GetP   (dbGetObject (l), 12, dbGetObject (r))
+
+#define Relation_remember      18
+#define rememberP(l,r,p,c)     AskP   (dbGetObject (l), 18, dbGetObject (r), p, c)
+#define remember(l,r)          AskP   (dbGetObject (l), 18, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define rememberAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 18, BuildObjectList); }
+#define rememberSetP(l,r,p)    SetP   (dbGetObject (l), 18, dbGetObject (r), p)
+#define rememberSet(l,r)       SetP   (dbGetObject (l), 18, dbGetObject (r), NO_PARAMETER)
+#define rememberUnSet(l,r)     UnSet  (dbGetObject (l), 18, dbGetObject (r))
+#define rememberGet(l,r)       GetP   (dbGetObject (l), 18, dbGetObject (r))
+
+#define Relation_has      4
+#define hasP(l,r,p,c)     AskP   (dbGetObject (l), 4, dbGetObject (r), p, c)
+#define has(l,r)          AskP   (dbGetObject (l), 4, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define hasAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 4, BuildObjectList); }
+#define hasSetP(l,r,p)    SetP   (dbGetObject (l), 4, dbGetObject (r), p)
+#define hasSet(l,r)       SetP   (dbGetObject (l), 4, dbGetObject (r), NO_PARAMETER)
+#define hasUnSet(l,r)     UnSet  (dbGetObject (l), 4, dbGetObject (r))
+#define hasGet(l,r)       GetP   (dbGetObject (l), 4, dbGetObject (r))
+
+#define Relation_taxi      16
+#define taxiP(l,r,p,c)     AskP   (dbGetObject (l), 16, dbGetObject (r), p, c)
+#define taxi(l,r)          AskP   (dbGetObject (l), 16, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define taxiAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 16, BuildObjectList); }
+#define taxiSetP(l,r,p)    SetP   (dbGetObject (l), 16, dbGetObject (r), p)
+#define taxiSet(l,r)       SetP   (dbGetObject (l), 16, dbGetObject (r), NO_PARAMETER)
+#define taxiUnSet(l,r)     UnSet  (dbGetObject (l), 16, dbGetObject (r))
+#define taxiGet(l,r)       GetP   (dbGetObject (l), 16, dbGetObject (r))
+
+#define Relation_learned      17
+#define learnedP(l,r,p,c)     AskP   (dbGetObject (l), 17, dbGetObject (r), p, c)
+#define learned(l,r)          AskP   (dbGetObject (l), 17, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define learnedAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 17, BuildObjectList); }
+#define learnedSetP(l,r,p)    SetP   (dbGetObject (l), 17, dbGetObject (r), p)
+#define learnedSet(l,r)       SetP   (dbGetObject (l), 17, dbGetObject (r), NO_PARAMETER)
+#define learnedUnSet(l,r)     UnSet  (dbGetObject (l), 17, dbGetObject (r))
+#define learnedGet(l,r)       GetP   (dbGetObject (l), 17, dbGetObject (r))
+
+#define Relation_sound      13
+#define soundP(l,r,p,c)     AskP   (dbGetObject (l), 13, dbGetObject (r), p, c)
+#define sound(l,r)          AskP   (dbGetObject (l), 13, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define soundAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 13, BuildObjectList); }
+#define soundSetP(l,r,p)    SetP   (dbGetObject (l), 13, dbGetObject (r), p)
+#define soundSet(l,r)       SetP   (dbGetObject (l), 13, dbGetObject (r), NO_PARAMETER)
+#define soundUnSet(l,r)     UnSet  (dbGetObject (l), 13, dbGetObject (r))
+#define soundGet(l,r)       GetP   (dbGetObject (l), 13, dbGetObject (r))
+
+#define Relation_ClockTimer      2
+#define ClockTimerP(l,r,p,c)     AskP   (dbGetObject (l), 2, dbGetObject (r), p, c)
+#define ClockTimer(l,r)          AskP   (dbGetObject (l), 2, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define ClockTimerAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 2, BuildObjectList); }
+#define ClockTimerSetP(l,r,p)    SetP   (dbGetObject (l), 2, dbGetObject (r), p)
+#define ClockTimerSet(l,r)       SetP   (dbGetObject (l), 2, dbGetObject (r), NO_PARAMETER)
+#define ClockTimerUnSet(l,r)     UnSet  (dbGetObject (l), 2, dbGetObject (r))
+#define ClockTimerGet(l,r)       GetP   (dbGetObject (l), 2, dbGetObject (r))
+
+#define Relation_PersonWorksHere      20
+#define PersonWorksHereP(l,r,p,c)     AskP   (dbGetObject (l), 20, dbGetObject (r), p, c)
+#define PersonWorksHere(l,r)          AskP   (dbGetObject (l), 20, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define PersonWorksHereAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 20, BuildObjectList); }
+#define PersonWorksHereSetP(l,r,p)    SetP   (dbGetObject (l), 20, dbGetObject (r), p)
+#define PersonWorksHereSet(l,r)       SetP   (dbGetObject (l), 20, dbGetObject (r), NO_PARAMETER)
+#define PersonWorksHereUnSet(l,r)     UnSet  (dbGetObject (l), 20, dbGetObject (r))
+#define PersonWorksHereGet(l,r)       GetP   (dbGetObject (l), 20, dbGetObject (r))
+
+#define Relation_hasClock      1
+#define hasClockP(l,r,p,c)     AskP   (dbGetObject (l), 1, dbGetObject (r), p, c)
+#define hasClock(l,r)          AskP   (dbGetObject (l), 1, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define hasClockAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 1, BuildObjectList); }
+#define hasClockSetP(l,r,p)    SetP   (dbGetObject (l), 1, dbGetObject (r), p)
+#define hasClockSet(l,r)       SetP   (dbGetObject (l), 1, dbGetObject (r), NO_PARAMETER)
+#define hasClockUnSet(l,r)     UnSet  (dbGetObject (l), 1, dbGetObject (r))
+#define hasClockGet(l,r)       GetP   (dbGetObject (l), 1, dbGetObject (r))
+
+#define Relation_toolRequires      15
+#define toolRequiresP(l,r,p,c)     AskP   (dbGetObject (l), 15, dbGetObject (r), p, c)
+#define toolRequires(l,r)          AskP   (dbGetObject (l), 15, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define toolRequiresAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 15, BuildObjectList); }
+#define toolRequiresSetP(l,r,p)    SetP   (dbGetObject (l), 15, dbGetObject (r), p)
+#define toolRequiresSet(l,r)       SetP   (dbGetObject (l), 15, dbGetObject (r), NO_PARAMETER)
+#define toolRequiresUnSet(l,r)     UnSet  (dbGetObject (l), 15, dbGetObject (r))
+#define toolRequiresGet(l,r)       GetP   (dbGetObject (l), 15, dbGetObject (r))
+
+#define Relation_knows      5
+#define knowsP(l,r,p,c)     AskP   (dbGetObject (l), 5, dbGetObject (r), p, c)
+#define knows(l,r)          AskP   (dbGetObject (l), 5, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define knowsAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 5, BuildObjectList); }
+#define knowsSetP(l,r,p)    SetP   (dbGetObject (l), 5, dbGetObject (r), p)
+#define knowsSet(l,r)       SetP   (dbGetObject (l), 5, dbGetObject (r), NO_PARAMETER)
+#define knowsUnSet(l,r)     UnSet  (dbGetObject (l), 5, dbGetObject (r))
+#define knowsGet(l,r)       GetP   (dbGetObject (l), 5, dbGetObject (r))
+
+#define Relation_hasLootBag      19
+#define hasLootBagP(l,r,p,c)     AskP   (dbGetObject (l), 19, dbGetObject (r), p, c)
+#define hasLootBag(l,r)          AskP   (dbGetObject (l), 19, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define hasLootBagAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 19, BuildObjectList); }
+#define hasLootBagSetP(l,r,p)    SetP   (dbGetObject (l), 19, dbGetObject (r), p)
+#define hasLootBagSet(l,r)       SetP   (dbGetObject (l), 19, dbGetObject (r), NO_PARAMETER)
+#define hasLootBagUnSet(l,r)     UnSet  (dbGetObject (l), 19, dbGetObject (r))
+#define hasLootBagGet(l,r)       GetP   (dbGetObject (l), 19, dbGetObject (r))
+
+#define Relation_likes_to_be      6
+#define likes_to_beP(l,r,p,c)     AskP   (dbGetObject (l), 6, dbGetObject (r), p, c)
+#define likes_to_be(l,r)          AskP   (dbGetObject (l), 6, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define likes_to_beAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 6, BuildObjectList); }
+#define likes_to_beSetP(l,r,p)    SetP   (dbGetObject (l), 6, dbGetObject (r), p)
+#define likes_to_beSet(l,r)       SetP   (dbGetObject (l), 6, dbGetObject (r), NO_PARAMETER)
+#define likes_to_beUnSet(l,r)     UnSet  (dbGetObject (l), 6, dbGetObject (r))
+#define likes_to_beGet(l,r)       GetP   (dbGetObject (l), 6, dbGetObject (r))
+
+#define Relation_join      7
+#define joinP(l,r,p,c)     AskP   (dbGetObject (l), 7, dbGetObject (r), p, c)
+#define join(l,r)          AskP   (dbGetObject (l), 7, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define joinAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 7, BuildObjectList); }
+#define joinSetP(l,r,p)    SetP   (dbGetObject (l), 7, dbGetObject (r), p)
+#define joinSet(l,r)       SetP   (dbGetObject (l), 7, dbGetObject (r), NO_PARAMETER)
+#define joinUnSet(l,r)     UnSet  (dbGetObject (l), 7, dbGetObject (r))
+#define joinGet(l,r)       GetP   (dbGetObject (l), 7, dbGetObject (r))
+
+#define Relation_opens      14
+#define opensP(l,r,p,c)     AskP   (dbGetObject (l), 14, dbGetObject (r), p, c)
+#define opens(l,r)          AskP   (dbGetObject (l), 14, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define opensAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 14, BuildObjectList); }
+#define opensSetP(l,r,p)    SetP   (dbGetObject (l), 14, dbGetObject (r), p)
+#define opensSet(l,r)       SetP   (dbGetObject (l), 14, dbGetObject (r), NO_PARAMETER)
+#define opensUnSet(l,r)     UnSet  (dbGetObject (l), 14, dbGetObject (r))
+#define opensGet(l,r)       GetP   (dbGetObject (l), 14, dbGetObject (r))
+
+#define Relation_livesIn      10
+#define livesInP(l,r,p,c)     AskP   (dbGetObject (l), 10, dbGetObject (r), p, c)
+#define livesIn(l,r)          AskP   (dbGetObject (l), 10, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define livesInAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 10, BuildObjectList); }
+#define livesInSetP(l,r,p)    SetP   (dbGetObject (l), 10, dbGetObject (r), p)
+#define livesInSet(l,r)       SetP   (dbGetObject (l), 10, dbGetObject (r), NO_PARAMETER)
+#define livesInUnSet(l,r)     UnSet  (dbGetObject (l), 10, dbGetObject (r))
+#define livesInGet(l,r)       GetP   (dbGetObject (l), 10, dbGetObject (r))
+
+#define Relation_break      11
+#define breakP(l,r,p,c)     AskP   (dbGetObject (l), 11, dbGetObject (r), p, c)
+#define break(l,r)          AskP   (dbGetObject (l), 11, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define breakAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 11, BuildObjectList); }
+#define breakSetP(l,r,p)    SetP   (dbGetObject (l), 11, dbGetObject (r), p)
+#define breakSet(l,r)       SetP   (dbGetObject (l), 11, dbGetObject (r), NO_PARAMETER)
+#define breakUnSet(l,r)     UnSet  (dbGetObject (l), 11, dbGetObject (r))
+#define breakGet(l,r)       GetP   (dbGetObject (l), 11, dbGetObject (r))
+
+#define Relation_StairConnects      3
+#define StairConnectsP(l,r,p,c)     AskP   (dbGetObject (l), 3, dbGetObject (r), p, c)
+#define StairConnects(l,r)          AskP   (dbGetObject (l), 3, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define StairConnectsAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 3, BuildObjectList); }
+#define StairConnectsSetP(l,r,p)    SetP   (dbGetObject (l), 3, dbGetObject (r), p)
+#define StairConnectsSet(l,r)       SetP   (dbGetObject (l), 3, dbGetObject (r), NO_PARAMETER)
+#define StairConnectsUnSet(l,r)     UnSet  (dbGetObject (l), 3, dbGetObject (r))
+#define StairConnectsGet(l,r)       GetP   (dbGetObject (l), 3, dbGetObject (r))
+
+#define Relation_uses      9
+#define usesP(l,r,p,c)     AskP   (dbGetObject (l), 9, dbGetObject (r), p, c)
+#define uses(l,r)          AskP   (dbGetObject (l), 9, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define usesAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 9, BuildObjectList); }
+#define usesSetP(l,r,p)    SetP   (dbGetObject (l), 9, dbGetObject (r), p)
+#define usesSet(l,r)       SetP   (dbGetObject (l), 9, dbGetObject (r), NO_PARAMETER)
+#define usesUnSet(l,r)     UnSet  (dbGetObject (l), 9, dbGetObject (r))
+#define usesGet(l,r)       GetP   (dbGetObject (l), 9, dbGetObject (r))
+
+
+#define Location_Chiswick_Out                127L
+//#define Ability_Kampf                179L
+#define Item_Tresen                9223L
+#define Car_Fiat_634_N_1943                27L
+#define Location_Kenwood_Out                121L
+#define Location_National_Galery_Out                135L
+#define Item_Holztuer                9201L
+#define Car_Pontiac_Streamliner_1944                11L
+#define Person_Jiri_Poulin                9833L
+#define Location_Aunt_Emmas_Shop                105L
+#define Item_Beichtstuhl                9273L
+#define Person_Neil_Grey                9815L
+#define Location_British_Museum                130L
+#define Item_Hottentotten_Figur                9293L
+#define Loot_Kronjuwelen                9633L
+#define Car_Pontiac_Streamliner_1946                12L
+#define Person_Ken_Addison                9803L
+#define Location_Lisson_Grove                155L
+#define Item_Tresorraum                9207L
+#define Item_Regal_mit_Chemikalien                9286L
+#define Item_Zuggelaender                9308L
+#define Car_Pontiac_Streamliner_1949                13L
+#define Person_John_O_Keef                9841L
+//#define Location_Cars_Vans_Office                100L
+//#define London_London_1                30L
+#define Location_Villa_Out                119L
+#define Location_Aunt_Emmas_Shop_Out                106L
+#define Location_British_Museum_Out                131L
+#define Item_Lokomotive_Tuer                295L
+#define Person_Frank_Meier                9804L
+#define Item_Sofa                9218L
+#define Tool_Bohrmaschine                9512L
+#define Tool_Maske                9508L
+#define Tool_Elektroset                9520L
+#define Item_Bett                9227L
+#define Car_Fiat_634_N_1936                26L
+//#define Location_Fat_Mans_Pub                99L
+#define LSOLock_Kombinationsschloss                9102L
+#define Item_Kerzen                9279L
+#define Tool_Schutzanzug                9521L
+//#define Player_Player_1                29L
+#define Location_Westminster_Abbey                162L
+#define Tool_Chloroform                9509L
+#define Tool_Batterie                9518L
+#define Location_Osterly                124L
+#define Item_Hantel                9267L
+#define Item_Sockel                9261L
+#define Tool_Stechkarte                9528L
+#define Item_Mauer                9208L
+#define Loot_Koenig                9643L
+#define Person_Marc_Smith                9832L
+#define Location_Bulstrode_Chemestry_Ltd_Out                172L
+#define Location_Post_Train                166L
+#define Item_Treppe                9238L
+#define Item_Absperrung                9292L
+#define Item_Palette_mit_Kisten                9305L
+#define Tool_Brecheisen                9510L
+//#define Ability_Sprengstoff                175L
+#define Item_Beutesack                9270L
+#define Tool_Schneidbrenner                9515L
+#define Loot_Unterhose                9647L
+#define Person_Mark_Hart                9816L
+#define Person_Prof_Marcus_Green                9852L
+#define Location_Pink_Villa_Out                112L
+#define Item_Busch                9235L
+#define Tool_Handschuhe                9506L
+#define Loot_Hummer                9611L
+#define Loot_Geschirr                9621L
+#define Person_Matt_Stuvysunt                9801L
+#define Person_Samuel_Rosenblatt                9830L
+#define Loot_Gebeine                9618L
+#define Item_Strauch                9232L
+#define Tool_Hand                9501L
+#define Loot_Saurierknochen                9628L
+#define Person_Richard_Doil                9845L
+#define Item_Saeule                9230L
+#define Location_Southhampton                156L
+#define Item_Palette_mit_Schachteln                9291L
+#define Item_Batman_Figur                9294L
+#define Location_Tower_Out                141L
+#define Car_Jaguar_XK_1950                10L
+#define Tool_Dietrich                9502L
+#define Loot_Jack                9642L
+#define Person_Lucas_Grull                9831L
+#define Item_Nachtkaestchen                9260L
+#define Tool_Strickleiter                9526L
+#define Car_Morris_Minor_1948                17L
+#define Location_Ham                122L
+#define Location_Bulstrode_Chemestry_Ltd                171L
+#define Tool_Hammer                9503L
+#define Loot_Cartier_Uhr                9612L
+#define Loot_Dokument                9636L
+#define Loot_eine_Statue                9605L
+#define Loot_Dicker                9640L
+//#define Location_Highgate_Out                116L
+#define Location_Osterly_Out                125L
+#define Person_Pere_Ubu                9858L
+#define Item_Schrein                9278L
+#define Loot_Sanskrit_Buch                9613L
+#define Item_Grabhuegel                9258L
+#define Item_Bild                9265L
+#define Location_Garage                144L
+#define Loot_Wache_                9644L
+#define Location_Westminster_Abbey_Out                163L
+#define Item_Lokomotive_seitlich                293L
+#define Tool_Elektrohammer                9523L
+#define Loot_Autogramm                9614L
+#define Person_Albert_Liet                9811L
+#define Location_Downing_Street                164L
+//#define Ability_Elektronik                177L
+#define Loot_Opiumpfeife                9637L
+#define Person_Al_Mel                9835L
+#define Item_Alarmanlage_X3                9211L
+#define Item_Gelaender                9284L
+#define Item_Versuchstisch                9287L
+#define Loot_Bernstein                9630L
+//#define Location_Holland_Street                95L
+#define Location_Watling_Street                97L
+//#define Location_Parker                146L
+#define Person_Frank_De_Silva                9839L
+#define Item_Flugzeugheck                9244L
+#define Loot_Muenzesammlung                9626L
+#define Person_Dean_Esters                9851L
+#define Car_Fiat_Topolino_1936                14L
+#define Item_Lichtschranke                9263L
+#define Loot_ein_historisches_Kunstobjekt                9607L
+#define Tool_Dynamit                9522L
+#define Person_Thomas_Groul                9819L
+#define Location_Villa                118L
+#define Location_Sotherbys                128L
+#define CompleteLoot_MattsLoot                34L
+#define Person_Herbert_Briggs                9805L
+#define Item_Fasz                9289L
+#define Tool_Schuhe                9507L
+#define Item_Hecke                9257L
+#define Item_Mikrophon                9264L
+#define Item_Vase                9268L
+#define Location_Pink_Villa                111L
+#define Person_Red_Stanson                9847L
+#define Item_Kanone                9226L
+#define Car_Cadillac_Club_1952                5L
+#define Person_Jack_Motart                9836L
+#define Item_Gebuesch                9251L
+#define Car_Fiat_Topolino_1940                15L
+#define Loot_Buddha                9622L
+#define Person_Serge_Fontane                9813L
+#define Tool_Sauerstofflanze                9516L
+#define Car_Fiat_Topolino_1942                16L
+#define Car_Rover_75_1949                20L
+#define Item_Statue                9233L
+#define Loot_Jadepferd                9631L
+#define Person_Mohammed_Abdula                9812L
+#define Loot_Magna_Charta                9625L
+#define Location_Police_Office                153L
+#define Item_Stahltuer                9202L
+#define Item_Buecherregal                9241L
+#define Person_Paul_O_Conner                9802L
+#define Location_Jeweller_Out                108L
+#define Location_Antique_Shop_Out                110L
+#define Item_Kranz                9237L
+#define Item_Steinmauer                9253L
+#define Item_Grab                9259L
+//#define London_Escape                32L
+#define LSOLock_Zylinderschloss                9103L
+#define Item_leere_Palette                9290L
+#define Loot_Ring_des_Abtes                9634L
+#define Loot_Insektensammlung                9629L
+#define Item_Kirchenkreuz                9283L
+#define Person_Jim_Danner                9817L
+#define Location_Antique_Shop                109L
+//#define Location_Walrus                143L
+#define Location_Baker_Street                158L
+#define Item_Wache                9272L
+#define Item_Alarmanlage_Top                9212L
+#define Item_Spiegel                9231L
+#define Item_Tanne                9255L
+#define Location_Natural_Museum                132L
+#define Person_Dan_Stanford                9821L
+#define Location_Natural_Museum_Out                133L
+#define Item_Regal                9242L
+#define Loot_Gebrauchsartikel                9608L
+#define Item_Sessel                9216L
+#define Person_Thomas_Smith                9843L
+//#define Location_Maloya                147L
+#define Person_Rosi_Lambert                9854L
+#define Person_Peter_Brook                9829L
+#define Location_Kenwood_House                120L
+//#define Location_Nirvana                151L
+#define Item_Klavier                9221L
+#define Item_Wache_Figur                9299L
+#define Car_Rover_75_1950                21L
+#define Loot_Batman                9639L
+#define Loot_Geld                9602L
+#define Loot_Stein_von_Rosetta                9624L
+#define Car_Rover_75_1952                22L
+#define Item_Elch                9225L
+#define Loot_Kuriositaet                9606L
+#define Location_Jeweller                107L
+#define Loot_Beauty_Case                9615L
+#define LSObject_Beutesack_1                9701L
+//#define Location_Policestation                102L
+//#define Ability_Aufpassen                178L
+#define Item_Heiligenstatue                9281L
+#define Tool_Kernbohrer                9505L
+#define LSObject_Beutesack_2                9702L
+#define LSObject_Beutesack_3                9703L
+#define Location_Old_Peoples_Home_Out                114L
+#define LSObject_Beutesack_4                9704L
+#define Location_Tower                140L
+#define Item_Kasse                9262L
+#define LSObject_Beutesack_5                9705L
+#define Item_Kamin                9229L
+#define Item_Dinosaurier_                9248L
+#define Item_Dinosaurier__                9249L
+#define Tool_Axt                9504L
+#define Loot_Victorianische_Vase                9632L
+#define LSObject_Beutesack_6                9706L
+#define Location_Grave                117L
+//#define Ability_Schloesser                174L
+//#define Ability_Safes                176L
+#define Item_Kuehlschrank                9224L
+#define LSObject_Beutesack_7                9707L
+#define Location_Fat_Man_Out                150L
+#define Loot_ein_Bild                9600L
+#define Loot_Formel                9646L
+#define LSObject_Beutesack_8                9708L
+#define Item_Panzerschrank                9205L
+#define Item_verzierte_Saeule                9285L
+#define Person_Frank_Maloya                9814L
+#define Item_Miss_World_1952                9300L
+#define Location_Tobacconist                103L
+#define Loot_Unbekannter_                9641L
+#define Item_Opferkassa                9277L
+#define Loot_Goldring                9627L
+#define Item_Lokomotive_oben                292L
+#define Person_Miles_Chickenwing                9823L
+#define Person_Sid_Palmer                9850L
+#define Tool_Schloszstecher                9514L
+#define Person_Kevin_Smith                9837L
+#define Location_Baker_Street_Out                159L
+#define Location_National_Galery                134L
+#define Location_Dowing_Street_Out                165L
+#define Item_Scheinwerfer                9269L
+#define Item_Postsack                9306L
+#define Location_Sotherbys_Out                129L
+#define Item_Gemaelde                9206L
+#define Loot_Gold                9601L
+#define Location_Madame_Tussaud_Out                161L
+#define Person_Tony_Allen                9806L
+#define Location_Buckingham_Palace                169L
+#define Item_Gruft                9254L
+#define Location_Victoria_Out                137L
+#define Location_Kaserne                157L
+#define Item_Dicker_Man                9295L
+#define Loot_eine_Vase                9609L
+#define Person_Justin_White                9840L
+#define Location_Lambeth_Road                149L
+#define Loot_Zigarren                9610L
+//#define CompleteLoot_LastLoot                35L
+#define Item_Laubbaum                9252L
+//#define London_Jail                31L
+#define Location_Victoria                136L
+//#define Location_Hotel                142L
+#define Item_Kerzenstaender                9282L
+#define Item_Pult                9215L
+#define Item_Leiter                9307L
+//#define Person_Old_Matt                36L
+#define Person_Tina_Olavson                9856L
+#define Location_Tate_Gallery_Out                168L
+#define Item_Schreibtisch                9240L
+#define Item_Flugzeug_                9245L
+#define Item_Speisetisch                9303L
+#define Tool_Stromgenerator                9519L
+#define Item_Koenigs_Figur                9298L
+#define Item_Sitzbank                9302L
+#define Tool_Funkgeraet                9527L
+#define Location_Old_Peoples_Home                113L
+#define Tool_Bohrwinde                9513L
+#define Car_Ford_Model_T__1926                23L
+#define Item_Ausstellungskasten                9243L
+#define Item_Beefeater                9220L
+#define Person_Mike_Seeger                9810L
+#define Item_Wertschrank                9204L
+#define Location_Bank_Out                139L
+#define Person_Helen_Parker                9820L
+#define Location_Bank                138L
+#define Item_Mauertor                9250L
+#define Item_Stechuhr                9266L
+#define Item_Lokomotive_Kabine                294L
+#define Tool_Winkelschleifer                9511L
+#define Car_Opel_Olympia_1953                6L
+#define Person_Miguel_Garcia                9809L
+//#define Ability_Autos                173L
+#define Item_Kroehnungsstuhl                9276L
+#define Item_Unbekannter                9296L
+#define Item_groszer_Koffer                9301L
+#define Item_Lokomotive_vorne_rechts                290L
+#define Location_Cars_Vans_Out                96L
+#define Person_Mary_Bolton                9824L
+#define LSOLock_Buntbartschloss                9101L
+#define Loot_Sparstrumpf                9616L
+#define Person_Mike_Kahn                9838L
+#define Tool_Glasschneider                9524L
+#define Loot_Bibel                9619L
+#define Item_Kreuz                9236L
+#define Person_John_Gludo                9822L
+#define Item_Steuerkasten                9213L
+#define Item_Scheinwerfer1                9271L
+#define Item_Fichte                9256L
+#define Loot_Juwelen                9603L
+#define Tool_Stethoskop                9517L
+#define Loot_Hottentotten                9638L
+#define Person_Margrete_Briggs                9828L
+#define Item_Stahlschrank                9228L
+#define Location_Chiswick                126L
+#define Item_Badewanne                9222L
+#define Loot_Miss_World                9645L
+#define Person_Ben_Riggley                9844L
+#define Person_Phil_Ciggy                9857L
+#define Person_Luthmilla_Nervesaw                9842L
+#define Loot_Bronzestatue                9620L
+#define Item_Billardtisch                9217L
+#define Item_Alarmanlage_Z3                9210L
+#define Item_Kasten                9203L
+#define Item_Mauerecke                9209L
+#define Car_Standard_Vanguard_1950                7L
+#define Car_Standard_Vanguard_1951                8L
+#define Item_Kirchenbank                9274L
+#define Tool_Fusz                9525L
+#define Car_Jeep_1940                1L
+#define Car_Standard_Vanguard_1953                9L
+//#define Environment_TheClou                28L
+#define Item_Kiste                9288L
+#define Item_Lokomotive_vorne_links                291L
+#define Loot_Koffer                9635L
+#define Person_Melanie_Morgan                9853L
+#define Item_Holzkiste                9304L
+#define Car_Jeep_1945                2L
+#define Person_Rod_Masterson                9855L
+#define Location_Highgate                115L
+#define Car_Bentley_Continental_Typ_R_1952                24L
+#define Location_Tate_Gallery                167L
+#define Car_Bentley_Continental_Typ_R_1953                25L
+#define Item_Skelett                9247L
+#define Item_WC                9214L
+//#define Evidence_Evidence_1                33L
+#define Person_Eric_Pooly                9825L
+#define Item_Jack_the_Ripper_Figur                9297L
+#define Loot_Delikatessen                9604L
+#define Location_Hotel_Room                98L
+#define Person_Sabien_Pardo                9846L
+#define Person_Elisabeth_Schmitt                9827L
+#define Location_Trainstation                152L
+#define Person_Tom_Cooler                9849L
+#define Person_Robert_Bull                9818L
+//#define Location_Tools_Shop                101L
+#define Item_Flugzeug__                9246L
+#define Loot_Toilettetasche                9617L
+#define Person_Margret_Allen                9807L
+#define Item_Weihwasserbecken                9280L
+#define Car_Morris_Minor_1950                18L
+#define Person_Mathew_Black                9808L
+#define Location_Tobacconist_Out                104L
+#define Location_Monastery                154L
+#define Person_Pater_James                9848L
+#define Car_Morris_Minor_1953                19L
+#define Person_Garry_Stevenson                9834L
+#define Location_Parking                145L
+//#define Location_Pooly                148L
+#define Item_Fenster                9234L
+#define Car_Triumph_Roadstar_1947                3L
+#define Location_Madame_Tussaud                160L
+#define Item_Tisch                9219L
+#define Item_Altar                9275L
+#define Loot_Chinavase                9623L
+#define Car_Triumph_Roadstar_1949                4L
+#define Person_Prof_Emil_Schmitt                9826L
+#define Location_Ham_Out                123L
+#define Location_Buckingham_Palace_Out                170L
+#define Loot_Stone_of_Cone                9648L
+
+
+enum LootNameE 
+{
+	Kein_Name, 
+	Eine_Zigarrenkiste, 
+	Ein_Tiefgekuehlter_Hummer, 
+	Eine_Cartier_Uhr, 
+	Ein_Sanskrit_Buch, 
+	Ein_Autogramm_von_Oscar_Wilde,
+	Ein_Beauty_Case, 
+	Ein_Sparstrumpf, 
+	Eine_Toilettetasche, 
+	Die_Gebeine_von_Karl_Marx, 
+	Eine_Bibel, Eine_Bronzestatue, 
+	Ein_Silbergeschirr, 
+	Eine_Buddhastatue,
+	Eine_Chinavase, 
+	Der_Stein_von_Rosetta, 
+	Die_Magna_Charta, 
+	Eine_Muenzsammlung, 
+	Ein_Goldring, 
+	Ein_Saurierknochen, 
+	Eine_Insektensammlung, 
+	Ein_Bernstein,
+	Das_Jadepferd, 
+	Eine_Victorianische_Vase, 
+	Die_Kronjuwelen, 
+	Der_Ring_des_Abtes, 
+	Ein_Koffer, 
+	Ein_Dokument, 
+
+	//** Profidisk *************
+	Sherlock_Holmes_Opiumpfeife,
+	Eine_Hottentotten_Figur, 
+	Eine_Batman_Figur, 
+	Ein_Dicker_Man, 
+	Ein_Unbekannter, 
+	Eine_Jack_the_Ripper_Figur, 
+	Eine_Koenigs_Figur, 
+	Eine_Wache_Figur,
+	Eine_Miss_World_1952_Figur, 
+	Eine_Formel, 
+	Die_Unterhose_der_Queen, 
+	Der_Stone_of_Cone
+};
+enum SexE 
+{
+	Maennlich, 
+	Weiblich
+};
+enum ItemE 
+{
+	Holztuer, 
+	Stahltuer, 
+	Ausstellungskasten, 
+	Kasse, 
+	Kasten, 
+	Schreibtisch, 
+	Nachtkaestchen, 
+	Wertschrank, 
+	Stahlschrank, 
+	Panzerschrank, 
+	Tresorraum,
+	Mauer, 
+	Mauerecke, 
+	Steinmauer, 
+	Mauertor, 
+	Zaun, 
+	Zauntor, 
+	Saeule, 
+	Fenster, 
+	Alarmanlage_Z3, 
+	Alarmanlage_X3, 
+	Alarmanlage_Top, 
+	Mikrophon, 
+	Stechuhr, 
+	Scheinwerfer,
+	Lichtschranke, 
+	Steuerkasten, 
+	Grab, 
+	Grabhuegel, 
+	Kreuz, 
+	Kranz, 
+	Gruft, 
+	Treppe, 
+	Sockel, 
+	WC, 
+	Sessel, 
+	Pult, 
+	Statue, 
+	Beutesack, 
+	Bett, 
+	Billardtisch, 
+	Sofa, 
+	Spiegel,
+	Tisch, 
+	Kamin, 
+	Badewanne, 
+	Tresen, 
+	Gemaelde, 
+	Klavier, 
+	Buecherregal, 
+	Skelett, 
+	Dinosaurier, 
+	Elch, 
+	Kanone, 
+	Beefeater, 
+	Busch, 
+	Strauch, 
+	Gebuesch, 
+	Laubbaum,
+	Nadelbaum, 
+	Hecke, 
+	Hantel, 
+	Regal, 
+	Flugzeugheck, 
+	linker_Flugzeugfluegel, 
+	rechter_Flugzeugfluegel, 
+	Bild, 
+	Vase, 
+	Kuehlschrank, 
+	Wache, 
+
+	//** Profidisk *************
+	Beichtstuhl, 
+	Kirchenbank,
+	Altar, 
+	Kroehnungsstuhl, 
+	Opferkassa, 
+	Schrein, 
+	Kerzen, 
+	Weihwasserbecken, 
+	Heiligenstatue, 
+	Kerzenstaender, 
+	Kirchenkreuz, 
+	Gelaender, 
+	verzierte_Saeule,
+	Regal_mit_Chemikalien, 
+	Versuchstisch, 
+	Kiste, 
+	Fasz, 
+	leere_Palette, 
+	Palette_mit_Schachteln, 
+	Absperrung, 
+	Hottentotten_Figur, 
+	Batman_Figur, 
+	Dicker_Man,
+	Unbekannter, 
+	Jack_the_Ripper_Figur, 
+	Koenigs_Figur, 
+	Wache_Figur,
+	Miss_World_1952, 
+	groszer_Koffer, 
+	Sitzbank, 
+	Speisetisch, 
+	Holzkiste, 
+	Palette_mit_Kisten, 
+	Postsack, Leiter, 
+	Zuggelaender, 
+	Lokomotive_vorne_rechts,
+	Lokomotive_vorne_links, 
+	Lokomotive_oben, 
+	Lokomotive_seitlich, 
+	Lokomotive_Kabine, 
+	Lokomotive_Tuer
+};
+enum ColorE 
+{
+	Grau, 
+	Gruen, 
+	Tuerkis, 
+	Violett, 
+	Beige, 
+	Silber, 
+	Rot, 
+	Hellgruen, 
+	Blau, 
+	Gelb
+};
+enum AbilityE 
+{
+	Autos, 
+	Schloesser, 
+	Sprengstoff, 
+	Safes, 
+	Elektronik, 
+	Aufpassen, 
+	Kampf
+};
+enum LockE 
+{
+	Buntbartschloss, 
+	Kombinationsschloss, 
+	Zylinderschloss
+};
+enum LandE 
+{
+	GB, 
+	USA, 
+	Italien, 
+	Deutschland
+};
+enum JobE 
+{
+	Detektiv, 
+	Sprengmeister, 
+	Schlosser, 
+	Hehler, 
+	Haendler, 
+	Taxifahrer, 
+	Mechaniker, 
+	Elektriker, 
+	Sekretaerin, 
+	Anwalt, 
+	Unbekannt, 
+	Profiboxer,
+	Angestellte, 
+	Soldat, 
+	Student, 
+	Literat, 
+	Professor, 
+	Hausfrau, 
+	Politiker, 
+	Abenteurer, 
+	Agent, 
+	Musiker, 
+	Pilot, 
+	Kellner, 
+	Rezeptionist, 
+	Polizeichef, 
+	Polizist,
+	Moench, 
+	Inspektor, 
+	Pizzafahrer, 
+	Kellner_und_Student, 
+
+	//** Profidisk *************
+	Arbeiter, 
+	Butler, 
+	Krankenschwester
+};
+enum LootE 
+{
+	Ein_Bild, 
+	Gold, Geld, 
+	Juwelen, 
+	Delikatessen, 
+	Eine_Statue, 
+	Eine_Kuriositaet, 
+	Ein_historisches_Kunstobjekt, 
+	Gebrauchsartikel, 
+	Eine_Vase
+};
+
+
+#define Object_Item              9905L
+#define Object_Item_Size         sizeof(struct _Item)
+struct _Item
+{
+   TCenum(ItemE) Type;
+   unsigned short OffsetFact;
+   unsigned short HExactXOffset;
+   unsigned short HExactYOffset;
+   unsigned short HExactWidth;
+   unsigned short HExactHeight;
+   unsigned short VExactXOffset;
+   unsigned short VExactYOffset;
+   unsigned short VExactWidth;
+   unsigned short VExactHeight;
+   unsigned char Size;
+   unsigned char ColorNr;
+
+};
+typedef struct _Item *Item;
+
+#define Object_London              9908L
+#define Object_London_Size         sizeof(struct _London)
+struct _London
+{
+   unsigned char Useless;
+
+};
+typedef struct _London *London;
+
+#define Object_Evidence              9909L
+#define Object_Evidence_Size         sizeof(struct _Evidence)
+struct _Evidence
+{
+   unsigned long pers;
+   unsigned char Recognition;
+   unsigned char WalkTrail;
+   unsigned char WaitTrail;
+   unsigned char WorkTrail;
+   unsigned char KillTrail;
+   unsigned char CallTrail;
+   unsigned char PaperTrail;
+   unsigned char FotoTrail;
+
+};
+typedef struct _Evidence *Evidence;
+
+#define Object_Location              9903L
+#define Object_Location_Size         sizeof(struct _Location)
+struct _Location
+{
+   unsigned long LocationNr;
+   unsigned short OpenFromMinute;
+   unsigned short OpenToMinute;
+
+};
+typedef struct _Location *Location;
+
+#define Object_Person              9900L
+#define Object_Person_Size         sizeof(struct _Person)
+struct _Person
+{
+   unsigned short PictID;
+   TCenum(JobE) Job;
+   TCenum(SexE) Sex;
+   char Age;
+   unsigned char Health;
+   unsigned char Mood;
+   unsigned char Intelligence;
+   unsigned char Strength;
+   unsigned char Stamina;
+   unsigned char Loyality;
+   unsigned char Skill;
+   unsigned char Known;
+   unsigned char Popularity;
+   unsigned char Avarice;
+   unsigned char Panic;
+   unsigned char KnownToPolice;
+   unsigned long TalkBits;
+   unsigned char TalkFileID;
+   unsigned char OldHealth;
+};
+typedef struct _Person *Person;
+
+#define Object_Car              9902L
+#define Object_Car_Size         sizeof(struct _Car)
+struct _Car
+{
+   unsigned short PictID;
+   TCenum(LandE) Land;
+   unsigned long Value;
+   unsigned short YearOfConstruction;
+   TCenum(ColorE) ColorIndex;
+   unsigned char Strike;
+   unsigned long Capacity;
+   unsigned char PS;
+   unsigned char Speed;
+   unsigned char State;
+   unsigned char MotorState;
+   unsigned char BodyWorkState;
+   unsigned char TyreState;
+   unsigned char PlacesInCar;
+
+};
+typedef struct _Car *Car;
+
+#define Object_Tool              9906L
+#define Object_Tool_Size         sizeof(struct _Tool)
+struct _Tool
+{
+   unsigned short PictID;
+   unsigned long Value;
+   unsigned char Danger;
+   unsigned char Volume;
+   unsigned char Effect;
+
+};
+typedef struct _Tool *Tool;
+
+#define Object_CompleteLoot              9911L
+#define Object_CompleteLoot_Size         sizeof(struct _CompleteLoot)
+struct _CompleteLoot
+{
+   unsigned long Bild;
+   unsigned long Gold;
+   unsigned long Geld;
+   unsigned long Juwelen;
+   unsigned long Delikates;
+   unsigned long Statue;
+   unsigned long Kuriositaet;
+   unsigned long HistKunst;
+   unsigned long GebrauchsArt;
+   unsigned long Vase;
+   unsigned long TotalWeight;
+   unsigned long TotalVolume;
+
+};
+typedef struct _CompleteLoot *CompleteLoot;
+
+#define Object_Ability              9904L
+#define Object_Ability_Size         sizeof(struct _Ability)
+struct _Ability
+{
+   TCenum(AbilityE) Name;
+   unsigned long Use;
+};
+typedef struct _Ability *Ability;
+
+#define Object_Environment              9907L
+#define Object_Environment_Size         sizeof(struct _Environment)
+struct _Environment
+{
+   unsigned char MattHasHotelRoom;
+   unsigned char MattHasIdentityCard;
+   unsigned char WithOrWithoutYou;
+   unsigned char MattIsInLove;
+   unsigned char SouthhamptonHappened;
+   unsigned char Present;
+   unsigned char FirstTimeInSouth;
+   unsigned char PostzugDone;
+
+};
+typedef struct _Environment *Environment;
+
+#define Object_Player              9901L
+#define Object_Player_Size         sizeof(struct _Player)
+struct _Player
+{
+   unsigned long Money;
+   unsigned long StolenMoney;
+   unsigned long MyStolenMoney;
+   unsigned char NrOfBurglaries;
+   unsigned char JobOfferCount;
+   unsigned char MattsPart;
+   unsigned long CurrScene;
+   unsigned long CurrDay;
+   unsigned long CurrMinute;
+   unsigned long CurrLocation;
+};
+typedef struct _Player *Player;
+
+#define Object_LSOLock              9912L
+#define Object_LSOLock_Size         sizeof(struct _LSOLock)
+struct _LSOLock
+{
+   TCenum(LockE) Type;
+
+};
+typedef struct _LSOLock *LSOLock;
+
+#define Object_LSObject              9913L
+#define Object_LSObject_Size         sizeof(struct _LSObject)
+struct _LSObject
+{
+   unsigned short us_OffsetFact;
+   unsigned short us_DestX;
+   unsigned short us_DestY;
+   unsigned char uch_ExactX;
+   unsigned char uch_ExactY;
+   unsigned char uch_ExactX1;
+   unsigned char uch_ExactY1;
+   unsigned char uch_Size;
+   unsigned char uch_Visible;
+   unsigned char uch_Chained;
+   unsigned long ul_Status;
+   unsigned long Type;
+};
+typedef struct _LSObject *LSObject;
+
+#define Object_Loot              9910L
+#define Object_Loot_Size         sizeof(struct _Loot)
+struct _Loot
+{
+   TCenum(LootE) Type;
+   TCenum(LootNameE) Name;
+   unsigned long Volume;
+   unsigned short Weight;
+   unsigned short PictID;
+
+};
+typedef struct _Loot *Loot;
+
+/*
+ * Data header file created with dc
+ * (c) 1993 by ...and avoid panic by
+ *
+ * Database (offset, size) : tcBuild (500000, 10000)
+ */
+
+#define DB_tcBuild_OFFSET        500000
+#define DB_tcBuild_SIZE          10000
+
+
+#define Relation_isGuardedby      500003
+#define isGuardedbyP(l,r,p,c)     AskP   (dbGetObject (l), 500003, dbGetObject (r), p, c)
+#define isGuardedby(l,r)          AskP   (dbGetObject (l), 500003, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define isGuardedbyAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 500003, BuildObjectList); }
+#define isGuardedbySetP(l,r,p)    SetP   (dbGetObject (l), 500003, dbGetObject (r), p)
+#define isGuardedbySet(l,r)       SetP   (dbGetObject (l), 500003, dbGetObject (r), NO_PARAMETER)
+#define isGuardedbyUnSet(l,r)     UnSet  (dbGetObject (l), 500003, dbGetObject (r))
+#define isGuardedbyGet(l,r)       GetP   (dbGetObject (l), 500003, dbGetObject (r))
+
+#define Relation_startsWith      500001
+#define startsWithP(l,r,p,c)     AskP   (dbGetObject (l), 500001, dbGetObject (r), p, c)
+#define startsWith(l,r)          AskP   (dbGetObject (l), 500001, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define startsWithAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 500001, BuildObjectList); }
+#define startsWithSetP(l,r,p)    SetP   (dbGetObject (l), 500001, dbGetObject (r), p)
+#define startsWithSet(l,r)       SetP   (dbGetObject (l), 500001, dbGetObject (r), NO_PARAMETER)
+#define startsWithUnSet(l,r)     UnSet  (dbGetObject (l), 500001, dbGetObject (r))
+#define startsWithGet(l,r)       GetP   (dbGetObject (l), 500001, dbGetObject (r))
+
+#define Relation_consistsOf      500002
+#define consistsOfP(l,r,p,c)     AskP   (dbGetObject (l), 500002, dbGetObject (r), p, c)
+#define consistsOf(l,r)          AskP   (dbGetObject (l), 500002, dbGetObject (r), NO_PARAMETER, CMP_NO)
+#define consistsOfAll(l,f,t)     { SetObjectListAttr (f,t); AskAll (dbGetObject (l), 500002, BuildObjectList); }
+#define consistsOfSetP(l,r,p)    SetP   (dbGetObject (l), 500002, dbGetObject (r), p)
+#define consistsOfSet(l,r)       SetP   (dbGetObject (l), 500002, dbGetObject (r), NO_PARAMETER)
+#define consistsOfUnSet(l,r)     UnSet  (dbGetObject (l), 500002, dbGetObject (r))
+#define consistsOfGet(l,r)       GetP   (dbGetObject (l), 500002, dbGetObject (r))
+
+
+#define Building_Suterbys                509012L
+#define Building_British_Museum                509013L
+#define LSArea_TobaEta0                508001L
+#define LSArea_ToweEta0                508041L
+#define LSArea_ToweEta1                508042L
+#define LSArea_TateEta0                508111L
+#define Building_Tante_Emma_Laden                509001L
+#define Building_Westminster_Abbey                509103L
+#define LSArea_ToweEta2                508043L
+#define LSArea_SothEta0                508028L
+#define LSArea_VictEta0                508037L
+#define LSArea_ChisEta0                508025L
+#define Building_Bulstrode_Chemestry_Ltd                509108L
+#define LSArea_DownEta0                508107L
+#define Building_Bank_of_England                509017L
+#define Building_Grab_von_Karl_Marx                509006L
+#define Building_Villa                509007L
+#define LSArea_KenwEta0                508016L
+#define Building_Pink_Villa                509004L
+#define LSArea_HamHEta0                508019L
+#define Building_Seniorenheim                509005L
+#define Building_Baker_Street                509101L
+#define LSArea_NatiEta0                508035L
+#define Building_Natural_Museum                509014L
+#define Building_Downing_Street_10                509104L
+#define LSArea_BuckEta0                508113L
+#define LSArea_BuckEta1                508114L
+#define Building_Kenwood_House                509008L
+#define LSArea_TussEta0                508103L
+#define LSArea_VillEta0                508014L
+#define LSArea_VillEta1                508015L
+#define Police_Waechter_1                508500L
+#define LSArea_AntiEta0                508007L
+#define Police_Waechter_2                508501L
+#define Police_Waechter_3                508502L
+#define Building_Old_Curiosity_Shop                509003L
+#define Police_Waechter_4                508503L
+#define Building_Chiswick_House                509011L
+#define LSArea_BritEta0                508031L
+#define LSArea_BritEta1                508032L
+#define LSArea_BulCEta0                508115L
+#define LSArea_BulCEta1                508116L
+#define LSArea_JuweEta0                508005L
+#define LSArea_SeniEta0                508011L
+#define Building_Ham_House                509009L
+#define Building_National_Galery                509015L
+#define LSArea_NatuEta0                508033L
+#define LSArea_WestEta0                508105L
+#define Building_Buckingham_Palace                509107L
+#define Building_Postzug                509105L
+#define LSArea_BakeEta0                508101L
+#define LSArea_BakeEta1                508102L
+#define Building_Victoria_und_Albert_Museum                509016L
+#define Building_Starford_Kaserne                509019L
+#define Building_Tower_of_London                509018L
+#define Building_Juwelier                509002L
+#define LSArea_MarxEta0                508013L
+#define LSArea_AuntEta0                508003L
+#define LSArea_KaseEta0                508044L
+#define LSArea_KaseEta1                508045L
+#define LSArea_KaseEta2                508046L
+#define LSArea_TranEta0                508009L
+#define LSArea_TranEta1                508010L
+#define Building_Tate_Gallery                509106L
+#define LSArea_TraiEta0                508109L
+#define Building_Osterly_Park_House                509010L
+#define LSArea_OsteEta0                508022L
+#define Building_Kiosk                509000L
+#define Building_Madame_Tussaud                509102L
+#define LSArea_BankEta0                508039L
+
+
+enum RouteE {Innenstadt, Stadt, Landstrasse, Autobahn};
+
+
+
+
+#define Object_LSRoom              509993L
+#define Object_LSRoom_Size         sizeof(struct _LSRoom)
+struct _LSRoom
+{
+   unsigned short us_LeftEdge;
+   unsigned short us_TopEdge;
+   unsigned short us_Width;
+   unsigned short us_Height;
+
+};
+typedef struct _LSRoom *LSRoom;
+
+#define Object_Building              509990L
+#define Object_Building_Size         sizeof(struct _Building)
+struct _Building
+{
+   unsigned long LocationNr;
+   unsigned short PoliceTime;
+   unsigned short GTime;
+   unsigned char Exactlyness;
+   unsigned char GRate;
+   unsigned char Strike;
+   unsigned long Values;
+   TCenum(RouteE) EscapeRoute;
+   unsigned char EscapeRouteLength;
+   unsigned char RadioGuarding;
+   unsigned char MaxVolume;
+   unsigned char GuardStrength;
+   unsigned short CarXPos;
+   unsigned short CarYPos;
+   unsigned char DiskId;
+
+};
+typedef struct _Building *Building;
+
+#define Object_Police              509991L
+#define Object_Police_Size         sizeof(struct _Police)
+struct _Police
+{
+   unsigned short PictID;
+   unsigned char LivingID;
+
+};
+typedef struct _Police *Police;
+
+#define Object_LSArea              509992L
+#define Object_LSArea_Size         sizeof(struct _LSArea)
+struct _LSArea
+{
+   unsigned short us_Coll16ID;
+   unsigned short us_Coll32ID;
+   unsigned short us_Coll48ID;
+   unsigned short us_PlanColl16ID;
+   unsigned short us_PlanColl32ID;
+   unsigned short us_PlanColl48ID;
+   unsigned short us_FloorCollID;
+   unsigned short us_PlanFloorCollID;
+   unsigned short us_Width;
+   unsigned short us_Height;
+   unsigned long ul_ObjectBaseNr;
+   unsigned char uch_Darkness;
+   unsigned short us_StartX0;
+   unsigned short us_StartX1;
+   unsigned short us_StartX2;
+   unsigned short us_StartX3;
+   unsigned short us_StartX4;
+   unsigned short us_StartX5;
+   unsigned short us_StartY0;
+   unsigned short us_StartY1;
+   unsigned short us_StartY2;
+   unsigned short us_StartY3;
+   unsigned short us_StartY4;
+   unsigned short us_StartY5;
+};
+typedef struct _LSArea *LSArea;
+
+
+/* Now follow the double-assigned constants.
+depending on the version they must be assigned different, this is done via macros */
+
+typedef enum {  //27 overlaps
+	_Ability_Kampf,
+	_Location_Cars_Vans_Office,
+	_London_London_1,
+	_Location_Fat_Mans_Pub,
+	_Player_Player_1,
+	_Ability_Sprengstoff,
+	_Location_Highgate_Out,
+	_Ability_Elektronik,
+	_Location_Holland_Street,
+	_Location_Parker,
+	_London_Escape,
+	_Location_Walrus,
+	_Location_Maloya,
+	_Location_Nirvana,
+	_Location_Policestation,
+	_Ability_Aufpassen,
+	_Ability_Schloesser,
+    _Ability_Safes,
+	_CompleteLoot_LastLoot,
+	_London_Jail,
+	_Location_Hotel,
+	_Person_Old_Matt,
+	_Ability_Autos,
+	_Environment_TheClou,
+    _Evidence_Evidence_1,
+    _Location_Tools_Shop,
+    _Location_Pooly   
+} DoubleAssignValueE;
+
+ulong getValue(DoubleAssignValueE val);
+
+#define Ability_Kampf        getValue(_Ability_Kampf)
+#define Location_Cars_Vans_Office        getValue(_Location_Cars_Vans_Office)
+#define London_London_1        getValue(_London_London_1)
+#define Location_Fat_Mans_Pub        getValue(_Location_Fat_Mans_Pub)
+#define Player_Player_1        getValue(_Player_Player_1)
+#define Ability_Sprengstoff        getValue(_Ability_Sprengstoff)
+#define Location_Highgate_Out        getValue(_Location_Highgate_Out)
+#define Ability_Elektronik        getValue(_Ability_Elektronik)
+#define Location_Holland_Street        getValue(_Location_Holland_Street)
+#define Location_Parker        getValue(_Location_Parker)
+#define London_Escape        getValue(_London_Escape)
+#define Location_Walrus        getValue(_Location_Walrus)
+#define Location_Maloya        getValue(_Location_Maloya)
+#define Location_Nirvana        getValue(_Location_Nirvana)
+#define Location_Policestation        getValue(_Location_Policestation)
+#define Ability_Aufpassen        getValue(_Ability_Aufpassen)
+#define Ability_Schloesser        getValue(_Ability_Schloesser)
+#define Ability_Safes        getValue(_Ability_Safes)
+#define CompleteLoot_LastLoot        getValue(_CompleteLoot_LastLoot)
+#define London_Jail        getValue(_London_Jail)
+#define Location_Hotel        getValue(_Location_Hotel)
+#define Person_Old_Matt        getValue(_Person_Old_Matt)
+#define Ability_Autos        getValue(_Ability_Autos)
+#define Environment_TheClou        getValue(_Environment_TheClou)
+#define Evidence_Evidence_1        getValue(_Evidence_Evidence_1)
+#define Location_Tools_Shop        getValue(_Location_Tools_Shop)
+#define Location_Pooly        getValue(_Location_Pooly)
+                
+
+#endif   /* MODULE_TCDATA */
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/dialog/dialog.c b/cosp-0.6-src/ClouRemake/ClouRemake/dialog/dialog.c
new file mode 100644
index 0000000..bbacac8
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/dialog/dialog.c
@@ -0,0 +1,445 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "dialog\dialog.h"
+#include "dialog\talkappl.h"
+#include "sound\mxr.h"
+
+#define DLG_NO_SPEECH	((ulong) -1)
+ulong	StartFrame = DLG_NO_SPEECH;
+ulong EndFrame = DLG_NO_SPEECH;
+
+struct DynDlgNode
+{
+	NODE	Link;
+
+	ubyte	KnownBefore;   /* wie gut Sie bekannt sein m�ssen */
+	ubyte	KnownAfter;    /* wie gut Sie danach bekannt sind ! */
+
+	uword	Padding;
+};
+
+
+LIST *PrepareQuestions(LIST *keyWords, ulong talkBits, ubyte textID)
+{
+	LIST *stdQuestionList, *questionList, *preparedList;
+	NODE *n, *n2;
+	char question[TXT_KEY_LENGTH] = {0};
+	ulong r, i;
+	char *name;
+
+	preparedList = (LIST*)CreateList(0);
+	stdQuestionList = txtGoKey(BUSINESS_TXT, "STD_QUEST");
+	questionList = txtGoKey((ulong)textID, "QUESTIONS");
+
+	for (n = (NODE*)LIST_HEAD(keyWords); NODE_SUCC((NODE*)n); n=(NODE*)NODE_SUCC(n))
+	{
+		r = CalcRandomNr(0L,6L);
+		if (n2 = (NODE*)GetNthNode(questionList, r))
+		{
+			name = NODE_NAME(n2);
+			sprintf(question, name, NODE_NAME((NODE*)n));
+			CreateNode(preparedList, 0L, question);
+		}
+		#ifdef THECLOU_DEBUG
+		else
+		{
+			Log("GetNthNode(questionList, %d) = NULL", r);
+		}
+		#endif
+	}
+
+	for (i = 0; i < 32; i++)
+	{
+		if (talkBits & (1 << i))
+		{
+			if (n2 = (NODE*)GetNthNode(stdQuestionList, i))
+			{
+				name = NODE_NAME(n2);
+				strcpy(question, name);
+				CreateNode(preparedList, 0L, question);
+			}
+			#ifdef THECLOU_DEBUG
+			else
+			{
+				Log("GetNthNode(stdQuestionList, %d) = NULL", i);
+			}
+			#endif
+		}
+	}
+
+	txtGetFirstLine(BUSINESS_TXT, "Bye_says_Matt", question);
+	CreateNode(preparedList, 0L, question);
+
+	RemoveList(stdQuestionList);
+	RemoveList(questionList);
+
+	return(preparedList);
+}
+
+LIST *ParseTalkText(LIST *origin, LIST *bubble, ubyte known)
+{
+	LIST *keyWords;
+	NODE *n, *keyNode;
+	char line[TXT_KEY_LENGTH] = {0};
+	char key[TXT_KEY_LENGTH] = {0};
+	char keyWord[TXT_KEY_LENGTH] = {0};
+	ubyte line_pos,mem_pos,key_pos;
+	char *mem;
+	ubyte snr[10],snr1[10],nr,nr1;
+	ulong i;
+	ulong sl;
+
+	keyWords = (LIST*)CreateList(0);
+
+	for (n = (NODE*)LIST_HEAD(origin); NODE_SUCC(n); n = (NODE*)NODE_SUCC(n))
+	{
+		line_pos = key_pos = mem_pos = 0;
+
+		mem = NODE_NAME(n);
+
+		sl = strlen(mem);
+
+		while (mem_pos < sl)
+		{
+			if (mem[mem_pos] != '[')
+			{
+				line[line_pos++] = mem[mem_pos++];
+			}
+			else
+			{
+				mem_pos++;    /* Klammer �ueberspringen ! */
+				key_pos=0;
+
+				while (mem[mem_pos] != ']')
+				{
+					key[key_pos++] = mem[mem_pos++];
+				}
+
+				key[key_pos++] = EOS;
+
+				mem_pos++;    /* Klammer �berspringen ! */
+
+				for (i = 0; i < 3; i++)    /* Zahlen entfernen */
+				{
+					snr[i] = key[i];
+					snr1[i] = key[key_pos - 4 + i];
+				}
+
+				for (i = 3; i < (strlen(key)-3); i++)     /* keyWord */
+				{
+					keyWord[i-3] = key[i];
+				}
+
+				/* umwandeln ! */
+				snr[3] = EOS;
+				snr1[3] = EOS;
+				keyWord[strlen(key) - 6] = EOS;
+
+				nr  = (ubyte)atol((char*)snr);
+				nr1 = (ubyte)atol((char*)snr1);
+
+				/* keyword einf�gen */
+				for (i = 0; i < strlen(keyWord); i++)
+				{
+					line[line_pos++] = keyWord[i];
+				}
+
+				if (known >= nr)
+				{
+					keyNode = (NODE*)CreateNode(keyWords, sizeof(struct DynDlgNode), keyWord);
+					((struct DynDlgNode*)keyNode)->KnownBefore = nr;
+					((struct DynDlgNode*)keyNode)->KnownAfter = nr1;
+				}
+			}
+		}
+		line[line_pos++]= EOS;
+		CreateNode(bubble, 0L, line);
+	}
+
+	return(keyWords);
+}
+
+void DynamicTalk(ulong Person1ID, ulong Person2ID, ubyte TalkMode)
+{
+	char *Extension[4] = { "_UNKNOWN","_KNOWN","_FRIENDLY","_BUSINESS" };
+	char *Standard = "STANDARD";
+	ubyte known = 0;
+	Person p1, p2;
+	char key[TXT_KEY_LENGTH] = {0};
+	char name[TXT_KEY_LENGTH] = {0};
+	ubyte choice = 0, uch_Max = 1, i, uch_Quit, stdcount = 0, j, gencount = 0, textID;
+	LIST *origin = NULL, *questions = NULL, *bubble, *keyWords;
+	struct DynDlgNode *n;
+
+	p1 = (Person)dbGetObject(Person1ID);
+	p2 = (Person)dbGetObject(Person2ID);
+
+	bubble = (LIST*)CreateList(0);
+
+	tcChgPersPopularity(p1, 5);   /* Bekanntheit steigt sehr gering */
+
+	/* je nach Bekanntheitsgrad wird Matt begr��t ! */
+	dbGetObjectName(Person2ID, name);
+	strcpy(key, name);
+
+	if (TalkMode & DLG_TALKMODE_BUSINESS)
+	{
+		knowsSet(Person1ID, Person2ID);
+		known = 3;     /* Business */
+	}
+	else
+	{
+		if (!(knows(Person1ID,Person2ID)))
+		{
+			known = 0;
+			knowsSet(Person1ID,Person2ID);
+		}
+		else
+		{
+		    known = 1;  /* MOD - kein "FRIENDLY mehr m�glich!" */
+		}
+	}
+
+	strcat(key, Extension[known]);
+
+	if (p2->TalkFileID)
+	{
+		textID = TALK_1_TXT;
+	}
+	else
+	{
+	    textID = TALK_0_TXT;
+	}
+
+	if (!(txtKeyExists(textID, key)))
+	{
+		strcpy(key,Standard);
+		strcat(key,Extension[known]);
+	}
+
+	do
+    {
+		origin    = txtGoKey(textID, key);
+		keyWords  = ParseTalkText(origin, bubble, p2->Known);
+		questions = PrepareQuestions(keyWords, p2->TalkBits, textID);
+
+		if (choice < (uch_Max - stdcount))
+		{
+			SetPictID(p2->PictID);
+			Bubble(bubble, 0, 0L, 0L);
+		}
+
+		SetPictID(MATT_PICTID);
+		choice = Bubble(questions, 0, 0L, 0L);
+
+		//uch_Max = GetNrOfNodes(questions) - 1;
+		uch_Max = GetNrOfNodes(questions);
+		if (uch_Max) uch_Max--;
+		uch_Quit = uch_Max;
+
+		for (i = 0, stdcount = 0; i < 32; i++)   /* Std Fragen z�hlen */
+		{
+			if (p2->TalkBits & (1 << i))
+			{
+				stdcount++;
+			}
+		}
+
+		//gencount = uch_Max - stdcount;
+		if (uch_Max > stdcount) gencount = uch_Max - stdcount;
+		else gencount = 0;
+
+		if (choice < gencount)
+		{
+			if (n = (struct DynDlgNode*)GetNthNode(keyWords, (ulong)choice))
+			{
+				strcpy(key, name);
+				strcat(key, "_");
+				strcat(key, NODE_NAME(n));
+
+				if (n->KnownAfter > p2->Known)
+				{
+					p2->Known = n->KnownAfter;
+				}
+			}
+			#ifdef THECLOU_DEBUG
+			else
+			{
+				Log("GetNthNode(keyWords, %d) = NULL", choice);
+			}
+			#endif
+		}
+
+		if (choice >= gencount && choice < uch_Quit)
+		{
+			for (i = 0; i < 32; i++)   /*  start at the first set bit! */
+			{
+				if ((1<<i) & p2->TalkBits)
+				{
+					break;
+				}
+			}
+
+			for (j = 0; (i < 32) && (j != (choice - gencount)); i++)
+			{
+				if ((1<<i) & p2->TalkBits)
+				{
+					j++;
+				}
+			}
+
+			switch (i)
+			{
+				case 0:
+					tcJobOffer (p2);
+					tcChgPersPopularity(p1, 10);
+				break;
+				case 1:
+					tcMyJobAnswer (p2);
+				break;
+				case 2:
+					tcPrisonAnswer (p2);
+				break;
+				case 3:
+					tcAbilityAnswer(Person2ID);
+				break;
+			}
+		}
+
+		RemoveList(keyWords);
+		RemoveList(origin);
+		RemoveList(questions);
+		RemoveNode(bubble,NULL);
+	} while (choice != uch_Quit);
+
+	RemoveList(bubble);
+}
+
+void PlayFromCDROM(void)
+{
+	if ((StartFrame != DLG_NO_SPEECH) && (EndFrame != DLG_NO_SPEECH))
+	{
+		sndFading(16);
+		CDROM_PlayAudioSequence(2, StartFrame, EndFrame);
+	}
+}
+
+ubyte Say(ulong TextID,ubyte activ,uword person,char *text)
+{
+	LIST *bubble;
+	ubyte choice;
+	char keys[TXT_KEY_LENGTH] = {0};
+	char wavName[256];
+
+	if (!bCDRom) {
+		bubble = txtGoKey(TextID,(char*)text);
+
+		if (person != (uword)-1) {
+			SetPictID(person);
+		}
+
+		choice = Bubble(bubble, activ, NULL, 0L);
+		RemoveList(bubble);
+	} else {
+		bubble = txtGoKey(TextID,text);
+
+		if (person != (uword) -1) {
+			SetPictID(person);
+		}
+
+        //the voice output must be started from the procedure "Bubble"
+        //because after the start of the voice output no access to the CDROM
+        //may occur (The voice output would be otherwise interrupted)
+
+		if (CDRomInstalled) {
+			if (txtKeyExists(CDROM_TXT, text)) {
+				txtGetFirstLine(CDROM_TXT, text, keys);
+
+				StartFrame = (txtGetKeyAsULONG(1,keys) * 60L + txtGetKeyAsULONG(2, keys)) * 75L + txtGetKeyAsULONG(3, keys);
+				EndFrame = (txtGetKeyAsULONG(4,keys) * 60L + txtGetKeyAsULONG(5, keys)) * 75L + txtGetKeyAsULONG(6, keys);
+
+				choice = Bubble(bubble,activ,NULL,0L);
+			} else {
+				StartFrame = DLG_NO_SPEECH;
+				EndFrame = DLG_NO_SPEECH;
+
+				choice = Bubble(bubble,activ,NULL,0L);
+			}
+
+			CDROM_StopAudioTrack();
+		} else {
+			dskBuildPathName(AUDIO_DIRECTORY, text, wavName);
+			strcat(wavName, ".wav");
+
+			sndFading(16);
+
+			MXR_SetInput(pAudioMixer, MXR_INPUT_VOICE, MXR_CreateInputWAV(wavName));
+			
+			choice = Bubble(bubble,activ,NULL,0L);
+			
+			MXR_SetInput(pAudioMixer, MXR_INPUT_VOICE, NULL);
+		}
+		sndFading(0);
+
+		StartFrame = DLG_NO_SPEECH;
+		EndFrame = DLG_NO_SPEECH;
+
+		RemoveList(bubble);
+	}
+
+	return(choice);
+}
+
+ulong Talk(void)
+{
+	ulong succ_event_nr=0L,locNr,personID;
+	LIST  *bubble;
+	ubyte choice;
+	char helloFriends[TXT_KEY_LENGTH] = {0};
+
+	inpTurnESC (0);
+
+	if (locNr= GetObjNrOfLocation(GetLocation))
+	{
+		hasAll(locNr, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Person);
+		bubble = ObjectListPrivate;
+
+		if (!(LIST_EMPTY(bubble)))
+		{
+			inpTurnESC (1);
+
+			txtGetFirstLine(BUSINESS_TXT, "NO_CHOICE", helloFriends);
+			ExpandObjectList(bubble, helloFriends);
+
+			if (ChoiceOk((choice = Bubble(bubble, 0, 0L, 0L)), GET_OUT, bubble))
+			{
+				personID = ((struct ObjectNode *)GetNthNode(bubble,(ulong)choice))->nr;
+
+				inpTurnESC (0);
+
+				if (PersonWorksHere(personID, locNr))
+				{
+					DynamicTalk(Person_Matt_Stuvysunt,personID, DLG_TALKMODE_BUSINESS);
+				}
+				else
+				{
+				    DynamicTalk(Person_Matt_Stuvysunt,personID, DLG_TALKMODE_STANDARD);
+				}
+			}
+		}
+		else
+		{
+		    Say(BUSINESS_TXT,0,MATT_PICTID,"NOBODY HERE");
+		}
+
+		RemoveList(bubble);
+	}
+
+	inpTurnESC (1);
+
+	return(succ_event_nr);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/dialog/dialog.h b/cosp-0.6-src/ClouRemake/ClouRemake/dialog/dialog.h
new file mode 100644
index 0000000..3676a1f
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/dialog/dialog.h
@@ -0,0 +1,56 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_DIALOG
+#define MODULE_DIALOG
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_INTERAC
+#include "present\interac.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_GAMEPLAY
+#include "gameplay\gp.h"
+#endif
+
+#ifndef MODULE_SOUND
+#include "sound\newsound.h"
+#endif
+
+#ifndef MODULE_CDROM
+#include "cdrom\cdrom.h"
+#endif
+void PlayFromCDROM(void);
+
+#define   DLG_TALKMODE_BUSINESS    1
+#define   DLG_TALKMODE_STANDARD    2
+
+extern void DynamicTalk(ulong Person1ID, ulong Person2ID, ubyte TalkMode);
+extern ubyte Say(ulong TextID, ubyte activ, uword person, char *text);
+extern ulong Talk(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/dialog/talkappl.c b/cosp-0.6-src/ClouRemake/ClouRemake/dialog/talkappl.c
new file mode 100644
index 0000000..b4a69ba
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/dialog/talkappl.c
@@ -0,0 +1,103 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "dialog\talkappl.h"
+
+void tcJobOffer(Person p)
+{
+	LIST  *bubble;
+	ubyte  choice;
+	long   part;
+	Player player = (Player)dbGetObject(Player_Player_1);
+
+	if(!(join(Person_Matt_Stuvysunt, dbGetObjectNr(p))))
+		player->JobOfferCount++;
+
+	choice = Say(BUSINESS_TXT,0,MATT_PICTID,"PERS_ANZ");
+
+	part = tcGetPersOffer(p,(choice+2));
+
+	bubble = txtGoKeyAndInsert(BUSINESS_TXT,"JOB_ANSWER",(ulong)part,NULL);
+
+	SetPictID      (p->PictID);
+	Bubble         (bubble,0,0L,0L);
+	RemoveList     (bubble);
+
+	choice = Say(BUSINESS_TXT,0,MATT_PICTID,"NEW_THEEF");
+
+	if(choice==0)
+	{
+		joinSet(Person_Matt_Stuvysunt, dbGetObjectNr(p));
+		hasSet(Person_Matt_Stuvysunt, dbGetObjectNr(p));  /* Matt hat jetzt Daten von ihm */
+		p->TalkBits &= (0xffffffffL - (1<<Const_tcTALK_JOB_OFFER));  /* Joboffer l�schen! */
+	}
+	else
+	{
+		p->Known = CalcValue (p->Known, 0, 255, 0, 20);
+		Say(BUSINESS_TXT,0,p->PictID,"MY_OFFER");
+	}
+}
+
+void tcMyJobAnswer(Person p)
+{
+	char line[TXT_KEY_LENGTH], job[TXT_KEY_LENGTH], temp[TXT_KEY_LENGTH];
+	NODE *n;
+	LIST *bubble = (LIST*)CreateList(0);
+	LIST *jobs = txtGoKey (OBJECTS_ENUM_TXT, "enum_JobE");
+
+	n = (NODE*)GetNthNode(jobs, p->Job);
+	strcpy(job, NODE_NAME(n));
+	n = (NODE*)GetNthNode(jobs, 10);	// "Unbekannt"
+	if (strcmp(job, NODE_NAME(n)))
+	{
+		txtGetFirstLine(BUSINESS_TXT, "MY_JOB_IS", temp);
+		sprintf(line, temp, job);
+	}
+	else
+	{
+	    txtGetFirstLine(BUSINESS_TXT, "NO_JOB", line);
+	}
+
+	SetPictID(p->PictID);
+	CreateNode(bubble, 0L, line);
+	Bubble(bubble, 0, 0L, 0L);
+
+	RemoveList(jobs);
+	RemoveList(bubble);
+}
+
+void tcPrisonAnswer(Person p)
+{
+	LIST *bubble = (LIST*)CreateList (0);
+	LIST *source = txtGoKey(BUSINESS_TXT,"IN_PRISON_ANSWER");
+	char line[TXT_KEY_LENGTH];
+
+	strcpy (line, NODE_NAME(GetNthNode (source, p->KnownToPolice / 52)));
+
+	SetPictID (p->PictID);
+	CreateNode (bubble, 0L, line);
+	Bubble (bubble, 0, 0, 0);
+
+	RemoveList  (source);
+	RemoveList (bubble);
+}
+
+void tcAbilityAnswer(ulong personID)
+{
+	char name[TXT_KEY_LENGTH];
+	LIST *bubble;
+	Person p = (Person)dbGetObject(personID);
+
+	dbGetObjectName(personID, name);
+
+	bubble = txtGoKey(ABILITY_TXT, name);
+
+	SetPictID(p->PictID);
+
+	Bubble(bubble, 0, 0, 0);
+
+	RemoveList (bubble);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/dialog/talkappl.h b/cosp-0.6-src/ClouRemake/ClouRemake/dialog/talkappl.h
new file mode 100644
index 0000000..7f717e3
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/dialog/talkappl.h
@@ -0,0 +1,45 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_TALKAPPL
+#define MODULE_TALKAPPL
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_DIALOG
+#include "dialog\dialog.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_DATACALC
+#include "data\datacalc.h"
+#endif
+
+#ifndef MODULE_DATAAPPL
+#include "data\dataappl.h"
+#endif
+
+extern void tcJobOffer(Person p);
+extern void tcMyJobAnswer(Person p);
+extern void tcPrisonAnswer(Person p);
+extern void tcAbilityAnswer(ulong personID);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/disk/disk.c b/cosp-0.6-src/ClouRemake/ClouRemake/disk/disk.c
new file mode 100644
index 0000000..e73135c
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/disk/disk.c
@@ -0,0 +1,124 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "disk\disk.h"
+#include "disk\disk_e.h"
+
+char RootPathName[256];
+
+
+void dskSetRootPath(const char *newRootPath)
+{
+	strcpy(RootPathName, newRootPath);
+}
+
+char *dskGetRootPath(char *result)
+{
+	strcpy(result, RootPathName);
+	return result;
+}
+
+FILE *dskOpen(const char *puch_Pathname, const char *puch_Mode, uword us_DiskId)
+{
+	FILE *p_File = NULL;
+
+	us_DiskId = 0; /* just to have no warnings */
+
+	//Log("%s|%s: %s(%s)", __FILE__, __func__, puch_Pathname, puch_Mode);
+
+	if (!(p_File = fopen(puch_Pathname, puch_Mode)))
+	{
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, ERR_DISK_OPEN_FAILED);
+	}
+
+	return(p_File);
+}
+
+long dskLoad(const char *puch_Pathname, void *p_MemDest, uword us_DiskId)
+{
+	FILE *p_File = NULL;
+	long ul_SizeOfFile;
+
+	if (ul_SizeOfFile = dskFileLength(puch_Pathname))
+	{
+		if (p_File = dskOpen(puch_Pathname, "rb", us_DiskId))
+		{
+			dskRead(p_File, p_MemDest, ul_SizeOfFile);
+			dskClose(p_File);
+			return(ul_SizeOfFile);
+		}
+	}
+	return(0);
+}
+
+void dskBuildPathName(const char *puch_Directory, const char *puch_Filename, char *puch_Result)
+{
+	sprintf(puch_Result, "%s\\%s\\%s", RootPathName, puch_Directory, puch_Filename);
+}
+
+long dskFileLength (const char *puch_Pathname)
+{
+	long l_Size = 0;
+	FILE *file;
+
+	if (file = fopen(puch_Pathname, "rb"))
+	{
+		fseek(file, 0, SEEK_END);
+		l_Size = ftell(file);
+		fclose(file);
+	}
+
+	return l_Size;
+}
+
+void dskClose(FILE *p_File)
+{
+	if (p_File)
+		fclose(p_File);
+}
+
+void dskWrite(FILE *p_File, void *p_MemSource, ulong ul_Size)
+{
+	if (ul_Size != fwrite(p_MemSource, 1, ul_Size, p_File))
+	{
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, ERR_DISK_WRITE_FAILED);
+	}
+}
+
+void dskRead(FILE *p_File, void *p_MemDest, ulong ul_Size)
+{
+	ulong ul_Read;
+	ul_Read = fread(p_MemDest, 1, ul_Size, p_File);
+	if (ul_Read != ul_Size)
+	{
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, ERR_DISK_READ_FAILED);
+	}
+}
+
+// feof() didn't seem to work
+// as expected...
+int dskIsEOF(FILE *p_File)
+{
+	if (fgetc(p_File) == EOF) return(-1);
+	fseek(p_File, -1, SEEK_CUR);
+	return(0);
+}
+
+// fgets() has this CR/LF problem
+char *dskGets(char *text, int n, FILE *file)
+{
+	char *p;
+	if (fgets(text, n, file)) {
+		if (p = strrchr(text, 13)) {
+			*p = '\0';
+		}
+		if (p = strrchr(text, 10)) {
+			*p = '\0';
+		}
+		return(text);
+	}
+	return(NULL);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/disk/disk.h b/cosp-0.6-src/ClouRemake/ClouRemake/disk/disk.h
new file mode 100644
index 0000000..7f414cc
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/disk/disk.h
@@ -0,0 +1,56 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_DISK
+#define MODULE_DISK
+
+#include "theclou.h"
+
+#ifndef __STDIO_H
+#include <stdio.h>
+#endif
+
+#ifndef __STDARG_H
+#include <stdarg.h>
+#endif
+
+#ifndef __STRING_H
+#include <string.h>
+#endif
+
+#include "theclou.h"
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+extern char CDDrive[256];
+
+#define DSK_PATHNAMELENGTH	  	255L
+#define DSK_DUMMY_DISK_ID		  0L	/* to support functions with usefull parameter */
+
+#define ERR_DISK_OPEN_FAILED	1
+#define ERR_DISK_WRITE_FAILED 	2
+#define ERR_DISK_READ_FAILED	3
+
+extern void dskSetRootPath(const char *newRootPath);
+extern char *dskGetRootPath(char *result);
+
+extern long dskLoad(const char *puch_Pathname, void *p_MemDest, uword us_DiskId);
+extern void dskBuildPathName(const char *puch_Directory, const char *puch_Filename, char *puch_Result);
+extern void dskClose(FILE *p_File);
+extern void dskWrite(FILE *p_File, void *p_MemSource, ulong ul_Size);
+extern void dskRead(FILE *p_File, void *p_MemDest, ulong ul_Size);
+
+extern long dskFileLength (const char *puch_Pathname);
+
+extern FILE *dskOpen(const char *puch_Pathname, const char *puch_Mode, uword us_DiskId);
+
+extern int dskIsEOF(FILE *p_File);
+
+extern char *dskGets(char *text, int n, FILE *file);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/disk/disk_e.h b/cosp-0.6-src/ClouRemake/ClouRemake/disk/disk_e.h
new file mode 100644
index 0000000..df194fd
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/disk/disk_e.h
@@ -0,0 +1,9 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#define ERR_DISK_OPEN_FAILED		1
+#define ERR_DISK_WRITE_FAILED 	2
+#define ERR_DISK_READ_FAILED		3
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/error/error.c b/cosp-0.6-src/ClouRemake/ClouRemake/error/error.c
new file mode 100644
index 0000000..6e0bc07
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/error/error.c
@@ -0,0 +1,96 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "error\error.h"
+#include "text\text.h"
+
+#define ERR_EXIT_ERROR      20L
+#define ERR_EXIT_SHUTDOWN   30L
+
+struct ErrorHandler
+{
+	void	(*fp_CloseAll)(void);
+
+	ubyte	puch_Filename[DSK_PATHNAMELENGTH];
+	ubyte	uch_OutputToFile;
+};
+
+/* implementation */
+
+struct ErrorHandler ErrorHandler;
+
+void Log(const char *s, ...)
+{
+	static char log_buffer[1024];
+	FILE *file;
+	if (s)
+	{
+		if (file = fopen(LOG_FILENAME, "a"))
+		{
+			va_list ap;
+			va_start(ap, s);
+			vsprintf(log_buffer, s, ap);
+			#ifndef __LCC__
+			va_end(ap);
+			#endif
+			fprintf(file, "%s\n", log_buffer);
+			fclose(file);
+		}
+	}
+}
+
+long pcErrOpen(long l_Mode, void (*fp_CloseAll)(), ubyte *puch_ErrorFilename)
+{
+	if (fp_CloseAll)
+	{
+		ErrorHandler.fp_CloseAll = fp_CloseAll;
+		return(1);
+	}
+	return(0);
+}
+
+void pcErrClose()
+{
+}
+
+void NewErrorMsg(long l_ErrorType, const char *filename, const char *funcname, ulong ul_ErrorId)
+{
+	ubyte lang = txtGetLanguage();	/* 2014-06-27 templer */
+
+	Log("Error %ld in %s|%s", ul_ErrorId, filename, funcname);
+
+	if (ErrorHandler.fp_CloseAll)
+		ErrorHandler.fp_CloseAll();
+
+	switch (l_ErrorType)
+	{
+		case Internal_Error:
+			if (lang == TXT_LANG_GERMAN) {
+				Log("Interner Fehler!");
+			} else {
+				Log("Internal Error!");
+			}
+		break;
+
+		case No_Mem:
+			if (lang == TXT_LANG_GERMAN) {
+				Log("Sie haben nicht genug Speicher!");
+			} else {
+				Log("You don't have enough memory!");
+			}
+		break;
+
+		case Disk_Defect:
+			if (lang == TXT_LANG_GERMAN) {
+				Log("Kann Datei nicht oeffnen!");
+			} else {
+				Log("Can't open file!");
+			}
+		break;
+	}
+
+	exit(-1);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/error/error.h b/cosp-0.6-src/ClouRemake/ClouRemake/error/error.h
new file mode 100644
index 0000000..dbf0569
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/error/error.h
@@ -0,0 +1,72 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_ERROR
+#define MODULE_ERROR
+
+#include <stdio.h>
+#include <stdarg.h>
+#include <string.h>
+#include <stdlib.h>
+
+#include "theclou.h"
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#define LOG_FILENAME	"clou.log"
+#ifdef THECLOU_DEBUG
+#define DEBUG_FN()	Log("%s|%s",__FILE__,__func__)
+#else
+#define DEBUG_FN()
+#endif
+void Log(const char *s, ...);
+
+#define ERROR_MODULE_BASE		3
+#define ERROR_MODULE_TXT		 4
+#define ERROR_MODULE_DISK		 5
+#define ERROR_MODULE_MEMORY	 6
+#define ERROR_MODULE_DATABASE  7
+#define ERROR_MODULE_GAMEPLAY  8
+#define ERROR_MODULE_LOADSAVE  9
+#define ERROR_MODULE_LANDSCAP 10
+#define ERROR_MODULE_LIVING	11
+#define ERROR_MODULE_PLANING  12
+
+/* Parameter : mode */
+
+#define  ERR_NO_OUTPUT         1L
+#define  ERR_OUTPUT_TO_DISK    2L
+
+/* Parameter : Fehlerart */
+
+#define  ERR_WARNING           2L   /* Programm l�uft weiter */
+#define  ERR_ERROR             4L   /* Programm bricht mit Resourcenfreigabe ab */
+#define  ERR_SHUT_DOWN         8L   /* Programm bricht ohne Resourcenfreigabe ab */
+												/* zur Resuurcenfreigabe wird CloseAll angesprungen */
+
+#define  ERR_REQUESTER        16L   /* zeige Requester - Fehlertext mu� weniger als
+													78 Zeichen lang sein */
+
+/* some error types */
+
+enum
+{
+	No_Error=0,
+	Internal_Error,
+	No_Mem,
+	Disk_Defect,
+	Insert_Disk,
+	Lib_Error,
+	Last_Error
+};
+
+extern long pcErrOpen(long l_Mode, void (*fp_CloseAll)(), ubyte *puch_ErrorFilename);
+extern void NewErrorMsg(long l_ErrorType, const char *filename, const char *funcname, ulong ul_ErrorId);
+extern void pcErrClose(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gamefunc.h b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gamefunc.h
new file mode 100644
index 0000000..7a82dde
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gamefunc.h
@@ -0,0 +1,120 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_GAMEFUNC
+#define MODULE_GAMEFUNC
+
+#define SCENE_NODE			((ubyte)100)
+#define EVENT_NODE         ((ubyte)101)
+#define MAX_SCENES_AMOUNT	1L<<14	/* 14 + 18 = 32 Bits !!! */
+#define MAX_EVENTS_AMOUNT	1L<<18	/* wichtig da story das ben�tigt ! */
+
+
+struct StoryHeader
+{
+	ubyte StoryName[20];
+
+	ulong EventCount;	/* Zaehler mit der h�chsten EventNr */
+	ulong SceneCount;
+
+	ulong AmountOfScenes;
+	ulong AmountOfEvents;
+
+	ulong StartZeit;
+	ulong StartOrt;
+	ulong StartSzene;
+};
+
+struct NewStory
+{
+	ubyte StoryName[20];
+
+	struct StoryHeader *sh;
+
+	struct List *scenes;	/* Liste von SceneNodes */
+	struct List *events;
+
+	ulong StartZeit;
+	ulong StartOrt;
+};
+
+struct NewScene
+{
+	ulong	EventNr;
+	ubyte	SceneName[20];
+
+	long	Tag;				   /* der Tag an dem sie eintritt */
+	long	MinZeitPunkt;		/* zeitlicher Bereich in dem 	*/
+	long	MaxZeitPunkt;		/* sie eintritt 			*/
+	long	Ort;					/* der erf�llt sein mu� 		*/
+
+	ulong	AnzahlderEvents;
+	ulong	AnzahlderN_Events;
+
+	ulong	*events;				/* Nr. der Events, die erf�llt sein m�ssen */
+	ulong	*n_events;			/* Nr. der Events, die nicht erf�llt sein m�ssen */
+
+	ulong	AnzahlderNachfolger;
+	ulong	*nachfolger;		/* Nr. der NachfolgerEvents */
+
+	ulong	Moeglichkeiten;	/* siehe defines oben 			*/
+	ulong	Dauer;			   /* Dauer dieser Szene in Minuten	*/
+	uword	Anzahl;			   /* wie oft sie geschehen kann		*/
+	uword	Geschehen;		   /* wie oft sie SCHON geschehen ist */
+	ubyte	Possibility;		/* mit der sie eintritt 0-255	*/
+
+	ubyte	Padding[3];		/* Alignment */
+
+	ulong Sample;           /* Nummer des Samples */
+	ulong Anim;             /* Nummer der Animation */
+	long  NewOrt;           /* Ort der Scene */
+};
+
+struct SceneNode
+{
+	struct Node Link;
+	struct NewScene ns;
+};
+
+struct NewEvent
+{
+	ulong EventNr;
+	ubyte EventName[20];
+};
+
+struct EventNode
+{
+	struct Node Link;
+	struct NewEvent ne;
+};
+
+
+/* Prototypes */
+/* Story */
+extern void NewStory    (ubyte *name, ulong StartZeit, ulong StartOrt);
+extern void ChangeStory (ulong StartZeit, ulong StartOrt);
+extern void RemoveStory (void);
+extern void WriteStory  (ubyte *filename);
+extern void ReadStory   (ubyte *filename);
+
+/* Scenes */
+extern void AddScene        (struct NewScene *ns);
+extern void ChangeScene     (ubyte *name, struct NewScene *ns);
+extern void RemoveScene     (ubyte *name);
+extern void RemoveAllScenes (void);
+
+/* Events */
+extern void AddEvent        (struct NewEvent *ev);
+extern void RemoveEvent     (ubyte *name);
+extern void RemoveAllEvents (void);
+
+/* Specials */
+char *GetName (ulong EventNr);
+
+
+extern struct NewStory *story;
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp.c b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp.c
new file mode 100644
index 0000000..1320fb8
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp.c
@@ -0,0 +1,781 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "gameplay\gp.h"
+#include "gameplay\gamefunc.h"
+#include "port\port.h"
+
+void InitLocations(void);
+void FreeLocations(void);
+
+void InitSceneInfo(void);
+void FreeSceneInfo(void);
+
+void PrepareStory(char *filename);
+void LoadSceneforStory(struct NewScene *dest,FILE *file);
+void LoadStory(ubyte *filename);
+
+void InitConditions(struct Scene *scene,struct NewScene *ns);
+void FreeConditions(struct Scene *scene);
+long GetEventCount(ulong EventNr);
+long CheckConditions(struct Scene *scene);
+void EventDidHappen(ulong EventNr);
+
+struct Scene *GetStoryScene(struct Scene *scene);
+
+ulong GamePlayMode = 0;
+ubyte RefreshMode  = 0;
+
+struct Film 	*film=0L;
+struct SceneArgs	SceneArgs;
+
+
+void InitStory(char *story_filename)
+{
+	if (film)
+		CloseStory();
+
+	film = (struct Film*)MemAlloc(sizeof(struct Film));
+
+	film->EnabledChoices = 0xffffffffL;
+
+	PrepareStory(story_filename);
+	InitLocations();
+	LinkScenes();
+	PatchStory();
+}
+
+void CloseStory(void)
+{
+	long i;
+
+	if(film)
+	{
+		if(film->loc_names)
+			RemoveList(film->loc_names);
+
+		for(i=0;i<film->AmountOfScenes;i++)
+		{
+			if(film->gameplay[i].bed)
+				FreeConditions(&film->gameplay[i]);
+			if(film->gameplay[i].std_succ)
+				RemoveList(film->gameplay[i].std_succ);
+		}
+
+		if (film->gameplay)
+			MemFree(film->gameplay, sizeof(struct Scene) * film->AmountOfScenes);
+
+		MemFree(film, sizeof(struct Film));
+
+		film=0L;
+	}
+}
+
+void SetEnabledChoices(ulong ChoiceMask)
+{
+	film->EnabledChoices = ChoiceMask;
+}
+
+void RefreshCurrScene(void)
+{
+	NODE *node = (NODE*)GetNthNode(film->loc_names, GetLocation);
+
+	tcRefreshLocationInTitle(GetLocation);
+	PlayAnim(NODE_NAME(node), (word)30000, GFX_NO_REFRESH|GFX_ONE_STEP|GFX_BLEND_UP);
+
+	RefreshMenu ();
+}
+
+void InitLocations(void)
+{
+	LIST *l = (LIST*)CreateList (0);
+	char pathname[TXT_KEY_LENGTH];
+
+	dskBuildPathName(TEXT_DIRECTORY, LOCATIONS_TXT, pathname);
+
+	if(ReadList(l,(ulong)(sizeof(struct TCEventNode)), pathname, 0))
+		film->loc_names=(LIST*) l;
+	else
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, 1);
+}
+
+void PatchStory(void)
+{
+	struct TCEventNode *node;
+
+	if (!(GamePlayMode & GP_DEMO))
+	{
+		GetScene(26214400L)->bed->Ort = 3;    /* 4th Burglary, Hotelzimmer */
+		GetScene(26738688L)->bed->Ort = 7;    /* Arrest, Polizei!          */
+
+		GetScene(SCENE_KASERNE_OUTSIDE)->Moeglichkeiten = 15;
+		GetScene(SCENE_KASERNE_INSIDE)->Moeglichkeiten  = 265;
+
+		GetScene(SCENE_KASERNE_OUTSIDE)->LocationNr = 66;
+		GetScene(SCENE_KASERNE_INSIDE)->LocationNr  = 65;
+
+		GetScene(SCENE_KASERNE_OUTSIDE)->Dauer = 17;
+		GetScene(SCENE_KASERNE_INSIDE)->Dauer  = 57;
+
+		GetScene(SCENE_STATION)->Moeglichkeiten |= WAIT;
+
+		if (bProfidisk)
+			GetScene(SCENE_PROFI_26)->LocationNr = 75;
+
+		/* change possibilites in story_9 too! */
+
+		/* f�r die Kaserne hier einen Successor eingetragen! */
+		GetLocScene(65)->std_succ = (LIST*)CreateList(0);
+		node = (struct TCEventNode *) CreateNode(GetLocScene(65)->std_succ, sizeof(struct TCEventNode), 0L);
+		node->EventNr = SCENE_KASERNE_OUTSIDE; /* wurscht... */
+
+		GetLocScene(66)->std_succ = (LIST*)CreateList(0);
+		node = (struct TCEventNode *) CreateNode(GetLocScene(66)->std_succ, sizeof(struct TCEventNode), 0L);
+		node->EventNr = SCENE_KASERNE_INSIDE;  /* wurscht... */
+
+		film->StartScene = SCENE_STATION;
+	}
+}
+
+ulong PlayStory(void)
+{
+	struct Scene *curr, *next;
+	struct Scene *story_scene = 0;
+	ubyte interr_allowed=1, first = 1;
+
+	if (GamePlayMode & GP_STORY_OFF)
+	{
+		if (GamePlayMode & GP_DEMO)
+		{
+			curr = (struct Scene*)GetScene(SCENE_CARS_VANS);
+		}
+		else
+	    {
+			tcAddPlayerMoney(5000);
+			curr = (struct Scene*)GetScene(SCENE_HOTEL_ROOM);
+		}
+	}
+	else
+	{
+	    curr = (struct Scene*)GetScene(film->StartScene);
+	}
+
+	SetCurrentScene(curr);
+	film->alter_Ort = curr->LocationNr;
+	SetLocation(-2);
+
+	while ((curr->EventNr != SCENE_THE_END) && (curr->EventNr != SCENE_NEW_GAME))
+	{
+		if (!CheckConditions(curr))
+		{
+			NewErrorMsg(Internal_Error, __FILE__, __func__, 2);
+		}
+
+		/* Entscheidung f�r eine Szene getroffen ! */
+
+		SceneArgs.ReturnValue=0L;
+		SceneArgs.Ueberschrieben=0;
+
+		/* wenn Szene Storyszene ist, dann Musik beibehalten */
+		/* (Storyszenen �ndern sie selbst in Done */
+		/* ansonsten wird die Musi hier ver�ndert */
+
+		if (!story_scene)
+		{
+			tcPlaySound();
+		}
+
+		/* ab jetzt soll nach einem Diskettenwechsel refresht werden */
+		/* -> GP_STORY_TOWN Flag setzen */
+		/* Achtung: dieses Flag nur nach der 1.Szene setzen -> "first" */
+
+		if (first)
+		{
+			film->StoryIsRunning = GP_STORY_TOWN;
+			first = 0;
+		}
+
+		/* die neue Szene initialisieren ! ( B�hnenbild aufbauen )*/
+		if (curr->Init)
+		{
+			curr->Init();
+		}
+
+		/* gibt es irgendein Ereignis das jetzt geschehen kann, und */
+		/* den Standardablauf unterbricht ? */
+
+		/* if (GamePlayMode & GP_DEMO)
+		DemoDialog(); */
+
+		story_scene = 0;
+
+		if (interr_allowed && (!(GamePlayMode & GP_STORY_OFF)))
+		{
+			if (story_scene=GetStoryScene(curr))
+			{
+				interr_allowed = 0;
+			}
+		}
+		else
+		{
+			story_scene = 0;
+		}
+
+		if (!story_scene)
+		{
+			SceneArgs.Ueberschrieben=0;
+
+			if (curr->Done)
+			{
+				SceneArgs.Moeglichkeiten = curr->Moeglichkeiten & film->EnabledChoices;
+				curr->Done();	/* Funktionalit�t */
+			}
+			else
+			{
+			    NewErrorMsg (Internal_Error, __FILE__, __func__, 3);
+			}
+
+			EventDidHappen(curr->EventNr);
+			AddVTime(curr->Dauer);
+
+			/* jetzt kann wieder unterbrochen werden ! */
+			interr_allowed=1;
+
+			/* der Spieler ist fertig mit dieser Szene - aber wie geht es weiter ? */
+			if (SceneArgs.ReturnValue)
+			{
+				next = GetScene(SceneArgs.ReturnValue);	/* Nachfolger festlegen */
+			}
+			else
+			{
+			    NewErrorMsg(Internal_Error, __FILE__, __func__, 4);
+			}
+		}
+		else
+		{
+		    next=story_scene;	/* Unterbrechung durch die Storyszene ! */
+		}
+
+		curr = next;
+		SetCurrentScene(curr);
+	}	/* While Schleife */
+
+	film->StoryIsRunning = GP_STORY_BEFORE;
+
+	StopAnim();
+
+	return(curr->EventNr);
+}
+
+struct Scene *GetStoryScene(struct Scene *curr)
+{
+	ulong i,j;
+
+	for (i = 0;i < film->AmountOfScenes;i++)
+	{
+		if (film->gameplay[i].LocationNr == -1)
+		{
+			struct Scene *sc = &film->gameplay[i];
+
+			if (sc != curr)
+			{
+				j = CalcRandomNr(0L,255L);
+
+				if ( j<= (ulong)(sc->Probability))
+					if (CheckConditions(sc))
+						return(sc);
+			}
+		}
+	}
+
+	return(0);
+}
+
+struct Scene *GetScene(ulong EventNr)
+{
+	long i;
+	struct Scene *sc = NULL;
+
+	for ( i = 0;i < film->AmountOfScenes;i++)
+		if (EventNr==film->gameplay[i].EventNr)
+			sc = &(film->gameplay[i]);
+
+	return sc;
+}
+
+long GetEventCount(ulong EventNr)
+{
+	struct Scene *sc;
+
+	if (sc = GetScene(EventNr))
+		return((long)(sc->Geschehen));
+	else
+		return 0;
+}
+
+void EventDidHappen(ulong EventNr)
+{
+	struct Scene *sc;
+	ulong  max = CAN_ALWAYS_HAPPEN;
+
+	if (sc = GetScene(EventNr))
+		if (sc->Geschehen < max)
+			sc->Geschehen+=1;
+}
+
+long CheckConditions(struct Scene *scene)
+{
+	struct Bedingungen *bed;
+	NODE *node;
+
+	if (scene->LocationNr != -1L)
+		return(1L);
+
+	/* es handelt sich um keine Std Szene -> ueberprue�fen ! */
+	/* ue�berpr�uefen, ob Szene nicht schon zu oft geschehen ist ! */
+	if ((scene->Anzahl != ((uword)(CAN_ALWAYS_HAPPEN))) &&
+		    (scene->Geschehen) >= (scene->Anzahl))
+		return(0L);
+
+	/* Jetzt die einzelnen Bedingungen �berpr�fen */
+	if (!(bed=(scene->bed)))
+		return(1L);
+
+	if (bed->Ort!=-1L)	/* spielt der Ort eine Rolle ? */
+		if (GetLocation!=(bed->Ort))
+			return(0L);		/* spielt eine Rolle und ist nicht erf�llt */
+
+	/*
+	* �berpr�fen, ob ein Event eingetreten ist,
+	* das nicht geschehen darf !
+	*/
+
+	if (bed->n_events)
+	{
+		for (node = (NODE*)LIST_HEAD(bed->n_events);NODE_SUCC(node);node=(NODE*)NODE_SUCC(node))
+		{
+			if (GetEventCount(((struct TCEventNode*)node)->EventNr))
+				return(0L);
+		}
+	}
+
+	/*
+	* sind alle Events eingetreten, die Bedingung sind ?
+	*
+	 */
+
+	if (bed->events)
+	{
+		for (node=(NODE*)LIST_HEAD(bed->events);NODE_SUCC(node);node=(NODE*)NODE_SUCC(node))
+		{
+			if (!GetEventCount(((struct TCEventNode*)node)->EventNr))
+				return(0L);
+		}
+	}
+
+	return(1L);
+}
+
+void PrepareStory(char *filename)
+/*
+* completely revised 02-02-93
+* tested : 26-03-93
+* revised : 2014-07-01 - templer
+*/
+{
+	long i,j;
+	struct Scene *scene;
+	struct StoryHeader  SH;
+	struct NewScene	NS;
+	struct TCEventNode	*node;
+	FILE *file;
+	char pathname[TXT_KEY_LENGTH];
+
+	dskBuildPathName(DATA_DIRECTORY, filename, pathname);
+
+
+	/* StoryHeader laden ! */
+
+	file = dskOpen(pathname, "rb", 0);
+
+	dskRead(file, SH.StoryName, sizeof(SH.StoryName));
+	dskRead(file, &SH.EventCount,sizeof(ulong));
+	dskRead(file, &SH.SceneCount,sizeof(ulong));
+
+	dskRead(file, &SH.AmountOfScenes,sizeof(ulong));
+	dskRead(file, &SH.AmountOfEvents,sizeof(ulong));
+
+	dskRead(file, &SH.StartZeit,sizeof(ulong));
+	dskRead(file, &SH.StartOrt,sizeof(ulong));
+	dskRead(file, &SH.StartSzene,sizeof(ulong));
+
+	EndianL(&SH.EventCount);
+	EndianL(&SH.SceneCount);
+	EndianL(&SH.AmountOfScenes);
+	EndianL(&SH.AmountOfEvents);
+	EndianL(&SH.StartZeit);
+	EndianL(&SH.StartOrt);
+	EndianL(&SH.StartSzene);
+
+	film->AmountOfScenes=SH.AmountOfScenes;
+
+	film->StartZeit = SH.StartZeit;
+
+	film->akt_Minute = 543;	/* 09:03 */
+	film->akt_Tag = film->StartZeit;
+	film->akt_Ort = film->StartOrt = SH.StartOrt;
+	film->StartScene = SH.StartSzene;
+
+	if (film->AmountOfScenes)
+	{
+		film->gameplay = (struct Scene*)MemAlloc(sizeof(struct Scene) * film->AmountOfScenes);
+		if (!film->gameplay) NewErrorMsg(No_Mem, __FILE__, __func__, 6);
+	}
+	else
+	{
+	    NewErrorMsg(Disk_Defect, __FILE__, __func__, 7);
+	}
+
+	for (i = 0;i < film->AmountOfScenes;i++)
+	{
+		LoadSceneforStory(&NS,file);
+
+		scene=&(film->gameplay[i]);
+
+		scene->EventNr = NS.EventNr;
+
+		if(NS.NewOrt==-1 || NS.AnzahlderEvents || NS.AnzahlderN_Events)				/* Storyszene ? */
+			InitConditions(scene,&NS);	/* ja ! -> Bedingungen eintragen */
+		else
+		    film->gameplay[i].bed = NULL;	/* Spielablaufszene : keine Bedingungen ! */
+
+		/* Scene Struktur f�llen : */
+		scene->Done = StdDone;
+		scene->Init = StdInit;
+		scene->Moeglichkeiten=NS.Moeglichkeiten;
+		scene->Dauer=NS.Dauer;
+		scene->Anzahl=NS.Anzahl;
+		scene->Geschehen=(uword)(NS.Geschehen);
+		scene->Probability=NS.Possibility;
+		scene->LocationNr=NS.NewOrt;
+
+		/* Nachfolgerliste aufbauen !  */
+		/* Achtung! auch Patch �ndern! */
+
+		if (NS.AnzahlderNachfolger)
+		{
+			scene->std_succ=(LIST*)CreateList(0);
+
+			for (j = 0;j < NS.AnzahlderNachfolger;j++)
+			{
+				node = (struct TCEventNode*)CreateNode(scene->std_succ,(ulong)(sizeof(struct TCEventNode)),0L);
+
+				node->EventNr = NS.nachfolger[j];
+			}
+
+			if(NS.nachfolger)
+				MemFree(NS.nachfolger, sizeof(ulong) * NS.AnzahlderNachfolger);
+		}
+		else
+		    scene->std_succ = NULL;
+	}
+
+	/* von den Events mu� nichts geladen werden ! */
+	dskClose(file);
+}
+
+void InitConditions(struct Scene *scene, struct NewScene *ns)
+{
+	struct Bedingungen *bed;
+	struct TCEventNode *node;
+	long i;
+
+	bed=(struct Bedingungen*)MemAlloc(sizeof(struct Bedingungen));
+
+	bed->Ort=ns->Ort;
+
+	if(ns->AnzahlderEvents)
+	{
+		bed->events=(LIST*)CreateList(0);
+
+		for(i=0;i<ns->AnzahlderEvents;i++)
+		{
+			node=(struct TCEventNode*)CreateNode(bed->events,(ulong)(sizeof(struct TCEventNode)),0);
+
+			node->EventNr=ns->events[i];
+		}
+
+		if(ns->events)
+			MemFree(ns->events, sizeof(ulong) * ns->AnzahlderEvents);
+	}
+	else
+		bed->events=NULL;
+
+	if(ns->AnzahlderN_Events)
+	{
+		bed->n_events = (LIST*)CreateList(0);
+
+		for(i=0;i<ns->AnzahlderN_Events;i++)
+		{
+			node=(struct TCEventNode*)CreateNode(bed->n_events,(ulong)(sizeof(struct TCEventNode)),0);
+
+			node->EventNr=ns->n_events[i];
+		}
+
+		if(ns->n_events)
+			MemFree(ns->n_events, sizeof(ulong) * ns->AnzahlderN_Events);
+	}
+	else
+		bed->n_events=NULL;
+
+	scene->bed=bed;
+}
+
+void FreeConditions(struct Scene *scene)
+{
+	if (scene->bed)
+	{
+		if (scene->bed->events)
+			RemoveList(scene->bed->events);
+		if (scene->bed->n_events)
+			RemoveList(scene->bed->n_events);
+
+		MemFree(scene->bed, sizeof(struct Bedingungen));
+
+		scene->bed = NULL;
+	}
+}
+
+void LoadSceneforStory(struct NewScene *dest,FILE *file)
+{
+	ulong *event_nrs = NULL;
+	ulong i, tmp;
+
+		/* struct NewScene is byte-aligned
+	and needs some padding... */
+	dskRead(file, &dest->EventNr,sizeof(ulong));
+    dskRead(file, dest->SceneName, sizeof(dest->SceneName));
+    dskRead(file, &dest->Tag,sizeof(long));
+    dskRead(file, &dest->MinZeitPunkt,sizeof(long));
+    dskRead(file, &dest->MaxZeitPunkt,sizeof(long));
+    dskRead(file, &dest->Ort,sizeof(long));
+    dskRead(file, &dest->AnzahlderEvents,sizeof(ulong));
+    dskRead(file, &dest->AnzahlderN_Events,sizeof(ulong));
+    dskRead(file, &tmp,sizeof(ulong));
+    dskRead(file, &tmp,sizeof(ulong));
+    dskRead(file, &dest->AnzahlderNachfolger,sizeof(ulong));
+    dskRead(file, &tmp,sizeof(ulong));
+    dskRead(file, &dest->Moeglichkeiten,sizeof(ulong));
+    dskRead(file, &dest->Dauer,sizeof(ulong));
+    dskRead(file, &dest->Anzahl,sizeof(uword));
+    dskRead(file, &dest->Geschehen,sizeof(uword));
+    dskRead(file, &dest->Possibility,sizeof(ubyte));
+    dskRead(file, &dest->Sample,sizeof(ulong));
+    dskRead(file, &dest->Anim,sizeof(ulong));
+    dskRead(file, &dest->NewOrt,sizeof(long));
+
+	EndianL(&dest->EventNr);
+	EndianL((ulong *)&dest->Tag);
+	EndianL((ulong *)&dest->MinZeitPunkt);
+	EndianL((ulong *)&dest->MaxZeitPunkt);
+	EndianL((ulong *)&dest->Ort);
+	EndianL(&dest->AnzahlderEvents);
+	EndianL(&dest->AnzahlderN_Events);
+	EndianL(&dest->AnzahlderNachfolger);
+	EndianL(&dest->Moeglichkeiten);
+	EndianL(&dest->Dauer);
+	EndianW(&dest->Anzahl);
+	EndianW(&dest->Geschehen);
+	EndianL(&dest->Sample);
+	EndianL(&dest->Anim);
+	EndianL((ulong *)&dest->NewOrt);
+
+	/* allocate mem for events and read them */
+	if (dest->AnzahlderEvents)
+	{
+		event_nrs = (ulong *)MemAlloc(sizeof(ulong) * dest->AnzahlderEvents);
+		if (!event_nrs) NewErrorMsg(No_Mem, __FILE__, __func__, 8);
+
+		for (i = 0; i < dest->AnzahlderEvents; i++)
+		{
+			dskRead(file, &event_nrs[i],sizeof(ulong));
+			EndianL(&event_nrs[i]);
+		}
+	}
+	else
+	    event_nrs=NULL;
+
+	dest->events=(ulong *) event_nrs;
+
+	/* allocate mem for n_events and read them */
+	if(dest->AnzahlderN_Events)
+	{
+		event_nrs = (ulong *)MemAlloc(sizeof(ulong) * dest->AnzahlderN_Events);
+		if (!event_nrs) NewErrorMsg(No_Mem, __FILE__, __func__, 9);
+
+		for (i = 0; i < dest->AnzahlderN_Events; i++)
+		{
+			dskRead(file, &event_nrs[i],sizeof(ulong));
+			EndianL(&event_nrs[i]);
+		}
+	}
+	else
+	    event_nrs = NULL;
+
+	dest->n_events=(ulong *)event_nrs;
+
+	/* allocate mem for successors and read them */
+	if (dest->AnzahlderNachfolger)
+	{
+		event_nrs = (ulong *)MemAlloc(sizeof(ulong) * dest->AnzahlderNachfolger);
+		if (!event_nrs) NewErrorMsg(No_Mem, __FILE__, __func__, 10);
+
+		for (i = 0; i < dest->AnzahlderNachfolger; i++)
+		{
+			dskRead(file, &event_nrs[i],sizeof(ulong));
+			EndianL(&event_nrs[i]);
+		}
+	}
+	else
+	    event_nrs=NULL;
+
+	dest->nachfolger=event_nrs;
+}
+
+void AddVTime(ulong add)
+{
+	ulong time;
+	ulong tag;
+
+	time=GetMinute+add;
+
+	if(time >= MINUTES_PER_DAY)
+	{
+		tag = GetDay + time/MINUTES_PER_DAY;
+
+		SetDay(tag);
+		time = time % MINUTES_PER_DAY;
+	}
+
+	SetTime(time);
+	tcTheAlmighty(time);
+}
+
+ulong GetAmountOfScenes(void)	/* for extern modules */
+{
+	if (film)
+		return(film->AmountOfScenes);
+	else
+	    return(0L);
+}
+
+void SetCurrentScene(struct Scene *scene)
+{
+	film->act_scene=scene;
+}
+
+struct Scene *GetCurrentScene(void)
+{
+	struct Scene *sc = NULL;
+
+	if(film)
+		sc = film->act_scene;
+
+	return sc;
+}
+
+struct Scene *GetLocScene(ulong locNr)
+{
+	long i;
+	struct Scene *sc;
+
+	for(i=0;i<film->AmountOfScenes;i++)
+		if(((sc=&film->gameplay[i])->LocationNr)==locNr)
+			return(sc);
+
+	NewErrorMsg(Internal_Error, __FILE__, __func__, 12);
+	return NULL;
+}
+
+void FormatDigit(ulong digit,char *s)
+{
+	if (digit<10)
+		sprintf(s,"0%ld",digit);
+	else
+	    sprintf(s,"%ld",digit);
+}
+
+char *BuildTime(ulong min,char language,char *time)
+{
+	ulong h = (min/60) % 24;
+	char s[TXT_KEY_LENGTH];
+
+	min=min%60;
+
+	FormatDigit(h,s);
+	sprintf(time,"%s:",s);
+	FormatDigit(min,s);
+	strcat(time,s);
+
+	return(time);
+}
+
+char *BuildDate(ulong days,char language,char *date)
+{
+	ubyte days_per_month[12]={
+		31,28,31,30,31,30,31,31,30,31,30,31	};
+	ulong i,p_year,year,month,day;
+	char s[TXT_KEY_LENGTH];
+
+	for(i=0,p_year=0;i<12;i++)
+		p_year+=days_per_month[i];
+
+	year=days/p_year;	/* welches Jahr ? */
+
+	days=days%p_year;	/* wieviele Tage noch in diesem Jahr */
+
+	for(i=0,p_year=0;i<12;i++)
+	{
+		p_year+=days_per_month[i];
+
+		if(days<p_year)	{
+			month=i;
+			i=13;
+		}
+	}
+
+	day=days-(p_year-days_per_month[month]);
+
+	switch(language)
+	{
+	case TXT_LANG_ENGLISH:
+	case TXT_LANG_FRENCH:
+	case TXT_LANG_SPANISH:
+	case TXT_LANG_GERMAN:
+		FormatDigit(day+1,s);
+		strcpy(date,s);
+		strcat(date,".");
+		FormatDigit(month+1,s);
+		strcat(date,s);
+		strcat(date,".");
+		FormatDigit(year,s);
+		strcat(date,s);
+		break;
+	default:
+		break;
+	}
+
+	return(date);
+}
+
+char *GetCurrLocName(void)
+{
+	long index;
+
+	index=GetCurrentScene()->LocationNr;
+
+	return(NODE_NAME(GetNthNode(film->loc_names,index)));
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp.h b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp.h
new file mode 100644
index 0000000..2d4b677
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp.h
@@ -0,0 +1,214 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_GAMEPLAY
+#define MODULE_GAMEPLAY
+
+#include "theclou.h"
+
+#ifndef MODULE_BASE
+#include "base\base.h"
+#endif
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_ANIM
+#include "anim\sysanim.h"
+#endif
+
+#ifndef MODULE_STORY
+#include "story\story.h"
+#endif
+
+#ifndef MODULE_DATAAPPL
+#include "data\dataappl.h"
+#endif
+
+#ifndef MODULE_RANDOM
+#include "random\random.h"
+#endif
+
+#ifndef MODULE_INTERAC
+#include "present\interac.h"
+#endif
+
+
+#define GO					(1L<<0)
+#define WAIT            (1L<<1)
+#define BUSINESS_TALK	(1L<<2)
+#define LOOK   			(1L<<3)
+#define INVESTIGATE 		(1L<<4)
+#define PLAN   			(1L<<5)
+#define CALL_TAXI			(1L<<6)
+#define MAKE_CALL			(1L<<7)
+#define INFO				(1L<<8)
+#define SLEEP           (1L<<9)
+
+#define GP_ALL_CHOICES_ENABLED     LONG_MAX
+
+#define CAN_ALWAYS_HAPPEN			  65535L	/* Szene kann UNENDLICH oft geschehen */
+
+#define MINUTES_PER_DAY				  1440L
+
+#define GP_STORY_BEFORE  				0
+#define GP_STORY_TOWN    				1
+#define GP_STORY_PLAN    				2
+
+#define GP_STORY_OFF               (1L<<0)
+#define GP_DEBUG_ON                (1L<<1)
+#define GP_DEMO                    (1L<<2)
+#define GP_LEVEL_DESIGN            (1L<<3)
+#define GP_GUARD_DESIGN            (1L<<4)
+#define GP_COORDINATES             (1L<<5)
+#define GP_DEBUG_PLAYER            (1L<<6)
+#define GP_FULL_ENV                (1L<<7)
+#define GP_MUSIC_OFF               (1L<<8)
+#define GP_NO_MUSIC_IN_PLANING     (1L<<10)
+#define GP_NO_SAMPLES				  (1L<<11)
+#define GP_COLLISION_CHECKING_OFF  (1L<<12)
+#define GP_SHOW_ROOMS				  (1L<<13)
+#define GP_MORE_MONEY				  (1L<<14)	// LucyG 2017-11-05
+
+/* Zugriffsdefines */
+
+#define SetMinute(zeit)		(film->akt_Minute=(ulong)(zeit))
+#define SetLocation(loc)	{film->alter_Ort = film->akt_Ort; film->akt_Ort=(ulong)(loc);}
+#define SetDay(tag)			(film->akt_Tag=(ulong)(tag))
+#define SetTime(time)		(film->akt_Minute=(ulong)(time))
+
+#define GetDay					(film->akt_Tag)
+#define GetMinute				(film->akt_Minute)
+#define GetLocation			(film->akt_Ort)
+#define GetOldLocation     (film->alter_Ort)
+
+#define GetFromDay(x)		((x) >> 16)
+#define GetToDay(x)			(((x) << 16) >> 16)
+
+struct Film
+	{
+	ulong	AmountOfScenes;
+
+	struct	Scene		*act_scene;
+	struct	Scene		*gameplay;
+
+	LIST		*loc_names;	/* Liste aller Orte im Spiel */
+								/* OrtNr = Nr der Node in der */
+								/* Liste */
+	ulong	StartScene;
+	ulong	StartZeit;		/* =Tag seit dem Jahr 0*/
+	ulong	StartOrt;
+
+	ulong	akt_Tag;
+	ulong	akt_Minute;
+	ulong	akt_Ort;
+	ulong	alter_Ort;
+
+	ulong     EnabledChoices;
+
+	ubyte     StoryIsRunning;
+	};
+
+struct SceneArgs
+	{
+	ulong	Moeglichkeiten;
+	ulong	ReturnValue;	  /* wird AUCH (!) als Input verwendet,
+									* wenn als Output verwendet = EventNr der
+									* Nachfolgerszene
+									*/
+	ubyte	Ueberschrieben;  /*  0...direkter Nachfahre,
+									* >0......uberschriebene Methode
+									*/
+	};
+
+struct Scene
+	{
+	ulong	EventNr;
+
+	void		(*Init)(void);
+	void		(*Done)(void);
+
+	struct	Bedingungen	*bed;		/* damit das Ereignis eintritt */
+
+	LIST	 	*std_succ;	     		/* Standardnachfolger TCEventNode */
+
+	ulong		Moeglichkeiten;			/* siehe defines oben 			*/
+	ulong		Dauer;						/* Dauer dieser Szene in Sekunden	*/
+	uword		Anzahl;						/* wie oft sie geschehen kann		*/
+	uword		Geschehen;					/* wie oft sie SCHON geschehen ist */
+	ubyte		Probability;				/* mit der sie eintritt 	0-255	*/
+
+	ubyte	Padding[3];
+
+	ulong		LocationNr;					/* Ort, den diese Szene darstellt 	*/
+												/* == -1 falls Szene = StorySzene 	*/
+												/* ansonsten Nr des Ortes		*/
+	};
+
+struct Bedingungen
+	{
+	long		Ort;						/* der erf�llt sein mu� */
+
+	LIST		*events;					/* welche Events schon geschehen sein muessen */
+	LIST		*n_events;				/* Events, die nicht geschehen sein d�rfen */
+	};
+
+struct TCEventNode
+	{
+	NODE 	Node;
+
+	ulong 	EventNr;
+	};
+
+/* global functions */
+extern void	InitStory(char *story_filename);
+extern void	CloseStory(void);
+
+extern ulong PlayStory(void);
+extern void	 PatchStory(void);
+
+extern void SetEnabledChoices(ulong ChoiceMask);
+
+extern void	StdDone(void);
+extern void	StdInit(void);
+
+extern void RefreshCurrScene(void);
+extern void	SetCurrentScene(struct Scene *scene);
+
+extern char *GetCurrLocName(void);
+
+extern char *BuildDate(ulong days,char language,char *date);
+extern char *BuildTime(ulong min,char language,char *time);
+
+extern void FormatDigit(ulong digit,char *s);
+
+extern struct Scene *GetCurrentScene(void);
+extern struct Scene *GetLocScene(ulong locNr);
+extern struct Scene *GetScene(ulong EventNr);
+
+extern void AddVTime(ulong Zeit);
+
+extern void LinkScenes(void); /* Init und Done in jeder Scene Struktur setzen */
+
+extern struct SceneArgs	SceneArgs;
+extern struct Film *film;
+extern ulong GamePlayMode;
+extern ubyte RefreshMode;
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp_app.c b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp_app.c
new file mode 100644
index 0000000..514a637
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp_app.c
@@ -0,0 +1,860 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "gameplay\gp_app.h"
+
+
+void tcAsTimeGoesBy(ulong untilMinute)
+{
+	untilMinute = untilMinute % 1440;
+
+	while (GetMinute != untilMinute)
+	{
+		inpDelay(1);
+
+		AddVTime(1);
+
+		if (!(GetMinute % 60))
+			ShowTime(0);
+	}
+}
+
+void tcAsDaysGoBy(ulong day, ulong stepSize)
+{
+	ulong add;
+
+	while (GetDay < day)
+	{
+		inpDelay(3);
+
+		add = CalcRandomNr(stepSize - stepSize/30, stepSize + stepSize/30);
+
+		SetDay(GetDay + add);
+
+		tcRefreshLocationInTitle(GetLocation);
+	}
+}
+
+void tcMattGoesTo(ulong locNr)
+{
+	NODE *node = (NODE*)GetNthNode(film->loc_names,locNr);
+
+	SetLocation(locNr);
+	tcRefreshLocationInTitle(locNr);
+	ShowTime(0);
+
+	gfxChangeColors (l_wrp, 0, GFX_FADE_OUT, 0);
+	PlayAnim (NODE_NAME(node),(word)30000,GFX_NO_REFRESH|GFX_ONE_STEP|GFX_BLEND_UP);
+}
+
+void tcTheAlmighty(ulong time)
+{
+	tcMovePersons(2,time);
+}
+
+void tcMovePersons(ulong personCount,ulong time)
+{
+	ulong i, count;
+	ulong persID,locID;
+
+	for (i=0;i<personCount;i++)
+	{
+		if (bProfidisk)
+		{
+			persID = CalcRandomNr(Person_Paul_O_Conner, Person_Pere_Ubu + 1);
+		}
+		else
+		{
+			persID = CalcRandomNr(Person_Paul_O_Conner, Person_Red_Stanson + 1);
+		}
+
+		if (livesIn(London_London_1,persID))
+		{
+			likes_to_beAll(persID, 0, Object_Location);
+
+			if (!(LIST_EMPTY(ObjectList)))
+			{
+				count = GetNrOfNodes(ObjectList);
+				time = time * count / 1441 ;
+
+				locID = OL_NR(GetNthNode(ObjectList, time));
+
+				tcMoveAPerson(persID,locID);
+			}
+		}
+	}
+}
+
+void tcMoveAPerson(ulong persID, ulong newLocID)
+{
+	ulong oldLocID;
+
+	hasAll(persID, 0, Object_Location); /* wo is er denn ? */
+
+	if (!(LIST_EMPTY(ObjectList)))
+	{
+		NODE *n;
+
+		for (n = (NODE*) LIST_HEAD(ObjectList); NODE_SUCC(n); n = (NODE*) NODE_SUCC(n))
+		{
+			oldLocID = OL_NR(n);
+
+			hasUnSet(persID,oldLocID);
+			hasUnSet(oldLocID,persID);
+		}
+	}
+
+	hasSet(persID,newLocID);           /* neuen Ort setzen ! */
+	hasSet(newLocID,persID);
+}
+
+ulong tcBurglary(ulong buildingID)
+/* wird von 2 Stellen aufgerufen! (story_9)! */
+{
+	ulong succNr;
+	long  ret;
+	Building b = (Building)dbGetObject(buildingID);
+
+	if (buildingID == Building_Seniorenheim)
+		ret = plPlayer(buildingID, 200, tcKarateOpa);
+	else
+		ret = plPlayer(buildingID, 0L, NULL);
+
+	SetMenuTimeOutFunc(NULL);     /* sicher ist sicher... */
+
+	if (ret)  /* nur wenn Einbruch stattgefunden hat! */
+	{
+		/* bei Grab nicht das Grab sondern "Highgate" aus der Taxiliste */
+		/* entfernen */
+
+		if (buildingID != Building_Grab_von_Karl_Marx)
+			RemTaxiLocation(b->LocationNr);
+		else
+		    RemTaxiLocation(((Building)dbGetObject(Location_Highgate_Out))->LocationNr);
+
+		hasUnSet(Person_Matt_Stuvysunt, buildingID);
+	}
+
+	CurrentBackground = BGD_LONDON;
+	ShowMenuBackground();
+
+	switch(ret)
+	{
+	case 0:
+		RefreshCurrScene();
+
+		tcPlaySound();
+
+		succNr = 0;    /* Plan hat nicht funktioniert! */
+		break;
+	case FAHN_ESCAPED:
+		sndPlaySound("ok.bk", 0);
+
+		inpDelay(300);
+
+		succNr = SCENE_FAHNDUNG;  /*Plan hat funktioniert & */
+		break;                   /* Flucht gelungen */
+	case FAHN_NOT_ESCAPED:
+		sndPlaySound("failed.bk", 0);
+
+		inpDelay(300);
+
+		succNr = SCENE_PRISON;   /* Plan hat funktioniert & */
+		break;                   /* Flucht nicht gelungen   */
+	default:
+		break;
+	}
+
+	return(succNr);
+}
+
+void tcRefreshLocationInTitle(ulong locNr)
+{
+	char date[TXT_KEY_LENGTH], line[TXT_KEY_LENGTH];
+	NODE  *node;
+
+	gfxSetPens(m_wrp,3, GFX_SAME_PEN, GFX_SAME_PEN);
+
+	BuildDate(GetDay, txtGetLanguage(), date);
+	node = (NODE*)GetNthNode(film->loc_names, locNr);
+
+	sprintf(line, "%s %s", NODE_NAME(node), date);
+	ShowMenuBackground();
+	PrintStatus(line);
+}
+
+void StdInit(void)
+{
+	struct Scene *sc;
+	ubyte  sameLocation=0;
+	NODE  *node;
+
+	sc = GetCurrentScene();
+
+	if (sc->LocationNr == GetLocation)
+	{
+		sameLocation=1;
+	}
+
+	if ((sc->LocationNr != -1L) && (GetLocation != sc->LocationNr))
+	{
+		SetLocation(sc->LocationNr);
+	}
+
+	tcRefreshLocationInTitle(sc->LocationNr);
+
+	node = (NODE*)GetNthNode(film->loc_names,sc->LocationNr);
+
+	if ((RefreshMode) || (!sameLocation))
+	{
+		PlayAnim(NODE_NAME(node),(word)30000,GFX_NO_REFRESH|GFX_ONE_STEP|GFX_BLEND_UP);
+	}
+
+	ShowTime(0);   /* Zeit sollte nach der Anim gezeigt werden, sonst Probleme mit Diskversion */
+
+	tcPersonGreetsMatt();
+}
+
+void tcPlaySound()
+{
+	if (!(GamePlayMode & GP_MUSIC_OFF))
+	{
+		switch(GetCurrentScene()->EventNr)
+		{
+		case SCENE_PARKER:
+			sndPlaySound("parker.bk", 0);
+			break;
+		case SCENE_MALOYA:
+			sndPlaySound("maloya.bk", 0);
+			break;
+		case SCENE_POOLY:
+			sndPlaySound("dealer.bk", 0);
+			break;
+
+		case SCENE_WALRUS:
+			sndPlaySound("bar1.bk", 0);
+			break;
+		case SCENE_FAT_MANS:
+			sndPlaySound("bar2.bk", 0);
+			break;
+		case SCENE_HOTEL_ROOM:
+			sndPlaySound("hotel.bk", 0);
+			break;
+		case SCENE_GARAGE:
+			sndPlaySound("cars.bk", 0);
+			break;
+		case SCENE_PARKING:
+			sndPlaySound("cars.bk", 0);
+			break;
+		case SCENE_CARS_OFFICE:
+			sndPlaySound("cars.bk", 0);
+			break;
+
+		case SCENE_POLICE:
+		case SCENE_GLUDO_SAILOR:
+		case SCENE_ARRESTED_MATT:
+			sndPlaySound("gludo.bk", 0);
+			break;
+
+		case SCENE_TOOLS:
+			sndPlaySound("shop.bk", 0);
+			break;
+
+		case SCENE_AT_SABIEN:
+			sndPlaySound("sabien.bk", 0);
+			break;
+
+		case SCENE_THE_END:
+		case SCENE_PRISON:
+			sndPlaySound("end.bk", 0);
+			break;
+
+		case SCENE_SOUTH_WITHOUT:
+		case SCENE_SOUTH_UNKNOWN:
+		case SCENE_SOUTHHAMPTON:
+			sndPlaySound("south.bk", 0);
+			break;
+
+		case SCENE_FAHNDUNG:
+			sndPlaySound("fahndung.bk", 0);
+			break;
+
+		default:
+			tcPlayStreetSound();
+			break;
+		}
+	}
+}
+
+void tcPlayStreetSound()
+{
+	if (!(GamePlayMode & GP_MUSIC_OFF))
+	{
+		switch(GetCurrentScene()->EventNr)
+		{
+		case SCENE_PROFI_21:
+			sndPlaySound("snd21.bk", 0);
+			break;
+		case SCENE_PROFI_22:
+			sndPlaySound("snd22.bk", 0);
+			break;
+		case SCENE_PROFI_23:
+			sndPlaySound("snd23.bk", 0);
+			break;
+		case SCENE_PROFI_24:
+			sndPlaySound("snd24.bk", 0);
+			break;
+		case SCENE_PROFI_25:
+			sndPlaySound("snd25.bk", 0);
+			break;
+		case SCENE_PROFI_26:
+			sndPlaySound("snd26.bk", 0);
+			break;
+		case SCENE_PROFI_27:
+			sndPlaySound("snd27.bk", 0);
+			break;
+		case SCENE_PROFI_28:
+			sndPlaySound("snd28.bk", 0);
+			break;
+
+		default:
+			{
+				static ubyte counter = 0;
+				ubyte noStreetMusic = 0;
+
+				if (strcmp(sndGetCurrSoundName(), "street1.bk") &&
+					    strcmp(sndGetCurrSoundName(), "street2.bk") &&
+					    strcmp(sndGetCurrSoundName(), "street3.bk"))
+					noStreetMusic = 1;
+
+				if (!counter || noStreetMusic)
+				{
+					counter = CalcRandomNr(7, 13);
+
+					switch(CalcRandomNr(0, 3))
+					{
+					case 0:
+						sndPlaySound("street1.bk", 0);
+						break;
+					case 1:
+						sndPlaySound("street2.bk", 0);
+						break;
+					default:
+						sndPlaySound("street3.bk", 0);
+						break;
+					}
+				}
+				else
+				    counter--;
+			}
+			break;
+		}
+	}
+}
+
+void ShowTime(ulong delay)
+{
+	char time[TXT_KEY_LENGTH];
+
+	BuildTime(GetMinute,txtGetLanguage(),time);
+
+	gfxShow(25, GFX_NO_REFRESH|GFX_OVERLAY, delay, -1, -1);
+
+	gfxSetFont(u_wrp, bubbleFont);
+	gfxSetPens(u_wrp, 254, 252, GFX_SAME_PEN);
+	gfxSetRect(280, 32);
+	gfxSetDrMd(u_wrp, GFX_JAM_1);
+
+	gfxPrint(u_wrp, time, 5, GFX_PRINT_CENTER|GFX_PRINT_SHADOW);
+}
+
+ulong StdHandle(ulong choice)
+{
+	ulong succ_eventnr = 0L, locNr, objNr;
+	struct Scene *scene;
+	char line[TXT_KEY_LENGTH];
+	Location loc;
+
+	scene = GetCurrentScene();
+
+	switch (choice)
+	{
+		case GO:
+			if (succ_eventnr = Go(scene->std_succ))
+			{
+				locNr = GetScene(succ_eventnr)->LocationNr;
+
+				if (locNr != -1)
+				{
+					objNr = GetObjNrOfLocation(locNr);
+
+					if (objNr)
+					{
+						loc = (Location)dbGetObject(objNr);
+
+						if ((GetMinute < loc->OpenFromMinute) || (GetMinute > loc->OpenToMinute))
+						{
+							ShowMenuBackground();
+
+							txtGetFirstLine(THECLOU_TXT,"No_Entry",line);
+
+							PrintStatus(line);
+							inpWaitFor(INP_LBUTTONP);
+
+							ShowMenuBackground();
+							tcRefreshLocationInTitle(GetLocation);
+
+							succ_eventnr=0L;
+						}
+						else
+						    StopAnim();
+					}
+				}
+			}
+		break;
+		case BUSINESS_TALK:
+			succ_eventnr=Talk();
+			AddVTime(7);
+			ShowTime(0);
+		break;
+		case LOOK:
+			Look((ulong)GetCurrentScene()->LocationNr);
+			AddVTime(1);
+			ShowTime(0);
+		break;
+		case INVESTIGATE:
+			Investigate(NODE_NAME (GetNthNode(film->loc_names,(GetCurrentScene()->LocationNr))));
+			ShowTime(0);
+		break;
+		case MAKE_CALL:
+			AddVTime(4);
+			succ_eventnr = tcTelefon();
+			ShowTime(0);
+		break;
+		case CALL_TAXI:
+			if (CalcRandomNr(0, 10) == 1)
+			{
+				sndPlayFX("taxi.voc");
+			}
+			succ_eventnr = GetLocScene(8)->EventNr; /* taxi */
+		break;
+		case PLAN:
+			if (!(GamePlayMode & GP_DEMO))
+			{
+				StopAnim();
+				film->StoryIsRunning = GP_STORY_PLAN;
+				hasAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Building);
+				if (LIST_EMPTY(ObjectList))
+				{
+					SetBubbleType(THINK_BUBBLE);
+					Say(THECLOU_TXT,0,MATT_PICTID,"NO_PLAN");
+					ShowTime(0);
+				}
+				else
+			    {
+					hasAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Car);
+					if (LIST_EMPTY(ObjectList))
+					{
+						SetBubbleType(THINK_BUBBLE);
+						Say(THECLOU_TXT,0,MATT_PICTID,"NO_CAR_FOR_PLAN");
+						ShowTime(0);
+					}
+					else
+				    {
+						ulong building;
+						gfxChangeColors(l_wrp, 0, GFX_FADE_OUT, 0);
+
+						if (GamePlayMode & GP_NO_MUSIC_IN_PLANING)
+							sndStopSound(0);
+
+						if (building = tcOrganisation())
+						{
+							AddVTime(27153);       /* etwas �ber 15 Tage ! */
+							succ_eventnr = tcBurglary(building);
+						}
+						else
+					    {
+							AddVTime(443);         /* etwas �ber 7 Stunden */
+
+							CurrentBackground = BGD_LONDON;
+							ShowMenuBackground();
+
+							gfxShow (173, GFX_ONE_STEP|GFX_NO_REFRESH|GFX_BLEND_UP, 3, -1, -1);
+							tcRefreshLocationInTitle(GetLocation);
+
+							succ_eventnr = 0L;
+						}
+					}
+				}
+				film->StoryIsRunning = GP_STORY_TOWN;
+			}
+			ShowTime(0);
+		break;
+		case INFO:
+			AddVTime(1);
+			Information();
+			ShowTime(0);
+		break;
+		case WAIT:
+			tcWait();
+		break;
+	}
+	return(succ_eventnr);
+}
+
+void StdDone(void)
+{
+	ulong choice;
+	ubyte activ=0;
+	LIST *menu = txtGoKey (MENU_TXT, "Mainmenu");
+
+	SceneArgs.ReturnValue=0L;
+
+	while(!SceneArgs.ReturnValue)
+	{
+		if (tcPersonIsHere())
+			if (!(SceneArgs.Moeglichkeiten & BUSINESS_TALK))
+				SceneArgs.Moeglichkeiten |= (BUSINESS_TALK & film->EnabledChoices);
+
+
+		if (bProfidisk)
+		{
+			if (GetCurrentScene()->EventNr == SCENE_PROFI_26)
+			{
+				Environment env = (Environment)dbGetObject(Environment_TheClou);
+
+				if (env->PostzugDone)
+					SceneArgs.Moeglichkeiten &= ~INVESTIGATE;
+			}
+		}
+
+		if (SceneArgs.Moeglichkeiten)
+		{
+			inpTurnESC(0);
+			inpTurnFunctionKey(1);
+
+			activ = Menu(menu, SceneArgs.Moeglichkeiten, (ubyte)(activ), NULL, 0L);
+
+			if (activ == (ubyte) -1)
+			{
+				ShowTheClouRequester(No_Error);
+				SceneArgs.ReturnValue = ((Player)dbGetObject(Player_Player_1))->CurrScene;
+
+				activ = 0;
+			}
+			else
+			    {
+				if (activ == ((ubyte)(TXT_MENU_TIMEOUT)))
+					activ = 0;
+				else
+				    {
+					choice=(ulong) 1L << (activ);
+
+					SceneArgs.ReturnValue=StdHandle(choice);
+				}
+			}
+
+			inpTurnESC(1);
+		}
+		else
+		    NewErrorMsg(Internal_Error, __FILE__, __func__, 1);
+	}
+
+	StopAnim();
+
+	if (!(SceneArgs.Ueberschrieben))
+		gfxChangeColors(l_wrp,5L,GFX_FADE_OUT,0L);
+
+	RemoveList (menu);
+}
+
+
+void InitTaxiLocations(void)
+{
+	RemRelation(Relation_taxi);   /* alle Relationen l�schen! */
+	AddRelation(Relation_taxi);
+
+	if (GamePlayMode & GP_STORY_OFF)
+	{
+		AddTaxiLocation(1);      /* cars */
+		AddTaxiLocation(12);     /* aunt */
+		AddTaxiLocation(14);     /* jewels */
+		AddTaxiLocation(27);     /* kenw */
+		AddTaxiLocation(45);     /* bank */
+
+		if (!(GamePlayMode & GP_DEMO))
+		{
+			AddTaxiLocation(0); /* holland */
+			AddTaxiLocation(2); /* watling */
+			AddTaxiLocation(10); /* trafik */
+			AddTaxiLocation(16); /* anti */
+			AddTaxiLocation(18); /* pink */
+			AddTaxiLocation(20); /* senioren */
+			AddTaxiLocation(22); /* highgate */
+			AddTaxiLocation(25); /* villa */
+			AddTaxiLocation(29); /* ham */
+			AddTaxiLocation(31); /* osterly */
+			AddTaxiLocation(33); /* chiswick */
+			AddTaxiLocation(35); /* sotherbys */
+			AddTaxiLocation(37); /* brit */
+			AddTaxiLocation(39); /* natur */
+			AddTaxiLocation(41); /* national */
+			AddTaxiLocation(43); /* vict & alb */
+			AddTaxiLocation(47); /* tower */
+			AddTaxiLocation(58); /* vict */
+
+			if (bProfidisk)
+			{
+				AddTaxiLocation(81); /* bulstrode */
+				AddTaxiLocation(79); /* buck */
+				AddTaxiLocation(77); /* tate */
+				AddTaxiLocation(75); /* train */
+				AddTaxiLocation(74); /* downing */
+				AddTaxiLocation(72); /* abbey */
+				AddTaxiLocation(70); /* madame */
+				AddTaxiLocation(68); /* baker */
+			}
+		}
+	}
+	else
+	    {
+		AddTaxiLocation(0);      /* holland */
+		AddTaxiLocation(58);     /* victoria */
+	}
+}
+
+void LinkScenes(void)
+{
+	(GetLocScene(8))->Done  = DoneTaxi;
+	(GetLocScene(51))->Done = DoneParking;
+	(GetLocScene(50))->Done = DoneGarage;
+	(GetLocScene(6))->Done  = DoneTools;
+	(GetLocScene(54))->Done = DoneDealer;
+	(GetLocScene(53))->Done = DoneDealer;
+	(GetLocScene(52))->Done = DoneDealer;
+
+	SetFunc( GetScene(SCENE_KASERNE_OUTSIDE), StdInit, tcDoneKaserne);
+	SetFunc( GetScene(SCENE_HOTEL_ROOM),StdInit,DoneHotelRoom);
+	SetFunc( GetScene(SCENE_CREDITS),NULL,tcDoneCredits);
+	SetFunc( GetScene(SCENE_FREIFAHRT),NULL,tcDoneFreeTicket);
+	SetFunc( GetScene(SCENE_ARRIVAL),NULL,tcDoneArrival);
+	SetFunc( GetScene(SCENE_HOTEL_1ST_TIME),NULL,tcDoneHotelReception);
+	SetFunc( GetScene(SCENE_DANNER),NULL,tcDoneDanner);
+	SetFunc( GetScene(SCENE_GLUDO_MONEY),NULL,tcDoneGludoMoney);
+	SetFunc( GetScene(SCENE_MAMI_CALLS),NULL,tcDoneMamiCalls);
+	SetFunc( GetScene(SCENE_FST_MEET_BRIGGS),NULL,tcDoneMeetBriggs);
+	SetFunc( GetScene(SCENE_FAHNDUNG),tcInitFahndung,tcDoneFahndung);
+	SetFunc( GetScene(SCENE_GLUDO_SAILOR),NULL,tcDoneGludoAsSailor);
+	SetFunc( GetScene(SCENE_CALL_BRIGGS),NULL,tcDoneCallFromBriggs);
+	SetFunc( GetScene(SCENE_1ST_BURG),NULL,tcDone1stBurglary);
+	SetFunc( GetScene(SCENE_2ND_BURG),NULL,tcDone2ndBurglary);
+	SetFunc( GetScene(SCENE_3RD_BURG),NULL,tcDone3rdBurglary);
+	SetFunc( GetScene(SCENE_4TH_BURG),NULL,tcDone4thBurglary);
+	SetFunc( GetScene(SCENE_5TH_BURG),NULL,tcDone5thBurglary);
+	SetFunc( GetScene(SCENE_6TH_BURG),NULL,tcDone6thBurglary);
+	SetFunc( GetScene(SCENE_7TH_BURG),NULL,tcDone7thBurglary);
+	SetFunc( GetScene(SCENE_8TH_BURG),NULL,tcDone8thBurglary);
+	SetFunc( GetScene(SCENE_9TH_BURG),NULL,tcDone9thBurglary);
+	SetFunc( GetScene(SCENE_ARRESTED_MATT),NULL,tcDoneMattIsArrested);
+
+	SetFunc( GetScene(SCENE_POOLY_AFRAID),NULL,tcDoneDealerIsAfraid);
+	SetFunc( GetScene(SCENE_MALOYA_AFRAID),NULL,tcDoneDealerIsAfraid);
+	SetFunc( GetScene(SCENE_PARKER_AFRAID),NULL,tcDoneDealerIsAfraid);
+	SetFunc( GetScene(SCENE_RAID),NULL,tcDoneRaidInWalrus);
+	SetFunc( GetScene(SCENE_DART),NULL,tcDoneDartJager);
+	SetFunc( GetScene(SCENE_CALL_FROM_POOLY),NULL,tcDoneCallFromPooly);
+
+	SetFunc( GetScene(SCENE_GLUDO_BURNS),NULL,tcDoneGludoBurnsOffice);
+	SetFunc( GetScene(SCENE_MORNING),NULL,tcDoneBeautifullMorning);
+	SetFunc( GetScene(SCENE_VISITING),NULL,tcDoneVisitingSabien);
+	SetFunc( GetScene(SCENE_A_DREAM),NULL,tcDoneADream);
+	SetFunc( GetScene(SCENE_ROSENBLATT),NULL,tcMeetingRosenblatt);
+	SetFunc( GetScene(SCENE_BRIGGS_ANGRY),NULL,tcBriggsAngry);
+	SetFunc( GetScene(SCENE_SABIEN_WALRUS),NULL,tcSabienInWalrus);
+	SetFunc( GetScene(SCENE_SABIEN_DINNER),NULL,tcSabienDinner);
+	SetFunc( GetScene(SCENE_TOMBOLA),NULL,tcWalrusTombola);
+	SetFunc( GetScene(SCENE_PRESENT_HOTEL),NULL,tcPresentInHotel);
+	SetFunc( GetScene(SCENE_INFO_TOWER),NULL,tcPoliceInfoTower);
+	SetFunc( GetScene(SCENE_RAINY_EVENING),NULL,tcRainyEvening);
+	SetFunc( GetScene(SCENE_MEETING_AGAIN),NULL,tcDoneMeetingAgain);
+
+	SetFunc( GetScene(SCENE_SABIEN_CALL),NULL,tcDoneSabienCall);
+	SetFunc( GetScene(SCENE_BIRTHDAY),NULL,tcDoneBirthday);
+	SetFunc( GetScene(SCENE_WALK_WITH),NULL,tcWalkWithSabien);
+	SetFunc( GetScene(SCENE_AGENT),NULL,tcDoneAgent);
+	SetFunc( GetScene(SCENE_JAGUAR),NULL,tcDoneGoAndFetchJaguar);
+	SetFunc( GetScene(SCENE_THINK_OF),NULL,tcDoneThinkOfSabien);
+	SetFunc( GetScene(SCENE_TERROR),NULL,tcDoneTerror);
+	SetFunc( GetScene(SCENE_CONFESSING),NULL,tcDoneConfessingSabien);
+
+	SetFunc( GetScene(SCENE_PRISON),tcInitPrison, tcDonePrison);
+
+	SetFunc( GetScene(SCENE_SOUTH_WITHOUT),NULL,tcDoneSouthhamptonWithoutSabien);
+	SetFunc( GetScene(SCENE_SOUTH_UNKNOWN),NULL,tcDoneSouthhamptonSabienUnknown);
+	SetFunc( GetScene(SCENE_SOUTHHAMPTON),StdInit,tcDoneSouthhampton);
+
+	SetFunc( GetScene(SCENE_MISSED_DATE_0), NULL, tcDoneMissedDate);
+	SetFunc( GetScene(SCENE_MISSED_DATE_1), NULL, tcDoneMissedDate);
+
+	SetFunc( GetScene(SCENE_VILLA_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_KENWO_INSIDE),StdInit, DoneInsideHouse);
+
+	SetFunc( GetScene(SCENE_TANTE_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_JUWEL_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_ANTIQ_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_TRANS_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_SENIO_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_KENWO_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_HAMHO_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_OSTER_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_CHISW_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_SOTHE_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_BRITI_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_NATUR_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_NATIO_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_VICTO_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_BANKO_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_TOWER_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_KASERNE_INSIDE), StdInit, DoneInsideHouse);
+
+	
+	if (bProfidisk)
+	{
+	SetFunc( GetScene(SCENE_PROFI_21_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_PROFI_22_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_PROFI_23_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_PROFI_24_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_PROFI_25_INSIDE),StdInit, DoneInsideHouse);
+	//SetFunc( GetScene(SCENE_PROFI_26_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_PROFI_27_INSIDE),StdInit, DoneInsideHouse);
+	SetFunc( GetScene(SCENE_PROFI_28_INSIDE),StdInit, DoneInsideHouse);
+	}
+}
+
+void SetFunc(struct Scene *sc,void (*init)(void),void (*done)(void))
+{
+	sc->Init = init;
+	sc->Done = done;
+}
+
+ubyte tcPersonIsHere(void)
+{
+	ulong locNr = GetObjNrOfLocation(GetLocation);
+
+	if (locNr)
+	{
+		if(locNr == Location_Fat_Mans_Pub)
+		{
+			tcMoveAPerson(Person_Richard_Doil,locNr);
+		}
+		else if (locNr == Location_Cars_Vans_Office)
+		{
+			tcMoveAPerson(Person_Marc_Smith,locNr);
+		}
+		else if (locNr == Location_Walrus)
+		{
+			tcMoveAPerson(Person_Thomas_Smith,locNr);
+		}
+		else if (locNr == Location_Holland_Street)
+		{
+			tcMoveAPerson(Person_Frank_Maloya,locNr);
+		}
+		else if (locNr == Location_Policestation)
+		{
+			tcMoveAPerson(Person_John_Gludo,locNr);
+			tcMoveAPerson(Person_Miles_Chickenwing,locNr);
+		}
+		else if (locNr == Location_Hotel)
+		{
+			tcMoveAPerson(Person_Ben_Riggley, locNr);
+		}
+
+		hasAll(locNr, 0, Object_Person);
+
+		if (LIST_EMPTY(ObjectList))
+			return(0);
+		else
+			return(1);
+	}
+	return(0);
+}
+
+void tcPersonGreetsMatt(void)
+{
+	static ulong upper=4L;
+	ulong locNr;
+
+	if (CalcRandomNr(0L,upper) == 1)    /* alle upper mal wird Matt gegr��t ! */
+	{
+		if (CalcRandomNr(0L,4L) == 1)  /* alle 4 mal */
+			upper+=2;    	             /* wahrscheinlichkeit wird kleiner ! */
+
+		locNr = GetObjNrOfLocation(GetLocation);
+
+		if (locNr)
+		{
+			hasAll(locNr, 0, Object_Person);
+
+			if (!(LIST_EMPTY(ObjectList)))
+			{
+				ulong  persNr = OL_NR(LIST_HEAD(ObjectList));
+
+				if (knows(Person_Matt_Stuvysunt,persNr))
+				{
+					Person pers   = (Person)dbGetObject(persNr);
+
+					Say(BUSINESS_TXT,0,pers->PictID,"HI_MATT");
+				}
+			}
+		}
+	}
+	ShowTime(0);
+}
+
+void tcGetLastName(char *Name, char *dest, ulong maxLength)
+{
+	long i;
+	char lastName[TXT_KEY_LENGTH];
+
+	for (i=0; i < strlen(Name); i++)
+		if (Name[i]==' ') break;
+
+	strcpy(lastName, &Name[i+1]);
+
+	if (strlen(lastName) > maxLength)
+		lastName[maxLength]='\0';
+
+	strcpy(dest, lastName);
+}
+
+void tcCutName(char *Name, char Sign, ulong maxLength)
+{
+	long i,j;
+	char Source[TXT_KEY_LENGTH];
+
+	strcpy(Source,Name);
+
+	if ((j = strlen(Source)) > maxLength)
+		j=maxLength;
+
+	for (i = j-1; i >= 0; i--)
+		if (Source[i] == Sign)
+			Source[i]='\0';
+
+	strcpy(Name, Source);
+}
+
+void ShowMenuBackground(void)
+{
+	if (CurrentBackground != BGD_CLEAR) /* MOD */
+	{
+		gfxShow(CurrentBackground, GFX_ONE_STEP|GFX_NO_REFRESH, 0, -1, -1);
+	}
+	else
+	{
+	    gfxClearArea(m_wrp);
+	}
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp_app.h b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp_app.h
new file mode 100644
index 0000000..ff8bb56
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/gp_app.h
@@ -0,0 +1,100 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_GAMEPLAY_APP
+#define MODULE_GAMEPLAY_APP
+
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_ANIM
+#include "anim\sysanim.h"
+#endif
+
+#ifndef MODULE_STORY
+#include "story\story.h"
+#endif
+
+#ifndef MODULE_DATAAPPL
+#include "data\dataappl.h"
+#endif
+
+#ifndef MODULE_RANDOM
+#include "random\random.h"
+#endif
+
+#ifndef MODULE_GAMEPLAY
+#include "gameplay\gp.h"
+#endif
+
+#ifndef MODULE_SOUND
+#include "sound\newsound.h"
+#endif
+
+#ifndef MODULE_EVIDENCE
+#include "scenes\evidence.h"
+#endif
+
+#ifndef MODULE_SCENES
+#include "scenes\scenes.h"
+#endif
+
+extern void TCGamePause(ubyte activ);
+
+extern ubyte tcPersonIsHere(void);
+
+extern void tcPlaySound(void);
+extern void tcPlayStreetSound(void);
+extern void tcPersonGreetsMatt(void);
+
+extern ulong StdHandle(ulong choice);
+
+extern void SetFunc(struct Scene *sc,void (*init)(void),void (*done)(void));
+extern void PrintStatus(char *text);
+extern void InitTaxiLocations(void);
+extern void	LinkScenes(void);
+
+extern void tcGetLastName(char *Name, char *dest, ulong maxLength);
+extern void tcCutName(char *Name, char Sign, ulong maxLength);
+
+extern ubyte tcLoadTheClou(void);
+extern void tcSaveTheClou(int bAutoSave);
+extern ulong tcBurglary(ulong buildingID);
+
+extern ubyte tcLoadChangesInScenes(char *fileName);
+extern ubyte tcSaveChangesInScenes(char *fileName);
+
+extern void tcRefreshLocationInTitle(ulong locNr);
+extern void ShowTime(ulong delay);
+extern void RefreshAfterDiskRequester(void);
+
+extern ubyte tcLoadIt(char activ);
+extern void  tcRefreshAfterLoad(ubyte loaded);
+
+extern ubyte tcBackToStartupMenu(void);
+
+extern void ShowMenuBackground(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/loadsave.c b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/loadsave.c
new file mode 100644
index 0000000..a63f3c6
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/loadsave.c
@@ -0,0 +1,367 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "gameplay\gp.h"
+#include "gameplay\gp_app.h"
+#include "organisa\organisa.h"
+
+#include "port\port.h"
+
+void tcSaveTheClou(int bAutoSave)
+{
+	char line[TXT_KEY_LENGTH];
+	char location[TXT_KEY_LENGTH];
+	char date[TXT_KEY_LENGTH];
+	char RootPath[TXT_KEY_LENGTH];
+	char pathname[TXT_KEY_LENGTH];
+	LIST  *games = (LIST*)CreateList (0);
+	NODE  *game;
+	uword activ;
+	Player player = (Player)dbGetObject(Player_Player_1);
+
+	/* in welche Datei ?? */
+	if (!bAutoSave) {
+		ShowMenuBackground ();
+	}
+	txtGetFirstLine (THECLOU_TXT,"SaveGame",line);
+
+	player->CurrScene    = film->act_scene->EventNr;
+	player->CurrDay      = GetDay;
+	player->CurrMinute   = GetMinute;
+	player->CurrLocation = GetLocation;
+
+	dskGetRootPath(RootPath);
+
+	dskBuildPathName(DATADISK, GAMES_LIST_TXT, pathname);
+	if(ReadList(games, 0L, pathname, 0))
+		{
+		if (!bAutoSave) {
+			inpTurnESC(1);
+			inpTurnFunctionKey(0);
+			activ = (uword) Menu(games, 15L, 0, NULL, 0L);
+			inpTurnFunctionKey(1);
+		} else {
+			activ = 0;
+		}
+
+		/* Name erstellen */
+
+		if (activ != GET_OUT)
+		{
+			strcpy (location, GetCurrLocName());
+			BuildDate (GetDay, txtGetLanguage(), date);
+
+			tcCutName(location,(ubyte)' ',15);
+
+			strcat (location, ", ");
+			strcat (location, date);
+
+			sprintf (date,"(%d)",activ+1);
+			strcat (location,date);
+
+			/* Games.list abspeichern */
+
+			game = (NODE*)CreateNode (0L, 0L, location);
+
+			ReplaceNode (games, NODE_NAME(GetNthNode(games, activ)), game);
+
+			ShowMenuBackground();
+			txtGetFirstLine(THECLOU_TXT,"SAVING",line);
+			PrintStatus(line);
+
+			WriteList (games, pathname, 0);
+
+			/*
+			// Speichern von tcMain
+			sprintf(line, "%s\\%s%d%s", DATADISK, MAIN_DATA_NAME, activ, GAME_DATA_EXT);
+			dbSaveAllObjects (line, DB_tcMain_OFFSET, DB_tcMain_SIZE, 0);
+
+			sprintf(line, "%s\\%s%d%s", DATADISK, MAIN_DATA_NAME, activ, GAME_REL_EXT);
+			SaveRelations(line ,DB_tcMain_OFFSET, DB_tcMain_SIZE, 0);
+
+			// Speichern von tcBuild
+			sprintf(line, "%s\\%s%d%s", DATADISK, BUILD_DATA_NAME, activ, GAME_DATA_EXT);
+			dbSaveAllObjects (line, (ulong) (DB_tcBuild_OFFSET), (ulong) (DB_tcBuild_SIZE), 0);
+
+			sprintf(line, "%s\\%s%d%s", DATADISK, BUILD_DATA_NAME, activ, GAME_REL_EXT);
+			SaveRelations(line ,(ulong) DB_tcBuild_OFFSET, (ulong) DB_tcBuild_SIZE, 0);
+
+			// Speichern der Story
+			sprintf(line, "%s\\%s%d%s", DATADISK, STORY_DATA_NAME, activ, GAME_DATA_EXT);
+			tcSaveChangesInScenes(line);
+			*/
+
+			/* 2014-06-25 templer */
+
+			// Speichern von tcMain
+			sprintf(line, "%s%d%s", MAIN_DATA_NAME, activ, GAME_DATA_EXT);
+			dskBuildPathName(DATADISK, line, pathname);
+			dbSaveAllObjects (pathname, DB_tcMain_OFFSET, DB_tcMain_SIZE, 0);
+
+			sprintf(line, "%s%d%s", MAIN_DATA_NAME, activ, GAME_REL_EXT);
+			dskBuildPathName(DATADISK, line, pathname);
+			SaveRelations(pathname , DB_tcMain_OFFSET, DB_tcMain_SIZE, 0);
+
+			// Speichern von tcBuild
+			sprintf(line, "%s%d%s", BUILD_DATA_NAME, activ, GAME_DATA_EXT);
+			dskBuildPathName(DATADISK, line, pathname);
+			dbSaveAllObjects (pathname, (ulong)DB_tcBuild_OFFSET, (ulong)DB_tcBuild_SIZE, 0);
+
+			sprintf(line, "%s%d%s", BUILD_DATA_NAME, activ, GAME_REL_EXT);
+			dskBuildPathName(DATADISK, line, pathname);
+			SaveRelations(pathname, (ulong)DB_tcBuild_OFFSET, (ulong)DB_tcBuild_SIZE, 0);
+
+			// Speichern der Story
+			sprintf(line, "%s%d%s", STORY_DATA_NAME, activ, GAME_DATA_EXT);
+			dskBuildPathName(DATADISK, line, pathname);
+			tcSaveChangesInScenes(pathname);
+		}
+	}
+
+	RemoveList (games);
+}
+
+ubyte tcLoadIt(char activ)
+{
+	char line[TXT_KEY_LENGTH];
+	ubyte loaded = 0;
+	char RootPath[TXT_KEY_LENGTH];
+	char pathname[TXT_KEY_LENGTH];
+
+	dskGetRootPath(RootPath);
+
+	ShowMenuBackground ();
+	txtGetFirstLine (THECLOU_TXT,"LOADING",line);
+	PrintStatus (line);
+
+	/* alte Daten l�schen */
+
+	tcResetOrganisation();
+
+	RemRelations ((ulong) DB_tcMain_OFFSET, (ulong) DB_tcMain_SIZE);
+	RemRelations ((ulong) DB_tcBuild_OFFSET, (ulong) DB_tcBuild_SIZE);
+
+	dbDeleteAllObjects ((ulong) DB_tcMain_OFFSET, (ulong) DB_tcMain_SIZE);
+	dbDeleteAllObjects ((ulong) DB_tcBuild_OFFSET, (ulong) DB_tcBuild_SIZE);
+
+	/* neue Daten laden ! */
+
+	txtReset (OBJECTS_TXT);
+
+	/*
+	sprintf(line, "%s\\%s%d%s", DATADISK, MAIN_DATA_NAME, (int)activ, GAME_DATA_EXT);
+	if(dbLoadAllObjects (line, 0))
+	{
+		sprintf(line, "%s\\%s%d%s", DATADISK, BUILD_DATA_NAME, (int)activ, GAME_DATA_EXT);
+
+		if(dbLoadAllObjects (line, 0))
+		{
+			sprintf(line, "%s\\%s%d%s", DATADISK, MAIN_DATA_NAME, (int)activ, GAME_REL_EXT);
+
+			if(LoadRelations (line, 0))
+			{
+				sprintf(line, "%s\\%s%d%s", DATADISK, BUILD_DATA_NAME, (int)activ, GAME_REL_EXT);
+
+				if(LoadRelations (line, 0))
+				{
+					sprintf(line, "%s\\%s%d%s", DATADISK, STORY_DATA_NAME, (int)activ, GAME_DATA_EXT);
+
+					if(tcLoadChangesInScenes(line))
+						loaded = 1;
+				}
+			}
+		}
+	}
+	*/
+
+	/* 2014-06-25 templer */
+
+	sprintf(line, "%s%d%s", MAIN_DATA_NAME, (int)activ, GAME_DATA_EXT);
+	dskBuildPathName(DATADISK, line, pathname);
+	if(dbLoadAllObjects (pathname, 0))
+	{
+		sprintf(line, "%s%d%s", BUILD_DATA_NAME, (int)activ, GAME_DATA_EXT);
+		dskBuildPathName(DATADISK, line, pathname);
+		if(dbLoadAllObjects (pathname, 0))
+		{
+			sprintf(line, "%s%d%s", MAIN_DATA_NAME, (int)activ, GAME_REL_EXT);
+			dskBuildPathName(DATADISK, line, pathname);
+			if(LoadRelations (pathname, 0))
+			{
+				sprintf(line, "%s%d%s", BUILD_DATA_NAME, (int)activ, GAME_REL_EXT);
+				dskBuildPathName(DATADISK, line, pathname);
+				if(LoadRelations (pathname, 0))
+				{
+					sprintf(line, "%s%d%s", STORY_DATA_NAME, (int)activ, GAME_DATA_EXT);
+					dskBuildPathName(DATADISK, line, pathname);
+					if(tcLoadChangesInScenes(pathname))
+						loaded = 1;
+				}
+			}
+		}
+	}
+
+	return loaded;
+}
+
+ubyte tcBackToStartupMenu(void)
+{
+	/* clear old data */
+
+	tcResetOrganisation();
+
+	RemRelations ((ulong) DB_tcMain_OFFSET, (ulong) DB_tcMain_SIZE);
+	RemRelations ((ulong) DB_tcBuild_OFFSET, (ulong) DB_tcBuild_SIZE);
+
+	dbDeleteAllObjects ((ulong) DB_tcMain_OFFSET, (ulong) DB_tcMain_SIZE);
+	dbDeleteAllObjects ((ulong) DB_tcBuild_OFFSET, (ulong) DB_tcBuild_SIZE);
+
+	return 0;
+}
+
+ubyte tcLoadTheClou(void)
+{
+	char line[TXT_KEY_LENGTH], loaded;
+	LIST *games = (LIST*)CreateList (0);
+	LIST *origin = (LIST*)CreateList (0);
+	ulong activ;
+	Player player;
+	char pathname1[TXT_KEY_LENGTH];
+	char pathname2[TXT_KEY_LENGTH];
+
+	dskBuildPathName(DATADISK, GAMES_LIST_TXT, pathname1);
+	dskBuildPathName(DATADISK, GAMES_ORIG_TXT, pathname2);
+
+	if(ReadList (games, 0L, pathname1, 0) &&
+		ReadList(origin, 0L, pathname2, 0))
+		{
+		ShowMenuBackground ();
+		txtGetFirstLine (THECLOU_TXT,"LoadAGame",line);
+
+		inpTurnFunctionKey(0);
+		inpTurnESC(1);
+		activ = (ulong) Menu (games, 15L, 0, NULL, 0L);
+		inpTurnFunctionKey(1);
+
+		if ((activ != GET_OUT) && (strcmp (NODE_NAME(GetNthNode(games, (long) activ)),
+													  NODE_NAME(GetNthNode(origin, (long) activ)))))
+			{
+			loaded = tcLoadIt((ubyte)activ);
+			}
+		else
+			{
+			ShowMenuBackground ();
+
+			txtGetFirstLine (THECLOU_TXT,"NOT_LOADING",line);
+			PrintStatus (line);
+			inpWaitFor(INP_LBUTTONP);
+
+			ShowMenuBackground ();
+			SetLocation(-1);
+
+			RemoveList (games);
+			RemoveList (origin);
+
+			if (player = (Player)dbGetObject(Player_Player_1))            /* MOD 04-02 */
+				{
+				player->CurrScene = film->act_scene->EventNr;
+
+				SceneArgs.ReturnValue = film->act_scene->EventNr;
+				}
+
+			return 0;
+			}
+		}
+	else
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, 1);
+
+	tcRefreshAfterLoad(loaded);
+
+	RemoveList (games);
+	RemoveList (origin);
+
+	return loaded;
+}
+
+void tcRefreshAfterLoad(ubyte loaded)
+{
+	Player player = (Player)dbGetObject(Player_Player_1);  /* mu� hier geholt werden -> sonst alte Adresse */
+
+	if (!loaded)
+		{
+		if (player)
+			player->CurrScene = 0L;
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, 2);
+		}
+	else
+		{
+		if (player)
+			{
+			SetDay(player->CurrDay);
+			SetTime(player->CurrMinute);
+			SetLocation(-1);    /* auf alle F�lle ein Refresh! */
+
+			SceneArgs.ReturnValue = GetLocScene(player->CurrLocation)->EventNr;
+			}
+		}
+}
+
+ubyte tcSaveChangesInScenes(char *fileName)
+{
+	long i;
+	ubyte back = 0;
+	FILE *file;
+
+	if(file = dskOpen(fileName,"w",0))
+	{
+		fprintf(file,"%ld\n",film->EnabledChoices);
+
+		for(i=0; i<film->AmountOfScenes; i++)
+		{
+			fprintf(file,"%ld\n",film->gameplay[i].EventNr);
+			fprintf(file,"%d\n",film->gameplay[i].Geschehen);
+		}
+
+		dskClose(file);
+		back = 1;
+	}
+
+	return(back);
+}
+
+ubyte tcLoadChangesInScenes(char *fileName)
+{
+	long i;
+	char buffer[TXT_KEY_LENGTH];
+	ubyte back = 1;
+	ulong eventNr, count;
+	FILE *file;
+	struct Scene *sc;
+
+	if(file = dskOpen(fileName,"r",0))
+		{
+			dskGets(buffer, TXT_KEY_LENGTH - 1, file);
+		SetEnabledChoices(atol(buffer));
+
+		for (i=0; i<film->AmountOfScenes; i++)
+			{
+			dskGets(buffer, TXT_KEY_LENGTH - 1, file);
+			eventNr = atol(buffer);
+			dskGets(buffer, TXT_KEY_LENGTH - 1, file);
+			count = atol(buffer);
+
+			if (sc = GetScene(eventNr))
+				sc->Geschehen = (uword) count;
+			else
+				back = 0;
+			}
+		dskClose(file);
+		}
+	else
+		back=0;
+
+	return(back);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/tcreques.c b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/tcreques.c
new file mode 100644
index 0000000..b6a82b8
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gameplay/tcreques.c
@@ -0,0 +1,96 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "gameplay\gp.h"
+#include "gameplay\gp_app.h"
+
+void PrintStatus(char *text)
+	{
+	gfxSetDrMd(m_wrp,GFX_JAM_1);
+	gfxSetRect(0,320);
+
+	gfxSetPens(m_wrp, 249, 254, GFX_SAME_PEN);
+
+	gfxPrint(m_wrp,text,10,GFX_PRINT_SHADOW|GFX_PRINT_CENTER);
+	}
+
+ulong ShowTheClouRequester(long error_class)
+	{
+	LIST *menu;
+	ulong answer = 0;
+	ubyte choices;
+	Player player = (Player)dbGetObject(Player_Player_1); // MOD hg, 29-04-94
+
+	inpTurnESC(0);
+
+	ShowMenuBackground();
+
+	switch(error_class)
+		{
+		case No_Error:
+
+			ShowMenuBackground();
+
+			menu=txtGoKey(MENU_TXT,"ESCMenu_STD");
+
+			inpTurnFunctionKey(0);
+
+			if (GamePlayMode & GP_DEMO)
+				choices = Menu(menu, 3, 0, NULL, 0);
+			else
+				choices = Menu(menu, 15, 0, NULL, 0);
+
+			inpTurnFunctionKey(1);
+
+			switch(choices)
+				{
+				case 0:	/* Weiterspielen */
+					player->CurrScene = 0L; // MOD hg, 29-04-94
+					ShowMenuBackground();
+					tcRefreshLocationInTitle(GetLocation);
+					break;
+				case 1:
+					player->CurrScene = SCENE_THE_END;
+					ShowMenuBackground();
+					break;
+				case 2:
+					tcSaveTheClou(0);
+					player->CurrScene = 0L; // MOD hg, 29-04-94
+					ShowMenuBackground();
+					tcRefreshLocationInTitle(GetLocation);
+					break;
+				case 3:	/* Laden */
+					tcLoadTheClou();
+					ShowMenuBackground();
+					break;
+				default:
+					break;
+				}
+
+			RemoveList(menu);
+
+			break;
+		case Internal_Error:
+			PrintStatus("Gravierender Fehler !");
+			inpWaitFor(INP_LBUTTONP);
+			ShowMenuBackground();
+			break;
+		case No_Mem:
+			PrintStatus("Speichermangel !! - No Memory !!");
+			inpWaitFor(INP_LBUTTONP);
+			ShowMenuBackground();
+			break;
+		case Disk_Defect:
+			PrintStatus("Disk Defekt !");
+			inpWaitFor(INP_LBUTTONP);
+			ShowMenuBackground();
+			break;
+		}
+
+	inpTurnESC(1);
+
+	return(answer);
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gfx/filter.c b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/filter.c
new file mode 100644
index 0000000..41f295d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/filter.c
@@ -0,0 +1,274 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "gfx\filter.h"
+#include "gfx\gfx.h"
+#include <string.h>
+
+unsigned char *gfxFilter_x4_Buffer = NULL;
+
+void gfxFilter_x1_Copy(	void *srcmem,
+						long srcw,
+						long srch,
+						void *dstmem,
+						long dstpitch)
+{
+	unsigned char *src, *dst;
+	long y;
+
+	src = (unsigned char *)srcmem;
+	dst = (unsigned char *)dstmem;
+	if (srcw == dstpitch) {
+		memcpy(dst, src, srcw * srch);
+	} else {
+		for (y = 0; y < srch; y++) {
+			memcpy(dst, src, srcw);
+			src += srcw;
+			dst += dstpitch;
+		}
+	}
+}
+
+void gfxFilter_x2_Copy(	void *srcmem,
+						long srcw,
+						long srch,
+						void *dstmem,
+						long dstpitch)
+{
+	unsigned char *src, *dst;
+	long x, x2, x2d, y;
+
+	src = (unsigned char *)srcmem;
+	dst = (unsigned char *)dstmem;
+	for (y = 0; y < srch; y++) {
+		for (x = 0; x < srcw; x++) {
+			x2 = x<<1;
+			x2d = x2+dstpitch;
+			dst[x2] = src[x];
+			dst[x2+1] = src[x];
+			dst[x2d] = src[x];
+			dst[x2d+1] = src[x];
+		}
+		src += srcw;
+		dst += dstpitch << 1;
+	}
+}
+
+void gfxFilter_x3_Copy(	void *srcmem,
+						long srcw,
+						long srch,
+						void *dstmem,
+						long dstpitch)
+{
+	unsigned char *src, *dst;
+	long x, y, x3, x3d, x3d2, d2, d3;
+
+	d2 = dstpitch << 1;
+	d3 = dstpitch * 3;
+	src = (unsigned char *)srcmem;
+	dst = (unsigned char *)dstmem;
+	for (y = 0; y < srch; y++) {
+		for (x = 0; x < srcw; x++) {
+			x3 = x * 3;
+			x3d = x3+dstpitch;
+			x3d2 = x3+d2;
+
+			dst[x3] = src[x];
+			dst[x3+1] = src[x];
+			dst[x3+2] = src[x];
+
+			dst[x3d] = src[x];
+			dst[x3d+1] = src[x];
+			dst[x3d+2] = src[x];
+
+			dst[x3d2] = src[x];
+			dst[x3d2+1] = src[x];
+			dst[x3d2+2] = src[x];
+		}
+		src += srcw;
+		dst += d3;
+	}
+}
+
+void gfxFilter_x4_Copy(	void *srcmem,
+						long srcw,
+						long srch,
+						void *dstmem,
+						long dstpitch)
+{
+	unsigned char *src, *dst;
+	long x, y, x4, d2, d3, d4, x4d, x4d2, x4d3;
+
+	d2 = dstpitch << 1;
+	d3 = dstpitch * 3;
+	d4 = dstpitch << 2;
+	src = (unsigned char *)srcmem;
+	dst = (unsigned char *)dstmem;
+	for (y = 0; y < srch; y++) {
+		for (x = 0; x < srcw; x++) {
+			x4 = x << 2;
+			x4d = x4+dstpitch;
+			x4d2 = x4+d2;
+			x4d3 = x4+d3;
+
+			dst[x4] = src[x];
+			dst[x4+1] = src[x];
+			dst[x4+2] = src[x];
+			dst[x4+3] = src[x];
+
+			dst[x4d] = src[x];
+			dst[x4d+1] = src[x];
+			dst[x4d+2] = src[x];
+			dst[x4d+3] = src[x];
+
+			dst[x4d2] = src[x];
+			dst[x4d2+1] = src[x];
+			dst[x4d2+2] = src[x];
+			dst[x4d2+3] = src[x];
+
+			dst[x4d3] = src[x];
+			dst[x4d3+1] = src[x];
+			dst[x4d3+2] = src[x];
+			dst[x4d3+3] = src[x];
+		}
+		src += srcw;
+		dst += d4;
+	}
+}
+
+void gfxFilter_x2_Scale2x(	void *srcmem,
+							long srcw,
+							long srch,
+							void *dstmem,
+							long dstpitch)
+{
+	unsigned long loopw, looph, loopw2, looph2, ts = 0, td = 0;
+	unsigned char B, D, E, F, H;
+	unsigned char *src, *dst;
+
+	src = (unsigned char *)srcmem;
+	dst = (unsigned char *)dstmem;
+	for (looph = 0, looph2 = 0; looph < srch; ++looph, looph2 += 2) {
+		for (loopw = 0, loopw2 = 0; loopw < srcw; ++loopw, loopw2 += 2) {
+			/*
+			+-+-+-+
+			|A|B|C|
+			|-+-+-|
+			|D|E|F|
+			|-+-+-|
+			|G|H|I|
+			+-+-+-+
+			*/
+			B = src[(looph ? (ts - srcw) : 0) + loopw];
+			D = src[ts + (loopw ? (loopw - 1) : 0)];
+			E = src[ts + loopw];
+			F = src[ts + (loopw < (srcw-2) ? (loopw + 1) : (srcw-1))];
+			H = src[(looph < (srch-2) ? (ts + srcw) : ((srch-1)*srcw)) + loopw];
+			/*
+			+--+--+
+			|E0|E1|
+			+--+--+
+			|E2|E3|
+			+--+--+
+			*/
+			if ((B != H) && (D != F)) {
+				dst[td + loopw2] = (D == B) ? D : E;
+				dst[td + loopw2 + 1] = (B == F) ? F : E;
+				dst[td + dstpitch + loopw2] = (D == H) ? D : E;
+				dst[td + dstpitch + loopw2 + 1] = (H == F) ? F : E;
+			} else {
+				dst[td + loopw2] = E;
+				dst[td + loopw2 + 1] = E;
+				dst[td + dstpitch + loopw2] = E;
+				dst[td + dstpitch + loopw2 + 1] = E;
+			}
+		}
+		ts += srcw;
+		td += dstpitch<<1;
+	}
+}
+
+void gfxFilter_x3_Scale3x(	void *srcmem,
+							long srcw,
+							long srch,
+							void *dstmem,
+							long dstpitch)
+{
+	unsigned long loopw, looph, loopw3, looph3, ts = 0, td = 0;
+	unsigned char A, B, C, D, E, F, G, H, I;
+	unsigned char *src, *dst;
+	long dstpitch2 = dstpitch << 1;
+
+	src = (unsigned char *)srcmem;
+	dst = (unsigned char *)dstmem;
+	for (looph = 0, looph3 = 0; looph < srch; ++looph, looph3 += 3) {
+		for (loopw = 0, loopw3 = 0; loopw < srcw; ++loopw, loopw3 += 3) {
+			/*
+			+-+-+-+
+			|A|B|C|
+			|-+-+-|
+			|D|E|F|
+			|-+-+-|
+			|G|H|I|
+			+-+-+-+
+			*/
+			A = src[(looph ? (ts - srcw) : 0) + (loopw ? (loopw - 1) : 0)];		// ??
+			B = src[(looph ? (ts - srcw) : 0) + loopw];
+			C = src[(looph ? (ts - srcw) : 0) + (loopw < (srcw-2) ? (loopw + 1) : (srcw-1))];		// ??
+
+			D = src[ts + (loopw ? (loopw - 1) : 0)];
+			E = src[ts + loopw];
+			F = src[ts + (loopw < (srcw-2) ? (loopw + 1) : (srcw-1))];
+
+			G = src[(looph < (srch-2) ? (ts + srcw) : ((srch-1)*srcw)) + (loopw ? (loopw - 1) : 0)];	// ??
+			H = src[(looph < (srch-2) ? (ts + srcw) : ((srch-1)*srcw)) + loopw];
+			I = src[(looph < (srch-2) ? (ts + srcw) : ((srch-1)*srcw)) + (loopw < (srcw-2) ? (loopw + 1) : (srcw-1))];	// ??
+
+			/*
+			+--+--+--+
+			|E0|E1|E2|
+			+--+--+--+
+			|E3|E4|E5|
+			+--+--+--+
+			|E6|E7|E8|
+			+--+--+--+
+			*/
+			if ((B != H) && (D != F)) {
+				dst[td + loopw3] = D == B ? D : E;
+				dst[td + loopw3 + 1] = (D == B && E != C) || (B == F && E != A) ? B : E;
+				dst[td + loopw3 + 2] = B == F ? F : E;
+				dst[td + dstpitch + loopw3] = (D == B && E != G) || (D == H && E != A) ? D : E;
+				dst[td + dstpitch + loopw3 + 1] = E;
+				dst[td + dstpitch + loopw3 + 2] = (B == F && E != I) || (H == F && E != C) ? F : E;
+				dst[td + dstpitch2 + loopw3] = D == H ? D : E;
+				dst[td + dstpitch2 + loopw3 + 1] = (D == H && E != I) || (H == F && E != G) ? H : E;
+				dst[td + dstpitch2 + loopw3 + 2] = H == F ? F : E;
+			} else {
+				dst[td + loopw3] = E;
+				dst[td + loopw3 + 1] = E;
+				dst[td + loopw3 + 2] = E;
+				dst[td + dstpitch + loopw3] = E;
+				dst[td + dstpitch + loopw3 + 1] = E;
+				dst[td + dstpitch + loopw3 + 2] = E;
+				dst[td + dstpitch2 + loopw3] = E;
+				dst[td + dstpitch2 + loopw3 + 1] = E;
+				dst[td + dstpitch2 + loopw3 + 2] = E;
+			}
+		}
+		ts += srcw;
+		td += dstpitch*3;
+	}
+}
+
+void gfxFilter_x4_Scale4x(	void *srcmem,
+							long srcw,
+							long srch,
+							void *dstmem,
+							long dstpitch)
+{
+	gfxFilter_x2_Scale2x(srcmem, srcw, srch, gfxFilter_x4_Buffer, 640);
+	gfxFilter_x2_Scale2x(gfxFilter_x4_Buffer, 640, 400, dstmem, dstpitch);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gfx/filter.h b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/filter.h
new file mode 100644
index 0000000..be5ab27
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/filter.h
@@ -0,0 +1,60 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef __filter_h__
+#define __filter_h__
+
+extern unsigned char *gfxFilter_x4_Buffer;
+
+typedef void (*gfxFilterFunc)(	void *srcmem,
+								long srcw,
+								long srch,
+								void *dstmem,
+								long dstpitch);
+
+extern void gfxFilter_x1_Copy(	void *srcmem,
+								long srcw,
+								long srch,
+								void *dstmem,
+								long dstpitch);
+
+extern void gfxFilter_x2_Copy(	void *srcmem,
+								long srcw,
+								long srch,
+								void *dstmem,
+								long dstpitch);
+
+extern void gfxFilter_x3_Copy(	void *srcmem,
+								long srcw,
+								long srch,
+								void *dstmem,
+								long dstpitch);
+
+extern void gfxFilter_x4_Copy(	void *srcmem,
+								long srcw,
+								long srch,
+								void *dstmem,
+								long dstpitch);
+								
+extern void gfxFilter_x2_Scale2x(	void *srcmem,
+									long srcw,
+									long srch,
+									void *dstmem,
+									long dstpitch);
+
+extern void gfxFilter_x3_Scale3x(	void *srcmem,
+									long srcw,
+									long srch,
+									void *dstmem,
+									long dstpitch);
+
+extern void gfxFilter_x4_Scale4x(	void *srcmem,
+									long srcw,
+									long srch,
+									void *dstmem,
+									long dstpitch);
+
+#endif /* __filter_h__ */
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfx.c b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfx.c
new file mode 100644
index 0000000..07f2107
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfx.c
@@ -0,0 +1,1436 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "SDL.h"
+#include "gfx\gfx.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+#ifndef MODULE_BASE
+#include "base\base.h"
+#endif
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#include "gfx\gfx_p.h"
+#include "gfx\filter.h"
+#include "port\port.h"
+
+/************************************************/
+
+static char bGfxInvalidate = 0;
+static char	bGfxPaletteChanged = 0;
+
+int gfxScalingOffsetX = 0;
+int gfxScalingOffsetY = 0;
+int gfxScalingFactor = 1;
+
+static gfxFilterFunc gfxFilter = gfxFilter_x1_Copy;
+
+ubyte gfxPaletteGlobal[256*4];
+
+/************************************************/
+
+#define GFX_BOARD_SIZE	(640*328)
+
+SDL_Surface *SurfaceScreen = NULL;
+static const char *TitleStr = COSP_TITLE;
+static ubyte *NCH4Buffer = NULL;
+
+/************************************************/
+
+static void SetWindowIcon(char *icon)
+{
+	unsigned int    colorkey;
+	SDL_Surface     *image = NULL;
+
+	image = SDL_LoadBMP(icon);
+
+	if (image)
+	{
+		colorkey = SDL_MapRGB(image->format, 2, 5, 1);
+
+		SDL_SetColorKey(image, SDL_SRCCOLORKEY, colorkey);              
+
+		SDL_WM_SetIcon(image,NULL);
+	}
+
+}
+
+ubyte *gfxGetGfxBoardBase(void)
+{
+	return(GfxBoardBase);
+}
+
+void gfxInvalidate(void)
+{
+	bGfxInvalidate = 1;
+}
+
+// 2014-07-13 LucyG : guess what this one does
+void gfxScreenshot(void)
+{
+	static int screenshotsTaken = 0;
+	char fileName[256];
+
+	sprintf(fileName, ".\\screenshot%02d.bmp", screenshotsTaken + 1);
+	if (!SDL_SaveBMP(SurfaceScreen, fileName)) {
+		screenshotsTaken++;
+	}
+}
+
+/************************************************/
+
+void gfxSetDarkness(ubyte value)
+{
+    ubyte *dp;
+    int h, i;
+    static ubyte ScrDark;
+
+	dp = (ubyte *)l_wrp->p_BitMap;
+
+    if (value == LS_BRIGHTNESS) {
+        h = LS_MAX_AREA_WIDTH;
+
+        do {
+            i = LS_MAX_AREA_HEIGHT;
+
+            do {
+                *dp++ |= 64;
+            } while (--i);
+        } while (--h);
+    } else {
+        h = LS_MAX_AREA_WIDTH;
+
+        do {
+            i = LS_MAX_AREA_HEIGHT;
+
+            do {
+                *dp++ &= ~64;
+            } while (--i);
+        } while (--h);
+    }
+
+    ScrDark = value;
+
+	bGfxInvalidate = 1;
+}
+
+/************************************************/
+
+int gfxInitSDL(void)
+{
+	if (!SDL_InitSubSystem(SDL_INIT_VIDEO))
+	{
+		Uint32 flags = SDL_SWSURFACE;
+		char iconPath[TXT_KEY_LENGTH];
+
+		if (Config.gfxFullScreen) {
+			flags |= SDL_FULLSCREEN;
+		}
+
+		gfxScalingFactor = min((Config.gfxScreenWidth / 320), (Config.gfxScreenHeight / 200));
+		if (gfxScalingFactor > 4) {
+			gfxScalingFactor = 4;
+		} else if (gfxScalingFactor < 1) {
+			Log("%s|%s: screen too small", __FILE__, __func__);
+			gfxScalingFactor = 1;
+			Config.gfxScreenWidth = 320;
+			Config.gfxScreenHeight = 200;
+		}
+
+		switch (gfxScalingFactor) {
+			case 2:
+				if (Config.gfxScaleNx) {
+					gfxFilter = gfxFilter_x2_Scale2x;
+				} else {
+					gfxFilter = gfxFilter_x2_Copy;
+				}
+			break;
+			case 3:
+				if (Config.gfxScaleNx) {
+					gfxFilter = gfxFilter_x3_Scale3x;
+				} else {
+					gfxFilter = gfxFilter_x3_Copy;
+				}
+			break;
+			case 4:
+				if (Config.gfxScaleNx) {
+					gfxFilter = gfxFilter_x4_Scale4x;
+					gfxFilter_x4_Buffer = (unsigned char *)MemAlloc(640*400);
+					if (!gfxFilter_x4_Buffer) {
+						gfxFilter = gfxFilter_x4_Copy;
+					}
+				} else {
+					gfxFilter = gfxFilter_x4_Copy;
+				}
+			break;
+			default:
+				gfxFilter = gfxFilter_x1_Copy;
+			break;
+		}
+
+		gfxScalingOffsetX = (Config.gfxScreenWidth - (320 * gfxScalingFactor)) / 2;
+		gfxScalingOffsetY = (Config.gfxScreenHeight - (200 * gfxScalingFactor)) / 2;
+
+		dskBuildPathName(PICTURE_DIRECTORY, "icon.bmp", iconPath);
+		SetWindowIcon(iconPath);
+		SurfaceScreen = SDL_SetVideoMode(Config.gfxScreenWidth, Config.gfxScreenHeight, 8, flags);
+		if (SurfaceScreen)
+		{
+			SDL_WM_SetCaption(TitleStr, TitleStr);
+			GfxBoardBase = (ubyte *)MemAlloc(GFX_BOARD_SIZE);
+			if (GfxBoardBase)
+			{
+				NCH4Buffer = (ubyte*)MemAlloc(GFX_PAGE_SIZE);
+				return(1);
+			}
+		}
+	}
+	return(0);
+}
+
+void gfxDoneSDL(void)
+{
+	SDL_QuitSubSystem(SDL_INIT_VIDEO);
+	if (GfxBoardBase) MemFree(GfxBoardBase, GFX_BOARD_SIZE);
+	if (NCH4Buffer) MemFree(NCH4Buffer, GFX_PAGE_SIZE);
+	if (gfxFilter_x4_Buffer) {
+		MemFree(gfxFilter_x4_Buffer, 640*400);
+	}
+}
+
+void gfxUpdateSDL(struct RastPort *rp)
+{
+	ubyte *src, *dst;
+	long dstpitch;
+
+	if ((rp != &RefreshRP) && (rp != &PrepareRP))
+	{
+		src = GfxBoardBase;
+
+		if (GfxBase.uch_VideoMode == GFX_VIDEO_NCH4)
+		{
+			gfxNCH4PutNCH4ToMCGA(src + gfxNCH4GetCurrScrollOffset(), NCH4Buffer, 0, 0, 0, 0, 320, 128, 160, 320);
+			gfxNCH4PutNCH4ToMCGA(src, NCH4Buffer+(320*128), 0, 0, 0, 0, 320, 72, 160, 320);
+			src = NCH4Buffer;
+		}
+
+		if (bGfxPaletteChanged) {
+			SDL_SetPalette(SurfaceScreen, SDL_LOGPAL|SDL_PHYSPAL, (SDL_Color *)gfxPaletteGlobal, 0, 256);
+			bGfxPaletteChanged = 0;
+		}
+
+		SDL_LockSurface(SurfaceScreen);
+
+		dst = (ubyte*)SurfaceScreen->pixels;
+		dstpitch = SurfaceScreen->pitch;
+
+		if (gfxScalingOffsetX > 0) {
+			dst += gfxScalingOffsetX;
+		}
+		if (gfxScalingOffsetY > 0) {
+			dst += dstpitch * gfxScalingOffsetY;
+		}
+
+		gfxFilter(src, 320, 200, dst, dstpitch);
+
+		SDL_UnlockSurface(SurfaceScreen);
+
+		SDL_UpdateRect(SurfaceScreen, 0,0,0,0);
+	}
+	bGfxInvalidate = 0;
+}
+
+/********************************************************************
+ * inits & dons
+ */
+
+void gfxInit(void)
+{
+	if (!gfxInitSDL())
+	{
+		return;
+	}
+
+	gfxSetDestRPForShow(NULL);
+
+	/* diese RP mue�ssen nur ein Bild maximaler Groesse aufnehmen koennen */
+	/* in anderen Modulen wird vorausgesetzt, dass alle RastPorts gleich */
+	/* gross sind und auch gleich gross wie die StdBuffer sind */
+	/* StdBuffer = 61 * 1024 = 62464, XMS: 62400 */
+
+	/* Ausnahme (nachtraeglich) : der RefreshRP ist nur 320 * 140 Pixel gross!! */
+
+	gfxInitXMSRastPort(&StdRP0InXMS    , 320, 195);	/* CMAP muss auch Platz haben ! */
+	gfxInitXMSRastPort(&StdRP1InXMS    , 320, 195);
+	gfxInitXMSRastPort(&AnimRPInXMS    , 320, 195);
+	gfxInitXMSRastPort(&AddRPInXMS     , 320, 195);
+	gfxInitXMSRastPort(&LSObjectRPInXMS, 320, 195);
+
+	gfxInitXMSRastPort(&LSFloorRPInXMS, 320, 32);
+
+	/* der RefreshRP muss den ganzen Bildschirm aufnehmen koennen */
+	gfxInitXMSRastPort(&RefreshRPInXMS, 320, 200);
+
+	gfxInitRastPort(&RefreshRP, 0,   0, 320, 140,   0,   0, GFX_LOAD_BUFFER);
+	gfxInitRastPort(&PrepareRP, 0,   0, 320, 192,   0,   0, GFX_DECR_BUFFER);
+	gfxInitRastPort(&LowerRP  , 0,   0, 320, 140,   0, 191, GfxBoardBase);
+	gfxInitRastPort(&MenuRP   , 0, 140, 320,  50, 191, 255, GfxBoardBase + 320*140);
+
+	gfxInitRastPort(&NCH4ScrollRP, 0,   0, 640, 256,   0, 191, (void *)((ulong)GfxBoardBase + (ulong)GFX_NCH4_SCROLLOFFSET));
+	gfxInitRastPort(&NCH4MenuRP  , 0, 128, 320,  72, 191, 255, GfxBoardBase);
+	gfxInitRastPort(&NCH4UpperRP, 0,   0, 320,  60,   0, 191, (void *)((ulong)GfxBoardBase + (ulong)GFX_NCH4_SCROLLOFFSET));
+	// TopEdge von diesem RP muss 0 sein, da der Offset schon bei der Adresse
+	// der BitMap richtig uebergeben wird
+
+	l_wrp = &LowerRP;
+	u_wrp = &LowerRP;
+	m_wrp = &MenuRP;
+
+	bubbleFont = gfxOpenFont(GFX_BUBBLE_FONT_NAME, 4, 8, 32, 255, 320, 24);
+	menuFont   = gfxOpenFont(GFX_MENU_FONT_NAME, 5, 9, 32, 255, 320, 36);
+
+	gfxSetFont(l_wrp, bubbleFont);
+	gfxSetFont(u_wrp, bubbleFont);
+	gfxSetFont(m_wrp, menuFont);
+
+	gfxSetFont(&NCH4ScrollRP, bubbleFont);
+	gfxSetFont(&NCH4MenuRP, menuFont);
+	gfxSetFont(&NCH4UpperRP, bubbleFont);
+
+	gfxInitCollList();
+	gfxInitPictList();
+
+	gfxSetVideoMode(GFX_VIDEO_MCGA); // nach RastPorts !!
+
+	bGfxInvalidate = 1;
+}
+
+void gfxDone(void)
+{
+	if (PictureList)
+	{
+		RemoveList(PictureList);
+		PictureList = NULL;
+	}
+
+	if (CollectionList)
+	{
+		RemoveList(CollectionList);
+		CollectionList = NULL;
+	}
+
+	gfxCloseFont(bubbleFont);
+	gfxCloseFont(menuFont);
+
+	gfxDoneXMSRastPort(&RefreshRPInXMS);
+	gfxDoneXMSRastPort(&LSFloorRPInXMS);
+	gfxDoneXMSRastPort(&LSObjectRPInXMS);
+
+	gfxDoneXMSRastPort(&StdRP0InXMS);
+	gfxDoneXMSRastPort(&StdRP1InXMS);
+	gfxDoneXMSRastPort(&AnimRPInXMS);
+	gfxDoneXMSRastPort(&AddRPInXMS);
+
+	gfxSetVideoMode(GFX_VIDEO_TEXT);
+
+	gfxDoneSDL();
+}
+
+void gfxSetDestRPForShow(struct RastPort *rp)
+{
+	GfxBase.p_DestRPForShow = rp;
+}
+
+void gfxSetVideoMode(ubyte uch_NewMode)
+{
+	GfxBase.uch_VideoMode = uch_NewMode;
+
+	memset(GfxBoardBase, 0, GFX_BOARD_SIZE);
+
+	switch (uch_NewMode)
+	{
+		case GFX_VIDEO_MCGA:
+			LowerRP.uch_VideoMode = GFX_VIDEO_MCGA;
+			MenuRP.uch_VideoMode = GFX_VIDEO_MCGA;
+			l_wrp = &LowerRP;
+			u_wrp = &LowerRP;
+			m_wrp = &MenuRP;
+			gfxSetRGB(NULL, 0, 0, 64, 48);
+			gfxSetRGB(NULL, 255, 255, 255, 255); // Maus
+		break;
+		case GFX_VIDEO_NCH4:
+			gfxNCH4Init();
+			l_wrp = &NCH4ScrollRP;
+			u_wrp = &NCH4UpperRP;
+			m_wrp = &NCH4MenuRP;
+			l_wrp->uch_VideoMode = GFX_VIDEO_NCH4;
+			u_wrp->uch_VideoMode = GFX_VIDEO_NCH4;
+			m_wrp->uch_VideoMode = GFX_VIDEO_NCH4;
+			gfxSetRGB(NULL, 0, 0, 64, 48);
+			memset(NCH4Buffer, 0, GFX_PAGE_SIZE);
+		break;
+		case GFX_VIDEO_TEXT:
+			/* not available */
+		break;
+	}
+}
+
+/*
+ * sollte nach jedem Scrolling (vor jedem Darstellen einer
+ * Bubble) aufgerufen werden
+ */
+void gfxCorrectUpperRPBitmap(void)
+{
+	NCH4UpperRP.p_BitMap = GfxBoardBase + gfxNCH4GetCurrScrollOffset();
+}
+
+/********************************************************************
+ * lists
+ */
+
+static void gfxInitCollList(void)
+{
+	char pathname[TXT_KEY_LENGTH];
+	LIST *tempList = (LIST*)CreateList(0);
+	NODE *n;
+	struct Collection *coll;
+
+	CollectionList = (LIST*)CreateList(0);
+
+	dskBuildPathName(TEXT_DIRECTORY, COLL_LIST_TXT, pathname);
+	ReadList(tempList, 0, pathname, 0);
+
+	for (n = (NODE *) LIST_HEAD(tempList); NODE_SUCC(n); n = (NODE *) NODE_SUCC(n))
+	{
+		coll = (struct Collection*)CreateNode(CollectionList, sizeof(struct Collection), txtGetKey(2, NODE_NAME(n)));
+
+		coll->us_CollId     = (uword)  txtGetKeyAsULONG(1, NODE_NAME(n));
+
+		coll->puch_Filename = (ubyte*)NODE_NAME(coll);
+		coll->p_Prepared    = 0;
+
+		coll->us_TotalWidth  = (uword) txtGetKeyAsULONG(3, NODE_NAME(n));
+		coll->us_TotalHeight = (uword) txtGetKeyAsULONG(4, NODE_NAME(n));
+
+		coll->uch_ColorRangeStart = (ubyte) txtGetKeyAsULONG(5, NODE_NAME(n));
+		coll->uch_ColorRangeEnd   = (ubyte) txtGetKeyAsULONG(6, NODE_NAME(n));
+
+		if (bProfidisk)  
+		{
+			if (bCDRom)
+			{
+				coll->fromDisk = (ubyte)txtGetKeyAsULONG(7, NODE_NAME(n)); //is nonessential,because all the data are read from the hard disk
+			}
+		}
+	}
+
+	RemoveList(tempList);
+}
+
+static void gfxInitPictList(void)
+{
+	char pathname[TXT_KEY_LENGTH];
+	LIST *tempList = (LIST*)CreateList(0);
+	NODE *n;
+	struct Picture *pict;
+
+	PictureList = (LIST*)CreateList(0);
+
+	dskBuildPathName(TEXT_DIRECTORY, PICT_LIST_TXT, pathname);
+	ReadList(tempList, 0, pathname, 0);
+
+	for (n = (NODE *) LIST_HEAD(tempList); NODE_SUCC(n); n = (NODE *) NODE_SUCC(n))
+	{
+		pict = (struct Picture*)CreateNode(PictureList, sizeof(struct Picture), NULL);
+
+		pict->us_PictId = (uword) txtGetKeyAsULONG(1, NODE_NAME(n));
+		pict->us_CollId = (uword) txtGetKeyAsULONG(2, NODE_NAME(n));
+
+		pict->us_XOffset = (uword) txtGetKeyAsULONG(3, NODE_NAME(n));
+		pict->us_YOffset = (uword) txtGetKeyAsULONG(4, NODE_NAME(n));
+
+		pict->us_Width  = (uword) txtGetKeyAsULONG(5, NODE_NAME(n));
+		pict->us_Height = (uword) txtGetKeyAsULONG(6, NODE_NAME(n));
+
+		pict->us_DestX = (uword) txtGetKeyAsULONG(7, NODE_NAME(n));
+		pict->us_DestY = (uword) txtGetKeyAsULONG(8, NODE_NAME(n));
+	}
+
+	RemoveList(tempList);
+}
+
+/********************************************************************
+ * Rastports...
+ */
+
+static void gfxInitXMSRastPort(struct XMSRastPort *rp, uword us_Width, uword us_Height)
+{
+	rp->us_Width  = us_Width;
+	rp->us_Height = us_Height;
+	rp->p_MemHandle = MemAlloc((ulong)rp->us_Width * (ulong)rp->us_Height);
+	rp->us_CollId = GFX_NO_COLL_IN_XMS;
+}
+
+static void gfxDoneXMSRastPort(struct XMSRastPort *rp)
+{
+	if (rp->p_MemHandle) {
+		MemFree(rp->p_MemHandle, (ulong)rp->us_Width * (ulong)rp->us_Height);
+		rp->p_MemHandle = NULL;
+	}
+}
+
+static void gfxInitRastPort(struct RastPort *rp, uword us_LeftEdge, uword us_TopEdge, uword us_Width, uword us_Height, ubyte uch_ColorStart, ubyte uch_ColorEnd, void *p_BitMap)
+{
+	rp->us_LeftEdge = us_LeftEdge;
+	rp->us_TopEdge  = us_TopEdge;
+	rp->us_Width    = us_Width;
+	rp->us_Height   = us_Height;
+	rp->us_DrawMode = GFX_JAM_1;
+	rp->uch_FrontPenAbs   = uch_ColorStart + 1;
+	rp->uch_BackPenAbs    = uch_ColorStart;
+	rp->uch_OutlinePenAbs = uch_ColorStart + 1;
+	rp->uch_ColorStart    = uch_ColorStart;
+	rp->uch_ColorEnd      = uch_ColorEnd;
+	rp->uch_VideoMode = GFX_VIDEO_MCGA;
+	gfxMoveCursor(rp, 0, 0);
+	rp->p_BitMap = p_BitMap;
+	rp->p_Font   = 0;
+}
+
+/*******************************************************************
+ * FONTS
+ * gfxOpenFont
+ * gfxCloseFont
+ */
+
+static struct Font *gfxOpenFont(char *puch_FileName, uword us_Width, uword us_Height, ubyte uch_FirstChar, ubyte uch_LastChar, uword us_TotalWidth, uword us_TotalHeight)
+{
+	char Result[TXT_KEY_LENGTH];
+	struct Font *font = (struct Font*)MemAlloc(sizeof(struct Font));
+	long size;
+
+	font->us_Width  = us_Width;
+	font->us_Height = us_Height;
+
+	font->uch_FirstChar = uch_FirstChar;
+	font->uch_LastChar  = uch_LastChar;
+
+	font->us_TotalWidth  = us_TotalWidth;
+	font->us_TotalHeight = us_TotalHeight;
+
+	size = (long) font->us_TotalWidth * font->us_TotalHeight; // MUST NOT ALWAYS AGREE !!!
+
+	font->p_BitMap = MemAlloc(size);
+
+	dskBuildPathName(PICTURE_DIRECTORY, puch_FileName, Result);
+	dskLoad(Result, GFX_LOAD_BUFFER, 0);
+
+	/* clear Buffer with 0! */
+	memset(font->p_BitMap, 0, size);
+
+	gfxILBMToRAW((ubyte*)GFX_LOAD_BUFFER, (ubyte*)font->p_BitMap);
+
+	return font;
+}
+
+static void gfxCloseFont(struct Font *font)
+{
+	if (font)
+	{
+		if (font->p_BitMap)
+		{
+			MemFree(font->p_BitMap, font->us_TotalWidth * font->us_TotalHeight);
+			font->p_BitMap = 0;
+		}
+
+		MemFree(font, sizeof(struct Font));
+		font = NULL;
+	}
+}
+
+/*******************************************************************
+ * gfxMoveCursor (amiga function: Move)
+ * gfxSetPens    (amiga defines:   SetAPen, SetBPen, SetOPen)
+ * gfxRectFill   (amiga function: RectFill)
+ * gfxTextLength (amiga function: TextLength)
+ * gfxSetDrMd    (amiga define:   SetDrMd)
+ * gfxDraw	     (amiga function: Draw)
+ * gfxReadPixel  (amiga function: ReadPixel)
+ */
+
+void gfxDraw(struct RastPort *rp, uword us_X, uword us_Y)
+{
+	/* LucyG 2017-10-29 : this never worked at all! */
+	/* Hell, it's a simple line drawing function :D */
+
+	int sx, sy, dx, dy, i;
+	ubyte col;
+	ubyte *bm;
+
+	if (!rp) {
+		Log("%s|%s: RastPort is NULL", __FILE__, __func__);
+		return;
+	}
+
+	if ((us_X >= 0) && (us_X < rp->us_Width) && (us_Y >= 0) && (us_Y < rp->us_Height)) {
+		col  = rp->uch_FrontPenAbs;
+
+		sx = min(us_X, rp->us_CursorXPosAbs);
+		sy = min(us_Y, rp->us_CursorYPosAbs);
+		dx = max(us_X, rp->us_CursorXPosAbs);
+		dy = max(us_Y, rp->us_CursorYPosAbs);
+
+		// the starting position
+		bm = &((ubyte *)rp->p_BitMap)[sy * rp->us_Width + sx];
+
+		if (sy == dy) {
+			// horizontal
+			for (i = sx; i <= dx; i++) {
+				*bm++ = col;
+			}
+		} else if (sx == dx) {
+			// vertical
+			for (i = sy; i <= dy; i++) {
+				*bm = col;
+				bm += rp->us_Width;
+			}
+		} else {
+			// diagonal (not used?)
+			Log("%s|%s: diagonal line not implemented *****", __FILE__, __func__);
+		}
+
+		rp->us_CursorXPosAbs = us_X;
+		rp->us_CursorYPosAbs = us_Y;
+	}
+
+	//gfxUpdateSDL(rp);
+	bGfxInvalidate = 1;
+}
+
+ubyte gfxReadPixel(struct RastPort *rp, uword us_X, uword us_Y)
+{
+	ubyte col;
+
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return(0);
+	}
+
+	if (rp->uch_VideoMode == GFX_VIDEO_MCGA)
+		col = gfxMCGAReadPixel(rp, us_X, us_Y);
+
+	if (rp->uch_VideoMode == GFX_VIDEO_NCH4)
+		col = gfxNCH4ReadPixel(rp, us_X, us_Y);
+
+	return col;
+}
+
+void gfxMoveCursor(struct RastPort *rp, uword us_X, uword us_Y)
+{
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return;
+	}
+	rp->us_CursorXPosAbs = us_X;
+	rp->us_CursorYPosAbs = us_Y;
+}
+
+void gfxSetPens(struct RastPort *rp, ubyte uch_Front, ubyte uch_Back, ubyte uch_Out)
+{
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return;
+	}
+	if (uch_Front != GFX_SAME_PEN)
+		rp->uch_FrontPenAbs   = uch_Front;
+
+	if (uch_Back != GFX_SAME_PEN)
+		rp->uch_BackPenAbs    = uch_Back;
+
+	if (uch_Out != GFX_SAME_PEN)
+		rp->uch_OutlinePenAbs = uch_Out;
+}
+
+// minimum size: 3 * 3 pixel !
+void gfxRectFill(struct RastPort *rp, uword us_SX, uword us_SY, uword us_EX, uword us_EY)
+{
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return;
+	}
+	if (rp->uch_VideoMode == GFX_VIDEO_MCGA) {
+		gfxMCGARectFill(rp, us_SX, us_SY, us_EX, us_EY);
+	}
+
+	if (rp->uch_VideoMode == GFX_VIDEO_NCH4) {
+		gfxNCH4RectFill(rp, us_SX, us_SY, us_EX, us_EY);
+	}
+
+	//gfxUpdateSDL(rp);
+	bGfxInvalidate = 1;
+}
+
+void gfxSetDrMd(struct RastPort *rp, uword us_DrawMode)
+{
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return;
+	}
+	rp->us_DrawMode = us_DrawMode;
+}
+
+void gfxSetFont(struct RastPort *rp, struct Font *font)
+{
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return;
+	}
+	rp->p_Font = font;
+}
+
+/* calculates the length of a text in pixels */
+long gfxTextLength(struct RastPort *rp, char *puch_Text, uword us_CharCount)
+{
+	long length;
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return(0);
+	}
+	length = (long) strlen(puch_Text);
+	return (length * (rp->p_Font->us_Width));
+}
+
+/*******************************************************************
+ * access & calc functions
+ */
+
+struct Collection *gfxGetCollection(uword us_CollId)
+{
+	return (struct Collection*)GetNthNode(CollectionList, (ulong) (us_CollId - 1));
+}
+
+struct Picture *gfxGetPicture(uword us_PictId)
+{
+	return (struct Picture*)GetNthNode(PictureList, (ulong) (us_PictId - 1));
+}
+
+// The Collection must be prepared one step before (with gfxPrepareColl)
+void gfxGetColorTable(uword us_CollId, ubyte *puch_ColorTable)
+{
+	long i;
+	ubyte *p = (ubyte *) ((ulong) GFX_DECR_BUFFER + (ulong) GFX_CMAP_OFFSET);
+
+	for (i = 0; i < GFX_COLORTABLE_SIZE; i++)
+		puch_ColorTable[i] = p[i];
+}
+
+static long gfxGetRealDestY(struct RastPort *rp, long destY)
+{
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return(0);
+	}
+	if (rp->uch_VideoMode == GFX_VIDEO_NCH4)
+	{
+		// dieser RastPort vereingt im NCH4-mode sowohl den Upper als auch
+		// den "normalen" Menurp
+		// beim MenuRp muss die TopEdge abgezogen werden, beim UpperRp darf
+		// dies nicht geschehen
+
+		if (destY >= m_wrp->us_TopEdge)
+			destY -= m_wrp->us_TopEdge;
+	}
+
+	if (rp->uch_VideoMode == GFX_VIDEO_MCGA)
+		destY -= rp->us_TopEdge;
+
+	return destY;
+}
+
+/*******************************************************************
+ * collections...
+ */
+
+/* nach dieser Funktion befindet sich im PrepareRP die entpackte Collection */
+struct RastPort *gfxPrepareColl(uword us_CollId)
+{
+	struct Collection *coll = gfxGetCollection(us_CollId);
+	if (!coll) {
+		Log("gfxPrepareColl: coll %d is NULL", us_CollId);
+	} else {
+		if (!coll->p_Prepared)
+		{
+			char Result[TXT_KEY_LENGTH];
+			void *cmap = (void *) ((ulong) GFX_DECR_BUFFER + (ulong) GFX_CMAP_OFFSET);
+
+			/* Dateiname erstellen */
+			dskBuildPathName(PICTURE_DIRECTORY, (char*)coll->puch_Filename, Result);
+
+			/* load collection */
+			dskLoad(Result, GFX_LOAD_BUFFER, DSK_DUMMY_DISK_ID);
+
+			tcClearStdBuffer(GFX_DECR_BUFFER);
+			/* Collection entpacken */
+			/* der Decr Buffer entspricht dem PrepareRP */
+			gfxILBMToRAW((ubyte*)GFX_LOAD_BUFFER, (ubyte*)GFX_DECR_BUFFER);
+
+			gfxGetCMAP((ubyte*)GFX_LOAD_BUFFER, (ubyte*)cmap);
+
+			/* coll->p_Prepared wird nicht mit dem PrepareRP initialisert, da */
+			/* es sonst zu Inkonsistenzen kommen koennte. Collections im PrepareRP */
+			/* werden als nicht vorbereitet betrachtet, da der PrepareRP staendig */
+			/* durch andere Bilder �berschrieben wird */
+			coll->p_Prepared = 0;
+		}
+		else
+		{
+			/* vom aktuellen RP(muss XMS sein) in den PrepareRP kopieren */
+			/* coll->p_Prepared darf nicht initialisert werden! */
+			/* siehe oben! */
+			memcpy(PrepareRP.p_BitMap, coll->p_Prepared->p_MemHandle, coll->p_Prepared->us_Width * coll->p_Prepared->us_Height);
+		}
+	}
+	return &PrepareRP;
+}
+
+void gfxUnPrepareColl(uword us_CollId)
+{
+	// dummy function
+}
+
+void gfxCopyCollFromXMS(uword us_CollId, void *p_Buffer)
+{
+	struct Collection *coll = gfxGetCollection(us_CollId);
+	if (!coll) {
+		Log("gfxCopyCollFromXMS: coll %d is NULL", us_CollId);
+	} else {
+		if (coll->p_Prepared) {
+			memcpy(p_Buffer, coll->p_Prepared->p_MemHandle, coll->p_Prepared->us_Width * coll->p_Prepared->us_Height);
+		}
+	}
+}
+
+void gfxCopyCollToXMS(uword us_CollId, struct XMSRastPort *rp)
+{
+	long size;
+	struct Collection *oldColl;
+	struct Collection *coll = gfxGetCollection(us_CollId);
+	if (!coll) {
+		Log("gfxCopyCollToXMS: coll %d is NULL", us_CollId);
+	}
+
+	size = rp->us_Width * rp->us_Height;
+
+	// wenn sich in diesem XMS RastPort ein anderes Bild befindet so wird dieses
+	// nun aus dem XMS RastPort "entfernt"
+	if ((rp->us_CollId != GFX_NO_COLL_IN_XMS) && (us_CollId != rp->us_CollId))
+	{
+		oldColl = gfxGetCollection(rp->us_CollId);
+		if (!oldColl) {
+			Log("gfxCopyCollToXMS: oldColl %d is NULL", rp->us_CollId);
+		} else {
+			oldColl->p_Prepared = 0;
+		}
+	}
+
+	gfxPrepareColl(us_CollId);
+
+	memcpy(rp->p_MemHandle, GFX_DECR_BUFFER, size);
+
+	// in der neuen Collection wird der XMS RastPort eingetragen
+	if (coll) {
+		coll->p_Prepared = rp;
+	}
+
+	rp->us_CollId = us_CollId;
+}
+
+/*******************************************************************
+ * print functions
+ */
+
+void gfxSetRect(uword us_X, uword us_Width)
+{
+	GlobalPrintRect.us_X     = us_X;
+	GlobalPrintRect.us_Width = us_Width;
+}
+
+void gfxPrintExact(struct RastPort *rp, char *puch_Text, uword us_X, uword us_Y)
+{
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return;
+	}
+	if (rp->uch_VideoMode == GFX_VIDEO_MCGA)
+		gfxMCGAPrintExact(rp, puch_Text, us_X, us_Y);
+
+	if (rp->uch_VideoMode == GFX_VIDEO_NCH4)
+		gfxNCH4PrintExact(rp, puch_Text, us_X, us_Y);
+
+	//gfxUpdateSDL(rp);
+	bGfxInvalidate = 1;
+}
+
+void gfxPrint(struct RastPort *rp, char *puch_Text, uword us_Y, ulong ul_Mode)
+{
+	uword x, y, l;
+
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return;
+	}
+	x = GlobalPrintRect.us_X;
+	y = us_Y;
+	l = gfxTextLength(rp, puch_Text, strlen(puch_Text));
+
+	if (ul_Mode & GFX_PRINT_RIGHT)
+		x += GlobalPrintRect.us_Width - l;
+
+	if (ul_Mode & GFX_PRINT_CENTER)
+	{
+		if (l <= GlobalPrintRect.us_Width)
+			x += (GlobalPrintRect.us_Width - l) / 2;
+	}
+
+	if (ul_Mode & GFX_PRINT_SHADOW)
+	{
+		if (!Config.gfxNoFontShadow) {
+			ubyte APen = rp->uch_FrontPenAbs;
+			rp->uch_FrontPenAbs = rp->uch_BackPenAbs;
+			gfxPrintExact(rp, puch_Text, x + 1, y + 1);
+			rp->uch_FrontPenAbs = APen;
+		}
+	}
+
+	gfxPrintExact(rp, puch_Text, x, y);
+}
+
+/*******************************************************************
+ * refresh...
+ */
+
+/* kopiert aktuelles Bild in den RefreshRPInXMS */
+void gfxPrepareRefresh(void)
+{
+	ubyte *mem = (ubyte*)RefreshRPInXMS.p_MemHandle;
+	if (!mem) {
+		Log("%s: p_MemHandle is NULL", __func__);
+		return;
+	}
+
+	switch (GfxBase.uch_VideoMode)
+	{
+		case GFX_VIDEO_MCGA:
+			memcpy(mem, GfxBoardBase, 320*200);
+		break;
+		case GFX_VIDEO_NCH4:
+			gfxNCH4PutNCH4ToMCGA(GfxBoardBase + gfxNCH4GetCurrScrollOffset(), mem, 0, 0, 0, 0, 320, 128, 160, 320);
+			gfxNCH4PutNCH4ToMCGA(GfxBoardBase, mem+(320*128), 0, 0, 0, 0, 320, 72, 160, 320);
+		break;
+	}
+}
+
+/* kopiert aktuellen Inhalt des RefreshRPInXMS in den Bildschirmspeicher */
+void gfxRefresh(void)
+{
+	ubyte *mem = (ubyte*)RefreshRPInXMS.p_MemHandle;
+	if (!mem) {
+		Log("%s: p_MemHandle is NULL", __func__);
+		return;
+	}
+
+	switch (GfxBase.uch_VideoMode)
+	{
+		case GFX_VIDEO_NCH4:
+			gfxNCH4PutMCGAToNCH4(mem, GfxBoardBase + gfxNCH4GetCurrScrollOffset(), 0, 0, 0, 0, 320, 128, 320, 160);
+			gfxNCH4PutMCGAToNCH4(mem+(320*128), GfxBoardBase, 0, 0, 0, 0, 320, 72, 320, 160);
+		break;
+		case GFX_VIDEO_MCGA:
+		default:
+			memcpy(GfxBoardBase, mem, 320*200);
+		break;
+	}
+
+	gfxUpdateSDL(NULL);
+}
+
+/*******************************************************************
+ * presentation
+ */
+
+void gfxBlit(struct RastPort *srp, uword us_SourceX, uword us_SourceY,
+				 struct RastPort *drp, uword us_DestX, uword us_DestY,
+				 uword us_Width, uword us_Height, ulong ul_BlitMode)
+{
+	if (!srp) {
+		Log("%s: RastPort is NULL", __func__);
+		return;
+	}
+	if (!drp) {
+		Log("%s: RastPort is NULL", __func__);
+		return;
+	}
+
+	//gfxWaitTOF();
+
+	if ((srp->uch_VideoMode == GFX_VIDEO_MCGA) && (drp->uch_VideoMode == GFX_VIDEO_MCGA))
+	{
+		gfxMCGABlit(srp, us_SourceX, us_SourceY, drp, us_DestX, us_DestY,
+				us_Width, us_Height, ul_BlitMode & (GFX_ONE_STEP|GFX_OVERLAY));
+	}
+
+	if ((srp->uch_VideoMode == GFX_VIDEO_MCGA) && (drp->uch_VideoMode == GFX_VIDEO_NCH4))
+	{
+		if (ul_BlitMode & GFX_ONE_STEP)
+			gfxNCH4PutMCGAToNCH4(srp->p_BitMap, drp->p_BitMap, us_SourceX, us_SourceY,
+				us_DestX, us_DestY,us_Width, us_Height, 320, 160);
+
+		if (ul_BlitMode & GFX_OVERLAY)
+			gfxNCH4OLMCGAToNCH4(srp->p_BitMap, drp->p_BitMap, us_SourceX, us_SourceY,
+				us_DestX, us_DestY,us_Width, us_Height, 320, 160);
+	}
+
+	//gfxUpdateSDL(rp);
+	bGfxInvalidate = 1;
+}
+
+struct RastPort *gfxGetDestRP(long l_DestX, long l_DestY)
+{
+	struct RastPort *rp = NULL;
+
+	if (GfxBase.uch_VideoMode == GFX_VIDEO_MCGA)
+	{
+		rp = u_wrp;
+
+		if (l_DestY >= rp->us_TopEdge + rp->us_Height)
+		{
+			rp = l_wrp;
+
+			if (l_DestY >= rp->us_TopEdge + rp->us_Height)
+				rp = m_wrp;
+		}
+	}
+
+
+	if (GfxBase.uch_VideoMode == GFX_VIDEO_NCH4)
+	{
+		rp = l_wrp;
+
+		//if ((l_DestY < 60) || (l_DestY >= 140))
+		//	rp = m_wrp;
+
+		if (l_DestY < 60)
+			rp = u_wrp;
+
+		if (l_DestY >= 140)
+			rp = m_wrp;
+	}
+
+	return rp;
+}
+
+void wfr()
+// fue�r Bildschirmsync verwenden!!!
+{
+	if (bGfxInvalidate || bGfxPaletteChanged) {
+		gfxUpdateSDL(NULL);
+	} else {
+		SDL_Delay(1);
+	}
+}
+
+void wfd(void)
+// sperrt im Gegensatz zu wfr die Interrupts nicht
+// wenn die Musik laeuft kann es daher vorkommen, dass
+// dieses wfd einmal aussetzt
+// !!! NICHT fue�r Bildschirmsync verwenden!!
+{
+	wfr();
+}
+
+void gfxClearArea(struct RastPort *rp)
+{
+	ubyte uch_APen, uch_BPen, uch_OPen;
+
+	if (!rp) {
+		Log("%s: RastPort is NULL", __func__);
+		return;
+	}
+
+	uch_APen = rp->uch_FrontPenAbs;
+	uch_BPen = rp->uch_BackPenAbs;
+	uch_OPen = rp->uch_OutlinePenAbs;
+
+	gfxSetPens(rp, 0, 0, 0);
+	gfxRectFill(rp, 0, 0, rp->us_Width - 1, rp->us_Height - 1);
+	gfxSetPens(rp, uch_APen, uch_BPen, uch_OPen);
+}
+
+void gfxSetRGB(struct RastPort *rp, ubyte uch_ColNr, ubyte uch_Red, ubyte uch_Green, ubyte uch_Blue)
+{
+	long n4 = (long)uch_ColNr << 2;
+	gfxPaletteGlobal[n4  ] = uch_Red;
+	gfxPaletteGlobal[n4+1] = uch_Green;
+	gfxPaletteGlobal[n4+2] = uch_Blue;
+	gfxPaletteGlobal[n4+3] = 0;
+	bGfxPaletteChanged = 1;
+	bGfxInvalidate = 1;
+}
+
+void gfxSetPalette24(struct RastPort *rp, ubyte uch_ColStart, ubyte uch_ColEnd, ubyte *p_ColorTable24)
+{
+	int i, i3, i4;
+	for (i = uch_ColStart; i < uch_ColEnd; i++) {
+		i3 = i * 3;
+		i4 = i << 2;
+
+		gfxPaletteGlobal[i4  ] = p_ColorTable24[i3  ];
+		gfxPaletteGlobal[i4+1] = p_ColorTable24[i3+1];
+		gfxPaletteGlobal[i4+2] = p_ColorTable24[i3+2];
+		gfxPaletteGlobal[i4+3] = 0;
+	}
+	bGfxPaletteChanged = 1;
+	bGfxInvalidate = 1;
+}
+
+void gfxSetPalette32(struct RastPort *rp, ubyte uch_ColStart, ubyte uch_ColEnd, ubyte *p_ColorTable32)
+{
+	int i, i4;
+	for (i = uch_ColStart; i < uch_ColEnd; i++) {
+		i4 = i << 2;
+
+		gfxPaletteGlobal[i4  ] = p_ColorTable32[i4  ];
+		gfxPaletteGlobal[i4+1] = p_ColorTable32[i4+1];
+		gfxPaletteGlobal[i4+2] = p_ColorTable32[i4+2];
+		gfxPaletteGlobal[i4+3] = 0;
+	}
+	bGfxPaletteChanged = 1;
+	bGfxInvalidate = 1;
+}
+
+void gfxSetColorRange(ubyte uch_ColorStart, ubyte uch_ColorEnd)
+{
+	GlobalColorRange.uch_Start = uch_ColorStart;
+	GlobalColorRange.uch_End   = uch_ColorEnd;
+}
+
+void gfxGetColorTableFromReg(ubyte *puch_Colortable)
+{
+	int i, i3, i4;
+	for (i = 0; i < 256; i++) {
+		i3 = i * 3;
+		i4 = i << 2;
+		puch_Colortable[i3  ] = gfxPaletteGlobal[i4  ];
+		puch_Colortable[i3+1] = gfxPaletteGlobal[i4+1];
+		puch_Colortable[i3+2] = gfxPaletteGlobal[i4+2];
+	}
+}
+
+#define interpol(i,f,d)	(ubyte)((float)(i) + ((float)(f) - (float)(i)) * (float)(d))
+
+void gfxChangeColors(struct RastPort *rp, long l_Delay, ulong ul_Mode, ubyte *colorTable)
+{
+	ubyte cols[768];
+	ubyte cols2[768];
+	uword st,en,st3,en3;
+	uword i;
+	float e,f;
+
+	if (rp)
+	{
+		st = rp->uch_ColorStart;
+		en = rp->uch_ColorEnd;
+	}
+	else
+	{
+		st = GlobalColorRange.uch_Start;
+		en = GlobalColorRange.uch_End;
+	}
+
+	st3 = st * 3;
+	en3 = en * 3;
+
+	l_Delay = max(l_Delay, 1);	// l_Delay may not be zero!
+
+	inpSetWaitTicks(l_Delay);
+
+	f = 0.0f;
+	e = 1.0f / (float)(l_Delay+1);
+
+	switch (ul_Mode)
+	{
+		case GFX_FADE_OUT:		// fade to 0,64,48
+			gfxGetColorTableFromReg(cols);
+			do
+			{
+				for (i = st3; i <= en3; i += 3)
+				{
+					cols2[i  ] = interpol(cols[i  ],  0, f);
+					cols2[i+1] = interpol(cols[i+1], 64, f);
+					cols2[i+2] = interpol(cols[i+2], 48, f);
+				}
+				f += e;
+				gfxSetPalette24(rp, st, en, cols2);
+				inpWaitFor(INP_TIME);
+			} while (--l_Delay);
+			for (i = st3; i <= en3; i += 3)
+			{
+				cols2[i  ] = 0;
+				cols2[i+1] = 64;
+				cols2[i+2] = 48;
+			}
+			gfxSetPalette24(rp, st, en, cols2);
+			inpWaitFor(INP_TIME);
+		break;
+		case GFX_BLEND_UP:		// fade to colorTable
+			do
+			{
+				for (i = st3; i <= en3; i += 3)
+				{
+					cols[i  ] = interpol( 0, ((ubyte*)colorTable)[i  ], f);
+					cols[i+1] = interpol(64, ((ubyte*)colorTable)[i+1], f);
+					cols[i+2] = interpol(48, ((ubyte*)colorTable)[i+2], f);
+				}
+				f += e;
+				gfxSetPalette24(rp, st, en, cols);
+				inpWaitFor(INP_TIME);
+			} while (--l_Delay);
+			gfxSetPalette24(rp, st, en, (ubyte*)colorTable);
+			inpWaitFor(INP_TIME);
+		break;
+	}
+}
+
+void gfxShow(uword us_PictId, ulong ul_Mode, long l_Delay, long l_XPos, long l_YPos)
+{
+	struct Picture    *pict;
+	struct Collection *coll;
+	struct RastPort   *destRP;
+	ubyte   *colorTable;
+	long   destX;
+	long   destY;
+
+	pict = gfxGetPicture(us_PictId);
+	if (!pict) {
+		Log("gfxShow: Picture %d is NULL", us_PictId);
+		return;
+	}
+	coll = gfxGetCollection(pict->us_CollId);
+	if (!coll) {
+		Log("gfxShow: Picture %d Collection %d is NULL", us_PictId, pict->us_CollId);
+	}
+	colorTable = (ubyte *) PrepareRP.p_BitMap + GFX_CMAP_OFFSET;
+	if (!colorTable) {
+		Log("gfxShow: colorTable is NULL");
+	}
+	destX = pict->us_DestX;
+	destY = pict->us_DestY;
+
+	if (l_XPos != -1)
+		destX = l_XPos;
+
+	if (l_YPos != -1)
+		destY = l_YPos;
+
+	if (GfxBase.p_DestRPForShow)
+		destRP = GfxBase.p_DestRPForShow;
+	else
+		destRP = gfxGetDestRP(destX, destY);
+
+	destY = gfxGetRealDestY(destRP, destY);
+
+	gfxPrepareColl(pict->us_CollId);
+
+	if (!(ul_Mode & GFX_NO_REFRESH))
+		gfxPrepareRefresh();
+
+	if (ul_Mode & GFX_CLEAR_FIRST)
+		gfxClearArea(destRP);
+
+	if (ul_Mode & GFX_FADE_OUT)
+	{
+		if (coll) {
+			gfxSetColorRange(coll->uch_ColorRangeStart, coll->uch_ColorRangeEnd);
+			gfxChangeColors(NULL, l_Delay, GFX_FADE_OUT, 0);
+		}
+	}
+
+	if (!l_Delay)
+	{
+		if (ul_Mode & GFX_BLEND_UP)
+		{
+			if (coll && colorTable) {
+				gfxSetColorRange(coll->uch_ColorRangeStart, coll->uch_ColorRangeEnd);
+				gfxChangeColors(NULL , l_Delay, GFX_BLEND_UP, colorTable);
+			}
+		}
+	}
+
+	if (ul_Mode & GFX_OVERLAY)
+		gfxBlit(&PrepareRP, pict->us_XOffset, pict->us_YOffset, destRP,
+				  destX, destY, pict->us_Width, pict->us_Height, ul_Mode);
+
+	if (ul_Mode & GFX_ONE_STEP)
+		gfxBlit(&PrepareRP, pict->us_XOffset, pict->us_YOffset, destRP,
+				  destX, destY, pict->us_Width, pict->us_Height, ul_Mode);
+
+	if (l_Delay)
+	{
+		if (ul_Mode & GFX_BLEND_UP)
+		{
+			if (coll && colorTable) {
+				gfxSetColorRange(coll->uch_ColorRangeStart, coll->uch_ColorRangeEnd);
+				gfxChangeColors(NULL , l_Delay, GFX_BLEND_UP, colorTable);
+			}
+		}
+	}
+
+	gfxSetDestRPForShow(NULL);
+}
+
+/*******************************************************************
+ * misc
+ */
+
+
+long gfxGetILBMSize(struct Collection *coll)
+{
+	uword w = coll->us_TotalWidth;
+	uword h = coll->us_TotalHeight;
+	long size;
+
+	w = ((w + 15) / 16) * 16;	// aufs Word aufrunden
+
+	size = w * h;
+
+	return size;
+}
+
+static void gfxGetCMAP(ubyte *p_Data, ubyte *p_Dest)
+{
+	long i;
+
+	// CMAP Chunk suchen
+	while ((p_Data[0] != 'C') || (p_Data[1] != 'M') || (p_Data[2] != 'A') || (p_Data[3] != 'P')) p_Data++;
+
+	p_Data += 4;	// CMAP Chunk ueberspringen
+	p_Data += 4;	// Size of CMAP Chunk ueberspringen
+
+	for (i = 0; i < GFX_COLORTABLE_SIZE; i++)
+	{
+		p_Dest[i] = p_Data[i];
+	}
+}
+
+static void MakeMCGA(uword b, ubyte *pic, uword PlSt, short c)
+{
+	if ((b & 0x80) && (c > 0)) pic[0] |= PlSt;
+	if ((b & 0x40) && (c > 1)) pic[1] |= PlSt;
+	if ((b & 0x20) && (c > 2)) pic[2] |= PlSt;
+	if ((b & 0x10) && (c > 3)) pic[3] |= PlSt;
+	if ((b & 0x08) && (c > 4)) pic[4] |= PlSt;
+	if ((b & 0x04) && (c > 5)) pic[5] |= PlSt;
+	if ((b & 0x02) && (c > 6)) pic[6] |= PlSt;
+	if ((b & 0x01) && (c > 7)) pic[7] |= PlSt;
+}
+
+void gfxILBMToRAW(ubyte *p_Source, ubyte *p_Dest)
+{
+	uword IFFplanes = 0, IFFwidth = 0, IFFheight = 0;
+	ubyte *fp, *pic, *pic1;
+	int	s, t, b, x;
+	uword a, y;
+	uword flag;
+
+	pic = p_Dest;
+	fp = p_Source;
+
+	fp += 8;
+
+	if ((fp[0] != 'I') || (fp[1] != 'L') || (fp[2] != 'B') || (fp[3] != 'M')) return;
+
+	fp += 12;
+
+	IFFwidth  = (uword)fp[1] + ((uword)fp[0] << 8);
+	IFFheight = ((uword)fp[2] << 8) + (uword)fp[3];
+	IFFplanes = (uword)fp[8];
+	flag = (uword)fp[10];
+
+	if (((long)IFFwidth * (long)IFFheight) > GFX_DECR_BUFFER_SIZE) IFFheight = 192;
+
+	while ((fp[0] != 'B') || (fp[1] != 'O') || (fp[2] != 'D') || (fp[3] != 'Y')) fp++;
+
+	fp += 8;
+
+	if (flag)
+	{
+		pic1 = pic;
+		for (t = 1; t <= IFFheight; t++)
+		{
+			for (s = 1; s <= IFFplanes; s++)
+			{
+				pic = pic1;			/* Anfang der aktuellen Zeile */
+				b = ((IFFwidth + 15) & 0xfff0);
+				do
+				{
+					a = *fp;		/* Kommando (wiederholen oder uebernehmen */
+					fp++;			/* naechstes Zeichen */
+					if (a > 128)	/* Zeichen wiederholen */
+					{
+						a = 257 - a;
+						y = *fp;
+						fp++;
+						for (x = 1; x <= a; x++)
+						{
+							MakeMCGA(y, pic, (1 << (s - 1)), b);
+							pic += 8;
+							b -= 8;
+						}
+					}
+					else			/* Zeichen uebernehmen */
+					{
+						for (x = 0; x <= a; x++)
+						{
+							y = *fp;
+							fp++;
+							MakeMCGA(y, pic, (1 << (s - 1)), b);
+							pic += 8;
+							b -= 8;
+						}
+					}
+				}
+				while (b > 0);
+			}
+			pic1 += 320;
+		}
+	}
+	else
+	{
+		pic1 = pic;
+		for (t = 1; t <= IFFheight; t++)
+		{
+			for (s = 1; s <= IFFplanes; s++)
+			{
+				pic = pic1;			/* Anfang der aktuellen Zeile */
+				b = ((IFFwidth + 15) >> 4) << 4;
+				do
+				{
+					y = *fp;
+					fp++;
+					MakeMCGA(y, pic, (1 << (s - 1)),b);
+					pic += 8;
+					b -= 8;
+				}
+				while (b > 0);
+			}
+			pic1 += 320;
+		}
+	}
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfx.h b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfx.h
new file mode 100644
index 0000000..df411d0
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfx.h
@@ -0,0 +1,264 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_GFX
+#define MODULE_GFX
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+extern int gfxScalingOffsetX;
+extern int gfxScalingOffsetY;
+extern int gfxScalingFactor;
+
+extern void gfxScreenshot(void);
+extern ubyte *gfxGetGfxBoardBase(void);
+extern void gfxInvalidate(void);
+extern void gfxSetDarkness(ubyte value);
+
+#define GFX_NO_MEM_HANDLE	((uword) -1)
+
+/* defines f�r gfxPrint */
+#define GFX_PRINT_CENTER		1<<0
+#define GFX_PRINT_RIGHT       1<<1
+#define GFX_PRINT_LEFT        1<<2
+
+#define GFX_PRINT_SHADOW		1<<3
+
+/* defines f�r SetDrMd */
+#define GFX_JAM_1				0	/* Hintergrund wird gleichbelassen */
+#define GFX_JAM_2				1	/* Hintergrund wird mit BackPen �bermalt */
+
+/* defines f�r Show */
+#define GFX_NO_REFRESH				   1
+#define GFX_BLEND_UP					   2
+#define GFX_FADE_OUT					   4
+#define GFX_CLEAR_FIRST			    	8
+#define GFX_OVERLAY       		     16
+#define GFX_ONE_STEP		  		     32	/* "plain" blit */
+#define GFX_DONT_SHOW_FIRST_PIC    64
+
+/* defines f�r gfxSetPens */
+#define GFX_SAME_PEN						((ubyte)255)
+
+#define GFX_NO_COLL_IN_XMS				((uword) -1)
+
+#define GFX_COLORTABLE_SIZE			768	/* 256 Farben * 3 Bytes */
+#define GFX_SIZE_OF_COLLECTION(c) 	(gfxGetILBMSize(c) + GFX_COLORTABLE_SIZE)
+
+#define GFX_VIDEO_MCGA					1
+#define GFX_VIDEO_NCH4					2
+#define GFX_VIDEO_TEXT					3
+
+struct XMSRastPort
+{
+	uword us_Width;
+	uword	us_Height;
+	void* p_MemHandle;
+	uword	us_CollId;	/* Collection, die sich gerade hier befindet! */
+};
+
+struct RastPort	/* change rp definitions in gfx.ph */
+{
+	uword	us_LeftEdge;
+	uword	us_TopEdge;
+	uword	us_Width;
+	uword	us_Height;
+	uword us_DrawMode;
+	ubyte	uch_VideoMode;
+	ubyte uch_FrontPenAbs;	 /* entspricht dem Farbregister */
+	ubyte uch_BackPenAbs;	 /* ebenfalls absolut und nicht relativ zum */
+	ubyte uch_OutlinePenAbs; /* Registerstart */
+	uword	us_CursorXPosAbs;
+	uword us_CursorYPosAbs;
+	ubyte	uch_ColorStart;
+	ubyte	uch_ColorEnd;
+	void	      *p_BitMap;
+	struct Font *p_Font;
+};
+
+struct Collection
+{
+	NODE Link;
+
+	uword	us_CollId;
+	ubyte uch_ColorRangeStart;
+	ubyte uch_ColorRangeEnd;
+
+	ubyte	*puch_Filename;
+
+	struct XMSRastPort *p_Prepared;	/* falls Collection im Speicher -> != 0*/
+
+	void	*p_ColorTable;		// stimmt nur eingeschr�nkt!!!! (nur solange der Buffer
+									// durch nichts anderes ver�ndert wurde!
+
+	uword	us_TotalWidth;
+	uword	us_TotalHeight;
+
+	ubyte fromDisk;
+};
+
+struct Picture
+{
+	NODE  Link;
+
+	uword us_PictId;
+	uword us_CollId;	/* in welcher Collection sich dieses Bild befindet */
+
+	uword us_XOffset;	/* innerhalb der Collection */
+	uword us_YOffset;
+
+	uword us_Width;
+	uword us_Height;
+
+	uword us_DestX;
+	uword us_DestY;
+};
+
+struct Font
+{
+	void *p_BitMap;
+
+	uword us_Width;      	/* of one character */
+	uword us_Height;			/* of one character */
+
+	uword us_TotalWidth;
+	uword us_TotalHeight;
+
+	ubyte uch_FirstChar;
+	ubyte uch_LastChar;
+};
+
+extern ubyte gfxPaletteGlobal[256*4];
+
+extern struct RastPort *l_wrp;
+extern struct RastPort *u_wrp;
+extern struct RastPort *m_wrp;
+
+extern struct RastPort PrepareRP;
+extern struct RastPort RefreshRP;
+
+extern struct XMSRastPort StdRP0InXMS;
+extern struct XMSRastPort StdRP1InXMS;
+extern struct XMSRastPort AnimRPInXMS;
+extern struct XMSRastPort RefreshRPInXMS;
+extern struct XMSRastPort AddRPInXMS;
+extern struct XMSRastPort LSFloorRPInXMS;
+extern struct XMSRastPort LSObjectRPInXMS;
+
+extern struct Font *bubbleFont;
+extern struct Font *menuFont;
+
+extern void gfxUpdateSDL(struct RastPort *rp);
+extern const char *gfxPointerName(void *ptr);
+
+extern void gfxInit(void);
+extern void gfxDone(void);
+
+extern void gfxSetVideoMode(ubyte uch_NewMode);
+
+extern void wfd(void);
+extern void wfr(void);
+
+extern long gfxGetILBMSize(struct Collection *coll);
+
+extern void gfxCorrectUpperRPBitmap(void);
+
+extern void gfxSetRGB(struct RastPort *rp, ubyte uch_ColNr,ubyte uch_Red,ubyte uch_Green,ubyte uch_Blue);
+extern void gfxSetPalette24(struct RastPort *rp, ubyte uch_ColStart, ubyte uch_ColEnd, ubyte *p_ColorTable24);
+extern void gfxSetPalette32(struct RastPort *rp, ubyte uch_ColStart, ubyte uch_ColEnd, ubyte *p_ColorTable32);
+
+extern void gfxBlit(struct RastPort *srp, uword us_SourceX, uword us_SourceY,
+				 struct RastPort *drp, uword us_DestX, uword us_DestY,
+				 uword us_Width, uword us_Height, ulong ul_BlitMode);
+
+extern void gfxMoveCursor(struct RastPort *rp, uword us_X, uword us_Y);
+extern void gfxSetPens(struct RastPort *rp, ubyte uch_Front, ubyte uch_Back, ubyte uch_Out);
+extern void gfxRectFill(struct RastPort *rp, uword us_SX, uword us_SY, uword us_EX, uword us_EY);
+extern void gfxDraw(struct RastPort *rp, uword us_X, uword us_Y);
+extern void gfxSetDrMd(struct RastPort *rp, uword us_DrawMode);
+extern void gfxSetFont(struct RastPort *rp, struct Font *font);
+
+extern void gfxPrepareRefresh(void);
+extern void gfxRefresh(void);
+
+extern void gfxClearArea(struct RastPort *rp);
+extern void gfxSetRect(uword us_X, uword us_Width);
+
+extern long gfxTextLength(struct RastPort *rp, char *puch_Text, uword us_CharCount);
+extern ubyte gfxReadPixel(struct RastPort *rp, uword us_X, uword us_Y);
+
+extern void gfxPrint(struct RastPort *rp, char *puch_Text, uword us_Y, ulong ul_Mode);
+extern void gfxPrintExact(struct RastPort *rp, char *puch_Text, uword us_X, uword us_Y);
+
+extern void gfxSetColorRange(ubyte uch_ColorStart, ubyte uch_ColorEnd);
+
+extern void gfxChangeColors(struct RastPort *rp, long l_Delay, ulong ul_Mode, ubyte *colorTable);
+extern void gfxShow(uword us_PictId, ulong ul_Mode, long l_Delay, long l_XPos, long l_YPos);
+
+extern void gfxSetDestRPForShow(struct RastPort *rp);
+
+extern void gfxCopyCollToXMS(uword us_CollId, struct XMSRastPort *rp);
+extern void gfxCopyCollFromXMS(uword us_CollId, void *p_Buffer);
+
+extern void gfxGetColorTableFromReg(ubyte *puch_Colortable);
+extern void gfxGetColorTable(uword us_CollId, ubyte *puch_ColorTable);
+
+extern struct RastPort *gfxPrepareColl(uword us_CollId);
+extern void gfxUnPrepareColl(uword us_CollId);
+
+extern struct Collection *gfxGetCollection(uword us_CollId);
+extern struct Picture *gfxGetPicture(uword us_PictId);
+
+extern void gfxILBMToRAW(ubyte *p_Source, ubyte *p_Dest);
+
+/* gfxmcga.h */
+#ifndef MODULE_GFXMCGA
+#define MODULE_GFXMCGA
+
+#ifndef MODULE_INPHDL
+#include "inphdl\inphdl.h"
+#endif
+
+extern void gfxMCGAPrintExact(struct RastPort *rp, char *puch_Text, uword us_X, uword us_Y);
+extern void gfxMCGARectFill(struct RastPort *rp, uword us_SX, uword us_SY, uword us_EX, uword us_EY);
+extern ubyte gfxMCGAReadPixel(struct RastPort *rp, uword us_X, uword us_Y);
+
+extern void gfxMCGABlit(struct RastPort *srp, uword us_SourceX, uword us_SourceY,
+				 struct RastPort *drp, uword us_DestX, uword us_DestY,
+				 uword us_Width, uword us_Height, ulong ul_BlitMode);
+#endif
+
+/* gfxnch4.h */
+#ifndef MODULE_GFXNCH4
+#define MODULE_GFXNCH4
+
+#define GFX_NCH4_SCROLLOFFSET 	(640 * 72)  // Speicher , den die fixe Anzeige belegt
+
+extern ulong gfxNCH4GetCurrScrollOffset(void);
+
+extern void  gfxNCH4SetViewPort(uword x, uword y);
+extern void  gfxNCH4Scroll(int x,int y);
+extern void  gfxNCH4SetSplit(uword line);
+extern void  gfxNCH4Init(void);
+extern void  gfxNCH4RectFill(struct RastPort *rp, uword x1, uword y1, uword x2, uword y2);
+extern void  gfxNCH4PrintExact(struct RastPort *rp, char *puch_Text, uword us_X, uword us_Y);
+extern ubyte gfxNCH4ReadPixel(struct RastPort *rp, uword x, uword y);
+
+extern void gfxNCH4OLMCGAToNCH4Mask(void *sp, void *dp, uword x1, uword y1, uword x2, uword y2, uword w, uword h, uword sw, uword dw);
+extern void gfxNCH4PutMCGAToNCH4Mask(void *sp, void *dp, uword x1, uword y1, uword x2, uword y2, uword w, uword h, uword sw, uword dw);
+extern void gfxNCH4PutMCGAToNCH4(void *sp, void *dp, uword x1, uword y1, uword x2, uword y2, uword w, uword h, uword sw, uword dw);
+extern void gfxNCH4OLMCGAToNCH4(void *sp, void *dp, uword x1, uword y1, uword x2, uword y2, uword w, uword h, uword sw, uword dw);
+extern void gfxNCH4OrMCGAToNCH4(void *sp,void *dp, uword x1, uword y1, uword x2, uword y2, uword w, uword h, uword sw, uword dw);
+extern void gfxNCH4AndMCGAToNCH4(void *sp,void *dp, uword x1, uword y1, uword x2, uword y2, uword w, uword h, uword sw, uword dw);
+extern void gfxNCH4PutNCH4ToMCGA(void *sp,void *dp, uword x1, uword y1, uword x2, uword y2, uword w, uword h, uword sw, uword dw);
+
+#endif
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfx_p.h b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfx_p.h
new file mode 100644
index 0000000..ebdc4c8
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfx_p.h
@@ -0,0 +1,108 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+
+#define GFX_PAGE_SIZE					(64000L)		/* 320*200 = 64000 Bytes gross */
+
+#define GFX_LOAD_BUFFER					StdBuffer0
+#define GFX_DECR_BUFFER					StdBuffer1
+
+#define GFX_DECR_BUFFER_SIZE			STD_BUFFER1_SIZE
+
+#define GFX_BUBBLE_FONT_NAME			((char*)"bubble.fnt")
+#define GFX_MENU_FONT_NAME				((char*)"menu.fnt")
+
+#define GFX_CMAP_OFFSET					61440	// -> Maximalgroesse 320 * 192
+
+struct PrintRect
+	{
+	uword us_X;
+	uword us_Width;
+	};
+
+struct ColorRange
+	{
+	ubyte uch_Start;
+	ubyte uch_End;
+	};
+
+struct GfxBase
+	{
+	struct RastPort *p_DestRPForShow;
+
+	ubyte	uch_VideoMode;
+	};
+
+struct RastPort LowerRP;
+struct RastPort MenuRP;
+
+struct RastPort NCH4MenuRP;
+struct RastPort NCH4ScrollRP;
+struct RastPort NCH4UpperRP;
+
+struct RastPort RefreshRP;
+/* wird verwendet f�r Double Buffering w�hrend der Vorbereitung */
+struct RastPort PrepareRP;
+/* Da man von XMS nur ganze Bl�cke kopieren kann (ohne Modulo)    */
+/* m�ssen einige Grafiken, bevor sie ins Video RAM kopiert werden */
+/* hier an dieser Stelle gepuffert werden. */
+/* ist als extern definfiert, da Animmodul darauf zugreifen mu� */
+
+
+struct XMSRastPort StdRP0InXMS;
+/* wird benutzt f�r Objekte, die immer im Speicher sind */
+struct XMSRastPort StdRP1InXMS;
+/* wird benutzt f�r Objekte, die immer im Speicher sind */
+struct XMSRastPort RefreshRPInXMS;
+/* Bild, das im Moment gerade gezeigt wird (f�r Refresh) */
+struct XMSRastPort AnimRPInXMS;
+/* beinhaltet die Animphasen des gerade aktuellen Bildes */
+/* um Inkonsistenzen zu vermeiden, wird jedesmal, bevor eine */
+/* Animphase gezeigt wird, das gesamte Bild in den PrepareRp */
+/* kopiert, der ben�tigte Ausschnitt wird dann von dort */
+/* ins Video-RAM kopiert */
+/* ist als extern definfiert, da Animmodul darauf zugreifen mu� */
+struct XMSRastPort AddRPInXMS;
+/* in diesem Rastport befinden sich diverse zus�tzliche Grafiken */
+/* die in das Bild hinzugef�gt werden (Gesichter, Werkzeuge)     */
+/* je nach Situation... 													  */
+/* dieser RP wird je nach Situation ausgewechselt					  */
+struct XMSRastPort LSFloorRPInXMS;
+/* in diesem RastPort befindet sich w�hrend der Planungs-Einbruchs */
+/* phasen das Bild der B�den */
+struct XMSRastPort LSObjectRPInXMS;
+/* in diesem RastPort befinden sich einige Objekte w�hrend der Planung */
+
+static ubyte *GfxBoardBase = NULL;
+
+struct PrintRect 			GlobalPrintRect;
+struct ColorRange			GlobalColorRange;
+
+struct GfxBase				GfxBase;
+
+LIST	*CollectionList = NULL;
+LIST  *PictureList = NULL;
+
+struct RastPort *l_wrp;
+struct RastPort *m_wrp;
+struct RastPort *u_wrp;
+
+struct Font *bubbleFont;
+struct Font *menuFont;
+
+static void gfxInitXMSRastPort(struct XMSRastPort *rp, uword us_Width, uword us_Height);
+static void gfxDoneXMSRastPort(struct XMSRastPort *rp);
+
+static void gfxInitRastPort(struct RastPort *rp, uword us_LeftEdge, uword us_TopEdge, uword us_Width, uword us_Height, ubyte uch_ColorStart, ubyte uch_ColorEnd, void *BitMap);
+
+static void gfxInitCollList(void);
+static void gfxInitPictList(void);
+
+static void gfxGetCMAP(ubyte *p_Data, ubyte *p_Dest);
+
+static struct Font *gfxOpenFont(char *puch_FileName, uword us_Width, uword us_Height, ubyte uch_FirstChar, ubyte uch_LastChar, uword us_TotalWidth, uword us_TotalHeight);
+static void gfxCloseFont(struct Font *font);
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfxmcga.c b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfxmcga.c
new file mode 100644
index 0000000..2356868
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfxmcga.c
@@ -0,0 +1,111 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "gfx\gfx.h"
+
+void gfxMCGABlit(struct RastPort *srp, uword us_SourceX, uword us_SourceY,
+				 struct RastPort *drp, uword us_DestX, uword us_DestY,
+				 uword us_Width, uword us_Height, ulong ul_BlitMode)
+{
+	unsigned int x;
+	ubyte *sbm = (ubyte*)srp->p_BitMap;
+	ubyte *dbm = (ubyte*)drp->p_BitMap;
+
+	sbm += (ulong)us_SourceX + (ulong)us_SourceY * srp->us_Width;
+	dbm += (ulong)us_DestX + (ulong)us_DestY * drp->us_Width;
+
+	switch (ul_BlitMode)
+	{
+		case GFX_ONE_STEP:	/* 1 zu 1 kopieren */
+			while (us_Height--)
+			{
+				for (x = us_Width; x--;)
+				{
+					dbm[x] = sbm[x];
+				}
+				dbm += drp->us_Width;
+				sbm += srp->us_Width;
+			}
+		break;
+		case GFX_OVERLAY:	/* Farbe 0 transparent */
+			while (us_Height--)
+			{
+				for (x = us_Width; x--;)
+				{
+					if (sbm[x]) dbm[x] = sbm[x];
+				}
+				dbm += drp->us_Width;
+				sbm += srp->us_Width;
+			}
+		break;
+	}
+}
+
+void gfxMCGAPrintExact(struct RastPort *rp, char *puch_Text, uword us_X, uword us_Y)
+{
+	ubyte *DestPtr = &((ubyte*)rp->p_BitMap)[us_X + us_Y * rp->us_Width];
+	ubyte *FontPtr = (ubyte*)rp->p_Font->p_BitMap;
+	uword CharsPerLine = rp->us_Width / rp->p_Font->us_Width;
+	uword Length = strlen(puch_Text);
+
+	ubyte *DestPtr1;
+	ubyte *FontPtr1;
+	uword t, h1, h2, i, j;
+	ubyte c;
+
+	for (t = 0; t < Length; t++)
+	{
+		c = puch_Text[t] - rp->p_Font->uch_FirstChar;
+		h1 = (c / CharsPerLine) * 320 * rp->p_Font->us_Height;
+		h2 = (c % CharsPerLine) * rp->p_Font->us_Width;
+		FontPtr1 = &FontPtr[h1 + h2];
+		DestPtr1 = &DestPtr[t * rp->p_Font->us_Width];
+
+		for (j = 0; j < rp->p_Font->us_Height; j++)
+		{
+			for (i = 0; i < rp->p_Font->us_Width; i++)
+			{
+				if (FontPtr1[i])
+					DestPtr1[i] = rp->uch_FrontPenAbs;
+				else if (rp->us_DrawMode == GFX_JAM_2)
+					DestPtr1[i] = rp->uch_BackPenAbs;
+			}
+			DestPtr1 += rp->us_Width;
+			FontPtr1 += 320;
+		}
+	}
+}
+
+void gfxMCGARectFill(struct RastPort *rp, uword us_X, uword us_Y, uword us_X1, uword us_Y1)
+{
+	uword us_W = (us_X1 - us_X)+1;
+	uword us_H = (us_Y1 - us_Y)+1;
+
+	//us_X += rp->us_LeftEdge;
+	//us_Y += rp->us_TopEdge;
+	ubyte *bm = &((ubyte*)rp->p_BitMap)[us_X + us_Y * rp->us_Width];
+	uword i, j;
+	for (j = 0; j < us_H; j++)
+	{
+		for (i = 0; i < us_W; i++)
+		{
+			if (!i || !j || i==us_W-1 || j==us_W-1) bm[i] = rp->uch_OutlinePenAbs;
+			else bm[i] = rp->uch_FrontPenAbs;
+		}
+		bm += rp->us_Width;
+	}
+}
+
+ubyte gfxMCGAReadPixel(struct RastPort *rp, uword us_X, uword us_Y)
+{
+	if ((us_X < rp->us_Width) && (us_Y < rp->us_Height))
+	{
+		//us_X += rp->us_LeftEdge;
+		//us_Y += rp->us_TopEdge;
+		return(((ubyte*)rp->p_BitMap)[us_X + us_Y * rp->us_Width]);
+	}
+	return(0);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfxnch4.c b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfxnch4.c
new file mode 100644
index 0000000..9c548e9
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/gfx/gfxnch4.c
@@ -0,0 +1,305 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "gfx\gfx.h"
+
+static int ScrX = 0, ScrY = 0;
+
+ulong gfxNCH4GetCurrScrollOffset(void)
+{
+	return(GFX_NCH4_SCROLLOFFSET + ScrX + (ScrY * 640));
+}
+
+void gfxNCH4PrintExact(struct RastPort *rp, char *puch_Text, uword us_X, uword us_Y)
+{
+	ubyte *DestPtr = &((ubyte*)rp->p_BitMap)[us_X + us_Y * 640];
+	ubyte *FontPtr = (ubyte*)rp->p_Font->p_BitMap;
+	uword CharsPerLine = 320 / rp->p_Font->us_Width;
+	uword Length = strlen(puch_Text);
+
+	ubyte *DestPtr1;
+	ubyte *FontPtr1;
+	uword t, h1, h2, i, j;
+	ubyte c;
+
+	for (t = 0; t < Length; t++)
+	{
+		c = puch_Text[t] - rp->p_Font->uch_FirstChar;
+		h1 = (c / CharsPerLine) * 320 * rp->p_Font->us_Height;
+		h2 = (c % CharsPerLine) * rp->p_Font->us_Width;
+		FontPtr1 = &FontPtr[h1 + h2];
+		DestPtr1 = &DestPtr[t * rp->p_Font->us_Width];
+
+		for (j = 0; j < rp->p_Font->us_Height; j++)
+		{
+			for (i = 0; i < rp->p_Font->us_Width; i++)
+			{
+				if (FontPtr1[i])
+					DestPtr1[i] = rp->uch_FrontPenAbs;
+				else if (rp->us_DrawMode == GFX_JAM_2)
+					DestPtr1[i] = rp->uch_BackPenAbs;
+			}
+			DestPtr1 += 640;
+			FontPtr1 += 320;
+		}
+	}
+}
+
+void gfxNCH4RectFill(struct RastPort *rp, uword us_SX, uword us_SY, uword us_EX, uword us_EY)
+{
+	uword us_W, us_H;
+	ubyte *bm;
+	uword i, j;
+
+	if ( !((us_SY >= rp->us_Height) && (us_EY >= rp->us_Height)) ||
+		  ((us_SX >= rp->us_Width) && (us_EX >= rp->us_Width)) )
+	{
+		if (us_SX > us_EX)
+		{
+			us_SX = us_SX ^ us_EX;
+			us_EX = us_SX ^ us_EX;
+			us_SX = us_SX ^ us_EX;
+		}
+
+		if (us_SY > us_EY)
+		{
+			us_SY = us_SY ^ us_EY;
+			us_EY = us_SY ^ us_EY;
+			us_SY = us_SY ^ us_EY;
+		}
+
+		if (us_EX >= rp->us_Width)
+			us_EX = rp->us_Width;
+
+		if (us_EY >= rp->us_Height)
+			us_EY = rp->us_Height;
+
+		us_W = us_EX - us_SX + 1;
+		us_H = us_EY - us_SY + 1;
+	}
+
+	bm = &((ubyte*)rp->p_BitMap)[us_SX + us_SY * 640];
+	for (j = 0; j < us_H; j++)
+	{
+		for (i = 0; i < us_W; i++)
+		{
+			if (!i || !j || i==us_W-1 || j==us_W-1) bm[i] = rp->uch_OutlinePenAbs;
+			else bm[i] = rp->uch_FrontPenAbs;
+		}
+		bm += 640;
+	}
+}
+
+ubyte gfxNCH4ReadPixel(struct RastPort *rp, uword us_X, uword us_Y)
+{
+	if ((us_X < rp->us_Width) && (us_Y < rp->us_Height))
+	{
+		return(((ubyte*)rp->p_BitMap)[us_X + us_Y * 640]);
+	}
+	return(0);
+}
+
+void gfxNCH4SetViewPort(uword x, uword y)
+{
+	ScrX = x;
+	ScrY = y;
+	if (ScrX < 0) ScrX = 0;
+	if (ScrX > 319) ScrX = 319;
+	if (ScrY < 0) ScrY = 0;
+	if (ScrY > 127) ScrY = 127;
+	gfxCorrectUpperRPBitmap();
+}
+
+void gfxNCH4Scroll(int x, int y)
+{
+	ScrX += x;
+	ScrY += y;
+	gfxNCH4SetViewPort(ScrX, ScrY);
+}
+
+void gfxNCH4SetSplit(uword line)
+{
+}
+
+void gfxNCH4Init()
+{
+	gfxNCH4SetViewPort(0, 0);
+}
+
+/* Put 320 to 640 */
+void gfxNCH4PutMCGAToNCH4(void *sp, void *dp, uword us_SourceX, uword us_SourceY,
+						  uword us_DestX, uword us_DestY,
+						  uword us_Width, uword us_Height, uword sw, uword dw)
+{
+	unsigned int x;
+	ubyte *sbm = (ubyte*)sp;
+	ubyte *dbm = (ubyte*)dp;
+
+	dw <<= 2;
+
+	sbm += (ulong)us_SourceX + (ulong)us_SourceY * (ulong)sw;
+	dbm += (ulong)us_DestX + (ulong)us_DestY * (ulong)dw;
+
+	while (us_Height--)
+	{
+		for (x = us_Width; x--;)
+		{
+			dbm[x] = sbm[x];
+		}
+		dbm += dw;
+		sbm += sw;
+	}
+}
+
+/* Put Mask 320 to 640 */
+void gfxNCH4PutMCGAToNCH4Mask(void *sp, void *dp, uword us_SourceX, uword us_SourceY,
+						  uword us_DestX, uword us_DestY,
+						  uword us_Width, uword us_Height, uword sw, uword dw)
+{
+	unsigned int x;
+	ubyte *sbm = (ubyte*)sp;
+	ubyte *dbm = (ubyte*)dp;
+
+	dw <<= 2;
+
+	sbm += (ulong)us_SourceX + (ulong)us_SourceY * (ulong)sw;
+	dbm += (ulong)us_DestX + (ulong)us_DestY * (ulong)dw;
+
+	while (us_Height--)
+	{
+		for (x = us_Width; x--;)
+		{
+			dbm[x] = sbm[x] | (dbm[x] & 0x40);
+		}
+		dbm += dw;
+		sbm += sw;
+	}
+}
+
+/* Overlay Mask 320 to 640 */
+void gfxNCH4OLMCGAToNCH4Mask(void *sp, void *dp, uword us_SourceX, uword us_SourceY,
+						  uword us_DestX, uword us_DestY,
+						  uword us_Width, uword us_Height, uword sw, uword dw)
+{
+	unsigned int x;
+	ubyte *sbm = (ubyte*)sp;
+	ubyte *dbm = (ubyte*)dp;
+
+	dw <<= 2;
+
+	sbm += (ulong)us_SourceX + (ulong)us_SourceY * (ulong)sw;
+	dbm += (ulong)us_DestX + (ulong)us_DestY * (ulong)dw;
+
+	while (us_Height--)
+	{
+		for (x = us_Width; x--;)
+		{
+			if (sbm[x]) dbm[x] = sbm[x] | (dbm[x] & 0x40);
+		}
+		dbm += dw;
+		sbm += sw;
+	}
+}
+
+/* Overlay 320 to 640 */
+void gfxNCH4OLMCGAToNCH4(void *sp, void *dp, uword us_SourceX, uword us_SourceY,
+						  uword us_DestX, uword us_DestY,
+						  uword us_Width, uword us_Height, uword sw, uword dw)
+{
+	unsigned int x;
+	ubyte *sbm = (ubyte*)sp;
+	ubyte *dbm = (ubyte*)dp;
+
+	dw <<= 2;
+
+	sbm += (ulong)us_SourceX + (ulong)us_SourceY * (ulong)sw;
+	dbm += (ulong)us_DestX + (ulong)us_DestY * (ulong)dw;
+
+	while (us_Height--)
+	{
+		for (x = us_Width; x--;)
+		{
+			if (sbm[x]) dbm[x] = sbm[x];
+		}
+		dbm += dw;
+		sbm += sw;
+	}
+}
+
+/* Or 320 to 640 */
+void gfxNCH4OrMCGAToNCH4(void *sp, void *dp, uword us_SourceX, uword us_SourceY,
+						  uword us_DestX, uword us_DestY,
+						  uword us_Width, uword us_Height, uword sw, uword dw)
+{
+	unsigned int x;
+	ubyte *sbm = (ubyte*)sp;
+	ubyte *dbm = (ubyte*)dp;
+
+	dw <<= 2;
+
+	sbm += (ulong)us_SourceX + (ulong)us_SourceY * (ulong)sw;
+	dbm += (ulong)us_DestX + (ulong)us_DestY * (ulong)dw;
+
+	while (us_Height--)
+	{
+		for (x = us_Width; x--;)
+		{
+			if (sbm[x]) dbm[x] |= sbm[x];
+		}
+		dbm += dw;
+		sbm += sw;
+	}
+}
+
+/* And 320 to 640 */
+void gfxNCH4AndMCGAToNCH4(void *sp, void *dp, uword us_SourceX, uword us_SourceY,
+						  uword us_DestX, uword us_DestY,
+						  uword us_Width, uword us_Height, uword sw, uword dw)
+{
+	unsigned int x;
+	ubyte *sbm = (ubyte*)sp;
+	ubyte *dbm = (ubyte*)dp;
+
+	dw <<= 2;
+
+	sbm += (ulong)us_SourceX + (ulong)us_SourceY * (ulong)sw;
+	dbm += (ulong)us_DestX + (ulong)us_DestY * (ulong)dw;
+
+	while (us_Height--)
+	{
+		for (x = us_Width; x--;)
+		{
+			if (sbm[x]) dbm[x] &= ~sbm[x];
+		}
+		dbm += dw;
+		sbm += sw;
+	}
+}
+
+/* Put 640 to 320 */
+void gfxNCH4PutNCH4ToMCGA(void *sp, void *dp, uword us_SourceX, uword us_SourceY,
+						  uword us_DestX, uword us_DestY,
+						  uword us_Width, uword us_Height, uword sw, uword dw)
+{
+	unsigned int x;
+	ubyte *sbm = (ubyte*)sp;
+	ubyte *dbm = (ubyte*)dp;
+
+	sw <<= 2;
+
+	sbm += (ulong)us_SourceX + (ulong)us_SourceY * (ulong)sw;
+	dbm += (ulong)us_DestX + (ulong)us_DestY * (ulong)dw;
+
+	while (us_Height--)
+	{
+		for (x = us_Width; x--;)
+		{
+			dbm[x] = sbm[x];
+		}
+		dbm += dw;
+		sbm += sw;
+	}
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/arrow1x_xpm.c b/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/arrow1x_xpm.c
new file mode 100644
index 0000000..0582a9d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/arrow1x_xpm.c
@@ -0,0 +1,43 @@
+/* XPM */
+static char *arrow1x[] = {
+  /* width height num_colors chars_per_pixel */
+  "    32    32        3            1",
+  /* colors */
+  "X c #000000",
+  ". c #ffffff",
+  "  c None",
+  /* pixels */
+  "XX                              ",
+  "X.X                             ",
+  "X..X                            ",
+  "X...X                           ",
+  "X....X                          ",
+  "X.....X                         ",
+  "X......X                        ",
+  "X.......X                       ",
+  "X........X                      ",
+  "X.........X                     ",
+  "X..X..XXXXX                     ",
+  "X.X X..X                        ",
+  "XX  X..X                        ",
+  "     X..X                       ",
+  "     X..X                       ",
+  "      XXX                       ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "0,0"
+};
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/arrow2x_xpm.c b/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/arrow2x_xpm.c
new file mode 100644
index 0000000..37b980f
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/arrow2x_xpm.c
@@ -0,0 +1,43 @@
+/* XPM */
+static char *arrow2x[] = {
+  /* width height num_colors chars_per_pixel */
+  "    32    32        3            1",
+  /* colors */
+  "X c #000000",
+  ". c #ffffff",
+  "  c None",
+  /* pixels */
+  "XXXX                            ",
+  "XXXX                            ",
+  "XX..XX                          ",
+  "XX..XX                          ",
+  "XX....XX                        ",
+  "XX....XX                        ",
+  "XX......XX                      ",
+  "XX......XX                      ",
+  "XX........XX                    ",
+  "XX........XX                    ",
+  "XX..........XX                  ",
+  "XX..........XX                  ",
+  "XX............XX                ",
+  "XX............XX                ",
+  "XX..............XX              ",
+  "XX..............XX              ",
+  "XX................XX            ",
+  "XX................XX            ",
+  "XX..................XX          ",
+  "XX..................XX          ",
+  "XX....XX....XXXXXXXXXX          ",
+  "XX....XX....XXXXXXXXXX          ",
+  "XX..XX  XX....XX                ",
+  "XX..XX  XX....XX                ",
+  "XXXX    XX....XX                ",
+  "XXXX    XX....XX                ",
+  "          XX....XX              ",
+  "          XX....XX              ",
+  "          XX....XX              ",
+  "          XX....XX              ",
+  "            XXXXXX              ",
+  "            XXXXXX              ",
+  "0,0"
+};
\ No newline at end of file
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/inphdl.c b/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/inphdl.c
new file mode 100644
index 0000000..5a6107d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/inphdl.c
@@ -0,0 +1,408 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "SDL.h"
+#include "inphdl\inphdl.h"
+
+#include "inphdl\arrow1x_xpm.c"
+#include "inphdl\arrow2x_xpm.c"
+
+#include "sound\newsound.h"
+
+static SDL_Cursor *cursor[2];
+
+static ubyte cursorInit;
+ubyte initMouseCursor(void);
+void removeMouseCursor(void);
+
+struct IHandler
+{
+	long	ul_XSensitivity;
+	long	ul_YSensitivity;
+	long	ul_WaitTicks;
+
+	Uint16	us_MouseX;
+	Uint16	us_MouseY;
+
+	ubyte	uch_EscStatus;
+	ubyte	uch_FunctionKeyStatus;
+	ubyte	uch_MouseStatus;
+};
+
+struct IHandler IHandler;
+
+static SDL_Cursor *init_system_cursor(char *image[])
+{
+  int i, row, col;
+  Uint8 data[4*32];
+  Uint8 mask[4*32];
+  int hot_x, hot_y;
+
+  i = -1;
+  for (row=0; row<32; ++row) {
+    for (col=0; col<32; ++col) {
+      if (col % 8) {
+        data[i] <<= 1;
+        mask[i] <<= 1;
+      } else {
+        ++i;
+        data[i] = mask[i] = 0;
+      }
+      switch (image[4+row][col]) {
+        case 'X':
+          data[i] |= 0x01;
+          mask[i] |= 0x01;
+          break;
+        case '.':
+          mask[i] |= 0x01;
+          break;
+        case ' ':
+          break;
+      }
+    }
+  }
+  sscanf(image[4+row], "%d,%d", &hot_x, &hot_y);
+  return SDL_CreateCursor(data, mask, 32, 32, hot_x, hot_y);
+}
+
+void setMouseCursor(ubyte fact)
+{
+	if (cursorInit)
+	{
+		switch (fact)
+		{
+		case 1:
+		case 2:
+			SDL_SetCursor(cursor[0]);
+			break;
+
+		case 3:
+		case 4:
+			SDL_SetCursor(cursor[1]);
+			break;
+		}
+		SDL_ShowCursor(1);
+	}
+}
+
+ubyte initMouseCursor(void)
+{
+	if (!cursorInit)
+	{
+		cursor[0] = init_system_cursor(arrow1x);
+
+		if (!cursor[0])
+		{
+			Log("SDL_CreateCursor -> %s", SDL_GetError());
+			return 0;
+		}
+
+		cursor[1] = init_system_cursor(arrow2x);
+
+		if (!cursor[1])
+		{
+			Log("SDL_CreateCursor -> %s", SDL_GetError());
+			return 0;
+		}
+	}
+	return 1;
+}
+
+void removeMouseCursor(void)
+{
+	if (cursorInit)
+	{
+		SDL_ShowCursor(0);
+		SDL_FreeCursor(cursor[0]);
+		SDL_FreeCursor(cursor[1]);
+
+	}
+}
+
+/* 2014-01-10 LucyG: Joystick */
+static SDL_Joystick *inpJoystick = NULL;
+
+static void inpInitJoystick(void)
+{
+	int numJoys, i;
+
+	inpJoystick = NULL;
+	if (!Config.UseJoystick) {
+		return;
+	}
+
+	if (SDL_InitSubSystem(SDL_INIT_JOYSTICK)) {
+		Log("Failed to init joystick subsystem.");
+		Config.UseJoystick = 0;
+		return;
+	}
+
+	numJoys = SDL_NumJoysticks();
+	if (numJoys <= 0) {
+		Log("No joystick detected.");
+		Config.UseJoystick = 0;
+		return;
+	}
+
+	if (Config.UseJoystick <= numJoys) {
+		inpJoystick = SDL_JoystickOpen(Config.UseJoystick - 1);
+		if (inpJoystick) {
+			SDL_JoystickEventState(SDL_ENABLE);
+			return;
+		}
+	}
+
+	Log("Failed to open joystick #%d. Please try a different one.", Config.UseJoystick);
+	for (i = 0; i < numJoys; i++) {
+		Log("#%d = \"%s\"", i+1, SDL_JoystickName(i));
+	}
+	Config.UseJoystick = 0;
+}
+
+static void inpQuitJoystick(void)
+{
+	if (inpJoystick) {
+		SDL_JoystickEventState(SDL_IGNORE);
+		SDL_JoystickClose(inpJoystick);
+		inpJoystick = NULL;
+	}
+}
+
+void inpOpenAllInputDevs(void)
+{
+
+	inpSetKeyRepeat((1<<5) | 10);
+
+	IHandler.uch_EscStatus = 1;
+	IHandler.uch_FunctionKeyStatus = 1;
+	IHandler.uch_MouseStatus = 1;
+
+	//2014-07
+	cursorInit = initMouseCursor();
+	setMouseCursor(gfxScalingFactor);
+
+	if (Config.UseJoystick) {
+		inpInitJoystick();
+	}
+
+}
+
+static void inpDoPseudoMultiTasking(void)
+{
+	// 2014-06-30 LucyG : rewritten
+	static unsigned long timePrev = 0;
+	unsigned long timeNow;
+	unsigned long timePassed;
+	timeNow = SDL_GetTicks();
+	if (!timePrev) {
+		timePrev = timeNow;
+	}
+	timePassed = timeNow - timePrev;
+	if (timePassed >= INP_TICKS_TO_MS(1)) {
+		timePrev = timeNow;
+
+		sndDoFading(); // 2014-07-17 LucyG
+
+		animator();
+	}
+}
+
+void inpCloseAllInputDevs(void)
+{
+	// remove mouse cursor
+	removeMouseCursor();
+
+	if (Config.UseJoystick) {
+		inpQuitJoystick();
+	}
+}
+
+void inpDelay(long l_Ticks)
+{
+	// 2014-07-03 LucyG : rewritten
+	unsigned long timePrev;
+	timePrev = SDL_GetTicks();
+	l_Ticks = INP_TICKS_TO_MS(l_Ticks);
+	while ((SDL_GetTicks() - timePrev) < l_Ticks) {
+		wfr();
+		inpDoPseudoMultiTasking();
+	}
+}
+
+void inpGetMouseXY(struct RastPort *p_RP, uword *p_X, uword *p_Y)
+{
+	*p_X = IHandler.us_MouseX - p_RP->us_LeftEdge;
+	*p_Y = IHandler.us_MouseY - p_RP->us_TopEdge;
+}
+
+uword inpGetMouseY(struct RastPort *p_RP)
+{
+	return(IHandler.us_MouseY) - p_RP->us_TopEdge;
+}
+
+void inpSetWaitTicks(long l_Ticks)
+{
+	IHandler.ul_WaitTicks = l_Ticks;
+}
+
+void inpTurnESC(uword us_NewStatus)
+{
+	IHandler.uch_EscStatus = (ubyte) us_NewStatus;
+}
+
+void inpTurnFunctionKey(uword us_NewStatus)
+{
+	IHandler.uch_FunctionKeyStatus = (ubyte) us_NewStatus;
+}
+
+void inpTurnMouse(uword us_NewStatus)
+{
+	IHandler.uch_MouseStatus = (ubyte) us_NewStatus;
+}
+
+long inpWaitFor(long l_Mask)
+{
+	long action = 0;
+	ulong WaitTime = 0;
+
+	unsigned long timePrev = SDL_GetTicks();
+
+	SDL_Event event;
+	SDLKey sym = (SDLKey)0;
+
+	if (IHandler.uch_EscStatus && !(l_Mask & INP_NO_ESC)) l_Mask |= INP_ESC;
+	if (IHandler.uch_FunctionKeyStatus)	l_Mask |= INP_FUNCTION_KEY;
+
+	while (!action)
+	{
+		while (SDL_PollEvent(&event))
+		{
+			switch (event.type)
+			{
+				case SDL_KEYDOWN:
+					sym = event.key.keysym.sym;
+					if ((l_Mask & INP_LEFT) && (sym == SDLK_LEFT)) {
+						action |= INP_KEYBOARD|INP_LEFT;
+					} else if ((l_Mask & INP_RIGHT) && (sym == SDLK_RIGHT)) {
+						action |= INP_KEYBOARD|INP_RIGHT;
+					}
+					if ((l_Mask & INP_UP) && (sym == SDLK_UP)) {
+						action |= INP_KEYBOARD|INP_UP;
+					} else if ((l_Mask & INP_DOWN) && (sym == SDLK_DOWN)) {
+						action |= INP_KEYBOARD|INP_DOWN;
+					}
+				break;
+				case SDL_KEYUP:
+					sym = event.key.keysym.sym;
+					if ((l_Mask & (INP_LBUTTONP | INP_LBUTTONR)) && ((sym == SDLK_SPACE) || (sym == SDLK_RETURN))) {
+						action |= INP_KEYBOARD|INP_LBUTTONP;
+					}
+					if (IHandler.uch_EscStatus && (l_Mask & INP_ESC) && (sym == SDLK_ESCAPE)) {
+						action |= INP_KEYBOARD|INP_ESC;
+					}
+					if (IHandler.uch_FunctionKeyStatus && (l_Mask & INP_FUNCTION_KEY) && ((sym >= SDLK_F1) && (sym <= SDLK_F11))) {
+						action |= INP_KEYBOARD|INP_FUNCTION_KEY;
+					}
+					if (sym == SDLK_F12) {
+						gfxScreenshot();	// 2014-07-13 LucyG : guess what F12 does
+					}
+				break;
+				case SDL_MOUSEMOTION:
+					event.motion.x = (event.motion.x - gfxScalingOffsetX) / gfxScalingFactor;
+					event.motion.y = (event.motion.y - gfxScalingOffsetY) / gfxScalingFactor;
+					if ((l_Mask & INP_LEFT) && (event.motion.x < IHandler.us_MouseX)) {
+						action |= INP_MOUSE|INP_LEFT;
+					} else if ((l_Mask & INP_RIGHT) && (event.motion.x > IHandler.us_MouseX)) {
+						action |= INP_MOUSE|INP_RIGHT;
+					}
+					if ((l_Mask & INP_UP) && (event.motion.y < IHandler.us_MouseY)) {
+						action |= INP_MOUSE|INP_UP;
+					} else if ((l_Mask & INP_DOWN) && (event.motion.y > IHandler.us_MouseY)) {
+						action |= INP_MOUSE|INP_DOWN;
+					}
+					IHandler.us_MouseX = event.motion.x;
+					IHandler.us_MouseY = event.motion.y;					
+				break;
+				case SDL_MOUSEBUTTONDOWN:
+					if ((l_Mask & INP_LBUTTONP) && (event.button.button == SDL_BUTTON_LEFT)) {
+						action |= INP_MOUSE|INP_LBUTTONP;
+					}
+					if ((l_Mask & INP_RBUTTONP) && (event.button.button == SDL_BUTTON_RIGHT)) {
+						action |= INP_MOUSE|INP_RBUTTONP;
+					}
+					IHandler.us_MouseX = (event.button.x - gfxScalingOffsetX) / gfxScalingFactor;
+					IHandler.us_MouseY = (event.button.y - gfxScalingOffsetY) / gfxScalingFactor;				
+				break;
+				case SDL_MOUSEBUTTONUP:
+					if ((l_Mask & INP_LBUTTONR) && (event.button.button == SDL_BUTTON_LEFT)) {
+						action |= INP_MOUSE|INP_LBUTTONR;
+					}
+					if ((l_Mask & INP_RBUTTONR) && (event.button.button == SDL_BUTTON_RIGHT)) {
+						action |= INP_MOUSE|INP_RBUTTONR;
+					}
+					IHandler.us_MouseX = (event.button.x - gfxScalingOffsetX) / gfxScalingFactor;
+					IHandler.us_MouseY = (event.button.y - gfxScalingOffsetY) / gfxScalingFactor;	
+
+					if (event.button.button == SDL_BUTTON_WHEELUP)
+					{
+						action |= INP_MOUSEWHEEL | INP_UP;
+					}
+					if (event.button.button == SDL_BUTTON_WHEELDOWN)
+					{
+						action |= INP_MOUSEWHEEL | INP_DOWN;
+					}
+				break;
+				case SDL_JOYAXISMOTION:	/* 2015-01-10 LucyG: emulate cursor keys with joystick */
+					if (event.jaxis.axis == 0) {	// X axis
+						if ((l_Mask & INP_LEFT) && (event.jaxis.value < -10000)) {
+							action |= INP_KEYBOARD|INP_LEFT;
+						} else if ((l_Mask & INP_RIGHT) && (event.jaxis.value > 10000)) {
+							action |= INP_KEYBOARD|INP_RIGHT;
+						}
+					} else if (event.jaxis.axis == 1) {	// Y axis
+						if ((l_Mask & INP_UP) && (event.jaxis.value < -10000)) {
+							action |= INP_KEYBOARD|INP_UP;
+						} else if ((l_Mask & INP_DOWN) && (event.jaxis.value > 10000)) {
+							action |= INP_KEYBOARD|INP_DOWN;
+						}
+					}
+				break;
+				case SDL_JOYBUTTONUP:	/* 2015-01-10 LucyG: emulate RETURN/SPACE with (any) joystick button */
+					if (l_Mask & (INP_LBUTTONP | INP_LBUTTONR)) {
+						action |= INP_KEYBOARD|INP_LBUTTONP;
+					}
+				break;
+				case SDL_QUIT:
+					if (l_Mask & INP_QUIT) {
+						action |= INP_QUIT;
+					}
+				break;
+			}
+		}
+		inpDoPseudoMultiTasking();
+		wfd();
+
+		WaitTime = SDL_GetTicks() - timePrev;
+		if ((l_Mask & INP_TIME) && (WaitTime >= INP_TICKS_TO_MS(IHandler.ul_WaitTicks))) action |= INP_TIME;
+	}
+
+	return(action);
+}
+
+/*
+ * rate = (x << 5) | y
+ * x : Delay (0-3)
+ * y : Repeat (0-31)
+ */
+void inpSetKeyRepeat(unsigned char rate)
+{
+	/* needs some experimenting... */
+	//int x = (((rate & 0xe0) >> 5) + 1) << 7;
+	//int y = ((rate & 0x1f) + 1) << 1;
+	int x = (((rate & 0xe0) >> 5) + 1) << 8;
+	int y = ((rate & 0x1f) + 1) << 4;
+	SDL_EnableKeyRepeat(x, y);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/inphdl.h b/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/inphdl.h
new file mode 100644
index 0000000..7f0c437
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/inphdl/inphdl.h
@@ -0,0 +1,71 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef INPHDL_MODULE
+#define INPHDL_MODULE
+
+#include "theclou.h"
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_ANIM
+#include "anim\sysanim.h"
+#endif
+
+#define INP_TICKS_PER_SECOND	60	// 2014-07-04
+#define INP_TICKS_TO_MS(t)		(((t) * 1000) / INP_TICKS_PER_SECOND)
+
+#define INP_AS_FAST_AS_POSSIBLE		1
+
+#define INP_UP                (1L<<0)
+#define INP_DOWN              (1L<<1)
+#define INP_LEFT              (1L<<2)
+#define INP_RIGHT             (1L<<3)
+#define INP_ESC               (1L<<4)  /* wird standardmaessig gesetzt */
+
+// these two defines have been exchanged by kaweh
+#define INP_LBUTTONP          (1L<<5)  /* left button pressed */
+#define INP_LBUTTONR          (1L<<6)  /* left button released */
+
+#define INP_RBUTTONP          (1L<<7)  /* right button pressed */
+#define INP_RBUTTONR          (1L<<8)  /* right button released */
+#define INP_NO_ESC            (1L<<10) /* Esc Taste wird in WaitFor gesperrt */
+#define INP_TIME              (1L<<11)
+#define INP_KEYBOARD          (1L<<12) /* look at IH.keyCode for further information */
+#define INP_FUNCTION_KEY      (1L<<13)
+#define INP_SPACE             (1L<<14)
+#define INP_MOUSE             (1L<<15)
+#define INP_MOUSEWHEEL        (1L<<16)
+#define INP_QUIT              (1L<<17)
+
+#define INP_BUTTON      (INP_LBUTTONP|INP_RBUTTONP)
+#define INP_MOVEMENT    (INP_UP|INP_DOWN|INP_LEFT|INP_RIGHT)
+#define INP_ALL_MODES   (INP_UP|INP_DOWN|INP_LEFT|INP_RIGHT|INP_ESC|INP_LBUTTONP|INP_LBUTTONR|INP_RBUTTONP|INP_RBUTTONR|INP_TIME|INP_MOUSE|INP_KEYBOARD|INP_SPACE)
+
+/* global functions */
+
+extern void inpOpenAllInputDevs(void);
+extern void inpCloseAllInputDevs(void);
+
+extern void inpGetMouseXY(struct RastPort *p_RP, uword *p_X, uword *p_Y);
+extern uword inpGetMouseY(struct RastPort *p_RP);
+
+extern long inpWaitFor(long l_Mask);                 /* retourniert was passiert ist
+																		  * (siehe defines) */
+extern void inpSetWaitTicks(long l_Ticks);
+
+extern void inpTurnESC(uword us_NewStatus);          /* 0 means off, 1 means on */
+extern void inpTurnFunctionKey(uword us_NewStatus);  /* 0 means off, 1 means on */
+extern void inpTurnMouse(uword us_NewStatus);		  // 0 means off, 1 means on
+
+extern void inpDelay(long l_Ticks);
+extern void inpSetKeyRepeat(unsigned char rate);
+
+extern void setMouseCursor(ubyte fact);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/intro/iffanim.c b/cosp-0.6-src/ClouRemake/ClouRemake/intro/iffanim.c
new file mode 100644
index 0000000..261cf59
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/intro/iffanim.c
@@ -0,0 +1,1611 @@
+/*
+  IFF ANIM decoder by Markus Wolf http://murkymind.de (v1.01 2007-03-30)
+  Ported and adapted by Oliver Gantert (2014-06-28)
+  Last change by Oliver Gantert (2017-11-09)
+*/
+#include "iffanim.h"
+#include <ctype.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include "error\error.h"
+#include "memory\memory.h"
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+#ifndef TRUE
+#define TRUE (~0)
+#endif
+
+#define IFFANIM_FORMATINFO_BUFSIZE  1000  //size of string buffer for returning information about ANIM file
+#define IFFANIM_PITCH  4           //pitch of scanline for frame output ("GetFrame()") can be set: multiple of 1, 2, 3 or 4 bytes
+
+//struct for a single frame, used in a memory frame list
+// contains needed anim header information for decompression
+// some fields are not used currently
+typedef struct {
+	int				delta_compression;  //determines compression type
+	int				mask;       //for XOR mode only
+
+	int				w;          //XOR mode only
+	int				h;          //XOR mode only
+	int				x;          //XOR mode only
+	int				y;          //XOR mode only
+
+	int				reltime;    //relative display time in 1/60 sec
+	int				interleave; //indicates how many frames back the data is to modify
+	unsigned long	bits;       //options for some compressions as flags
+
+	char *			cmap;          //original cmap (if exists), else NULL, number of color entries depends on bits per pixel resolution
+	char *			data;          //original pixel data from file (maybe compressed)
+	int				datasize;       //size of data in bytes
+} iffanim_frame;
+
+//struct for embedded audio, created with Amiga software "Wave Tracer DS" by ""
+typedef struct {
+	int				freq;      //playback sample frequency
+	int				nch;       //number of channels: 0 no audio, 1 mono, 2 stereo (left, right interleaved), other values aren't supported
+	int				bps;       //bits per sample point
+	float			volume;    //volume: 0..1
+
+	int				n;          //equal to nframes (the last frame data may contain 2 SBDY chunks, or somewhere else for joined animations)
+	char *			data;       //audio buffer (Big Endian byte order, signed)
+	int  *			dataoffset; //list of audio sample start, which starts playing at current frame (for every frame), in bytes, begins on full frames
+	int				datasize;   //total audio data size in bytes
+} iffanim_audio;
+
+struct IffAnim {
+	//animation attributes
+	int				w;         //width of anim (original format)
+	int				h;         //height of anim (original format)
+	int				bpp;         //bits per pixel of anim (original format)
+	int				mask;            //indicates mask type defined in BMHD chunk (0,1,2,3)
+	int				ham;             //"true" if ham mode
+	int				ehb;             //"true" if extra half bright palette
+	int				compressed;      //indicates compression type of first frame (0 or 1, only byterun is supported) (other frames have delta compression)
+	unsigned char	dcompressions[256]; //bit array indicates which delta compression methods are used in the anim (there may be mixed compression modes)
+
+	int				nframes;       //number of frames
+	int				lentime;       //overall length of animation in 1/60 seconds (original format)
+	iffanim_frame *	frame;  //list containing all frames (original format, still delta compressed)
+
+	//decoded image in common format ready for output
+	int				disp_bpp;       //display format (doesn't change), in common supported format: (1..8 bit converted to 8, ham to 24 bpp)
+	int				disp_pitch;     //number of byte per scanline (size of dispframe in bytes: h * disp_pitch), can be considered as always 0
+
+	char *			disp_frame;     //decoded frame, display ready converted (a line padded to full 32 bit)
+	char *			disp_cmap;      //cmap, if 8 bit display mode (for all frames the same), else NULL
+
+	char *			prev_disp_frame; //previous display frame (a player may need this for double buffering with resize handling without creating an extra frame copy)
+	char *			prev_disp_cmap;  //previous display frame map
+
+	//current state (frame attributes)
+	char *			prevframe;   //frame before current (internal/original frame format)
+	char *			prevcmap;    //pointer to cmap of previous frame
+	char *			curframe;    //buffer for decoded frame, in original format (multiplanar)
+	char *			curcmap;     //ptr to cmap in frame list, can be redefined for a frame
+	int				framesize;   //size of a decoded frame in bytes (each scanline has a multiple of 16 bit -> number of bytes is even)
+	int				frameno;     //current frame (as number)
+
+	iffanim_audio	audio;  //contains audio data, if supported
+
+	int				num_disp_frames;   //number of frames converted to display format (set to 0 after loading)
+	int				loopanim;          //if set, when looping, the next frame of the last frame is frame 2, else frame 0
+	int				loop;              //if unset, there is an error when trying to load the next frame of the last frame, else the animation restarts
+	char			formatinfo[IFFANIM_FORMATINFO_BUFSIZE];   //buffer for returning format information
+};
+
+static int IffAnim_AllocDeltaFrames(IffAnim *anim);
+static int IffAnim_AllocDisplayFrames(IffAnim *anim);
+static int IffAnim_AllocDisplayCmap(IffAnim *anim);
+static int IffAnim_ConvertHamTo24bpp(IffAnim *anim, void *dst_, void *src_, void *cmap_, int w, int h, int hambits, int dst_pitch);
+static int IffAnim_BitplanarToChunky(IffAnim *anim, void *dst_, void *src_, int w, int h, int bitssrc, int bitsdst, int dst_pitch);
+static int IffAnim_DecodeByteRun(IffAnim *anim, void *dst_, void *data_, int datasize, int w, int h, int bpp, int mask);
+static int IffAnim_DecodeByteVerticalDelta(IffAnim *anim, void *dst_, void *data_, int w, int bpp);
+static int IffAnim_DecodeLSVerticalDelta7(IffAnim *anim, void *dst_, void *data_, int w, int bpp, int long_data);
+static int IffAnim_DecodeLSVerticalDelta8(IffAnim *anim, void *dst_, void *data_, int w, int bpp, int long_data);
+static int IffAnim_DecodeDeltaJ(IffAnim *anim, void *dst_, void *delta_, int w, int h, int bpp);
+static int IffAnim_FindChunk(IffAnim *anim, FILE *file, char *idreq, int len);
+static int IffAnim_GetNumFrames(IffAnim *anim, FILE *file);
+static int IffAnim_read_ANHD(IffAnim *anim, FILE *file, iffanim_frame *frame);
+static int IffAnim_read_CMAP(IffAnim *anim, FILE *file, iffanim_frame *frame);
+static int IffAnim_InterleaveStereo(IffAnim *anim, char *data, int datasize, int bps);
+static int IffAnim_read_SBDY(IffAnim *anim, FILE *file, int searchlen, char **audiobuf, int *audiobufsize);
+static int IffAnim_ReadFrames(IffAnim *anim, FILE *file);
+static int IffAnim_PrintInfo(IffAnim *anim);
+static int IffAnim_DecodeFrame(IffAnim *anim, char *dstframe, int index);
+static long fget32(FILE *file);
+static int fget16(FILE *file);
+
+static int IffAnim_AllocDeltaFrames(IffAnim *anim)
+{
+	//allocate buffer for delta decoded frames
+	int framesize;
+	framesize = ((anim->w + 1) & (~1)) * anim->bpp * anim->h;
+	anim->prevframe = (char *)MemAlloc(framesize);
+	if (anim->prevframe) {
+		anim->curframe = (char *)MemAlloc(framesize);
+		if (anim->curframe) {
+			return(TRUE);
+		}
+		MemFree(anim->prevframe, framesize);
+		anim->prevframe = NULL;
+	}
+	return(FALSE);
+}
+
+static int IffAnim_AllocDisplayFrames(IffAnim *anim)
+{
+	//allocate buffer for display frames
+	int framesize;
+	anim->disp_pitch = (((anim->w * anim->disp_bpp / 8) + (IFFANIM_PITCH - 1)) / IFFANIM_PITCH) * IFFANIM_PITCH;  // pitch of scanline: rounding up to next multiple of IFFANIM_PITCH bytes
+	framesize = anim->disp_pitch * anim->h;
+	anim->prev_disp_frame = (char *)MemAlloc(framesize);
+	if (anim->prev_disp_frame) {
+		anim->disp_frame = (char *)MemAlloc(framesize);
+		if (anim->disp_frame) {
+			return(TRUE);
+		}
+		MemFree(anim->prev_disp_frame, framesize);
+		anim->prev_disp_frame = NULL;
+	}
+	return(FALSE);
+}
+
+static int IffAnim_AllocDisplayCmap(IffAnim *anim)
+{
+	//allocate buffer for display color map if necessary
+	int framesize;
+	if (anim->disp_bpp <= 8) {
+		framesize = (1 << anim->disp_bpp) * 4;
+		anim->prev_disp_cmap = (char *)MemAlloc(framesize);
+		if (anim->prev_disp_cmap) {
+			anim->disp_cmap = (char *)MemAlloc(framesize);
+			if (anim->disp_cmap) {
+				return(TRUE);
+			}
+			MemFree(anim->prev_disp_cmap, framesize);
+			anim->prev_disp_cmap = NULL;
+		}
+	} else {
+		anim->prev_disp_cmap = NULL;
+		anim->disp_cmap = NULL;
+		return(TRUE);
+	}
+	return(FALSE);
+}
+
+IffAnim *IffAnim_Open(char *fname)
+{
+	IffAnim *anim;
+	FILE *file;
+
+	anim = (IffAnim *)MemAlloc(sizeof(IffAnim));
+	if (anim) {
+		file = fopen(fname, "rb");
+		if (file) {
+			anim->nframes = IffAnim_GetNumFrames(anim, file);
+			if (anim->nframes > 0) {
+				if (IffAnim_ReadFrames(anim, file)) {
+					if (IffAnim_AllocDeltaFrames(anim)) {
+						//determine display format
+						if ((anim->bpp <= 8) && !anim->ham) {
+							anim->disp_bpp = 8;
+						} else {
+							anim->disp_bpp = 24;
+						}
+						if (IffAnim_AllocDisplayFrames(anim)) {
+							if (IffAnim_AllocDisplayCmap(anim)) {
+								if (IffAnim_PrintInfo(anim)) {
+									//set default attributes
+									IffAnim_SetLoopAnim(anim, FALSE);
+									IffAnim_SetLoop(anim, TRUE);
+									if (IffAnim_Reset(anim)) {
+										return(anim);
+									}
+								}
+							}
+						}
+					}
+				}
+			}
+			fclose(file);
+		}
+		IffAnim_Close(anim);
+	}
+	return(NULL);
+}
+
+void IffAnim_Close(IffAnim *anim)
+{
+	int i;
+	int framesize;
+	
+	if (anim) {
+		framesize = (1 << anim->disp_bpp) * 4;
+		if (anim->prev_disp_cmap) {
+			MemFree(anim->prev_disp_cmap, framesize);
+		}
+		if (anim->disp_cmap) {
+			MemFree(anim->disp_cmap, framesize);
+		}
+
+		framesize = anim->disp_pitch * anim->h;
+		if (anim->prev_disp_frame) {
+			MemFree(anim->prev_disp_frame, framesize);
+		}
+		if (anim->disp_frame) {
+			MemFree(anim->disp_frame, framesize);
+		}
+
+		framesize = ((anim->w + 1) & (~1)) * anim->bpp * anim->h;
+		if (anim->prevframe) {
+			if (anim->curframe) {	// LucyG 2017-09-11 memory leak
+				MemFree(anim->curframe, framesize);
+			}
+			MemFree(anim->prevframe, framesize);
+		}
+		if (anim->frame) {
+			for (i = 0; i < anim->nframes; i++) {
+				if (anim->frame[i].data) {
+					MemFree(anim->frame[i].data, anim->frame[i].datasize);
+				}
+				if (anim->frame[i].cmap) {
+					MemFree(anim->frame[i].cmap, (1 << anim->bpp) * 3);
+				}
+			}
+			MemFree(anim->frame, sizeof(iffanim_frame) * anim->nframes);	// LucyG 2017-11-09 size was wrong
+		}
+		if (anim->audio.dataoffset) {
+			MemFree(anim->audio.dataoffset, sizeof(int) * anim->audio.n);
+		}
+		if (anim->audio.data) {
+			MemFree(anim->audio.data, anim->audio.datasize);
+		}
+		MemFree(anim, sizeof(IffAnim));
+	}
+}
+
+//src must be in original bitplanar format, destination is chunky
+//cmap pointer must point to existing palette (R,G,B format)
+//"hambits" must be 6 or 8
+static int IffAnim_ConvertHamTo24bpp(IffAnim *anim, void *dst_, void *src_, void *cmap_, int w, int h, int hambits, int dst_pitch)
+{
+	int i, j, k;        //loop counter
+	int data, mode;   //parts of a HAM value
+ 	char colbuf[3];    //color component buffer: R,G,B
+ 	unsigned char *dstL = (unsigned char*)dst_; //start of current line in destination
+	unsigned char *srcL = (unsigned char*)src_; //start of current line in source
+	unsigned char *src,*dst;                    //working pointers
+ 	int bitpos;               //bit position in a plane of the soure data
+	char *cmap = (char *)cmap_;
+ 	int bitplane_pitch = (w + 15) / 16 * 2;     //pitch of a bitplane multiple of 16 bit  in bytes
+	int src_pitch = bitplane_pitch * hambits;   //pitch of line of bitplanes
+ 	int modeshift = hambits - 2;           //to shift mode bits into correct useful position
+	int datamask =  (1 << modeshift) - 1;  //to mask mode bits
+	int datashift = 10 - hambits;          //to shift the data to upper bits for 8bit color component value
+
+	if ((hambits != 8) && (hambits != 6)) {
+		return(FALSE);
+	}
+
+	for (j = 0; j < h; j++) { // for every line
+		dst = dstL;
+		memcpy(colbuf, cmap, 3);  //set to border color (index 0)
+		for (i = 0; i < w; i++) {   //for every pixel of line
+			data = 0;
+			bitpos = i;
+			src = srcL + (bitpos / 8);     //position of the first byte to read
+			bitpos = 7 - (bitpos & 0x7);
+			for (k = 0; k < hambits; k++) {
+				data |= ((*src >> bitpos) & 0x1) << k;  //shift to bit position 0, then to it's right position
+				src += bitplane_pitch;
+			}
+			mode = data >> modeshift;   //upper 2 bits
+			data = data & datamask;     //lower 6 bits
+			//change color component
+			switch (mode) {
+				case 0x0: memcpy(colbuf, cmap + (data * 3), 3); break; //RGB values from color map
+				case 0x1: colbuf[2] = data << datashift; break;    //change blue upper bits
+				case 0x2: colbuf[0] = data << datashift; break;    //change red upper bits
+				case 0x3: colbuf[1] = data << datashift; break;    //change green upper bits
+			}
+			memcpy(dst, colbuf, 3); //write RGB color to dst
+			dst += 3;
+		}
+		dstL += dst_pitch;
+		srcL += src_pitch;
+	} 
+	return(TRUE);
+}
+
+//convert a bitplanar frame to chunky
+//converts also bits per pixel (low to high only, make sure: bitssrc <= bitsdst)
+static int IffAnim_BitplanarToChunky(IffAnim *anim, void *dst_, void *src_, int w, int h, int bitssrc, int bitsdst, int dst_pitch)
+{
+	unsigned char *dst = (unsigned char *)dst_;
+	unsigned char *src = (unsigned char *)src_;
+	int i, j, k;
+	int bitval;     //for storing a bit
+	int srcBitOfs;  //offset from beginning of line of source in bits
+	int dstBitOfs;  //offset from beginning of line of dest. in bits
+	int downshift;
+	int BitPlaneRowLen = ((w + 15) >> 4) << 4; //for single bitplane, in bits
+	int LineLenSrc = (BitPlaneRowLen >> 3) * bitssrc; //in bytes
+	int LineLenDst = dst_pitch;    //in bytes
+	//number of padding bits per pixel (for bpp conversion)
+	int padbits = bitsdst - bitssrc;
+
+	for (k = 0; k < h; k++) {
+		memset(dst, 0, LineLenDst);
+		dstBitOfs = 0;
+		for (j = 0; j < w; j++) {
+			//for all bits of a pixel
+			srcBitOfs = j;
+			downshift = 7 - (srcBitOfs & 0x7);   //bit order in a bitplane byte: 0x1 masks bit 7, 0x80 masks bit 0 of color index
+			for (i = 0; i < bitssrc; i++) {
+				bitval = (src[srcBitOfs >> 3] >> downshift)  &  0x1;   //get bit from bitplane
+				dst[dstBitOfs >> 3] |= bitval << i;                    //write bit to chunky buffer
+				dstBitOfs++; 
+				srcBitOfs += BitPlaneRowLen;
+			}
+			dstBitOfs += padbits;
+		}
+		src += LineLenSrc;
+		dst += LineLenDst;
+	}
+	return(TRUE);
+}
+
+//decode RLE ("byterun" aka "packer", aka "PackBits" on Macintosh) compressed line
+//normally only the first frame is packed with it (except delta method 0 or 1)
+//mask plane is ignored (if available)
+static int IffAnim_DecodeByteRun(IffAnim *anim, void *dst_, void *data_, int datasize, int w, int h, int bpp, int mask)
+{
+	int i, j;
+	char *dst = (char*)dst_;   //destination (uncompressed)
+	char *src = (char*)data_;  //byte code (compressed)
+	int planepitch;     //pitch of a bitplane
+	int linepitch;      //pitch of a scanline with mask plane
+	int n, val;
+	int posdst;         //write position in dst
+	int possrc;         //read position in src
+ 
+	planepitch = (w + 15) / 16 * 2;   //pitch of a plane
+	linepitch = planepitch * bpp;     //pitch of a line without mask
+	if (mask == 1) {
+		linepitch += planepitch;        //add mask plane pitch to line pitch
+	}
+	if (!dst || !src) {
+		return(FALSE);
+	}
+	possrc = 0;   //position in src buffer
+
+	//for each line decode to dst buffer
+	for (i = 0; i < h; i++) {
+		posdst = 0;
+		j = planepitch * bpp;  //number of bytes for the scanline to decode (without mask)
+		//while scanline data is not decoded
+		while (j > 0) {
+			n = src[possrc++];   //get type
+			if (n >= 0) {         //copy number of bytes
+				n = n + 1;
+				if (n > j) {         //overflow protection
+					memcpy(dst + posdst, src + possrc, j);
+				} else {
+					memcpy(dst + posdst, src + possrc, n);
+				}
+				possrc += n;
+			} else if (n != -128) { //multiple times the same byte value
+				n = -n + 1;
+				val = src[possrc++];
+				if (n > j) {        //overflow protection
+					memset(dst + posdst, val, j);
+				} else {
+					memset(dst + posdst, val, n);
+				}
+			}
+			posdst += n;
+			j -= n;
+		}
+		dst += planepitch * bpp;                 //set pointer to beginning of next line
+	}
+	return(TRUE);
+}
+
+// Decode Byte Vertical Delta compression (compression 5)
+static int IffAnim_DecodeByteVerticalDelta(IffAnim *anim, void *dst_, void *data_, int w, int bpp)
+{
+	unsigned char *data = (unsigned char *)data_;
+	char *dst = (char*)dst_;
+	int i, j, k;       //loop counter
+	int ofsdst;      //offset in destination buffer
+	int ofssrc;      //offset in compressed data (delta chunk)
+	int op, val;     //holds opcode , data value
+	//width of a plane within a line in bytes (number of columns in a plane)
+	int ncolumns = ((w + 15) / 16) * 2;
+	//total len of a line in destination buffer, in bytes
+	int dstpitch = ncolumns * bpp;
+
+	//for every plane
+	for(k = 0; k < bpp; k++) {
+		//get offset (pointer) to compressed opcodes and data of current plane
+		ofssrc = k * 4;
+		ofssrc = (data[ofssrc] << 24) | (data[ofssrc + 1] << 16) | (data[ofssrc + 2] << 8) | data[ofssrc + 3];
+		if (ofssrc) {   //no change in plane if pointer index is 0
+			//for each column of a plane (column: a byte from every line -> vertically)
+			for (j = 0; j < ncolumns; j++) {
+				ofsdst = j + k * ncolumns;   //set dst offset for current column, a column starts in the first scanline
+				//get number of ops for the column and interpret
+				for (i = data[ofssrc++]; i > 0; i--) {
+					op = data[ofssrc++];      //get opcode
+					//if SAME_OP, opcode 0
+					if (op == 0) {
+						op =  data[ofssrc++];  //number of same bytes
+						val = data[ofssrc++];
+						while (op) {
+							dst[ofsdst] = val;
+							ofsdst += dstpitch;
+							op--;
+						}
+					} else if (op < 0x80) { //if SKIP_OP, high bit is 0
+						ofsdst += op * dstpitch;
+					} else { //if UNIQ_OP, high bit is set
+						op &= 0x7f;  //set high bit to 0
+						while (op) {
+							dst[ofsdst] = data[ofssrc++];
+							ofsdst += dstpitch;
+							op--;
+						}
+					}
+				} //end for all ops
+			}  //end for all columns
+		}
+	} // end for all planes
+	return(TRUE);
+}
+
+//decode delta 7 long or short
+static int IffAnim_DecodeLSVerticalDelta7(IffAnim *anim, void *dst_, void *data_, int w, int bpp, int long_data)
+{
+	unsigned char *data = (unsigned char *)data_;  //source buffer
+	char *dst = (char*)dst_;
+	int i, j;
+	unsigned long p_da;     //offset to data in source
+	unsigned long p_op;     //offset to opcode in source buffer
+	int ofsdst;        //offset in destination buffer in bytes
+	int op;            //holds opcode
+	int opcnt;         //op counter
+	short val16;     //holds 16 bit data
+	long val32;     //holds 32 bit data
+	int t;             //help variable
+	int ncolumns;      //number of columns per bitplane (total number of columns for "long" data), each with size "wordsize"
+	int wordsize;      //bytes for one data word: 32 (long) or 16 bit (short)
+	int dstpitch;      //length of a scanline in destination buffer in bytes
+	int half = FALSE; //last column maybe only with 16 instead of 32 bits
+
+	if (long_data) {
+		wordsize = 4;              
+		ncolumns = (w + 31) / 32;
+		if (((w + 15) / 16 * 2) != ((w + 31) / 32 * 4)) {  //relating to the width of a video frame, possibly for the last column of each plane one must copy only 16 bit words, 
+			half = TRUE;
+		}
+	} else {
+		wordsize = 2;
+		ncolumns = (w + 15) / 16;
+	}
+	dstpitch = ((w + 15) / 16 * 2) * bpp;
+
+	//for every plane
+	for (i = 0; i < bpp; i++) {
+		//get 32 bit offsets (pointers) to data and opcodes for the current plane, stored as Big Endian
+		t = i * 4;
+		p_op = (data[t] << 24) | (data[t + 1] << 16) | (data[t + 2] << 8) | data[t + 3];
+		p_da = (data[t + 32] << 24) | (data[t + 33] << 16) | (data[t + 34] << 8) | data[t + 35];
+		if (p_op) {  //if opcode pointer index not 0 => plane is modified
+			//for each column
+			for (j = 0; j < ncolumns; j++) {
+				//set dst byte start offset for current column, a column starts in the first scanline
+				ofsdst = (j + i * ncolumns) * wordsize;
+				//correct if last column has only 16 bit
+				if (half) {
+					ofsdst -= (2 * i);
+				}
+				//get number of ops for the column
+				opcnt = data[p_op++];
+				//interpret all ops of the column
+				while (opcnt) {
+					op = data[p_op++];   //fetch opcode
+					if ((wordsize == 2) || (half && ((j + 1) == ncolumns))) {   //2 bytes per data word, or 16 bit of last column with 32 bit byte wordsize
+						//SAME_OP, opcode is 0
+						if (op == 0) {
+							op = data[p_op++];   //number of same words
+							val16 = *((short *)(data + p_da));  //get data word
+							p_da += wordsize;
+							while (op) {
+								*((short *)(dst + ofsdst)) = val16;
+								ofsdst += dstpitch;
+								op--;
+							}
+						} else if (op < 128) {
+							//SKIP_OP, high bit is not set
+							ofsdst += dstpitch * op;
+						} else {
+							//UNIQ_OP, high bit is set
+							op &= 0x7f;  //mask out high bit and use as counter
+							while (op) {
+								*((short *)(dst + ofsdst)) = *((short *)(data + p_da));
+								p_da += wordsize;
+								ofsdst += dstpitch;
+								op--;
+							}
+						}
+					} else {   //4 bytes per data word
+						//SAME_OP, opcode is 0
+						if (op == 0) {
+							op = data[p_op++];   //number of same words
+							val32 = *((long *)(data + p_da));  //get data word
+							p_da += 4;
+							while (op) {
+								*((long *)(dst + ofsdst)) = val32;
+								ofsdst += dstpitch;
+								op--;
+							}
+						} else if (op < 128) {
+							//SKIP_OP, high bit is not set
+							ofsdst += dstpitch * op;
+						} else {
+							//UNIQ_OP, high bit is set 
+							op &= 0x7f;
+							while (op) {
+								*((long *)(dst + ofsdst)) = *((long *)(data + p_da));
+								p_da += 4;
+								ofsdst += dstpitch;
+								op--;
+							}
+						}
+					}
+					opcnt--;
+				} //end for number of ops
+			}
+		}
+	}
+	return(TRUE);
+}
+
+// decompress delta mode 8 long or short
+static int IffAnim_DecodeLSVerticalDelta8(IffAnim *anim, void *dst_, void *data_, int w, int bpp, int long_data)
+{
+	unsigned char *data = (unsigned char *)data_;  //source buffer
+	char *dst = (char*)dst_;
+	int i, j;
+	unsigned long p_op;       //offset to opcode in source buffer
+	int ofsdst;          //offset in destination buffer in bytes
+	unsigned long op;         //holds opcode
+	unsigned int opcnt;  //op counter
+	short val16;       //holds 16 bit data
+	long val32;       //holds 32 bit data
+	int t;               //help variable
+	int ncolumns;        //number of columns per bitplane (total number of columns for "long" data), each with size "wordsize"
+	int wordsize;        //bytes for one data word: 32 (long) or 16 bit (short)
+	int dstpitch;        //length of a scanline in destination buffer in bytes
+	int half = FALSE;   //last column maybe only with 16 instead of 32 bits
+
+	if (long_data) {
+		wordsize = 4;              
+		ncolumns = (w + 31) / 32;
+		if (((w + 15) / 16 * 2) != ((w + 31) / 32 * 4)) {  //relating to the width of a video frame, possibly for the last column of each plane one must copy only 16 bit words, 
+			half = TRUE;
+		}
+	} else {
+		wordsize = 2;
+		ncolumns = (w + 15) / 16;
+	}
+	dstpitch = ((w + 15) / 16 * 2) * bpp;
+
+	//for every plane
+	for (i = 0; i < bpp; i++) {
+		//get 32 bit offset (pointer) to opcodes for the current plane, stored as Big Endian
+		t = i * 4;
+		p_op = (data[t] << 24) | (data[t + 1] << 16) | (data[t + 2] << 8) | data[t + 3];
+		if (p_op) {  //if opcode pointer index not 0 => plane is modified
+			//for each column
+			for (j = 0; j < ncolumns; j++) {
+				//set dst byte start offset for current column, a column starts in the first scanline
+				ofsdst = (j + i * ncolumns) * wordsize;
+				if (wordsize == 2) {
+					opcnt = (data[p_op] << 8) | data[p_op + 1]; //get number of ops for the column
+				} else {
+					if (half) {
+						ofsdst -= (2 * i);                 //correct if last column has only 16 bit
+					}
+					opcnt = (data[p_op] << 24) | (data[p_op + 1] << 16) | (data[p_op + 2] << 8) | data[p_op + 3];
+				}
+				p_op += wordsize;
+				//interpret all ops of the column
+				while (opcnt) {
+					//fetch opcode
+					if (wordsize == 2) {
+						op = (data[p_op] << 8) | data[p_op + 1];   
+					} else {
+						op = (data[p_op] << 24) | (data[p_op + 1] << 16) | (data[p_op + 2] << 8) | data[p_op + 3];
+					}
+					p_op += wordsize;
+					if ((wordsize == 2) || (half && ((j + 1) == ncolumns))) {   //2 bytes per data word, or 16 bit of last column with 32 bit byte wordsize
+						//SAME_OP, opcode is 0
+						if (op == 0) {
+							op = (data[p_op] << 8) | data[p_op + 1]; //number of same words
+							p_op += 2;
+							val16 = *((short *)(data + p_op));      //get data word
+							p_op += 2;
+							while (op) {
+								*((short *)(dst + ofsdst)) = val16;
+								ofsdst += dstpitch;
+								op--;
+							}
+						} else if (op < 0x8000) {
+							//SKIP_OP, high bit is not set
+							ofsdst += dstpitch * op;
+						} else {
+							//UNIQ_OP, high bit is set 
+							op &= 0x7fff;   //mask out high bit and use as counter
+							while (op) {
+								*((short *)(dst + ofsdst)) = *((short *)(data + p_op));
+								p_op += 2;
+								ofsdst += dstpitch;
+								op--;
+							}
+						}
+					} else {   //4 bytes per data word
+						//SAME_OP, opcode is 0
+						if (op == 0) {
+							op = (data[p_op] << 24) | (data[p_op + 1] << 16) | (data[p_op + 2] << 8) | data[p_op + 3];   //number of same words
+							p_op += 4;
+							val32 = *((long *)(data + p_op));  //get data word
+							p_op += 4;
+							while (op) {
+								*((long *)(dst + ofsdst)) = val32;
+								ofsdst += dstpitch;
+								op--;
+							}
+						} else if (op < 0x80000000) {
+							//SKIP_OP, high bit is not set
+							ofsdst += dstpitch * op;
+						} else {
+							//UNIQ_OP, high bit is set 
+							op &= 0x7fffffff;
+							while (op) {
+								*((long *)(dst + ofsdst)) = *((long *)(data + p_op));
+								p_op += 4;
+								ofsdst += dstpitch;
+								op--;
+							}
+						}
+					}
+					opcnt--;
+				} //end for number of ops
+			}
+		}
+	}
+	return(TRUE);
+}
+
+/*
+The following function is an interpretation of the
+"Delta_J" code from " "xanim2801.tar.gz" (XAnim Revision 2.80.1).
+It is modified to draw to a bitplanar frame buffer (BODY data format) instead a
+chunky one, thus it fits better into a decoding pipeline.
+
+ char *dst,     //Image Buffer pointer (old frame data, BODY format)
+ void *delta_,  //delta data
+ int  w,        //width in pixels
+ int  h,        //height in pixels
+ int  bpp       //bits per pixel (depth, number of bitplanes)
+*/
+static int IffAnim_DecodeDeltaJ(IffAnim *anim, void *dst_, void *delta_, int w, int h, int bpp)
+{
+	unsigned char *image = (unsigned char*)dst_;
+	unsigned char *delta = (unsigned char*)delta_;
+	long   pitch;     //scanline width in bytes
+	unsigned char   *i_ptr;    //used as destination pointer into the frame buffer
+	unsigned long  type, r_flag, b_cnt, g_cnt, r_cnt; 
+	int b, g, r, d;    //loop counters
+	unsigned long  offset;    //byte offset
+	int planepitch_byte = (w + 7) / 8;      //plane pitch as multiple of 8 bits, needed to calc the right offset
+	int planepitch = ((w + 15) / 16) * 2;   //width of a line of a single bitplane in bytes (multiple of 16 bit)
+	int kludge_j;
+	int exitflag = 0;
+	pitch = planepitch * bpp;               //size of a scanline in bytes (bitplanar BODY buffer)
+	//for pixel width < 320 we need the horizontal byte offset in a bitplane on a 320 pixel wide screen
+	if (w < 320) {
+		kludge_j = (320 - w) / 8 / 2;  //byte offset
+	} else {
+		kludge_j = 0;
+	}
+	//loop until block type 0 appears (or any unsupported type with unknown byte structure)
+	while (!exitflag) {
+		//read compression type and reversible_flag ("reversible" means XOR operation) 
+		type = ((delta[0]) << 8) | (delta[1]);
+		delta += 2;
+		//switch on compression type
+		switch (type) {
+			case 0:
+				exitflag = 1;
+			break;  // end of list, delta frame complete -> leave
+			case 1:
+				//read reversible_flag
+				r_flag = (*delta++) << 8; r_flag |= (*delta++);
+				// Get byte count and group count 
+				b_cnt = (*delta++) << 8; b_cnt |= (*delta++);
+				g_cnt = (*delta++) << 8; g_cnt |= (*delta++);
+				// Loop through groups
+				for (g = 0; g < g_cnt; g++) {
+					offset = (*delta++) << 8; offset |= (*delta++);
+					//get real byte offset in IFF BODY data
+					if (kludge_j) {
+						offset = ((offset/(320 / 8)) * pitch) + (offset % (320/ 8)) - kludge_j;
+					} else {
+						offset = ((offset/planepitch_byte) * pitch) + (offset % planepitch_byte);
+					}
+					i_ptr = image + offset;  //BODY data pointer
+					//read and apply "byte count" * "bpp" bytes (+ optional pad byte for even number of bytes)
+					//1 byte for each plane -> modifies up to 8 bits
+					// byte count represents number of rows
+
+					// Loop thru byte count
+					for (b = 0; b < b_cnt; b++) {  //number of vertical steps
+						for (d = 0; d < bpp; d++) {  //loop thru planes, a delta byte for each plane
+							if (r_flag) {
+								*i_ptr ^= *delta++;
+							} else {
+								*i_ptr  = *delta++;
+							}
+							i_ptr += planepitch;    //go to next plane
+						} // end of depth loop 
+					} // end of byte loop
+					if ((b_cnt * bpp) & 0x1) {
+						delta++;  //read pad byte (group contains even number of bytes)
+					}
+				} //end of group loop 
+			break;
+			case 2:
+				//read reversible_flag
+				r_flag = (*delta++) << 8; r_flag |= (*delta++);
+
+				// Read row count, byte count and group count
+				r_cnt = (*delta++) << 8; r_cnt |= (*delta++);
+				b_cnt = (*delta++) << 8; b_cnt |= (*delta++);
+				g_cnt = (*delta++) << 8; g_cnt |= (*delta++);
+ 
+				// Loop through groups
+				for (g = 0; g < g_cnt; g++) {
+					offset = (*delta++) << 8; offset |= (*delta++);
+					//get real byte offset in IFF BODY data
+					if (kludge_j) {
+						offset = ((offset/(320 / 8)) * pitch) + (offset % (320/ 8)) - kludge_j;
+					} else {
+						offset = ((offset/planepitch_byte) * pitch) + (offset % planepitch_byte);
+					}
+					// Loop through rows
+					for (r = 0; r < r_cnt; r++) {
+						for (d = 0; d < bpp; d++) { // loop thru planes
+							i_ptr = image + offset + (r * pitch) + d * planepitch;
+             
+							for (b = 0; b < b_cnt; b++) { // loop through byte count
+								if (r_flag) {
+									*i_ptr ^= *delta++;
+								} else {
+									*i_ptr  = *delta++;
+								}
+								i_ptr++;      // data is horizontal
+							} // end of byte loop
+						} // end of depth loop
+					} // end of row loop
+					if ((r_cnt * b_cnt * bpp) & 0x01) {
+						delta++; // pad to even number of bytes
+					}
+				} // end of group loop
+			break;
+			default: //unknown type
+				//exitflag = 1;
+				return(FALSE);
+			break;
+		}  // end of type switch
+	}  // end of while loop
+	return(TRUE);
+}
+
+int IffAnim_CurrentFrameIndex(IffAnim *anim)
+{
+	if (anim->loopanim && (anim->frameno >= (anim->nframes - 2))) {
+		return(anim->frameno - (anim->nframes - 2));
+	}
+	return(anim->frameno);
+}
+
+static long fget32(FILE *file)
+{
+	return((fgetc(file) << 24) | (fgetc(file) << 16) | (fgetc(file) << 8) | fgetc(file));
+}
+
+static int fget16(FILE *file)
+{
+	return((fgetc(file) << 8) | fgetc(file));
+}
+
+//find the chunk with the 4 byte id of "idreq" within a range from the current file position
+//searches only in one level, file pointer must point to a chunk id inside this level
+//returns start position in file of requested chunk and positions the file pointer to it's id
+//not requested chunks are skipped
+//returns -1 if chunk not found within range
+static int IffAnim_FindChunk(IffAnim *anim, FILE *file, char *idreq, int len)
+{
+	char id[4];
+	int chunksize;
+	int pos;
+	
+	pos = ftell(file);
+	len += pos;
+	while (pos < len) {
+		fread(id, 1, 4, file);
+		if (!memcmp(id, idreq, 4)) {
+			break;
+		}
+		chunksize = fget32(file);
+		chunksize = (chunksize + 1) & (~1);
+		pos += chunksize + 8;
+		fseek(file, chunksize, SEEK_CUR);
+	}
+	if (pos >= len) {
+		return(-1);
+	}
+	fseek(file, pos, SEEK_SET);
+	return(pos);
+}
+
+//verify chunk structure
+//count and return number of frames in the file
+static int IffAnim_GetNumFrames(IffAnim *anim, FILE *file)
+{
+	char idbuf[4];
+	int chunksize;
+	int numframes;
+	
+	numframes = 0;
+	fseek(file, 0, SEEK_SET);
+	//check for FORM id
+	fread(idbuf, 1, 4, file);
+	if (memcmp(idbuf, "FORM", 4)) {
+		return(-1);
+	}
+	fseek(file, 4, SEEK_CUR);
+	//check for ANIM id
+	fread(idbuf, 1, 4, file);
+	if (memcmp(idbuf, "ANIM", 4)) {
+		return(-1);
+	}
+	//count number of FORM...ILBM chunks (frames) within file
+	do {
+		memset(idbuf, 0, 4);
+		//check for FORM id
+		fread(idbuf, 1, 4, file);
+		if (memcmp(idbuf, "FORM", 4)) {
+			break;
+		}
+		chunksize = fget32(file);
+		chunksize = (chunksize + 1) & (~1);
+		//check for ILBM id
+		fread(idbuf, 1, 4, file);
+		if (memcmp(idbuf, "ILBM", 4)) {
+			break;
+		}
+		//skip ILBM
+		fseek(file, chunksize - 4, SEEK_CUR);
+		//frame found
+		numframes++;
+	} while (TRUE);
+	return(numframes);
+}
+
+static int IffAnim_read_ANHD(IffAnim *anim, FILE *file, iffanim_frame *frame)
+{
+	fseek(file, 8, SEEK_CUR);
+	frame->delta_compression = fgetc(file);
+	frame->mask = fgetc(file);
+	frame->w = fget16(file);
+	frame->h = fget16(file);
+	frame->x = fget16(file);
+	frame->y = fget16(file);
+	fseek(file, 4, SEEK_CUR);
+	frame->reltime = fget32(file);
+	frame->interleave = fgetc(file);
+	fseek(file, 1, SEEK_CUR);
+	frame->bits = fget32(file);
+	return(TRUE);
+}
+
+static int IffAnim_read_CMAP(IffAnim *anim, FILE *file, iffanim_frame *frame)
+{
+	int j;
+	int ncolors;
+	int palsize;
+
+	fseek(file, 8, SEEK_CUR);
+	//allocate mem for cmap
+	ncolors = 1 << anim->bpp;
+	palsize = ncolors * 3;   //RGB entries
+	frame->cmap = (char *)MemAlloc(palsize);
+	if (!frame->cmap) {
+		return(FALSE);
+	}
+	//read cmap, handle EHB mode (second half are darker versions of the previous colors)
+	if (anim->ehb) {
+		palsize = palsize / 2;
+		fread(frame->cmap, 1, palsize, file);
+		for (j = 0; j < palsize; j++) {
+			frame->cmap[palsize + j] = frame->cmap[j] / 2;  // every color value divided by 2 (half brightness)
+		}
+	} else {
+		fread(frame->cmap, 1, palsize, file);
+	}
+	return(TRUE);
+}
+
+/* - make audio interleaved -> reordering
+  current sample point order:    0L,1L,2L,3L,... | 0R,1R,2R,3R,...
+  requested sample point order:  0L,0R,1L,1R,2L,2R,3L,3R,...
+
+ - structure of bit depth other than 8 ist unknown, although 1..32 should be supported as the format spec. says
+ -> support only for 8 and 16 bit
+*/
+static int IffAnim_InterleaveStereo(IffAnim *anim, char *data, int datasize, int bps)
+{
+	int i;
+	int nframes;
+	char *newdata;
+ 
+	if (!data) {
+		return(FALSE);
+	}
+	nframes = datasize / 2 / ((bps + 7) / 8);  //number of sample frames in "data"
+	newdata = (char *)MemAlloc(datasize);
+	if (!newdata) {
+		return(FALSE);
+	}
+	//reorder
+	if (bps <= 8) { //8 bit per point
+		char *sl8 = (char *)data;
+		char *sr8 = (char *)(data + (datasize / 2));
+		char *dst8 = (char *)newdata;
+		for (i = 0; i < nframes; i++) {
+			*dst8 = sl8[i];
+			dst8[1] = sr8[i];
+			dst8 += 2;
+		}
+	} else {        //16 bit per point
+		short *sl16  = (short *)data;
+		short *sr16  = (short *)(data + (datasize / 2));
+		short *dst16 = (short *)newdata;
+		for (i = 0; i < nframes; i++) {
+			*dst16 = sl16[i];
+			dst16[1] = sr16[i];
+			dst16 += 2;
+		}
+	}
+	//copy reordered points to old buffer
+	memcpy(data, newdata, datasize);
+	MemFree(newdata, datasize);
+	return(TRUE);
+}
+
+static int IffAnim_read_SBDY(IffAnim *anim, FILE *file, int searchlen, char **audiobuf, int *audiobufsize)
+{
+	char *tptr;    //help pointer
+	int chunksize;
+	int startpos;
+
+	if (!audiobuf || !audiobufsize) {
+		return(FALSE);
+	}
+	startpos = ftell(file);
+	//file pointer should point to first SBDY chunk
+	fseek(file, 4, SEEK_CUR);
+	chunksize = fget32(file);
+	*audiobuf = (char *)MemAlloc(chunksize);
+	if (!(*audiobuf)) {
+		return(FALSE);
+	}
+	*audiobufsize = chunksize;
+	fread(*audiobuf, 1, chunksize, file);
+	//interleave stereo channels
+	if ((anim->audio.nch == 2) && anim->audio.bps) {
+		IffAnim_InterleaveStereo(anim, *audiobuf, chunksize, anim->audio.bps);
+	}
+	//in case there is a second SBDY chunk, join the data to first one
+	if (IffAnim_FindChunk(anim, file, "SBDY", searchlen - ((int)ftell(file) - startpos)) != -1) {
+		fseek(file, 4, SEEK_CUR);
+		chunksize = fget32(file);
+		tptr = (char *)MemAlloc(*audiobufsize + chunksize);
+		if (!tptr) {
+			return(FALSE);
+		}
+		memcpy(tptr, *audiobuf,  *audiobufsize);       //copy data of first SBDY
+		fread(tptr + *audiobufsize, 1, chunksize, file);  //read first SBDY data to mem
+		MemFree(*audiobuf, *audiobufsize);  //delete old, too small buffer
+		*audiobuf = tptr;    //set pointer to new buffer
+		//interleave stereo channels
+		if ((anim->audio.nch == 2) && anim->audio.bps) {
+			IffAnim_InterleaveStereo(anim, *audiobuf + *audiobufsize, chunksize, anim->audio.bps);
+		}
+		*audiobufsize += chunksize; 
+	}
+	anim->audio.datasize += *audiobufsize;
+	return(TRUE);
+}
+
+//check file for valid frames, read to mem, get lentime
+static int IffAnim_ReadFrames(IffAnim *anim, FILE *file)
+{
+	char **tabuf;    //temporary audio data buffer list, an allocated block for each frame
+	int *tabufsize;  //list of size of a block in bytes (for each frame)
+	int i, l;
+	int chunksize;
+	int ILBMsize;   //size of ILBM chunk
+	int filepos;    //marks position in file 
+	int pos;        //for temporary use
+	int body;
+	char *framemem;
+	char *ptr;
+	int sync;
+
+	anim->lentime = 0;
+	memset(anim->dcompressions, 0, sizeof(anim->dcompressions));
+
+	//allocate / init frame list
+#ifdef THECLOU_DEBUG_ALLOC
+	anim->frame = (iffanim_frame *)MemAllocDbg(sizeof(iffanim_frame) * anim->nframes, __FILE__, "IffAnim_ReadFrames 1");
+#else
+	anim->frame = (iffanim_frame *)MemAlloc(sizeof(iffanim_frame) * anim->nframes);
+#endif
+	if (!anim->frame) {
+		return(FALSE);
+	}
+	/*
+	for (i = 0; i < nframes; i++) {
+		frame[i].cmap = NULL;
+		frame[i].data = NULL;
+	}
+	*/
+	//set get pointer of file to first frame
+	fseek(file, 8, SEEK_SET);
+	if (IffAnim_FindChunk(anim, file, "ANIM", 100) < 0) {
+		return(FALSE);
+	}
+	fseek(file, 4, SEEK_CUR);
+	//for all frames
+	for (i = 0; i < anim->nframes; i++) {
+		fseek(file, 4, SEEK_CUR);
+		//get size of ILBM chunk
+		ILBMsize = fget32(file);
+		ILBMsize -= 4;
+		//save ILBM start position
+		fseek(file, 4, SEEK_CUR);
+		filepos = ftell(file);
+		//the following is only for frame 0
+		if (!i) {
+			//search for SXHD (audio header)
+			//init audio struct
+			if (IffAnim_FindChunk(anim, file, "SXHD", ILBMsize) >= 0) {
+				anim->audio.n = anim->nframes;
+#ifdef THECLOU_DEBUG_ALLOC
+				tabuf = (char **)MemAllocDbg(sizeof(char *) * anim->audio.n, __FILE__, "IffAnim_ReadFrames 2");        //temporary audio data buffer list, an allocated block for each frame
+#else
+				tabuf = (char **)MemAlloc(sizeof(char *) * anim->audio.n);        //temporary audio data buffer list, an allocated block for each frame
+#endif
+				if (!tabuf) {
+					return(FALSE);
+				}
+#ifdef THECLOU_DEBUG_ALLOC
+				tabufsize = (int *)MemAllocDbg(sizeof(int) * anim->audio.n, __FILE__, "IffAnim_ReadFrames 3");     //list of size of a block in bytes (for each frame)
+#else
+				tabufsize = (int *)MemAlloc(sizeof(int) * anim->audio.n);     //list of size of a block in bytes (for each frame)
+#endif
+				if (!tabufsize) {
+					return(FALSE);
+				}
+				/*
+				for (j = 0; j < audio.n; j++) {  //init dynamically allocated lists
+					tabuf[j] = NULL;
+					tabufsize[j] = 0;
+				}
+				*/
+				fseek(file, 8, SEEK_CUR);
+				anim->audio.bps = (unsigned char)fgetc(file);
+				anim->audio.volume = (float)fgetc(file) / 64.0f;
+				fseek(file, 13, SEEK_CUR);
+				anim->audio.nch = fgetc(file);     //only "1" or "2" supported
+				anim->audio.freq = fget32(file);
+			}
+			fseek(file, filepos, SEEK_SET);  //back to ilbm chunk start
+			//search for BMHD
+			pos = IffAnim_FindChunk(anim, file, "BMHD", ILBMsize);
+			if (pos < 0) {
+				Log("\tBMHD chunk not found in first frame");
+				return(FALSE);
+			}
+			fseek(file, 8, SEEK_CUR);
+			//read relevant format info
+			anim->w = fget16(file);
+			anim->h = fget16(file);
+			fseek(file, 4, SEEK_CUR);
+			anim->bpp = fgetc(file); // bitplanes, same as bits per pixel
+			anim->mask = fgetc(file);
+			anim->compressed = fgetc(file);
+			anim->framesize = (((anim->w + 15) / 16) * 2) * anim->bpp * anim->h; //multiple of 16 bit per plane
+			//check compression
+			if (anim->compressed > 1) {
+				Log("\tUnknown compression of first frame");
+				return(FALSE);
+			}
+			fseek(file, filepos, SEEK_SET);  //back to ilbm chunk start
+			//search for CAMG chunk (for identifying HAM mode)
+			anim->ham = FALSE;
+			anim->ehb = FALSE;
+			pos = IffAnim_FindChunk(anim, file, "CAMG", ILBMsize);
+			if (pos >= 0) {
+				fseek(file, pos + 10, SEEK_SET);
+				//check if HAM or EHB mode is set
+				if (fgetc(file) & 0x8) {
+					anim->ham = TRUE;
+				}
+				if (fgetc(file) & 0x80) {
+					anim->ehb = TRUE;
+				}
+			}
+			fseek(file, filepos, SEEK_SET);  //back to ilbm chunk start
+			//search & read CMAP
+			if (anim->bpp <= 8) {
+				pos = IffAnim_FindChunk(anim, file, "CMAP", ILBMsize);
+				if (pos < 0) {
+					Log("\tNo CMAP chunk found in first frame (bit resolution requires a CMAP)");
+					return(FALSE);
+				}
+				if (!IffAnim_read_CMAP(anim, file, &(anim->frame[i]))) {
+					return(FALSE);
+				}
+				fseek(file, filepos, SEEK_SET);  //back to ilbm chunk start
+			}
+		} else {
+			//search for new CMAP
+			pos = IffAnim_FindChunk(anim, file, "CMAP", ILBMsize);
+			if (pos >= 0) {
+				IffAnim_read_CMAP(anim, file, &(anim->frame[i]));
+			}
+			fseek(file, filepos, SEEK_SET);
+		}
+		//search and read SBDY
+		if ((anim->audio.nch > 0) && (anim->audio.n > i) && tabuf && tabufsize) {
+			//read first SBDY
+			if (IffAnim_FindChunk(anim, file, "SBDY", ILBMsize) >= 0) {
+				if (IffAnim_read_SBDY(anim, file, ILBMsize, &(tabuf[i]), &(tabufsize[i])) < 0) {  //if error occurs
+					break;
+				}
+			}
+			fseek(file, filepos, SEEK_SET);  //back to ilbm chunk start
+		}
+		//search & read ANHD
+		pos = IffAnim_FindChunk(anim, file, "ANHD", ILBMsize);
+		if (pos >= 0) {
+			IffAnim_read_ANHD(anim, file, &(anim->frame[i]));
+		} else {
+			anim->frame[i].reltime = 0;
+			anim->frame[i].delta_compression = 0;
+		}
+		anim->lentime += anim->frame[i].reltime;
+		fseek(file, filepos, SEEK_SET);  //back to ilbm chunk start
+		//check DLTA compression
+		if ((anim->frame[i].delta_compression != 0) &&
+			(anim->frame[i].delta_compression != 5) &&
+			(anim->frame[i].delta_compression != 7) &&
+			(anim->frame[i].delta_compression != 8) &&
+			(anim->frame[i].delta_compression != 74)) {
+			Log("\tDLTA compression method %d is not supported but used in frame %d\n", anim->frame[i].delta_compression, i);
+			break;   //-> at least show the already loaded frames with supported compression
+		}
+		//search & read BODY or DLTA chunk
+		body = FALSE;
+		pos = IffAnim_FindChunk(anim, file, "BODY", ILBMsize);
+		if (pos >= 0) {
+			body = TRUE;
+		} else {
+			fseek(file, filepos, SEEK_SET);
+			pos = IffAnim_FindChunk(anim, file, "DLTA", ILBMsize);
+			if (pos < 0) {
+				Log("\tno BODY or DLTA chunk found for frame %d\n", i);
+				break;    //we stop reading frames here, maybe some frames are already read
+			}
+		}
+		fseek(file, 4, SEEK_CUR);
+		//get chunksize, allocate data buffer, read data
+		chunksize = fget32(file);
+#ifdef THECLOU_DEBUG_ALLOC
+		anim->frame[i].data = (char *)MemAllocDbg(chunksize, __FILE__, "IffAnim_ReadFrames 4");
+#else
+		anim->frame[i].data = (char *)MemAlloc(chunksize);
+#endif
+		if (!anim->frame[i].data) {
+			Log("\tMemAlloc %d", chunksize);
+			break;
+		}
+		anim->frame[i].datasize = chunksize;
+		fread(anim->frame[i].data, 1, chunksize, file);
+		//decompress data from body chunks if RLE compressed, only "body" chunk data can be RLE compressed
+		if (body && anim->compressed) {
+			anim->framesize = ((anim->w + 15) / 16) * 2 * anim->bpp * anim->h;
+#ifdef THECLOU_DEBUG_ALLOC
+			framemem = (char *)MemAllocDbg(anim->framesize, __FILE__, "IffAnim_ReadFrames 5");  //memory for the RLE decompression is needed
+#else
+			framemem = (char *)MemAlloc(anim->framesize);  //memory for the RLE decompression is needed
+#endif
+			if (!framemem) {
+				Log("\tMemAlloc %d", anim->framesize);
+				break;
+			}
+			IffAnim_DecodeByteRun(anim, framemem, anim->frame[i].data, anim->frame[i].datasize, anim->w, anim->h, anim->bpp, anim->mask); 
+			MemFree(anim->frame[i].data, anim->frame[i].datasize);        //delete compressed data
+			anim->frame[i].data = framemem;      //insert decompressed data into framelist
+			anim->frame[i].datasize = anim->framesize; //update size of decompressed data
+			if ((anim->frame[i].delta_compression != 0) && (anim->frame[i].delta_compression != 1)) { //in some files the delta compression is not set correctly for the first BODY frame, only 0 (uncompressed) or 1 (XOR map) is allowed (which can be RLE compression although)
+				anim->frame[i].delta_compression = 0;       //assume 0 is the correct value
+			}
+		}
+		//set bit in compression mode list (body chunks aren't delta compressed)
+		anim->dcompressions[anim->frame[i].delta_compression] = 1;
+		//set file pointer to next frame
+		fseek(file, filepos + ILBMsize, SEEK_SET);
+	}
+	//correct number of frames (if there are any corrupt frames)
+	anim->nframes = i;
+	//copy audio to single buffer
+	if (anim->audio.datasize > 0) {
+#ifdef THECLOU_DEBUG_ALLOC
+		anim->audio.data = (char *)MemAllocDbg(anim->audio.datasize, __FILE__, "IffAnim_ReadFrames 6");
+#else
+		anim->audio.data = (char *)MemAlloc(anim->audio.datasize);
+#endif
+		ptr = anim->audio.data;
+#ifdef THECLOU_DEBUG_ALLOC
+		anim->audio.dataoffset = (int *)MemAllocDbg(sizeof(int) * anim->audio.n, __FILE__, "IffAnim_ReadFrames 7");
+#else
+		anim->audio.dataoffset = (int *)MemAlloc(sizeof(int) * anim->audio.n);
+#endif
+		sync = 0;
+		for (l = 0; l < anim->audio.n; l++) {
+			anim->audio.dataoffset[l] = sync;          //set audio start byte for current video frame
+			memcpy(ptr, tabuf[l], tabufsize[l]); //copy to single data buffer
+			MemFree(tabuf[l], tabufsize[l]);
+			ptr += tabufsize[l];
+			sync += tabufsize[l];
+		}
+		MemFree(tabuf, sizeof(char *) * anim->audio.n);
+		MemFree(tabufsize, sizeof(int) * anim->audio.n);
+	}
+	if (!i) {
+		return(FALSE);
+	}
+	return(TRUE);
+}
+
+static int IffAnim_PrintInfo(IffAnim *anim)
+{
+	int i, n, t;
+	char buffer[IFFANIM_FORMATINFO_BUFSIZE];
+	
+	sprintf(anim->formatinfo,
+		"number of frames: %d\n"
+		"width: %d\n"
+		"height: %d\n"
+		"bits per pixel (planar): %d\n"
+		"bits per pixel (chunky): %d\n"
+		"mask: %d\n"
+		"HAM: %s\n"
+		"EHB: %s\n"
+		"total time in 1/60 sec: %d\n",
+		anim->nframes, anim->w, anim->h, anim->bpp, anim->disp_bpp, anim->mask,
+		anim->ham ? "yes" : "no",
+		anim->ehb ? "yes" : "no",
+		anim->lentime);
+
+	//info about compressions
+	strcat(anim->formatinfo, "compressions: ");
+	if (anim->compressed) {
+		strcat(anim->formatinfo, "RLE,");
+	}
+	n = 0;
+	for (i = 0; i < 256; i++) {  //list all delta compression modes
+		if (anim->dcompressions[i]) {
+			n++;
+			if (n == 1) {
+				sprintf(buffer," %d", i);
+			} else {
+				sprintf(buffer,", %d", i);
+			}
+			strcat(anim->formatinfo, buffer);
+		}
+	}
+	strcat(anim->formatinfo, "\n");
+
+	if (IffAnim_GetAudioFormat(anim, NULL, NULL, NULL)) {
+		strcat(anim->formatinfo, "audio format:\n");
+		sprintf(buffer,
+			" channels: %d\n"
+			" bits per sample: %d\n"
+			" sample rate: %d\n",
+			anim->audio.nch, anim->audio.bps, anim->audio.freq);
+		strcat(anim->formatinfo, buffer);
+		if ((anim->audio.nch != 0) && (anim->audio.bps != 0)) {  //prevent division with 0
+			t = anim->audio.datasize / anim->audio.nch * 8 / anim->audio.bps;
+		} else {
+			t = 0;
+		}
+		sprintf(buffer, " number of sample frames: %d\n", t);
+		strcat(anim->formatinfo, buffer);
+	}
+	return(TRUE);
+}
+
+int IffAnim_SetLoopAnim(IffAnim *anim, int state)
+{
+	if (state && (anim->nframes >= 4)) {
+		anim->loopanim = TRUE;
+	} else {
+		anim->loopanim = FALSE;
+	}
+	return(anim->loopanim);
+}
+
+char *IffAnim_GetInfoText(IffAnim *anim)
+{
+	return(anim->formatinfo);
+}
+
+// decode frame from frame List, decide which decoding function to call
+//  "dstframe" : bitplanar frame buffer, each plane per line padded to multiple of 16 bit
+//  "index"    : frame number
+static int IffAnim_DecodeFrame(IffAnim *anim, char *dstframe, int index)
+{
+	if (index > anim->nframes) {
+		return(FALSE);
+	}
+	//decode frame
+	switch (anim->frame[index].delta_compression) {
+		//uncompressed
+		case 0:
+			memcpy(dstframe, anim->frame[index].data, anim->frame[index].datasize);
+			return(TRUE);
+		break;
+		//Byte vertical delta compression
+		case 5:
+			return(IffAnim_DecodeByteVerticalDelta(anim, dstframe, anim->frame[index].data, anim->w, anim->bpp));
+		break;
+		//Short/Long vertical delta method 7
+		case 7:
+			return(IffAnim_DecodeLSVerticalDelta7(anim, dstframe, anim->frame[index].data, anim->w, anim->bpp, (anim->frame[index].bits & 0x1) ? TRUE : FALSE));
+		break;
+		//Short/Long vertical delta method 8
+		case 8:
+			return(IffAnim_DecodeLSVerticalDelta8(anim, dstframe, anim->frame[index].data, anim->w, anim->bpp, (anim->frame[index].bits & 0x1) ? TRUE : FALSE));
+		break;
+		case 74:
+			return(IffAnim_DecodeDeltaJ(anim, dstframe, anim->frame[index].data, anim->w, anim->h, anim->bpp));
+		break;
+	}
+	return(FALSE);
+}
+
+char *IffAnim_GetFramePlanar(IffAnim *anim, int *framesize_)
+{
+	if (framesize_) {
+		*framesize_ = anim->framesize;
+	}
+	return(anim->curframe);
+}
+
+void *IffAnim_GetFrame(IffAnim *anim)
+{
+	return(anim->disp_frame);
+}
+
+void *IffAnim_GetCmap(IffAnim *anim)
+{
+	return(anim->disp_cmap);
+}
+
+void *IffAnim_GetPrevFrame(IffAnim *anim)
+{
+	return(anim->prev_disp_frame);
+}
+
+void *IffAnim_GetPrevCmap(IffAnim *anim)
+{
+	return(anim->prev_disp_cmap);
+}
+
+int IffAnim_Reset(IffAnim *anim)
+{
+	anim->frameno = -1;   //so next frame is 0
+	if (anim->frame[0].delta_compression) {  //set to black, if frame 0 has delta compression
+		memset(anim->prevframe, 0, anim->framesize);  //the next frame will be decoded to "prevframe"
+	}
+	IffAnim_NextFrame(anim);    //decompress, increment internal counter (swaps curframe <-> prevframe buffers)
+	//make prevframe and curframe the same
+	memcpy(anim->prevframe, anim->curframe, anim->framesize);
+	anim->prevcmap = anim->curcmap;
+	return(TRUE);
+}
+
+int IffAnim_NextFrame(IffAnim *anim)
+{
+	char *temp;
+	if ((anim->frameno + 1) >= anim->nframes) { //if last frame
+		if (!anim->loop) {   //abort, do nothing (display frame remains)
+			return(FALSE);
+		} else {                      //handle looping
+			if (anim->loopanim && (anim->nframes >= 4)) {          //continue at frame 2 (skip the first 2)
+				anim->frameno = 1;
+			} else {
+				return(IffAnim_Reset(anim));    // loads the first frame
+			}
+		}
+	}
+	anim->frameno++;
+	//decompress to prevframe
+	IffAnim_DecodeFrame(anim, anim->prevframe, anim->frameno);
+	//get cmap pointer
+	if ((anim->bpp <= 8) && anim->frame[anim->frameno].cmap) {
+		anim->prevcmap = anim->frame[anim->frameno].cmap;
+	}
+	//swap frame buffer pointers
+	temp = anim->curframe;
+	anim->curframe = anim->prevframe;
+	anim->prevframe = temp;
+	//swap cmap
+	temp = anim->curcmap;
+	anim->curcmap = anim->prevcmap;
+	anim->prevcmap = temp;
+	return(TRUE);
+}
+
+int IffAnim_ConvertFrame(IffAnim *anim)
+{
+	char *t;
+	int ncolors;
+	int i;
+	char *src;
+	char *dst;
+
+	//swap pointers
+	t = anim->disp_frame;
+	anim->disp_frame = anim->prev_disp_frame;
+	anim->prev_disp_frame = t;
+	t = anim->disp_cmap;
+	anim->disp_cmap = anim->prev_disp_cmap;
+	anim->prev_disp_cmap = t;
+	//convert multi to single planar display format (including bpp conversion)
+	if (anim->ham) {
+		IffAnim_ConvertHamTo24bpp(anim, anim->disp_frame, anim->curframe, anim->curcmap, anim->w, anim->h, anim->bpp, anim->disp_pitch);
+	} else {
+		IffAnim_BitplanarToChunky(anim, anim->disp_frame, anim->curframe, anim->w, anim->h, anim->bpp, anim->disp_bpp, anim->disp_pitch);
+	}
+	//convert cmap: R,G,B  to  R,G,B,0
+	ncolors = 1 << anim->bpp;
+	src = anim->curcmap;
+	dst = anim->disp_cmap;
+	if (anim->disp_bpp <= 8) {
+		for (i = 0; i < ncolors ;i++) {
+			memcpy(dst, src,3);
+			src += 3;
+			dst += 4;
+		}
+	}
+	anim->num_disp_frames++;
+	return(TRUE);
+}
+
+int IffAnim_GetInfo(IffAnim *anim, int *w_, int *h_, int *bpp_, int *pitch_, int *nframes_, int *mslentime_)
+{
+	if (w_) {
+		*w_ = anim->w;
+	}
+	if (h_) {
+		*h_ = anim->h;
+	}
+	if (bpp_) {
+		*bpp_ = anim->disp_bpp;
+	}
+	if (nframes_) {
+		if (anim->loopanim && (anim->nframes >= 4)) {
+			*nframes_ = anim->nframes - 2;
+		} else {
+			*nframes_ = anim->nframes;
+		}
+	}
+	if (pitch_) {
+		*pitch_ = anim->disp_pitch; 
+	}
+	if (mslentime_) {
+		if (anim->loopanim && (anim->nframes >= 4)) {
+			*mslentime_ = (anim->lentime - anim->frame[0].reltime - anim->frame[1].reltime) * 1000 / 60;
+		} else {
+			*mslentime_ = anim->lentime * 1000 / 60;
+		}
+	}
+	return(TRUE);
+}
+
+int IffAnim_GetDelayTime(IffAnim *anim)
+{
+	return(anim->frame[anim->frameno].reltime * 1000 / 60);
+}
+
+int IffAnim_GetDelayTimeOriginal(IffAnim *anim)
+{
+	return(anim->frame[anim->frameno].reltime);
+}
+
+int IffAnim_SetLoop(IffAnim *anim, int state)
+{
+	anim->loop = state ? TRUE : FALSE;
+	return(anim->loop);
+}
+
+int IffAnim_GetAudioFormat(IffAnim *anim, int *nch, int *bps, int *freq)
+{
+	if (anim->audio.nch <= 0) {
+		return(FALSE);
+	}
+	if (nch) {
+		*nch = anim->audio.nch;
+	}
+	if (bps) {
+		*bps = anim->audio.bps;
+	}
+	if (freq) {
+		*freq = anim->audio.freq;
+	}
+	return(TRUE);
+}
+
+char *IffAnim_GetAudioData(IffAnim *anim, int *size)
+{
+	if (size) {
+		*size = anim->audio.datasize;
+	}
+	return(anim->audio.data);
+}
+
+int IffAnim_GetAudioOffset(IffAnim *anim, int index)
+{
+	if ((!anim->audio.dataoffset) || (index >= anim->audio.n) || (index < 0)) {
+		return(0);
+	}
+	return(anim->audio.dataoffset[index]);
+}
+
+int IffAnim_GetAudioOffsetMS(IffAnim *anim, int index, int msoffs)
+{
+	int bpsf = anim->audio.bps * anim->audio.nch;
+	return(IffAnim_GetAudioOffset(anim, index) + (msoffs * anim->audio.freq * bpsf / 1000));
+}
+
+int IffAnim_GetAudioFrameSize(IffAnim *anim, int index)
+{
+	if ((!anim->audio.dataoffset) || (index >= anim->audio.n)) {
+		return(0);
+	}
+	if ((index + 1) >= anim->audio.n) {
+		return(anim->audio.datasize - anim->audio.dataoffset[index]);
+	}
+	return(anim->audio.dataoffset[index + 1] - anim->audio.dataoffset[index]);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/intro/iffanim.h b/cosp-0.6-src/ClouRemake/ClouRemake/intro/iffanim.h
new file mode 100644
index 0000000..2a237ac
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/intro/iffanim.h
@@ -0,0 +1,101 @@
+/*
+  IFF ANIM decoder by Markus Wolf http://murkymind.de (v1.01 2007-03-30)
+  Ported and adapted by Oliver Gantert (2014-06-28)
+*/
+#ifndef IFFANIM_H
+#define IFFANIM_H
+
+/*
+Internal frame Management:
+-----------------
+ The Animation data is read to memory completely, into a frame list:
+   -> frames are decoded faster (delta compression is kept in memory)
+   -> verification of data before playing -> no file reading errors during play (except compression errors)
+   - I haven't seen an iff animation with more than 10MB, so this shouldn't be a problem.
+
+ Frame data:
+   There is the "current frame" and the "previous frame" in bitplanar format representing a kind of double buffer
+   When a frame is decoded, the delta frame information modifies the previous frame always. After that the "previous frame"
+   is swapped with the "current frame".
+   The "current frame" can be converted to a useful output format (chunky), to a display suitable frame
+   When opening a file, the first bit planar frame is decoded (frame 0).
+   A call to "NextFrame" decodes the next frame (frame 1).
+
+
+Output formats
+--------------
+The old bitplanar format isn't useable for today's graphic systems, so the animation frames can be converted to chunky formats.
+ - 1..8 bit are converted to 8 bit, with a "r,g,b,0" palette (byte order exactly as mentioned)
+ - HAM and 24 bit frames are converted to 24 bit "r,g,b" images (byte order as mentioned)
+ - pitch for a scanline can be defined
+
+
+Notes for a player:
+---------------------
+ While waiting the delay of a frame, it is useful to decode the next frame already.
+ Add the used time for the decoding to your "already waited time".
+ You'll need a timer with a resolution of at least 1/60 seconds.
+
+
+File format support:
+--------------------
+
+ANIM file is currently only supported in it's standart structure:
+ - I haven't seen any other structure so far
+
+ FORM ANIM
+  FORM ILBM        first frame (frame 0)
+    BMHD             normal type IFF data
+    ANHD             optional animation header (chunk for timing of 1st frame)
+    ...            
+    CMAP             optional cmap
+    BODY             normal iff pixel data
+  FORM ILBM        frame 1
+    ANHD             animation header chunk
+    DLTA             delta mode data
+  FORM ILBM        frame 2
+    ANHD
+    DLTA
+    ....
+
+known delta compression modes (current decoding support is marked with '*'):
+  - ANIM-0 * ILBM BODY (no delta compression)
+  - ANIM-1   ILBM XOR
+  - ANIM-2   Long Delta mode
+  - ANIM-3   Short Delta mode
+  - ANIM-4   General Delta mode
+  - ANIM-5 * Byte Vertical Delta mode (most common)
+  - ANIM-6   Stereo Byte Delta mode
+  - ANIM-7 * Anim-5 compression using LONG/WORD data
+  - ANIM-8 * Anim-5 compression using LONG/WORD data
+  - ANIM-J * Eric Grahams compression format (Sculpt 3D / Sculpt 4D, by "Byte by Byte")
+  
+ "dctv" animations aren't supported, due to lacking format information.
+*/
+
+typedef struct IffAnim IffAnim;
+
+extern IffAnim *IffAnim_Open(char *fname);
+extern void IffAnim_Close(IffAnim *anim);
+extern int IffAnim_CurrentFrameIndex(IffAnim *anim);
+extern int IffAnim_SetLoopAnim(IffAnim *anim, int state);
+extern char *IffAnim_GetInfoText(IffAnim *anim);
+extern char *IffAnim_GetFramePlanar(IffAnim *anim, int *framesize_);
+extern void *IffAnim_GetFrame(IffAnim *anim);
+extern void *IffAnim_GetCmap(IffAnim *anim);
+extern void *IffAnim_GetPrevFrame(IffAnim *anim);
+extern void *IffAnim_GetPrevCmap(IffAnim *anim);
+extern int IffAnim_Reset(IffAnim *anim);
+extern int IffAnim_NextFrame(IffAnim *anim);
+extern int IffAnim_ConvertFrame(IffAnim *anim);
+extern int IffAnim_GetInfo(IffAnim *anim, int *w_, int *h_, int *bpp_, int *pitch_, int *nframes_, int *mslentime_);
+extern int IffAnim_GetDelayTime(IffAnim *anim);
+extern int IffAnim_GetDelayTimeOriginal(IffAnim *anim);
+extern int IffAnim_SetLoop(IffAnim *anim, int state);
+extern int IffAnim_GetAudioFormat(IffAnim *anim, int *nch, int *bps, int *freq);
+extern char *IffAnim_GetAudioData(IffAnim *anim, int *size);
+extern int IffAnim_GetAudioOffset(IffAnim *anim, int index);
+extern int IffAnim_GetAudioOffsetMS(IffAnim *anim, int index, int msoffs);
+extern int IffAnim_GetAudioFrameSize(IffAnim *anim, int index);
+
+#endif /* IFFANIM_H */
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/intro/intro.c b/cosp-0.6-src/ClouRemake/ClouRemake/intro/intro.c
new file mode 100644
index 0000000..1e5fe1b
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/intro/intro.c
@@ -0,0 +1,215 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "SDL.h"
+#include "base\base.h"
+#include "intro\intro.h"
+#include "intro\iffanim.h"
+#include "disk\disk.h"
+#include "gfx\gfx.h"
+#include "inphdl\inphdl.h"
+
+#define NUM_ANIM_FILES	5
+static const char *anim_files[NUM_ANIM_FILES] = {
+	"AN1_1.ANM",
+	"AN2_4.ANM",
+	"AN3_11.ANM",
+	"AN4_11.ANM",
+	"AN5_11.ANM"
+};
+static const int anim_delays[NUM_ANIM_FILES] = {
+	/* speed of animation expressed as delay between frames */
+	/* in ticks (1 tick = 1/60 second) */
+	60,
+	17,
+	7,
+	7,
+	7
+};
+#define NUM_ANIM_SYNC	6
+static const int anim_sync[NUM_ANIM_SYNC*2] = {
+	/* anim #, frame # */
+	/* when to play the church bell sound */
+	0,1,
+	0,5,
+	1,2,
+	1,27,
+	1,39,
+	1,53
+};
+#define NUM_CD_TRACKS	24
+static const int anim_cdframes[NUM_CD_TRACKS*6] = {
+	2,	100,	0,	 3,	0,		0,
+	2,	143,	0,	 4,	0,		0,
+	3,	  5,	0,	23,	0,		0,
+	3,	 74,	0,	 8,	0,		0,
+	3,	 90,	0,	24,	0,		0,
+	3,	118,	0,	 9,	0,		0,
+	3,	137,	0,	14,	0,		0,
+	3,	177,	0,	19,	0,		0,
+	3,	205,	0,	10,	0,		0,
+	3,	222,	0,	15,	0,		0,
+	3,	242,	0,	20,	0,		0,
+	3,	260,	0,	16,	0,		0,
+	3,	293,	0,	21,	0,		0,
+	3,	327,	0,	11,	0,		0,
+	3,	344,	0,	17,	0,		0,
+	3,	375,	0,	 5,	0,		0,
+	3,	427,	1,	12,	0,		2*75,
+	3,	445,	1,	12,	3*75,	5*75,
+	3,	467,	1,	12,	8*75,	11*75,
+	4,	  5,	0,	18,	0,		0,
+	4,	 44,	0,	22,	0,		0,
+	4,	 66,	0,	 6,	0,		0,
+	4,	115,	0,	13,	0,		0,
+	4,	153,	0,	 7,	0,		0
+};
+
+static int Anim_Play(IffAnim *anim, int nfile, int delayticks)
+{
+	ubyte *cmap, *frame;
+	ubyte *dst;
+	int q;
+	int a;
+	int action;
+	int numframes, nframe;
+
+	int ntrack;
+	char wavPath[256];
+	char wavName[16];
+
+	/* start music with anim #3 */
+	if (nfile == 2) {
+		sndPlaySound("title.bk", 0);
+	}
+
+	IffAnim_SetLoop(anim, 0);
+	IffAnim_SetLoopAnim(anim, 0);
+
+	dst = gfxGetGfxBoardBase();
+
+	inpSetWaitTicks(delayticks);
+	q = 0;
+
+	numframes = 0;
+	IffAnim_GetInfo(anim, NULL, NULL, NULL, NULL, &numframes, NULL);
+
+	/* don't play last 2 frames, as they're identical to the
+	   first 2 frames (at least in looping animations) */
+	for (nframe = 1; nframe < numframes - 1; nframe++) {
+
+		if (IffAnim_NextFrame(anim)) {
+			IffAnim_ConvertFrame(anim);
+			frame = (ubyte *)IffAnim_GetFrame(anim);
+			if (!frame) break;
+
+			cmap = (ubyte *)IffAnim_GetCmap(anim);
+			if (cmap) {
+				gfxSetPalette32(NULL, 0, 255, cmap);
+			}
+
+			memcpy(dst, frame, 320*200);
+			gfxInvalidate();
+
+			for (a = 0; a < NUM_ANIM_SYNC; a++) {
+				if ((nfile == anim_sync[(a<<1)]) && (nframe == anim_sync[(a<<1)+1])) {
+					sndPlayFX("church.voc");
+				}
+			}
+
+			if (bCDRom) {
+				if (CDRomInstalled) {
+					for (a = 0; a < NUM_CD_TRACKS; a++) {
+						if ((nfile == anim_cdframes[a*6]) && (nframe == anim_cdframes[(a*6)+1])) {
+							sndFading(16);
+							CDROM_StopAudioTrack();
+
+							if (!anim_cdframes[(a*6)+2]) {
+								CDROM_PlayAudioTrack(anim_cdframes[(a*6)+3]);
+							} else {
+								CDROM_PlayAudioSequence(anim_cdframes[(a*6)+3], anim_cdframes[(a*6)+4], anim_cdframes[(a*6)+5]);
+							}
+
+							break;
+						}
+					}
+				} else {
+					for (a = 0; a < NUM_CD_TRACKS; a++) {
+						if ((nfile == anim_cdframes[a*6]) && (nframe == anim_cdframes[(a*6)+1])) {
+							ntrack = 0;
+							if (!anim_cdframes[(a*6)+2]) {
+								ntrack = anim_cdframes[(a*6)+3];
+							} else {
+								/* PlaySequence not supported for WAV */
+								/* "intro_11.wav" is just played as a whole */
+								if (!anim_cdframes[(a*6)+4]) {
+									ntrack = anim_cdframes[(a*6)+3];
+								}
+							}
+							if (ntrack) {
+								sprintf(wavName, "intro_%02d.wav", ntrack - 1);
+								dskBuildPathName(AUDIO_DIRECTORY, wavName, wavPath);
+
+								sndFading(16);
+
+								MXR_SetInput(pAudioMixer, MXR_INPUT_VOICE, MXR_CreateInputWAV(wavPath));
+							}
+
+							break;
+						}
+					}
+				}
+			}
+
+			while (1) {
+				action = inpWaitFor(INP_TIME|INP_ESC|INP_QUIT);
+				if (action & (INP_ESC|INP_QUIT)) {
+					q = 1;
+					break;
+				}
+				if (action & INP_TIME) {
+					break;	// next frame
+				}
+			}
+			if (q) {
+				return(0);	// break intro
+			}
+		}
+	}
+	return(1);	// next anim
+}
+
+void tcIntro(void)
+{
+	char anim_path[DSK_PATHNAMELENGTH];
+	int n_file, bContinue;
+	IffAnim *iff_anim;
+
+	inpTurnESC(1);
+	gfxSetVideoMode(GFX_VIDEO_MCGA);
+
+	for (n_file = 0; n_file < NUM_ANIM_FILES; n_file++) {
+		dskBuildPathName("intropix", anim_files[n_file], anim_path);
+		iff_anim = IffAnim_Open(anim_path);
+		if (iff_anim) {
+			bContinue = Anim_Play(iff_anim, n_file, anim_delays[n_file]);
+			IffAnim_Close(iff_anim);
+		} else {
+			Log("tcIntro failed to open file: %s", anim_path);
+		}
+		if (!bContinue) {
+			break;
+		}
+	}
+
+	if (bCDRom && CDRomInstalled) {
+		CDROM_StopAudioTrack();
+		sndFading(0);
+	}
+
+	memset(gfxGetGfxBoardBase(), 0, 320*200);
+	gfxInvalidate();
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/intro/intro.h b/cosp-0.6-src/ClouRemake/ClouRemake/intro/intro.h
new file mode 100644
index 0000000..493baf3
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/intro/intro.h
@@ -0,0 +1,12 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef INTRO_H
+#define INTRO_H
+
+extern void tcIntro(void);
+
+#endif /* INTRO_H */
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/access.c b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/access.c
new file mode 100644
index 0000000..fceaaca
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/access.c
@@ -0,0 +1,291 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "landscap\landscap.h"
+#include "landscap\landscap_p.h"
+
+long lsIsLSObjectInActivArea(LSObject lso)
+	{
+	if (AskP(dbGetObject(ls->ul_AreaID), ConsistOfRelationID, lso, NO_PARAMETER, CMP_NO))
+		return 1;
+
+	return 0;
+	}
+
+void lsSetObjectRetrievalList(ulong ul_AreaId)
+	{
+	long i;
+
+	for (i = 0; i < 3; i++)
+		if (ul_AreaId == ls->ul_ObjectRetrievalAreaId[i])
+			ls->p_ObjectRetrieval = ls->p_ObjectRetrievalLists[i];
+	}
+
+ulong lsGetCurrObjectRetrieval(void)
+	{
+	long i;
+
+	for (i = 0; i < 3; i++)
+		if (ls->p_ObjectRetrieval == ls->p_ObjectRetrievalLists[i])
+			return ls->ul_ObjectRetrievalAreaId[i];
+
+	return 0;
+	}
+
+long lsIsObjectAStdObj(LSObject lso)
+	{
+	if (lsIsObjectADoor(lso))
+		return 0;
+
+	if (lsIsObjectAWall(lso))
+		return 0;
+
+	if (lsIsObjectAnAddOn(lso))
+		return 0;
+
+	if (lsIsObjectSpecial(lso))
+		return 0;
+
+	return 1;
+	}
+
+long lsIsObjectADoor(LSObject lso)
+	{
+	switch(lso->Type)
+		{
+		case Item_Holztuer:
+		case Item_Stahltuer:
+		case Item_Mauertor:
+		case Item_Tresorraum:
+				return 1;
+		}
+
+	return 0;
+	}
+
+long lsIsObjectAWall(LSObject lso)
+{
+	switch(lso->Type)
+	{
+	case Item_Mauer:
+	case Item_Mauerecke:
+	case Item_Steinmauer:
+	case Item_Sockel:
+		return 1;
+	}
+	if (bProfidisk)
+	{
+		switch(lso->Type)
+		{
+		case Item_verzierte_Saeule:
+		case Item_Gelaender:
+		case Item_Absperrung:
+		case Item_Postsack:
+		case Item_Lokomotive_vorne_rechts:
+		case Item_Lokomotive_vorne_links:
+		case Item_Lokomotive_oben:
+		case Item_Lokomotive_seitlich:
+		case Item_Lokomotive_Kabine:
+		case Item_Lokomotive_Tuer:
+			return 1;
+		}
+
+	}
+
+	return 0;
+}
+
+// Objekte die den gleichen Refresh wie Tueren benoetigen
+long lsIsObjectSpecial(LSObject lso)
+{
+	if (bProfidisk)
+	{
+		switch (lso->Type)
+		{
+		case Item_Heiligenstatue:
+		case Item_Hottentotten_Figur:
+		case Item_Batman_Figur:
+		case Item_Dicker_Man:
+		case Item_Unbekannter:
+		case Item_Jack_the_Ripper_Figur:
+		case Item_Koenigs_Figur:
+		case Item_Wache_Figur:
+		case Item_Miss_World_1952:
+			return 1;
+		}
+	}
+
+	return 0;
+}
+
+
+long lsIsObjectAnAddOn(LSObject lso)
+	{
+	switch(lso->Type)
+		{
+		case Item_Kasse:
+		case Item_Vase:
+		case Item_Statue:
+		case Item_Kreuz:
+		case Item_Kranz:
+			return 1;
+		}
+
+	return 0;
+	}
+
+uword lsGetObjectCount(void)
+	{
+	return ((uword) GetNrOfNodes(ls->p_ObjectRetrieval));
+	}
+
+ubyte lsGetLoudness(uword x, uword y)
+	{
+	word  floorIndex = lsGetFloorIndex(x,y), i, j, k;
+
+	/* Urspr�nglich wurde loudness hier mit MaxVolume initialisiert    */
+	/* dadurch waren in der Anzeige der Loudness auch die Nachbarn     */
+	/* inbegriffen waren. Nebenwirkung: Es gab aber pl�tzlich, sobald  */
+	/* man die Lautst�rke �berschritt Alarm durch Mikrophone ->        */
+	/* tcAlarmByMicro, bei einer �nderung der Initialiserung, mu� auch */
+	/* TcAlarmByMicro ge�ndert werden.   (hg, 14-02-94)                */
+	ubyte loudness = 255;
+
+	if ((!LS_NO_FLOOR(ls->p_CurrFloor[floorIndex].uch_FloorType)) &&
+		 LS_IS_MICRO_ON_FLOOR(ls->p_CurrFloor[floorIndex].uch_FloorType))
+			loudness = 15;
+	else
+		{
+		for (i = -1; (i < 2) && (loudness == 255); i++)
+			{
+			for (j = -1; (j < 2) && (loudness == 255); j++)
+				{
+				k = floorIndex + i * LS_FLOORS_PER_LINE + j;
+
+				if ((k >= 0) && (k< LS_FLOORS_PER_LINE * LS_FLOORS_PER_COLUMN))
+					{
+					if ((!LS_NO_FLOOR(ls->p_CurrFloor[k].uch_FloorType)) &&
+							LS_IS_MICRO_ON_FLOOR(ls->p_CurrFloor[k].uch_FloorType))
+								loudness = 50;
+					}
+				}
+			}
+		}
+
+	return loudness;
+	}
+
+ulong lsGetObjectState(ulong objID)
+	{
+	LSObject obj = (LSObject)dbGetObject(objID);
+
+	return(lsGetNewState(obj));
+	}
+
+ulong lsGetStartArea(void)
+	{
+	ulong areaID;  /* attention, planing has to be changed to! */
+
+	startsWithAll(ls->ul_BuildingID, OLF_NORMAL, Object_LSArea);
+
+	areaID = OL_NR(LIST_HEAD(ObjectList));
+
+	return(areaID);
+	}
+
+uword lsGetFloorIndex(uword x,uword y)
+	{
+	uword fpl,row,line;
+
+	fpl=LS_FLOORS_PER_LINE;
+
+	row=x/LS_FLOOR_X_SIZE;
+	line=y/LS_FLOOR_Y_SIZE;
+
+	return(uword)(line*fpl+row);
+	}
+
+static void lsExtendGetList(LIST *list, ulong nr, ulong type, void *data)
+	{
+	struct ObjectNode *newNode = dbAddObjectNode(list, type, OLF_INCLUDE_NAME|OLF_INSERT_STAR);
+
+	newNode->nr   = nr;
+	newNode->type = type;
+	newNode->data = data;
+	}
+
+LIST *lsGetObjectsByList(uword x, uword y, uword width, uword height, ubyte showInvisible, ubyte addLootBags)
+	{
+	struct ObjectNode *node;
+	LIST *list  = (LIST*)CreateList(0);
+	ulong i;
+
+	/* diverse Objekte eintragen */
+	for (node=(struct ObjectNode*)LIST_HEAD(ls->p_ObjectRetrieval); NODE_SUCC((NODE*)node);
+		  node=(struct ObjectNode*)NODE_SUCC((NODE*)node))
+		{
+		LSObject lso   = (LSObject) OL_DATA(node);
+
+		if ((lso->ul_Status & (1L<<Const_tcACCESS_BIT)) || (GamePlayMode & GP_LEVEL_DESIGN))
+			if (showInvisible || lso->uch_Visible)
+				if(lsIsInside(lso,x,y,x+width,y+height))
+					lsExtendGetList(list, OL_NR(node), lso->Type,lso);
+		}
+
+	/* Ausnahme: Beutesack eintragen! */
+	if (addLootBags)
+		{
+		for (i = 9701; i <= 9708; i++)
+			{
+			LSObject lso = (LSObject)dbGetObject(i);
+
+			if (lso->uch_Visible == LS_OBJECT_VISIBLE)
+				if (lsIsInside(lso, x, y, x+width, y+height))
+					lsExtendGetList(list, i, Item_Beutesack, lso);
+			}
+		}
+
+	return(list);
+	}
+
+void lsSetCollMode(ubyte collMode)
+	{
+	ls->uch_CollMode = collMode;
+	}
+
+ulong lsGetCurrBuildingID(void)
+	{
+	return ls->ul_BuildingID;
+	}
+
+ulong lsGetActivAreaID(void)
+	{
+	return(ls->ul_AreaID);
+	}
+
+LIST *lsGetRoomsOfArea(ulong ul_AreaId)
+	{
+	LSArea area     = (LSArea) dbGetObject(ul_AreaId);
+	ulong roomRelId = area->ul_ObjectBaseNr + REL_HAS_ROOM_OFFSET;
+	NODE *room;
+
+	SetObjectListAttr(OLF_PRIVATE_LIST, Object_LSRoom);
+	AskAll(area, roomRelId, BuildObjectList);
+
+
+	for (room = LIST_HEAD(ObjectListPrivate); NODE_SUCC(room); room = NODE_SUCC(room))
+		{
+		LSRoom myroom = (LSRoom)OL_DATA(room);
+
+		if ((word)myroom->us_LeftEdge < 0)
+			myroom->us_LeftEdge = 0;
+
+		if ((word)myroom->us_TopEdge < 0)
+			myroom->us_TopEdge = 0;
+		}
+
+	return ObjectListPrivate;
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/hardware.c b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/hardware.c
new file mode 100644
index 0000000..2570329
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/hardware.c
@@ -0,0 +1,366 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "landscap\landscap.h"
+#include "landscap\landscap_p.h"
+
+static void lsPrepareFromXMSBySize(ubyte uch_Size);
+static void lsPrepareFromXMS(LSObject lso);
+static void lsBlitOneObject(uword offsetFact, word destx, word desty, uword size);
+
+void lsShowEscapeCar(void)
+{
+	Building b = (Building)dbGetObject(ls->ul_BuildingID);
+
+	livPrepareAnims();
+
+	BobSet(ls->us_EscapeCarBobId, b->CarXPos, b->CarYPos, LS_ESCAPE_CAR_X_OFFSET, LS_ESCAPE_CAR_Y_OFFSET);
+	BobVis(ls->us_EscapeCarBobId);
+}
+
+static void lsSetAlarmPict(LSObject lso)
+	{
+	uword x0, x1, y0, y1, destx, desty;
+
+	lsCalcExactSize(lso, &x0, &y0, &x1, &y1);
+
+	if (lso->uch_Chained & Const_tcCHAINED_TO_ALARM)
+		{
+		lsPrepareFromXMSBySize(16);
+
+		destx = ((word)x1 - (word)x0 - 6) / 2 + x0 - 1;
+		desty = ((word)y1 - (word)y0 - 7) / 2 + y0 + 2;
+
+		lsBlitOneObject(24, destx, desty, 16);
+		}
+	}
+
+// zeichnet alle sichtbaren T��ren in einem bestimmten Bereich neu
+static void lsRefreshClosedDoors(uword us_X0, uword us_Y0, uword us_X1, uword us_Y1)
+	{
+	NODE *node;
+
+	ls->uch_ShowObjectMask = 0x40;
+
+	for (node = (NODE*)LIST_HEAD(ls->p_ObjectRetrieval); NODE_SUCC(node); node = (NODE*) NODE_SUCC(node))
+		{
+		LSObject lso = (LSObject)OL_DATA(node);
+
+		if (lsIsInside(lso, us_X0, us_Y0, us_X1, us_Y1))
+			if (lsIsObjectADoor(lso))
+				if (lso->uch_Visible == LS_OBJECT_VISIBLE)
+					lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_DOOR|LS_SHOW_PREPARE_FROM_XMS);
+		}
+
+	ls->uch_ShowObjectMask = 0x0;
+	}
+
+// dirty, dirty, verstoesst gegen so ziemlich alle Richtlinien von DerClou!
+// und man glaubt es ja fast nicht - es sollte trotzdem funktionieren
+// dieses lso entspricht der Statue, sie wird nicht dargestellt!, sondern
+// es wird nur an lso->us_DestX, lso->us_DestY ein Sockel gesetzt
+// die Src Koordinaten werden nicht (pfuii) aus den Daten genommen, sondern
+// direkt aus der Grafik; Um die richtige Src-Grafik zu erhalten, wird mittels
+// eines dummy Objektes die Funktion lsPrepareFromXMS aufgerufen
+void lsRefreshStatue(LSObject lso)
+{
+	uword srcX, srcY, destX, destY, size;
+	struct _LSObject dummy;	// nur zur �bergabe an lsPrepareFromXMS
+
+	ls->uch_ShowObjectMask = 0x40;
+
+	size = 16;		// stimmt die Gr��e ??
+
+	dummy.uch_Size = (ubyte) size;
+
+	lsPrepareFromXMS(&dummy);
+
+	srcX = 16;		// aus der Grafik entnehmen und hier eintragen!
+	srcY = 0;
+
+	destX = lso->us_DestX + 7;
+	destY = lso->us_DestY + 10;
+
+	gfxNCH4OLMCGAToNCH4Mask(LS_PREPARE_BUFFER,l_wrp->p_BitMap, srcX, srcY,
+			destX, destY, size, size,320,160);
+
+	ls->uch_ShowObjectMask = 0x0;
+	}
+
+void lsFastRefresh(LSObject lso)
+	{
+	uword x0, x1, y0, y1;
+
+	ls->uch_ShowObjectMask = 0x40;	// Bit 6 ignorieren
+
+	switch(lso->Type)
+	{
+	case Item_Holztuer:
+	case Item_Stahltuer:
+	case Item_Tresorraum:
+	case Item_Mauertor:
+		if (lso->ul_Status & (1<<Const_tcOPEN_CLOSE_BIT))
+		{
+			word x0, y0;
+
+			lsDoDoorRefresh(lso);
+
+			x0 = max((word) lso->us_DestX - 32, 0);
+			y0 = max((word) lso->us_DestY - 32, 0);
+
+			lsRefreshClosedDoors(x0, y0, lso->us_DestX + 32, lso->us_DestY + 32);
+		}
+		else
+			lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_ALL|LS_SHOW_PREPARE_FROM_XMS);
+		break;
+
+	case Item_Gemaelde:
+	case Item_Bild:
+		// Gemaelde und Bilder werden, wenn sie genommen werden einfach
+		// durch ein graues RectFill ��bermalt (Schattenfarbe)
+
+		if (lso->uch_Visible == LS_OBJECT_VISIBLE)
+			lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_ALL|LS_SHOW_PREPARE_FROM_XMS);
+		else
+		{
+			LSArea area = (LSArea)dbGetObject(lsGetActivAreaID());
+			ubyte color = LS_REFRESH_SHADOW_COLOR1;
+
+			lsCalcExactSize(lso, &x0, &y0, &x1, &y1);
+
+			if (area->uch_Darkness == LS_DARKNESS)
+				color = LS_REFRESH_SHADOW_COLOR0;
+
+			gfxSetPens(l_wrp, color, color, color);
+
+			gfxNCH4RectFill(l_wrp, x0, y0, x1, y1);
+
+			lsSetAlarmPict(lso);
+		}
+		break;
+	case Item_Statue:
+		if (lso->uch_Visible == LS_OBJECT_VISIBLE)
+			lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_ALL|LS_SHOW_PREPARE_FROM_XMS);
+		else
+			lsRefreshStatue(lso);
+		break;
+	default:
+		if (bProfidisk) 
+		{
+			switch (lso->Type)
+			{
+			case Item_Heiligenstatue:
+			case Item_Hottentotten_Figur:
+			case Item_Batman_Figur:
+			case Item_Dicker_Man:
+			case Item_Unbekannter:
+			case Item_Jack_the_Ripper_Figur:
+			case Item_Koenigs_Figur:
+			case Item_Wache_Figur:
+			case Item_Miss_World_1952:
+				if (lso->uch_Visible == LS_OBJECT_VISIBLE)
+					lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_ALL|LS_SHOW_PREPARE_FROM_XMS);
+				else
+					lsDoDoorRefresh(lso);
+				break;
+			case Item_Postsack:
+				break;
+			default:
+				lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_ALL|LS_SHOW_PREPARE_FROM_XMS);
+				break;
+			}
+		}
+
+		else
+		{
+			lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_ALL|LS_SHOW_PREPARE_FROM_XMS);
+		}
+
+		break;
+	}
+
+	switch(lso->Type)
+	{
+	case Item_Fenster: lsSetAlarmPict(lso); break;
+
+	default: break;
+	}
+
+	ls->uch_ShowObjectMask = 0;	// alle Bits kopieren
+}
+
+static void lsPrepareFromXMSBySize(ubyte uch_Size)
+{
+	struct XMSRastPort *rp = NULL;
+
+	switch(uch_Size)
+	{
+		case 16: rp = &LS_COLL16_XMS_RP; break;
+		case 32: rp = &LS_COLL32_XMS_RP; break;
+		case 48: rp = &LS_COLL48_XMS_RP; break;
+	}
+
+	if (rp) {
+		/* 2014-07-06 LucyG */
+		ulong buffer_size = LS_PREPARE_BUFFER_SIZE;
+		if (buffer_size > (rp->us_Width * rp->us_Height)) {
+			buffer_size = (rp->us_Width * rp->us_Height);
+			//Log("Warning: %s|%s: buffer size changed from %d to %d", __FILE__, __func__, LS_PREPARE_BUFFER_SIZE, buffer_size);
+			memset(LS_PREPARE_BUFFER, 0, LS_PREPARE_BUFFER_SIZE);
+		}
+        memcpy(LS_PREPARE_BUFFER, rp->p_MemHandle, buffer_size);
+	}
+}
+
+// bringt die Collection, in der sich ein Bild eines lso befindet in den
+// LS_PREPARE_BUFFER
+static void lsPrepareFromXMS(LSObject lso)
+	{
+	lsPrepareFromXMSBySize(lso->uch_Size);
+	}
+
+static void lsBlitOneObject(uword offsetFact, word destx, word desty, uword size)
+	{
+	uword srcWidth = 288;	// Quellbildschirm ist f��r gew�hnlich 288 breit
+	uword srcX, srcY, perRow;
+
+	// die 32er Objekte befinden sich auf einem Bildschirm, der
+	// 320 Pixel breit ist
+	if (size == 32)
+		srcWidth = 320;
+
+	perRow = srcWidth / size;
+
+	srcY = (offsetFact / perRow) * size;
+	srcX = (offsetFact % perRow) * size;
+
+	if (ls->uch_ShowObjectMask)
+		gfxNCH4OLMCGAToNCH4Mask(LS_PREPARE_BUFFER,l_wrp->p_BitMap, srcX, srcY,
+				destx, desty, size, size,320,160);
+	else
+		gfxNCH4OLMCGAToNCH4(LS_PREPARE_BUFFER,l_wrp->p_BitMap, srcX, srcY,
+				destx, desty, size, size,320,160);
+	}
+
+long lsShowOneObject(LSObject lso, word destx, word desty, ulong ul_Mode)
+	{
+	Item item = (Item)dbGetObject(lso->Type);
+	long show = 0;
+	uword offsetFact;
+
+	switch (lso->Type)
+		{
+		case Item_Sockel:	// Sockel soll nicht dargestellt werden
+		break;
+
+		default:
+			if (ul_Mode & LS_SHOW_ALL)
+				show = 1;
+
+			if ((!show) && (ul_Mode & LS_SHOW_WALL))
+				if (lsIsObjectAWall(lso))
+					show = 1;
+
+			// T��ren nur darstellen, wenn sie sichtbar sind
+
+			if ((!show) && (ul_Mode & LS_SHOW_DOOR))
+				if (lsIsObjectADoor(lso) && lso->uch_Visible == LS_OBJECT_VISIBLE)
+					show = 1;
+
+			if ((!show) && (ul_Mode & LS_SHOW_SPECIAL))
+				if (lsIsObjectSpecial(lso) && lso->uch_Visible == LS_OBJECT_VISIBLE)
+					show = 1;
+
+			if ((!show) && (ul_Mode & LS_SHOW_OTHER_0))
+				if (lsIsObjectAStdObj(lso) && lso->uch_Visible == LS_OBJECT_VISIBLE)
+					show = 1;
+
+			if ((!show) && (ul_Mode & LS_SHOW_OTHER_1))
+				if (lsIsObjectAnAddOn(lso) && lso->uch_Visible == LS_OBJECT_VISIBLE)
+					show = 1;
+
+			if (show)
+				{
+				if (ul_Mode & LS_SHOW_PREPARE_FROM_XMS)
+					lsPrepareFromXMS(lso);
+
+				offsetFact = item->OffsetFact + (lso->ul_Status & 3);
+
+				if (destx == LS_STD_COORDS)
+					destx = lso->us_DestX;
+
+				if (desty == LS_STD_COORDS)
+					desty = lso->us_DestY;
+
+				lsBlitOneObject(offsetFact, destx, desty, item->Size);
+				}
+		break;
+		}
+
+	if (show)
+		lsSetAlarmPict(lso);
+
+	return show;
+	}
+
+void lsBlitFloor(uword floorIndex, uword destx, uword desty)
+	{
+	struct XMSRastPort *rp = &LS_FLOOR_XMS_RP;
+	uword srcX;
+
+	/* 2014-07-06 LucyG : got random crashes here! */
+	ulong buffer_size = LS_PREPARE_BUFFER_SIZE;
+	if (buffer_size > (rp->us_Width * rp->us_Height)) {
+		buffer_size = (rp->us_Width * rp->us_Height);
+		//Log("Warning: %s|%s: buffer size changed from %d to %d", __FILE__, __func__, LS_PREPARE_BUFFER_SIZE, buffer_size);
+		memset(LS_PREPARE_BUFFER, 0, LS_PREPARE_BUFFER_SIZE);
+	}
+    memcpy(LS_PREPARE_BUFFER, rp->p_MemHandle, buffer_size);
+
+	srcX = ((ls->p_CurrFloor[floorIndex].uch_FloorType) & 0xf) * LS_FLOOR_X_SIZE;
+
+	gfxNCH4PutMCGAToNCH4(LS_PREPARE_BUFFER, l_wrp->p_BitMap, srcX, 0,
+		destx, desty, LS_FLOOR_X_SIZE, LS_FLOOR_Y_SIZE, 320, 160);
+	}
+
+void lsSetViewPort(uword x,uword y)
+	{
+	gfxNCH4SetViewPort(x, y);
+	}
+
+void lsInitGfx(void)
+	{
+	gfxSetVideoMode(GFX_VIDEO_NCH4);
+
+	lsSetViewPort(0, 0);
+	gfxNCH4SetSplit(256);
+	}
+
+void lsCloseGfx(void)
+	{
+	gfxSetVideoMode(GFX_VIDEO_MCGA);
+
+	tcSetPermanentColors();	// mod 31-06-94 nach divereses Beschwerden (hg)
+	}
+
+void lsScrollCorrectData(long dx,long dy)
+	{
+	ls->us_WindowXPos += dx;
+	ls->us_WindowYPos += dy;
+
+	ls->us_RasInfoScrollX = (word) dx;
+	ls->us_RasInfoScrollY = (word) dy;
+
+	livSetVisLScape(ls->us_WindowXPos, ls->us_WindowYPos);
+	}
+
+void lsDoScroll(void)
+	{
+	gfxNCH4Scroll(ls->us_RasInfoScrollX, ls->us_RasInfoScrollY);
+
+	ls->us_RasInfoScrollX = 0;
+	ls->us_RasInfoScrollY = 0;
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/init.c b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/init.c
new file mode 100644
index 0000000..c6948a9
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/init.c
@@ -0,0 +1,386 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "landscap\landscap.h"
+#include "landscap\landscap_p.h"
+
+static void lsInitObjects(void);
+
+/*------------------------------------------------------------------------------
+ *   global functions for landscape
+ *------------------------------------------------------------------------------*/
+
+void lsInitLandScape(ulong bID,ubyte mode)   	/* initialisiert das Landschaftsmodul */
+	{
+	long i;
+
+	if(!ls)
+		ls = (struct LandScape*)MemAlloc(sizeof(struct LandScape));
+
+	ls->ul_BuildingID = bID;
+
+	ls->us_RasInfoScrollX = 0;
+	ls->us_RasInfoScrollY = 0;
+
+	lsInitGfx();   /* dont change location of this line */
+
+	ls->uch_ScrollSpeed    = LS_STD_SCROLL_SPEED;
+	ls->uch_ShowObjectMask = 0;
+
+	lsSetCollMode(mode);
+
+	lsInitObjects();
+
+	lsInitSpots(l_wrp);
+
+	lsLoadAllSpots();
+
+	ls->uch_FloorsPerWindowColumn = (ubyte)(LS_FLOORS_PER_COLUMN);
+	ls->uch_FloorsPerWindowLine   = (ubyte)(LS_FLOORS_PER_LINE);
+
+	ls->ul_AreaID = lsGetStartArea(); /* !! MOD 04-01 - vor Sprites!!! */
+
+	BobInitLists();
+
+	ls->us_EscapeCarBobId = BobInit(LS_LOOTBAG_BUFFER, 14, 14);
+
+	// lootbags m�ssen vor den Livings initialisiert werden, da sie
+	// einer kleiner Prioritaet haben (unter den Maxis erscheinen)
+	for (i = 9701; i <= 9708; i++)
+		{
+		LSObject lso = (LSObject)dbGetObject(i);
+
+		// OffsetFact wird am PC nicht f�r den Offset in der Plane
+		// sondern als Handle des Bob verwendet
+		lso->us_OffsetFact = BobInit(LS_LOOTBAG_BUFFER, 14, 14);
+
+		hasLootBagUnSet(ls->ul_AreaID, (ulong)i);
+		}
+
+	livInit(0,0,LS_VISIBLE_X_SIZE,LS_VISIBLE_Y_SIZE,LS_MAX_AREA_WIDTH,LS_MAX_AREA_HEIGHT, 8, ls->ul_AreaID);
+
+	ls->p_CurrFloor = NULL;
+
+	ls->us_DoorXOffset = 0;
+	ls->us_DoorYOffset = 32;	// oben sind noch die 16er Objekte
+
+	ls->p_DoorRefreshList = (LIST*)CreateList(0);
+
+	lsInitFloorSquares();
+
+	lsInitActivArea(ls->ul_AreaID,(uword)-1,(uword)-1,NULL);
+	lsShowEscapeCar();
+	}
+
+void lsInitActivArea(ulong areaID,uword x,uword y, char *livingName)
+	{
+	LSArea area = (LSArea) dbGetObject(areaID);
+
+	ls->ul_AreaID = areaID;
+
+	lsSetRelations(areaID);
+	lsSetObjectRetrievalList(areaID);
+
+	ls->us_WindowXSize  = area->us_Width;
+	ls->us_WindowYSize  = area->us_Height;
+
+	if(x==(uword)-1)    x = area->us_StartX0;
+	if(y==(uword)-1)    y = area->us_StartY0;
+
+	lsSetVisibleWindow(x,y);
+
+	livSetActivAreaId(areaID);
+
+	lsSetCurrFloorSquares(areaID);
+
+	gfxCopyCollToXMS(area->us_Coll16ID, &LS_COLL16_XMS_RP);
+	gfxCopyCollToXMS(area->us_Coll32ID, &LS_COLL32_XMS_RP);
+	gfxCopyCollToXMS(area->us_Coll48ID, &LS_COLL48_XMS_RP);
+
+	gfxCopyCollToXMS(area->us_FloorCollID, &LS_FLOOR_XMS_RP);
+
+	lsBuildScrollWindow();
+	lsRefreshAllLootBags();
+	}
+
+void lsInitRelations(ulong areaID)
+	{
+	LSArea area = (LSArea)dbGetObject(areaID);
+
+	AddRelation(area->ul_ObjectBaseNr + REL_CONSIST_OFFSET);
+	AddRelation(area->ul_ObjectBaseNr + REL_HAS_LOCK_OFFSET);
+	AddRelation(area->ul_ObjectBaseNr + REL_HAS_ALARM_OFFSET);
+	AddRelation(area->ul_ObjectBaseNr + REL_HAS_POWER_OFFSET);
+	AddRelation(area->ul_ObjectBaseNr + REL_HAS_LOOT_OFFSET);
+	AddRelation(area->ul_ObjectBaseNr + REL_HAS_ROOM_OFFSET);
+	}
+
+void lsSetRelations(ulong areaID)
+	{
+	LSArea area = (LSArea)dbGetObject(areaID);
+
+	ConsistOfRelationID = area->ul_ObjectBaseNr + REL_CONSIST_OFFSET;
+	hasLockRelationID   = area->ul_ObjectBaseNr + REL_HAS_LOCK_OFFSET;
+	hasAlarmRelationID  = area->ul_ObjectBaseNr + REL_HAS_ALARM_OFFSET;
+	hasPowerRelationID  = area->ul_ObjectBaseNr + REL_HAS_POWER_OFFSET;
+	hasLootRelationID   = area->ul_ObjectBaseNr + REL_HAS_LOOT_OFFSET;
+	hasRoomRelationID   = area->ul_ObjectBaseNr + REL_HAS_ROOM_OFFSET;
+	}
+
+static void lsInitObjects(void)
+	{
+	ulong  areaCount = 0, i;
+	LIST  *areas;
+	NODE  *n;
+
+	/* alle Relationen erzeugen */
+	consistsOfAll(ls->ul_BuildingID, OLF_PRIVATE_LIST, Object_LSArea);
+	areas = ObjectListPrivate;
+
+	/* jetzt alle Stockwerke durchgehen! */
+	for  (i = 0; i < 3; i++)
+		{
+		ls->ul_ObjectRetrievalAreaId[i] = 0;
+		ls->p_ObjectRetrievalLists[i] = NULL;
+		}
+
+	for (n = (NODE *)LIST_HEAD(areas); NODE_SUCC(n); n = (NODE *) NODE_SUCC(n))
+		{
+		lsInitRelations(OL_NR(n));
+
+		/* Daten laden */
+		lsInitObjectDB(ls->ul_BuildingID, OL_NR(n));
+
+		lsSetRelations(OL_NR(n));
+		lsRefreshObjectList(OL_NR(n));     /* ObjectRetrievalList erstellen */
+
+		// es gibt einiges zu patchen!
+		lsPatchObjects();
+
+		ls->p_ObjectRetrievalLists[areaCount]   = ls->p_ObjectRetrieval; /* und merken */
+		ls->ul_ObjectRetrievalAreaId[areaCount] = OL_NR(n);
+
+		areaCount++;
+		}
+
+	lsLoadGlobalData(ls->ul_BuildingID, OL_NR(NODE_PRED(n)));
+
+	RemoveList(areas);
+	}
+
+void lsLoadGlobalData(ulong bld, ulong ul_AreaId)
+	{
+	char areaName[TXT_KEY_LENGTH], fileName[TXT_KEY_LENGTH];
+
+	dbGetObjectName(ul_AreaId, areaName);
+	areaName[strlen(areaName)-1] = '\0';
+
+	strcat(areaName, OBJ_GLOBAL_REL_EXTENSION);
+
+	dskBuildPathName(DATA_DIRECTORY, areaName, fileName);
+
+
+
+	if(!(LoadRelations(fileName, 0)))
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, 2);
+	}
+
+void lsInitObjectDB(ulong bld, ulong areaID)
+	{
+	char fileName[TXT_KEY_LENGTH],areaName[TXT_KEY_LENGTH];
+
+	dbGetObjectName(areaID ,areaName);
+	strcat(areaName,OBJ_DATA_EXTENSION);
+	dskBuildPathName(DATA_DIRECTORY,areaName,fileName);
+
+
+	dbSetLoadObjectsMode(DB_LOAD_MODE_NO_NAME);	// dont fetch names of objects
+
+	if (dbLoadAllObjects(fileName, 0))
+		{
+		dbGetObjectName(areaID,areaName);
+		strcat(areaName,OBJ_REL_EXTENSION);
+		dskBuildPathName(DATA_DIRECTORY,areaName,fileName);
+
+
+		if (!(LoadRelations(fileName, 0)))
+			NewErrorMsg(Disk_Defect, __FILE__, __func__, 3);
+		}
+	else
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, 4);
+
+	dbSetLoadObjectsMode(DB_LOAD_MODE_STD);
+	}
+
+// l�dt im Gegensatz zur Amigaversion alle Bodendaten gleichzeitig
+// in den Speicher
+static void lsInitFloorSquares(void)
+	{
+	ulong count;
+	long i;
+	char fileName[TXT_KEY_LENGTH], areaName[TXT_KEY_LENGTH];
+	NODE *n;
+	LIST *areas;
+
+	for  (i = 0; i < 3; i++)
+		ls->p_AllFloors[i] = NULL;
+
+	count = LS_FLOORS_PER_LINE * LS_FLOORS_PER_COLUMN;
+
+	consistsOfAll(ls->ul_BuildingID, OLF_PRIVATE_LIST, Object_LSArea);
+	areas = ObjectListPrivate;
+
+	/* jetzt alle Stockwerke durchgehen! */
+	for (n = (NODE *)LIST_HEAD(areas), i = 0; NODE_SUCC(n); n = (NODE *) NODE_SUCC(n), i++)
+		{
+		ulong size = (ulong) count * (sizeof(struct LSFloorSquare));
+
+		ls->p_AllFloors[i]    = (struct LSFloorSquare*)MemAlloc(size);
+		ls->ul_FloorAreaId[i] = OL_NR(n);
+
+		dbGetObjectName(ls->ul_FloorAreaId[i],areaName);
+		strcat(areaName,FLOOR_DATA_EXTENSION);
+
+		dskBuildPathName(DATA_DIRECTORY,areaName,fileName);
+
+
+		dskLoad(fileName, ls->p_AllFloors[i], 0);
+		}
+
+	RemoveList(areas);
+	}
+
+static void lsLoadAllSpots(void)
+	{
+	char fileName[TXT_KEY_LENGTH];
+	LIST  *areas;
+	NODE  *n;
+
+	consistsOfAll(ls->ul_BuildingID, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME, Object_LSArea);
+	areas = ObjectListPrivate;
+
+	n = (NODE *)LIST_HEAD(areas);
+
+	strcpy(fileName, NODE_NAME(n));
+
+	fileName[strlen(fileName) - 1] = '\0';
+
+	strcat(fileName, SPOT_DATA_EXTENSION);
+
+	lsLoadSpots(ls->ul_BuildingID, fileName);
+
+	RemoveList(areas);
+	}
+
+static void lsSetCurrFloorSquares(ulong areaId)
+	{
+	long i;
+
+	for (i = 0; i < 3; i++)
+		if (areaId == ls->ul_FloorAreaId[i])
+			ls->p_CurrFloor = ls->p_AllFloors[i];
+	}
+
+
+
+/*------------------------------------------------------------------------------
+ *   done functions for landscape
+ *------------------------------------------------------------------------------*/
+
+// gibt alle Bodendaten wieder frei
+static void lsDoneFloorSquares(void)
+	{
+	ulong count, i, size;
+
+	for (i = 0; i < 3; i++)
+		{
+		if (ls->p_AllFloors[i])
+			{
+			count = LS_FLOORS_PER_LINE * LS_FLOORS_PER_COLUMN;
+
+			size = (ulong) count * (sizeof(struct LSFloorSquare));
+
+			MemFree(ls->p_AllFloors[i], size);
+
+			ls->p_AllFloors[i] = NULL;
+			}
+		}
+
+	}
+
+void lsDoneObjectDB(ulong areaID)
+	{
+	LSArea area = (LSArea)dbGetObject(areaID);
+
+	RemRelations(area->ul_ObjectBaseNr, DB_tcBuild_SIZE);
+	dbDeleteAllObjects(area->ul_ObjectBaseNr, DB_tcBuild_SIZE);
+
+	/* globale Relation wieder l�schen */
+	RemRelations(Relation_hasClock - 1, 3);
+
+	/* und die "Relationsheader" wieder anlegen */
+	AddRelation(Relation_hasClock);
+	AddRelation(Relation_ClockTimer);
+	AddRelation(Relation_StairConnects);
+	}
+
+void lsDoneLandScape(void)
+	{
+	NODE *n;
+	long areaCount = 0, i;
+
+	if(ls)
+		{
+		LIST *areas;
+
+		consistsOfAll(ls->ul_BuildingID, OLF_PRIVATE_LIST, Object_LSArea);
+		areas = ObjectListPrivate;
+
+		for (n = (NODE *)LIST_HEAD(areas); NODE_SUCC(n); n = (NODE *) NODE_SUCC(n), areaCount++)
+			{
+			lsDoneObjectDB(OL_NR(n));
+
+			if(ls->p_ObjectRetrievalLists[areaCount])
+				{
+				RemoveList(ls->p_ObjectRetrievalLists[areaCount]);
+				ls->p_ObjectRetrievalLists[areaCount] = NULL;
+				ls->ul_ObjectRetrievalAreaId[areaCount] = 0;
+				}
+			}
+
+		RemoveList(areas);
+
+		lsDoneActivArea(0L);
+
+		livDone();
+
+		for (i = 9701; i <= 9708; i++)
+			{
+			LSObject lso = (LSObject)dbGetObject(i);
+
+			BobDone(lso->us_OffsetFact);
+			}
+
+		BobDone(ls->us_EscapeCarBobId);
+
+		lsDoneSpots();
+
+		lsCloseGfx();
+
+		lsDoneFloorSquares();
+
+		if (ls->p_DoorRefreshList)
+			RemoveList(ls->p_DoorRefreshList);
+
+		MemFree(ls, sizeof(struct LandScape));
+		ls=NULL;
+		}
+	}
+
+void lsDoneActivArea(ulong newAreaID)
+	{
+	livSetAllInvisible();                    /* MOD 14-01-94 */
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/landscap.c b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/landscap.c
new file mode 100644
index 0000000..1dd28fe
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/landscap.c
@@ -0,0 +1,649 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "landscap\landscap.h"
+#include "landscap\landscap_p.h"
+
+static void lsInitDoorRefresh(ulong ObjId);
+
+ulong     ConsistOfRelationID = 0;
+ulong     hasLockRelationID   = 0;
+ulong     hasAlarmRelationID  = 0;
+ulong     hasPowerRelationID  = 0;
+ulong     hasLootRelationID   = 0;
+ulong     hasRoomRelationID   = 0;
+
+struct    LandScape *ls = NULL;
+
+static void lsSafeRectFill(word x, word y, word x1, word y1)
+	{
+	if (x  <   0)     x  =   0;
+	if (x  > 638)     x  = 638;
+
+	if (x1 <   0)     x1 =   0;
+	if (x1 > 639)     x1 = 639;
+
+	if (y  <   0)     y  =   0;
+	if (y  > 254)     y  = 254;
+
+	if (y1 <   0)     y1 =   0;
+	if (y1 > 255)     y1 = 255;
+
+	if ((x1 > x) && (y1 > y))
+		gfxNCH4RectFill(l_wrp, x, y, x1, y1);
+	}
+
+void lsSetVisibleWindow(uword x, uword y)
+	{
+	word halfX, halfY, wX, wY;
+
+	halfX = LS_VISIBLE_X_SIZE / 2;
+	halfY = LS_VISIBLE_Y_SIZE / 2;
+
+	if ((wX = x - halfX) < 0)
+		wX = 0;
+
+	if ((wY = y - halfY) < 0)
+		wY = 0;
+
+	/* -1 is important, so that no position 320, 128 is possible     */
+	/* (window from (320, 128) - (640, 256) instead of (639, 255) !!!*/
+	wX = min(wX, LS_MAX_AREA_WIDTH  - LS_VISIBLE_X_SIZE - 1);
+	wY = min(wY, LS_MAX_AREA_HEIGHT - LS_VISIBLE_Y_SIZE - 1);
+
+	ls->us_WindowXPos = (uword) wX;
+	ls->us_WindowYPos = (uword) wY;
+
+	gfxNCH4SetViewPort(ls->us_WindowXPos,ls->us_WindowYPos);
+
+	livSetVisLScape(ls->us_WindowXPos,ls->us_WindowYPos);
+	}
+
+static void lsShowRooms(void)
+{
+	if (GamePlayMode & GP_SHOW_ROOMS)
+	{
+	LIST *rooms = lsGetRoomsOfArea(ls->ul_AreaID);
+	NODE *room;
+
+	for (room = LIST_HEAD(rooms); NODE_SUCC(room); room = NODE_SUCC(room))
+		{
+		LSRoom myroom = (LSRoom)OL_DATA(room);
+
+		gfxSetPens(l_wrp, 249, 0, 249);
+
+		gfxRectFill(l_wrp, myroom->us_LeftEdge, myroom->us_TopEdge,
+						myroom->us_LeftEdge + myroom->us_Width - 1,
+						myroom->us_TopEdge + myroom->us_Height - 1);
+		}
+
+	RemoveList(rooms);
+	}
+}
+
+void lsBuildScrollWindow(void)
+{
+	long i, j;
+	NODE *node;
+	LSArea area = (LSArea) dbGetObject(ls->ul_AreaID);
+	ubyte colortable[768];
+	LSObject lso;
+
+	gfxSetColorRange(0, 127);
+	gfxChangeColors(NULL, 0, GFX_FADE_OUT, 0);
+
+	/* Boden aufbauen */
+	for(i = 0;i < LS_FLOORS_PER_COLUMN; i++)
+		{
+		for(j = 0; j < LS_FLOORS_PER_LINE; j++)
+			{
+			//falls kein Boden vorhanden ist, mit Kollisionsfarbe f�llen!
+
+			if (LS_NO_FLOOR((ls->p_CurrFloor[i * LS_FLOORS_PER_LINE + j].uch_FloorType)))
+				{
+				gfxSetPens(l_wrp, LS_COLLIS_COLOR_2, GFX_SAME_PEN, LS_COLLIS_COLOR_2);
+				lsSafeRectFill(j * 32, i * 32, j * 32 + 31, i * 32 + 31);
+				}
+			else
+				lsBlitFloor((i * LS_FLOORS_PER_LINE + j), j * 32, i * 32);
+			}
+		}
+
+	/* Objekte setzen - zuerst W�nde*/
+	for (node = (NODE*)LIST_HEAD(ls->p_ObjectRetrieval); NODE_SUCC(node); node = (NODE*) NODE_SUCC(node))
+		{
+		lso = (LSObject)OL_DATA(node);
+
+		if (lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_WALL|LS_SHOW_PREPARE_FROM_XMS))
+			lsTurnObject(lso, lso->uch_Visible, LS_COLLISION);
+
+		}
+
+	/* dann andere */
+	for (node = (NODE*)LIST_HEAD(ls->p_ObjectRetrieval); NODE_SUCC(node); node = (NODE*)NODE_SUCC(node))
+		{
+		lso = (LSObject)OL_DATA(node);
+
+		if (lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_OTHER_0|LS_SHOW_PREPARE_FROM_XMS))
+			lsTurnObject(lso, lso->uch_Visible, LS_COLLISION);
+		}
+
+	/* jetzt noch ein paar Sondef�lle (Kassa, Vase, ...) */
+	for (node = (NODE*)LIST_HEAD(ls->p_ObjectRetrieval); NODE_SUCC(node); node = (NODE*)NODE_SUCC(node))
+		{
+		lso = (LSObject)OL_DATA(node);
+
+		if (lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_OTHER_1|LS_SHOW_PREPARE_FROM_XMS))
+			lsTurnObject(lso, lso->uch_Visible, LS_COLLISION);
+
+		// Statue m�ssen wegen der unsauberen Schei�e, speziell refresht werden
+		// w�rg!!!
+		if (lso->Type == Item_Statue)
+			if (lso->uch_Visible != LS_OBJECT_VISIBLE)
+				lsRefreshStatue(lso);
+		}
+
+	// jetzt alle f�r alle T�ren & Special objects Refresh erzeugen
+	for (node = (NODE*)LIST_HEAD(ls->p_ObjectRetrieval); NODE_SUCC(node); node = (NODE*) NODE_SUCC(node))
+		{
+		lso = (LSObject)OL_DATA(node);
+
+		if (lsIsObjectADoor(lso))
+			lsInitDoorRefresh(OL_NR(node));
+		else if (lsIsObjectSpecial(lso))
+			lsInitDoorRefresh(OL_NR(node));
+		}
+
+	// zuletzt m�ssen am PC die T�ren & Specials aufgebaut werden
+	for (node = (NODE*)LIST_HEAD(ls->p_ObjectRetrieval); NODE_SUCC(node); node = (NODE*)NODE_SUCC(node))
+		{
+		lso = (LSObject)OL_DATA(node);
+
+		if (lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_SPECIAL|LS_SHOW_PREPARE_FROM_XMS))
+			lsTurnObject(lso, lso->uch_Visible, LS_COLLISION);
+		}
+
+	for (node = (NODE*)LIST_HEAD(ls->p_ObjectRetrieval); NODE_SUCC(node); node = (NODE*) NODE_SUCC(node))
+		{
+		lso = (LSObject)OL_DATA(node);
+
+		if (lsShowOneObject(lso, LS_STD_COORDS, LS_STD_COORDS, LS_SHOW_DOOR|LS_SHOW_PREPARE_FROM_XMS))
+			{
+			if (!(lso->ul_Status & 1<<Const_tcOPEN_CLOSE_BIT))
+				lsTurnObject((LSObject)OL_DATA(node), lso->uch_Visible, LS_COLLISION);
+			else
+				lsTurnObject((LSObject)OL_DATA(node), lso->uch_Visible, LS_NO_COLLISION);
+			}
+		}
+
+	/* und weiter gehts mit der Musi... */
+	BobSetDarkness(area->uch_Darkness);
+	lsSetDarkness(area->uch_Darkness);
+
+	lsShowAllSpots(0, LS_ALL_VISIBLE_SPOTS);
+
+	/* auf gehts Burschn, schp� ma wos flottes */
+	/* 32er Collection einblenden */
+	gfxPrepareColl(area->us_Coll32ID);
+	gfxGetColorTable(area->us_Coll32ID, colortable);
+	gfxSetColorRange(0, 127);
+
+	// Hintergrund nur kopieren !
+	for (i = 64 * 3; i < 65 * 3; i++)
+	{
+		colortable[i] = colortable[i - 64 * 3];
+	}
+	// andere Farben berechnen (verdunkeln! )
+	for (i = 65 * 3; i < 128 * 3; i++)
+	{
+		colortable[i]          = colortable[i - 64 * 3];	// hell
+		colortable[i - 64 * 3] >>= 1;						// dunkel
+	}
+
+	gfxChangeColors(NULL, 5, GFX_BLEND_UP, colortable);
+
+	/* und jetzt die Farben der Maxis einblenden */
+	gfxPrepareColl(137);
+	gfxGetColorTable(137, colortable);
+	gfxSetColorRange(128, 191);
+	gfxChangeColors(NULL, 0, GFX_BLEND_UP, colortable);
+
+	/* und zur Sicherheit auch noch Menufarben setzen */
+	tcSetPermanentColors();	// mod 31-06-94 nach diversesn Beschwerden (hg)
+
+	lsShowRooms();
+}
+
+void lsSetDarkness(ubyte value) // entweder
+{
+	gfxSetDarkness(value);
+}
+
+void lsTurnObject(LSObject lso, ubyte status, ubyte Collis)
+	{
+	uword floorIndex;
+
+	floorIndex=lsGetFloorIndex(lso->us_DestX,lso->us_DestY);
+
+	lso->uch_Visible = status;
+
+	if (status == LS_OBJECT_VISIBLE)
+		LS_SET_OBJECT(ls->p_CurrFloor[floorIndex].uch_FloorType);
+
+	if (lso->Type == Item_Mikrophon)
+		LS_SET_MICRO_ON_FLOOR(ls->p_CurrFloor[floorIndex].uch_FloorType);
+	}
+
+ubyte lsIsInside(LSObject lso,uword x,uword y,uword x1,uword y1)
+	{
+	uword lsoX, lsoY, lsoX1, lsoY1;
+
+	lsCalcExactSize(lso, &lsoX,&lsoY,&lsoX1,&lsoY1);
+
+	if((lsoX <= x1) && (lsoX1 >= x) &&
+		(lsoY <= y1) && (lsoY1 >= y))
+		return(1);
+	else
+		return(0);
+	}
+
+void lsSetActivLiving(char *Name,uword x,uword y)
+	{
+	if(Name)
+		{
+		strcpy((char *)ls->uch_ActivLiving, Name);
+
+		if(x == (uword) -1)    x = livGetXPos(Name);
+		if(y == (uword) -1)    y = livGetYPos(Name);
+
+		lsSetVisibleWindow (x, y);
+		livRefreshAll();
+
+		ls->us_PersonXPos = (uword) (x - ls->us_WindowXPos);
+		ls->us_PersonYPos = (uword) (y - ls->us_WindowYPos);
+		}
+	}
+
+void lsSetObjectState(ulong objID, ubyte bitNr, ubyte value)
+	{
+	LSObject object = (LSObject) dbGetObject(objID);
+
+	// bei einer Stechuhr darf sich der Status nicht �ndern!
+	if (object->Type != Item_Stechuhr)
+		{
+		if (value == 0)
+			object->ul_Status &= (0xffffffff - (1L<<bitNr));
+
+		if(value == 1)
+			object->ul_Status |= (1L<<bitNr);
+		}
+	}
+
+word lsSortByXCoord(struct ObjectNode *n1, struct ObjectNode *n2)
+	{
+	LSObject lso1, lso2;
+
+	lso1 = (LSObject)OL_DATA(n1);
+	lso2 = (LSObject)OL_DATA(n2);
+
+	if (lso1->us_DestX > lso2->us_DestX)
+		return(1);
+	else
+		return((word)-1);
+	}
+
+word lsSortByYCoord(struct ObjectNode *n1, struct ObjectNode *n2)
+	{
+	LSObject lso1, lso2;
+
+	lso1 = (LSObject)OL_DATA(n1);
+	lso2 = (LSObject)OL_DATA(n2);
+
+	if(lso1->us_DestY  < lso2->us_DestY)
+		return(1);
+	else
+		return((word)-1);
+	}
+
+static void lsSortObjectList(LIST **l)
+	{
+	LSObject lso1, lso2;
+	NODE *node, *node1, *next;
+	ubyte lastNode = 0;
+
+	if (!(LIST_EMPTY((*l))))
+		{
+		dbSortObjectList(l, lsSortByYCoord);
+
+		for (node = (NODE*) LIST_HEAD((*l)); (!(lastNode)) && NODE_SUCC(NODE_SUCC(node));)
+			{
+			node1 = node;
+
+			do
+				{
+				node1 = (NODE*) NODE_SUCC(node1);
+				lso1  = (LSObject)OL_DATA(node);
+				lso2  = (LSObject)OL_DATA(node1);
+				}
+				while((lso1->us_DestY == lso2->us_DestY) && NODE_SUCC(NODE_SUCC(node1)));
+
+			next = node1;
+
+			/* wenn Abbruch wegen NODE_SUCC(NODE_SUCC(.. erflogte, darf
+			 * nicht der NODE_PRED(node1) genomen werden!
+			 * nach dem Sortieren ist au�erdem Schlu�!
+			 */
+
+			if ((lso1->us_DestY != lso2->us_DestY))
+				node1 = (NODE*) NODE_PRED(node1);
+			else
+				lastNode = 1;
+
+			if (node != node1)
+				{
+				dbSortPartOfList ((*l), (struct ObjectNode *)node,
+												(struct ObjectNode *)node1, lsSortByXCoord);
+				node = next;
+				}
+			else
+				node = (NODE*) NODE_SUCC(node);
+			}
+		}
+	}
+
+void lsRefreshObjectList(ulong areaID)
+	{
+	SetObjectListAttr (OLF_PRIVATE_LIST, Object_LSObject);
+	AskAll (dbGetObject(areaID), ConsistOfRelationID, BuildObjectList);
+	ls->p_ObjectRetrieval = ObjectListPrivate;
+
+	lsSortObjectList(&ls->p_ObjectRetrieval);
+	}
+
+ulong lsAddLootBag(uword x, uword y, ubyte bagNr) /* bagNr : 1 - 8! */
+	{
+	LSObject lso = (LSObject)dbGetObject (9700 + bagNr);
+
+	lso->uch_Visible = LS_OBJECT_VISIBLE;
+
+	/* add loot bag */
+	if (!hasLootBag(ls->ul_AreaID, (ulong) (9700 + bagNr)))
+		{
+		lso->us_DestX = x;
+		lso->us_DestY = y;
+
+		BobSet(lso->us_OffsetFact, x, y, LS_LOOTBAG_X_OFFSET, LS_LOOTBAG_Y_OFFSET);
+		BobVis(lso->us_OffsetFact);
+
+		hasLootBagSet(ls->ul_AreaID, (ulong)(9700 + bagNr));
+		}
+
+	return ((ulong)(9700 + bagNr));
+	}
+
+void lsRemLootBag(ulong bagId)
+	{
+	LSObject lso = (LSObject)dbGetObject(bagId);
+
+	lso->uch_Visible = LS_OBJECT_INVISIBLE;
+
+	BobInVis(lso->us_OffsetFact);
+
+	hasLootBagUnSet(ls->ul_AreaID, bagId);
+	}
+
+void lsRefreshAllLootBags(void)
+	{
+	ulong i;
+	LSObject lso;
+
+	livPrepareAnims();
+
+	for (i = 1; i < 9; i++)
+		{
+		lso = (LSObject)dbGetObject(9700 + i);
+
+		if ((lso->uch_Visible == LS_OBJECT_VISIBLE) && (hasLootBag(ls->ul_AreaID, (ulong) (9700 + i))))
+			{
+			BobSet(lso->us_OffsetFact, lso->us_DestX, lso->us_DestY, LS_LOOTBAG_X_OFFSET, LS_LOOTBAG_Y_OFFSET);
+			BobVis(lso->us_OffsetFact);
+			}
+		}
+	}
+
+void lsGuyInsideSpot(uword *us_XPos, uword *us_YPos, ulong *areaId)
+	{
+	LIST *spots = lsGetSpotList();
+	struct Spot *s;
+	long i;
+
+	for (s = (struct Spot *) LIST_HEAD(spots); NODE_SUCC(s); s = (struct Spot *) NODE_SUCC(s))
+		{
+		if (s->uch_Status & LS_SPOT_ON)
+			{
+			for (i = 0; i < 4; i++)
+				{
+				if ((us_XPos[i] != (uword)-1) && (us_YPos[i] != (uword)-1))
+					{
+					if (areaId[i] == s->ul_AreaId)
+						{
+						if (((struct Spot*)s)->p_CurrPos)
+							{
+							long x    = s->p_CurrPos->us_XPos; /* linke, obere */
+							long y    = s->p_CurrPos->us_YPos; /* Ecke des Spot! */
+							long size = s->us_Size - 4;
+
+							if ((us_XPos[i] < x + size - 2) && (us_XPos[i] > x + 2))
+								if ((us_YPos[i] < y + size - 2) && (us_YPos[i] > y + 2))
+									Search.SpotTouchCount[i]++;
+							}
+						}
+					}
+				}
+			}
+		}
+	}
+
+void lsWalkThroughWindow(LSObject lso, uword us_LivXPos, uword us_LivYPos, uword *us_XPos, uword *us_YPos)
+	{
+	word deltaX, deltaY;
+
+	(*us_XPos) = us_LivXPos;
+	(*us_YPos) = us_LivYPos;
+
+	if (us_LivXPos < lso->us_DestX)		deltaX =  25;
+	else                          		deltaX = -25;
+
+	if (us_LivYPos < lso->us_DestY)		deltaY =  25;
+	else                          		deltaY = -25;
+
+	if (lso->ul_Status & (1<<Const_tcHORIZ_VERT_BIT))
+		(*us_XPos) += deltaX;	/* vertikal */
+	else
+		(*us_YPos) += deltaY;	/* horizontal */
+	}
+
+/* for some objects the LDesigner does not set the status bits correctly,
+   so they need to patch at runtime here*/
+void lsPatchObjects(void)
+{
+	NODE *n;
+	LSObject lso;
+	Item item;
+
+	((Item)dbGetObject(Item_Fenster))->OffsetFact = 16;
+
+	for (n = (NODE*) LIST_HEAD(ls->p_ObjectRetrieval); NODE_SUCC(n); n = (NODE*) NODE_SUCC(n))
+	{
+		lso = (LSObject)OL_DATA(n);
+
+		item = (Item)dbGetObject(lso->Type);
+
+		lso->uch_Size = item->Size;	// Gr��en stimmen nicht ��berall ��berein!
+
+		switch(lso->Type)
+		{
+		case Item_Statue:
+			lso->ul_Status |= (1L<<Const_tcACCESS_BIT);
+			break;
+		case Item_WC:
+		case Item_Kuehlschrank:
+		case Item_Nachtkaestchen:
+			lso->ul_Status |= (1L<<Const_tcLOCK_UNLOCK_BIT);  /* unlocked! */
+			break;
+		case Item_Steinmauer:
+		case Item_Tresen:
+		case Item_Vase:
+		case Item_Sockel:
+		case Item_Leiter:
+			lso->ul_Status &= (~(1L<<Const_tcACCESS_BIT));      /* stone wall and so on, no Access */
+			break;
+		default:
+			break;
+		}
+
+		if (bProfidisk)
+		{
+			switch (lso->Type)
+			{
+			case Item_Beichtstuhl:
+			case Item_Postsack:
+				lso->ul_Status |= (1L<<Const_tcLOCK_UNLOCK_BIT);  /* unlocked! */
+				break;
+			case Item_Leiter:
+				lso->ul_Status &= (~(1L<<Const_tcACCESS_BIT));      /* ladder, no Access */
+				break;
+			default:
+				break;
+			}
+		}
+
+		if (OL_NR(n) == tcLAST_BURGLARY_LEFT_CTRL_OBJ)
+			lso->ul_Status |= (1 << Const_tcON_OFF);
+
+		lsSetOldState(lso);   /* mu� sein! */
+
+		/* change for correcting amiga plans (corrects walls) before using pc level desinger
+		lso->us_DestX -= 9;
+		lso->us_DestY += 17;
+		*/
+	}
+}
+
+void lsCalcExactSize(LSObject lso, uword *x0, uword *y0, uword *x1, uword *y1)
+	{
+	Item item = (Item)dbGetObject(lso->Type);
+	ubyte vertical = 0;
+
+	(*x0) = lso->us_DestX;
+	(*y0) = lso->us_DestY;
+
+	// keine Ahnung warum bei Bild & Gem�lde, OPEN_CLOSE_BIT & HORIZ_VERT_BIT
+	// vertauscht sind, aber es ist so (O.T. Helmut)
+	if ((lso->Type == Item_Bild) || (lso->Type == Item_Gemaelde))
+		vertical = lso->ul_Status & 3;
+	else
+		vertical = lso->ul_Status & 1;
+
+	if (vertical) 	// vertical
+		{
+		(*x0) += item->VExactXOffset;
+		(*y0) += item->VExactYOffset;
+
+		(*x1) = (*x0) + item->VExactWidth;
+		(*y1) = (*y0) + item->VExactHeight;
+		}
+	else
+		{
+		(*x0) += item->HExactXOffset;
+		(*y0) += item->HExactYOffset;
+
+		(*x1) = (*x0) + item->HExactWidth;
+		(*y1) = (*y0) + item->HExactHeight;
+		}
+	}
+
+// kopiert den Hintergrund, der durch eine T��r verdeckt wird
+// in einen XMS Buffer
+static void lsInitDoorRefresh(ulong ObjId)
+	{
+	LSObject lso  = (LSObject)dbGetObject(ObjId);
+	uword    width, height, destX, destY;
+	struct   LSDoorRefreshNode *drn;
+	ubyte		found = 0;
+
+	for (drn = (struct LSDoorRefreshNode *) LIST_HEAD(ls->p_DoorRefreshList);
+		  NODE_SUCC(drn); drn = (struct LSDoorRefreshNode *) NODE_SUCC(drn))
+			if (drn->lso == lso)
+				found = 1;
+
+	if (!found)
+	{
+		/* 2014-07-06 LucyG */
+		ulong buffer_size = LS_PREPARE_BUFFER_SIZE;
+		if (buffer_size > (LS_DOOR_REFRESH_XMS_RP.us_Width * LS_DOOR_REFRESH_XMS_RP.us_Height)) {
+			buffer_size = (LS_DOOR_REFRESH_XMS_RP.us_Width * LS_DOOR_REFRESH_XMS_RP.us_Height);
+			//Log("Warning: %s|%s: buffer size changed from %d to %d", __FILE__, __func__, LS_PREPARE_BUFFER_SIZE, buffer_size);
+			memset(LS_PREPARE_BUFFER, 0, LS_PREPARE_BUFFER_SIZE);
+		}
+        memcpy(LS_PREPARE_BUFFER, LS_DOOR_REFRESH_XMS_RP.p_MemHandle, buffer_size);
+
+		width  = lso->uch_Size;
+		height = lso->uch_Size;
+
+		destX = ls->us_DoorXOffset;
+		destY = ls->us_DoorYOffset;
+
+		gfxNCH4PutNCH4ToMCGA(l_wrp->p_BitMap, LS_PREPARE_BUFFER, lso->us_DestX, lso->us_DestY, destX, destY, width, height, 160, 320);
+
+        memcpy(LS_DOOR_REFRESH_XMS_RP.p_MemHandle, LS_PREPARE_BUFFER, buffer_size);
+
+		drn = (struct LSDoorRefreshNode *)
+			CreateNode(ls->p_DoorRefreshList, sizeof(struct LSDoorRefreshNode), 0L);
+
+		drn->lso = lso;
+
+		drn->us_XOffset = ls->us_DoorXOffset;
+		drn->us_YOffset = ls->us_DoorYOffset;
+
+		if ((ls->us_DoorXOffset + width) >= 320)
+			{
+			if (ls->us_DoorYOffset <= 128)	// overflow verhindern
+				{
+				ls->us_DoorXOffset = 0;
+				ls->us_DoorYOffset += height;
+				}
+			}
+		else
+			ls->us_DoorXOffset += width;
+		}
+	}
+
+void lsDoDoorRefresh(LSObject lso)
+	// restauriert aus einem XMS Buffer den Hintergrund einer T��r
+	{
+	struct   LSDoorRefreshNode *drn;
+	uword width, height;
+
+	/* 2014-07-06 LucyG */
+	ulong buffer_size = LS_PREPARE_BUFFER_SIZE;
+	if (buffer_size > (LS_DOOR_REFRESH_XMS_RP.us_Width * LS_DOOR_REFRESH_XMS_RP.us_Height)) {
+		buffer_size = (LS_DOOR_REFRESH_XMS_RP.us_Width * LS_DOOR_REFRESH_XMS_RP.us_Height);
+		//Log("Warning: %s|%s: buffer size changed from %d to %d", __FILE__, __func__, LS_PREPARE_BUFFER_SIZE, buffer_size);
+		memset(LS_PREPARE_BUFFER, 0, LS_PREPARE_BUFFER_SIZE);
+	}
+    memcpy(LS_PREPARE_BUFFER, LS_DOOR_REFRESH_XMS_RP.p_MemHandle, buffer_size);
+
+	for (drn = (struct LSDoorRefreshNode *) LIST_HEAD(ls->p_DoorRefreshList);
+		  NODE_SUCC(drn); drn = (struct LSDoorRefreshNode *) NODE_SUCC(drn))
+			if (drn->lso == lso)
+				break;
+
+	width  = lso->uch_Size;
+	height = lso->uch_Size;
+
+	gfxNCH4OLMCGAToNCH4Mask(LS_PREPARE_BUFFER, l_wrp->p_BitMap, drn->us_XOffset, drn->us_YOffset, lso->us_DestX, lso->us_DestY, width, height, 320, 160);
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/landscap.h b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/landscap.h
new file mode 100644
index 0000000..350459e
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/landscap.h
@@ -0,0 +1,222 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_LANDSCAP
+#define MODULE_LANDSCAP
+
+#include "theclou.h"
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_INPHDL
+#include "inphdl\inphdl.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_BASE
+#include "base\base.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_LIVING
+#include "living\living.h"
+#endif
+
+#ifndef MODULE_SPOT
+#include "landscap\spot.h"
+#endif
+
+#define   REL_CONSIST_OFFSET       3
+#define   REL_HAS_LOCK_OFFSET      4
+#define   REL_HAS_ALARM_OFFSET     5
+#define   REL_HAS_POWER_OFFSET     6
+#define   REL_HAS_LOOT_OFFSET      7
+#define   REL_HAS_ROOM_OFFSET     10
+
+#define   LS_OBJECT_VISIBLE   	((ubyte) 1)
+#define   LS_OBJECT_INVISIBLE 	((ubyte) 0)
+
+
+#define   LS_SCROLL_CHECK     	  0
+#define   LS_SCROLL_PREPARE   	  1
+
+/* Scroll defines */
+#define   LS_SCROLL_LEFT				1
+#define   LS_SCROLL_RIGHT		     	2
+#define   LS_SCROLL_UP		   	  	4
+#define   LS_SCROLL_DOWN		     	8
+
+#define   LS_NO_COLLISION     		0
+#define   LS_COLLISION        		1
+
+
+#define   LS_MAX_AREA_WIDTH        640
+#define   LS_MAX_AREA_HEIGHT       256  /* so that wall fits, also in the last line */
+
+#define   LS_FLOOR_X_SIZE           32
+#define   LS_FLOOR_Y_SIZE           32
+
+#define   LS_STD_SCROLL_SPEED        2
+#define   LS_STD_MAX_PERSONS         7
+
+#define   LS_PERSON_X_SIZE          14
+#define   LS_PERSON_Y_SIZE          14
+
+#define   LS_PERSON_ACCESS_FOCUS_X   7
+#define   LS_PERSON_ACCESS_FOCUS_Y   7
+
+#define   LS_DARKNESS              ((ubyte)255)
+#define   LS_BRIGHTNESS            ((ubyte)0)
+#define   LS_DARK_FUNNY            ((ubyte)85)
+
+#define	LS_PC_CORRECT_X				(-9)	// bei Vorzeichenwechsel landscap.c
+#define  LS_PC_CORRECT_Y				(19)
+
+/* Coll Mode */
+#define   LS_COLL_PLAN                 1
+#define   LS_COLL_NORMAL               2
+#define   LS_LEVEL_DESIGNER            4
+
+#define   lsGetOldState(lso)           ((((lso)->ul_Status) >> 16) & 0xffff)
+#define   lsGetNewState(lso)           (((lso)->ul_Status) & 0xffff)
+#define   lsSetOldState(lso)           ((lso)->ul_Status = (((lso)->ul_Status << 16) & 0xffff0000) + (((lso)->ul_Status) & 0xffff))
+
+/* globale functions ! */
+extern void  lsInitLandScape(ulong bID,ubyte mode);
+extern void  lsDoneLandScape(void);
+
+extern void  lsSetScrollSpeed(ubyte pixel);
+extern void  lsSetActivLiving(char *Name,uword x,uword y);
+
+extern void  lsRefreshObjectList(ulong areaID);
+
+extern ulong lsAddLootBag(uword x, uword y, ubyte bagNr); /* bagNr : 1 - 8! */
+extern void  lsRemLootBag(ulong bagId);
+extern void  lsRefreshAllLootBags(void);
+
+extern void  lsShowEscapeCar(void);
+
+extern void  lsFastRefresh(LSObject lso);
+
+extern void  lsSetObjectState(ulong objID, ubyte bitNr, ubyte value);
+
+extern void  lsSetViewPort(uword x,uword y);
+
+extern void  lsSetDarkness(ubyte value);
+extern void  lsSetCollMode(ubyte collMode);
+
+extern LIST *lsGetRoomsOfArea(ulong ul_AreaId);
+
+extern void  lsSetObjectRetrievalList(ulong ul_AreaId);
+extern ulong lsGetCurrObjectRetrieval(void);
+
+extern ulong lsGetObjectState(ulong objID);
+extern uword lsGetObjectCount(void);
+extern ubyte lsGetLoudness(uword x, uword y);
+
+extern void  lsDoScroll(void);
+extern void  lsScrollCorrectData(long dx,long dy);
+extern ubyte lsScrollLandScape(ubyte direction);
+extern ubyte lsInitScrollLandScape(ubyte direction, ubyte mode);
+
+extern LIST *lsGetObjectsByList(uword x,uword y,uword width,uword height, ubyte showInvisible, ubyte addLootBags);
+
+extern void  lsInitActivArea(ulong areaID,uword x,uword y,char *livingName);
+extern void  lsDoneActivArea(ulong newAreaID);
+extern void  lsTurnObject(LSObject lso,ubyte status, ubyte Collis);
+
+extern void  lsCalcExactSize(LSObject lso, uword *x0, uword *y0, uword *x1, uword *y1);
+
+extern void  lsDoDoorRefresh(LSObject lso);
+
+extern uword lsGetFloorIndex(uword x,uword y);
+
+extern void  lsGuyInsideSpot(uword *us_XPos, uword *us_YPos, ulong *areaId);
+
+extern long  lsIsObjectAWall(LSObject lso);
+extern long  lsIsObjectAnAddOn(LSObject lso);
+extern long  lsIsObjectADoor(LSObject lso);
+extern long  lsIsObjectAStdObj(LSObject lso);
+extern long  lsIsObjectSpecial(LSObject lso);
+
+extern long  lsIsLSObjectInActivArea(LSObject lso);
+
+extern ubyte lsIsCollision(uword x,uword y, ubyte direction);      /* sprite needs it */
+
+extern ulong lsGetCurrBuildingID(void);
+extern ulong lsGetActivAreaID(void);
+
+extern void  lsInitObjectDB(ulong bld, ulong areaID);
+extern void  lsLoadGlobalData(ulong bld, ulong ul_AreaId);
+extern void  lsDoneObjectDB(ulong areaID);
+extern void  lsInitRelations(ulong areaID);
+extern void  lsSetRelations(ulong areaID);
+
+extern void  lsBlitFloor(uword floorIndex, uword destx, uword desty);
+
+extern void  lsWalkThroughWindow(LSObject lso, uword us_LivXPos, uword us_LivYPos, uword *us_XPos, uword *us_YPos);
+
+/* internal functions ! */
+extern void  lsPatchObjects(void);
+
+extern void  lsSetVisibleWindow(uword x, uword y);
+
+extern ubyte lsIsInside(LSObject lso,uword x,uword y,uword x1,uword y1);
+
+extern ulong lsGetStartArea(void);
+
+extern void  lsBuildScrollWindow(void);
+extern void  lsShowAlarmAndPower(LSObject lso, ulong x, ulong y);
+
+extern long  lsShowOneObject(LSObject lso, word destx, word desty, ulong ObjTypeFilter);
+
+/* external functions */
+extern void  lsInitGfx(void);
+extern void  lsCloseGfx(void);
+
+extern ulong ConsistOfRelationID;
+extern ulong hasLockRelationID;
+extern ulong hasAlarmRelationID;
+extern ulong hasPowerRelationID;
+extern ulong hasLootRelationID;
+extern ulong hasRoomRelationID;
+
+/* COSP: hardware.c */
+extern void lsRefreshStatue(LSObject lso);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/landscap_p.h b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/landscap_p.h
new file mode 100644
index 0000000..cee7c9d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/landscap_p.h
@@ -0,0 +1,158 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#define  LS_COLL16_XMS_RP				AnimRPInXMS
+#define  LS_COLL32_XMS_RP    			AddRPInXMS
+#define  LS_COLL48_XMS_RP    			LSObjectRPInXMS
+
+#define  LS_FLOOR_XMS_RP				LSFloorRPInXMS
+
+#define  LS_DOOR_REFRESH_XMS_RP		LS_COLL16_XMS_RP
+
+#define  LS_PREPARE_BUFFER				StdBuffer1
+#define  LS_PREPARE_BUFFER_SIZE		STD_BUFFER1_SIZE
+
+#define  LS_LOOTBAG_BUFFER				StdBuffer1  // auch LIV_TEMPLATE_BUFFER �ndern!
+
+#define  LS_LOOTBAG_X_OFFSET			0
+#define  LS_LOOTBAG_Y_OFFSET			168
+
+#define	LS_ESCAPE_CAR_X_OFFSET		14
+#define  LS_ESCAPE_CAR_Y_OFFSET		168
+
+/* folgenden defines bestimmen die Fl�che, die zu Kollisionskontrolle */
+/* herangezogen wird , sie beziehen sich auf linke obere Ecke */
+
+#define	LS_COLLIS_COLOR_0		  		1
+#define	LS_COLLIS_COLOR_1		 		65
+#define  LS_COLLIS_COLOR_2				0
+#define  LS_COLLIS_COLOR_3				64
+
+#define  LS_REFRESH_SHADOW_COLOR0	46
+#define  LS_REFRESH_SHADOW_COLOR1  110
+
+#define  FLOOR_DATA_EXTENSION     	((char*)".lfd")
+#define  OBJ_DATA_EXTENSION       	((char*)".dat")
+#define  OBJ_REL_EXTENSION        	((char*)".rel")
+#define  OBJ_GLOBAL_REL_EXTENSION 	((char*)".gre")
+#define  SPOT_DATA_EXTENSION      	((char*)".spo")
+
+/* some functions */
+#define  LS_STD_COORDS            -30000    /* tritt nie auf! */
+
+#define  FLOORS_PER_ROW_SBM  			10    /* in the Source Bitmap */
+#define  WIDTH_OF_OBJECT_SBM 			288
+
+/* collis defines */
+#define  LS_COLLIS_LEFT           	1
+#define  LS_COLLIS_RIGHT          	2
+#define  LS_COLLIS_UP             	4
+#define  LS_COLLIS_DOWN           	8
+
+#define  LS_COLLIS_INVISIBLE			16    /* Subjekt sollte unsichtbar werden ! */
+
+#define  LS_LEFT_BORDER_TOUCHED		1
+#define  LS_RIGHT_BORDER_TOUCHED		2
+#define  LS_UP_BORDER_TOUCHED			4
+#define  LS_DOWN_BORDER_TOUCHED		8
+
+#define  LS_SHOW_WALL                1
+#define  LS_SHOW_OTHER_0             2
+#define  LS_SHOW_OTHER_1             4
+#define  LS_SHOW_REFRESH             8
+#define  LS_SHOW_PREPARE_FROM_XMS	16
+#define  LS_SHOW_ALL						32
+#define  LS_SHOW_DOOR					64
+#define  LS_SHOW_SPECIAL				128
+
+/* Floor defines ! */
+#define  LS_FLOORS_PER_LINE       (LS_MAX_AREA_WIDTH/LS_FLOOR_X_SIZE)
+#define  LS_FLOORS_PER_COLUMN     (LS_MAX_AREA_HEIGHT/LS_FLOOR_Y_SIZE)
+
+#define  LS_NO_FLOOR(f)           ((f) & (1<<5))
+
+#define  LS_IS_MICRO_ON_FLOOR(f)  ((f) & (1<<6)) /* wenn 7. Bit gesetzt */
+#define  LS_SET_MICRO_ON_FLOOR(f) ((f) = ((f) | (1<<6)))
+#define  LS_SET_OBJECT(f)         ((f) = ((f) | (1<<7)))
+
+/* data fetch start */
+#define	LS_VISIBLE_X_SIZE     	  320
+#define  LS_VISIBLE_Y_SIZE         128
+
+#define  LS_CENTER_X              (LS_VISIBLE_X_SIZE / 2)
+#define  LS_CENTER_Y              (LS_VISIBLE_Y_SIZE / 2)
+
+struct LandScape
+	{
+	ulong   ul_BuildingID;
+	ulong   ul_AreaID;
+
+	uword   us_WindowXSize;          /* total Size of Window    */
+	uword	  us_WindowYSize;
+
+	uword   us_WindowXPos;           /* linke, obere Ecke des des   */
+	uword   us_WindowYPos;			/* sichtbaren Windows ! */
+
+	uword   us_PersonXPos;           /* Offset zur linken, oberen Ecke */
+	uword   us_PersonYPos;           /* des sichtbaren Windows ! */
+
+	ubyte  uch_ScrollSpeed;
+
+	ubyte   uch_FloorsPerWindowColumn;   /* total window */
+	ubyte   uch_FloorsPerWindowLine;     /* total window */
+
+	ubyte   uch_CollMode;            /* "Plan" oder "echte Objekte", Ldesigner */
+
+	ubyte   uch_ActivLiving[TXT_KEY_LENGTH];
+
+	struct  LSFloorSquare	*p_CurrFloor;		/* holds floor and object information */
+	struct  LSFloorSquare	*p_AllFloors[3];
+	ulong   ul_FloorAreaId[3];
+
+	LIST    *p_ObjectRetrieval;
+	LIST    *p_ObjectRetrievalLists[3];
+	ulong   ul_ObjectRetrievalAreaId[3];
+
+	LIST	  *p_DoorRefreshList;
+
+	uword   us_LivingXSpeed;
+	uword   us_LivingYSpeed;
+
+	uword	  us_RasInfoScrollX;		// �bernimmt die Aufgabe der RasInfo Struct
+	uword	  us_RasInfoScrollY;		// des Amiga
+
+	uword	  us_EscapeCarBobId;
+
+	uword	  us_DoorXOffset;
+	uword	  us_DoorYOffset;
+
+	ubyte   uch_LivingAction;
+	ubyte	  uch_ShowObjectMask;
+	};
+
+struct LSFloorSquare
+	{
+	ubyte	uch_FloorType;      /* 7 : object, 6 : Micro , siehe floor defines ! */
+	};
+
+struct LSDoorRefreshNode	// f�r jede T�r existiert eine Node
+	{
+	NODE	Link;
+
+	LSObject	lso;
+
+	uword	us_XOffset;
+	uword us_YOffset;
+	};
+
+extern struct LandScape *ls;
+
+static void lsInitFloorSquares(void);
+static void lsLoadAllSpots(void);
+static void lsSetCurrFloorSquares(ulong areaId);
+
+
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/raster.c b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/raster.c
new file mode 100644
index 0000000..f8b653c
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/raster.c
@@ -0,0 +1,225 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "landscap\raster.h"
+
+static uword lsGetRasterXSize(ulong areaID);
+static uword lsGetRasterYSize(ulong areaID);
+
+void lsShowRaster(ulong areaID, ubyte perc)
+	{
+	LSArea area = (LSArea)dbGetObject(areaID);
+	struct ObjectNode *node;
+	long count, i;
+	LIST *objects;
+	LSObject lso;
+
+	gfxShow (154, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+
+	SetObjectListAttr (OLF_PRIVATE_LIST, Object_LSObject);
+	AskAll (area,ConsistOfRelationID,BuildObjectList);
+	objects = ObjectListPrivate;
+
+	//lsSortObjectList(&objects);
+
+	if(!(LIST_EMPTY(objects)))
+		{
+		count = (GetNrOfNodes(objects) * perc) / 255;
+
+		for(node=(struct ObjectNode*)LIST_HEAD(objects), i = 0 ; (NODE_SUCC((NODE*)node)) && (i < count);
+			node=(struct ObjectNode*)NODE_SUCC((NODE*)node), i++)
+			{
+			lso = (LSObject)OL_DATA(node);
+
+			switch(lso->Type)
+				{
+				case Item_Mauer:
+				case Item_Mauerecke:
+				case Item_Steinmauer:
+						lsFadeRasterObject(areaID, lso, 1);
+					  break;
+				default:
+					  break;
+				}
+			}
+
+		for (node=(struct ObjectNode*)LIST_HEAD(objects), i = 0 ; (NODE_SUCC((NODE*)node)) && (i < count);
+			  node=(struct ObjectNode*)NODE_SUCC((NODE*)node), i++)
+			{
+			lso = (LSObject)OL_DATA(node);
+
+			switch(lso->Type)
+				{
+				case Item_Mauer:
+				case Item_Mauerecke:
+				case Item_Steinmauer:
+					  break;
+				default:
+					  lsFadeRasterObject(areaID, lso, 1);
+					  break;
+				}
+			}
+		}
+	else
+		Say(THECLOU_TXT,0,MATT_PICTID,"KEIN_GRUNDRISS");
+
+	RemoveList (objects);
+	}
+
+NODE *lsGetSuccObject(NODE *start)
+	{
+	NODE *n;
+	LSObject lso;
+
+	n = (NODE*) NODE_SUCC(start);
+
+	while(NODE_SUCC(n))
+		{
+		lso = (LSObject) OL_DATA(n);
+
+		if(lso->ul_Status & (1L<<Const_tcACCESS_BIT))
+			return(n);
+
+		n = (NODE*) NODE_SUCC(n);
+		}
+
+	return start;
+	}
+
+NODE *lsGetPredObject(NODE *start)
+	{
+	NODE *n;
+	LSObject lso;
+
+	n = (NODE *)NODE_PRED(start);
+
+	while(NODE_PRED(n))
+		{
+		lso = (LSObject) OL_DATA(n);
+
+		if(lso->ul_Status & (1L<<Const_tcACCESS_BIT))
+			return(n);
+
+		n = (NODE *)NODE_PRED(n);
+		}
+
+	return start;
+	}
+
+
+void lsFadeRasterObject(ulong areaID, LSObject lso, ubyte status)
+	{
+	ulong  rasterXSize, rasterYSize, rasterSize, col;
+	uword   xStart, yStart, xEnd, yEnd;
+
+	rasterXSize = lsGetRasterXSize(areaID);
+	rasterYSize = lsGetRasterYSize(areaID);
+
+	rasterSize = min(rasterXSize, rasterYSize);
+
+	lsCalcExactSize(lso, &xStart, &yStart, &xEnd, &yEnd);
+
+	xStart = ((xStart) * rasterSize) / LS_RASTER_X_SIZE;
+	yStart = ((yStart) * rasterSize) / LS_RASTER_Y_SIZE;
+
+	xEnd = ((xEnd) * rasterSize) / LS_RASTER_X_SIZE;
+	yEnd = ((yEnd) * rasterSize) / LS_RASTER_Y_SIZE;
+
+	xEnd = max(xStart + 3, xEnd);
+	yEnd = max(yStart + 3, yEnd);
+
+	if(status)
+		col = (((Item) dbGetObject(lso->Type))->ColorNr);
+	else
+		col = 10;
+
+	gfxSetPens(l_wrp, col, col, col);
+
+	gfxRectFill(l_wrp, xStart, yStart, xEnd, yEnd);
+	}
+
+void lsShowAllConnections(ulong areaID, NODE *node, ubyte perc)
+	{
+	NODE  *n;
+	LSObject lso1, lso2;
+	ulong relID = 0, col, destX, destY, srcX, srcY;
+	ulong rasterXSize, rasterYSize, rasterSize;
+	static ubyte Alarm_Power;
+
+	lso1 = (LSObject)OL_DATA(node);
+
+	rasterXSize = lsGetRasterXSize(areaID);
+	rasterYSize = lsGetRasterYSize(areaID);
+
+	rasterSize = min(rasterXSize, rasterYSize);
+
+	switch(lso1->Type)
+		{
+		case Item_Alarmanlage_Z3:
+		case Item_Alarmanlage_X3:
+		case Item_Alarmanlage_Top: relID = hasAlarmRelationID;
+											if (Alarm_Power & 1) lsShowRaster(areaID, perc);
+											Alarm_Power |= 1;
+											break;
+		case Item_Steuerkasten:    relID = hasPowerRelationID;
+											if (Alarm_Power & 2) lsShowRaster(areaID, perc);
+											Alarm_Power |= 2;
+											break;
+		default: break;
+		}
+
+	if (relID)
+		{
+		col = ((Item) dbGetObject(lso1->Type))->ColorNr;
+
+		SetObjectListAttr (OLF_NORMAL, Object_LSObject);
+		AskAll (lso1, relID, BuildObjectList);
+
+		srcX = lso1->us_DestX + lso1->uch_ExactX + (lso1->uch_ExactX1 - lso1->uch_ExactX) / 2;
+		srcY = lso1->us_DestY + lso1->uch_ExactY + (lso1->uch_ExactY1 - lso1->uch_ExactY) / 2;
+
+		srcX = (srcX * rasterSize) / LS_RASTER_X_SIZE;
+		srcY = (srcY * rasterSize) / LS_RASTER_Y_SIZE;
+
+		for(n = (NODE*) LIST_HEAD(ObjectList); NODE_SUCC(n); n = (NODE *)NODE_SUCC(n))
+			{
+			uword x0, y0, x1, y1;
+
+			gfxSetPens(l_wrp,col, GFX_SAME_PEN, GFX_SAME_PEN);
+
+			lso2 = (LSObject)OL_DATA(n);
+
+			lsCalcExactSize(lso2, &x0, &y0, &x1, &y1);
+
+			destX = x0 + (x1 - x0)/2;
+			destY = y0 + (y1 - y0)/2;
+
+			destX = (destX * rasterSize) / LS_RASTER_X_SIZE;
+			destY = (destY * rasterSize) / LS_RASTER_Y_SIZE;
+
+			gfxMoveCursor(l_wrp, srcX,  srcY);
+			gfxDraw(l_wrp, destX, srcY);
+			gfxDraw(l_wrp, destX, destY);
+
+			gfxSetPens(l_wrp, 0, 0, col);
+			gfxRectFill(l_wrp, destX - 1, destY - 1, destX + 2, destY + 2);
+			}
+		}
+	}
+
+static uword lsGetRasterXSize(ulong areaID)
+	{
+	LSArea area = (LSArea)dbGetObject(areaID);
+
+	return (uword)(LS_RASTER_DISP_WIDTH / ((area->us_Width) / LS_RASTER_X_SIZE));
+	}
+
+static uword lsGetRasterYSize(ulong areaID)
+	{
+	LSArea area = (LSArea)dbGetObject(areaID);
+
+	return (uword)(LS_RASTER_DISP_HEIGHT / ((area->us_Height) / LS_RASTER_Y_SIZE));
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/raster.h b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/raster.h
new file mode 100644
index 0000000..8175733
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/raster.h
@@ -0,0 +1,33 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_RASTER
+#define MODULE_RASTER
+
+#include "theclou.h"
+
+#ifndef MODULE_DIALOG
+#include "dialog\dialog.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#define LS_RASTER_DISP_WIDTH       320
+#define LS_RASTER_DISP_HEIGHT      140
+
+#define LS_RASTER_X_SIZE           4    /* Raster is used for collision */
+#define LS_RASTER_Y_SIZE           4    /* dedection, in pixel */
+
+
+NODE 	  *lsGetSuccObject(NODE *start);
+NODE 	  *lsGetPredObject(NODE *start);
+void  	lsFadeRasterObject(ulong areaID, LSObject lso, ubyte status);
+void  	lsShowAllConnections(ulong areaID, NODE *node, ubyte perc);
+void  	lsShowRaster(ulong areaID, ubyte perc);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/scroll.c b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/scroll.c
new file mode 100644
index 0000000..bad535f
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/scroll.c
@@ -0,0 +1,360 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "landscap\landscap.h"
+#include "landscap\landscap_p.h"
+
+uword DX,DY,PX,PY;
+
+ubyte lsScrollLandScape(ubyte direction)
+	{
+	struct LandScape *l=ls;
+	ubyte collis=0, back, speed = ls->uch_ScrollSpeed;
+
+	if (direction != (ubyte)-1)
+		collis = lsInitScrollLandScape(direction, LS_SCROLL_PREPARE);
+
+	if (!collis)
+		{
+		lsScrollCorrectData(DX * speed,DY *speed);
+
+		l->us_PersonXPos += (PX * speed);
+		l->us_PersonYPos += (PY * speed);
+
+		back =(ubyte) direction;
+		}
+
+	return back;
+	}
+
+ubyte lsInitScrollLandScape(ubyte direction, ubyte mode)
+	{
+	struct LandScape *l=ls;
+	long dx=0,dy=0,px=0,py=0,tx=0,ty=0,speed=(long)l->uch_ScrollSpeed;
+	ubyte collis=0;
+
+	if (direction & LS_SCROLL_LEFT)
+		{
+		if ((l->us_WindowXPos >= speed) && (l->us_PersonXPos <= LS_CENTER_X))
+			{
+			dx=-1L;
+
+			l->us_LivingXSpeed = (word) dx;
+			l->us_LivingYSpeed = 0;
+			l->uch_LivingAction = ANM_MOVE_LEFT;
+			}
+		else
+			{
+			if (l->us_PersonXPos > speed)
+				{
+				px = -1L;
+
+				l->us_LivingXSpeed = (word) px;
+				l->us_LivingYSpeed = 0;
+				l->uch_LivingAction = ANM_MOVE_LEFT;
+				}
+			}
+		}
+
+	if (direction & LS_SCROLL_RIGHT)
+		{
+		if ((l->us_WindowXPos <= (LS_MAX_AREA_WIDTH-LS_VISIBLE_X_SIZE-speed))
+			&& (l->us_PersonXPos >= LS_CENTER_X))
+			{
+			dx=1;
+
+			l->us_LivingXSpeed = (word) dx;
+			l->us_LivingYSpeed = 0;
+			l->uch_LivingAction = ANM_MOVE_RIGHT;
+			}
+		else
+			{
+			if (l->us_PersonXPos < (LS_VISIBLE_X_SIZE- speed))
+				{
+				px = 1L;
+
+				l->us_LivingXSpeed = (word) px;
+				l->us_LivingYSpeed = 0;
+				l->uch_LivingAction = ANM_MOVE_RIGHT;
+				}
+			}
+		}
+
+	if (direction & LS_SCROLL_UP)
+		{
+		if ((l->us_WindowYPos >= (speed)) && (l->us_PersonYPos<=LS_CENTER_Y))
+			{
+			dy=-1L;
+
+			l->us_LivingXSpeed = 0;
+			l->us_LivingYSpeed = (word) dy;
+			l->uch_LivingAction = ANM_MOVE_UP;
+			}
+		else
+			{
+			if (l->us_PersonYPos > (speed))
+				{
+				py = -1L;
+
+				l->us_LivingXSpeed = 0;
+				l->us_LivingYSpeed = (word) py;
+				l->uch_LivingAction = ANM_MOVE_UP;
+				}
+			}
+		}
+
+	if (direction & LS_SCROLL_DOWN)
+		{
+		if (l->us_WindowYPos <= (LS_MAX_AREA_HEIGHT-LS_VISIBLE_Y_SIZE- speed)
+			&& (l->us_PersonYPos>=LS_CENTER_Y))
+			{
+			dy = 1L;
+
+			l->us_LivingXSpeed = 0;
+			l->us_LivingYSpeed = (word) dy;
+			l->uch_LivingAction = ANM_MOVE_DOWN;
+			}
+		else
+			{
+			if (l->us_PersonYPos < (LS_VISIBLE_Y_SIZE- speed))
+				{
+				py = 1L;
+
+				l->us_LivingXSpeed = 0;
+				l->us_LivingYSpeed = (word) py;
+				l->uch_LivingAction = ANM_MOVE_DOWN;
+				}
+			}
+		}
+
+	tx = livGetXPos((char*)l->uch_ActivLiving) + (px + dx) * speed;
+	ty = livGetYPos((char*)l->uch_ActivLiving) + (py + dy) * speed;
+
+	collis = lsIsCollision((uword)tx,(uword)ty, direction);
+
+	if (mode & LS_SCROLL_PREPARE)
+		{
+		DX = dx; DY =dy; PX =px; PY = py;
+		}
+
+	return(collis);
+	}
+
+ubyte lsIsCollision(uword x, uword y, ubyte direction)
+	{
+	long i;
+	ubyte collis = 0;
+	ubyte color[14], collisDir = 0;
+
+	for (i = 0; i < 14; i++)
+		color[i] = 255;
+
+	// Kollision �berpr�fen
+	// Da sich das Maxi immer um 2 Pixel weiterbewegt, m�ssen Pixel
+	// hintereinander abgefragt werden, au�erdem wird immer an jeder
+	// Ecke einer Kollisionsseite kontrolliert
+
+	switch(direction)
+		{
+		/*
+		case LS_SCROLL_LEFT:
+				color[0] = gfxNCH4ReadPixel(l_wrp, x - 2, y - 2);
+				color[1] = gfxNCH4ReadPixel(l_wrp, x - 2, y + 0);
+				color[2] = gfxNCH4ReadPixel(l_wrp, x - 2, y + 2);
+				color[3] = gfxNCH4ReadPixel(l_wrp, x - 2, y + 4);
+				color[4] = gfxNCH4ReadPixel(l_wrp, x - 2, y + 6);
+				color[5] = gfxNCH4ReadPixel(l_wrp, x - 2, y + 8);
+				color[6] = gfxNCH4ReadPixel(l_wrp, x - 2, y + 10);
+
+				color[7] = gfxNCH4ReadPixel(l_wrp, x - 1, y - 2);
+				color[8] = gfxNCH4ReadPixel(l_wrp, x - 1, y + 0);
+				color[9] = gfxNCH4ReadPixel(l_wrp, x - 1, y + 2);
+				color[10] = gfxNCH4ReadPixel(l_wrp, x - 1, y + 4);
+				color[11] = gfxNCH4ReadPixel(l_wrp, x - 1, y + 6);
+				color[12] = gfxNCH4ReadPixel(l_wrp, x - 1, y + 8);
+				color[13] = gfxNCH4ReadPixel(l_wrp, x - 1, y + 10);
+
+				collisDir |= LS_COLLIS_LEFT;
+				break;
+		case LS_SCROLL_RIGHT:
+				color[0] = gfxNCH4ReadPixel(l_wrp, x + 16, y - 2);
+				color[1] = gfxNCH4ReadPixel(l_wrp, x + 16, y + 0);
+				color[2] = gfxNCH4ReadPixel(l_wrp, x + 16, y + 2);
+				color[3] = gfxNCH4ReadPixel(l_wrp, x + 16, y + 4);
+				color[4] = gfxNCH4ReadPixel(l_wrp, x + 16, y + 6);
+				color[5] = gfxNCH4ReadPixel(l_wrp, x + 16, y + 8);
+				color[6] = gfxNCH4ReadPixel(l_wrp, x + 16, y + 10);
+
+				color[7] = gfxNCH4ReadPixel(l_wrp, x + 17, y - 2);
+				color[8] = gfxNCH4ReadPixel(l_wrp, x + 17, y + 0);
+				color[9] = gfxNCH4ReadPixel(l_wrp, x + 17, y + 2);
+				color[10] = gfxNCH4ReadPixel(l_wrp, x + 17, y + 4);
+				color[11] = gfxNCH4ReadPixel(l_wrp, x + 17, y + 6);
+				color[12] = gfxNCH4ReadPixel(l_wrp, x + 17, y + 8);
+				color[13] = gfxNCH4ReadPixel(l_wrp, x + 17, y + 10);
+
+				collisDir |= LS_COLLIS_RIGHT;
+				break;
+		case LS_SCROLL_UP:
+				color[0] = gfxNCH4ReadPixel(l_wrp, x + 1 , y - 3);
+				color[1] = gfxNCH4ReadPixel(l_wrp, x + 2 , y - 3);
+				color[2] = gfxNCH4ReadPixel(l_wrp, x + 4 , y - 3);
+				color[3] = gfxNCH4ReadPixel(l_wrp, x + 6 , y - 3);
+				color[4] = gfxNCH4ReadPixel(l_wrp, x + 9 , y - 3);
+				color[5] = gfxNCH4ReadPixel(l_wrp, x + 12, y - 3);
+				color[6] = gfxNCH4ReadPixel(l_wrp, x + 14, y - 3);
+
+				color[7] = gfxNCH4ReadPixel(l_wrp, x + 1 , y - 4);
+				color[8] = gfxNCH4ReadPixel(l_wrp, x + 2 , y - 4);
+				color[9] = gfxNCH4ReadPixel(l_wrp, x + 4 , y - 4);
+				color[10] = gfxNCH4ReadPixel(l_wrp, x + 6 , y - 4);
+				color[11] = gfxNCH4ReadPixel(l_wrp, x + 9 , y - 4);
+				color[12] = gfxNCH4ReadPixel(l_wrp, x + 12, y - 4);
+				color[13] = gfxNCH4ReadPixel(l_wrp, x + 14, y - 4);
+				collisDir |= LS_COLLIS_UP;
+				break;
+		case LS_SCROLL_DOWN:
+				color[0] = gfxNCH4ReadPixel(l_wrp, x + 1 , y + 13);
+				color[1] = gfxNCH4ReadPixel(l_wrp, x + 2 , y + 13);
+				color[2] = gfxNCH4ReadPixel(l_wrp, x + 4 , y + 13);
+				color[3] = gfxNCH4ReadPixel(l_wrp, x + 6 , y + 13);
+				color[4] = gfxNCH4ReadPixel(l_wrp, x + 9 , y + 13);
+				color[5] = gfxNCH4ReadPixel(l_wrp, x + 12, y + 13);
+				color[6] = gfxNCH4ReadPixel(l_wrp, x + 14, y + 13);
+
+				color[7] = gfxNCH4ReadPixel(l_wrp, x + 1 , y + 14);
+				color[8] = gfxNCH4ReadPixel(l_wrp, x + 2 , y + 14);
+				color[9] = gfxNCH4ReadPixel(l_wrp, x + 4 , y + 14);
+				color[10] = gfxNCH4ReadPixel(l_wrp, x + 6 , y + 14);
+				color[11] = gfxNCH4ReadPixel(l_wrp, x + 9 , y + 14);
+				color[12] = gfxNCH4ReadPixel(l_wrp, x + 12, y + 14);
+				color[13] = gfxNCH4ReadPixel(l_wrp, x + 14, y + 14);
+
+				collisDir |= LS_COLLIS_DOWN;
+				break;
+		*/
+		case LS_SCROLL_LEFT:
+				color[0]  = gfxNCH4ReadPixel(l_wrp, x - 2, y - 2);
+				color[1]  = gfxNCH4ReadPixel(l_wrp, x - 2, y + 0);
+				color[2]  = gfxNCH4ReadPixel(l_wrp, x - 2, y + 2);
+				color[3]  = gfxNCH4ReadPixel(l_wrp, x - 2, y + 4);
+				color[4]  = gfxNCH4ReadPixel(l_wrp, x - 2, y + 6);
+				color[5]  = gfxNCH4ReadPixel(l_wrp, x - 2, y + 8);
+				color[6]  = gfxNCH4ReadPixel(l_wrp, x - 2, y + 10);
+
+				color[7]  = gfxNCH4ReadPixel(l_wrp, x - 1, y - 2);
+				color[8]  = gfxNCH4ReadPixel(l_wrp, x - 1, y + 0);
+				color[9]  = gfxNCH4ReadPixel(l_wrp, x - 1, y + 2);
+				color[10] = gfxNCH4ReadPixel(l_wrp, x - 1, y + 4);
+				color[11] = gfxNCH4ReadPixel(l_wrp, x - 1, y + 6);
+				color[12] = gfxNCH4ReadPixel(l_wrp, x - 1, y + 8);
+				color[13] = gfxNCH4ReadPixel(l_wrp, x - 1, y + 10);
+
+				collisDir |= LS_COLLIS_LEFT;
+				break;
+		case LS_SCROLL_RIGHT:
+				color[0]  = gfxNCH4ReadPixel(l_wrp, x + 16, y - 2);
+				color[1]  = gfxNCH4ReadPixel(l_wrp, x + 16, y + 0);
+				color[2]  = gfxNCH4ReadPixel(l_wrp, x + 16, y + 2);
+				color[3]  = gfxNCH4ReadPixel(l_wrp, x + 16, y + 4);
+				color[4]  = gfxNCH4ReadPixel(l_wrp, x + 16, y + 6);
+				color[5]  = gfxNCH4ReadPixel(l_wrp, x + 16, y + 8);
+				color[6]  = gfxNCH4ReadPixel(l_wrp, x + 16, y + 10);
+
+				color[7]  = gfxNCH4ReadPixel(l_wrp, x + 17, y - 2);
+				color[8]  = gfxNCH4ReadPixel(l_wrp, x + 17, y + 0);
+				color[9]  = gfxNCH4ReadPixel(l_wrp, x + 17, y + 2);
+				color[10] = gfxNCH4ReadPixel(l_wrp, x + 17, y + 4);
+				color[11] = gfxNCH4ReadPixel(l_wrp, x + 17, y + 6);
+				color[12] = gfxNCH4ReadPixel(l_wrp, x + 17, y + 8);
+				color[13] = gfxNCH4ReadPixel(l_wrp, x + 17, y + 10);
+
+				collisDir |= LS_COLLIS_RIGHT;
+				break;
+		case LS_SCROLL_UP:
+				color[0]  = gfxNCH4ReadPixel(l_wrp, x + 3 , y - 3);
+				color[1]  = gfxNCH4ReadPixel(l_wrp, x + 3 , y - 3);
+				color[2]  = gfxNCH4ReadPixel(l_wrp, x + 4 , y - 3);
+				color[3]  = gfxNCH4ReadPixel(l_wrp, x + 6 , y - 3);
+				color[4]  = gfxNCH4ReadPixel(l_wrp, x + 9 , y - 3);
+				color[5]  = gfxNCH4ReadPixel(l_wrp, x + 11, y - 3);
+				color[6]  = gfxNCH4ReadPixel(l_wrp, x + 11, y - 3);
+
+				color[7]  = gfxNCH4ReadPixel(l_wrp, x + 3 , y - 4);
+				color[8]  = gfxNCH4ReadPixel(l_wrp, x + 3 , y - 4);
+				color[9]  = gfxNCH4ReadPixel(l_wrp, x + 4 , y - 4);
+				color[10] = gfxNCH4ReadPixel(l_wrp, x + 6 , y - 4);
+				color[11] = gfxNCH4ReadPixel(l_wrp, x + 9 , y - 4);
+				color[12] = gfxNCH4ReadPixel(l_wrp, x + 11, y - 4);
+				color[13] = gfxNCH4ReadPixel(l_wrp, x + 11, y - 4);
+
+				collisDir |= LS_COLLIS_UP;
+				break;
+		case LS_SCROLL_DOWN:
+				color[0]  = gfxNCH4ReadPixel(l_wrp, x + 3 , y + 13);
+				color[1]  = gfxNCH4ReadPixel(l_wrp, x + 3 , y + 13);
+				color[2]  = gfxNCH4ReadPixel(l_wrp, x + 4 , y + 13);
+				color[3]  = gfxNCH4ReadPixel(l_wrp, x + 6 , y + 13);
+				color[4]  = gfxNCH4ReadPixel(l_wrp, x + 9 , y + 13);
+				color[5]  = gfxNCH4ReadPixel(l_wrp, x + 11, y + 13);
+				color[6]  = gfxNCH4ReadPixel(l_wrp, x + 11, y + 13);
+
+				color[7]  = gfxNCH4ReadPixel(l_wrp, x + 3 , y + 14);
+				color[8]  = gfxNCH4ReadPixel(l_wrp, x + 3 , y + 14);
+				color[9]  = gfxNCH4ReadPixel(l_wrp, x + 4 , y + 14);
+				color[10] = gfxNCH4ReadPixel(l_wrp, x + 6 , y + 14);
+				color[11] = gfxNCH4ReadPixel(l_wrp, x + 9 , y + 14);
+				color[12] = gfxNCH4ReadPixel(l_wrp, x + 11, y + 14);
+				color[13] = gfxNCH4ReadPixel(l_wrp, x + 11, y + 14);
+
+				collisDir |= LS_COLLIS_DOWN;
+				break;
+		default:
+				break;
+		}
+
+	// ab jetzt enthaelt color[i] einen Wert ungleich 0, wenn Kollision vorliegt
+	for (i = 0; i < 14; i++) {
+		if ((color[i] != LS_COLLIS_COLOR_0) && (color[i] != LS_COLLIS_COLOR_1) &&
+		    (color[i] != LS_COLLIS_COLOR_2) && (color[i] != LS_COLLIS_COLOR_3)) {
+			color[i] = 0;
+		} else {
+			/* 2014-06-27 templer
+			there is no collision on background color
+			This is because that in the query a value of 0 means no collision
+			To fix this, color[i] must be set on color "0" to a value greater than zero
+			*/
+			color[i] = 2;
+		}
+	}
+	for (i = 0; i < 14; i++) {
+		if (color[i]) {
+			collis = collisDir;
+		}
+	}
+	// wenn die aeusseren kollidieren, die inneren aber nicht -> keine Kollision (T�r!)
+	if ((color[0] || color[1]) && (color[6] || color[5]) && !color[3])
+		collis = 0;
+
+	if ((color[7] || color[8]) && (color[13] || color[12]) && !color[10])
+		collis = 0;
+
+	// Raender ue�berprue�fen!
+	if (x <= 2)
+		collis |= LS_COLLIS_LEFT;
+	if (x >= (LS_MAX_AREA_WIDTH - LS_PERSON_X_SIZE - 3))
+		collis |=LS_COLLIS_RIGHT;
+
+	if (y <= 2)
+		collis |= LS_COLLIS_UP;
+	if (y >= (LS_MAX_AREA_HEIGHT - LS_PERSON_Y_SIZE -3))
+		collis |= LS_COLLIS_DOWN;
+
+	if (GamePlayMode & GP_COLLISION_CHECKING_OFF)
+		collis = 0;
+
+	return collis;
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/spot.c b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/spot.c
new file mode 100644
index 0000000..df79440
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/spot.c
@@ -0,0 +1,412 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "landscap\spot.h"
+
+#include "port\port.h"
+
+#define LS_SPOT_BITMAP_WIDTH 		(96)
+#define LS_SPOT_BITMAP_HEIGHT		(LS_SPOT_LARGE_SIZE)
+
+#define LS_SPOT_BITMAP_SIZE		(LS_SPOT_BITMAP_WIDTH * LS_SPOT_BITMAP_HEIGHT)
+
+#define LS_SPOT_LOAD_BUFFER		StdBuffer0
+#define LS_SPOT_DECR_BUFFER		StdBuffer1
+
+#define LS_SPOT_FILENAME			((const char*)"Spot")
+
+static void lsShowSpot(struct Spot *s, ulong time);
+static void lsLoadSpotBitMap(void *p_BitMap);
+static void lsHideSpot(struct Spot *s);
+static void lsBlitSpot(uword us_Size, uword us_XPos, uword us_YPos, ubyte visible);
+
+struct SpotControl {
+	LIST *				p_spots;
+	struct RastPort *	p_SpotRP;      /* Zielrastport */
+	void *				p_SourceData;
+};
+
+static struct SpotControl *sc = NULL;
+
+void lsInitSpots(struct RastPort *rp)
+{
+	if (sc) {
+		lsDoneSpots();
+	}
+
+	sc = (struct SpotControl *)MemAlloc(sizeof(struct SpotControl));
+
+	sc->p_spots      = (LIST *)CreateList(0);
+	sc->p_SpotRP     = rp;
+	sc->p_SourceData = MemAlloc(LS_SPOT_BITMAP_SIZE);
+
+	lsLoadSpotBitMap(sc->p_SourceData);
+}
+
+static void lsFreeAllSpots(void)
+{
+	struct Spot *spot;
+
+	for (spot = (struct Spot *)LIST_HEAD(sc->p_spots); NODE_SUCC(spot); spot = (struct Spot *)NODE_SUCC(spot)) {
+		RemoveList(spot->p_positions);
+		spot->p_positions = NULL;
+	}
+}
+
+void lsDoneSpots(void)
+{
+	if (sc) {
+		lsFreeAllSpots();
+
+		RemoveList(sc->p_spots);
+
+		if (sc->p_SourceData) {
+			MemFree(sc->p_SourceData, LS_SPOT_BITMAP_SIZE);
+		}
+
+		MemFree(sc, sizeof(struct SpotControl));
+		sc = NULL;
+	}
+}
+
+static long lsIsSpotVisible(struct Spot *spot)
+{
+	return 1;
+}
+
+/* zeigt alle Spots, die sich bewegen */
+void lsMoveAllSpots(ulong time)
+{
+	struct Spot *spot;
+
+	for (spot = (struct Spot *) LIST_HEAD(sc->p_spots); NODE_SUCC(spot); spot = (struct Spot *) NODE_SUCC(spot)) {
+		if (spot->us_PosCount > 1) {
+			if (lsIsSpotVisible(spot)) {
+				if (lsIsLSObjectInActivArea((LSObject)dbGetObject(spot->ul_CtrlObjId))) {     /* wenn der Steuerkasten in dieser Area -> */
+					if (spot->uch_Status & LS_SPOT_ON) {
+						lsShowSpot(spot, time);  /* Spot darstellen (auch in der aktiven Area */
+					}
+				}
+			}
+		}
+	}
+}
+
+void lsShowAllSpots(ulong time, ulong mode)
+{
+	struct Spot *spot;
+
+	for (spot = (struct Spot *) LIST_HEAD(sc->p_spots); NODE_SUCC(spot); spot = (struct Spot *) NODE_SUCC(spot)) {
+		if (lsIsLSObjectInActivArea((LSObject)dbGetObject(spot->ul_CtrlObjId))) {     /* wenn der Steuerkasten in dieser Area -> */
+			if (mode & LS_ALL_VISIBLE_SPOTS) {
+				if (spot->uch_Status & LS_SPOT_ON) {
+					lsShowSpot(spot, time);                   /* Spot darstellen */
+				}
+			}
+
+			if (mode & LS_ALL_INVISIBLE_SPOTS) {
+				if (spot->uch_Status & LS_SPOT_OFF) {
+					lsHideSpot(spot);                        /* Spot (alte Position) l�schen */
+				}
+			}
+		}
+	}
+}
+
+static void lsShowSpot(struct Spot *s, ulong time)    /* zum Abspielen! */
+{
+	struct SpotPosition *pos;
+	ulong count;
+
+	if (!(time % s->us_Speed)) {    /* nur alle x Sekunden Bewegung */
+		count = (time / s->us_Speed);
+
+		/* wegen Ping-Pong dauert ein Zyklus doppelt so lang -> * 2 */
+		/* abz�glich 2 (letztes und erstes kommen nur einmal        */
+
+		if(s->us_PosCount > 1) {
+			count = count % (s->us_PosCount * 2 - 2);
+
+			if (count >= s->us_PosCount) {  /* Sonderfall R��ckw�rts! (in Ping Pong) */
+				count = (s->us_PosCount * 2 - 2) - count;
+			}
+		} else {
+			count = 0;
+		}
+
+		/* LucyG 2017-10-30 : Planning the Natural Museum crashed with pos=NULL */
+		if (s->us_PosCount > count) {
+			pos = (struct SpotPosition *)GetNthNode(s->p_positions, count);
+			s->p_CurrPos = pos;
+
+			/* alte Position l�schen */
+			lsHideSpot(s);
+
+			/* Spot setzen */
+			lsBlitSpot (s->us_Size, pos->us_XPos, pos->us_YPos, 1);
+
+			s->us_OldXPos = pos->us_XPos;
+			s->us_OldYPos = pos->us_YPos;
+		} else {
+			s->p_CurrPos = NULL;
+			
+			Log("%s|%s: Spot \"%s\" has no positions", __FILE__, __func__, s->Link.Name);
+		}
+	}
+}
+
+static void lsHideSpot(struct Spot *s)
+{
+	/* den alten Spot l�schen! */
+	if ((s->us_OldXPos != (uword) -1) && (s->us_OldYPos != (uword) -1)) {
+		lsBlitSpot (s->us_Size, s->us_OldXPos, s->us_OldYPos, 0);
+	}
+}
+
+static void lsGetAreaForSpot(struct Spot *spot)
+{
+	ulong area = (spot->ul_CtrlObjId / 1000) * 1000;
+
+	switch(area)
+	{
+	case 170000:
+		spot->ul_AreaId = 508016; break;
+	case 320000:
+		spot->ul_AreaId = 508031; break;
+	case 330000:
+		spot->ul_AreaId = 508032; break;
+	case 340000:
+		spot->ul_AreaId = 508033; break;
+	case 360000:
+		spot->ul_AreaId = 508035; break;
+	case 380000:
+		spot->ul_AreaId = 508037; break;
+	case 400000:
+		spot->ul_AreaId = 508039; break;
+	case 420000:
+		spot->ul_AreaId = 508041; break;
+	case 430000:
+		spot->ul_AreaId = 508042; break;
+	case 450000:
+		spot->ul_AreaId = 508043; break;
+	case 440000:
+		spot->ul_AreaId = 508044; break;
+	case 460000:
+		spot->ul_AreaId = 508045; break;
+	case 470000:
+		spot->ul_AreaId = 508046; break;
+	default:
+		spot->ul_AreaId =      0; break;
+	}
+	if (bProfidisk)
+	{
+		switch(area)
+		{
+		case 520000:
+			spot->ul_AreaId = 508101; break;
+		case 530000:
+			spot->ul_AreaId = 508102; break;
+		case 540000:
+			spot->ul_AreaId = 508103; break;
+		case 560000:
+			spot->ul_AreaId = 508105; break;
+		case 580000:
+			spot->ul_AreaId = 508107; break;
+		case 600000:
+			spot->ul_AreaId = 508109; break;
+		case 610000:
+			spot->ul_AreaId = 508110; break;
+		case 620000:
+			spot->ul_AreaId = 508111; break;
+		case 640000:
+			spot->ul_AreaId = 508113; break;
+		case 650000:
+			spot->ul_AreaId = 508114; break;
+		case 660000:
+			spot->ul_AreaId = 508115; break;
+		case 670000:
+			spot->ul_AreaId = 508116; break;
+		default:
+			spot->ul_AreaId =      0; break;
+		}
+	}
+}
+
+static struct Spot *lsAddSpot(uword us_Size, uword us_Speed, ulong ul_CtrlObjId)
+{
+	struct Spot *spot;
+	ulong  SpotNr;
+	char line[TXT_KEY_LENGTH];
+
+	SpotNr = GetNrOfNodes(sc->p_spots);
+
+	sprintf(line, "*%s%ld", LS_SPOT_NAME, SpotNr);
+
+	spot = (struct Spot *)CreateNode(sc->p_spots, sizeof(struct Spot), line);
+
+	spot->us_Size   = us_Size;
+	spot->us_Speed  = us_Speed;
+	spot->p_positions = (LIST *)CreateList(0);
+
+	spot->us_OldXPos = (uword) -1;
+	spot->us_OldYPos = (uword) -1;
+
+	spot->uch_Status  = LS_SPOT_ON;
+	spot->us_PosCount = 0;
+
+	spot->p_CurrPos = NULL;
+
+	spot->ul_CtrlObjId = ul_CtrlObjId;
+
+	lsGetAreaForSpot(spot);
+
+	return(spot);
+}
+
+void lsSetSpotStatus(ulong CtrlObjId, ubyte uch_Status)
+{
+	struct Spot *s;
+
+	for (s = (struct Spot *) LIST_HEAD(sc->p_spots); NODE_SUCC(s); s = (struct Spot *) NODE_SUCC(s)) {
+		if (s->ul_CtrlObjId == CtrlObjId) {
+			s->uch_Status = uch_Status;
+		}
+	}
+}
+
+static void lsAddSpotPosition(struct Spot *spot, uword us_XPos, uword us_YPos)
+	{
+	struct SpotPosition *pos;
+
+	pos = (struct SpotPosition*) CreateNode(spot->p_positions, (long) sizeof(struct SpotPosition), NULL);
+
+	pos->us_XPos = (word) us_XPos + (word) LS_PC_CORRECT_X;
+	pos->us_YPos = (word) us_YPos + (word) LS_PC_CORRECT_Y;
+
+	spot->us_PosCount++;
+	}
+
+static void lsLoadSpotBitMap(void *p_BitMap)
+	{
+	char Result[TXT_KEY_LENGTH];
+	long  i,j;
+	ubyte *s, *d;
+
+	// Dateiname erstellen
+	dskBuildPathName(PICTURE_DIRECTORY, LS_SPOT_FILENAME, Result);
+
+	// Collection laden
+	dskLoad(Result, LS_SPOT_LOAD_BUFFER, 0);
+
+	tcClearStdBuffer(LS_SPOT_DECR_BUFFER);
+
+	// Collection entpacken
+	// der Decr Buffer entspricht dem PrepareRP
+	gfxILBMToRAW((ubyte*)LS_SPOT_LOAD_BUFFER, (ubyte*)LS_SPOT_DECR_BUFFER);
+
+	// und jetzt in den richtigen Buffer kopieren
+	d = (ubyte*)p_BitMap;
+	s = (ubyte*)LS_SPOT_DECR_BUFFER;
+
+	for (j = 0; j < LS_SPOT_BITMAP_HEIGHT; j++)
+		{
+		for (i = 0; i < 96; i++)
+			{
+			if (*s == 63)
+				*s = 64;
+
+			if (*s == 255)
+				*s = 0;
+
+			*d++ = *s++;
+			}
+
+		for (i = 96; i < 320; i++)	// modulo
+			s++;
+		}
+	}
+
+void lsLoadSpots(ulong bldId, char *uch_FileName)
+	{
+	FILE *file;
+	char filename[TXT_KEY_LENGTH], buffer[TXT_KEY_LENGTH];
+	uword SpotCount,i,j;
+	ulong CtrlObjId;
+	struct Spot *spot;
+	uword Size, Speed, Count, XPos, YPos;
+
+	dskBuildPathName (DATA_DIRECTORY,uch_FileName, filename);
+
+	file = dskOpen (filename,"r",0);
+
+	dskGets(buffer,TXT_KEY_LENGTH-1,file);
+	SpotCount = (uword) atol(buffer);
+
+	for (i=0;i<SpotCount;i++)
+		{
+		dskGets(buffer,TXT_KEY_LENGTH-1,file);
+		Size = (uword) atol(buffer);
+
+		dskGets(buffer,TXT_KEY_LENGTH-1,file);
+		Speed = (uword) atol(buffer);
+
+		dskGets(buffer,TXT_KEY_LENGTH-1,file);
+		CtrlObjId = atol(buffer);
+
+		dskGets(buffer,TXT_KEY_LENGTH-1,file);
+		Count = (uword) atol(buffer);
+
+		spot = lsAddSpot(Size, Speed, CtrlObjId);
+
+		for (j=0;j<Count;j++)
+			{
+			dskGets(buffer,TXT_KEY_LENGTH-1,file);
+			XPos = (uword) atol(buffer);
+
+			dskGets(buffer,TXT_KEY_LENGTH-1,file);
+			YPos = (uword) atol(buffer);
+
+			lsAddSpotPosition(spot,XPos,YPos);
+			}
+
+		if (!(LIST_EMPTY(sc->p_spots)))
+			spot->p_CurrPos = (struct SpotPosition *) LIST_HEAD(sc->p_spots);
+		}
+
+	dskClose(file);
+	}
+
+LIST *lsGetSpotList(void)
+	{
+	return (sc->p_spots);
+	}
+
+static void lsBlitSpot(uword us_Size, uword us_XPos, uword us_YPos, ubyte visible)
+	{
+	ulong sourceX = 0;
+	void  *Src, *Dest;
+
+	switch(us_Size)
+		{
+		case LS_SPOT_SMALL_SIZE:
+			sourceX = LS_SPOT_LARGE_SIZE + LS_SPOT_MEDIUM_SIZE;
+			break;
+		case LS_SPOT_MEDIUM_SIZE:
+			sourceX = LS_SPOT_LARGE_SIZE;
+			break;
+		case LS_SPOT_LARGE_SIZE:
+			break;
+		}
+
+
+	Src  = sc->p_SourceData;
+	Dest = l_wrp->p_BitMap;
+
+	if (visible)
+		gfxNCH4OrMCGAToNCH4(Src, Dest, sourceX, 0, us_XPos, us_YPos, us_Size, us_Size, 96, 160);
+	else
+		gfxNCH4AndMCGAToNCH4(Src, Dest, sourceX, 0, us_XPos, us_YPos, us_Size, us_Size, 96, 160);
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/landscap/spot.h b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/spot.h
new file mode 100644
index 0000000..b13f6f7
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/landscap/spot.h
@@ -0,0 +1,92 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_SPOT
+#define MODULE_SPOT
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#define LS_SPOT_NAME					((ubyte*)"s")
+
+#define LS_SPOT_SMALL_SIZE         16
+#define LS_SPOT_MEDIUM_SIZE        32
+#define LS_SPOT_LARGE_SIZE         48
+
+#define LS_SPOT_ON                  1
+#define LS_SPOT_OFF                 2
+
+#define LS_ALL_VISIBLE_SPOTS        1
+#define LS_ALL_INVISIBLE_SPOTS      2
+
+struct SpotPosition {
+	NODE	Link;
+
+	uword	us_XPos;
+	uword	us_YPos;
+};
+
+struct Spot {
+	NODE	Link;
+
+	uword	us_Size;
+	uword	us_Speed;	     /* secconds per move */
+
+	ulong 	ul_CtrlObjId;  /* data : objId */
+
+	ulong	ul_AreaId;
+
+	ubyte	uch_Status;
+	ubyte	Padding;
+
+	uword	us_OldXPos;
+	uword	us_OldYPos;
+
+	uword	us_PosCount;
+
+	LIST *	p_positions;
+
+	struct SpotPosition *p_CurrPos; /* for fast access */
+};
+
+extern void lsInitSpots(struct RastPort *rp);
+extern void lsDoneSpots(void);
+
+extern void lsMoveAllSpots(ulong time);
+extern void lsShowAllSpots(ulong time, ulong mode);
+
+extern void lsSetSpotStatus(ulong CtrlObjId, ubyte uch_Status);
+
+extern void lsLoadSpots(ulong bldId, char *uch_FileName);
+extern void lsWriteSpots(char *uch_FileName);
+extern void lsRemSpot(struct Spot *spot);
+
+extern LIST *lsGetSpotList(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/list/list.c b/cosp-0.6-src/ClouRemake/ClouRemake/list/list.c
new file mode 100644
index 0000000..6f4bfc6
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/list/list.c
@@ -0,0 +1,314 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include <stdio.h>
+#include <string.h>
+#include <stdarg.h>
+
+#include "list\list.h"
+#include "port\port.h"
+
+void *CreateList(uword size)
+{
+	LIST *list = NULL;
+
+	if (!size)
+		size = sizeof(LIST);
+
+	if (size >= sizeof(LIST))
+	{
+		if (list = (LIST *)MemAlloc(size))
+		{
+			LIST_HEAD(list) = (NODE *)&LIST_TAIL(list);
+			LIST_TAIL(list) = NULL;
+			LIST_TPRED(list)= (NODE *)&LIST_HEAD(list);
+			LIST_SIZE(list) = size;
+		}
+	}
+
+	return (void *)list;
+}
+
+void RemoveList(void *list)
+{
+	RemoveNode(list, NULL);
+	FreeList(list);
+}
+
+void FreeList(void *list)
+{
+	MemFree(list, LIST_SIZE(list));
+}
+
+void *AddNode(void *list, void *node, void *predNode)
+{
+	if (!predNode)
+		predNode = list;
+
+	NODE_SUCC(node) = NODE_SUCC(predNode);
+	NODE_PRED(node) =(NODE*) predNode;
+
+	NODE_PRED(NODE_SUCC(predNode))=(NODE*) node;
+	NODE_SUCC(predNode)           =(NODE*) node;
+
+	return node;
+}
+
+void *AddTailNode(void *list, void *node)
+{
+	return AddNode(list, node, LIST_TPRED(list));
+}
+
+void *AddHeadNode(void *list, void *node)
+{
+	return AddNode(list, node, list);
+}
+
+void *RemNode(void *node)
+{
+	NODE_SUCC(NODE_PRED(node)) = NODE_SUCC(node);
+	NODE_PRED(NODE_SUCC(node)) = NODE_PRED(node);
+
+	// just to be certain
+	NODE_SUCC(node) = NULL;
+	NODE_PRED(node) = NULL;
+
+	return node;
+}
+
+void *RemHeadNode(void *list)
+{
+	if (!LIST_EMPTY(list))
+		return RemNode(LIST_HEAD(list));
+	else
+	    return NULL;
+}
+
+void *RemTailNode(void *list)
+{
+	if (!LIST_EMPTY(list))
+		return RemNode(LIST_TPRED(list));
+	else
+	    return NULL;
+}
+
+void *CreateNode(void *list, uword size, char *name)
+{
+	NODE *node   = NULL;
+	uword len    = 0;
+
+	if (!size)
+	{
+		size = sizeof(NODE);
+	}
+
+	if (name)
+	{
+		len = strlen(name) + 1;
+	}
+
+	if (size >= sizeof(NODE))
+	{
+		if (node = (NODE *)MemAlloc(size + len))
+		{
+			NODE_SUCC(node) = NULL;
+			NODE_PRED(node) = NULL;
+			NODE_SIZE(node) = size;
+
+			if (name)
+			{
+				NODE_NAME(node) = &((char *)node)[size];
+				strcpy(NODE_NAME(node), name);
+			}
+			else
+			{
+				NODE_NAME(node) = NULL;
+			}
+
+			if (list)
+			{
+				AddTailNode(list, node);
+			}
+		}
+	}
+	return((void *)node);
+}
+
+void RemoveNode(void *list, char *name)
+{
+	NODE *node;
+
+	if (name)
+	{
+		if (node = (NODE*)GetNode(list, name))
+		{
+			RemNode(node);
+			FreeNode(node);
+		}
+	}
+	else
+	{
+		if(!LIST_EMPTY(list))
+		{
+			while (node = (NODE*)RemTailNode(list))
+				FreeNode(node);
+		}
+	}
+}
+
+void FreeNode(void *node)
+{
+	uword size;
+	size = NODE_SIZE(node);
+
+	if (NODE_NAME(node))
+		size += strlen(NODE_NAME(node)) + 1;
+
+	MemFree(node, size);
+}
+
+void *GetNode(void *list, char *name)
+{
+	NODE *node;
+
+	for (node = LIST_HEAD(list); NODE_SUCC(node); node = NODE_SUCC(node))
+	{
+		if (!strcmp(NODE_NAME(node), name))
+		{
+			return(node);
+		}
+	}
+	return(NULL);
+}
+
+void *GetNthNode(void *list, ulong n)
+{
+	NODE *node;
+	ulong i = 0;
+
+	for (node = LIST_HEAD(list); NODE_SUCC(node); node = NODE_SUCC(node))
+	{
+		if (i == n) return(node);
+		i++;
+	}
+	return(NULL);
+}
+
+ulong GetNrOfNodes(void *list)
+{
+	NODE *node = NULL;
+	ulong i = 0;
+
+	for (i = 0, node = LIST_HEAD(list); NODE_SUCC(node); i++, node = NODE_SUCC(node));
+
+	return i;
+}
+
+ulong GetNodeNrByAddr(void *list, void *node)
+{
+	NODE *s;
+	ulong i;
+
+	for (s = LIST_HEAD(list), i = 0; NODE_SUCC(s) && (s != node); s = NODE_SUCC(s), i++);
+
+	return i;
+}
+
+ulong GetNodeNr(void *list, char *name)
+{
+	return GetNodeNrByAddr(list, GetNode(list, name));
+}
+
+void foreach(void *list, void (*processNode)(void *))
+{
+	NODE *node;
+
+	for (node = LIST_HEAD(list); NODE_SUCC(node); node = NODE_SUCC(node))
+		processNode (node);
+}
+
+void Link(void *list, void *node, void *predNode)
+{
+	if (predNode)
+		AddNode(list, node, predNode);
+	else
+	    AddTailNode(list, node);
+}
+
+void *UnLinkByAddr(void *list, void *node, void **predNode)
+{
+	if (predNode)
+		*predNode = NODE_PRED(node);
+
+	return RemNode(node);
+}
+
+void *UnLink(void *list, char *name, void **predNode)
+{
+	return UnLinkByAddr(list, GetNode(list, name), predNode);
+}
+
+void ReplaceNodeByAddr(void *list, void *node, void *newNode)
+{
+	void *predNode;
+
+	if (node = UnLinkByAddr (list, node, &predNode))
+	{
+		Link(list, newNode, predNode);
+		FreeNode (node);
+	}
+}
+
+void ReplaceNode(void *list, char *name, void *newNode)
+{
+	ReplaceNodeByAddr(list, GetNode(list, name), newNode);
+}
+
+ulong ReadList(void *list, uword size, char *fileName, uword diskId)
+{
+	FILE *fh;
+	ulong i = 0;
+	char buffer[256];
+
+	if (fh = dskOpen(fileName, "r", diskId))
+	{
+		while (dskGets(buffer, 255, fh))
+		{
+			if (buffer[0] == ';')
+				continue;	// overread comments
+
+			if (!buffer[0])
+				continue;	// skip empty line
+
+			if (!CreateNode(list, size, buffer))
+			{
+				RemoveNode(list, NULL);
+				dskClose(fh);
+				return 0L;
+			}
+
+			i++;
+		}
+
+		dskClose(fh);
+	}
+
+	return i;
+}
+
+void WriteList(void *list, char *fileName, uword diskId)
+{
+	FILE *fh = NULL;
+	NODE *node  = NULL;
+
+	if (fh = dskOpen(fileName, "w", diskId))
+	{
+		for (node = LIST_HEAD(list); NODE_SUCC(node); node = NODE_SUCC(node))
+			fprintf(fh, "%s\n", NODE_NAME(node));
+
+		fclose(fh);
+	}
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/list/list.h b/cosp-0.6-src/ClouRemake/ClouRemake/list/list.h
new file mode 100644
index 0000000..33fc443
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/list/list.h
@@ -0,0 +1,86 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_LIST
+#define MODULE_LIST
+
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+/*****************
+**  Structures  **
+*****************/
+
+struct Node
+{
+  struct Node  * Succ;
+  struct Node  * Pred;
+  char  * Name;
+  uword Size;
+  uword	Pad;
+};
+typedef struct Node NODE;
+
+struct List
+{
+  NODE  * Head;
+  NODE  * Tail;
+  NODE  * TPred;
+  uword Size;
+  uword	Pad;
+};
+typedef struct List LIST;
+
+/*************
+**  Macros  **
+*************/
+
+#define NODE_SUCC(node)   ((NODE *)(node))->Succ
+#define NODE_PRED(node)   ((NODE *)(node))->Pred
+#define NODE_NAME(node)   ((NODE *)(node))->Name
+#define NODE_SIZE(node)   ((NODE *)(node))->Size
+
+#define LIST_HEAD(list)   ((LIST *)(list))->Head
+#define LIST_TAIL(list)   ((LIST *)(list))->Tail
+#define LIST_TPRED(list)  ((LIST *)(list))->TPred
+#define LIST_SIZE(list)   ((LIST *)(list))->Size
+
+#define LIST_EMPTY(list)  (((LIST *)(list))->TPred == (NODE *)list)
+
+/*****************
+**  Prototypes  **
+*****************/
+
+extern void *CreateList(uword size);
+extern void RemoveList(void *list);
+extern void FreeList(void *list);
+extern void *AddNode(void *list, void *node, void *predNode);
+extern void *AddTailNode(void *list, void *node);
+extern void *AddHeadNode(void *list, void *node);
+extern void *RemNode(void *node);
+extern void *RemHeadNode(void *list);
+extern void *RemTailNode(void *list);
+extern void *CreateNode(void *list, uword size, char *name);
+extern void RemoveNode(void *list, char *name);
+extern void FreeNode(void *node);
+extern void *GetNode(void *list, char *name);
+extern void *GetNthNode(void *list, ulong nth);
+extern ulong GetNrOfNodes(void *list);
+extern ulong GetNodeNrByAddr(void *list, void *node);
+extern ulong GetNodeNr(void *list, char *name);
+extern void foreach(void *list, void (*processNode)(void *));
+extern void Link(void *list, void *node, void *predNode);
+extern void *UnLinkByAddr(void *list, void *node, void **predNode);
+extern void *UnLink(void *list, char *name, void **predNode);
+extern void ReplaceNodeByAddr(void *list, void *node, void *newNode);
+extern void ReplaceNode(void *list, char *name, void *newNode);
+extern ulong ReadList(void *list, uword size, char *fileName, uword diskId);
+extern void WriteList(void *list, char *fileName, uword diskId);
+
+#endif /* MODULE_LIST */
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/living/bob.c b/cosp-0.6-src/ClouRemake/ClouRemake/living/bob.c
new file mode 100644
index 0000000..396d5f4
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/living/bob.c
@@ -0,0 +1,261 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "living\bob.h"
+#include "memory\memory.h"
+#include "gfx\gfx.h"
+
+#define MaxBob 		32
+
+struct ObjStruct
+{
+	void *SPtr;		// source bitmap
+	void *DPtr;		// dest. bitmap
+	void *RPtr;		// rescue bitmap [w*h]
+	int	x,y;
+	int	w,h;		// width, height
+	int	frame;
+	int	vis;
+	int sx,sy;
+	int ox,oy;
+	int DrawMe;		// internal
+} Bob[MaxBob];
+
+void BobInitLists(void)
+{
+	uword t;
+	for (t = 0; t < MaxBob; t++)
+	{
+		Bob[t].x = -1;
+		Bob[t].y = -1;
+	}
+}
+
+// Liefert das Handle des Bobings....im Fehlerfall: -1
+uword BobInit(void *BitMap, uword Width, uword Height)
+{
+	uword ID = 0;
+
+	while (ID < MaxBob)
+	{
+		if (Bob[ID].x == -1) break;
+		ID++;
+	}
+
+	if (ID == MaxBob)
+	{
+		#ifdef THECLOU_DEBUG
+		Log("Too many bobs! Increase 'MaxBob'.");
+		#endif
+		return(-1);
+	}
+
+	Bob[ID].SPtr = BitMap;
+	Bob[ID].DPtr = l_wrp->p_BitMap;
+
+	if ((Bob[ID].RPtr = MemAlloc(Width * Height)) == NULL) return(-1);
+
+	Bob[ID].w = Width;
+	Bob[ID].h = Height;
+
+	Bob[ID].x = Bob[ID].y = 0;
+	Bob[ID].sx = Bob[ID].sy = 0;
+	Bob[ID].ox = Bob[ID].oy = 0;
+
+	Bob[ID].vis = 0;
+	Bob[ID].frame = 0;
+
+	Bob[ID].DrawMe = 1;
+	return(ID);
+}
+
+static void BobCheckVis(uword ID)
+{
+	uword s, t;
+
+	for (t = ID; t < MaxBob; t++)
+	{
+		if (Bob[t].DrawMe != 1) continue;
+
+		// moeglicherweise (wenn es zu Fehlern kommt),
+		// muss "t+1" durch "ID+1" ersetzt werden
+		for (s = t + 1; s < MaxBob; s++)
+		{
+			if ((Bob[s].DrawMe == 1) || (Bob[s].vis != 1)) continue;
+
+			if ((Bob[s].x >= Bob[t].x) &&
+				(Bob[s].y >= Bob[t].y) &&
+				(Bob[s].x <= (Bob[t].x + Bob[t].w)) &&
+				(Bob[s].y <= (Bob[t].y + Bob[t].h)))
+			{
+				Bob[s].DrawMe = 1;
+				continue;
+			}
+
+			if (((Bob[s].x + Bob[s].w) >= Bob[t].x) &&
+				(Bob[s].y >= Bob[t].y) &&
+				((Bob[s].x + Bob[s].w) <= (Bob[t].x + Bob[t].w)) &&
+			    (Bob[s].y <= (Bob[t].y + Bob[t].h)))
+			{
+				Bob[s].DrawMe = 1;
+				continue;
+			}
+
+			if ((Bob[s].x >= Bob[t].x) &&
+			    ((Bob[s].y+Bob[s].h) >= Bob[t].y) &&
+			    (Bob[s].x <= (Bob[t].x + Bob[t].w)) &&
+			    ((Bob[s].y + Bob[s].h) <= (Bob[t].y + Bob[t].h)))
+			{
+				Bob[s].DrawMe = 1;
+				continue;
+			}
+
+			if (((Bob[s].x + Bob[s].w) >= Bob[t].x) &&
+				((Bob[s].y + Bob[s].h) >= Bob[t].y) &&
+				((Bob[s].x + Bob[s].w) <= (Bob[t].x + Bob[t].w)) &&
+				((Bob[s].y + Bob[s].h) <= (Bob[t].y + Bob[t].h)))
+			{
+				Bob[s].DrawMe = 1;
+				continue;
+			}
+
+			if ((Bob[s].x >= Bob[t].ox) &&
+			    (Bob[s].y >= Bob[t].oy) &&
+			    (Bob[s].x <= (Bob[t].ox + Bob[t].w)) &&
+			    (Bob[s].y <= (Bob[t].oy + Bob[t].h)))
+			{
+				Bob[s].DrawMe = 1;
+				continue;
+			}
+
+			if (((Bob[s].x + Bob[s].w) >= Bob[t].ox) &&
+			    (Bob[s].y >= Bob[t].oy) &&
+			    ((Bob[s].x + Bob[s].w) <= (Bob[t].ox + Bob[t].w)) &&
+			    (Bob[s].y <= (Bob[t].oy + Bob[t].h)))
+			{
+				Bob[s].DrawMe = 1;
+				continue;
+			}
+
+			if ((Bob[s].x >= Bob[t].ox) &&
+			    ((Bob[s].y + Bob[s].h) >= Bob[t].oy) &&
+			    (Bob[s].x <= (Bob[t].ox + Bob[t].w)) &&
+			    ((Bob[s].y + Bob[s].h) <= (Bob[t].oy + Bob[t].h)))
+			{
+				Bob[s].DrawMe = 1;
+				continue;
+			}
+
+			if (((Bob[s].x + Bob[s].w) >= Bob[t].ox) &&
+			    ((Bob[s].y + Bob[s].h) >= Bob[t].oy) &&
+			    ((Bob[s].x + Bob[s].w) <= (Bob[t].ox + Bob[t].w)) &&
+			    ((Bob[s].y + Bob[s].h) <= (Bob[t].oy + Bob[t].h)))
+			{
+				Bob[s].DrawMe = 1;
+				continue;
+			}
+		}
+	}
+}
+
+static void BobRefresh(uword ID)
+{
+	int t;	// MUSS signed sein!
+
+	BobCheckVis(ID);
+
+	t = MaxBob - 1;
+	while (t >= ID)
+	{
+		if (Bob[t].DrawMe == 1)
+		{
+			if ((Bob[t].vis == 1) || (Bob[t].vis == 2))
+			{
+				gfxNCH4PutMCGAToNCH4(Bob[t].RPtr, Bob[t].DPtr,
+					0, 0,
+					Bob[t].ox, Bob[t].oy,
+					Bob[t].w, Bob[t].h,
+					Bob[t].w, 160);
+
+				Bob[t].ox = Bob[t].x;
+				Bob[t].oy = Bob[t].y;
+			}
+			Bob[t].vis &= 1;
+		}
+		t--;
+	}
+
+	for (t = ID; t < MaxBob; t++)
+	{
+		if ((Bob[t].vis == 1) && (Bob[t].DrawMe == 1))
+		{
+			gfxNCH4PutNCH4ToMCGA(Bob[t].DPtr, Bob[t].RPtr,
+				Bob[t].x, Bob[t].y,
+				0, 0,
+				Bob[t].w, Bob[t].h,
+				160, Bob[t].w);
+
+			gfxNCH4OLMCGAToNCH4(Bob[t].SPtr, Bob[t].DPtr,
+				Bob[t].sx, Bob[t].sy,
+				Bob[t].x, Bob[t].y,
+				Bob[t].w, Bob[t].h,
+				320, 160);
+
+			Bob[t].DrawMe = 0;
+		}
+	}
+}
+
+void BobDone(uword ID)
+{
+	Bob[ID].vis = 0;
+	Bob[ID].DrawMe = 1;
+	BobRefresh(ID);
+	MemFree(Bob[ID].RPtr, Bob[ID].w * Bob[ID].h);
+}
+
+void BobVis(uword ID)
+{
+	Bob[ID].DrawMe = 1;
+	if (Bob[ID].vis != 1)
+	{
+		Bob[ID].vis = 3;
+	}
+	BobRefresh(ID);
+}
+
+void BobInVis(uword ID)
+{
+	Bob[ID].DrawMe = 1;
+	if (Bob[ID].vis != 0)
+	{
+		Bob[ID].vis = 2;
+	}
+	BobRefresh(ID);
+}
+
+void BobSet(uword ID, uword x, uword y , uword xs, uword ys)
+{
+	Bob[ID].ox = Bob[ID].x;
+	Bob[ID].oy = Bob[ID].y;
+	Bob[ID].sx = xs;
+	Bob[ID].sy = ys;
+	Bob[ID].x = x;
+	Bob[ID].y = y;
+	Bob[ID].DrawMe = 1;
+	if (Bob[ID].vis == 1)
+	{
+		BobRefresh(ID);
+	}
+}
+
+void BobSetDarkness(ubyte b)
+{
+
+	#ifdef THECLOU_DEBUG
+	Log("%s|%s(%d) not implemented", __FILE__, __func__, b);
+	#endif
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/living/bob.h b/cosp-0.6-src/ClouRemake/ClouRemake/living/bob.h
new file mode 100644
index 0000000..568c148
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/living/bob.h
@@ -0,0 +1,24 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_BOB
+#define MODULE_BOB
+
+#include "theclou.h"
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+extern void BobSet(uword bobID, uword xPos, uword yPos, uword xOffset, uword yOffset);
+extern void BobVis(uword bobID);
+extern void BobInitLists(void);
+extern uword BobInit(void *pBuffer, uword w, uword h);
+extern void BobDone(uword bobID);
+extern void BobSetDarkness(ubyte b);
+extern void BobInVis(uword bobID);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/living/living.c b/cosp-0.6-src/ClouRemake/ClouRemake/living/living.c
new file mode 100644
index 0000000..183876d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/living/living.c
@@ -0,0 +1,525 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "living\living.h"
+#include "living\living_p.h"
+
+#include "port\port.h"
+
+void livInit(uword us_VisLScapeX,uword us_VisLScapeY,
+				 uword us_VisLScapeWidth,uword us_VisLScapeHeight,
+				 uword us_TotalLScapeWidth,uword us_TotalLScapeHeight,ubyte uch_FrameCount, ulong ul_StartArea)
+	{
+	sc = (struct SpriteControl*)MemAlloc(sizeof(struct SpriteControl));
+
+	sc->p_Livings  = (LIST*)CreateList(0);
+	sc->p_Template = (LIST*)CreateList(0);
+
+	sc->us_VisLScapeX = us_VisLScapeX;
+	sc->us_VisLScapeY = us_VisLScapeY;
+
+	sc->us_VisLScapeWidth  = us_VisLScapeWidth;
+	sc->us_VisLScapeHeight = us_VisLScapeHeight;
+
+	sc->us_TotalLScapeWidth  = us_TotalLScapeWidth;
+	sc->us_TotalLScapeHeight = us_TotalLScapeHeight;
+
+	livSetActivAreaId(ul_StartArea);
+
+	sc->uch_FrameCount = uch_FrameCount;
+
+	sc->p_MemHandle = MemAlloc(STD_BUFFER1_SIZE);
+
+	livLoadTemplates();		// jetzt alle Animphasen (Bilder) laden
+
+	livLoadLivings();			// und die entsprechenden Lebewesen
+
+	livSetPlayMode(LIV_PM_NORMAL);
+	}
+
+void livDone(void)
+	{
+	if (sc)
+		{
+		if (sc->p_MemHandle)
+			MemFree(sc->p_MemHandle, STD_BUFFER1_SIZE);
+
+		if (sc->p_Livings)
+			{
+			NODE *node;
+
+			for (node = (NODE*) LIST_HEAD(sc->p_Livings); NODE_SUCC(node); node = (NODE*) NODE_SUCC(node))
+				livRem((struct Living*) node);
+
+			RemoveList(sc->p_Livings);
+			sc->p_Livings=NULL;
+			}
+
+		if (sc->p_Template)
+			{
+			NODE *node;
+
+			for (node = (NODE*) LIST_HEAD(sc->p_Template); NODE_SUCC(node); node = (NODE*) NODE_SUCC(node))
+				livRemTemplate((struct AnimTemplate *)node);
+
+			RemoveList(sc->p_Template);
+			sc->p_Template=NULL;
+			}
+
+		MemFree(sc, sizeof(struct SpriteControl));
+
+		sc = NULL;
+		}
+	}
+
+void livSetActivAreaId(ulong areaId)
+	{
+	if (sc)
+		sc->ul_ActivAreaId = areaId;
+	}
+
+void livLivesInArea(char *uch_Name, ulong areaId)
+	{
+	struct Living *liv = livGet(uch_Name);
+
+	if (liv)
+		liv->ul_LivesInAreaId = areaId;
+	}
+
+void livRefreshAll(void)
+	{
+	livDoAnims(0, 0);
+	}
+
+void livSetAllInvisible(void)
+	{
+	struct Living *liv;
+
+	if (sc)
+		{
+		for(liv = (struct Living*)LIST_HEAD(sc->p_Livings);NODE_SUCC(liv);
+			 liv = (struct Living*)NODE_SUCC(liv))
+				livHide(liv);
+		}
+	}
+
+void livSetPlayMode(ulong playMode)
+	{
+	sc->ul_SprPlayMode = playMode;
+
+	if (sc->ul_SprPlayMode & LIV_PM_NORMAL)
+		{
+		sc->uch_FirstFrame   = 0;
+		sc->uch_LastFrame    = sc->uch_FrameCount;
+		sc->ch_PlayDirection = 1;
+		}
+
+	if (sc->ul_SprPlayMode & LIV_PM_REVERSE)
+		{
+		sc->uch_FirstFrame   = sc->uch_FrameCount - 1;
+		sc->uch_LastFrame    = (ubyte) -1;
+		sc->ch_PlayDirection = -1;
+		}
+	}
+
+ulong livWhereIs(char *uch_Name)
+	{
+	struct Living *liv = livGet(uch_Name);
+	ulong loc = 0;
+
+	if (liv)
+		loc = liv->ul_LivesInAreaId;
+
+	return loc;
+	}
+
+void livSetPos(char *uch_Name,uword XPos,uword YPos)
+	{
+	struct Living *liv = livGet(uch_Name);
+
+	if(liv)
+		{
+		liv->us_XPos = XPos;
+		liv->us_YPos = YPos;
+		}
+	}
+
+void livAnimate(char *uch_Name,ubyte uch_Action,word s_XSpeed,word s_YSpeed)
+	{
+	struct Living *liv = livGet(uch_Name);
+
+	if(liv)
+		{
+		liv->uch_Status = LIV_ENABLED;
+
+		liv->uch_OldAction = liv->uch_Action;
+
+		liv->uch_Action = uch_Action;
+		liv->s_XSpeed = s_XSpeed;
+		liv->s_YSpeed = s_YSpeed;
+
+		if (((ubyte)liv->ch_CurrFrameNr == sc->uch_LastFrame))
+			 liv->ch_CurrFrameNr = (char) sc->uch_FirstFrame;
+		}
+	}
+
+void livTurn(char *puch_Name,ubyte uch_Status)
+	{
+	struct Living *liv = livGet(puch_Name);
+
+	if (liv)
+		liv->uch_Status = uch_Status;  /* enable or disable */
+	}
+
+void livStopAll(void)
+	{
+	struct Living *liv;
+
+	for (liv = (struct Living*)LIST_HEAD(sc->p_Livings);
+		  NODE_SUCC(liv);liv=(struct Living*)NODE_SUCC(liv))
+		{
+		if (liv->uch_Status == LIV_ENABLED)
+			livAnimate(NODE_NAME(liv),ANM_STAND,0,0);
+		}
+	}
+
+void livCorrectViewDirection(struct Living *liv)
+	{
+	char *name = NODE_NAME(liv->p_OriginTemplate);
+
+	if (liv->uch_Action <= ANM_MOVE_LEFT)
+		liv->uch_ViewDirection = liv->uch_Action;
+	else
+		{
+		if (!strcmp(name, LIV_TEMPL_BULLE_NAME) && (liv->uch_Action == ANM_WORK_CONTROL))
+			liv->uch_ViewDirection = ANM_MOVE_DOWN;
+		}
+	}
+
+void livPrepareAnims(void)
+	{
+	//xmsCopyDown(sc->p_MemHandle, 0, LIV_DECR_BUFFER, STD_BUFFER1_SIZE);
+    memcpy(LIV_DECR_BUFFER, sc->p_MemHandle, STD_BUFFER1_SIZE);
+	}
+
+void livDoAnims(ubyte uch_Play, ubyte uch_Move)
+	{
+	struct Living *liv;
+
+	livPrepareAnims();
+
+	lsDoScroll();
+
+	for (liv = (struct Living*)LIST_HEAD(sc->p_Livings);
+			NODE_SUCC(liv);liv=(struct Living*)NODE_SUCC(liv))
+		{
+		if (liv->uch_Status == LIV_ENABLED)
+			{
+			if (uch_Move)
+				{
+				liv->us_XPos+=liv->s_XSpeed;
+				liv->us_YPos+=liv->s_YSpeed;
+				}
+
+			/*
+			 * die View Direction mu� hier gesetzt werden und NICHT
+			 * in AnimateLiving, da die Aktion in AnimateLiving nicht
+			 * stattfinden mu�, die ViewDirection zwischenzeitlich
+			 * aber eine falschen Wert annimt, was z.B. im Planing
+			 * zu Fehler f�hrt!
+			 * mu� in jedem Fall geschehen, auch wenn Maxi unsichtbar ist
+			 */
+
+			livCorrectViewDirection(liv);
+
+			if (livIsVisible(liv))
+				{
+				livShow(liv);
+
+				// Action != ANM_STAND -> Schei� Ausnahme, weil von Marx
+				// keine Stand Anim gezeichnet wurde
+				if ((uch_Play) && (liv->uch_Action != ANM_STAND))
+					liv->ch_CurrFrameNr += (char) sc->ch_PlayDirection;
+
+				if ((ubyte) liv->ch_CurrFrameNr == sc->uch_LastFrame)
+					livAnimate(NODE_NAME(liv),ANM_STAND,0,0);
+				}
+			else
+				livHide(liv);
+			}
+		}
+	}
+
+void livSetVisLScape(uword us_VisLScapeX, uword us_VisLScapeY)
+	{
+	sc->us_VisLScapeX = us_VisLScapeX;
+	sc->us_VisLScapeY = us_VisLScapeY;
+	}
+
+uword livGetXPos(char *Name)
+	{
+	struct Living *liv = livGet(Name);
+
+	return(liv->us_XPos);
+	}
+
+uword livGetYPos(char *Name)
+	{
+	struct Living *liv = livGet(Name);
+
+	return(liv->us_YPos);
+	}
+
+ubyte livGetViewDirection(char *uch_Name)
+	{
+	struct Living *liv = livGet(uch_Name);
+
+	return(liv->uch_ViewDirection);
+	}
+
+ubyte livGetOldAction(char *uch_Name)
+	{
+	struct Living *liv = livGet(uch_Name);
+
+	return(liv->uch_OldAction);
+	}
+
+ubyte livIsPositionInViewDirection(uword us_GXPos, uword us_GYPos, uword us_XPos, uword us_YPos, ubyte uch_ViewDirection)
+	{
+	ubyte InDirection = 1;
+
+	switch(uch_ViewDirection)
+		{
+		case ANM_MOVE_LEFT:
+				if (us_XPos > us_GXPos)	InDirection = 0;
+				break;
+		case ANM_MOVE_RIGHT:
+				if (us_XPos < us_GXPos)	InDirection = 0;
+				break;
+		case ANM_MOVE_DOWN:
+				if (us_YPos < us_GYPos)	InDirection = 0;
+				break;
+		case ANM_MOVE_UP:
+				if (us_YPos > us_GYPos)	InDirection = 0;
+				break;
+		default: InDirection = 0; break;
+		}
+
+	return InDirection;
+	}
+
+ubyte livCanWalk(char *puch_Name)
+	{
+	struct Living *liv = livGet(puch_Name);
+
+	if (liv)
+		{
+		ubyte direction;
+
+		switch(liv->uch_Action)
+			{
+			case ANM_MOVE_UP:		direction = LS_SCROLL_UP; break;
+			case ANM_MOVE_DOWN:	direction = LS_SCROLL_DOWN; break;
+			case ANM_MOVE_LEFT:	direction = LS_SCROLL_LEFT; break;
+			case ANM_MOVE_RIGHT: direction = LS_SCROLL_RIGHT; break;
+			}
+
+		if (!(lsIsCollision(liv->us_XPos + liv->s_XSpeed, liv->us_YPos + liv->s_YSpeed, direction)))
+			return 1;
+		}
+
+	return 0;
+	}
+
+static struct Living *livGet(char *uch_Name)
+	{
+	struct Living *liv=NULL;
+
+	liv=(struct Living*)GetNode(sc->p_Livings,uch_Name);
+
+	if(!liv)
+		NewErrorMsg (Internal_Error, __FILE__, __func__, 1);
+
+	return(liv);
+	}
+
+static void livAdd(char *uch_Name,char *uch_TemplateName, ubyte uch_XSize,
+						 ubyte uch_YSize,word s_XSpeed,word s_YSpeed)
+
+	{
+	struct Living *liv;
+	struct AnimTemplate *tlt;
+
+	liv = (struct Living*)
+		 CreateNode(sc->p_Livings, (long)sizeof(struct Living), uch_Name);
+
+	liv->uch_XSize = uch_XSize;
+	liv->uch_YSize = uch_YSize;
+
+	tlt = liv->p_OriginTemplate = (struct AnimTemplate *) GetNode(sc->p_Template, uch_TemplateName);
+
+	liv->us_LivingNr = BobInit(LIV_TEMPLATE_BUFFER, tlt->us_Width, tlt->us_Height);
+
+	liv->uch_OldAction  = 0;
+	liv->uch_Action     = 0;
+
+	liv->uch_ViewDirection = 0; // MOD: 15-05-94
+
+	liv->ch_CurrFrameNr = 0;
+
+	liv->s_XSpeed = s_XSpeed;
+	liv->s_YSpeed = s_YSpeed;
+
+	liv->us_XPos = 0;
+	liv->us_YPos = 0;
+
+	liv->ul_LivesInAreaId = sc->ul_ActivAreaId;
+
+	liv->uch_Status = LIV_DISABLED;
+	}
+
+static void livRem(struct Living *liv)
+	{
+	BobDone(liv->us_LivingNr);
+	}
+
+static void livLoadTemplates(void)
+	{
+	uword cnt,i;
+	char *line;
+	LIST  *l = (LIST*)CreateList(0);
+	struct AnimTemplate *tlt;
+	char pathname[TXT_KEY_LENGTH];
+
+	dskBuildPathName(TEXT_DIRECTORY, LIV_ANIM_TEMPLATE_LIST, pathname);
+
+	if(!(cnt=ReadList(l,0L,pathname, 0)))
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, 3);
+
+	for(i=0;i<cnt;i++)
+		{
+		line = NODE_NAME(GetNthNode(l,i));
+
+		tlt = (struct AnimTemplate*)CreateNode(sc->p_Template,
+				  (ulong)sizeof(struct AnimTemplate),txtGetKey(1,line));
+
+		tlt->us_Width  = (uword) txtGetKeyAsULONG(2,line);
+		tlt->us_Height = (uword) txtGetKeyAsULONG(3,line);
+
+		tlt->us_FrameOffsetNr = (uword) txtGetKeyAsULONG(4, line);
+		}
+
+	livLoadData();
+
+	RemoveList(l);
+	}
+
+static void livRemTemplate(struct AnimTemplate *tlt)
+	{
+	// dummy function
+	}
+
+static void livLoadLivings(void)
+	{
+	uword cnt,i;
+	char *line;
+	LIST  *l = (LIST*)CreateList(0);
+	char pathname[TXT_KEY_LENGTH];
+
+	dskBuildPathName(TEXT_DIRECTORY, LIV_LIVINGS_LIST, pathname);
+
+	if(!(cnt=ReadList(l,0L,pathname, 0)))
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, 2);
+
+	for(i=0;i<cnt;i++)
+		{
+		char name[TXT_KEY_LENGTH], templateName[TXT_KEY_LENGTH];
+
+		line = NODE_NAME(GetNthNode(l,i));
+
+		strcpy(name    , txtGetKey(1,line));
+		strcpy(templateName, txtGetKey(2,line));
+
+		livAdd( name,
+				templateName,
+				(ubyte)  txtGetKeyAsULONG(3, line),
+				(ubyte)  txtGetKeyAsULONG(4, line),
+				(word)   txtGetKeyAsULONG(5, line),
+				(word)   txtGetKeyAsULONG(6, line));
+		}
+
+	RemoveList(l);
+	}
+
+static void livHide(struct Living *liv)
+	{
+	BobInVis(liv->us_LivingNr);
+	}
+
+static void livShow(struct Living *liv)
+	{
+	uword frameNr, action;
+	uword srcX, srcY, offset;
+	struct AnimTemplate *tlt = liv->p_OriginTemplate;
+
+	// Scheiss Ausnahme, weil von marx kein ANM_STAND gezeichnet wurde
+	if (liv->uch_Action == ANM_STAND)
+		{
+		action = liv->uch_ViewDirection;
+		liv->ch_CurrFrameNr = 4;
+		}
+	else
+		action = liv->uch_Action;
+
+	frameNr = action * sc->uch_FrameCount + liv->ch_CurrFrameNr;
+
+	frameNr = frameNr + tlt->us_FrameOffsetNr;
+
+	offset = frameNr * tlt->us_Width;
+
+	srcY = (offset / LIV_COLL_WIDTH) * tlt->us_Height;
+	srcX = (offset % LIV_COLL_WIDTH);
+
+	// COSP
+	BobSet(liv->us_LivingNr, liv->us_XPos, liv->us_YPos, srcX, srcY);
+	BobVis(liv->us_LivingNr);
+	}
+
+static void livLoadData(void)
+{
+	char filename[TXT_KEY_LENGTH];
+
+	dskBuildPathName(PICTURE_DIRECTORY,LIV_COLL_NAME,filename);
+
+	dskLoad(filename, LIV_LOAD_BUFFER, 0);
+
+	tcClearStdBuffer(LIV_DECR_BUFFER);
+
+	gfxILBMToRAW((ubyte*)LIV_LOAD_BUFFER, (ubyte*)LIV_DECR_BUFFER);
+
+	//xmsCopyUp(sc->p_MemHandle, 0, LIV_DECR_BUFFER, STD_BUFFER1_SIZE);
+    memcpy(sc->p_MemHandle, LIV_DECR_BUFFER, STD_BUFFER1_SIZE);
+}
+
+static ubyte livIsVisible(struct Living *liv)
+	{
+	uword left,right,up,down;
+	ubyte visible = 0;
+
+	left  = liv->us_XPos;
+	right = left+liv->uch_XSize;
+	up    = liv->us_YPos;
+	down  = up + liv->uch_YSize;
+
+	if(liv->ul_LivesInAreaId == sc->ul_ActivAreaId)
+		if(right>sc->us_VisLScapeX)
+			if(left<(sc->us_VisLScapeX + sc->us_VisLScapeWidth))
+				if(down>sc->us_VisLScapeY)
+					if(up<(sc->us_VisLScapeY + sc->us_VisLScapeHeight))
+						visible=1;
+
+	return(visible);
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/living/living.h b/cosp-0.6-src/ClouRemake/ClouRemake/living/living.h
new file mode 100644
index 0000000..ae11537
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/living/living.h
@@ -0,0 +1,104 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_LIVING
+#define MODULE_LIVING
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_BOB
+#include "living\bob.h"
+#endif
+
+/* defines f��r AnimPlayMode */
+#define LIV_PM_NORMAL    	1
+#define LIV_PM_REVERSE   	2
+
+/* defines f��r Action */
+#define ANM_MOVE_UP 	   	((ubyte)0)
+#define ANM_MOVE_DOWN	   ((ubyte)1)
+#define ANM_MOVE_RIGHT	   ((ubyte)2)
+#define ANM_MOVE_LEFT	   ((ubyte)3)
+#define ANM_STAND          ((ubyte)9)
+#define ANM_WORK_UP        ((ubyte)4)
+#define ANM_WORK_DOWN      ((ubyte)5)
+#define ANM_WORK_LEFT      ((ubyte)6)
+#define ANM_WORK_RIGHT     ((ubyte)7)
+#define ANM_DUSEL          ((ubyte)8) // for burglars
+#define ANM_ELEKTRO        ((ubyte)8) // for burglars
+#define ANM_WORK_CONTROL   ((ubyte)4) // for policemen
+#define ANM_DUSEL_POLICE   ((ubyte)5) // for policemen
+
+#define ANM_MAKE_CALL		((ubyte)9) // for burglars :MAKECALL
+
+#define LIV_ENABLED      	1
+#define LIV_DISABLED     	0
+
+extern void livInit(uword us_VisLScapeX,uword us_VisLScapeY,
+						  uword us_VisLScapeWidth,uword us_VisLScapeHeight,
+						  uword us_TotalLScapeWidth,uword us_TotalLScapeHeight,ubyte uch_FrameCount, ulong ul_StartArea);
+
+extern void  livDone(void);
+
+extern void  livSetAllInvisible(void);
+
+extern void  livSetPos(char *uch_Name,uword XPos,uword YPos);
+extern void  livSetPlayMode(ulong playMode);
+extern void  livSetActivAreaId(ulong areaId);
+extern void  livRefreshAll(void);
+
+extern void  livLivesInArea(char *uch_Name, ulong areaId);
+extern ulong livWhereIs(char *uch_Name);
+
+extern uword livGetXPos(char *uch_Name);
+extern uword livGetYPos(char *uch_Name);
+
+extern ubyte livCanWalk(char *puch_Name);
+extern ubyte livGetViewDirection(char *uch_Name);
+extern ubyte livIsPositionInViewDirection(uword us_GXPos, uword us_GYPos, uword us_XPos, uword us_YPos, ubyte uch_ViewDirection);
+
+extern void  livTurn(char *puch_Name, ubyte uch_Status);  /* enabled or disabled */
+
+extern void  livSetVisLScape(uword us_VisLScapeX, uword us_VisLScapeY);
+
+extern void	 livSetSpeed(char *uch_Name,word s_Speed);
+
+extern void	 livAnimate(char *uch_Name,ubyte uch_Action,word s_XSpeed,word s_YSpeed);
+extern void  livPrepareAnims(void);
+extern void	 livDoAnims(ubyte uch_Play, ubyte uch_Move);
+extern void  livStopAll(void);
+
+extern ubyte livGetOldAction(char *uch_Name);
+
+// uword spotInit(bitmap, uword 1 = 48, 2 = 32, 3 = 16 );
+// uword spotDone
+// uword spotSetPos(uword, uword, uword);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/living/living_p.h b/cosp-0.6-src/ClouRemake/ClouRemake/living/living_p.h
new file mode 100644
index 0000000..4842be1
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/living/living_p.h
@@ -0,0 +1,100 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#define LIV_LOAD_BUFFER			StdBuffer0 // mu� ein StdBuffer sein -> sonst ClearBuffer in .c �ndern
+#define LIV_DECR_BUFFER			StdBuffer1
+
+#define LIV_TEMPLATE_BUFFER	StdBuffer1 // auch LS_LOOTBAG_BUFFER �ndern!!!
+
+#define LIV_NO_FRAME				((uword) -1)
+
+#define LIV_COLL_WIDTH			308  // ein Frame ist 14 * 14
+
+#define LIV_COLL_NAME			((char *)"allmaxi")
+
+#define LIV_TEMPL_BULLE_NAME	((char *)"bullemax")
+
+
+struct SpriteControl
+	{
+	LIST	   *p_Livings;
+	LIST 		*p_Template;
+
+	ulong    ul_SprPlayMode;
+	ulong		ul_ActivAreaId;
+
+	uword		us_VisLScapeX;
+	uword		us_VisLScapeY;
+	uword		us_VisLScapeWidth;
+	uword		us_VisLScapeHeight;
+
+	uword		us_TotalLScapeWidth;
+	uword		us_TotalLScapeHeight;
+
+	void*		p_MemHandle;
+
+	ubyte		uch_FirstFrame;
+	ubyte    uch_LastFrame;
+	ubyte		uch_FrameCount;          /* Anzahl der Frames pro Anim */
+
+	char		ch_PlayDirection;
+	};
+
+struct AnimTemplate
+	{
+	NODE     Link;
+
+	uword		us_Width;
+	uword		us_Height;
+
+	uword		us_FrameOffsetNr;
+	};
+
+struct Living                        /* komplette Daten einer Instanz   */
+	{                                  /* eines Lebewesens                */
+	NODE	   Link;
+
+	ulong		ul_LivesInAreaId;                       /* Area -> LandScap */
+
+	uword		us_LivingNr;
+
+	struct   AnimTemplate   *p_OriginTemplate;
+
+	ubyte		uch_XSize;
+	ubyte		uch_YSize;
+
+	word		s_XSpeed;
+	word		s_YSpeed;
+
+	uword		us_XPos;                 /* absolut */
+	uword		us_YPos;
+
+	ubyte    uch_ViewDirection;       /* 0 .. left, right, up, down */
+
+	ubyte		uch_Action;
+	ubyte		uch_OldAction;
+
+	char		ch_CurrFrameNr;
+
+	ubyte    uch_Status;              /* enabled or disabled */
+	};
+
+static struct SpriteControl	*sc = NULL;
+
+static struct Living *livGet(char *uch_Name);
+
+static void livLoadTemplates(void);
+static void livLoadLivings(void);
+static void livRemTemplate(struct AnimTemplate *tlt);
+static void livRem(struct Living *liv);
+static void livHide(struct Living *liv);
+static void livShow(struct Living *liv);
+
+static void livAdd(char *uch_Name,char *uch_TemplateName, ubyte uch_XSize,
+						 ubyte uch_YSize,word s_XSpeed,word s_YSpeed);
+
+static ubyte livIsVisible(struct Living *liv);
+static void  livLoadData(void);
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/mame.txt b/cosp-0.6-src/ClouRemake/ClouRemake/mame.txt
new file mode 100644
index 0000000..1ed42e3
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/mame.txt
@@ -0,0 +1,187 @@
+
+                 M.A.M.E.  -  Multiple Arcade Machine Emulator
+          Copyright (C) 1997-2005 by Nicola Salmoria and The MAME Team
+
+Many people have helped with this project--directly, or by releasing the source
+code for the drivers they have written. We are not trying to take credit that
+isn't ours. See the Acknowledgments section for a list of contributors. Please
+note, however, that the list is largely incomplete. Also see the comments in
+the source code to see the people who contributed to specific drivers. That
+list, too, may be incomplete. We apologize for any omission.
+
+All trademarks cited in this document are property of their respective owners.
+
+
+For usage instructions, please consult the file windows.txt
+
+
+Usage and Distribution License
+------------------------------
+
+I. Purpose
+----------
+   MAME is strictly a non-profit project. Its main purpose is to be a reference
+   to the inner workings of the emulated arcade machines. This is done for
+   educational purposes and to prevent many historical games from sinking into
+   oblivion once the hardware they run on stops working. Of course to preserve
+   the games, you must also be able to actually play them; you can consider
+   that a nice side effect.
+   It is not our intention to infringe on any copyrights or patents on the
+   original games. All of MAME's source code is either our own or freely
+   available. To operate, the emulator requires images of the original ROMs
+   from the arcade machines, which must be provided by the user. No portions of
+   the original ROM codes are included in the executable.
+
+II. Cost
+--------
+   MAME is free. Its source code is free. Selling either is not allowed.
+
+III. ROM Images
+---------------
+   ROM images are copyrighted material. Most of them cannot be distributed
+   freely. Distribution of MAME on the same physical medium as illegal copies
+   of ROM images is strictly forbidden.
+   You are not allowed to distribute MAME in any form if you sell, advertise,
+   or publicize CD-ROMs or other media containing illegal copies of ROM images.
+   This restriction applies even if you don't make money, directly or
+   indirectly, from those activities. You are allowed to make ROMs and MAME
+   available for download on the same website, but only if you warn users about
+   the ROMs's copyright status, and make it clear that users must not download
+   ROMs unless they are legally entitled to do so.
+
+IV. Source Code Distribution
+----------------------------
+   If you distribute the binary (compiled) version of MAME, you should also
+   distribute the source code. If you can't do that, you must provide a link
+   to a site where the source can be obtained.
+
+V. Distribution Integrity
+-------------------------
+   This chapter applies to the official MAME distribution. See below for
+   limitations on the distribution of derivative works.
+   MAME must be distributed only in the original archives. You are not allowed
+   to distribute a modified version, nor to remove and/or add files to the
+   archive.
+
+VI. Reuse of Source Code
+--------------------------
+   This chapter might not apply to specific portions of MAME (e.g. CPU
+   emulators) which bear different copyright notices.
+   The source code cannot be used in a commercial product without the written
+   authorization of the authors. Use in non-commercial products is allowed, and
+   indeed encouraged.  If you use portions of the MAME source code in your
+   program, however, you must make the full source code freely available as
+   well.
+   Usage of the _information_ contained in the source code is free for any use.
+   However, given the amount of time and energy it took to collect this
+   information, if you find new information we would appreciate if you made it
+   freely available as well.
+
+VII. Derivative Works
+---------------------
+   Derivative works are allowed, provided their source code is freely
+   available. However, these works are discouraged. MAME is a continuously-
+   -evolving project. It is in your best interests to submit your contributions
+   to the MAME development team, so they may be integrated into the main
+   distribution.
+   There are some specific modifications to the source code which go against
+   the spirit of the project. They are NOT considered a derivative work, and
+   distribution of executables containing them is strictly forbidden. Such
+   modifications include, but are not limited to:
+   - enabling games that are disabled
+   - changing the ROM verification commands so that they report missing games
+   - removing the startup information screens
+   If you make a derivative work, you are not allowed to call it MAME. You must
+   use a different name to make clear that it is a MAME derivative, not an
+   official distribution from the MAME team. Simply calling it MAME followed or
+   preceded by a punctuation mark (e.g. MAME+) is not sufficient. The name must
+   be clearly distinct (e.g. REMAME). The version number must also match the
+   number of the official MAME version from which you derived your version.
+
+
+How to Contact Us
+-----------------
+
+The official MAME homepage is http://www.mame.net/  You can always find the
+latest release there, including beta versions and information on things being
+worked on. Also, a totally legal and free ROM set of Robby Roto is available
+on the same page.
+
+Submissions should be sent to Santeri Saarimaa ( gridle@mbnet.fi )
+
+If you have bugs to report, check the MAME Testing Project at
+http://www.mametesters.org
+
+If you can't get the emulator to work, you are on your own. First of all, read
+the docs carefully. If you still can't find an answer to your question, try
+checking the beginner's sections that many emulation pages have, or ask on the
+appropriate Usenet newsgroups (e.g. comp.emulators.misc) or on the official
+MAME message board at http://www.mame.net/msg/
+
+For help in compiling MAME, check these pages:
+http://www.mame.net/compile.html
+http://www.mameworld.net
+
+
+
+Acknowledgments
+---------------
+
+First of all, thanks to Allard van der Bas for
+starting the Arcade Emulation Programming Repository at
+http://valhalla.ph.tn.tudelft.nl/emul8
+Without the Repository, I would never have even tried to write an emulator.
+Unfortunately, the original Repository is now closed, but its spirit lives
+on in MAME.
+
+Z80 emulator Copyright (c) 1998 Juergen Buchmueller, all rights reserved.
+M6502 emulator Copyright (c) 1998 Juergen Buchmueller, all rights reserved.
+Hu6280 Copyright (c) 1999 Bryan McPhail
+I86 emulator by David Hedley, modified by Fabrice Frances
+M6809 emulator by John Butler, based on L.C. Benschop's 6809 Simulator V09.
+M6808 based on L.C. Benschop's 6809 Simulator V09.
+M68000 emulator Copyright 1999 Karl Stenerud.  All rights reserved.
+80x86 M68000 emulator Copyright 1998, Mike Coates, Darren Olafson.
+8039 emulator by Mirko Buffoni, based on 8048 emulator by Dan Boris.
+T-11 emulator Copyright (C) Aaron Giles 1998
+TMS34010 emulator by Alex Pasadyn and Zsolt Vasvari.
+TMS9900 emulator by Andy Jones, based on original code by Ton Brouwer.
+Cinematronics CPU emulator by Jeff Mitchell, Zonn Moore, Neil Bradley.
+Atari AVG/DVG emulation based on VECSIM by Hedley Rainnie, Eric Smith and
+Al Kossow.
+
+TMS5220 emulator by Frank Palazzolo.
+AY-3-8910 emulation based on various code snippets by Ville Hallik,
+  Michael Cuddy, Tatsuyuki Satoh, Fabrice Frances, Nicola Salmoria.
+YM-2203, YM-2151, YM3812 emulation by Tatsuyuki Satoh.
+POKEY emulator by Ron Fries.
+Many thanks to Eric Smith, Hedley Rainnie and Sean Trowbridge for information
+   on the Pokey random number generator.
+NES sound hardware info by Matthew Conte.
+YM2610 emulation by Hiromitsu Shioya.
+
+Background art by Peter Hirschberg
+
+Allegro library by Shawn Hargreaves, 1994/97
+SEAL Synthetic Audio Library API Interface Copyright (C) 1995, 1996
+   Carlos Hasan. All Rights Reserved.
+Video modes created using Tweak 1.6b by Robert Schmidt, who also wrote
+   TwkUser.c.
+"inflate" code for zip file support by Mark Adler.
+
+DOS executable compressed with UPX by Markus F.X.J. Oberhumer & Laszlo Molnar,
+    http://upx.sourceforge.net/
+
+Big thanks to Gary Walton for too many things
+   to mention.
+
+Thanks to Brian Deuel, Neil Bradley, and the Retrocade dev team for allowing us
+to use Retrocade's game history database.
+
+Thanks to Richard Bush for info on several games.
+
+Thanks to Dave (www.finalburn.com) for info on After Burner.
+
+and thanks to everyone else I forgot.
+
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/memory/memory.c b/cosp-0.6-src/ClouRemake/ClouRemake/memory/memory.c
new file mode 100644
index 0000000..bb2fda9
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/memory/memory.c
@@ -0,0 +1,154 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifdef WIN32
+#include <windows.h>
+#endif
+#include <stdlib.h>
+#include "memory\memory.h"
+
+#define ERR_MEMORY_NO_MEM 1
+
+static long l_MemAllocated = 0;
+static long l_MemMaxAllocated = 0;
+
+#ifdef THECLOU_DEBUG_ALLOC
+typedef struct Allocation Allocation;
+struct Allocation {
+	Allocation *	next;
+	void *			mem;
+	unsigned long	size;
+	char			name[64];
+};
+static Allocation Alloc;
+
+void MemInit(void)
+{
+	memset(&Alloc, 0, sizeof(Allocation));
+}
+
+void MemQuit(void)
+{
+	// alle verbleibenden auflisten
+	Allocation *next;
+	next = Alloc.next;
+	while (next) {
+		Log("MemQuit: 0x%08x %d %s", next->mem, next->size, next->name);
+		next = next->next;
+	}
+}
+
+static void AddAlloc(void *ptr, unsigned long size, const char *func)
+{
+	Allocation *next;
+	next = &Alloc;
+	while (next->next) {
+		next = next->next;
+	}
+	next->next = (Allocation *)calloc(1, sizeof(Allocation));
+	if (next->next) {
+		next = next->next;
+		next->next = NULL;
+		next->mem = ptr;
+		next->size = size;
+		strncpy(next->name, func, 63);
+		next->name[63] = '\0';
+	}
+}
+
+static void RemAlloc(void *ptr, unsigned long size, const char *func)
+{
+	Allocation *next, *prev;
+	next = &Alloc;
+	prev = next;
+	while (next) {
+		if (next->mem == ptr) {
+			if (next->size != size) {
+				Log("RemAlloc: different size 0x%08x %d (%d) %s (%s)", ptr, size, next->size, func, next->name);
+			}
+			prev->next = next->next;
+			free(next);
+			return;
+		}
+		prev = next;
+		next = next->next;
+	}
+	Log("RemAlloc: not found 0x%08x %d %s", ptr, size, func);
+}
+#endif
+
+#ifdef THECLOU_DEBUG_ALLOC
+void *MemAllocDbg(unsigned long size, const char *file, const char *func)
+#else
+void *MemAlloc(unsigned long size)
+#endif
+{
+	#ifdef THECLOU_DEBUG_ALLOC
+	//Log("%s|%s ... %s(%d)", file, func, __func__, size);
+	#endif
+	void *mem = NULL;
+	if (size)
+	{
+		if (mem = calloc(1, size))
+		{
+			l_MemAllocated += (long)size;
+			if (l_MemMaxAllocated < l_MemAllocated) {
+				l_MemMaxAllocated = l_MemAllocated;
+			}
+#ifdef THECLOU_DEBUG_ALLOC
+			AddAlloc(mem, size, func);
+#endif
+		}
+		else
+		{
+			NewErrorMsg(No_Mem, __FILE__, __func__, ERR_MEMORY_NO_MEM);
+		}
+	}
+
+	return(mem);
+}
+
+#ifdef THECLOU_DEBUG_ALLOC
+void MemFreeDbg(void *mem, unsigned long size, const char *file, const char *func)
+#else
+void MemFree(void *mem, unsigned long size)
+#endif
+{
+	#ifdef THECLOU_DEBUG_ALLOC
+	//Log("%s|%s ... %s(%d)", file, func, __func__, size);
+	#endif
+	if (mem)
+	{
+		free(mem);
+		l_MemAllocated -= (long)size;
+#ifdef THECLOU_DEBUG_ALLOC
+		RemAlloc(mem, size, func);
+#endif
+	}
+}
+
+unsigned long MemAvail(void)
+{
+	unsigned long av = 0;
+	#ifdef WIN32
+	MEMORYSTATUS memStat;
+	GlobalMemoryStatus(&memStat);
+	av = memStat.dwAvailPhys;
+	#else
+	#error MemAvail() is not implemented
+	#endif
+	return(av);
+}
+
+long MemGetAllocated(void)
+{
+	return(l_MemAllocated);
+}
+
+long MemGetMaxAllocated(void)
+{
+	return(l_MemMaxAllocated);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/memory/memory.h b/cosp-0.6-src/ClouRemake/ClouRemake/memory/memory.h
new file mode 100644
index 0000000..03c15df
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/memory/memory.h
@@ -0,0 +1,33 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_MEMORY
+#define MODULE_MEMORY
+
+#include "theclou.h"
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+//#define THECLOU_DEBUG_ALLOC	1
+
+#ifdef THECLOU_DEBUG_ALLOC
+extern void MemInit(void);
+extern void MemQuit(void);
+extern void *MemAllocDbg(unsigned long size, const char *file, const char *func);
+extern void MemFreeDbg(void *mem, unsigned long size, const char *file, const char *func);
+#define MemAlloc(size)		MemAllocDbg(size,__FILE__,__func__)
+#define MemFree(mem,size)	MemFreeDbg(mem,size,__FILE__,__func__)
+#else
+extern void *MemAlloc(unsigned long size);
+extern void MemFree(void *mem, unsigned long size);
+#endif
+extern unsigned long MemAvail(void);
+extern long MemGetAllocated(void);
+extern long MemGetMaxAllocated(void);
+
+#endif /* MODULE_MEMORY */
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/organisa/display.c b/cosp-0.6-src/ClouRemake/ClouRemake/organisa/display.c
new file mode 100644
index 0000000..62abc18
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/organisa/display.c
@@ -0,0 +1,255 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#define   ORG_DISP_GUY_Y           60
+#define   ORG_DISP_ABILITIES_Y     75
+#define   ORG_DISP_GUY_WIDTH       80
+#define   ORG_DISP_LINE            10
+
+#define   ORG_PICT_ID				  3
+
+void tcInitDisplayOrganisation(void)
+{
+	gfxChangeColors(l_wrp, 5, GFX_FADE_OUT, 0);
+	gfxClearArea(l_wrp);
+	RefreshDisplayConfig();
+}
+
+void RefreshDisplayConfig(void)
+{
+	gfxSetDestRPForShow(&RefreshRP);
+	gfxShow(ORG_PICT_ID, GFX_NO_REFRESH|GFX_BLEND_UP, 0, -1, -1);
+
+	CurrentBackground = BGD_PLANUNG;
+	ShowMenuBackground();
+}
+
+void tcDoneDisplayOrganisation(void)
+{
+	gfxChangeColors(l_wrp, 5, GFX_FADE_OUT, 0);
+	gfxClearArea(l_wrp);
+	gfxSetPens(m_wrp, GFX_SAME_PEN, GFX_SAME_PEN, 0);
+}
+
+void tcDisplayOrganisation(void)
+{
+	tcDisplayCommon();
+	tcDisplayPerson(ORG_DISP_ABILITIES);
+
+	gfxBlit(&RefreshRP, 0, 0, l_wrp, 0, 0, 320, 140, GFX_ONE_STEP);
+}
+
+void tcDisplayCommon(void)
+{
+	LIST     *texts;
+	char    line[TXT_KEY_LENGTH], name[TXT_KEY_LENGTH];
+	Building building;
+
+	texts = txtGoKey(BUSINESS_TXT,"PLAN_COMMON_DATA");
+
+	gfxSetDestRPForShow(&RefreshRP);
+	gfxShow(ORG_PICT_ID, GFX_ONE_STEP|GFX_NO_REFRESH, 0, -1, -1);
+
+	/* Geb�ude anzeigen  */
+
+	gfxSetFont  (&RefreshRP, menuFont);
+	gfxSetDrMd  (&RefreshRP, GFX_JAM_1);
+	gfxSetRect  (0, 320);
+
+	gfxSetPens(&RefreshRP, 249, 254, GFX_SAME_PEN);
+
+	if(Organisation.BuildingID)
+	{
+		building = (Building) dbGetObject(Organisation.BuildingID);
+
+		dbGetObjectName (Organisation.BuildingID,line);
+		gfxPrint (&RefreshRP, line, 9, GFX_PRINT_CENTER|GFX_PRINT_SHADOW);
+	}
+
+
+	gfxSetFont(&RefreshRP, bubbleFont);
+	gfxSetPens(&RefreshRP, 249, GFX_SAME_PEN, GFX_SAME_PEN);
+
+	/*************************************************************
+	 *  Fluchtwagen anzeigen
+	*/
+
+	gfxSetRect (0,106);
+	strcpy  (line, NODE_NAME(GetNthNode(texts,0L)));
+
+	if (Organisation.CarID)
+	{
+		dbGetObjectName(Organisation.CarID, name);
+		tcCutName(name, (ubyte)' ', 12);
+		strcat(line, name);
+	}
+	else
+	    strcat(line, " ? ");
+
+	gfxPrint (&RefreshRP, line, 25, GFX_PRINT_LEFT);
+
+	/*************************************************************
+	 *  Zulassung anzeigen
+	*/
+
+	gfxSetRect(106,106);
+	strcpy(line, NODE_NAME(GetNthNode(texts, 2L)));
+
+	if (Organisation.CarID)
+	{
+		sprintf(name, "%d",Organisation.PlacesInCar);
+		strcat        (line, name);
+	}
+	else
+	    strcat(line, " ? ");
+
+	gfxPrint (&RefreshRP, line, 25, GFX_PRINT_CENTER);
+
+	/*************************************************************
+	 *  Fahrer anzeigen
+	*/
+
+	gfxSetRect (212,106);
+	strcpy  (line, NODE_NAME(GetNthNode(texts, 1L)));
+
+	if (Organisation.DriverID)
+	{
+		dbGetObjectName (Organisation.DriverID, name);
+		strcat        (line, name);
+	}
+	else
+	    strcat(line, " ? ");
+
+	gfxPrint (&RefreshRP, line, 25, GFX_PRINT_RIGHT);
+
+	/*************************************************************
+	 *  Fluchtweg
+	*/
+
+	gfxSetRect (0,106);
+	strcpy (line, NODE_NAME(GetNthNode(texts, 3L)));	// "Fluchtweg: "
+
+	if (Organisation.BuildingID)
+	{
+		LIST *enums = txtGoKey (OBJECTS_ENUM_TXT,"enum_RouteE");
+
+		strcpy(name,NODE_NAME(GetNthNode(enums,building->EscapeRoute)));
+		strcat(line,name);
+
+		RemoveList (enums);
+	}
+	else
+	    strcat(line, " ? ");
+
+	gfxPrint (&RefreshRP, line, 35, GFX_PRINT_LEFT);
+
+	/*************************************************************
+	 *  Fluchtweg-l�nge
+	*/
+
+	gfxSetRect (106,106);
+	strcpy  (line, NODE_NAME(GetNthNode(texts, 4L)));
+
+	if (Organisation.BuildingID)
+	{
+		/* 2014-06-28 LucyG : space added */
+		sprintf(name," %d (km)",building->EscapeRouteLength);
+		strcat(line, name);
+	}
+	else
+	    strcat(line, " ? ");
+
+	gfxPrint (&RefreshRP, line, 35, GFX_PRINT_CENTER);
+
+	/*************************************************************
+	 *  mein Anteil
+	*/
+
+	gfxSetRect (212,106);
+	strcpy  (line, NODE_NAME(GetNthNode(texts, 5L)));
+
+	/* 2014-06-28 LucyG : missing percent sign */
+	sprintf (name, " %d%%",tcCalcMattsPart());
+	strcat (line, name);
+
+	gfxPrint (&RefreshRP, line, 35, GFX_PRINT_RIGHT);
+
+	RemoveList(texts);
+}
+
+void tcDisplayPerson(ulong displayMode)
+{
+	ulong  objNr,i;
+	NODE   *node;
+	char  line[TXT_KEY_LENGTH];
+	LIST   *guys;
+
+	joined_byAll(Person_Matt_Stuvysunt, OLF_INCLUDE_NAME|OLF_PRIVATE_LIST, Object_Person);
+	guys = ObjectListPrivate;
+	dbSortObjectList (&guys, dbStdCompareObjects);
+
+	for (node=(NODE*)LIST_HEAD(guys),i=0;NODE_SUCC(node);node = (NODE*)NODE_SUCC(node),i++)
+	{
+		objNr =  ((struct ObjectNode *)node)->nr;
+
+		if (strlen(NODE_NAME(node)) >= 16)
+			tcGetLastName (NODE_NAME(node), line, 15);
+		else
+		    strcpy(line, NODE_NAME(node));
+
+		gfxSetRect (ORG_DISP_GUY_WIDTH * i + 5, ORG_DISP_GUY_WIDTH -5);
+		gfxSetPens(&RefreshRP, 248, GFX_SAME_PEN, GFX_SAME_PEN);
+		gfxSetFont (&RefreshRP,menuFont);
+		gfxSetDrMd (&RefreshRP, GFX_JAM_1);
+		gfxPrint (&RefreshRP, line, ORG_DISP_GUY_Y, GFX_PRINT_CENTER);
+		gfxSetFont (&RefreshRP,bubbleFont);
+
+		if(displayMode & ORG_DISP_ABILITIES)    tcDisplayAbilities(objNr,i);
+	}
+
+	RemoveList (guys);
+}
+
+void tcDisplayAbilities(ulong personNr,ulong displayData)
+{
+	LIST  *abilities;
+	NODE  *node;
+	ulong i,abiNr, ability;
+	char line[TXT_KEY_LENGTH];
+
+	hasAll(personNr,OLF_PRIVATE_LIST|OLF_INCLUDE_NAME,Object_Ability);
+	abilities = ObjectListPrivate;
+
+	prSetBarPrefs(&RefreshRP, ORG_DISP_GUY_WIDTH - 5, ORG_DISP_LINE + 1, 251, 250, 249);
+
+	if(!(LIST_EMPTY(abilities)))
+	{
+		for (node=(NODE*)LIST_HEAD(abilities),i=0;NODE_SUCC(node);node=(NODE*)NODE_SUCC(node),i++)
+		{
+			abiNr =  ((struct ObjectNode *)GetNthNode(abilities,(ulong)i))->nr;
+			ability = hasGet(personNr, abiNr);
+
+			/* 2014-06-27 templer
+			missing percent sign in the following line to display the percent sign in the output
+			*/
+			sprintf(line, "%s %d%%",NODE_NAME(node),(uword)((ability * 100) / 255));
+
+			prDrawTextBar(line,ability, 255L,
+				displayData * ORG_DISP_GUY_WIDTH + 5,
+				ORG_DISP_ABILITIES_Y + i * (ORG_DISP_LINE + 4));
+		}
+	}
+	else
+	{
+		i = 0; // 2014-06-30 LucyG: i is used, but was never initialised
+		txtGetFirstLine (BUSINESS_TXT, "PLAN_NO_CAPABILITY", line);
+		gfxSetRect (ORG_DISP_GUY_WIDTH * i + 5, ORG_DISP_GUY_WIDTH -5);
+		gfxSetDrMd (&RefreshRP, GFX_JAM_1);
+		gfxPrint (&RefreshRP, line, ORG_DISP_ABILITIES_Y + ORG_DISP_LINE, GFX_PRINT_LEFT);
+	}
+
+	RemoveList (abilities);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/organisa/organisa.c b/cosp-0.6-src/ClouRemake/ClouRemake/organisa/organisa.c
new file mode 100644
index 0000000..2d27324
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/organisa/organisa.c
@@ -0,0 +1,568 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "organisa\organisa.h"
+
+ulong tcChooseDestBuilding(ulong);
+ulong tcChooseEscapeCar(ulong);
+ulong tcChooseDriver(ulong);
+
+void tcChooseAccomplice(void);
+void tcSpreadTools(void);
+void tcChooseTime(void);
+void tcChooseGuys(void);
+void tcCheckGuyCount(void);
+void tcAddGuyToParty(void);
+void tcRemGuyFromParty(void);
+
+void tcAddToolToGuy(void);
+void tcRemToolFromGuy(void);
+
+ubyte tcCheckOrganisation(void);
+
+/* display functions */
+
+void tcInitDisplayOrganisation(void);
+void tcDoneDisplayOrganisation(void);
+
+void RefreshDisplayConfig(void);
+
+void tcDisplayOrganisation(void);
+
+void tcDisplayCommon(void);
+void tcDisplayPerson(ulong displayMode);
+void tcDisplayAbilities(ulong personNr,ulong displayData);
+void tcDisplayTools(ulong personNr,ulong displayData);
+
+struct Organisation Organisation;
+
+#include "organisa\display.c"
+
+void tcResetOrganisation(void)
+	{
+	Organisation.CarID       = 0;
+	Organisation.DriverID    = 0;
+	Organisation.BuildingID  = 0;
+	Organisation.GuyCount    = 0;
+	Organisation.PlacesInCar = 0;
+	}
+
+void tcOrganisationSetBuilding(void)
+	{
+	hasAll(Person_Matt_Stuvysunt,OLF_NORMAL,Object_Building);
+	Organisation.BuildingID = OL_NR(LIST_HEAD(ObjectList));
+	}
+
+void tcOrganisationSetCar(void)
+	{
+	Car car;
+
+	hasAll(Person_Matt_Stuvysunt,OLF_NORMAL,Object_Car);
+
+	Organisation.CarID = OL_NR(LIST_HEAD(ObjectList));
+
+	car = (Car)dbGetObject(Organisation.CarID);
+
+	Organisation.PlacesInCar = car->PlacesInCar;
+	}
+
+ubyte tcMakeCarOk(void)
+	{
+	joined_byAll(Person_Matt_Stuvysunt, OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Person);
+
+	if (GetNrOfNodes(ObjectList) > Organisation.PlacesInCar)
+		{
+		SetBubbleType(THINK_BUBBLE);
+		if (GET_OUT == Say(BUSINESS_TXT,0,((Person) dbGetObject(Person_Matt_Stuvysunt))->PictID,"PLAN_TO_MANY_GUYS"))
+			return 0;
+
+		while (GetNrOfNodes(ObjectList) > Organisation.PlacesInCar)
+			{
+			ubyte choice;
+
+			dbRemObjectNode (ObjectList, Person_Matt_Stuvysunt);
+
+			inpTurnESC(0);
+
+			choice = Bubble (ObjectList,0,0L,0L);
+			Organisation.GuyCount--;
+			joined_byUnSet(Person_Matt_Stuvysunt, OL_NR(GetNthNode(ObjectList,(ulong)choice)));
+
+			inpTurnESC(1);
+
+			joined_byAll(Person_Matt_Stuvysunt, OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Person);
+			}
+		}
+
+	return 1;
+	}
+
+ulong tcOrganisation(void)
+	{
+	LIST  *menu  = txtGoKey(MENU_TXT,"ORGANISATION");
+	ubyte  activ = 0, ende = 0;
+	char line[TXT_KEY_LENGTH];
+
+	/***********************************************
+	 * erstes oder gemerktes Geb�ude aktivieren !
+	 */
+	Organisation.BuildingID = 0;
+	Organisation.CarID      = 0;
+	Organisation.DriverID   = 0;
+
+	rememberAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Building);
+
+	if (!LIST_EMPTY(ObjectList))
+		Organisation.BuildingID = OL_NR(LIST_HEAD(ObjectList));
+
+	if (Organisation.BuildingID)
+		{
+		if (!has(Person_Matt_Stuvysunt, Organisation.BuildingID))
+			tcOrganisationSetBuilding();
+		}
+	else
+		tcOrganisationSetBuilding();
+
+	// auf alle F�lle erinnern an aktuellen Stand
+	rememberSet(Person_Matt_Stuvysunt, Organisation.BuildingID);
+
+	/************************************************
+	 * erstes oder gemerktes Auto aktivieren !
+	 */
+	rememberAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Car);
+
+	if (!LIST_EMPTY(ObjectList))
+		{
+		Car car;
+
+		Organisation.CarID = OL_NR(LIST_HEAD(ObjectList));
+
+		car = (Car)dbGetObject(Organisation.CarID);
+
+		Organisation.PlacesInCar = car->PlacesInCar;
+		}
+
+	if (Organisation.CarID)
+		{
+		if (!has(Person_Matt_Stuvysunt, Organisation.CarID))
+			tcOrganisationSetCar();
+		}
+	else
+		tcOrganisationSetCar();
+
+	// auf alle F�lle erinnern an aktuellen Stand
+	rememberSet(Person_Matt_Stuvysunt, Organisation.CarID);
+
+	/************************************************
+	 * erstes oder gemerkter Fahrer aktivieren !
+	 */
+	rememberAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Person);
+
+	if (!LIST_EMPTY(ObjectList))
+		Organisation.DriverID = OL_NR(LIST_HEAD(ObjectList));
+
+	if (!tcMakeCarOk())
+		return 0L;
+
+	tcInitDisplayOrganisation();
+	tcDisplayOrganisation();
+
+	txtGetFirstLine(THECLOU_TXT,"ORGANISATION",line);
+
+	while(!ende)
+		{
+		inpTurnESC(0);
+		inpTurnFunctionKey(0);
+
+		PrintStatus(line);
+
+		activ = Menu(menu, (ulong) 255, activ, 0, 0);
+		inpTurnESC(1);
+
+		switch(activ)
+			{
+			case 0:   Organisation.BuildingID = tcChooseDestBuilding(Organisation.BuildingID);
+						 tcDisplayOrganisation();
+						 break;
+			case 1:   tcChooseGuys();
+						 // tcDisplayOrganisation(); wird in tcChooseGuys getan
+						 break;
+			case 2:   Organisation.CarID = tcChooseEscapeCar(Organisation.CarID);
+						 tcDisplayOrganisation();
+						 break;
+			case 3:   Organisation.DriverID = tcChooseDriver(Organisation.DriverID);
+						 tcDisplayOrganisation();
+						 break;
+			case 4:   Information();
+						 tcDisplayOrganisation();
+						 break;
+			case 5:
+						 if(!Organisation.BuildingID)
+							Organisation.BuildingID = tcChooseDestBuilding(Organisation.BuildingID);
+
+						 if (tcCheckOrganisation())
+							{
+							gfxClearArea(l_wrp);
+
+							tcDoneDisplayOrganisation();
+
+							plPlaner (Organisation.BuildingID);
+
+							tcInitDisplayOrganisation();
+							tcDisplayOrganisation();
+							}
+							break;
+			case 6:   if(tcCheckOrganisation())     ende=2;
+						 break;
+			case 7:   ende = 1;  /* ende */
+						 break;
+			default:  break;
+			}
+		}
+
+	RemoveList(menu);
+
+	tcDoneDisplayOrganisation();
+
+	return ((ende-1) * Organisation.BuildingID);
+	}
+
+ubyte tcCheckOrganisation(void)
+{
+	Player player = (Player)dbGetObject(Player_Player_1);
+	ubyte check=0;
+
+	if (Organisation.BuildingID)
+	{
+		if ((((Building)dbGetObject(Organisation.BuildingID))->Exactlyness) > 127)
+		{
+			if (Organisation.DriverID)
+			{
+				if (player->NrOfBurglaries == 8)
+				{
+					if (Organisation.CarID == Car_Jaguar_XK_1950)
+						check = 1;
+					else
+						Say(BUSINESS_TXT,0,MATT_PICTID,"PLAN_NO_JAGUAR");
+				}
+				else
+				{
+					if (bProfidisk)
+					{
+						if (Organisation.BuildingID == Building_Westminster_Abbey)
+						{
+							if ((Organisation.CarID == Car_Fiat_634_N_1936) || (Organisation.CarID == Car_Fiat_634_N_1943))
+								check = 1;
+							else
+								Say(BUSINESS_TXT,0,MATT_PICTID,"PLAN_NO_FIAT");
+						}
+						else
+							check = 1;
+					}
+					else
+					{
+						check = 1;
+					}
+				}
+			}
+			else
+				Say(BUSINESS_TXT,0,MATT_PICTID,"PLAN_NO_DRIVER");
+		}
+		else
+			Say(BUSINESS_TXT,0,MATT_PICTID,"PLAN_NO_KNOWL");
+	}
+	else
+		Say(BUSINESS_TXT,0,MATT_PICTID,"PLAN_NO_BUILDING");
+
+	return(check);
+}
+
+ulong tcChooseDriver(ulong persID)
+	{
+	LIST   *list;
+	ubyte  choice;
+	Person matt = (Person) dbGetObject(Person_Matt_Stuvysunt);
+	ulong newPersID;
+
+	joined_byAll(Person_Matt_Stuvysunt,OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_PRIVATE_LIST , Object_Person);
+	list = ObjectListPrivate;
+
+	if (LIST_EMPTY(list))
+		{
+		SetBubbleType(THINK_BUBBLE);
+		Say(BUSINESS_TXT,0,matt->PictID,"PLAN_TO_FEW_GUYS");
+		}
+	else
+		{
+		char exp[TXT_KEY_LENGTH];
+
+		txtGetFirstLine (BUSINESS_TXT, "NO_CHOICE", exp);
+		ExpandObjectList (list, exp);
+
+		if (ChoiceOk (choice = Bubble (list,0,0L,0L), GET_OUT, list))
+			{
+			newPersID = OL_NR(GetNthNode(list,(ulong)choice));
+
+			if (!has(newPersID, Ability_Autos))
+				{
+				Person pers = (Person)dbGetObject(newPersID);
+
+				Say(BUSINESS_TXT,0,pers->PictID,"PLAN_CANT_DRIVE");
+				}
+			else
+				{
+				persID = newPersID;
+
+				rememberAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Person);
+
+				if (!LIST_EMPTY(ObjectList))
+					rememberUnSet(Person_Matt_Stuvysunt, OL_NR(LIST_HEAD(ObjectList)));
+
+				rememberSet(Person_Matt_Stuvysunt, persID);
+				}
+			}
+		}
+
+	RemoveList(list);
+
+	return(persID);
+	}
+
+ulong tcChooseDestBuilding(ulong objID)
+	{
+	LIST  *list;
+	ubyte choice;
+	char exp[TXT_KEY_LENGTH];
+
+	hasAll(Person_Matt_Stuvysunt,OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_PRIVATE_LIST,Object_Building);
+	list = ObjectListPrivate;
+
+	txtGetFirstLine (BUSINESS_TXT, "NO_CHOICE", exp);
+	ExpandObjectList (list, exp);
+
+	if (ChoiceOk (choice = Bubble (list,0,0L,0L), GET_OUT, list))
+		{
+		objID   = OL_NR(GetNthNode(list,(ulong)choice));
+
+		rememberAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Building);
+
+		if(!LIST_EMPTY(ObjectList))
+			rememberUnSet(Person_Matt_Stuvysunt, OL_NR(LIST_HEAD(ObjectList)));
+
+		rememberSet(Person_Matt_Stuvysunt, objID);
+		}
+
+	RemoveList (list);
+
+	return(objID);
+	}
+
+ulong tcChooseEscapeCar(ulong objID)
+	{
+	LIST   *l1, *l2;
+	ubyte  choice;
+	Person matt = (Person) dbGetObject(Person_Matt_Stuvysunt);
+	ulong  newObjID;
+
+	hasAll(Person_Matt_Stuvysunt,OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_PRIVATE_LIST,Object_Car);
+	l1 = ObjectListPrivate;
+
+	joined_byAll(Person_Matt_Stuvysunt, OLF_INCLUDE_NAME|OLF_PRIVATE_LIST, Object_Person);
+	l2 = ObjectListPrivate;
+
+	if(!LIST_EMPTY(l1))
+		{
+		Car car;
+		char exp[TXT_KEY_LENGTH];
+
+		txtGetFirstLine (BUSINESS_TXT, "NO_CHOICE", exp);
+		ExpandObjectList (l1, exp);
+
+		if (ChoiceOk (choice = Bubble (l1,0,0L,0L), GET_OUT, l1))
+			{
+			newObjID = OL_NR(GetNthNode(l1,(ulong)choice));
+
+			car = (Car) OL_DATA(GetNthNode(l1,(ulong)choice));
+
+			if (GetNrOfNodes(l2) <= car->PlacesInCar)
+				{
+				Organisation.PlacesInCar = car->PlacesInCar;
+				objID = newObjID;
+
+				rememberAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Car);
+
+				if (!LIST_EMPTY(ObjectList))
+					rememberUnSet(Person_Matt_Stuvysunt, OL_NR(LIST_HEAD(ObjectList)));
+
+				rememberSet(Person_Matt_Stuvysunt, objID);
+				}
+			else
+				{
+				SetBubbleType(THINK_BUBBLE);
+				Say(BUSINESS_TXT,0,matt->PictID,"PLAN_NO_PLACE");
+				}
+			}
+		}
+	else
+		{
+		SetBubbleType(THINK_BUBBLE);
+		Say(BUSINESS_TXT,0,matt->PictID,"PLAN_WITHOUT_CAR");
+		}
+
+	RemoveList (l2);
+	RemoveList (l1);
+
+	return(objID);
+	}
+
+void tcChooseGuys(void)
+	{
+	LIST *list;
+	Person matt = (Person) dbGetObject(Person_Matt_Stuvysunt);
+
+	joinAll(Person_Matt_Stuvysunt,OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_PRIVATE_LIST,Object_Person);
+	list = ObjectListPrivate;
+
+	dbRemObjectNode (list, Person_Matt_Stuvysunt);
+
+	if (LIST_EMPTY(list))
+		{
+		SetBubbleType(THINK_BUBBLE);
+		Say(BUSINESS_TXT,0,matt->PictID,"PLAN_WITHOUT_GUYS");
+		}
+	else
+		{
+		LIST  *menu = txtGoKey(MENU_TXT,"ORG_KOMPLIZEN");
+		char  line[TXT_KEY_LENGTH];
+		ubyte activ=0;
+
+		ShowMenuBackground ();
+
+		txtGetFirstLine (THECLOU_TXT,"KOMPLIZEN",line);
+		PrintStatus  (line);
+
+		while(activ != 2)
+			{
+			inpTurnESC(0);
+			activ = Menu (menu, 7, activ, NULL, 0);
+			inpTurnESC(1);
+
+			switch(activ)
+				{
+				case 0:	tcAddGuyToParty();
+							break;
+				case 1:  tcRemGuyFromParty();
+							break;
+				default: break;
+				}
+			}
+
+			ShowMenuBackground();
+			RemoveList (menu);
+		}
+
+	RemoveList(list);
+	}
+
+void tcAddGuyToParty(void)
+	{
+	LIST *l1, *l2;
+	struct ObjectNode *n;
+	ulong persID;
+	ubyte choice;
+
+	joinAll(Person_Matt_Stuvysunt,OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_PRIVATE_LIST,Object_Person);
+	l1 = ObjectListPrivate;
+
+	joined_byAll(Person_Matt_Stuvysunt, OLF_INCLUDE_NAME|OLF_PRIVATE_LIST, Object_Person);
+	l2 = ObjectListPrivate;
+
+	if (GetNrOfNodes (l2) < Organisation.PlacesInCar)
+		{
+		for (n = (struct ObjectNode *)LIST_HEAD(l2); NODE_SUCC(n); n = (struct ObjectNode *)NODE_SUCC(n))
+			dbRemObjectNode (l1, OL_NR(n));
+
+		if (!LIST_EMPTY(l1))
+			{
+			char exp[TXT_KEY_LENGTH];
+
+			txtGetFirstLine (BUSINESS_TXT, "NO_CHOICE", exp);
+			ExpandObjectList (l1, exp);
+
+			if (ChoiceOk (choice = Bubble (l1,0,0L,0L), GET_OUT, l1))
+				{
+				persID = (ulong) (((struct ObjectNode*)GetNthNode(l1,(ulong)choice))->nr);
+
+				Organisation.GuyCount++;
+				joined_bySet(Person_Matt_Stuvysunt,persID);
+
+				tcDisplayOrganisation();
+				}
+			}
+		else
+			{
+			SetBubbleType(THINK_BUBBLE);
+			Say(BUSINESS_TXT,0, ((Person)dbGetObject(Person_Matt_Stuvysunt))->PictID,"PLAN_DO_NOT_KNOW_ANYBODY");
+			}
+		}
+	else
+		{
+		SetBubbleType(THINK_BUBBLE);
+		Say(BUSINESS_TXT,0, ((Person)dbGetObject(Person_Matt_Stuvysunt))->PictID,"PLAN_CAR_FULL");
+		}
+
+	RemoveList (l2);
+	RemoveList (l1);
+	}
+
+void tcRemGuyFromParty(void)
+	{
+	LIST   *list;
+	Person matt = (Person) dbGetObject(Person_Matt_Stuvysunt);
+
+	joined_byAll(Person_Matt_Stuvysunt, OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_PRIVATE_LIST, Object_Person);
+	list = ObjectListPrivate;
+
+	dbRemObjectNode (list, Person_Matt_Stuvysunt);
+
+	if(LIST_EMPTY(list))
+		{
+		SetBubbleType(THINK_BUBBLE);
+		Say(BUSINESS_TXT,0,matt->PictID,"PLAN_TO_FEW_GUYS");
+		}
+	else
+		{
+		ubyte  choice;
+		ulong  persID;
+		char   exp[TXT_KEY_LENGTH];
+
+		txtGetFirstLine (BUSINESS_TXT, "NO_CHOICE", exp);
+		ExpandObjectList (list, exp);
+
+		if (ChoiceOk (choice = Bubble (list,0,0L,0L), GET_OUT, list))
+			{
+			persID = (ulong)(((struct ObjectNode*)GetNthNode(list,(ulong)choice))->nr);
+
+			Organisation.GuyCount--;
+			joined_byUnSet(Person_Matt_Stuvysunt,persID);
+
+			if (persID == Organisation.DriverID)
+				{
+				rememberAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Person);
+
+				if (!LIST_EMPTY(ObjectList))
+					rememberUnSet(Person_Matt_Stuvysunt, OL_NR(LIST_HEAD(ObjectList)));
+
+				Organisation.DriverID = 0L;
+				}
+
+			tcDisplayOrganisation();
+			}
+		}
+
+	RemoveList(list);
+	}
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/organisa/organisa.h b/cosp-0.6-src/ClouRemake/ClouRemake/organisa/organisa.h
new file mode 100644
index 0000000..806d318
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/organisa/organisa.h
@@ -0,0 +1,56 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_ORGANISATION
+#define MODULE_ORGANISATION
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_BASE
+#include "base\base.h"
+#endif
+
+/* Display Areas */
+
+#define   ORG_DISP_ABILITIES   (1L<<0)
+#define   ORG_DISP_TOOLS       (1L<<1)
+
+struct Organisation
+	  {
+	  struct RastPort *rp;
+
+	  ulong     CarID;
+	  ulong     DriverID;
+	  ulong     BuildingID;
+
+	  ubyte     GuyCount;
+	  ubyte     PlacesInCar;
+
+	  char		pad[2];
+	  };
+
+extern struct Organisation Organisation;
+
+extern ulong  tcOrganisation(void);
+extern void	  tcResetOrganisation(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/graphics.c b/cosp-0.6-src/ClouRemake/ClouRemake/planing/graphics.c
new file mode 100644
index 0000000..038ee17
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/graphics.c
@@ -0,0 +1,141 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "planing\graphics.h"
+
+
+void plPrintInfo(char *person)
+{
+	char info[80];
+
+	sprintf(info, "%s", &person[1]);
+
+	gfxSetRect(2, 320);
+	gfxSetPens(m_wrp, 249, GFX_SAME_PEN, GFX_SAME_PEN);
+	gfxPrint(m_wrp, info, 12, GFX_PRINT_CENTER);
+}
+
+void plMessage(char *msg, ubyte flags)
+{
+	LIST *m = txtGoKey(PLAN_TXT, msg);
+
+	if (flags & PLANING_MSG_REFRESH)
+		ShowMenuBackground ();
+
+	if (m)
+		plPrintInfo((char *)NODE_NAME(LIST_HEAD(m)));
+
+	RemoveList(m);
+
+	if (flags & PLANING_MSG_WAIT)
+	{
+		inpSetWaitTicks(140L);
+		inpWaitFor(INP_LBUTTONP|INP_TIME);
+		inpSetWaitTicks(0L);
+	}
+}
+
+void plDisplayTimer(ulong time, ubyte doSpotsImmediatly)
+{
+	char info[80];
+	static ulong oldTimer = -1;	/* 2014-06-28 LucyG : static */
+
+	if (!time)
+		time = CurrentTimer(plSys) / PLANING_CORRECT_TIME;
+
+	if (GamePlayMode & GP_GUARD_DESIGN)
+	{
+		sprintf(info, "x:%d, y:%d   %s %0.2ld:%0.2ld:%0.2ld %s", livGetXPos(Planing_Name[CurrentPerson]), livGetYPos(Planing_Name[CurrentPerson]), txtTimer, (ulong)(time/3600), (ulong)((time/60)%60), (ulong)(time%60), txtSeconds);
+
+		gfxSetPens(m_wrp, 0, 0, 0);
+		gfxRectFill(m_wrp, 120, 0, 320, 10);
+
+		gfxSetRect(2, 320);
+		gfxSetPens(m_wrp, 248, GFX_SAME_PEN, GFX_SAME_PEN);
+		gfxPrint(m_wrp, info, 2, GFX_PRINT_RIGHT);
+	}
+	else
+	{
+		sprintf(info, "%s %0.2ld:%0.2ld:%0.2ld %s", txtTimer, (ulong)(time/3600), (ulong)((time/60)%60), (ulong)(time%60), txtSeconds);
+
+		gfxSetPens(m_wrp, 0, 0, 0);
+		gfxRectFill(m_wrp, 220, 0, 320, 10);
+
+		gfxSetRect(2, 320);
+		gfxSetPens(m_wrp, 248, GFX_SAME_PEN, GFX_SAME_PEN);
+		gfxPrint(m_wrp, info, 2, GFX_PRINT_RIGHT);
+	}
+
+	if (doSpotsImmediatly || (oldTimer != CurrentTimer(plSys)))
+	{
+		oldTimer = CurrentTimer(plSys);
+		lsMoveAllSpots(time);
+	}
+}
+
+void plDisplayInfo(void)
+{
+	char info[80];
+
+	dbGetObjectName(OL_NR(GetNthNode(PersonsList, CurrentPerson)), info);
+
+	gfxSetPens(m_wrp, 0, 0, 0);
+	gfxRectFill(m_wrp, 0, 0, 120, 10);
+
+	gfxSetRect(2, 320);
+	gfxSetPens(m_wrp, 248, GFX_SAME_PEN, GFX_SAME_PEN);
+	gfxPrint(m_wrp, info, 2, GFX_PRINT_LEFT|GFX_PRINT_SHADOW);
+}
+
+ubyte plSay(char *msg, ulong persId)
+{
+	LIST *l = txtGoKey(PLAN_TXT, msg);
+	ubyte choice;
+
+	SetPictID(((Person)dbGetObject(OL_NR(GetNthNode(PersonsList, persId))))->PictID);
+
+	inpTurnESC(0);
+	inpTurnFunctionKey(0);
+
+	choice = Bubble(l, 0, NULL, 200);
+
+	inpTurnFunctionKey(1);
+	inpTurnESC(1);
+
+	RemoveList(l);
+
+
+	plDisplayTimer(0, 1);
+	plDisplayInfo();
+
+	return choice;
+}
+
+void plDrawWait(ulong sec)
+{
+	char time[10];
+
+	sprintf(time, "%0.2ld:%0.2ld", (ulong)(sec/60), (ulong)(sec%60));
+
+	gfxSetDrMd(m_wrp, GFX_JAM_2);
+	gfxSetPens(m_wrp, 248, GFX_SAME_PEN, GFX_SAME_PEN);
+	gfxSetRect(0,320);
+	gfxPrint(m_wrp, time, 31, GFX_PRINT_CENTER);
+	gfxSetDrMd(m_wrp, GFX_JAM_1);
+}
+
+void plRefresh(ulong ItemId)
+{
+	LSObject obj = (LSObject)dbGetObject(ItemId);
+
+	if (lsIsLSObjectInActivArea(obj))
+		lsFastRefresh(obj);
+
+	if (lsGetStartArea() == lsGetActivAreaID())
+		lsShowEscapeCar();                      // Auto neu zeichnen
+
+	lsRefreshAllLootBags();                 // alle LootBags neu zeichnen
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/graphics.h b/cosp-0.6-src/ClouRemake/ClouRemake/planing/graphics.h
new file mode 100644
index 0000000..53d736d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/graphics.h
@@ -0,0 +1,74 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PLANING_GRAPHICS
+#define MODULE_PLANING_GRAPHICS
+
+
+#include <stdio.h>
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_PLANING_PLANER
+#include "planing\planer.h"
+#endif
+
+
+// Messages modes
+#define PLANING_MSG_REFRESH   1
+#define PLANING_MSG_WAIT      2
+
+// RefreshRP
+#define PLANING_REFRESH_RP_WIDTH    200
+#define PLANING_REFRESH_RP_HEIGHT   50
+#define PLANING_REFRESH_RP_DEPTH    2
+
+void plPrintInfo(char *person);
+void plMessage(char *msg, ubyte flags);
+void plPersonPict(ulong personId);
+void plDisplayAbilities (void);
+void plDisplayTimer(ulong time, ubyte doSpotsImmediatly);
+void plDisplayInfo(void);
+void plRefresh(ulong ItemId);
+void plDrawWait(ulong sec);
+ubyte plSay(char *msg, ulong persId);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/guards.c b/cosp-0.6-src/ClouRemake/ClouRemake/planing/guards.c
new file mode 100644
index 0000000..cc2e0ab
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/guards.c
@@ -0,0 +1,161 @@
+/*	_________  _______
+   / ___/ __ \/ __/ _ \		 Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "planing\guards.h"
+
+void grdDo(FILE *fh, struct System *sys, LIST *PersonsList, ulong BurglarsNr, ulong PersonsNr, ubyte grdAction)
+{
+	ubyte i;
+	struct ObjectNode *n;
+
+	for (i = BurglarsNr; i < PersonsNr; i++) {
+		n = (struct ObjectNode *)GetNthNode(PersonsList, i);
+		switch (grdAction) {
+			case GUARDS_DO_SAVE: {
+				SaveHandler(fh, sys, OL_NR(n));
+			} break;
+			case GUARDS_DO_LOAD: {
+				LoadHandler(fh, sys, OL_NR(n));
+			} break;
+		}
+	}
+}
+
+ubyte grdInit(FILE **fh, char *mode, ulong bldId, ulong areaId)
+{
+	char bldName[TXT_KEY_LENGTH], fileName[TXT_KEY_LENGTH];
+
+	dbGetObjectName(areaId, fileName);
+	fileName[strlen(fileName)-1] = '\0';
+	sprintf(bldName, "%s%s", fileName, GUARD_EXTENSION);
+
+	dskBuildPathName(GUARD_DIRECTORY, bldName, fileName);
+
+	if (*fh = dskOpen(fileName, mode, 0)) {
+		return 1;
+	}
+	return 0;
+}
+
+void grdDone(FILE *fh)
+{
+	dskClose(fh);
+}
+
+ubyte grdAddToList(ulong bldId, LIST *l)
+{
+	struct ObjectNode *n;
+
+	isGuardedbyAll(bldId, OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Police);
+
+	if (!LIST_EMPTY(ObjectList)) {
+		for (n = (struct ObjectNode *)LIST_HEAD(ObjectList); NODE_SUCC(n); n = (struct ObjectNode *)NODE_SUCC(n)) {
+			dbAddObjectNode(l, OL_NR(n), OLF_INCLUDE_NAME|OLF_INSERT_STAR);
+		}
+		return 1;
+	}
+	return 0;
+}
+
+ubyte grdDraw(struct RastPort *rp, ulong bldId, ulong areaId)
+{
+	FILE  *fh;
+	ubyte  ret = 0;
+	LIST *GuardsList;
+	struct System *grdSys;
+	ulong GuardsNr, i;
+	uword xpos, ypos;
+	struct Handler *h;
+	struct Action  *action;
+	struct ObjectNode *n;
+	LSArea area;
+
+	GuardsList = (LIST*)CreateList(0L);
+
+	if (grdAddToList(bldId, GuardsList)) {
+		if (grdInit(&fh, "r", bldId, areaId)) {
+			GuardsNr = GetNrOfNodes(GuardsList);
+			grdSys = InitSystem();
+
+			for (i = 0; i < GuardsNr; i++) {
+				n = (struct ObjectNode *)GetNthNode(GuardsList, i);
+				InitHandler(grdSys, OL_NR(n), SHF_AUTOREVERS);
+			}
+
+			grdDo(fh, grdSys, GuardsList, 0, GuardsNr, GUARDS_DO_LOAD);
+			grdDone(fh);
+
+			dbSortObjectList(&GuardsList, dbStdCompareObjects);
+
+			for (i = 0; i < GuardsNr; i++) {
+				n = (struct ObjectNode *)GetNthNode(GuardsList, i);
+				if (areaId == isGuardedbyGet(bldId, OL_NR(n))) {
+					h = FindHandler(grdSys, OL_NR(n));
+
+					/* getting start coordinates */
+					area = (LSArea)dbGetObject(areaId);
+					switch (i) {
+						case 0:
+						case 2:
+							xpos = area->us_StartX4 / 2;
+							ypos = area->us_StartY4 / 2;
+						break;
+						case 1:
+						case 3:
+							xpos = area->us_StartX5 / 2;
+							ypos = area->us_StartY5 / 2;
+						break;
+					}
+
+					xpos += 4;
+
+					gfxMoveCursor(rp, xpos, ypos);
+
+					/* drawing system */
+					for (action = (struct Action *)LIST_HEAD(h->Actions); NODE_SUCC(action); action = (struct Action *)NODE_SUCC(action)) {
+						switch (action->Type) {
+							case ACTION_GO:
+								switch ((ActionData(action, struct ActionGo *))->Direction) {
+									case DIRECTION_LEFT:
+										xpos -= action->TimeNeeded;
+									break;
+									case DIRECTION_RIGHT:
+										xpos += action->TimeNeeded;
+									break;
+									case DIRECTION_UP:
+										ypos -= action->TimeNeeded;
+									break;
+									case DIRECTION_DOWN:
+										ypos += action->TimeNeeded;
+									break;
+								}
+								gfxDraw(rp, xpos, ypos);
+							break;
+							case ACTION_WAIT:
+							case ACTION_OPEN:
+							case ACTION_CLOSE:
+							case ACTION_CONTROL:
+								//DrawCircle(rp, xpos, ypos, 1); MOD:
+							break;
+						}
+					}
+				}
+			}
+
+			ret = 1;
+
+			for (i = 0; i < GuardsNr; i++) {
+				CloseHandler(grdSys, OL_NR(GetNthNode(GuardsList, i)));
+			}
+
+			CloseSystem(grdSys);
+		}
+	}
+
+	RemoveList(GuardsList);
+
+	return ret;
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/guards.h b/cosp-0.6-src/ClouRemake/ClouRemake/planing/guards.h
new file mode 100644
index 0000000..0f5319a
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/guards.h
@@ -0,0 +1,75 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PLANING_GUARDS
+#define MODULE_PLANING_GUARDS
+
+#include <stdio.h>
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_PLANING_PLANER
+#include "planing\planer.h"
+#endif
+
+
+/* method definition */
+#define GUARDS_DO_SAVE     1
+#define GUARDS_DO_LOAD     2
+
+/* disk definition */
+#define GUARD_DISK         0
+#define GUARD_EXTENSION    ".gua"
+#define GUARD_DIRECTORY    DATA_DIRECTORY
+
+
+// main method
+void grdDo(FILE *fh, struct System *sys, LIST *PersonsList, ulong BurglarsNr, ulong PersonsNr, ubyte grdAction);
+
+// support
+ubyte grdAddToList(ulong bldId, LIST *l);
+ubyte grdDraw(struct RastPort *rp, ulong bldId, ulong areaId);
+
+// con- & destructor
+ubyte grdInit(FILE **fh, char *mode, ulong bldId, ulong areaId);
+void  grdDone(FILE *fh);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/io.c b/cosp-0.6-src/ClouRemake/ClouRemake/planing/io.c
new file mode 100644
index 0000000..f977610
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/io.c
@@ -0,0 +1,328 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "planing\io.h"
+#include "port\port.h"
+
+struct IOData
+{
+   NODE  io_Link;
+   ubyte io_Data;
+};
+
+static char *Planing_Open[3] = { "r", "w", "r" };
+
+// Loading & saving functions
+void plSaveTools(FILE *fh)
+{
+	if (fh)
+	{
+		struct ObjectNode *n;
+		hasAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Tool);
+
+		fprintf(fh, PLANING_PLAN_TOOL_BEGIN_ID "\n");
+		for (n = (struct ObjectNode *)LIST_HEAD(ObjectList); NODE_SUCC(n); n = (struct ObjectNode *)NODE_SUCC(n))
+		{
+			fprintf(fh, "%ld\n", OL_NR(n));
+		}
+		fprintf(fh, PLANING_PLAN_TOOL_END_ID "\n");
+	}
+}
+
+LIST *plLoadTools(FILE *fh)
+{
+	LIST *l = txtGoKey(PLAN_TXT, "SYSTEM_TOOLS_MISSING_1");
+	ubyte foundAll = 1, canGet = 2, toolsNr = 0;
+	char buffer[32];
+
+	buffer[0] = '\0';
+
+	if (fh)
+	{
+		while (dskGets(buffer, 31, fh))
+		{
+			if (!strcmp(buffer, PLANING_PLAN_TOOL_END_ID)) break;
+
+			if (atol(buffer))
+			{
+				toolsNr++;
+
+				if (!has(Person_Matt_Stuvysunt, atol(buffer)))
+				{
+					if (has(Person_Mary_Bolton, atol(buffer)))
+					{
+						canGet++;
+						dbAddObjectNode(l, atol(buffer), OLF_INCLUDE_NAME);
+					}
+
+					foundAll = 0;
+				}
+			}
+		}
+	}
+
+	if (foundAll)
+	{
+		RemoveList(l);
+		l = NULL;
+	}
+	else
+	{
+		LIST *extList = NULL;
+		NODE *n;
+		if (canGet == 2)
+		{
+			extList = txtGoKey(PLAN_TXT, "SYSTEM_TOOLS_MISSING_3");
+		}
+		else
+		{
+			if ((toolsNr - canGet) > 1)
+			{
+				extList = txtGoKeyAndInsert(PLAN_TXT, "SYSTEM_TOOLS_MISSING_2", (ulong)(toolsNr - canGet));
+			}
+			else if (toolsNr - canGet)
+			{
+				extList = txtGoKey(PLAN_TXT, "SYSTEM_TOOLS_MISSING_4");
+			}
+		}
+		if (extList)
+		{
+			for (n = (NODE *)LIST_HEAD(extList); NODE_SUCC(n); n = (NODE *)NODE_SUCC(n))
+			{
+				CreateNode(l, 0, NODE_NAME(n));
+			}
+			RemoveList(extList);
+		}
+	}
+	return(l);
+}
+
+ubyte plOpen(ulong objId, ubyte mode, FILE **fh)
+{
+	if (GamePlayMode & GP_GUARD_DESIGN)
+	{
+		if (grdInit(fh, Planing_Open[mode], objId, lsGetActivAreaID()))
+			  return PLANING_OPEN_OK;
+	}
+	else
+	{
+		LIST *PlanList;
+		ubyte i;
+		FILE *pllFh;
+		ulong pllData = 0L;
+		char  pllPath[TXT_KEY_LENGTH],
+				name1[TXT_KEY_LENGTH],
+				name2[TXT_KEY_LENGTH],
+				expan[TXT_KEY_LENGTH];
+		struct IOData *ioData;
+
+		dbGetObjectName(lsGetActivAreaID(), name1);
+		name1[strlen(name1)-1] = '\0';	// remove number
+
+		// MOD 25-04-94 HG - new paths on pc
+		sprintf(name2, "%s%s",name1,PLANING_PLAN_LIST_EXTENSION);
+
+		dskBuildPathName(DATADISK, name2, pllPath);
+
+		if (pllFh = dskOpen(pllPath, "r", PLANING_PLAN_DISK))
+		{
+			dskGets(name2, TXT_KEY_LENGTH-1, pllFh);
+			pllData = atol(name2);
+			dskClose(pllFh);
+
+			if ((mode == PLANING_OPEN_WRITE_PLAN) || pllData)
+			{
+				sprintf(name2, "MODE_%d", mode);
+				plMessage(name2, PLANING_MSG_REFRESH);
+
+				PlanList = (LIST*)CreateList(0L);
+
+				dbGetObjectName(objId, name1);
+
+				expan[0] = EOS;
+
+				for (i = 0; i < PLANING_NR_PLANS; i++)
+				{
+					if ((mode == PLANING_OPEN_WRITE_PLAN) || (pllData & (1L << i)))
+					{
+						if (mode == PLANING_OPEN_WRITE_PLAN)
+						{
+							if (pllData & (1L << i))
+								txtGetFirstLine(PLAN_TXT, "ATTENTION_1", expan);
+							else
+								txtGetFirstLine(PLAN_TXT, "ATTENTION_2", expan);
+						}
+
+						sprintf(name2, "*%s Plan %d    %s", name1, i+1, expan);
+						ioData = (struct IOData *)CreateNode(PlanList, sizeof(struct IOData), name2);
+						ioData->io_Data = i;
+					}
+				}
+
+				sprintf (name2, "EXPAND_MODE_%d", mode);
+				txtGetFirstLine(PLAN_TXT, name2, expan);
+				ExpandObjectList (PlanList, expan);
+
+				i = Bubble(PlanList, 0, NULL, 0L);
+
+				if (ChoiceOk(i, GET_OUT, PlanList))
+				{
+					ioData = (struct IOData *)GetNthNode(PlanList, i);
+					i = ioData->io_Data;
+
+					dbGetObjectName(lsGetActivAreaID(), name1);
+					name1[strlen(name1)-1] = '\0';
+
+					sprintf(name2,"%s%d%s",name1, i+1, PLANING_PLAN_EXTENSION);
+
+					dskBuildPathName(DATADISK, name2, name1);
+
+					*fh = dskOpen(name1, Planing_Open[mode], PLANING_PLAN_DISK);
+
+					if (mode == PLANING_OPEN_WRITE_PLAN)
+					{
+						pllData |= 1L<<i;
+
+						if (pllFh = dskOpen(pllPath, "w", PLANING_PLAN_DISK))
+						{
+							fprintf (pllFh, "%ld", pllData);
+							dskClose (pllFh);
+						}
+					}
+
+					if (*fh)
+					{
+						RemoveList(PlanList);
+						return PLANING_OPEN_OK;
+					}
+					else
+						NewErrorMsg(Disk_Defect, __FILE__, __func__, 0);
+				}
+
+				RemoveList (PlanList);
+
+				return PLANING_OPEN_ERR_NO_CHOICE;
+			}
+
+			return PLANING_OPEN_ERR_NO_PLAN;
+		}
+	}
+
+	NewErrorMsg(Disk_Defect, __FILE__, __func__, 0);
+	return 0;
+}
+
+void plSave(ulong objId)
+{
+	FILE *fh = NULL;
+
+	if (plOpen(objId, PLANING_OPEN_WRITE_PLAN, &fh) == PLANING_OPEN_OK)
+	{
+		if (GamePlayMode & GP_GUARD_DESIGN)
+		{
+			grdDo(fh, plSys, PersonsList, BurglarsNr, PersonsNr, GUARDS_DO_SAVE);
+		}
+      else
+      {
+         ubyte i;
+
+         SaveSystem(fh, plSys);
+         plSaveTools(fh);
+
+         for (i = 0; i < BurglarsNr; i++)
+				SaveHandler(fh, plSys, OL_NR(GetNthNode(PersonsList, i)));
+      }
+
+      dskClose(fh);
+   }
+}
+
+void plSaveChanged(ulong objId)
+{
+   if (PlanChanged)
+   {
+      LIST  *l = txtGoKey(PLAN_TXT, "PLAN_CHANGED");
+
+      inpTurnESC(0);
+
+		if (Bubble(l, 0, NULL, 0L) == 0)
+		{
+			inpTurnESC(1);
+
+			if (!plAllInCar(objId))
+				plSay("PLAN_NOT_FINISHED", 0);
+
+			plSave(objId);
+		}
+		else
+			inpTurnESC(1);
+
+		RemoveList(l);
+	}
+}
+
+void plLoad(ulong objId)
+{
+	FILE *fh = NULL;
+	ubyte ret;
+
+	if (objId == Building_Starford_Kaserne)
+	{
+		while ((ret = plOpen(objId, PLANING_OPEN_READ_PLAN, &fh)) != PLANING_OPEN_OK);
+	}
+	else
+	{
+		ret = plOpen(objId, PLANING_OPEN_READ_PLAN, &fh);
+	}
+
+	if (ret == PLANING_OPEN_OK)
+	{
+		if (GamePlayMode & GP_GUARD_DESIGN)
+		{
+			grdDo(fh, plSys, PersonsList, BurglarsNr, PersonsNr, GUARDS_DO_LOAD);
+		}
+		else
+		{
+			LIST *l = NULL;
+			ubyte i;
+			ubyte goon = 1;
+
+			if (l = LoadSystem(fh, plSys))
+			{
+				inpTurnESC(0);
+				Bubble(l, 0, NULL, 0L);
+				inpTurnESC(1);
+				RemoveList(l);
+
+				goon = 0;
+				l 	  = NULL;
+			}
+
+			if (l = plLoadTools(fh))
+			{
+				inpTurnESC(0);
+				Bubble(l, 0, NULL, 0L);
+				inpTurnESC(1);
+				RemoveList(l);
+
+				goon = 0;
+			}
+
+			if (goon)
+			{
+				for (i = 0; i < BurglarsNr; i++)
+					LoadHandler(fh, plSys, OL_NR(GetNthNode(PersonsList, i)));
+			}
+		}
+
+		dskClose (fh);
+	}
+	else
+	{
+		if (ret == PLANING_OPEN_ERR_NO_PLAN)
+         plMessage("NO_PLAN", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+   }
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/io.h b/cosp-0.6-src/ClouRemake/ClouRemake/planing/io.h
new file mode 100644
index 0000000..f57c5df
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/io.h
@@ -0,0 +1,84 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PLANING_IO
+#define MODULE_PLANING_IO
+
+#include <stdio.h>
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_PLANING_PLANER
+#include "planing\planer.h"
+#endif
+
+
+// Extensions
+#define PLANING_PLAN_EXTENSION       ".pln"
+#define PLANING_PLAN_LIST_EXTENSION  ".pll"
+
+// Disks
+#define PLANING_PLAN_DISK         	  0
+
+// Tool sequences in file
+#define PLANING_PLAN_TOOL_BEGIN_ID  "TOOB"      // TOOl Begin
+#define PLANING_PLAN_TOOL_END_ID    "TOOE"      // TOOl End
+
+// open cmd
+#define PLANING_OPEN_READ_PLAN        0
+#define PLANING_OPEN_WRITE_PLAN       1
+#define PLANING_OPEN_READ_BURGLARY    2
+
+// open error
+#define PLANING_OPEN_OK               0
+#define PLANING_OPEN_ERR_NO_CHOICE    1
+#define PLANING_OPEN_ERR_NO_PLAN      2
+
+
+ubyte plOpen(ulong objId, ubyte mode, FILE **fh);
+void  plLoad(ulong objId);
+void  plSave(ulong objId);
+void  plSaveChanged (ulong objId);
+
+LIST *plLoadTools(FILE *fh);
+void plSaveTools(FILE *fh);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/main.c b/cosp-0.6-src/ClouRemake/ClouRemake/planing/main.c
new file mode 100644
index 0000000..279899a
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/main.c
@@ -0,0 +1,47 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "planing\main.h"
+
+
+struct System *plSys = NULL;
+
+char txtTooLoud[20];
+char txtTimer[20];
+char txtWeight[20];
+char txtSeconds[20];
+
+
+/* System functions */
+void plInit (void)
+{
+   LIST *l;
+
+   /* Get texts */
+   l = txtGoKey(PLAN_TXT, "TXT_TOO_LOUD");
+   sprintf(txtTooLoud, "%s", NODE_NAME(LIST_HEAD(l)));
+   RemoveList(l);
+
+   l = txtGoKey(PLAN_TXT, "TXT_TIMER");
+   sprintf(txtTimer, "%s", NODE_NAME(LIST_HEAD(l)));
+   RemoveList(l);
+
+   l = txtGoKey(PLAN_TXT, "TXT_WEIGHT");
+   sprintf(txtWeight, "%s", NODE_NAME(LIST_HEAD(l)));
+   RemoveList(l);
+
+   l = txtGoKey(PLAN_TXT, "TXT_SECONDS");
+   sprintf(txtSeconds, "%s", NODE_NAME(LIST_HEAD(l)));
+   RemoveList(l);
+
+   plSys = InitSystem();
+}
+
+void plDone(void)
+{
+   CloseSystem(plSys);
+}
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/main.h b/cosp-0.6-src/ClouRemake/ClouRemake/planing/main.h
new file mode 100644
index 0000000..120da99
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/main.h
@@ -0,0 +1,71 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PLANING_MAIN
+#define MODULE_PLANING_MAIN
+
+#include <stdio.h>
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_PLANING_PLANER
+#include "planing\planer.h"
+#endif
+
+
+// Database offset & relations
+#define PLANING_DB_OFFSET              1300000
+#define take_RelId                     PLANING_DB_OFFSET+1
+#define hasLoot_Clone_RelId            PLANING_DB_OFFSET+2
+
+
+extern struct System *plSys;
+
+extern char txtTooLoud[20];
+extern char txtTimer[20];
+extern char txtWeight[20];
+extern char txtSeconds[20];
+
+
+void plInit(void);
+void plDone(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/planer.c b/cosp-0.6-src/ClouRemake/ClouRemake/planing/planer.c
new file mode 100644
index 0000000..d04c772
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/planer.c
@@ -0,0 +1,1672 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "planing\planer.h"
+
+
+// Menu ids - planing
+#define PLANING_START      0
+#define PLANING_NOTE       1
+#define PLANING_SAVE       2
+#define PLANING_LOAD       3
+#define PLANING_CLEAR      4
+#define PLANING_LOOK       5
+#define PLANING_RETURN     6
+
+#define PLANING_PERSON_WALK   0
+#define PLANING_ACTION_USE    1
+#define PLANING_ACTION_OPEN   2
+#define PLANING_ACTION_CLOSE  3
+#define PLANING_ACTION_TAKE   4
+#define PLANING_ACTION_DROP   5
+#define PLANING_ACTION_WAIT   6
+#define PLANING_ACTION_RADIO  7
+#define PLANING_PERSON_CHANGE 8
+#define PLANING_ACTION_RETURN 9
+
+#define PLANING_WAIT          0
+#define PLANING_WAIT_RADIO    1
+#define PLANING_WAIT_RETURN   2
+
+
+// Menu ids - notebook
+#define PLANING_NOTE_TARGET            0
+#define PLANING_NOTE_TEAM              1
+#define PLANING_NOTE_CAR               2
+#define PLANING_NOTE_TOOLS             3
+#define PLANING_NOTE_LOOTS             4
+
+// Menu ids - look
+#define PLANING_LOOK_PLAN              0
+#define PLANING_LOOK_PERSON_CHANGE     1
+#define PLANING_LOOK_RETURN            2
+
+// Menu ids - leveldesigner
+#define PLANING_LD_MOVE						0
+#define PLANING_LD_REFRESH					1
+#define PLANING_LD_OK						2
+#define PLANING_LD_CANCEL					3
+
+// Std time defines
+#define PLANING_TIME_TAKE              3
+#define PLANING_TIME_DROP              3
+#define PLANING_TIME_RADIO             5
+#define PLANING_TIME_CONTROL           5
+#define PLANING_TIME_FIGHT             5
+#define PLANING_TIME_THROUGH_WINDOW    6
+#define PLANING_TIME_USE_STAIRS        8
+
+
+ubyte AnimCounter = 0;
+ubyte PlanChanged = 0;
+
+static ulong    UseObject;
+
+
+// action support functions
+static ubyte plRemLastAction(void)
+{
+	if (!IsHandlerCleared(plSys))
+	{
+		plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys) - CurrentAction(plSys)->TimeNeeded, CurrentAction(plSys)->TimeNeeded, 0);
+		lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+
+		RemLastAction(plSys);
+
+		plDisplayTimer(0, 1);
+		plDisplayInfo();
+
+		return 1;
+	}
+
+	return 0;
+}
+
+// actions
+static void plActionGo(void)
+{
+	ulong choice = 0L;
+	ubyte direction;
+	ubyte collision;
+	struct Action *action = CurrentAction(plSys);
+
+	plMessage("WALK", PLANING_MSG_REFRESH);
+
+	inpTurnFunctionKey(0);
+	inpTurnMouse(0);
+	inpSetKeyRepeat((0<<5) | 0);
+
+	while (1)
+	{
+		direction = 0;
+
+		choice = inpWaitFor(INP_MOVEMENT|INP_LBUTTONP);
+
+		if (choice & INP_LBUTTONP)
+			break;
+
+		if (!(choice & INP_MOUSE) && !(choice & INP_MOUSEWHEEL))
+		{
+			if (choice & INP_ESC)
+			{
+				if (plRemLastAction())
+					action = CurrentAction(plSys);
+			}
+			else
+			    {
+				if (choice & INP_LEFT)
+					direction += LS_SCROLL_LEFT;
+
+				if (choice & INP_RIGHT)
+					direction += LS_SCROLL_RIGHT;
+
+				if (choice & INP_UP)
+					direction += LS_SCROLL_UP;
+
+				if (choice & INP_DOWN)
+					direction += LS_SCROLL_DOWN;
+
+				/* 2014-07-06 LucyG
+				TODO: allow the character to change direction without walking if there's a collision
+				*/
+				collision = lsInitScrollLandScape(direction, LS_SCROLL_PREPARE);
+				if (!collision)
+				{
+					if (!action || (action->Type != ACTION_GO))
+					{
+						if (action = InitAction(plSys, ACTION_GO, (ulong)direction, 0L, 0L))
+							PlanChanged = 1;
+						else
+						    {
+							plSay("PLANING_END", CurrentPerson);
+							inpSetKeyRepeat((1<<5) | 10);
+							inpTurnMouse(1);
+							inpTurnFunctionKey(1);
+							return;
+						}
+					}
+
+					if (ActionData(action,struct ActionGo *)->Direction == (uword)direction) {
+						IncCurrentTimer(plSys, 1, 1);
+					} else {
+						if (action = InitAction(plSys, ACTION_GO, direction, 0L, 1L)) {
+							PlanChanged = 1;
+						} else {
+							plSay("PLANING_END", CurrentPerson);
+							inpSetKeyRepeat((1<<5) | 10);
+							inpTurnMouse(1);
+							inpTurnFunctionKey(1);
+							return;
+						}
+					}
+
+					plSync(PLANING_ANIMATE_STD, GetMaxTimer(plSys), 1, 1);
+					plMove(CurrentPerson, direction);
+
+					lsScrollLandScape((ubyte)-1);
+					livDoAnims((AnimCounter++) % 2, 1);
+
+					plDisplayTimer(0, 0);
+				}
+			}
+		}
+	}
+
+	inpSetKeyRepeat((1<<5) | 10);
+	inpTurnMouse(1);
+	inpTurnFunctionKey(1);
+}
+
+static void plActionWait(void)
+{
+	LIST *menu = txtGoKey(PLAN_TXT, "MENU_4");
+	ubyte activ = 0;
+	ulong choice1 = 0L, choice2 = 0L, bitset;
+
+	while (activ != PLANING_WAIT_RETURN)
+	{
+		bitset = BIT(PLANING_WAIT)+
+		    BIT(PLANING_WAIT_RETURN);
+
+		if (CurrentPerson < BurglarsNr)
+		{
+			if (BurglarsNr > 1)
+				bitset += BIT(PLANING_WAIT_RADIO);
+		}
+
+		plDisplayTimer(0, 1);
+		plDisplayInfo();
+
+		ShowMenuBackground();
+
+		inpTurnESC(0);
+		inpTurnFunctionKey(0);
+		inpTurnMouse(0);
+
+		activ = Menu(menu, bitset, activ, NULL, 0);
+
+		inpTurnMouse(1);
+		inpTurnFunctionKey(1);
+		inpTurnESC(1);
+
+		switch (activ)
+		{
+		case PLANING_WAIT:
+			{
+				choice1 = 0L;
+				choice2 = 0L;
+
+				plMessage("WAIT_1", PLANING_MSG_REFRESH);
+				plDrawWait(choice2);
+
+				inpTurnESC(0);
+				inpTurnFunctionKey(0);
+				inpTurnMouse(0);
+
+				while (1)
+				{
+					choice1 = inpWaitFor(INP_RIGHT|INP_LEFT|INP_UP|INP_DOWN|INP_LBUTTONP);
+
+					if (choice1 & INP_LBUTTONP)
+						break;
+
+					if (!(choice1 & INP_MOUSE))
+					{
+						if ((choice1 & INP_RIGHT) && (choice2 < 1800))
+						{
+							choice2++;
+							plDrawWait(choice2);
+						}
+
+						if ((choice1 & INP_LEFT) && choice2)
+						{
+							choice2--;
+							plDrawWait(choice2);
+						}
+
+						if ((choice1 & INP_UP) && (choice2 <= 1740))
+						{
+							choice2 += 60;
+							plDrawWait(choice2);
+						}
+
+						if ((choice1 & INP_DOWN) && (choice2 >= 60))
+						{
+							choice2 -= 60;
+							plDrawWait(choice2);
+						}
+					}
+				}
+
+				inpTurnMouse(1);
+				inpTurnFunctionKey(1);
+				inpTurnESC(1);
+
+				if (choice2)
+				{
+					if (InitAction(plSys, ACTION_WAIT, 0L, 0L, choice2 * PLANING_CORRECT_TIME))
+					{
+						PlanChanged = 1;
+
+						livAnimate(Planing_Name[CurrentPerson], ANM_STAND, 0, 0);
+						plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), choice2 * PLANING_CORRECT_TIME, 1);
+						livRefreshAll();
+					}
+					else
+					    {
+						plSay("PLANING_END", CurrentPerson);
+						activ = PLANING_WAIT_RETURN;
+					}
+				}
+			}
+			break;
+
+		case PLANING_WAIT_RADIO:
+			if (has(Person_Matt_Stuvysunt, Tool_Funkgeraet))
+			{
+				char exp[TXT_KEY_LENGTH];
+
+				if (BurglarsNr > 2)
+				{
+					NODE *node, *help;
+
+					plMessage("RADIO_2", PLANING_MSG_REFRESH);
+					SetPictID(((Person)dbGetObject(OL_NR(GetNthNode(BurglarsList, CurrentPerson))))->PictID);
+					node = (NODE *) UnLink(BurglarsList, OL_NAME(GetNthNode(BurglarsList, CurrentPerson)),(void **)&help);
+
+					txtGetFirstLine(PLAN_TXT, "EXPAND_RADIO", exp);
+					ExpandObjectList(BurglarsList, exp);
+
+					choice1 = Bubble(BurglarsList, 0, NULL, 0L);
+
+					if (ChoiceOk(choice1, GET_OUT, BurglarsList))
+						choice1 = OL_NR(GetNthNode(BurglarsList, choice1));
+					else
+					    choice1 = GET_OUT;
+
+					Link(BurglarsList, node, help);
+					dbRemObjectNode(BurglarsList, 0L);
+				}
+				else
+				    {
+					choice1 = CurrentPerson ? OL_NR(GetNthNode(BurglarsList, 0)) : OL_NR(GetNthNode(BurglarsList, 1));
+					plMessage("RADIO_4", PLANING_MSG_WAIT|PLANING_MSG_REFRESH);
+				}
+
+				if (choice1 != GET_OUT)
+				{
+					if (InitAction(plSys, ACTION_WAIT_SIGNAL, choice1, 0L, 1L))
+					{
+						PlanChanged = 1;
+
+						livAnimate(Planing_Name[CurrentPerson], ANM_STAND, 0, 0);
+						plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), PLANING_CORRECT_TIME, 1);
+						livRefreshAll();
+					}
+					else
+					    {
+						plSay("PLANING_END", CurrentPerson);
+						activ = PLANING_WAIT_RETURN;
+					}
+				}
+			}
+			else
+			    plMessage("NO_RADIO", PLANING_MSG_WAIT);
+			break;
+		}
+	}
+
+	RemoveList(menu);
+}
+
+static void plLevelDesigner(LSObject lso)
+{
+	LIST *menu = txtGoKey(PLAN_TXT, "MENU_8");
+	ubyte ende = 0, activ = 0;
+	ulong bitset;
+	uword originX = lso->us_DestX, originY = lso->us_DestY;
+	ulong area = lsGetActivAreaID();
+
+	bitset = BIT(PLANING_LD_MOVE) 	+
+	    BIT(PLANING_LD_REFRESH) +
+	    BIT(PLANING_LD_OK)		+
+	    BIT(PLANING_LD_CANCEL);
+
+	while (!ende)
+	{
+		plDisplayTimer(0, 1);
+		plDisplayInfo();
+
+		ShowMenuBackground();
+
+		inpTurnESC(0);
+		inpTurnFunctionKey(0);
+		inpTurnMouse(0);
+
+		activ = Menu(menu, bitset, activ, NULL, 0);
+
+		inpTurnMouse(1);
+		inpTurnFunctionKey(1);
+		inpTurnESC(1);
+
+		switch (activ)
+		{
+		case PLANING_LD_MOVE:
+			while (1)
+			{
+				long choice = inpWaitFor(INP_RIGHT|INP_LEFT|INP_UP|INP_DOWN|INP_LBUTTONP);
+
+				if (choice & INP_LBUTTONP)
+					break;
+
+				if (choice & INP_RIGHT)
+					lso->us_DestX++;
+
+				if (choice & INP_LEFT)
+					lso->us_DestX--;
+
+				if (choice & INP_DOWN)
+					lso->us_DestY++;
+
+				if (choice & INP_UP)
+					lso->us_DestY--;
+
+				lsShowOneObject(lso, lso->us_DestX, lso->us_DestY, 16|32);
+			}
+			break;
+
+		case PLANING_LD_REFRESH:
+			lsDoneActivArea(area);
+			lsInitActivArea(area, livGetXPos(Planing_Name[CurrentPerson]), livGetYPos(Planing_Name[CurrentPerson]), Planing_Name[CurrentPerson]);
+
+			if (lsGetStartArea() == lsGetActivAreaID())
+				lsShowEscapeCar();
+
+			livRefreshAll();
+			break;
+
+		case PLANING_LD_OK:
+			{
+				char fileName[TXT_KEY_LENGTH],areaName[TXT_KEY_LENGTH];
+
+				dbGetObjectName(area, areaName);
+				strcat(areaName, ".dat");
+				dskBuildPathName(DATA_DIRECTORY, areaName, fileName);
+
+				dbSaveAllObjects(fileName, ((LSArea)dbGetObject(area))->ul_ObjectBaseNr, 10000, 0);
+			}
+
+			ende = 1;
+			break;
+
+		case PLANING_LD_CANCEL:
+			lso->us_DestX = originX;
+			lso->us_DestY = originY;
+
+			ende = 1;
+			break;
+		}
+	}
+
+	RemoveList(menu);
+
+	lsDoneActivArea(area);
+	lsInitActivArea(area, livGetXPos(Planing_Name[CurrentPerson]), livGetYPos(Planing_Name[CurrentPerson]), Planing_Name[CurrentPerson]);
+
+	if (lsGetStartArea() == lsGetActivAreaID())
+		lsShowEscapeCar();
+
+	livRefreshAll();
+}
+
+static void plActionOpenClose(uword what)
+{
+	LIST *actionList = plGetObjectsList(CurrentPerson, 0);
+	ulong choice1 = 0L, state;
+	char exp[TXT_KEY_LENGTH];
+
+	if (LIST_EMPTY(actionList))
+		plMessage("NO_OBJECTS", PLANING_MSG_WAIT);
+	else
+	    {
+		if (what == ACTION_OPEN)
+		{
+			plMessage("OPEN", PLANING_MSG_REFRESH);
+			txtGetFirstLine(PLAN_TXT, "EXPAND_ALL", exp);
+		}
+		else
+		    {
+			plMessage("CLOSE", PLANING_MSG_REFRESH);
+			txtGetFirstLine(PLAN_TXT, "EXPAND_ALL", exp);
+		}
+
+		ExpandObjectList(actionList, exp);
+		SetPictID(((Person)dbGetObject(OL_NR(GetNthNode(PersonsList, CurrentPerson))))->PictID);
+
+		choice1 = Bubble(actionList, 0, NULL, 0L);
+
+		if (ChoiceOk(choice1, GET_OUT, actionList))
+		{
+			choice1 = OL_NR(GetNthNode(actionList, choice1));
+
+			if (GamePlayMode & GP_LEVEL_DESIGN)
+				plLevelDesigner((LSObject)dbGetObject(choice1));
+			else
+			    if ((CurrentPerson >= BurglarsNr) || !CHECK_STATE(lsGetObjectState(choice1), Const_tcIN_PROGRESS_BIT))
+			{
+				if ((CurrentPerson >= BurglarsNr) || plIgnoreLock(choice1) || CHECK_STATE(lsGetObjectState(choice1), Const_tcLOCK_UNLOCK_BIT))
+				{
+					state = CHECK_STATE(lsGetObjectState(choice1), Const_tcOPEN_CLOSE_BIT);
+
+					if ((what == ACTION_OPEN) ? !state : state)
+					{
+						if (InitAction(plSys, what, choice1, 0L, opensGet(((LSObject)dbGetObject(choice1))->Type, Tool_Hand) * PLANING_CORRECT_TIME))
+						{
+							PlanChanged = 1;
+
+							if (CurrentPerson < BurglarsNr)
+								plWork(CurrentPerson);
+
+							plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), opensGet(((LSObject)dbGetObject(choice1))->Type, Tool_Hand) * PLANING_CORRECT_TIME, 1);
+
+							lsSetObjectState(choice1, Const_tcOPEN_CLOSE_BIT, ((what == ACTION_OPEN) ? 1 : 0));
+
+							if (what == ACTION_OPEN)
+								plCorrectOpened((LSObject)dbGetObject(choice1), 1);
+							else
+								plCorrectOpened((LSObject)dbGetObject(choice1), 0);
+
+							plRefresh(choice1);
+							livRefreshAll();
+						}
+						else
+						    plSay("PLANING_END", CurrentPerson);
+					}
+					else
+					    {
+						if (what == ACTION_OPEN)
+							plMessage("OPEN_OPENED", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+						else
+						    plMessage("CLOSE_CLOSED", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+					}
+				}
+				else
+				    plMessage("LOCKED", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+			}
+			else
+			    plMessage("IN_PROGRESS", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+		}
+	}
+
+	RemoveList(actionList);
+}
+
+static void plActionTake(void)
+{
+	LIST *actionList = plGetObjectsList(CurrentPerson, 1);
+	ulong choice = 0L, choice1 = 0L, choice2 = 0L, state;
+	char exp[TXT_KEY_LENGTH];
+
+	if (LIST_EMPTY(actionList))
+		plMessage("NO_OBJECTS", PLANING_MSG_WAIT);
+	else
+	    {
+		LIST *takeableList = (LIST*)CreateList(0L);
+		struct ObjectNode *n, *h, *h2;
+
+		for (n = (struct ObjectNode *)LIST_HEAD(actionList); NODE_SUCC(n); n = (struct ObjectNode *)NODE_SUCC(n))
+		{
+			SetObjectListAttr(OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_NORMAL, 0L);
+			AskAll(dbGetObject(OL_NR(n)), hasLoot(CurrentPerson), BuildObjectList);
+
+			state = lsGetObjectState(OL_NR(n));
+
+			if (!LIST_EMPTY(ObjectList))
+			{
+				if (CHECK_STATE(state, Const_tcTAKE_BIT))
+				{
+					h2 = (struct ObjectNode *)LIST_HEAD(ObjectList);
+
+					h = (struct ObjectNode *)CreateNode(takeableList, sizeof(struct ObjectNode), OL_NAME(h2));
+					h->nr   = OL_NR(h2);    /* Loot */
+					h->type = OL_NR(n);     /* Original */
+					h->data = NULL;
+				}
+				else
+				    {
+					if (CHECK_STATE(state, Const_tcOPEN_CLOSE_BIT))
+					{
+						for (h2 = (struct ObjectNode *)LIST_HEAD(ObjectList); NODE_SUCC(h2); h2 = (struct ObjectNode *)NODE_SUCC(h2))
+						{
+							h = (struct ObjectNode *)CreateNode (takeableList, sizeof(struct ObjectNode), OL_NAME(h2));
+							h->nr   = OL_NR(h2); /* Loot */
+							h->type = OL_NR(n);  /* Original */
+							h->data = (void *)1L;
+						}
+					}
+				}
+			}
+		}
+
+		if (!LIST_EMPTY(takeableList))
+		{
+			plMessage("TAKE", PLANING_MSG_REFRESH);
+
+			SetPictID(((Person)dbGetObject(OL_NR(GetNthNode(BurglarsList, CurrentPerson))))->PictID);
+
+			txtGetFirstLine(PLAN_TXT, "EXPAND_ALL", exp);
+			ExpandObjectList(takeableList, exp);
+
+			choice  = Bubble(takeableList, 0, NULL, 0L);
+
+			if (ChoiceOk(choice, GET_OUT, takeableList))
+			{
+				ulong weightPerson = tcWeightPersCanCarry((Person)dbGetObject (OL_NR(GetNthNode (BurglarsList, CurrentPerson))));
+				ulong volumePerson = tcVolumePersCanCarry((Person)dbGetObject (OL_NR(GetNthNode (BurglarsList, CurrentPerson))));
+
+				ulong weightLoot;
+				ulong volumeLoot;
+
+				choice1 = OL_NR(GetNthNode(takeableList, choice));
+				choice2 = OL_TYPE(GetNthNode(takeableList, choice));
+
+				weightLoot = ((Loot)dbGetObject(choice1))->Weight;
+				volumeLoot = ((Loot)dbGetObject(choice1))->Volume;
+
+				if ((Planing_Weight[CurrentPerson]  + weightLoot) <= weightPerson)
+				{
+					if ((Planing_Volume[CurrentPerson]  + volumeLoot) <= volumePerson)
+					{
+						if (InitAction(plSys, ACTION_TAKE, choice2, choice1,  PLANING_TIME_TAKE * PLANING_CORRECT_TIME))
+						{
+							PlanChanged = 1;
+
+							plWork(CurrentPerson);
+							plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), PLANING_TIME_TAKE * PLANING_CORRECT_TIME, 1);
+
+							if (!OL_DATA(GetNthNode(takeableList, choice)))
+							{
+								if ((choice2 >= 9701) && (choice2 <= 9708))
+								{
+									lsRemLootBag(choice2);
+									Planing_Loot[choice2-9701] = 0;
+								}
+								else
+								    {
+									lsTurnObject((LSObject)dbGetObject(choice2), LS_OBJECT_INVISIBLE, LS_NO_COLLISION);
+									lsSetObjectState(choice2, Const_tcACCESS_BIT, 0);
+
+									plMessage("TAKEN_LOOT", PLANING_MSG_REFRESH);
+								}
+							}
+
+							{
+								ulong newValue = GetP(dbGetObject(choice2), hasLoot(CurrentPerson), dbGetObject(choice1));
+
+								if (Ask(dbGetObject (OL_NR(GetNthNode(BurglarsList, CurrentPerson))), take_RelId, dbGetObject(choice1)))
+								{
+									ulong oldValue = GetP(dbGetObject(OL_NR(GetNthNode(BurglarsList, CurrentPerson))), take_RelId, dbGetObject(choice1));
+
+									SetP(dbGetObject(OL_NR(GetNthNode(BurglarsList, CurrentPerson))), take_RelId, dbGetObject(choice1), oldValue + newValue);
+								}
+								else
+								    SetP(dbGetObject(OL_NR(GetNthNode(BurglarsList, CurrentPerson))), take_RelId, dbGetObject(choice1), newValue);
+							}
+
+							Planing_Weight[CurrentPerson] += weightLoot;
+							Planing_Volume[CurrentPerson] += volumeLoot;
+
+							plRefresh(choice2);
+							livRefreshAll();
+
+							SetP(dbGetObject(choice1), hasLoot(CurrentPerson), dbGetObject(choice1), GetP(dbGetObject(choice2), hasLoot(CurrentPerson), dbGetObject(choice1)));
+							Present(choice1, "RasterObject", InitOneLootPresent);
+							UnSet(dbGetObject(choice1), hasLoot(CurrentPerson), dbGetObject(choice1));
+
+							UnSet(dbGetObject(choice2), hasLoot(CurrentPerson), dbGetObject(choice1));
+						}
+						else
+						    plSay("PLANING_END", CurrentPerson);
+					}
+					else
+					    plMessage("TOO_BIG", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+				}
+				else
+				    plMessage("TOO_HEAVY", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+			}
+		}
+		else
+		    plMessage("NO_OBJECTS", PLANING_MSG_WAIT);
+
+		RemoveList(takeableList);
+	}
+
+	RemoveList(actionList);
+}
+
+static char *plSetUseString(ulong nr, ulong type, void *data)
+{
+	static char useString[TXT_KEY_LENGTH];
+	ulong actLoudness = lsGetLoudness(livGetXPos(Planing_Name[CurrentPerson]), livGetYPos(Planing_Name[CurrentPerson]));
+	ulong objLoudness = soundGet(((LSObject)dbGetObject(UseObject))->Type, nr);
+
+	useString[0] = '\0';
+
+	if (break(((LSObject)dbGetObject(UseObject))->Type, nr))
+	{
+		sprintf(useString, "%ld %s", tcGuyUsesTool(OL_NR(GetNthNode(PersonsList, CurrentPerson)), (Building)dbGetObject(Planing_BldId), nr, ((LSObject)dbGetObject(UseObject))->Type), txtSeconds);
+
+		if (objLoudness >= actLoudness)
+		{
+			strcat(useString, ", ");
+			strcat(useString, txtTooLoud);
+		}
+	}
+
+	return useString;
+}
+
+static ubyte plCheckAbilities(ulong persId, ulong checkToolId)
+{
+	NODE *n;
+	LIST *requires;
+	ubyte ret = 1;
+
+	toolRequiresAll(checkToolId, OLF_PRIVATE_LIST, Object_Ability);
+	requires = ObjectListPrivate;
+
+	for (n = (NODE *)LIST_HEAD(requires); NODE_SUCC(n); n = (NODE *)NODE_SUCC(n))
+	{
+		if (!has(persId, OL_NR(n)))
+		{
+			ret = 0;
+			break;
+		}
+		else
+		    {
+			if (hasGet(persId, OL_NR(n)) < toolRequiresGet(checkToolId, OL_NR(n)))
+			{
+				ret = 0;
+				break;
+			}
+		}
+	}
+
+	RemoveList(requires);
+	return ret;
+}
+
+static ubyte plCheckRequiredTools (ulong checkToolId)
+{
+	LIST *trl;
+	NODE *n, *h;
+	ubyte ret = 1;
+
+	toolRequiresAll(checkToolId, OLF_PRIVATE_LIST, Object_Tool);
+	trl = ObjectListPrivate;
+
+	hasAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Tool);
+
+	for (n = (NODE *)LIST_HEAD(trl); NODE_SUCC(n); n = (NODE *)NODE_SUCC(n))
+	{
+		ubyte found = 0;
+
+		ret = 0;
+
+		for (h = (NODE *)LIST_HEAD(ObjectList); NODE_SUCC(h); h = (NODE *)NODE_SUCC(h))
+		{
+			if (OL_NR(n) == OL_NR(h))
+				found = 1;
+		}
+
+		if (found)
+		{
+			ret = 1;
+			break;
+		}
+	}
+
+	RemoveList(trl);
+
+	return ret;
+}
+
+static void plCorrectToolsList(ulong flags)
+{
+	// f�ge Stechkarte nur ein, wenn zum aktuellen Zeitpunkt
+	// ein W�chter niederged�gelt wurde
+	if (PersonsNr > BurglarsNr)
+	{
+		ubyte i;
+
+		for (i = BurglarsNr; i < PersonsNr; i++)
+		{
+			if (Planing_Guard[i-BurglarsNr] == 2)
+			{
+				if (!dbHasObjectNode(ObjectList, Tool_Stechkarte))
+					dbAddObjectNode(ObjectList, Tool_Stechkarte, flags);
+				break;
+			}
+		}
+	}
+
+	dbRemObjectNode(ObjectList, Tool_Handschuhe);
+	dbRemObjectNode(ObjectList, Tool_Schuhe);
+	dbRemObjectNode(ObjectList, Tool_Maske);
+	dbRemObjectNode(ObjectList, Tool_Stromgenerator);
+	dbRemObjectNode(ObjectList, Tool_Batterie);
+	dbRemObjectNode(ObjectList, Tool_Schutzanzug);
+}
+
+static void plActionUse(void)
+{
+	LIST *actionList = plGetObjectsList(CurrentPerson, 0);
+	ulong choice1 = 0L, choice2 = 0L, state;
+	ubyte i;
+	char exp[TXT_KEY_LENGTH];
+
+	if (CurrentPerson < BurglarsNr)
+	{
+		for (i = BurglarsNr; i < PersonsNr; i++)
+			plInsertGuard(actionList, CurrentPerson, i);
+
+		hasAll(Person_Matt_Stuvysunt, OLF_NORMAL|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Tool);
+		plCorrectToolsList(OLF_INCLUDE_NAME|OLF_INSERT_STAR);
+
+		if (LIST_EMPTY(ObjectList))
+			plMessage("USE_1", PLANING_MSG_WAIT);
+		else
+		{
+			if (LIST_EMPTY(actionList))
+				plMessage("NO_OBJECTS", PLANING_MSG_WAIT);
+			else
+			{
+				plMessage("USE_3", PLANING_MSG_REFRESH);
+
+				SetPictID(((Person)dbGetObject(OL_NR(GetNthNode (PersonsList, CurrentPerson))))->PictID);
+
+				txtGetFirstLine(PLAN_TXT, "EXPAND_ALL", exp);
+				ExpandObjectList(actionList, exp);
+
+				choice1  = Bubble(actionList, 0, NULL, 0L);
+
+				if (ChoiceOk(choice1, GET_OUT, actionList))
+				{
+					choice1 = OL_NR(GetNthNode(actionList, choice1));
+
+					if (plIsStair(choice1))
+					{
+						ulong newAreaId = StairConnectsGet(choice1, choice1);
+
+						if (InitAction(plSys, ACTION_USE, choice1, lsGetActivAreaID(), PLANING_TIME_USE_STAIRS * PLANING_CORRECT_TIME))
+						{
+							PlanChanged = 1;
+
+							livLivesInArea(Planing_Name[CurrentPerson], newAreaId);
+
+							lsDoneActivArea(newAreaId);
+							lsInitActivArea(newAreaId, livGetXPos(Planing_Name[CurrentPerson]), livGetYPos(Planing_Name[CurrentPerson]), Planing_Name[CurrentPerson]);
+
+							if (lsGetStartArea() == lsGetActivAreaID())
+								lsShowEscapeCar();                      /* Auto neu zeichnen */
+
+							livRefreshAll();
+
+							plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), PLANING_TIME_USE_STAIRS * PLANING_CORRECT_TIME, 1);
+							lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+						}
+						else
+							plSay("PLANING_END", CurrentPerson);
+					}
+					else if (dbIsObject(choice1, Object_Police))
+					{
+						if (has(OL_NR(GetNthNode(PersonsList, CurrentPerson)), Ability_Kampf))
+						{
+							LIST *objList = (LIST*)CreateList(0L);
+
+							dbAddObjectNode(objList, Tool_Hand, OLF_INCLUDE_NAME|OLF_INSERT_STAR);
+							dbAddObjectNode(objList, Tool_Fusz, OLF_INCLUDE_NAME|OLF_INSERT_STAR);
+
+							if (has(Person_Matt_Stuvysunt, Tool_Chloroform))
+								dbAddObjectNode(objList, Tool_Chloroform, OLF_INCLUDE_NAME|OLF_INSERT_STAR);
+
+							txtGetFirstLine(PLAN_TXT, "EXPAND_ALL", exp);
+							ExpandObjectList(objList, exp);
+
+							plMessage("USE_4", PLANING_MSG_REFRESH);
+
+							SetPictID(((Person)dbGetObject(OL_NR(GetNthNode(PersonsList, CurrentPerson))))->PictID);
+
+							choice2 = Bubble(objList, 0, NULL, 0L);
+
+							if (ChoiceOk(choice2, GET_OUT, objList))
+							{
+								choice2 = OL_NR(GetNthNode(objList, choice2));
+
+								if (InitAction(plSys, ACTION_USE, choice1, choice2, tcGuyUsesTool(OL_NR(GetNthNode(PersonsList, CurrentPerson)), (Building)dbGetObject(Planing_BldId), choice2, Item_Wache) * PLANING_CORRECT_TIME))
+								{
+									PlanChanged = 1;
+
+									Planing_Guard[((Police)dbGetObject(choice1))->LivingID - BurglarsNr] = 2;
+
+									plWork(CurrentPerson);
+									plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), tcGuyUsesTool(OL_NR(GetNthNode(PersonsList, CurrentPerson)), (Building)dbGetObject(Planing_BldId), choice2, Item_Wache) * PLANING_CORRECT_TIME, 1);
+									livRefreshAll();
+								}
+								else
+									plSay("PLANING_END", CurrentPerson);
+							}
+
+							RemoveList(objList);
+						}
+						else
+							plMessage("WRONG_ABILITY", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+					}
+					else
+					{
+						state = lsGetObjectState(choice1);
+
+						if (!CHECK_STATE(state, Const_tcIN_PROGRESS_BIT))
+						{
+							if (plIgnoreLock(choice1) && !CHECK_STATE(state, Const_tcOPEN_CLOSE_BIT))
+							{
+								switch (((LSObject)dbGetObject(choice1))->Type)
+								{
+								case Item_Alarmanlage_Z3:
+								case Item_Alarmanlage_X3:
+								case Item_Alarmanlage_Top:
+									plMessage("ALARM_OPEN", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+									break;
+
+								case Item_Steuerkasten:
+									plMessage("POWER_OPEN", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+									break;
+								}
+							}
+							else
+							{
+								if (!CHECK_STATE(state, Const_tcLOCK_UNLOCK_BIT))
+								{
+									plMessage("USE_2", PLANING_MSG_REFRESH);
+
+									UseObject            = choice1;
+									ObjectListSuccString = plSetUseString;
+									ObjectListWidth      = 48L;
+
+									hasAll(Person_Matt_Stuvysunt, OLF_NORMAL|OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_ADD_SUCC_STRING|OLF_ALIGNED, Object_Tool);
+									plCorrectToolsList(OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_ADD_SUCC_STRING|OLF_ALIGNED);
+
+									ObjectListWidth      = 0L;
+									ObjectListSuccString = NULL;
+									UseObject            = 0L;
+
+									txtGetFirstLine(PLAN_TXT, "EXPAND_ALL", exp);
+									ExpandObjectList(ObjectList, exp);
+
+									SetPictID(((Person)dbGetObject(OL_NR(GetNthNode (PersonsList, CurrentPerson))))->PictID);
+
+									choice2 = Bubble(ObjectList, 0, NULL, 0L);
+
+									if (ChoiceOk(choice2, GET_OUT, ObjectList))
+									{
+										choice2 = OL_NR(GetNthNode(ObjectList, choice2));
+
+										if (plCheckAbilities(OL_NR(GetNthNode(PersonsList, CurrentPerson)), choice2))
+										{
+											if (plCheckRequiredTools(choice2))
+											{
+												if (break(((LSObject)dbGetObject(choice1))->Type, choice2))
+												{
+													if (InitAction(plSys, ACTION_USE, choice1, choice2, tcGuyUsesTool(OL_NR(GetNthNode (PersonsList, CurrentPerson)), (Building)dbGetObject(Planing_BldId), choice2, ((LSObject)dbGetObject(choice1))->Type) * PLANING_CORRECT_TIME))
+													{
+														PlanChanged = 1;
+
+														plWork(CurrentPerson);
+														plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), tcGuyUsesTool(OL_NR(GetNthNode(PersonsList, CurrentPerson)), (Building)dbGetObject(Planing_BldId), choice2, ((LSObject)dbGetObject(choice1))->Type) * PLANING_CORRECT_TIME, 1);
+
+														if (!plIgnoreLock(choice1))
+														{
+															lsSetObjectState(choice1, Const_tcLOCK_UNLOCK_BIT, 1);
+
+															if (((Tool)dbGetObject(choice2))->Effect & Const_tcTOOL_OPENS)
+															{
+																lsSetObjectState(choice1, Const_tcOPEN_CLOSE_BIT, 1);
+																plCorrectOpened((LSObject)dbGetObject (choice1), 1);
+															}
+														}
+														else
+														{
+															state = lsGetObjectState(choice1);
+
+															if (CHECK_STATE(state, Const_tcON_OFF))
+															{
+																lsSetObjectState(choice1, Const_tcON_OFF, 0);   /* on setzen  */
+
+																if (plIgnoreLock(choice1) == PLANING_POWER)
+																{
+																	lsSetSpotStatus(choice1, LS_SPOT_ON);
+																	lsShowAllSpots(CurrentTimer(plSys), LS_ALL_VISIBLE_SPOTS);
+																	plMessage("POWER_ON", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+																}
+																else
+																	plMessage("ALARM_ON", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+															}
+															else
+															{
+																lsSetObjectState(choice1, Const_tcON_OFF, 1);   /* off setzen */
+
+																if (plIgnoreLock(choice1) == PLANING_POWER)
+																{
+																	lsSetSpotStatus(choice1, LS_SPOT_OFF);
+																	lsShowAllSpots(CurrentTimer(plSys), LS_ALL_INVISIBLE_SPOTS);
+																	plMessage("POWER_OFF", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+																}
+																else
+																	plMessage("ALARM_OFF", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+															}
+														}
+
+														plRefresh(choice1);
+														livRefreshAll();
+													}
+													else
+														plSay("PLANING_END", CurrentPerson);
+												}
+												else
+													plMessage("DOES_NOT_WORK", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+											}
+											else
+												plMessage("TOOL_DOES_NOT_WORK", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+										}
+										else
+											plMessage("WRONG_ABILITY", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+									}
+								}
+								else if ((((LSObject)dbGetObject(choice1))->Type == Item_Fenster))
+								{
+
+									if ((bProfidisk) && (Planing_BldId == Building_Postzug))
+										plSay ("PLANING_TRAIN", CurrentPerson);
+									else
+
+										if (CHECK_STATE(lsGetObjectState(choice1), Const_tcOPEN_CLOSE_BIT))
+										{
+											if (has(Person_Matt_Stuvysunt, Tool_Strickleiter))
+											{
+												uword xpos, ypos;
+
+												if (InitAction(plSys, ACTION_USE, choice1, 0L, PLANING_TIME_THROUGH_WINDOW * PLANING_CORRECT_TIME))
+												{
+													PlanChanged = 1;
+
+													lsWalkThroughWindow((LSObject)dbGetObject(choice1), livGetXPos(Planing_Name[CurrentPerson]), livGetYPos(Planing_Name[CurrentPerson]), &xpos, &ypos);
+
+													livSetPos(Planing_Name[CurrentPerson], xpos, ypos);
+													plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), PLANING_TIME_THROUGH_WINDOW * PLANING_CORRECT_TIME, 1);
+													livRefreshAll();
+												}
+												else
+													plSay("PLANING_END", CurrentPerson);
+											}
+											else
+												plMessage("NO_STAIRS", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+										}
+										else
+											plMessage("WALK_WINDOW", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+								}
+								else
+									plMessage("UNLOCK_UNLOCKED", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+							}
+						}
+						else
+							plMessage("IN_PROGRESS", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+					}
+				}
+			}
+		}
+	}
+	else
+	{
+		if (LIST_EMPTY(actionList))
+			plMessage("NO_OBJECTS", PLANING_MSG_WAIT);
+		else
+		{
+			plMessage("CONTROL", PLANING_MSG_REFRESH);
+
+			SetPictID(((Person)dbGetObject(OL_NR(GetNthNode (PersonsList, CurrentPerson))))->PictID);
+
+			txtGetFirstLine(PLAN_TXT, "EXPAND_ALL", exp);
+			ExpandObjectList(actionList, exp);
+
+			choice1 = Bubble(actionList, 0, NULL, 0L);
+
+			if (ChoiceOk(choice1, GET_OUT, actionList))
+			{
+				choice1 = OL_NR(GetNthNode(actionList, choice1));
+
+				if (InitAction(plSys, ACTION_CONTROL, choice1, 0L, PLANING_TIME_CONTROL * PLANING_CORRECT_TIME))
+				{
+					PlanChanged = 1;
+
+					plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), PLANING_TIME_CONTROL * PLANING_CORRECT_TIME, 1);
+
+					plRefresh(choice1);
+					livRefreshAll();
+				}
+				else
+					plSay("PLANING_END", CurrentPerson);
+			}
+		}
+	}
+
+	RemoveList(actionList);
+}
+
+static void plAction(void)
+{
+	LIST *menu  = NULL;
+	ubyte activ = 0;
+	ulong choice1 = 0L, choice2 = 0L, bitset;
+	char exp[TXT_KEY_LENGTH];
+
+	if (CurrentPerson < BurglarsNr)
+		menu = txtGoKey(PLAN_TXT, "MENU_2");
+	else
+		menu = txtGoKey(PLAN_TXT, "MENU_5");
+
+	while (activ != PLANING_ACTION_RETURN)
+	{
+		if (CurrentPerson < BurglarsNr)
+		{
+			bitset = BIT(PLANING_PERSON_WALK)+
+			    BIT(PLANING_ACTION_USE)+
+			    BIT(PLANING_ACTION_OPEN)+
+			    BIT(PLANING_ACTION_CLOSE)+
+			    BIT(PLANING_ACTION_TAKE)+
+			    BIT(PLANING_ACTION_DROP)+
+			    BIT(PLANING_ACTION_WAIT)+
+			    BIT(PLANING_ACTION_RETURN);
+
+
+			if ((GamePlayMode & GP_GUARD_DESIGN) ? (PersonsNr > 1) : (BurglarsNr > 1))
+				bitset += BIT(PLANING_ACTION_RADIO);
+
+			if (!(Planing_BldId == Building_Starford_Kaserne) || (GamePlayMode & GP_GUARD_DESIGN))
+				bitset += BIT(PLANING_PERSON_CHANGE);
+		}
+		else
+		    {
+			bitset = BIT(PLANING_PERSON_WALK)+
+			    BIT(PLANING_ACTION_USE)+
+			    BIT(PLANING_ACTION_OPEN)+
+			    BIT(PLANING_ACTION_CLOSE)+
+			    BIT(PLANING_ACTION_WAIT)+
+			    BIT(PLANING_ACTION_RETURN);
+
+			if (PersonsNr > 1)
+				bitset += BIT(PLANING_PERSON_CHANGE);
+		}
+
+		plDisplayTimer(0, 1);
+		plDisplayInfo();
+
+		ShowMenuBackground();
+
+		inpTurnESC(0);
+		inpTurnFunctionKey(0);
+		inpTurnMouse(0);
+
+		activ = Menu(menu, bitset, activ, NULL, 0);
+
+		inpTurnMouse(1);
+		inpTurnFunctionKey(1);
+		inpTurnESC(1);
+
+		switch (activ)
+		{
+		case PLANING_PERSON_WALK:
+			plActionGo();
+			break;
+
+		case PLANING_PERSON_CHANGE:
+			plMessage("CHANGE_PERSON_1", PLANING_MSG_REFRESH);
+
+			if (GamePlayMode & GP_GUARD_DESIGN)
+			{
+				if (PersonsNr > 2)
+					choice1 = (ulong)Bubble(PersonsList, CurrentPerson, NULL, 0L);
+				else
+				    choice1 = ((CurrentPerson) ? 0L : 1L);
+			}
+			else
+			    {
+				if (BurglarsNr > 2)
+					choice1 = (ulong)Bubble(BurglarsList, CurrentPerson, NULL, 0L);
+				else
+				    choice1 = ((CurrentPerson) ? 0L : 1L);
+			}
+
+			if (choice1 != GET_OUT)
+			{
+				ulong oldTime = CurrentTimer(plSys);
+
+				plMessage("PERSON_NOTES", PLANING_MSG_REFRESH);
+
+				plPrepareSys(choice1, 0, PLANING_HANDLER_SET);
+
+				if (livWhereIs(Planing_Name[choice1]) != lsGetActivAreaID())
+				{
+					lsDoneActivArea(livWhereIs(Planing_Name[choice1]));
+					lsInitActivArea(livWhereIs(Planing_Name[choice1]), livGetXPos(Planing_Name[choice1]), livGetYPos(Planing_Name[choice1]), Planing_Name[choice1]);
+				}
+
+				if (oldTime < GetMaxTimer(plSys))
+					plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), GetMaxTimer(plSys) - oldTime, 1);
+
+				if (oldTime > GetMaxTimer(plSys))
+					plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), oldTime - GetMaxTimer(plSys), 0);
+
+				lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+
+				RemoveList(menu);
+
+				if (CurrentPerson < BurglarsNr)
+					menu = txtGoKey(PLAN_TXT, "MENU_2");
+				else
+					menu = txtGoKey(PLAN_TXT, "MENU_5");
+			}
+			break;
+
+		case PLANING_ACTION_USE:
+			plActionUse();
+			break;
+
+		case PLANING_ACTION_OPEN:
+			plActionOpenClose(ACTION_OPEN);
+			break;
+
+		case PLANING_ACTION_CLOSE:
+			plActionOpenClose(ACTION_CLOSE);
+			break;
+
+		case PLANING_ACTION_TAKE:
+			plActionTake();
+			break;
+
+		case PLANING_ACTION_DROP:
+			SetObjectListAttr(OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_NORMAL, 0L);
+			AskAll(dbGetObject(OL_NR(GetNthNode(BurglarsList, CurrentPerson))), take_RelId, BuildObjectList);
+
+			if (LIST_EMPTY(ObjectList))
+				plMessage("DROP_1", PLANING_MSG_WAIT);
+			else
+			    {
+				plMessage("DROP_2", PLANING_MSG_REFRESH);
+
+				SetPictID(((Person)dbGetObject(OL_NR(GetNthNode(BurglarsList, CurrentPerson))))->PictID);
+
+				txtGetFirstLine(PLAN_TXT, "EXPAND_ALL", exp);
+				ExpandObjectList(ObjectList, exp);
+
+				choice1 = Bubble(ObjectList, 0, NULL, 0L);
+
+				if (ChoiceOk(choice1, GET_OUT, ObjectList))
+				{
+					ulong weightLoot;
+					ulong volumeLoot;
+
+					choice1 = OL_NR(GetNthNode(ObjectList, choice1));
+
+					weightLoot = ((Loot)dbGetObject(choice1))->Weight;
+					volumeLoot = ((Loot)dbGetObject(choice1))->Volume;
+
+					if (choice2 = plGetNextLoot())
+					{
+						if (InitAction(plSys, ACTION_DROP, choice2, choice1, PLANING_TIME_DROP * PLANING_CORRECT_TIME))
+						{
+							PlanChanged = 1;
+
+							plWork(CurrentPerson);
+							plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys),PLANING_TIME_DROP * PLANING_CORRECT_TIME, 1);
+
+							SetP(dbGetObject(choice2), hasLoot(CurrentPerson), dbGetObject(choice1), GetP(dbGetObject(OL_NR(GetNthNode(BurglarsList, CurrentPerson))), take_RelId, dbGetObject(choice1)));
+							UnSet(dbGetObject(OL_NR(GetNthNode(BurglarsList, CurrentPerson))), take_RelId, dbGetObject(choice1));
+							Planing_Weight[CurrentPerson] -= weightLoot;
+							Planing_Volume[CurrentPerson] -= volumeLoot;
+
+							plRefresh(choice2);
+							livRefreshAll();
+						}
+						else
+						    plSay("PLANING_END", CurrentPerson);
+					}
+					else
+					    plMessage("DROP_3", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+				}
+			}
+			break;
+
+		case PLANING_ACTION_WAIT:
+			plActionWait();
+			break;
+
+		case PLANING_ACTION_RADIO:
+			if (has(Person_Matt_Stuvysunt, Tool_Funkgeraet))
+			{
+				if (BurglarsNr > 2)
+				{
+					NODE *node, *help;
+
+					plMessage("RADIO_1", PLANING_MSG_REFRESH);
+					SetPictID(((Person)dbGetObject(OL_NR(GetNthNode(BurglarsList, CurrentPerson))))->PictID);
+					node = (NODE *) UnLink(BurglarsList, OL_NAME(GetNthNode(BurglarsList, CurrentPerson)), (void **)&help);
+
+					txtGetFirstLine(PLAN_TXT, "EXPAND_ALL", exp);
+					ExpandObjectList(BurglarsList, exp);
+
+					choice1 = Bubble(BurglarsList, 0, NULL, 0L);
+
+					if (ChoiceOk(choice1, GET_OUT, BurglarsList))
+						choice1 = OL_NR(GetNthNode(BurglarsList, choice1));
+					else
+					    choice1 = GET_OUT;
+
+					Link(BurglarsList, node, help);
+					dbRemObjectNode(BurglarsList, 0L);
+				}
+				else
+				    {
+					choice1 = CurrentPerson ? OL_NR(GetNthNode(BurglarsList, 0)) : OL_NR(GetNthNode(BurglarsList, 1));
+					plMessage("RADIO_3", PLANING_MSG_WAIT|PLANING_MSG_REFRESH);
+				}
+
+				if (choice1 != GET_OUT)
+				{
+					if (InitAction(plSys, ACTION_SIGNAL, choice1, 0L, PLANING_TIME_RADIO * PLANING_CORRECT_TIME))
+					{
+						PlanChanged = 1;
+
+						livAnimate(Planing_Name[CurrentPerson], ANM_MAKE_CALL, 0, 0);
+						plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), PLANING_TIME_RADIO * PLANING_CORRECT_TIME, 1);
+						livRefreshAll();
+					}
+					else
+					    plSay("PLANING_END", CurrentPerson);
+				}
+			}
+			else
+			    plMessage("NO_RADIO", PLANING_MSG_WAIT);
+			break;
+		}
+	}
+
+	RemoveList(menu);
+}
+
+static void plNoteBook(void)
+{
+	LIST  *l, *bubble = txtGoKey(PLAN_TXT,"MENU_6");
+	ulong  choice1 = 0, choice2 = 0;
+	char exp[TXT_KEY_LENGTH];
+
+	while (choice1 != GET_OUT)
+	{
+		SetBubbleType(THINK_BUBBLE);
+
+		choice1 = Bubble(bubble, choice1, 0L, 0L);
+
+		choice2 = 0L;
+
+		switch (choice1)
+		{
+		case PLANING_NOTE_TARGET:
+			Present(Organisation.BuildingID, "Building", InitBuildingPresent);
+			break;
+
+		case PLANING_NOTE_TEAM:
+			while (choice2 != GET_OUT)
+			{
+				txtGetFirstLine(PLAN_TXT, "EXPAND_NOTEBOOK", exp);
+				ExpandObjectList(BurglarsList, exp);
+
+				SetBubbleType(THINK_BUBBLE);
+
+				choice2 = Bubble(BurglarsList, choice2, 0L, 0L);
+
+				if (ChoiceOk(choice2, GET_OUT, BurglarsList))
+					Present(OL_NR(GetNthNode(BurglarsList, choice2)), "Person", InitPersonPresent);
+				else
+				    choice2 = GET_OUT;
+
+				dbRemObjectNode(BurglarsList, 0L);
+			}
+			break;
+
+		case PLANING_NOTE_CAR:
+			Present(Organisation.CarID , "Car", InitCarPresent);
+			break;
+
+		case PLANING_NOTE_TOOLS:
+			hasAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Tool);
+			l = ObjectListPrivate;
+
+			if (!LIST_EMPTY(l))
+			{
+				txtGetFirstLine(PLAN_TXT, "EXPAND_NOTEBOOK", exp);
+				ExpandObjectList(l, exp);
+
+				while (choice2 != GET_OUT)
+				{
+					SetBubbleType(THINK_BUBBLE);
+
+					choice2 = Bubble(l, choice2, 0L, 0L);
+
+					if (ChoiceOk(choice2, GET_OUT, l))
+						Present(OL_NR(GetNthNode(l, choice2)), "Tool", InitToolPresent);
+					else
+					    choice2 = GET_OUT;
+				}
+			}
+
+			RemoveList(l);
+			break;
+
+		default:
+			choice1 = GET_OUT;
+			break;
+		}
+	}
+
+	RemoveList(bubble);
+}
+
+static void plLook(void)
+{
+	LIST *menu = txtGoKey(PLAN_TXT, "MENU_7");
+	ubyte activ = 0, choice;
+	ulong timer = 0L, maxTimer = GetMaxTimer(plSys), realCurrentPerson = CurrentPerson, choice1;
+	ulong bitset;
+
+	plMessage("PERSON_NOTES", PLANING_MSG_REFRESH);
+	plSync(PLANING_ANIMATE_NO, timer, maxTimer, 0);
+	lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+
+	while (activ != PLANING_LOOK_RETURN)
+	{
+		plDisplayTimer(timer / PLANING_CORRECT_TIME, 0);
+		plDisplayInfo();
+
+		ShowMenuBackground();
+
+		bitset = BIT(PLANING_LOOK_PLAN)+
+		    BIT(PLANING_LOOK_RETURN);
+
+		if ((CurrentPerson < BurglarsNr) ? BurglarsNr > 1 : PersonsNr > 1)
+			bitset += BIT(PLANING_LOOK_PERSON_CHANGE);
+
+		inpTurnFunctionKey(0);
+		inpTurnESC(0);
+
+		activ = Menu (menu, bitset, activ, NULL, 0);
+
+		inpTurnFunctionKey(1);
+		inpTurnESC(1);
+
+		switch (activ)
+		{
+		case PLANING_LOOK_PLAN:
+			{
+				ubyte last = 0;
+
+				plMessage("LOOK_START", PLANING_MSG_REFRESH);
+
+				inpTurnESC(0);
+				inpTurnFunctionKey(0);
+				inpTurnMouse(0);
+				inpSetKeyRepeat((0 << 5) | 0);
+
+				while (1)
+				{
+					plDisplayTimer(timer / PLANING_CORRECT_TIME, 0);
+
+					choice = inpWaitFor(INP_MOVEMENT|INP_LBUTTONP);
+
+					if (choice & INP_LBUTTONP)
+						break;
+
+					if (!(choice & INP_MOUSE))
+					{
+						if (choice & INP_RIGHT)
+						{
+							if (timer < maxTimer)
+							{
+								if (last != 1)
+								{
+									livSetPlayMode(LIV_PM_NORMAL);
+									last = 1;
+								}
+
+								timer++;
+								plSync(PLANING_ANIMATE_STD|PLANING_ANIMATE_FOCUS, timer, 1, 1);
+								livDoAnims((AnimCounter++) % 2, 1);
+							}
+						}
+
+						if (choice & INP_LEFT)
+						{
+							if (timer > 0)
+							{
+								if (last != 2)
+								{
+									livSetPlayMode(LIV_PM_REVERSE);
+									last = 2;
+								}
+
+								timer--;
+								plSync(PLANING_ANIMATE_STD|PLANING_ANIMATE_FOCUS, timer, 1, 0);
+								livDoAnims((AnimCounter++) % 2, 1);
+							}
+						}
+					}
+				}
+
+				inpSetKeyRepeat((1 << 5) | 10);
+				inpTurnMouse(1);
+				inpTurnFunctionKey(1);
+				inpTurnESC(1);
+			}
+			break;
+
+		case PLANING_LOOK_PERSON_CHANGE:
+			plMessage("CHANGE_PERSON_2", PLANING_MSG_REFRESH);
+
+			if (PersonsNr > 2)
+				choice1 = (ulong)Bubble(PersonsList, CurrentPerson, NULL, 0L);
+			else
+			    choice1 = ((CurrentPerson) ? 0L : 1L);
+
+			if (choice1 != GET_OUT)
+			{
+				plPrepareSys(choice1, 0, PLANING_HANDLER_SET);
+				maxTimer = GetMaxTimer(plSys);
+
+				if (livWhereIs(Planing_Name[choice1]) != lsGetActivAreaID())
+				{
+					lsDoneActivArea(livWhereIs(Planing_Name[choice1]));
+					lsInitActivArea(livWhereIs(Planing_Name[choice1]), livGetXPos(Planing_Name[choice1]), livGetYPos(Planing_Name[choice1]), Planing_Name[choice1]);
+				}
+
+				lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+			}
+			break;
+		}
+	}
+
+	livSetPlayMode(LIV_PM_NORMAL);
+
+	CurrentPerson = realCurrentPerson;
+	plPrepareSys(CurrentPerson, 0, PLANING_HANDLER_SET);
+
+	if (livWhereIs(Planing_Name[CurrentPerson]) != lsGetActivAreaID())
+	{
+		lsDoneActivArea(livWhereIs(Planing_Name[CurrentPerson]));
+		lsInitActivArea(livWhereIs(Planing_Name[CurrentPerson]), livGetXPos(Planing_Name[CurrentPerson]), livGetYPos(Planing_Name[CurrentPerson]), Planing_Name[CurrentPerson]);
+	}
+
+	plMessage("PERSON_NOTES", PLANING_MSG_REFRESH);
+
+	if (timer < GetMaxTimer(plSys))
+		plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), GetMaxTimer(plSys) - timer, 1);
+
+	if (timer > GetMaxTimer(plSys))
+		plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), timer - GetMaxTimer(plSys), 0);
+
+	lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+
+	RemoveList(menu);
+}
+
+// Planer
+void plPlaner(ulong objId)
+{
+	LIST *menu = txtGoKey (PLAN_TXT, "MENU_1");
+	ubyte activ = 0;
+	ulong bitset;
+
+	plPrepareSys(0L, objId, PLANING_INIT_PERSONSLIST|PLANING_HANDLER_ADD|PLANING_HANDLER_OPEN|PLANING_GUARDS_LOAD|PLANING_HANDLER_SET);
+	plPrepareGfx(objId, LS_COLL_PLAN, PLANING_GFX_LANDSCAPE|PLANING_GFX_SPRITES|PLANING_GFX_BACKGROUND);
+	plPrepareRel();
+	plPrepareData();
+
+	AnimCounter = 0;
+	PlanChanged = 0;
+
+	if ((Planing_BldId == Building_Starford_Kaserne) && !(GamePlayMode & GP_LEVEL_DESIGN))
+	{
+		// im Falle Starford Kaserne mu� der Plan geladen werden
+		plLoad(Planing_BldId);
+
+		plPrepareSys(0L, 0, PLANING_HANDLER_SET);
+
+		plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), GetMaxTimer(plSys), 1);
+		lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+
+		PlanChanged = 0;
+	}
+
+	while (activ != PLANING_RETURN)
+	{
+		plDisplayTimer(0, 1);
+		plDisplayInfo();
+
+		ShowMenuBackground();
+
+		bitset = BIT(PLANING_START)+
+		    BIT(PLANING_NOTE)+
+		    BIT(PLANING_SAVE)+
+		    BIT(PLANING_LOAD)+
+		    BIT(PLANING_CLEAR)+
+		    BIT(PLANING_LOOK)+
+		    BIT(PLANING_RETURN);
+
+		inpTurnESC(0);
+		inpTurnFunctionKey(0);
+		inpTurnMouse(0);
+
+		activ = Menu(menu, bitset, activ, NULL, 0);
+
+		inpTurnMouse(1);
+		inpTurnFunctionKey(1);
+		inpTurnESC(1);
+
+		switch (activ)
+		{
+		case PLANING_START:
+			plAction();
+			break;
+
+		case PLANING_NOTE:
+			plNoteBook();
+			break;
+
+		case PLANING_SAVE:
+			if (!(GamePlayMode & GP_GUARD_DESIGN) && !plAllInCar(objId))
+				plSay("PLAN_NOT_FINISHED", 0);
+
+			plSave(objId);
+
+			PlanChanged = 0;
+			break;
+
+		case PLANING_LOAD:
+			plSaveChanged(objId);
+
+			plMessage("PERSON_NOTES", PLANING_MSG_REFRESH);
+			plSync(PLANING_ANIMATE_NO, 0, GetMaxTimer(plSys), 0);
+
+			plPrepareSys(0L, 0, PLANING_HANDLER_CLEAR);
+			plPrepareData();
+
+			plLoad(objId);
+
+			plPrepareSys(0L, 0, PLANING_HANDLER_SET);
+
+			plMessage("PERSON_NOTES", PLANING_MSG_REFRESH);
+			plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), GetMaxTimer(plSys), 1);
+			lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+
+			PlanChanged = 0;
+			break;
+
+		case PLANING_CLEAR:
+			plSaveChanged(objId);
+
+			plMessage("CLEAR_PLAN", PLANING_MSG_REFRESH);
+
+			plSync(PLANING_ANIMATE_NO, 0, GetMaxTimer(plSys), 0);
+
+			plPrepareSys(0L, 0, PLANING_HANDLER_CLEAR|PLANING_HANDLER_SET);
+			plPrepareData();
+
+			lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+
+			PlanChanged = 0;
+			break;
+
+		case PLANING_LOOK:
+			plLook();
+			break;
+		}
+	}
+
+	plSaveChanged(objId);
+
+	plUnprepareRel();
+	plUnprepareGfx();
+	plUnprepareSys();
+
+	RemoveList(menu);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/planer.h b/cosp-0.6-src/ClouRemake/ClouRemake/planing/planer.h
new file mode 100644
index 0000000..0de2c70
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/planer.h
@@ -0,0 +1,92 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PLANING_PLANER
+#define MODULE_PLANING_PLANER
+
+
+#include <stdio.h>
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_PLANING_MAIN
+#include "planing\main.h"
+#endif
+
+#ifndef MODULE_PLANING_GRAPHICS
+#include "planing\graphics.h"
+#endif
+
+#ifndef MODULE_PLANING_IO
+#include "planing\io.h"
+#endif
+
+#ifndef MODULE_PLANING_PREPARE
+#include "planing\prepare.h"
+#endif
+
+#ifndef MODULE_PLANING_SUPPORT
+#include "planing\support.h"
+#endif
+
+#ifndef MODULE_PLANING_SYSTEM
+#include "planing\system.h"
+#endif
+
+#ifndef MODULE_PLANING_SYNC
+#include "planing\sync.h"
+#endif
+
+#ifndef MODULE_PLANING_GUARDS
+#include "planing\guards.h"
+#endif
+
+#ifndef MODULE_PLANING_PLAYER
+#include "planing\player.h"
+#endif
+
+extern ubyte AnimCounter;
+extern ubyte PlanChanged;
+
+
+void plPlaner (ulong objId);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/player.c b/cosp-0.6-src/ClouRemake/ClouRemake/planing/player.c
new file mode 100644
index 0000000..ce76b6d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/player.c
@@ -0,0 +1,1473 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "planing\player.h"
+
+
+// Menu ids - player
+#define PLANING_PLAYER_PERSON_CHANGE   0
+#define PLANING_PLAYER_RADIO_ALL       1
+#define PLANING_PLAYER_RADIO_ONE       2
+#define PLANING_PLAYER_ESCAPE          3
+
+#ifdef THECLOU_DEBUG
+#define PLANING_PLAYER_DEBUG           4
+#endif
+
+// Player defines
+#define PLANING_EXHAUST_MAX         240
+#define PLANING_MOOD_MIN            40
+#define PLANING_LOUDNESS_STD        5
+#define PLANING_LOUDNESS_RADIO      25
+#define PLANING_LOUDNESS_OPEN_CLOSE 14
+
+// pseudo actions
+#define ACTION_EXHAUST  1000
+
+// derivation defines
+#define PLANING_DERI_ALARM              (PD.realTime / CalcRandomNr(1, 3))
+#define PLANING_DERI_WATCHDOG           (PD.realTime / CalcRandomNr(6, 10))
+#define PLANING_DERI_UNABLE_TO_WORK     3
+#define PLANING_DERI_IGNORE_ACTION      (PD.realTime / CalcRandomNr(15, 20))
+#define PLANING_DERI_GUARD_ESCAPED      (PD.realTime / CalcRandomNr(4, 8))
+
+// sound system
+#define PLANING_MUSIC_PLAYER_BEGIN_KASERNE   "final.bk"
+#define PLANING_MUSIC_PLAYER_BEGIN_STD       "bruch1.bk"
+#define PLANING_MUSIC_PLAYER_END_STD         "bruch2.bk"
+
+// if no checking should be done define this
+// #define PLAN_IS_PERFECT
+
+
+// Player data structure
+static struct
+{
+	struct Action *action;
+
+	ubyte handlerEnded[PLANING_NR_PERSONS];
+	ubyte guardKO[PLANING_NR_GUARDS];
+	ubyte currLoudness[PLANING_NR_PERSONS];
+	ubyte unableToWork[PLANING_NR_PERSONS];
+
+	ulong maxTimer;
+	ulong timer;
+	ulong realTime;
+
+	ubyte ende;
+	ubyte badPlaning;
+	ubyte mood;
+	ubyte patrolCount;
+
+	ulong bldId;
+	Building bldObj;
+
+	uword changeCount;
+	uword totalCount;
+
+	ulong alarmTimer;
+
+	ulong actionTime;
+	ubyte (*actionFunc)(ulong, ulong);
+
+	ubyte isItDark;
+	ubyte sndState;		// Achtung! Verhalten von sndState hat sich gegen�ber Amiga gewandelt
+	ubyte pad[2];
+} PD;
+
+
+static void CheckSurrounding(ulong current)
+{
+   #ifndef PLAN_IS_PERFECT
+	if (has(OL_NR(GetNthNode(PersonsList, current)), Ability_Aufpassen))
+   {
+		long watch = 0;
+
+      if (Search.EscapeBits & FAHN_QUIET_ALARM)
+         watch = tcWatchDogWarning(OL_NR(GetNthNode(PersonsList, current)));
+      else
+			watch = tcWrongWatchDogWarning(OL_NR(GetNthNode(PersonsList, current)));
+
+		if (watch)
+      {
+         plSay("PLAYER_WATCHDOG", current);
+         inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+			Search.DeriTime += PLANING_DERI_WATCHDOG;
+			Search.WarningCount++;
+      }
+   }
+	#endif
+}
+
+static void UnableToWork(ulong current, ulong action)
+{
+   PD.currLoudness[current] = PLANING_LOUDNESS_STD;
+   Search.Exhaust[current]  = tcGuyIsWaiting(OL_NR(GetNthNode(PersonsList, current)), Search.Exhaust[current]);
+   Search.WaitTime[current]++;
+
+	livAnimate(Planing_Name[current], ANM_STAND, 0, 0);
+
+	// special stuff
+   if (!PD.unableToWork[current])
+   {
+		switch (action)
+		{
+			case ACTION_EXHAUST:
+				plSay("PLAYER_UTW_EXHAUST", current);
+				inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+			break;
+
+			case ACTION_GO:
+				plSay ("PLAYER_UTW_GO", current);
+				inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+			break;
+
+			case ACTION_OPEN:
+				plSay ("PLAYER_UTW_OPEN", current);
+				inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+			break;
+
+			case ACTION_CLOSE:
+				plSay ("PLAYER_UTW_CLOSE", current);
+				inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+			break;
+		}
+
+		PD.unableToWork[current] = 1;
+	}
+
+	// if we can not go on wait and check
+	CheckSurrounding(current);
+
+   if ((action != ACTION_WAIT) && (action != ACTION_WAIT_SIGNAL))
+   {
+		Search.DeriTime += PLANING_DERI_UNABLE_TO_WORK;
+
+      if (!PD.badPlaning)
+      {
+         plSay("PLAYER_BAD_PLANING", 0);
+         inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+         PD.badPlaning = 1;
+      }
+   }
+
+   if (action != ACTION_WAIT)
+		IncCurrentTimer(plSys, 1, 0);
+}
+
+static ubyte plGetMood (ulong time)
+{
+   ulong guyId[PLANING_NR_PERSONS];
+   ubyte i;
+
+   for (i = 0; i < PLANING_NR_PERSONS; i++)
+      guyId[i] = 0L;
+
+   for (i = 0; i < BurglarsNr; i++)
+      guyId[i] = OL_NR(GetNthNode(PersonsList, i));
+
+   return (ubyte)tcGetTeamMood(guyId, time);
+}
+
+static void plPersonLearns(ulong persId, ulong toolId)
+{
+	ulong para;
+
+   hasAll(persId, OLF_NORMAL, Object_Ability);
+
+   switch (toolId)
+	{
+      case Tool_Hand:
+		case Tool_Fusz:
+      case Tool_Chloroform:
+         para = learnedGet(persId, Ability_Kampf);
+
+			if (para == NO_PARAMETER)
+				learnedSetP(persId, Ability_Kampf, 1);
+         else
+            learnedSetP(persId, Ability_Kampf, para+1);
+		break;
+
+      case Tool_Winkelschleifer:
+      case Tool_Kernbohrer:
+      case Tool_Schneidbrenner:
+      case Tool_Sauerstofflanze:
+      case Tool_Stethoskop:
+      case Tool_Elektrohammer:
+         para = learnedGet(persId, Ability_Safes);
+
+         if (para == NO_PARAMETER)
+				learnedSetP(persId, Ability_Safes, 1);
+         else
+            learnedSetP(persId, Ability_Safes, para+1);
+		break;
+
+      case Tool_Dietrich:
+      case Tool_Brecheisen:
+		case Tool_Bohrmaschine:
+      case Tool_Bohrwinde:
+      case Tool_Schloszstecher:
+      case Tool_Glasschneider:
+         para = learnedGet(persId, Ability_Schloesser);
+
+         if (para == NO_PARAMETER)
+            learnedSetP(persId, Ability_Schloesser, 1);
+         else
+            learnedSetP(persId, Ability_Schloesser, para+1);
+		break;
+
+		case Tool_Elektroset:
+         para = learnedGet(persId, Ability_Elektronik);
+
+         if (para == NO_PARAMETER)
+            learnedSetP(persId, Ability_Elektronik, 1);
+			else
+            learnedSetP(persId, Ability_Elektronik, para+1);
+		break;
+
+      case Tool_Dynamit:
+         para = learnedGet(persId, Ability_Sprengstoff);
+
+			if (para == NO_PARAMETER)
+            learnedSetP(persId, Ability_Sprengstoff, 1);
+         else
+				learnedSetP(persId, Ability_Sprengstoff, para+1);
+		break;
+   }
+}
+
+static ubyte plCarTooFull(void)
+{
+   LIST *l = tcMakeLootList(Person_Matt_Stuvysunt, Relation_has);
+
+	CompleteLoot complete = (CompleteLoot)dbGetObject(CompleteLoot_LastLoot);
+   Car          car      = (Car)dbGetObject(Organisation.CarID);
+	ubyte        ret      = 0;
+
+   if (complete->TotalVolume > car->Capacity)
+		ret = 1;
+
+   RemoveList(l);
+
+	return ret;
+}
+
+static void plPlayerAction(void)
+{
+	ubyte i, patroCounter = 3;
+	ubyte DoScrolling = 0;
+
+	PD.timer++;
+	PD.realTime = PD.timer / PLANING_CORRECT_TIME;
+
+	plDisplayTimer(PD.realTime, 0);
+
+	if (PD.sndState && (PD.timer > (PD.maxTimer*20)/100) && (PD.bldId != Building_Starford_Kaserne))
+	{
+		sndPlaySound (PLANING_MUSIC_PLAYER_END_STD, 0L);
+		PD.sndState = 0;
+	}
+
+	#ifndef PLAN_IS_PERFECT
+	if (!(Search.EscapeBits & FAHN_ALARM_TIMECLOCK) && !(PD.timer % 3) && tcCheckTimeClocks (PD.bldId))
+	{
+		Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_TIMECLOCK;
+		Search.DeriTime   += PLANING_DERI_ALARM;
+		plSay("PLAYER_TIMECLOCK", 0);
+		inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+	}
+	#endif
+
+	#ifndef PLAN_IS_PERFECT
+	if (!(PD.timer % 15))
+	{
+		if (tcAlarmByLoudness(PD.bldObj, tcGetTotalLoudness (PD.currLoudness[0], PD.currLoudness[1], PD.currLoudness[2], PD.currLoudness[3])))
+			Search.EscapeBits |= FAHN_QUIET_ALARM|FAHN_ALARM_LOUDN;
+	}
+	#endif
+
+	if (PD.bldId == Building_Tower_of_London)
+		patroCounter = 9;
+
+	if (PD.bldId == Building_Starford_Kaserne)
+		patroCounter = 30;
+
+	if (!(PD.timer % patroCounter))
+	{
+		#ifndef PLAN_IS_PERFECT
+		if ((CalcRandomNr(0, 30 * (270 - tcRGetGRate(PD.bldObj) / 2 + 1))) == 0)
+		{
+			plSay("PLAYER_PATROL", 0);
+			inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+
+			PD.patrolCount++;
+
+			if (tcAlarmByPatrol(PD.bldObj, PD.changeCount, PD.totalCount ,PD.patrolCount))
+				Search.EscapeBits |= FAHN_QUIET_ALARM|FAHN_ALARM_PATRO;
+		}
+		#endif
+	}
+
+	#ifndef PLAN_IS_PERFECT
+	if (PD.alarmTimer && !(PD.timer % 180))
+	{
+		if (!(--PD.alarmTimer))
+			Search.EscapeBits |= FAHN_QUIET_ALARM|FAHN_ALARM_TIMER;
+	}
+	#endif
+
+	#ifndef PLAN_IS_PERFECT
+	if ((Search.EscapeBits & FAHN_QUIET_ALARM) || (Search.EscapeBits & FAHN_ALARM))
+	{
+		if (!Search.TimeOfAlarm)
+		{
+			Search.TimeOfAlarm = PD.realTime;
+
+			if (Search.EscapeBits & FAHN_ALARM)
+			{
+				sndPlayFX("sirene.voc");
+			}
+		}
+
+		if ((Search.EscapeBits & FAHN_ALARM) && (((PD.realTime - Search.TimeOfAlarm) % 120) == 119))
+		{
+			sndPlayFX("sirene.voc");
+		}
+
+		if (PD.realTime >= (Search.TimeOfAlarm + PD.bldObj->PoliceTime))
+		{
+			Search.EscapeBits |= FAHN_SURROUNDED;
+
+			for (i = 0; i < PLANING_NR_PERSONS; i++)
+				PD.handlerEnded[i] = 1;
+
+			sndPlayFX("marthorn.voc");
+		}
+	}
+	#endif
+
+	#ifndef PLAN_IS_PERFECT
+	if ((PD.bldId != Building_Starford_Kaserne) && !(PD.timer % 15))
+	{
+		if ((PD.mood = plGetMood(PD.realTime)) < PLANING_MOOD_MIN)
+		{
+			plSay("PLAYER_FLUCHT", 0);
+			inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+
+			Search.EscapeBits |= FAHN_ESCAPE;
+
+			for (i = 0; i < PLANING_NR_PERSONS; i++)
+				PD.handlerEnded[i] = 1;
+		}
+	}
+	#endif
+
+	if ((PD.realTime == PD.actionTime) && PD.actionFunc)
+	{
+		ubyte actionRet;
+
+		if (actionRet = PD.actionFunc(PD.actionTime, PD.bldId))
+		{
+			char actionText[TXT_KEY_LENGTH];
+
+			sprintf(actionText, "PLAYER_ACTION_%d", actionRet);
+			plSay(actionText, 0);
+			inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+
+			Search.EscapeBits |= FAHN_ESCAPE;
+
+			for (i = 0; i < PLANING_NR_PERSONS; i++)
+				PD.handlerEnded[i] = 1;
+		}
+	}
+
+	#ifndef PLAN_IS_PERFECT
+	if (!(PD.timer % 3))
+	{
+		if (PD.isItDark)
+		{
+			ubyte j, i;
+			uword xpos[PLANING_NR_PERSONS];
+			uword ypos[PLANING_NR_PERSONS];
+			ulong area[PLANING_NR_PERSONS];
+
+			// there are more efficient solutions, but no safer ones (after
+			// 10 hours programming....,) mod 28-05-94 hg
+			for (i = 0; i < PLANING_NR_PERSONS; i++)
+			{
+				xpos[i] = (uword) -1;
+				ypos[i] = (uword) -1;
+				area[i] = (ulong) -1;
+			}
+
+			for (j = 0; j < BurglarsNr; j++)
+			{
+				xpos[j] = livGetXPos(Planing_Name[j]);
+				ypos[j] = livGetYPos(Planing_Name[j]);
+				area[j] = livWhereIs(Planing_Name[j]);
+			}
+
+
+			lsGuyInsideSpot(xpos, ypos, area);
+		}
+	}
+	#endif
+
+	for (i = 0; i < PersonsNr; i++)
+	{
+		if ((i >= BurglarsNr) || !PD.handlerEnded[i])
+		{
+			SetActivHandler(plSys, OL_NR(GetNthNode(PersonsList, i)));
+
+			if ((i >= BurglarsNr) && PD.guardKO[i-BurglarsNr])
+			{
+				switch (PD.guardKO[i-BurglarsNr])
+				{
+					case 1:
+						livAnimate(Planing_Name[i], livGetViewDirection(Planing_Name[i]), 0, 0);
+					break;
+
+					case 2:
+						livAnimate(Planing_Name[i], ANM_DUSEL_POLICE, 0, 0);
+					break;
+
+					case 3:
+						livAnimate(Planing_Name[i], ANM_WORK_CONTROL, 0, 0);
+					break;
+				}
+			}
+			else if (PD.action = NextAction(plSys))
+			{
+				if (!(PD.timer % 12) && (i >= BurglarsNr) && !(Search.EscapeBits & FAHN_ALARM_GUARD))
+				{
+					ubyte j, dir = livGetViewDirection(Planing_Name[i]);
+					uword xpos   = livGetXPos(Planing_Name[i]);
+					uword ypos   = livGetYPos(Planing_Name[i]);
+
+					#ifndef PLAN_IS_PERFECT
+					for (j = 0; j < BurglarsNr; j++)
+					{
+						if (tcGuardDetectsGuy(Planing_GuardRoomList[i - BurglarsNr], xpos, ypos, dir, Planing_Name[i], Planing_Name[j]))
+						{
+							if ((PD.bldId == Building_Starford_Kaserne) && j)
+								 break;
+
+							plSay("PLAYER_GUARD_ALARM_1", i);
+							inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+							Search.DeriTime   += PLANING_DERI_ALARM;
+							Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_GUARD;
+
+							PD.guardKO[((Police)dbGetObject(OL_NR(GetNthNode(PersonsList, i))))->LivingID - BurglarsNr] = 3;
+							break;
+						}
+					}
+					#endif
+				}
+
+				#ifndef PLAN_IS_PERFECT
+				if (!(PD.timer % 3) && (i < BurglarsNr) && (livWhereIs(Planing_Name[i]) == lsGetActivAreaID()))
+				{
+					if (PD.bldId != Building_Starford_Kaserne)
+					{
+						if (!(Search.EscapeBits & FAHN_ALARM_MICRO) && tcAlarmByMicro(livGetXPos(Planing_Name[i]), livGetYPos(Planing_Name[i]), PD.currLoudness[i]))
+						{
+							Search.DeriTime   += PLANING_DERI_ALARM;
+							Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_MICRO;
+							plSay("PLAYER_MICRO", i);
+							inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+						}
+					}
+				}
+				#endif
+
+				if (PD.action->Type != ACTION_GO)
+				{
+					if (i < BurglarsNr)
+					{
+						if (PD.action->Type == ACTION_SIGNAL)
+							livAnimate(Planing_Name[i], ANM_MAKE_CALL, 0, 0);
+						else
+							plWork(i);
+					}
+					else
+						livAnimate(Planing_Name[i], ANM_WORK_CONTROL, 0, 0);
+				}
+
+				switch (PD.action->Type)
+				{
+					case ACTION_GO:
+						if (i < BurglarsNr)
+						{
+							if (Search.Exhaust[i] > PLANING_EXHAUST_MAX)
+								UnableToWork(i, ACTION_EXHAUST);
+							else
+							{
+								plMove(i, ActionData(PD.action, struct ActionGo *)->Direction);
+
+								if (livCanWalk(Planing_Name[i]))
+								{
+									PD.currLoudness[i] = tcGetWalkLoudness();
+									PD.unableToWork[i] = 0;
+
+									Search.Exhaust[i]  = tcGuyInAction(OL_NR(GetNthNode(PersonsList, i)), Search.Exhaust[i]);
+									Search.WalkTime[i]++;
+
+									if (i == CurrentPerson)
+									{
+										lsInitScrollLandScape(ActionData(PD.action, struct ActionGo *)->Direction, LS_SCROLL_PREPARE);
+										DoScrolling = 1;
+									}
+								}
+								else
+								{
+									if (livWhereIs(Planing_Name[i]) == lsGetActivAreaID())
+										UnableToWork(i, ACTION_GO);
+								}
+							}
+						}
+						else
+							plMove(i, ActionData(PD.action, struct ActionGo *)->Direction);
+					break;
+
+					case ACTION_WAIT:
+						if (i < BurglarsNr)
+							UnableToWork(i, ACTION_WAIT);
+					break;
+
+					case ACTION_SIGNAL:
+						if (i < BurglarsNr)
+						{
+							PD.currLoudness[i] = PLANING_LOUDNESS_RADIO;
+
+							if (ActionStarted(plSys))
+							{
+								Search.CallCount++;
+
+								InitSignal(plSys, OL_NR(GetNthNode(PersonsList, i)), ActionData(PD.action, struct ActionSignal *)->ReceiverId);
+
+								#ifndef PLAN_IS_PERFECT
+								if (tcAlarmByRadio(PD.bldObj))
+									Search.EscapeBits |= FAHN_QUIET_ALARM|FAHN_ALARM_RADIO;
+								#endif
+							}
+
+							if (ActionEnded(plSys))
+							{
+								struct plSignal *sig = IsSignal(plSys, OL_NR(GetNthNode(PersonsList, i)), ActionData(PD.action, struct ActionSignal *)->ReceiverId);
+
+								if (sig)
+									  CloseSignal(sig);
+							}
+						}
+					break;
+
+					case ACTION_WAIT_SIGNAL:
+						if (i < BurglarsNr)
+						{
+							struct plSignal *sig = IsSignal(plSys, ActionData(PD.action, struct ActionWaitSignal *)->SenderId, OL_NR(GetNthNode(PersonsList, i)));
+
+							if (sig)
+								CloseSignal(sig);
+							else
+								UnableToWork(i, ACTION_WAIT_SIGNAL);
+						}
+					break;
+
+					case ACTION_USE:
+						if (i < BurglarsNr)
+						{
+							Search.WorkTime[i]++;
+							Search.Exhaust[i] = tcGuyInAction(OL_NR(GetNthNode(PersonsList, i)), Search.Exhaust[i]);
+							PD.unableToWork[i] = 0;
+
+							if (ActionStarted(plSys))
+							{
+								if (plIsStair(ActionData(PD.action, struct ActionUse *)->ItemId))
+                           livLivesInArea(Planing_Name[i], StairConnectsGet(ActionData(PD.action, struct ActionUse *)->ItemId, ActionData(PD.action, struct ActionUse *)->ItemId));
+                        else
+                        {
+                           ulong needTime = PD.action->TimeNeeded;
+									ulong realTime = 0L;
+
+                           if (dbIsObject(ActionData(PD.action, struct ActionUse *)->ItemId, Object_Police))
+                           {
+                              if (plObjectInReach(i, ActionData(PD.action, struct ActionUse *)->ItemId))
+										{
+                                 PD.currLoudness[i] = tcGetToolLoudness(OL_NR(GetNthNode(PersonsList, i)), ActionData(PD.action, struct ActionUse *)->ToolId, Item_Wache);
+                                 PD.guardKO[((Police)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId))->LivingID - BurglarsNr] = 1;
+                                 PD.changeCount += 5;
+
+                                 realTime            = tcGuyUsesToolInPlayer(OL_NR(GetNthNode(PersonsList, i)), PD.bldObj, ActionData(PD.action, struct ActionUse *)->ToolId, Item_Wache, needTime / PLANING_CORRECT_TIME);
+                                 Search.KillTime[i] += realTime;
+                              }
+										else
+                              {
+                                 Search.DeriTime += PLANING_DERI_GUARD_ESCAPED;
+											IgnoreAction(plSys);
+
+                                 plSay("PLAYER_IGNORE_1",i);
+                                 inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+
+                                 break;
+                              }
+									}
+                           else
+                           {
+                              if (!CHECK_STATE(lsGetObjectState(ActionData(PD.action, struct ActionUse *)->ItemId), Const_tcLOCK_UNLOCK_BIT))
+											PD.currLoudness[i] = tcGetToolLoudness(OL_NR(GetNthNode(PersonsList, i)), ActionData(PD.action, struct ActionUse *)->ToolId, ((LSObject)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId))->Type);
+                              else if ((((LSObject)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId))->Type == Item_Fenster))
+                                 PD.currLoudness[i] = PLANING_LOUDNESS_STD;
+                              else if (!plIgnoreLock(ActionData(PD.action, struct ActionUse *)->ItemId))
+                              {
+                                 Search.DeriTime += PLANING_DERI_IGNORE_ACTION;
+                                 IgnoreAction(plSys);
+
+                                 plSay("PLAYER_IGNORE_2",i);
+											inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+
+											break;
+                              }
+
+                              #ifndef PLAN_IS_PERFECT
+                              if (tcGetDanger(OL_NR(GetNthNode(PersonsList, i)), ActionData(PD.action, struct ActionUse *)->ToolId, ((LSObject)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId))->Type))
+                                 PD.handlerEnded[i] = 2;
+                              #endif
+
+                              realTime = tcGuyUsesToolInPlayer(OL_NR(GetNthNode(PersonsList, i)), PD.bldObj, ActionData(PD.action, struct ActionUse *)->ToolId, ((LSObject)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId))->Type, needTime / PLANING_CORRECT_TIME);
+                           }
+
+									if (realTime)
+                           {
+                              Search.DeriTime += ((realTime * PLANING_CORRECT_TIME - needTime) * 5)/PLANING_CORRECT_TIME;
+
+                              IncCurrentTimer(plSys, realTime * PLANING_CORRECT_TIME - needTime, 0);
+                           }
+
+                           plPersonLearns(OL_NR(GetNthNode(PersonsList, i)), ActionData(PD.action, struct ActionUse *)->ToolId);
+								}
+                     }
+
+                     #ifndef PLAN_IS_PERFECT
+							if (!(Search.EscapeBits & FAHN_ALARM_ALARM) && tcAlarmByTouch(ActionData(PD.action, struct ActionUse *)->ItemId))
+                     {
+                        Search.DeriTime   += PLANING_DERI_ALARM;
+                        Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_ALARM;
+                        plSay("PLAYER_ALARM", i);
+                        inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+                     }
+							#endif
+
+                     if (ActionEnded(plSys))
+                     {
+								if (!plIgnoreLock(ActionData(PD.action, struct ActionUse *)->ItemId))
+                        {
+                           if (plIsStair(ActionData(PD.action, struct ActionUse *)->ItemId))
+                           {
+                              if (i == CurrentPerson)
+                              {
+                                 ulong newAreaId = StairConnectsGet(ActionData(PD.action, struct ActionUse *)->ItemId, ActionData(PD.action, struct ActionUse *)->ItemId);
+
+                                 lsDoneActivArea(newAreaId);
+											lsInitActivArea(newAreaId, livGetXPos(Planing_Name[i]), livGetYPos(Planing_Name[i]), Planing_Name[i]);
+
+											if (lsGetStartArea() == lsGetActivAreaID())
+												lsShowEscapeCar();                      /* Auto neu zeichnen */
+
+											livRefreshAll();
+										}
+                           }
+                           else if (dbIsObject(ActionData(PD.action, struct ActionUse *)->ItemId, Object_Police))
+									{
+                              if (tcKillTheGuard(OL_NR(GetNthNode(PersonsList, i)), PD.bldId))
+                                 PD.guardKO[((Police)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId))->LivingID - BurglarsNr] = 2;
+                              else
+                              {
+                                 if (!(Search.EscapeBits & FAHN_ALARM_GUARD))
+                                 {
+                                    plSay("PLAYER_GUARD_ALARM_5", ((Police)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId))->LivingID);
+												inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+                                    Search.DeriTime   += PLANING_DERI_ALARM;
+                                    Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_GUARD;
+                                 }
+
+                                 PD.handlerEnded[i] = 32;
+                                 PD.guardKO[((Police)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId))->LivingID - BurglarsNr] = 3;
+                              }
+									}
+                           else
+                           {
+                              if (!CHECK_STATE(lsGetObjectState(ActionData(PD.action, struct ActionUse *)->ItemId), Const_tcLOCK_UNLOCK_BIT))
+                              {
+                                 PD.changeCount++;
+
+											lsSetObjectState(ActionData(PD.action, struct ActionUse *)->ItemId, Const_tcLOCK_UNLOCK_BIT, 1);
+
+                                 if (((Tool)dbGetObject(ActionData(PD.action, struct ActionUse *)->ToolId))->Effect & Const_tcTOOL_OPENS)
+                                 {
+                                    lsSetObjectState(ActionData(PD.action, struct ActionUse *)->ItemId, Const_tcOPEN_CLOSE_BIT, 1);
+                                    plCorrectOpened((LSObject)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId), 1);
+                                 }
+
+                                 if (ActionData(PD.action, struct ActionUse *)->ToolId == Tool_Stechkarte)
+												tcRefreshTimeClock(PD.bldId, ActionData(PD.action, struct ActionUse *)->ItemId);
+                              }
+                              else
+                              {
+											if ((((LSObject)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId))->Type == Item_Fenster))
+                                 {
+												uword xpos, ypos;
+
+                                    lsWalkThroughWindow((LSObject)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId), livGetXPos(Planing_Name[i]), livGetYPos(Planing_Name[i]), &xpos, &ypos);
+                                    livSetPos(Planing_Name[i], xpos, ypos);
+
+                                    livRefreshAll();
+                                 }
+										}
+                           }
+                        }
+                        else
+                        {
+                           ulong state = lsGetObjectState(ActionData(PD.action, struct ActionUse *)->ItemId);
+
+									if (CHECK_STATE(state, Const_tcON_OFF))
+                           {
+                              lsSetObjectState(ActionData(PD.action, struct ActionUse *)->ItemId, Const_tcON_OFF, 0);   /* on setzen  */
+
+                              PD.changeCount--;
+
+                              if (plIgnoreLock(ActionData(PD.action, struct ActionUse *)->ItemId) == PLANING_POWER)
+                              {
+											lsSetSpotStatus(ActionData(PD.action, struct ActionUse *)->ItemId, LS_SPOT_ON);
+											lsShowAllSpots(PD.realTime, LS_ALL_VISIBLE_SPOTS);
+                              }
+                           }
+                           else
+                           {
+                              lsSetObjectState(ActionData(PD.action, struct ActionUse *)->ItemId, Const_tcON_OFF, 1);   /* off setzen */
+
+										PD.changeCount++;
+
+                              switch (plIgnoreLock(ActionData(PD.action, struct ActionUse *)->ItemId))
+                              {
+                                 case PLANING_ALARM_TOP3:
+                                    if (PD.alarmTimer)
+                                       PD.alarmTimer = min(PD.alarmTimer,PLANING_ALARM_TOP3);
+                                    else
+                                       PD.alarmTimer = PLANING_ALARM_TOP3;
+											break;
+
+                                 case PLANING_POWER:
+                                    lsSetSpotStatus(ActionData(PD.action, struct ActionUse *)->ItemId, LS_SPOT_OFF);
+												lsShowAllSpots(PD.realTime, LS_ALL_INVISIBLE_SPOTS);
+
+												#ifndef PLAN_IS_PERFECT
+                                    if (!(Search.EscapeBits & FAHN_ALARM_POWER) && tcAlarmByPowerLoss(ActionData(PD.action, struct ActionUse *)->ItemId))
+                                    {
+                                       Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_POWER;
+                                       Search.DeriTime   += PLANING_DERI_ALARM;
+                                       plSay ("PLAYER_POWER", i);
+                                       inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+												}
+                                    #endif
+                                 break;
+                              }
+                           }
+                        }
+
+                        plRefresh(ActionData(PD.action, struct ActionUse *)->ItemId);
+                        plDisplayInfo();
+                     }
+                  }
+               break;
+
+               case ACTION_TAKE:
+						if (i < BurglarsNr)
+                  {
+							PD.currLoudness[i] = PLANING_LOUDNESS_STD;
+                     Search.WorkTime[i]++;
+                     PD.unableToWork[i] = 0;
+
+                     if (ActionStarted(plSys))
+                        PD.changeCount++;
+
+							if (Ask(dbGetObject(ActionData(PD.action, struct ActionTake *)->ItemId), hasLoot(i), dbGetObject(ActionData(PD.action, struct ActionTake *)->LootId)) && plObjectInReach(i, ActionData(PD.action, struct ActionTake *)->ItemId))
+                     {
+                        lsSetObjectState(ActionData(PD.action, struct ActionTake *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+
+                        #ifndef PLAN_IS_PERFECT
+                        if (!(Search.EscapeBits & FAHN_ALARM_ALARM) && tcAlarmByTouch(ActionData(PD.action, struct ActionUse *)->ItemId))
+                        {
+                           Search.DeriTime   += PLANING_DERI_ALARM;
+                           Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_ALARM;
+									plSay ("PLAYER_ALARM", i);
+                           inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+                        }
+                        #endif
+
+                        if (ActionEnded(plSys))
+								{
+                           ulong newValue = GetP(dbGetObject(ActionData(PD.action, struct ActionTake *)->ItemId), hasLoot(i), dbGetObject(ActionData(PD.action, struct ActionTake *)->LootId));
+
+                           Planing_Weight[i] += ((Loot)dbGetObject(ActionData(PD.action, struct ActionTake *)->LootId))->Weight;
+                           Planing_Volume[i] += ((Loot)dbGetObject(ActionData(PD.action, struct ActionTake *)->LootId))->Volume;
+
+                           lsSetObjectState(ActionData(PD.action, struct ActionTake *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+
+                           if ((ActionData(PD.action, struct ActionTake *)->ItemId >= 9701) && (ActionData(PD.action, struct ActionTake *)->ItemId <= 9708))
+                           {
+                              lsRemLootBag(ActionData(PD.action, struct ActionTake *)->ItemId);
+                              Planing_Loot[ActionData(PD.action, struct ActionTake *)->ItemId-9701] = 0;
+									}
+                           else
+                           {
+                              if (CHECK_STATE(lsGetObjectState (ActionData(PD.action, struct ActionTake *)->ItemId), Const_tcTAKE_BIT))
+                              {
+                                 lsSetObjectState(ActionData(PD.action, struct ActionTake *)->ItemId, Const_tcACCESS_BIT, 0);
+                                 lsTurnObject((LSObject)dbGetObject(ActionData(PD.action, struct ActionTake *)->ItemId), LS_OBJECT_INVISIBLE, LS_NO_COLLISION);
+                              }
+									}
+
+                           UnSet(dbGetObject(ActionData(PD.action, struct ActionTake *)->ItemId), hasLoot(i), dbGetObject(ActionData(PD.action, struct ActionTake *)->LootId));
+
+                           if (Ask(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(ActionData(PD.action, struct ActionTake *)->LootId)))
+                           {
+                              ulong oldValue = GetP(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(ActionData(PD.action, struct ActionTake *)->LootId));
+
+                              SetP(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(ActionData(PD.action, struct ActionTake *)->LootId), oldValue + newValue);
+                           }
+									else
+                              SetP(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(ActionData(PD.action, struct ActionTake *)->LootId), newValue);
+
+                           plRefresh(ActionData(PD.action, struct ActionTake *)->ItemId);
+                           plDisplayInfo();
+                        }
+                     }
+                     else
+                     {
+								Search.DeriTime += PLANING_DERI_IGNORE_ACTION;
+                        IgnoreAction(plSys);
+
+                        plSay("PLAYER_IGNORE_3",i);
+								inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+                     }
+						}
+               break;
+
+               case ACTION_DROP:
+                  if (i < BurglarsNr)
+                  {
+                     PD.currLoudness[i] = PLANING_LOUDNESS_STD;
+							Search.WorkTime[i]++;
+                     PD.unableToWork[i] = 0;
+
+                     if (ActionStarted(plSys))
+								PD.changeCount++;
+
+                     if (Ask(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(ActionData(PD.action, struct ActionDrop *)->LootId)))
+                     {
+                        lsSetObjectState(ActionData(PD.action, struct ActionDrop *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+
+                        if (ActionEnded(plSys))
+                        {
+									ulong newValue = GetP(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(ActionData(PD.action, struct ActionDrop *)->LootId));
+
+                           Planing_Weight[i] -= ((Loot)dbGetObject(ActionData(PD.action, struct ActionDrop *)->LootId))->Weight;
+                           Planing_Volume[i] -= ((Loot)dbGetObject(ActionData(PD.action, struct ActionDrop *)->LootId))->Volume;
+
+                           lsSetObjectState(ActionData(PD.action, struct ActionDrop *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+
+                           if ((ActionData(PD.action, struct ActionDrop *)->ItemId >= 9701) && (ActionData(PD.action, struct ActionDrop *)->ItemId <= 9708))
+                           {
+                              lsAddLootBag(livGetXPos(Planing_Name[i]), livGetYPos(Planing_Name[i]), ActionData(PD.action, struct ActionDrop *)->ItemId-9700);
+                              Planing_Loot[ActionData(PD.action, struct ActionDrop *)->ItemId-9701] = 1;
+									}
+                           else
+                           {
+                              if (CHECK_STATE(lsGetObjectState (ActionData(PD.action, struct ActionTake *)->ItemId), Const_tcTAKE_BIT))
+                                 lsTurnObject((LSObject)dbGetObject (ActionData(PD.action, struct ActionDrop *)->ItemId), LS_OBJECT_VISIBLE, LS_COLLISION);
+                           }
+
+                           SetP(dbGetObject(ActionData(PD.action, struct ActionDrop *)->ItemId), hasLoot(i), dbGetObject(ActionData(PD.action, struct ActionDrop *)->LootId), newValue);
+                           UnSet(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(ActionData(PD.action, struct ActionDrop *)->LootId));
+
+                           plRefresh(ActionData(PD.action, struct ActionDrop *)->ItemId);
+                           plDisplayInfo();
+                        }
+							}
+                     else
+							{
+                        Search.DeriTime += PLANING_DERI_IGNORE_ACTION;
+                        IgnoreAction(plSys);
+                     }
+                  }
+               break;
+
+					case ACTION_OPEN:
+                  if (ActionStarted(plSys))
+                  {
+							PD.unableToWork[i] = 0;
+
+                     if (i >= BurglarsNr)
+                     {
+                        #ifndef PLAN_IS_PERFECT
+                        if (CHECK_STATE (lsGetObjectState(ActionData(PD.action, struct ActionOpen *)->ItemId), Const_tcOPEN_CLOSE_BIT))
+                        {
+                           if (!(Search.EscapeBits & FAHN_ALARM_GUARD))
+									{
+                              plSay ("PLAYER_GUARD_ALARM_3", i);
+                              inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+                              Search.DeriTime   += PLANING_DERI_ALARM;
+                              Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_GUARD;
+									}
+
+                           PD.guardKO[((Police)dbGetObject(OL_NR(GetNthNode (PersonsList, i))))->LivingID - BurglarsNr] = 3;
+
+                           break;
+                        }
+                        #endif
+							}
+                  }
+
+                  if ((i >= BurglarsNr) || plIgnoreLock(ActionData(PD.action, struct ActionOpen *)->ItemId) || CHECK_STATE(lsGetObjectState(ActionData(PD.action, struct ActionOpen *)->ItemId), Const_tcLOCK_UNLOCK_BIT))
+                  {
+                     if ((i >= BurglarsNr) || plIgnoreLock(ActionData(PD.action, struct ActionOpen *)->ItemId) || !CHECK_STATE(lsGetObjectState(ActionData(PD.action, struct ActionOpen *)->ItemId), Const_tcOPEN_CLOSE_BIT))
+                     {
+                        if (i < BurglarsNr)
+                        {
+									PD.currLoudness[i] = PLANING_LOUDNESS_OPEN_CLOSE;
+                           Search.WorkTime[i]++;
+                           lsSetObjectState(ActionData(PD.action, struct ActionOpen *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+
+									#ifndef PLAN_IS_PERFECT
+                           if (!(Search.EscapeBits & FAHN_ALARM_ALARM) && tcAlarmByTouch(ActionData(PD.action, struct ActionUse *)->ItemId))
+									{
+                              Search.DeriTime   += PLANING_DERI_ALARM;
+                              Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_ALARM;
+                              plSay("PLAYER_ALARM", i);
+                              inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+                           }
+                           #endif
+								}
+
+								if (ActionEnded(plSys))
+                        {
+                           if (i < BurglarsNr)
+                           {
+                              PD.changeCount++;
+                              lsSetObjectState(ActionData(PD.action, struct ActionOpen *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+									}
+
+									if ((((LSObject)dbGetObject(ActionData(PD.action, struct ActionOpen *)->ItemId))->Type == Item_WC) && (CalcRandomNr(0, 3) == 1))
+									{
+										sndPlayFX("wc.voc");
+									}
+
+									lsSetObjectState(ActionData(PD.action, struct ActionOpen *)->ItemId, Const_tcOPEN_CLOSE_BIT, 1);
+
+									plCorrectOpened((LSObject)dbGetObject(ActionData(PD.action, struct ActionOpen *)->ItemId), 1);
+
+                           plRefresh(ActionData(PD.action, struct ActionOpen *)->ItemId);
+                           plDisplayInfo();
+                        }
+                     }
+                     else
+                     {
+                        Search.DeriTime += PLANING_DERI_IGNORE_ACTION;
+                        IgnoreAction(plSys);
+
+								plSay("PLAYER_IGNORE_4",i);
+                        inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+                     }
+                  }
+                  else
+                     UnableToWork(i, ACTION_OPEN);
+               break;
+
+               case ACTION_CLOSE:
+						if (ActionStarted(plSys))
+                  {
+                     PD.unableToWork[i] = 0;
+
+							if (i >= BurglarsNr)
+                     {
+								#ifndef PLAN_IS_PERFECT
+                        if (!CHECK_STATE(lsGetObjectState(ActionData(PD.action, struct ActionOpen *)->ItemId), Const_tcOPEN_CLOSE_BIT))
+                        {
+                           if (!(Search.EscapeBits & FAHN_ALARM_GUARD))
+                           {
+                              plSay ("PLAYER_GUARD_ALARM_4", i);
+                              inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+										Search.DeriTime   += PLANING_DERI_ALARM;
+										Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_GUARD;
+                           }
+
+									PD.guardKO[((Police)dbGetObject(OL_NR(GetNthNode (PersonsList, i))))->LivingID - BurglarsNr] = 3;
+
+                           break;
+                        }
+                        #endif
+							}
+						}
+
+                  if ((i >= BurglarsNr) || plIgnoreLock(ActionData(PD.action, struct ActionClose *)->ItemId) || CHECK_STATE(lsGetObjectState(ActionData(PD.action, struct ActionOpen *)->ItemId), Const_tcLOCK_UNLOCK_BIT))
+                  {
+                     if ((i >= BurglarsNr) || plIgnoreLock(ActionData(PD.action, struct ActionClose *)->ItemId) || CHECK_STATE(lsGetObjectState(ActionData(PD.action, struct ActionClose *)->ItemId), Const_tcOPEN_CLOSE_BIT))
+                     {
+                        if (i < BurglarsNr)
+                        {
+                           PD.currLoudness[i] = PLANING_LOUDNESS_OPEN_CLOSE;
+                           Search.WorkTime[i]++;
+                           lsSetObjectState(ActionData(PD.action, struct ActionClose *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+
+                           #ifndef PLAN_IS_PERFECT
+									if (!(Search.EscapeBits & FAHN_ALARM_ALARM) && tcAlarmByTouch (ActionData(PD.action, struct ActionUse *)->ItemId))
+                           {
+                              Search.DeriTime   += PLANING_DERI_ALARM;
+                              Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_ALARM;
+                              plSay ("PLAYER_ALARM", i);
+                              inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+                           }
+                           #endif
+                        }
+
+                        if (ActionEnded(plSys))
+                        {
+                           if (i < BurglarsNr)
+									{
+                              PD.changeCount--;
+										lsSetObjectState(ActionData(PD.action, struct ActionClose *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+                           }
+
+                           lsSetObjectState(ActionData(PD.action, struct ActionClose *)->ItemId, Const_tcOPEN_CLOSE_BIT, 0);
+
+                           plCorrectOpened((LSObject)dbGetObject(ActionData(PD.action, struct ActionClose *)->ItemId), 0);
+
+									plRefresh(ActionData(PD.action, struct ActionClose *)->ItemId);
+                           plDisplayInfo();
+                        }
+                     }
+                     else
+                     {
+                        Search.DeriTime += PLANING_DERI_IGNORE_ACTION;
+                        IgnoreAction(plSys);
+
+                        plSay("PLAYER_IGNORE_5",i);
+								inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+                     }
+                  }
+                  else
+                     UnableToWork(i, ACTION_CLOSE);
+               break;
+
+               case ACTION_CONTROL:
+                  #ifndef PLAN_IS_PERFECT
+                  if (tcGuardChecksObject((LSObject)dbGetObject(ActionData(PD.action, struct ActionControl *)->ItemId)))
+						{
+							if (!(Search.EscapeBits & FAHN_ALARM_GUARD))
+							{
+								plSay("PLAYER_GUARD_ALARM_2", i);
+								inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+								Search.DeriTime   += PLANING_DERI_ALARM;
+								Search.EscapeBits |= FAHN_ALARM|FAHN_ALARM_GUARD;
+							}
+
+							PD.guardKO[((Police)dbGetObject(OL_NR(GetNthNode(PersonsList, i))))->LivingID - BurglarsNr] = 3;
+						}
+						#endif
+
+						if (((LSObject)dbGetObject(ActionData(PD.action, struct ActionUse *)->ItemId))->Type == Item_Stechuhr)
+							tcRefreshTimeClock(PD.bldId, ActionData(PD.action, struct ActionUse *)->ItemId);
+					break;
+				}
+			}
+			else
+			{
+				PD.handlerEnded[i] = 1;
+				livAnimate(Planing_Name[i], ANM_STAND, 0, 0);
+			}
+		}
+		else
+		{
+			PD.currLoudness[i] = PLANING_LOUDNESS_STD;
+
+			if ((PD.handlerEnded[i] >= 2) && (PD.handlerEnded[i] <= 30))
+			{
+				livAnimate(Planing_Name[i], ANM_ELEKTRO, 0, 0);
+				PD.handlerEnded[i]++;
+			}
+
+			if (PD.handlerEnded[i] == 31)
+			{
+				plSay("PLAYER_VERLETZUNG", i);
+				inpSetWaitTicks(INP_AS_FAST_AS_POSSIBLE);
+				PD.handlerEnded[i]++;
+			}
+
+			if (PD.handlerEnded[i] == 32)
+				livAnimate(Planing_Name[i], ANM_DUSEL, 0, 0);
+      }
+   }
+
+   if (DoScrolling)
+      lsScrollLandScape((ubyte)-1);
+
+	livDoAnims((AnimCounter++) % 2, 1);
+
+   PD.ende = 1;
+
+   for (i = 0; i < PLANING_NR_PERSONS; i++)
+   {
+      if (!PD.handlerEnded[i])
+         PD.ende = 0;
+	}
+
+   if (PD.ende)
+      SetMenuTimeOutFunc (NULL);
+}
+
+long plPlayer(ulong objId , ulong actionTime, ubyte (*actionFunc)(ulong, ulong))
+{
+   FILE *fh       = NULL;
+   LIST *menu     = txtGoKey(PLAN_TXT, "PLAYER_MENU"), *l;
+   ubyte activ    = 0, i;
+   ulong timeLeft = 0, bitset, choice1, choice2;
+   long  ret      = 0;
+
+   plPrepareSys(0L, objId, PLANING_INIT_PERSONSLIST|PLANING_HANDLER_ADD|PLANING_HANDLER_OPEN|PLANING_GUARDS_LOAD|PLANING_HANDLER_SET);
+	plPrepareGfx(objId, LS_COLL_NORMAL, PLANING_GFX_LANDSCAPE|PLANING_GFX_SPRITES|PLANING_GFX_BACKGROUND);
+   plPrepareRel();
+
+   plPrepareData();
+
+   AnimCounter = 0;
+
+   if ((activ = plOpen(objId, PLANING_OPEN_READ_BURGLARY, &fh)) == PLANING_OPEN_OK)
+	{
+      if (!(l = LoadSystem(fh, plSys)))
+      {
+         if (!(l = plLoadTools(fh)))
+         {
+            PD.ende        = 0;
+				PD.timer       = 0L;
+				PD.realTime    = 0L;
+				PD.badPlaning  = 0;
+				PD.mood        = plGetMood (0L);
+				PD.bldId       = objId;
+				PD.bldObj      = (Building)dbGetObject (objId);
+				PD.changeCount = 0;
+				PD.totalCount  = lsGetObjectCount ();
+				PD.patrolCount = 0;
+				PD.alarmTimer  = 0L;
+				PD.isItDark    = ((LSArea)dbGetObject(lsGetActivAreaID()))->uch_Darkness;
+				PD.sndState		= 1;
+				PD.actionTime  = actionTime;
+            PD.actionFunc  = actionFunc;
+
+            /* Init data & search structure */
+            for (i = 0; i < PLANING_NR_PERSONS; i++)
+				{
+               PD.handlerEnded[i] = 1;
+					PD.currLoudness[i] = 0;
+					PD.unableToWork[i] = 0;
+
+               Search.Exhaust[i]  = 0;
+
+               Search.WalkTime[i] = 0;
+               Search.WaitTime[i] = 0;
+               Search.WorkTime[i] = 0;
+               Search.KillTime[i] = 0;
+
+               Search.SpotTouchCount[i] = 0;
+				}
+
+            /* Init activ handler & load them */
+            for (i = 0; i < PLANING_NR_PERSONS; i++)
+            {
+               Search.GuyXPos [i] = -1;
+               Search.GuyYPos [i] = -1;
+            }
+
+				PD.maxTimer = 0L;
+
+            for (i = 0; i < BurglarsNr; i++)
+            {
+               PD.handlerEnded[i] = 0;
+               LoadHandler(fh, plSys, OL_NR(GetNthNode(PersonsList, i)));
+
+					PD.maxTimer = max(GetMaxTimer(plSys), PD.maxTimer);
+            }
+
+            for (i = 0; i < PLANING_NR_GUARDS; i++)
+               PD.guardKO[i] = 0;
+
+				/* Init search structure */
+            Search.BuildingId          = objId;
+
+            Search.TimeOfBurglary      = 0;
+				Search.TimeOfAlarm         = 0;
+
+				Search.DeriTime            = 0;
+				Search.CallValue           = 0;
+				Search.CallCount           = 0;
+				Search.WarningCount        = 0;
+				Search.EscapeBits          = 0L;
+
+				if (PD.bldId == Building_Starford_Kaserne)
+					sndPlaySound (PLANING_MUSIC_PLAYER_BEGIN_KASERNE, 0L);
+				else
+					sndPlaySound (PLANING_MUSIC_PLAYER_BEGIN_STD, 0L);
+
+ 
+				if (bProfidisk)
+				{
+					if (objId == Building_Postzug)
+					{
+						Environment env = (Environment)dbGetObject(Environment_TheClou);
+
+						env->PostzugDone = 1;
+					}
+				}
+
+				/* start main loop */
+            SetMenuTimeOutFunc(plPlayerAction);
+
+            while (!PD.ende)
+            {
+               bitset = BIT(PLANING_PLAYER_ESCAPE);
+
+               if ((CurrentPerson < BurglarsNr) ? BurglarsNr > 1 : PersonsNr > 1)
+                  bitset += BIT(PLANING_PLAYER_PERSON_CHANGE);
+
+               if (has(Person_Matt_Stuvysunt, Tool_Funkgeraet))
+                  bitset += BIT(PLANING_PLAYER_RADIO_ALL)+
+                            BIT(PLANING_PLAYER_RADIO_ONE);
+
+					plDisplayTimer(PD.realTime, 1);
+					plDisplayInfo();
+
+					ShowMenuBackground();
+
+               inpTurnFunctionKey(0);
+               inpTurnESC(0);
+
+					activ = Menu(menu, bitset, activ, NULL, INP_AS_FAST_AS_POSSIBLE);
+
+               inpTurnFunctionKey(1);
+               inpTurnESC(1);
+
+               switch (activ)
+					{
+                  case PLANING_PLAYER_PERSON_CHANGE:
+                     plMessage("CHANGE_PERSON_2", PLANING_MSG_REFRESH);
+
+                     if (GamePlayMode & GP_GUARD_DESIGN)
+                     {
+                        if (PersonsNr > 2)
+                           choice1 = (ulong)Bubble(PersonsList, CurrentPerson, NULL, 0L);
+                        else
+                           choice1 = ((CurrentPerson) ? 0L : 1L);
+                     }
+                     else
+                     {
+                        if (BurglarsNr > 2)
+                           choice1 = (ulong)Bubble(BurglarsList, CurrentPerson, NULL, 0L);
+								else
+                           choice1 = ((CurrentPerson) ? 0L : 1L);
+                     }
+
+                     if (choice1 != GET_OUT)
+                     {
+                        if (livWhereIs(Planing_Name[choice1]) != lsGetActivAreaID())
+                        {
+									lsDoneActivArea(livWhereIs(Planing_Name[choice1]));
+                           lsInitActivArea(livWhereIs(Planing_Name[choice1]), livGetXPos(Planing_Name[choice1]), livGetYPos(Planing_Name[choice1]), Planing_Name[choice1]);
+                        }
+
+                        plPrepareSys(choice1, 0, PLANING_HANDLER_SET);
+                        lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+                     }
+						break;
+
+						case PLANING_PLAYER_RADIO_ALL:
+                     l = txtGoKey(PLAN_TXT, "PLAYER_RADIO_1");
+
+                     plMessage("PLAYER_RADIO_ALL", PLANING_MSG_REFRESH);
+
+                     SetPictID(((Person)dbGetObject(OL_NR(GetNthNode(BurglarsList, 0))))->PictID);
+                     SetBubbleType(RADIO_BUBBLE);
+
+                     if ((choice1 = Bubble(l, 0, NULL, 0L)) != GET_OUT)
+                     {
+                        if (choice1 < 2)
+                        {
+                           tcCalcCallValue(choice1, PD.realTime, 0L);
+									Search.CallCount++;
+                        }
+                     }
+
+                     RemoveList(l);
+                     l = NULL;
+						break;
+
+                  case PLANING_PLAYER_RADIO_ONE:
+                     if (BurglarsNr > 2)
+                     {
+								char exp[TXT_KEY_LENGTH];
+                        NODE *node, *help;
+
+                        plMessage("RADIO_1", PLANING_MSG_REFRESH);
+								SetPictID(((Person)dbGetObject(OL_NR(GetNthNode(BurglarsList, 0))))->PictID);
+								node = (NODE*)UnLink(BurglarsList, OL_NAME(GetNthNode(BurglarsList, 0)), (void **)&help);
+
+                        txtGetFirstLine(PLAN_TXT, "EXPAND_RADIO", exp);
+                        ExpandObjectList(BurglarsList, exp);
+
+                        choice1 = Bubble(BurglarsList, 0, NULL, 0L);
+
+								if (ChoiceOk(choice1, GET_OUT, BurglarsList))
+                           choice1 = OL_NR(GetNthNode(BurglarsList, choice1));
+                        else
+                           choice1 = GET_OUT;
+
+                        Link(BurglarsList, node, help);
+                        dbRemObjectNode(BurglarsList, 0L);
+                     }
+                     else
+								choice1 = CurrentPerson ? OL_NR(GetNthNode(BurglarsList, 0)) : OL_NR(GetNthNode(BurglarsList, 1));
+
+                     if (choice1 != GET_OUT)
+                     {
+                        l = txtGoKey(PLAN_TXT, "PLAYER_RADIO_2");
+                        SetPictID(((Person)dbGetObject(OL_NR(GetNthNode(BurglarsList, 0))))->PictID);
+                        SetBubbleType(RADIO_BUBBLE);
+
+                        if ((choice2 = (ulong)Bubble(l, 0, NULL, 0L)) != GET_OUT)
+                        {
+                           if (choice2 < 3)
+                           {
+                              tcCalcCallValue(choice2 + 2, PD.realTime, choice1);
+										Search.CallCount++;
+                           }
+                        }
+
+                        RemoveList(l);
+                        l = NULL;
+                     }
+						break;
+
+                  case PLANING_PLAYER_ESCAPE:
+                     Search.EscapeBits |= FAHN_ESCAPE;
+
+                     for (i = 0; i < PLANING_NR_PERSONS; i++)
+                        PD.handlerEnded[i] = 1;
+                  break;
+
+                  default:
+                     activ = 0;
+                  break;
+
+               }
+            }
+
+				SetMenuTimeOutFunc(NULL);
+            inpSetWaitTicks(0);  /* normales Ausma� */
+
+            Search.LastAreaId     = lsGetActivAreaID();
+            Search.TimeOfBurglary = PD.realTime;
+
+            if (!(Search.EscapeBits & FAHN_SURROUNDED) && !(Search.EscapeBits & FAHN_ESCAPE) && !plLivingsPosAtCar(objId))
+            {
+               plSay("PLAYER_NOT_FINISHED", 0);
+					Search.EscapeBits |= FAHN_ESCAPE;
+            }
+
+            for (i = 0; i < PersonsNr; i++)
+					livTurn(Planing_Name[i], LIV_DISABLED); /* alle Sprites ausschalten! */
+
+            for (i = 0; i < BurglarsNr; i++)
+				{
+               struct ObjectNode *n;
+
+               Search.GuyXPos[i] = livGetXPos(Planing_Name[i]);
+               Search.GuyYPos[i] = livGetYPos(Planing_Name[i]);
+
+					SetObjectListAttr(OLF_NORMAL, 0L);
+               AskAll(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, BuildObjectList);
+
+               for (n = (struct ObjectNode *)LIST_HEAD(ObjectList); NODE_SUCC(n); n = (struct ObjectNode *)NODE_SUCC(n))
+               {
+                  if (has(Person_Matt_Stuvysunt, OL_NR(n)))
+                  {
+                     ulong oldValue = hasGet(Person_Matt_Stuvysunt, OL_NR(n));
+                     ulong newValue = GetP(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(OL_NR(n)));
+
+                     hasSetP(Person_Matt_Stuvysunt, OL_NR(n), oldValue + newValue);
+                  }
+                  else
+                  {
+                     ulong newValue = GetP(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(OL_NR(n)));
+
+                     hasSetP(Person_Matt_Stuvysunt, OL_NR(n), newValue);
+                  }
+               }
+            }
+
+            if (plCarTooFull())
+            {
+					plSay("PLAYER_LEAVE_LOOTS_1", 0);
+
+               while (plCarTooFull())
+               {
+                  ulong choice;
+
+                  hasAll(Person_Matt_Stuvysunt, OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_NORMAL, Object_Loot);
+
+                  if ((choice = Bubble(ObjectList,0,0L,0L)) != GET_OUT)
+							hasUnSet(Person_Matt_Stuvysunt, OL_NR(GetNthNode(ObjectList, (ulong)choice)));
+                  else
+                     plSay("PLAYER_LEAVE_LOOTS_2", 0);
+               }
+            }
+
+            if ((!(Search.EscapeBits & FAHN_ALARM)) && (!(Search.EscapeBits & FAHN_QUIET_ALARM)) && (!(Search.EscapeBits & FAHN_ESCAPE)))
+					Search.EscapeBits |= FAHN_STD_ESCAPE;
+
+				lsSetViewPort (0, 0);
+
+            timeLeft = tcEscapeFromBuilding(Search.EscapeBits);
+
+            ret = 1;
+         }
+      }
+
+      if (l)
+      {
+         Bubble(l, 0, NULL, 0L);
+         RemoveList(l);
+      }
+
+      dskClose(fh);
+   }
+   else
+   {
+      if (activ == PLANING_OPEN_ERR_NO_PLAN)
+         plMessage("NO_PLAN", PLANING_MSG_REFRESH|PLANING_MSG_WAIT);
+	}
+
+   if (Search.BuildingId == Building_Starford_Kaserne)
+      Search.KaserneOk = tcIsLastBurglaryOk();
+
+   plUnprepareRel();
+   plUnprepareGfx();
+   plUnprepareSys();
+
+   RemoveList(menu);
+
+   if (ret)
+        return tcEscapeByCar(Search.EscapeBits, timeLeft);
+
+   return 0;
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/player.h b/cosp-0.6-src/ClouRemake/ClouRemake/planing/player.h
new file mode 100644
index 0000000..9b7fc78
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/player.h
@@ -0,0 +1,55 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PLANING_PLAYER
+#define MODULE_PLANING_PLAYER
+
+#include <stdio.h>
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_PLANING_PLANER
+#include "planing\planer.h"
+#endif
+
+long plPlayer(ulong objId , ulong actionTime, ubyte (*actionFunc)(ulong, ulong));
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/prepare.c b/cosp-0.6-src/ClouRemake/ClouRemake/planing/prepare.c
new file mode 100644
index 0000000..f3758e8
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/prepare.c
@@ -0,0 +1,301 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "planing\prepare.h"
+
+
+LIST *PersonsList  = NULL;
+LIST *BurglarsList = NULL;
+
+ubyte PersonsNr = 0;
+ubyte BurglarsNr = 0;
+ulong CurrentPerson = 0;
+
+ulong Planing_Weight[PLANING_NR_PERSONS];
+ulong Planing_Volume[PLANING_NR_PERSONS];
+
+ubyte Planing_Loot[PLANING_NR_LOOTS];
+ubyte Planing_Guard[PLANING_NR_GUARDS];
+
+char  Planing_Name[PLANING_NR_PERSONS + PLANING_NR_GUARDS][20];
+
+LIST *Planing_GuardRoomList[PLANING_NR_GUARDS];
+
+ulong Planing_BldId;
+
+
+// Handler functions
+void plBuildHandler(NODE *n)
+{
+   ulong flags = SHF_NORMAL;
+
+   if (OL_TYPE(n) == Object_Police)
+      flags |= SHF_AUTOREVERS;
+
+   InitHandler(plSys, OL_NR(n), flags);
+}
+
+void plClearHandler(NODE *n)
+{
+   ClearHandler(plSys, OL_NR(n));
+}
+
+void plCloseHandler(NODE *n)
+{
+   CloseHandler(plSys, OL_NR(n));
+}
+
+// Preparation & Unpreparation functions
+void plPrepareData(void)
+{
+   ubyte i;
+
+   for (i = 0; i < PLANING_NR_LOOTS; i++)
+      Planing_Loot[i] = 0;
+
+   for (i = 0; i < PLANING_NR_PERSONS; i++)
+      Planing_Weight[i] = 0;
+
+   for (i = 0; i < PLANING_NR_PERSONS; i++)
+      Planing_Volume[i] = 0;
+
+   for (i = 0; i < PLANING_NR_GUARDS; i++)
+      Planing_Guard[i] = 0;
+}
+
+void plPrepareSprite(ulong livNr, ulong areaId)
+{
+   LSArea activArea = (LSArea)dbGetObject(areaId);
+   uword  xpos, ypos;
+
+   livLivesInArea(Planing_Name[livNr], areaId);
+
+   if (livNr < BurglarsNr)
+   {
+      switch (livNr)
+      {
+         case 0:
+            xpos = activArea->us_StartX0;
+            ypos = activArea->us_StartY0;
+         break;
+
+         case 1:
+            xpos = activArea->us_StartX1;
+            ypos = activArea->us_StartY1;
+         break;
+
+			case 2:
+            xpos = activArea->us_StartX2;
+            ypos = activArea->us_StartY2;
+         break;
+
+         case 3:
+            xpos = activArea->us_StartX3;
+            ypos = activArea->us_StartY3;
+         break;
+      }
+   }
+   else
+   {
+      switch (livNr + (PLANING_NR_PERSONS - BurglarsNr))
+      {
+         case 4:
+         case 6:
+				xpos = activArea->us_StartX4 - 4;
+				ypos = activArea->us_StartY4 + 11;
+			break;
+
+			case 5:
+			case 7:
+				xpos = activArea->us_StartX5 - 4;
+				ypos = activArea->us_StartY5 + 11;
+         break;
+      }
+   }
+
+	livSetPos(Planing_Name[livNr], xpos + 9, ypos -18);
+
+   if (livNr < BurglarsNr)
+      livAnimate(Planing_Name[livNr], ANM_STAND, 0, 0);
+   else
+   {
+		livAnimate(Planing_Name[livNr], ANM_MOVE_DOWN, 0, 0);
+
+      Planing_GuardRoomList[livNr - BurglarsNr] = lsGetRoomsOfArea(areaId);
+   }
+}
+
+void plPrepareGfx(ulong objId, ubyte landscapMode, ubyte prepareMode)
+{
+	if (prepareMode & PLANING_GFX_LANDSCAPE)
+		lsInitLandScape(objId, landscapMode);
+
+	if (prepareMode & PLANING_GFX_BACKGROUND)
+	{
+		CurrentBackground = BGD_PLANUNG;
+		ShowMenuBackground ();
+
+		// um die Menufarben auch zu blenden:
+		gfxShow(CurrentBackground, GFX_NO_REFRESH|GFX_BLEND_UP, 5, -1, -1);
+	}
+
+	if (prepareMode & PLANING_GFX_SPRITES)
+	{
+		ulong i;
+
+		for (i = 0; i < PersonsNr; i++)
+		{
+			if (dbIsObject(OL_NR(GetNthNode(PersonsList, i)), Object_Person))
+				plPrepareSprite(i, lsGetActivAreaID());
+			else
+			{
+				((Police)dbGetObject(OL_NR(GetNthNode(PersonsList, i))))->LivingID = i;
+				plPrepareSprite(i, isGuardedbyGet(objId, OL_NR(GetNthNode(PersonsList, i))));
+			}
+		}
+
+		lsSetActivLiving(Planing_Name[CurrentPerson], (uword)-1, (uword)-1);
+	}
+}
+
+void plUnprepareGfx(void)
+{
+	ubyte i;
+
+	gfxShow(CurrentBackground, GFX_NO_REFRESH|GFX_FADE_OUT, 5, -1, -1);
+
+	gfxClearArea(u_wrp); // MOD:
+
+	for (i = BurglarsNr; i < PersonsNr; i++)
+		 RemoveList(Planing_GuardRoomList[i - BurglarsNr]);
+
+	lsDoneLandScape();
+
+	gfxShow(CurrentBackground, GFX_NO_REFRESH|GFX_BLEND_UP, 0, -1, -1);
+}
+
+void plPrepareRel(void)
+{
+	LIST *areas;
+	NODE *n;
+   LSArea area;
+
+   consistsOfAll(Planing_BldId, OLF_PRIVATE_LIST, Object_LSArea);
+   areas = ObjectListPrivate;
+
+   for (n = (NODE *)LIST_HEAD(areas); NODE_SUCC(n); n = (NODE *)NODE_SUCC(n))
+   {
+      area = (LSArea)OL_DATA(n);
+
+      if (!CloneRelation(area->ul_ObjectBaseNr + REL_HAS_LOOT_OFFSET, hasLoot_Clone_RelId))
+			NewErrorMsg(No_Mem, __FILE__, __func__, 0);
+   }
+
+   RemoveList(areas);
+
+   if (!AddRelation(take_RelId))
+		NewErrorMsg(No_Mem, __FILE__, __func__, 0);
+}
+
+void plUnprepareRel(void)
+{
+   RemRelation(take_RelId);
+   RemRelation(hasLoot_Clone_RelId);
+}
+
+void plPrepareNames(void)
+{
+   ubyte i;
+
+   for (i = 0; i < PersonsNr; i++)
+   {
+     if (dbIsObject(OL_NR(GetNthNode(PersonsList, i)), Object_Person))
+        sprintf(Planing_Name[i], "Person_%d", i + 1);
+     else
+        sprintf(Planing_Name[i], "Police_%d", i + 1 + (PLANING_NR_PERSONS - BurglarsNr));
+   }
+}
+
+void plPrepareSys(ulong currPer, ulong objId, ubyte sysMode)
+{
+   CurrentPerson = currPer;
+
+   if (objId)
+      Planing_BldId = objId;
+
+   if (sysMode & PLANING_INIT_PERSONSLIST)
+   {
+      if (PersonsList)
+         RemoveList(PersonsList);
+
+		if (BurglarsList)
+         RemoveList(BurglarsList);
+
+      joined_byAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Person);
+      PersonsList = ObjectListPrivate;
+
+      joined_byAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Person);
+		BurglarsList = ObjectListPrivate;
+
+		dbSortObjectList(&PersonsList, dbStdCompareObjects);
+      dbSortObjectList(&BurglarsList, dbStdCompareObjects);
+
+      PersonsNr  = GetNrOfNodes(PersonsList);
+      BurglarsNr = GetNrOfNodes(BurglarsList);
+
+      plPrepareNames();
+   }
+
+   if (sysMode & PLANING_HANDLER_ADD)
+   {
+      if (grdAddToList(objId, PersonsList))
+      {
+         dbSortObjectList(&PersonsList, dbStdCompareObjects);
+
+         PersonsNr = GetNrOfNodes(PersonsList);
+
+         plPrepareNames();
+      }
+   }
+
+   if (sysMode & PLANING_HANDLER_CLEAR)
+		foreach(BurglarsList, (void (*)(void *))plClearHandler);
+
+	if (sysMode & PLANING_HANDLER_CLOSE)
+		foreach(PersonsList, (void (*)(void *))plCloseHandler);
+
+	if (sysMode & PLANING_HANDLER_OPEN)
+		foreach(PersonsList, (void (*)(void *))plBuildHandler);
+
+	if ((sysMode & PLANING_GUARDS_LOAD) && (PersonsNr > BurglarsNr) && !(GamePlayMode & GP_LEVEL_DESIGN))
+	{
+		FILE *fh = NULL;
+
+		startsWithAll(objId, OLF_NORMAL, Object_LSArea);
+
+		if (grdInit(&fh, "r", Planing_BldId, OL_NR(GetNthNode (ObjectList, 0))))
+			grdDo(fh, plSys, PersonsList, BurglarsNr, PersonsNr, GUARDS_DO_LOAD);
+
+		grdDone(fh);
+	}
+
+	if (sysMode & PLANING_HANDLER_SET)
+		SetActivHandler(plSys, OL_NR(GetNthNode(PersonsList, CurrentPerson)));
+}
+
+void plUnprepareSys (void)
+{
+   plPrepareSys(0, 0, PLANING_HANDLER_CLOSE);
+
+   if (PersonsList)
+      RemoveList(PersonsList);
+
+   if (BurglarsList)
+      RemoveList(BurglarsList);
+
+   PersonsList  = NULL;
+   BurglarsList = NULL;
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/prepare.h b/cosp-0.6-src/ClouRemake/ClouRemake/planing/prepare.h
new file mode 100644
index 0000000..71ead5f
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/prepare.h
@@ -0,0 +1,115 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PLANING_PREPARE
+#define MODULE_PLANING_PREPARE
+
+#include <stdio.h>
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_PLANING_PLANER
+#include "planing\planer.h"
+#endif
+
+
+// Gfx prepare modes
+#define PLANING_GFX_LANDSCAPE  1L<<0
+#define PLANING_GFX_SPRITES    1L<<1
+#define PLANING_GFX_BACKGROUND 1L<<2
+
+// Sys modes
+#define PLANING_INIT_PERSONSLIST    1L<<0
+#define PLANING_HANDLER_OPEN        1L<<1
+#define PLANING_HANDLER_CLOSE       1L<<2
+#define PLANING_HANDLER_CLEAR       1L<<3
+#define PLANING_HANDLER_SET         1L<<4
+#define PLANING_HANDLER_ADD         1L<<5
+#define PLANING_GUARDS_LOAD         1L<<6
+
+// Counts
+#define PLANING_NR_PERSONS          4
+#define PLANING_NR_GUARDS           4
+#define PLANING_NR_LOOTS            8
+#define PLANING_NR_PLANS            NRBLINES-1
+
+// getting correct has loot relation
+#define hasLoot(current)            (((LSArea)dbGetObject(livWhereIs(Planing_Name[current])))->ul_ObjectBaseNr + REL_HAS_LOOT_OFFSET)
+
+
+extern LIST *PersonsList;
+extern LIST *BurglarsList;
+
+extern ubyte PersonsNr;
+extern ubyte BurglarsNr;
+extern ulong CurrentPerson;
+
+extern ulong Planing_Weight[PLANING_NR_PERSONS];
+extern ulong Planing_Volume[PLANING_NR_PERSONS];
+
+extern ubyte Planing_Loot[PLANING_NR_LOOTS];
+extern ubyte Planing_Guard[PLANING_NR_GUARDS];
+
+extern char Planing_Name[PLANING_NR_PERSONS + PLANING_NR_GUARDS][20];
+
+extern LIST *Planing_GuardRoomList[PLANING_NR_GUARDS];
+
+extern ulong Planing_BldId;
+
+
+
+void plBuildHandler(NODE *n);
+void plClearHandler(NODE *n);
+void plCloseHandler(NODE *n);
+
+void plPrepareData(void);
+void plPrepareSprite(ulong livNr, ulong areaId);
+void plPrepareNames(void);
+
+void plPrepareGfx(ulong objId, ubyte landscapMode, ubyte prepareMode);
+void plPrepareRel(void);
+void plPrepareSys(ulong currPer, ulong objId, ubyte sysMode);
+
+void plUnprepareGfx(void);
+void plUnprepareRel(void);
+void plUnprepareSys(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/support.c b/cosp-0.6-src/ClouRemake/ClouRemake/planing/support.c
new file mode 100644
index 0000000..36e8074
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/support.c
@@ -0,0 +1,288 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "planing\support.h"
+
+
+// loot support
+ulong plGetNextLoot(void)
+{
+   ubyte i;
+
+   for (i = 0; i < PLANING_NR_LOOTS; i++)
+   {
+      if (!Planing_Loot[i])
+      {
+         Planing_Loot[i] = 1;
+         return lsAddLootBag(livGetXPos(Planing_Name[CurrentPerson]), livGetYPos(Planing_Name[CurrentPerson])+5, i+1);
+      }
+   }
+
+   return 0L;
+}
+
+// check support
+ubyte plLivingsPosAtCar(ulong bldId)
+{
+   Building bldObj = (Building)dbGetObject(bldId);
+   uword xpos, ypos, carxpos, carypos;
+   ubyte i, atCar = 1;
+
+   carxpos = bldObj->CarXPos + 8;
+   carypos = bldObj->CarYPos + 8;
+
+   startsWithAll(bldId, OLF_NORMAL, Object_LSArea);
+
+	for (i = 0; i < BurglarsNr; i++)
+   {
+      xpos = livGetXPos(Planing_Name[i]);
+      ypos = livGetYPos(Planing_Name[i]);
+
+      if (livWhereIs(Planing_Name[i]) != OL_NR(LIST_HEAD(ObjectList)))
+      {
+         atCar = 0;
+         break;
+      }
+
+      if (((xpos < (carxpos - PLANING_AREA_CAR)) || (xpos > (carxpos + PLANING_AREA_CAR))) && ((ypos < (carypos - PLANING_AREA_CAR)) || (ypos > (carypos + PLANING_AREA_CAR))))
+      {
+         atCar = 0;
+         break;
+      }
+   }
+
+   return atCar;
+}
+
+ubyte plAllInCar(ulong bldId)
+{
+   ubyte maxPerson = 0, i, ret = 1;
+   ulong maxTimer = 0L, oldTimer = CurrentTimer(plSys), realCurrentPerson = CurrentPerson;
+
+   for (i = 0; i < BurglarsNr; i++)
+   {
+      SetActivHandler(plSys, OL_NR(GetNthNode(PersonsList, i)));
+      if (maxTimer < GetMaxTimer(plSys))
+      {
+         maxTimer  = GetMaxTimer(plSys);
+         maxPerson = i;
+      }
+   }
+
+   SetActivHandler(plSys, OL_NR(GetNthNode(PersonsList, maxPerson)));
+
+   if (maxPerson != realCurrentPerson)
+   {
+      SetActivHandler(plSys, OL_NR(GetNthNode(PersonsList, maxPerson)));
+      plMessage("PERSON_NOTES", PLANING_MSG_REFRESH);
+      plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), GetMaxTimer(plSys) - oldTimer, 1);
+   }
+
+   if (!plLivingsPosAtCar(bldId))
+      ret = 0;
+
+   CurrentPerson = realCurrentPerson;
+
+   if (maxPerson != realCurrentPerson)
+   {
+      SetActivHandler(plSys, OL_NR(GetNthNode(PersonsList, CurrentPerson)));
+      plMessage("PERSON_NOTES", PLANING_MSG_REFRESH);
+      plSync(PLANING_ANIMATE_NO, GetMaxTimer(plSys), maxTimer - GetMaxTimer(plSys), 0);
+   }
+
+   return ret;
+}
+
+ubyte plIsStair(ulong objId)
+{
+   return (ubyte)((((LSObject)dbGetObject(objId))->Type == Item_Treppe));
+}
+
+// special items support
+void plCorrectOpened(LSObject obj, ubyte open)
+{
+   switch (obj->Type)
+   {
+		case Item_Holztuer:
+      case Item_Stahltuer:
+      case Item_Tresorraum:
+      case Item_Mauertor:
+         if (open)
+            lsTurnObject(obj, LS_OBJECT_INVISIBLE, LS_NO_COLLISION);
+         else
+            lsTurnObject(obj, LS_OBJECT_VISIBLE, LS_COLLISION);
+
+         livRefreshAll();
+      break;
+   }
+}
+
+ubyte plIgnoreLock(ulong objId)
+{
+	ubyte back = 0;
+
+	switch (((LSObject)dbGetObject(objId))->Type)
+	{
+		case Item_Alarmanlage_Z3:
+			  back = PLANING_ALARM_Z3;
+		break;
+
+		case Item_Alarmanlage_X3:
+			  back = PLANING_ALARM_X5;
+		break;
+
+		case Item_Alarmanlage_Top:
+			  back = PLANING_ALARM_TOP3;
+		break;
+
+		case Item_Steuerkasten:
+			  back = PLANING_POWER;
+		break;
+	}
+
+	return back;
+}
+
+// livings support
+void plMove(ulong current, ubyte direction)
+{
+   switch (direction)
+   {
+		case DIRECTION_LEFT:
+         livAnimate(Planing_Name[current], ANM_MOVE_LEFT, -1*LS_STD_SCROLL_SPEED, 0);
+      break;
+
+      case DIRECTION_RIGHT:
+         livAnimate(Planing_Name[current], ANM_MOVE_RIGHT, 1*LS_STD_SCROLL_SPEED, 0);
+      break;
+
+      case DIRECTION_UP:
+         livAnimate(Planing_Name[current], ANM_MOVE_UP, 0, -1*LS_STD_SCROLL_SPEED);
+      break;
+
+      case DIRECTION_DOWN:
+         livAnimate(Planing_Name[current], ANM_MOVE_DOWN, 0, 1*LS_STD_SCROLL_SPEED);
+      break;
+   }
+}
+
+void plWork (ulong current)
+{
+   switch (livGetViewDirection(Planing_Name[current]))
+   {
+      case ANM_MOVE_LEFT:
+         livAnimate(Planing_Name[current], ANM_WORK_LEFT, 0, 0);
+      break;
+
+      case ANM_MOVE_RIGHT:
+         livAnimate(Planing_Name[current], ANM_WORK_RIGHT, 0, 0);
+      break;
+
+      case ANM_MOVE_UP:
+         livAnimate(Planing_Name[current], ANM_WORK_UP, 0, 0);
+      break;
+
+      case ANM_MOVE_DOWN:
+         livAnimate(Planing_Name[current], ANM_WORK_DOWN, 0, 0);
+      break;
+   }
+}
+
+LIST *plGetObjectsList(ulong current, ubyte addLootBags)
+{
+   LIST *list = NULL;
+   ulong areaId = livWhereIs(Planing_Name[current]), oldAreaId;
+
+	oldAreaId = lsGetCurrObjectRetrieval();
+   lsSetObjectRetrievalList(areaId);
+
+	switch (livGetViewDirection(Planing_Name[current]))
+   {
+		case ANM_MOVE_LEFT:
+			list = lsGetObjectsByList(livGetXPos(Planing_Name[current])-9,
+											  livGetYPos(Planing_Name[current])+2,
+											  14, 12, 1, addLootBags);
+		break;
+
+		case ANM_MOVE_RIGHT:
+			list = lsGetObjectsByList(livGetXPos(Planing_Name[current])+9,
+											  livGetYPos(Planing_Name[current])+2,
+											  14, 12, 1, addLootBags);
+		break;
+
+		case ANM_MOVE_UP:
+			list = lsGetObjectsByList(livGetXPos(Planing_Name[current])+2,
+											  livGetYPos(Planing_Name[current])-9,
+											  12, 14, 1, addLootBags);
+		break;
+
+		case ANM_MOVE_DOWN:
+			list = lsGetObjectsByList(livGetXPos(Planing_Name[current])+2,
+											  livGetYPos(Planing_Name[current])+9,
+											  12, 14, 1, addLootBags);
+		break;
+	}
+
+	lsSetObjectRetrievalList(oldAreaId);
+	return list;
+}
+
+void plInsertGuard(LIST *list, ulong current, ulong guard)
+{
+	switch (livGetViewDirection(Planing_Name[current]))
+	{
+		case ANM_MOVE_LEFT:
+			tcInsertGuard(list, Planing_GuardRoomList[guard - BurglarsNr],
+							  livGetXPos(Planing_Name[current])-9,
+							  livGetYPos(Planing_Name[current]),
+							  14, 14,
+							  OL_NR(GetNthNode(PersonsList,guard)), guard + 1 + (PLANING_NR_PERSONS - BurglarsNr), livWhereIs(Planing_Name[current]));
+		break;
+
+		case ANM_MOVE_RIGHT:
+			tcInsertGuard(list, Planing_GuardRoomList[guard - BurglarsNr],
+							  livGetXPos(Planing_Name[current])+9,
+							  livGetYPos(Planing_Name[current]),
+							  14, 14,
+							  OL_NR(GetNthNode(PersonsList,guard)), guard + 1 + (PLANING_NR_PERSONS - BurglarsNr), livWhereIs(Planing_Name[current]));
+		break;
+
+		case ANM_MOVE_UP:
+			tcInsertGuard(list, Planing_GuardRoomList[guard - BurglarsNr],
+							  livGetXPos(Planing_Name[current]),
+							  livGetYPos(Planing_Name[current])-9,
+							  14, 14,
+							  OL_NR(GetNthNode(PersonsList,guard)), guard + 1 + (PLANING_NR_PERSONS - BurglarsNr), livWhereIs(Planing_Name[current]));
+		break;
+
+		case ANM_MOVE_DOWN:
+			tcInsertGuard(list, Planing_GuardRoomList[guard - BurglarsNr],
+							  livGetXPos(Planing_Name[current]),
+							  livGetYPos(Planing_Name[current])+9,
+							  14, 14,
+							  OL_NR(GetNthNode(PersonsList,guard)), guard + 1 + (PLANING_NR_PERSONS - BurglarsNr), livWhereIs(Planing_Name[current]));
+		break;
+	}
+}
+
+ubyte plObjectInReach(ulong current, ulong objId)
+{
+	LIST *actionList = plGetObjectsList(current, 1);
+	ubyte i, ret = 0;
+
+	for (i = BurglarsNr; i < PersonsNr; i++)
+			plInsertGuard(actionList, current, i);
+
+	if (!LIST_EMPTY(actionList))
+	{
+		if (dbHasObjectNode(actionList, objId))
+			ret = 1;
+	}
+
+	RemoveList(actionList);
+
+	return ret;
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/support.h b/cosp-0.6-src/ClouRemake/ClouRemake/planing/support.h
new file mode 100644
index 0000000..2f12015
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/support.h
@@ -0,0 +1,87 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PLANING_SUPPORT
+#define MODULE_PLANING_SUPPORT
+
+#include <stdio.h>
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_PLANING_PLANER
+#include "planing\planer.h"
+#endif
+
+// Area defines
+#define PLANING_AREA_PERSON  3
+#define PLANING_AREA_CAR     16
+
+// functions for bits
+#define CHECK_STATE(v,b)     ((v) & (1L << (b)))
+#define BIT(x)               (1L<<(x))
+
+// Alarms & power control
+#define PLANING_ALARM_Z3          3
+#define PLANING_ALARM_X5          8
+#define PLANING_ALARM_TOP3        15
+#define PLANING_POWER             1
+
+// all times in 1/3 sec
+#define PLANING_CORRECT_TIME      3
+
+
+ulong plGetNextLoot(void);
+
+ubyte plLivingsPosAtCar(ulong bldId);
+ubyte plAllInCar(ulong bldId);
+ubyte plIsStair(ulong objId);
+
+void  plCorrectOpened(LSObject obj, ubyte open);
+ubyte plIgnoreLock(ulong objId);
+
+void plMove(ulong current, ubyte direction);
+void plWork(ulong current);
+
+LIST *plGetObjectsList(ulong current, ubyte addLootBags);
+void  plInsertGuard(LIST *list, ulong current, ulong guard);
+ubyte plObjectInReach(ulong current, ulong objId);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/sync.c b/cosp-0.6-src/ClouRemake/ClouRemake/planing/sync.c
new file mode 100644
index 0000000..d8be163
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/sync.c
@@ -0,0 +1,704 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "planing\sync.h"
+
+
+// Sync functions
+uword plXMoveSync(ulong id, uword xpos, ubyte animate, ubyte direction, uword gowhere)
+{
+   if (direction)
+   {
+      if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+         lsInitScrollLandScape(gowhere, LS_SCROLL_PREPARE);
+
+      switch (gowhere)
+      {
+         case DIRECTION_LEFT:
+            if (animate & PLANING_ANIMATE_STD)
+               livAnimate(Planing_Name[id], ANM_MOVE_LEFT, -1*LS_STD_SCROLL_SPEED, 0);
+
+            if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+               lsScrollLandScape((ubyte)-1);
+
+				xpos = (uword) (xpos - LS_STD_SCROLL_SPEED); // MOD: HG 26-04 (return (uword) ....)
+         break;
+
+         case DIRECTION_RIGHT:
+            if (animate & PLANING_ANIMATE_STD)
+               livAnimate(Planing_Name[id], ANM_MOVE_RIGHT, 1*LS_STD_SCROLL_SPEED, 0);
+
+            if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+               lsScrollLandScape((ubyte)-1);
+
+				xpos = (uword)(xpos + LS_STD_SCROLL_SPEED);
+			break;
+		}
+	}
+	else
+	{
+		if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+		{
+			switch (gowhere)
+			{
+				case DIRECTION_LEFT:
+					lsInitScrollLandScape(DIRECTION_RIGHT, LS_SCROLL_PREPARE);
+				break;
+
+				case DIRECTION_RIGHT:
+					lsInitScrollLandScape(DIRECTION_LEFT, LS_SCROLL_PREPARE);
+				break;
+			}
+		}
+
+		switch (gowhere)
+		{
+			case DIRECTION_LEFT:
+				if (animate & PLANING_ANIMATE_STD)
+					livAnimate(Planing_Name[id], ANM_MOVE_LEFT, 1*LS_STD_SCROLL_SPEED, 0);
+
+				if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+					lsScrollLandScape((ubyte)-1);
+
+				xpos = (uword)(xpos + LS_STD_SCROLL_SPEED);
+			break;
+
+			case DIRECTION_RIGHT:
+				if  (animate & PLANING_ANIMATE_STD)
+					livAnimate(Planing_Name[id], ANM_MOVE_RIGHT, -1*LS_STD_SCROLL_SPEED, 0);
+
+				if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+					lsScrollLandScape((ubyte)-1);
+
+				xpos = (uword)(xpos - LS_STD_SCROLL_SPEED);
+			break;
+		}
+	}
+
+	return xpos;
+}
+
+uword plYMoveSync(ulong id, uword ypos, ubyte animate, ubyte direction, uword gowhere)
+{
+	if (direction)
+   {
+      if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+         lsInitScrollLandScape(gowhere, LS_SCROLL_PREPARE);
+
+		switch (gowhere)
+      {
+         case DIRECTION_UP:
+            if (animate & PLANING_ANIMATE_STD)
+               livAnimate(Planing_Name[id], ANM_MOVE_UP, 0, -1*LS_STD_SCROLL_SPEED);
+
+            if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+               lsScrollLandScape((ubyte)-1);
+
+				ypos = (uword)(ypos - LS_STD_SCROLL_SPEED); // MOD: 26-04-94 HG
+			break;
+
+			case DIRECTION_DOWN:
+				if (animate & PLANING_ANIMATE_STD)
+					livAnimate(Planing_Name[id], ANM_MOVE_DOWN, 0, 1*LS_STD_SCROLL_SPEED);
+
+				if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+					lsScrollLandScape((ubyte)-1);
+
+				ypos = (uword)(ypos + LS_STD_SCROLL_SPEED);
+			break;
+		}
+	}
+	else
+	{
+		if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+		{
+			switch (gowhere)
+			{
+				case DIRECTION_UP:
+					lsInitScrollLandScape(DIRECTION_DOWN, LS_SCROLL_PREPARE);
+				break;
+
+				case DIRECTION_DOWN:
+					lsInitScrollLandScape(DIRECTION_UP, LS_SCROLL_PREPARE);
+				break;
+			}
+		}
+
+		switch (gowhere)
+		{
+			case DIRECTION_UP:
+				if (animate & PLANING_ANIMATE_STD)
+					livAnimate(Planing_Name[id], ANM_MOVE_UP, 0, 1*LS_STD_SCROLL_SPEED);
+
+				if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+					lsScrollLandScape((ubyte)-1);
+
+				ypos = (uword)(ypos + LS_STD_SCROLL_SPEED);
+			break;
+
+			case DIRECTION_DOWN:
+				 if (animate & PLANING_ANIMATE_STD)
+					livAnimate(Planing_Name[id], ANM_MOVE_DOWN, 0, -1*LS_STD_SCROLL_SPEED);
+
+				if ((animate & PLANING_ANIMATE_FOCUS) && (id == CurrentPerson))
+					lsScrollLandScape((ubyte)-1);
+
+				ypos = (uword)(ypos - LS_STD_SCROLL_SPEED);
+			break;
+		}
+	}
+
+	return ypos;
+}
+
+void plSync(ubyte animate, ulong targetTime, ulong times, ubyte direction)
+{
+   struct Action *action;
+   struct Action  *a;
+   struct Handler *h;
+   uword  dir;
+   Police pol;
+   uword xpos, ypos;
+   ubyte i;
+   ulong seconds, lastAreaId = 0;
+   ulong state;
+   ulong weightLoot;
+   ulong volumeLoot;
+   ulong newValue, oldValue;
+
+   for (seconds = 0; seconds < times; seconds ++)
+   {
+      for (i = 0; i < PersonsNr; i++)
+      {
+         xpos = livGetXPos(Planing_Name[i]);
+         ypos = livGetYPos(Planing_Name[i]);
+
+         SetActivHandler(plSys, OL_NR(GetNthNode(PersonsList, i)));
+
+         if (CurrentTimer(plSys) == targetTime)
+            continue;
+
+         if (!direction && (i < BurglarsNr))
+         {
+            if (GetMaxTimer(plSys) < (targetTime + times - seconds))
+               continue;
+			}
+
+			if ((i >= BurglarsNr) && Planing_Guard[i-BurglarsNr])
+         {
+            if (animate & PLANING_ANIMATE_STD)
+            {
+               switch (Planing_Guard[i-BurglarsNr])
+               {
+                  case 1:
+                     livAnimate(Planing_Name[i], livGetViewDirection(Planing_Name[i]), 0, 0);
+                  break;
+
+                  case 2:
+							livAnimate(Planing_Name[i], ANM_DUSEL_POLICE, 0, 0);
+                  break;
+               }
+            }
+         }
+         else
+         {
+            if (direction)
+               action = NextAction(plSys);
+            else
+               action = CurrentAction(plSys);
+
+            if (!action)
+            {
+               if (direction)
+                  GoLastAction(plSys);
+               else
+                  GoFirstAction(plSys);
+
+               if (animate & PLANING_ANIMATE_STD)
+						livAnimate(Planing_Name[i], ANM_STAND, 0, 0);
+            }
+            else
+            {
+               if (action->Type != ACTION_GO)
+               {
+                  if (animate & PLANING_ANIMATE_STD)
+                  {
+                     if (i < BurglarsNr)
+							{
+								if ((action->Type == ACTION_WAIT) || (action->Type == ACTION_WAIT_SIGNAL))
+									livAnimate(Planing_Name[i], ANM_STAND, 0, 0);
+								else if (action->Type == ACTION_SIGNAL)
+									livAnimate(Planing_Name[i], ANM_MAKE_CALL, 0, 0);
+								else
+                           plWork(i);
+                     }
+                     else
+                        livAnimate(Planing_Name[i], ANM_WORK_CONTROL, 0, 0);
+                  }
+               }
+
+               switch (action->Type)
+               {
+                  case ACTION_GO:
+                     xpos = plXMoveSync(i, xpos, animate, direction, ActionData(action, struct ActionGo *)->Direction);
+                     ypos = plYMoveSync(i, ypos, animate, direction, ActionData(action, struct ActionGo *)->Direction);
+                  break;
+
+                  case ACTION_USE:
+                     if (ActionStarted(plSys))
+                     {
+                        if (plIsStair(ActionData(action, struct ActionUse *)->ItemId))
+                        {
+                           if (direction)
+                              livLivesInArea(Planing_Name[i], StairConnectsGet(ActionData(action, struct ActionUse *)->ItemId, ActionData(action, struct ActionUse *)->ItemId));
+                           else
+                              livLivesInArea(Planing_Name[i], ActionData(action, struct ActionUse *)->ToolId);
+                        }
+                        else if (dbIsObject(ActionData(action, struct ActionUse *)->ItemId, Object_Police))
+                        {
+                           pol = (Police)dbGetObject(ActionData(action, struct ActionUse *)->ItemId);
+
+                           if (direction)
+                              Planing_Guard[pol->LivingID - BurglarsNr] = 1;
+                           else
+                              Planing_Guard[pol->LivingID - BurglarsNr] = 0;
+                        }
+                        else
+                        {
+                           if (direction)
+                              lsSetObjectState(ActionData(action, struct ActionUse *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+                           else
+                              lsSetObjectState(ActionData(action, struct ActionUse *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+                        }
+                     }
+
+                     if (ActionEnded(plSys))
+							{
+								if (plIsStair(ActionData(action, struct ActionUse *)->ItemId))
+                        {
+                           if (i == CurrentPerson)
+                           {
+                              if (direction)
+                                 lastAreaId = StairConnectsGet(ActionData(action, struct ActionUse *)->ItemId, ActionData(action, struct ActionUse *)->ItemId);
+                              else
+                                 lastAreaId = ActionData(action, struct ActionUse *)->ToolId;
+                           }
+                        }
+                        else if (dbIsObject(ActionData(action, struct ActionUse *)->ItemId, Object_Police))
+                        {
+                           pol = (Police)dbGetObject(ActionData(action, struct ActionUse *)->ItemId);
+
+                           if (direction)
+                              Planing_Guard[pol->LivingID - BurglarsNr] = 2;
+                           else
+                              Planing_Guard[pol->LivingID - BurglarsNr] = 1;
+                        }
+                        else
+                        {
+                           if (direction)
+                           {
+                              lsSetObjectState(ActionData(action, struct ActionUse *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+
+                              if (!plIgnoreLock(ActionData(action, struct ActionUse *)->ItemId))
+                              {
+                                 if (!CHECK_STATE(lsGetObjectState(ActionData(action, struct ActionUse *)->ItemId), Const_tcLOCK_UNLOCK_BIT))
+                                 {
+                                    lsSetObjectState(ActionData(action, struct ActionUse *)->ItemId, Const_tcLOCK_UNLOCK_BIT, 1);
+
+                                    if (((Tool)dbGetObject(ActionData(action, struct ActionUse *)->ToolId))->Effect & Const_tcTOOL_OPENS)
+                                    {
+                                       lsSetObjectState(ActionData(action, struct ActionUse *)->ItemId, Const_tcOPEN_CLOSE_BIT, 1);
+                                       plCorrectOpened((LSObject)dbGetObject(ActionData(action, struct ActionUse *)->ItemId), 1);
+                                    }
+                                 }
+                                 else
+                                 {
+                                    if ((((LSObject)dbGetObject(ActionData(action, struct ActionUse *)->ItemId))->Type == Item_Fenster))
+                                    {
+                                       lsWalkThroughWindow((LSObject)dbGetObject(ActionData(action, struct ActionUse *)->ItemId), xpos, ypos, &xpos, &ypos);
+                                       livSetPos (Planing_Name[i], xpos, ypos);
+
+													livRefreshAll();
+												}
+                                 }
+                              }
+                           }
+                           else
+                           {
+                              lsSetObjectState(ActionData(action, struct ActionUse *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+
+                              if (!plIgnoreLock(ActionData(action, struct ActionUse *)->ItemId))
+                              {
+                                 if (CHECK_STATE(lsGetObjectState(ActionData(action, struct ActionUse *)->ItemId), Const_tcLOCK_UNLOCK_BIT))
+                                 {
+                                    if ((((LSObject)dbGetObject(ActionData(action, struct ActionUse *)->ItemId))->Type == Item_Fenster) && !ActionData(action, struct ActionUse *)->ToolId)
+                                    {
+                                       lsWalkThroughWindow ((LSObject)dbGetObject(ActionData(action, struct ActionUse *)->ItemId), xpos, ypos, &xpos, &ypos);
+                                       livSetPos (Planing_Name[i], xpos, ypos);
+
+                                       livRefreshAll();
+                                    }
+                                    else
+                                    {
+                                       lsSetObjectState(ActionData(action, struct ActionUse *)->ItemId, Const_tcLOCK_UNLOCK_BIT, 0);
+
+                                       if (((Tool)dbGetObject(ActionData(action, struct ActionUse *)->ToolId))->Effect & Const_tcTOOL_OPENS)
+                                       {
+                                          lsSetObjectState(ActionData(action, struct ActionUse *)->ItemId, Const_tcOPEN_CLOSE_BIT, 0);
+                                          plCorrectOpened((LSObject)dbGetObject(ActionData(action, struct ActionUse *)->ItemId), 0);
+                                       }
+                                    }
+                                 }
+                              }
+                           }
+
+                           if (plIgnoreLock(ActionData(action, struct ActionUse *)->ItemId))
+                           {
+                              state = lsGetObjectState(ActionData(action, struct ActionUse *)->ItemId);
+
+                              if (CHECK_STATE(state, Const_tcON_OFF))
+                              {
+                                 lsSetObjectState(ActionData(action, struct ActionUse *)->ItemId, Const_tcON_OFF, 0);   /* on setzen  */
+
+                                 if (plIgnoreLock(ActionData(action, struct ActionUse *)->ItemId) == PLANING_POWER)
+                                 {
+                                    lsSetSpotStatus(ActionData(action, struct ActionUse *)->ItemId, LS_SPOT_ON);
+												lsShowAllSpots(CurrentTimer(plSys), LS_ALL_VISIBLE_SPOTS);
+                                 }
+                              }
+                              else
+                              {
+                                 lsSetObjectState(ActionData(action, struct ActionUse *)->ItemId, Const_tcON_OFF, 1);   /* off setzen */
+
+                                 if (plIgnoreLock(ActionData(action, struct ActionUse *)->ItemId) == PLANING_POWER)
+                                 {
+                                    lsSetSpotStatus(ActionData(action, struct ActionUse *)->ItemId, LS_SPOT_OFF);
+                                    lsShowAllSpots(CurrentTimer(plSys), LS_ALL_INVISIBLE_SPOTS);
+                                 }
+                              }
+                           }
+
+                           plRefresh(ActionData(action, struct ActionUse *)->ItemId);
+                        }
+                     }
+                  break;
+
+                  case ACTION_TAKE:
+                     if (ActionStarted(plSys))
+                     {
+                        if (direction)
+                           lsSetObjectState(ActionData(action, struct ActionTake *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+                        else
+                           lsSetObjectState(ActionData(action, struct ActionTake *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+                     }
+
+                     if (ActionEnded(plSys))
+                     {
+                        if (direction)
+                        {
+                           weightLoot = ((Loot)dbGetObject(ActionData(action, struct ActionTake *)->LootId))->Weight;
+                           volumeLoot = ((Loot)dbGetObject(ActionData(action, struct ActionTake *)->LootId))->Volume;
+
+                           lsSetObjectState(ActionData(action, struct ActionTake *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+
+                           if ((ActionData(action, struct ActionTake *)->ItemId >= 9701) && (ActionData(action, struct ActionTake *)->ItemId <= 9708))
+                           {
+                              lsRemLootBag(ActionData(action, struct ActionTake *)->ItemId);
+                              Planing_Loot[ActionData(action, struct ActionTake *)->ItemId-9701] = 0;
+                           }
+                           else
+                           {
+										if (CHECK_STATE(lsGetObjectState(ActionData(action, struct ActionTake *)->ItemId), Const_tcTAKE_BIT))
+                              {
+                                 lsTurnObject((LSObject)dbGetObject(ActionData(action, struct ActionTake *)->ItemId), LS_OBJECT_INVISIBLE, LS_NO_COLLISION);
+                                 lsSetObjectState(ActionData(action, struct ActionTake *)->ItemId, Const_tcACCESS_BIT, 0);
+                              }
+                           }
+
+                           {
+                              newValue = GetP(dbGetObject(ActionData(action, struct ActionTake *)->ItemId), hasLoot(i), dbGetObject(ActionData(action, struct ActionTake *)->LootId));
+
+                              if (Ask(dbGetObject(OL_NR(GetNthNode(BurglarsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionTake *)->LootId)))
+                              {
+                                 oldValue = GetP(dbGetObject(OL_NR(GetNthNode(BurglarsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionTake *)->LootId));
+
+                                 SetP(dbGetObject(OL_NR(GetNthNode(BurglarsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionTake *)->LootId), oldValue + newValue);
+                              }
+                              else
+                                 SetP(dbGetObject(OL_NR(GetNthNode(BurglarsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionTake *)->LootId), newValue);
+                           }
+
+                           UnSet(dbGetObject(ActionData(action, struct ActionTake *)->ItemId), hasLoot(i), dbGetObject(ActionData(action, struct ActionTake *)->LootId));
+
+                           Planing_Weight[i] += weightLoot;
+                           Planing_Volume[i] += volumeLoot;
+                        }
+                        else
+                        {
+                           weightLoot = ((Loot)dbGetObject(ActionData(action, struct ActionTake *)->LootId))->Weight;
+                           volumeLoot = ((Loot)dbGetObject(ActionData(action, struct ActionTake *)->LootId))->Volume;
+
+                           lsSetObjectState(ActionData(action, struct ActionTake *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+
+                           if ((ActionData(action, struct ActionTake *)->ItemId >= 9701) && (ActionData(action, struct ActionTake *)->ItemId <= 9708))
+                           {
+                              lsAddLootBag(xpos, ypos, ActionData(action, struct ActionTake *)->ItemId-9700);
+                              Planing_Loot[ActionData(action, struct ActionTake *)->ItemId-9701] = 1;
+                              SetP(dbGetObject(ActionData(action, struct ActionTake *)->ItemId), hasLoot(i), dbGetObject(ActionData(action, struct ActionTake *)->LootId), GetP(dbGetObject(OL_NR(GetNthNode (PersonsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionTake *)->LootId)));
+                           }
+                           else
+                           {
+                              if (CHECK_STATE(lsGetObjectState(ActionData(action, struct ActionTake *)->ItemId), Const_tcTAKE_BIT))
+                              {
+                                lsTurnObject((LSObject)dbGetObject(ActionData(action, struct ActionTake *)->ItemId), LS_OBJECT_VISIBLE, LS_COLLISION);
+                                lsSetObjectState(ActionData(action, struct ActionTake *)->ItemId, Const_tcACCESS_BIT, 1);
+                              }
+
+                              SetP(dbGetObject(ActionData(action, struct ActionTake *)->ItemId), hasLoot(i), dbGetObject(ActionData(action, struct ActionTake *)->LootId), GetP(dbGetObject(ActionData(action, struct ActionTake *)->ItemId), hasLoot_Clone_RelId, dbGetObject(ActionData(action, struct ActionTake *)->LootId)));
+                           }
+
+                           UnSet(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionTake *)->LootId));
+                           Planing_Weight[i] -= weightLoot;
+                           Planing_Volume[i] -= volumeLoot;
+                        }
+
+                        plRefresh(ActionData(action, struct ActionTake *)->ItemId);
+                     }
+                  break;
+
+                  case ACTION_DROP:
+                     if (ActionStarted(plSys))
+                     {
+                        if (direction)
+                           lsSetObjectState(ActionData(action, struct ActionDrop *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+                        else
+                           lsSetObjectState(ActionData(action, struct ActionDrop *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+                     }
+
+                     if (ActionEnded(plSys))
+                     {
+                        if (direction)
+                        {
+                           weightLoot = ((Loot)dbGetObject(ActionData(action, struct ActionDrop *)->LootId))->Weight;
+                           volumeLoot = ((Loot)dbGetObject(ActionData(action, struct ActionDrop *)->LootId))->Volume;
+
+                           lsSetObjectState(ActionData(action, struct ActionDrop *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+
+                           if ((ActionData(action, struct ActionDrop *)->ItemId >= 9701) && (ActionData(action, struct ActionDrop *)->ItemId <= 9708))
+                           {
+                              lsAddLootBag(xpos, ypos, ActionData(action, struct ActionDrop *)->ItemId-9700);
+                              Planing_Loot[ActionData(action, struct ActionDrop *)->ItemId-9701] = 1;
+                              SetP(dbGetObject(ActionData(action, struct ActionDrop *)->ItemId), hasLoot(i), dbGetObject(ActionData(action, struct ActionDrop *)->LootId), GetP(dbGetObject(OL_NR(GetNthNode (PersonsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionDrop *)->LootId)));
+                           }
+                           else
+                           {
+                              if (CHECK_STATE(lsGetObjectState(ActionData(action, struct ActionTake *)->ItemId), Const_tcTAKE_BIT))
+                              {
+                                 lsTurnObject((LSObject)dbGetObject(ActionData(action, struct ActionDrop *)->ItemId), LS_OBJECT_VISIBLE, LS_COLLISION);
+                                 lsSetObjectState(ActionData(action, struct ActionDrop *)->ItemId, Const_tcACCESS_BIT, 1);
+                              }
+
+										SetP(dbGetObject(ActionData(action, struct ActionDrop *)->ItemId), hasLoot(i), dbGetObject(ActionData(action, struct ActionDrop *)->LootId), GetP(dbGetObject(ActionData(action, struct ActionDrop *)->ItemId), hasLoot_Clone_RelId, dbGetObject(ActionData(action, struct ActionDrop *)->LootId)));
+                           }
+
+                           UnSet(dbGetObject(OL_NR(GetNthNode(PersonsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionDrop *)->LootId));
+                           Planing_Weight[i] -= weightLoot;
+                           Planing_Volume[i] -= volumeLoot;
+                        }
+                        else
+                        {
+                           weightLoot = ((Loot)dbGetObject(ActionData(action, struct ActionDrop *)->LootId))->Weight;
+                           volumeLoot = ((Loot)dbGetObject(ActionData(action, struct ActionDrop *)->LootId))->Volume;
+
+                           lsSetObjectState(ActionData(action, struct ActionDrop *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+
+                           if ((ActionData(action, struct ActionDrop *)->ItemId >= 9701) && (ActionData(action, struct ActionDrop *)->ItemId <= 9708))
+                           {
+                              lsRemLootBag(ActionData(action, struct ActionDrop *)->ItemId);
+                              Planing_Loot[ActionData(action, struct ActionDrop *)->ItemId-9701] = 0;
+                           }
+                           else
+                           {
+                              if (CHECK_STATE(lsGetObjectState(ActionData(action, struct ActionTake *)->ItemId), Const_tcTAKE_BIT))
+                              {
+                                 lsTurnObject((LSObject)dbGetObject(ActionData(action, struct ActionTake *)->ItemId), LS_OBJECT_INVISIBLE, LS_NO_COLLISION);
+                                 lsSetObjectState(ActionData(action, struct ActionTake *)->ItemId, Const_tcACCESS_BIT, 0);
+                              }
+                           }
+
+                           {
+                              newValue = GetP(dbGetObject(ActionData(action, struct ActionDrop *)->ItemId), hasLoot(i), dbGetObject(ActionData(action, struct ActionDrop *)->LootId));
+
+                              if (Ask(dbGetObject(OL_NR(GetNthNode(BurglarsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionDrop *)->LootId)))
+                              {
+                                 oldValue = GetP(dbGetObject(OL_NR(GetNthNode(BurglarsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionDrop *)->LootId));
+
+                                 SetP(dbGetObject(OL_NR(GetNthNode(BurglarsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionDrop *)->LootId), oldValue + newValue);
+                              }
+                              else
+                                 SetP(dbGetObject(OL_NR(GetNthNode(BurglarsList, i))), take_RelId, dbGetObject(ActionData(action, struct ActionDrop *)->LootId), newValue);
+                           }
+
+                           UnSet(dbGetObject(ActionData(action, struct ActionDrop *)->ItemId), hasLoot(i), dbGetObject(ActionData(action, struct ActionDrop *)->LootId));
+
+                           Planing_Weight[i] += weightLoot;
+                           Planing_Volume[i] += volumeLoot;
+								}
+
+                        plRefresh(ActionData(action, struct ActionDrop *)->ItemId);
+                     }
+                  break;
+
+                  case ACTION_OPEN:
+                     if (ActionStarted(plSys))
+                     {
+                        if (i < BurglarsNr)
+                        {
+                           if (direction)
+                              lsSetObjectState(ActionData(action, struct ActionOpen *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+                           else
+                              lsSetObjectState(ActionData(action, struct ActionOpen *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+                        }
+                     }
+
+                     if (ActionEnded(plSys))
+                     {
+                        if (direction)
+                        {
+                           if (i < BurglarsNr)
+                              lsSetObjectState(ActionData(action, struct ActionOpen *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+
+                           lsSetObjectState(ActionData(action, struct ActionOpen *)->ItemId, Const_tcOPEN_CLOSE_BIT, 1);
+
+                           plCorrectOpened((LSObject)dbGetObject(ActionData(action, struct ActionOpen *)->ItemId), 1);
+                        }
+                        else
+                        {
+                           if (i < BurglarsNr)
+                              lsSetObjectState(ActionData(action, struct ActionOpen *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+
+                           lsSetObjectState(ActionData(action, struct ActionOpen *)->ItemId, Const_tcOPEN_CLOSE_BIT, 0);
+
+                           plCorrectOpened((LSObject)dbGetObject(ActionData(action, struct ActionOpen *)->ItemId), 0);
+                        }
+
+                        plRefresh(ActionData(action, struct ActionOpen *)->ItemId);
+                     }
+                  break;
+
+                  case ACTION_CLOSE:
+                     if (ActionStarted(plSys))
+							{
+                        if (i < BurglarsNr)
+                        {
+                           if (direction)
+                              lsSetObjectState(ActionData(action, struct ActionClose *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+                           else
+                              lsSetObjectState(ActionData(action, struct ActionClose *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+                        }
+                     }
+
+                     if (ActionEnded(plSys))
+                     {
+                        if (direction)
+                        {
+                           if (i < BurglarsNr)
+                              lsSetObjectState(ActionData(action, struct ActionClose *)->ItemId, Const_tcIN_PROGRESS_BIT, 0);
+
+                           lsSetObjectState(ActionData(action, struct ActionClose *)->ItemId, Const_tcOPEN_CLOSE_BIT, 0);
+
+                           plCorrectOpened((LSObject)dbGetObject(ActionData(action, struct ActionClose *)->ItemId), 0);
+                        }
+                        else
+                        {
+                           if (i < BurglarsNr)
+                              lsSetObjectState(ActionData(action, struct ActionClose *)->ItemId, Const_tcIN_PROGRESS_BIT, 1);
+
+                           lsSetObjectState(ActionData(action, struct ActionClose *)->ItemId, Const_tcOPEN_CLOSE_BIT, 1);
+
+                           plCorrectOpened((LSObject)dbGetObject(ActionData(action, struct ActionClose *)->ItemId), 1);
+                        }
+
+                        plRefresh(ActionData(action, struct ActionClose *)->ItemId);
+                     }
+                  break;
+               }
+            }
+
+				if (!direction)
+               action = PrevAction(plSys);	// 2014-06-28 LucyG : ??? Compiler warning "action is assigned a value that is never used"
+         }
+
+         if (animate & PLANING_ANIMATE_NO)
+         {
+            h = (struct Handler *)plSys->ActivHandler;
+
+            if (i < BurglarsNr)
+					dir = ANM_STAND;
+            else
+               dir = ANM_MOVE_DOWN;
+
+            if (CurrentTimer(plSys) != 0)
+            {
+               for (a = (struct Action *)LIST_HEAD(h->Actions); NODE_SUCC(a); a = (struct Action *)NODE_SUCC(a))
+               {
+                  switch (a->Type)
+                  {
+                     case ACTION_GO:
+                        switch (ActionData(a, struct ActionGo *)->Direction)
+                        {
+                           case DIRECTION_LEFT:
+                              dir = ANM_MOVE_LEFT;
+                           break;
+
+                           case DIRECTION_RIGHT:
+                              dir = ANM_MOVE_RIGHT;
+                           break;
+
+                           case DIRECTION_UP:
+                              dir = ANM_MOVE_UP;
+                           break;
+
+                           case DIRECTION_DOWN:
+                              dir = ANM_MOVE_DOWN;
+                           break;
+                        }
+                     break;
+
+                     case ACTION_WAIT:
+                     case ACTION_SIGNAL:
+                     case ACTION_WAIT_SIGNAL:
+							case ACTION_CONTROL:
+								dir = ANM_MOVE_DOWN;
+							break;
+						}
+
+						if (a == (struct Action *)h->CurrentAction)
+							break;
+					}
+				}
+
+				if ((i < BurglarsNr) || ((i >= BurglarsNr) && !Planing_Guard[i - BurglarsNr]))
+					livAnimate(Planing_Name[i], dir, 0, 0);
+
+            livSetPos(Planing_Name[i], xpos, ypos);
+         }
+      }
+   }
+
+   SetActivHandler(plSys, OL_NR(GetNthNode(PersonsList, CurrentPerson)));
+
+   if ((lastAreaId) && (lastAreaId != lsGetActivAreaID()))
+   {
+     lsDoneActivArea(lastAreaId);
+	  lsInitActivArea(lastAreaId, livGetXPos(Planing_Name[CurrentPerson]), livGetYPos(Planing_Name[CurrentPerson]), Planing_Name[CurrentPerson]);
+
+	  if (lsGetStartArea() == lsGetActivAreaID())
+		  lsShowEscapeCar();                      /* Auto neu zeichnen */
+
+	  livRefreshAll();
+	}
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/sync.h b/cosp-0.6-src/ClouRemake/ClouRemake/planing/sync.h
new file mode 100644
index 0000000..f967fb1
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/sync.h
@@ -0,0 +1,61 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PLANING_SYNC
+#define MODULE_PLANING_SYNC
+
+#include <stdio.h>
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_PLANING_PLANER
+#include "planing\planer.h"
+#endif
+
+// Sync modes
+#define PLANING_ANIMATE_NO     (1L<<0)
+#define PLANING_ANIMATE_STD    (1L<<1)
+#define PLANING_ANIMATE_FOCUS  (1L<<2)
+
+
+void plSync(ubyte animate, ulong targetTime, ulong times, ubyte direction);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/system.c b/cosp-0.6-src/ClouRemake/ClouRemake/planing/system.c
new file mode 100644
index 0000000..35a9b55
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/system.c
@@ -0,0 +1,746 @@
+/*	_________  _______
+   / ___/ __ \/ __/ _ \		 Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#define FILE_SYSTEM_ID		"SYS "		/* SYStem plan start */
+#define FILE_HANDLER_ID		"HAND"		/* HANDler x needed	 */
+#define FILE_ACTION_LIST_ID "ACLI"		/* ACtionLIst for handler x started */
+#define FILE_ACTION_ID		"ACTI"		/* ACTIon */
+
+#define SYS_MAX_MEMORY_SIZE	  1024L*25L
+
+#include "planing\system.h"
+#include "port\port.h"
+
+ulong sysUsedMem = 0L;
+
+ulong sizeofAction [] = {
+	0L, /* first index is not used yet */
+	(ulong)sizeof(struct ActionGo),
+	0L,
+	(ulong)sizeof(struct ActionSignal),
+	(ulong)sizeof(struct ActionWaitSignal),
+	(ulong)sizeof(struct ActionUse),
+	(ulong)sizeof(struct ActionTake),
+	(ulong)sizeof(struct ActionDrop),
+	(ulong)sizeof(struct ActionOpen),
+	(ulong)sizeof(struct ActionClose),
+	(ulong)sizeof(struct ActionControl)
+};
+
+ulong plGetUsedMem(void)
+	{
+	return sysUsedMem;
+	}
+
+struct Handler *FindHandler(struct System *sys, ulong id)
+{
+   struct Handler *h;
+
+   if (sys)
+   {
+	  for (h = (struct Handler *)LIST_HEAD(sys->Handlers); NODE_SUCC(h); h = (struct Handler *)NODE_SUCC(h))
+	  {
+		 if (h->Id == id)
+			return h;
+	  }
+   }
+
+   return NULL;
+}
+
+struct System *InitSystem(void)
+{
+   struct System *sys = (struct System *)MemAlloc(sizeof(struct System));
+
+   if (sys)
+   {
+	  sys->Handlers = (LIST*)CreateList(0L);
+	  sys->Signals	= (LIST*)CreateList(0L);
+
+	  sys->ActivHandler = NULL;
+
+	  if (!sys->Handlers || !sys->Signals)
+	  {
+		 CloseSystem(sys);
+		 sys = NULL;
+	  }
+   }
+
+   return sys;
+}
+
+void CloseSystem(struct System *sys)
+{
+   if (sys)
+   {
+	  RemoveList(sys->Handlers);
+	  RemoveList(sys->Signals);
+
+	  MemFree(sys, sizeof(struct System));
+   }
+}
+
+void SetActivHandler(struct System *sys, ulong id)
+{
+   struct Handler *h;
+
+   if (h = FindHandler(sys, id))
+	  sys->ActivHandler = (NODE *)h;
+   else
+	  sys->ActivHandler = NULL;
+}
+
+void SaveSystem(FILE *fh, struct System *sys)
+{
+   struct Handler *h;
+
+   if (fh)
+   {
+	  fprintf(fh, FILE_SYSTEM_ID "\n");
+
+	  for (h = (struct Handler *)LIST_HEAD(sys->Handlers); NODE_SUCC(h); h = (struct Handler *)NODE_SUCC(h))
+		 fprintf(fh, FILE_HANDLER_ID "\n%ld\n", h->Id);
+   }
+}
+
+LIST *LoadSystem(FILE *fh, struct System *sys)
+{
+   LIST *l = txtGoKey(PLAN_TXT, "SYSTEM_GUYS_MISSING_1");
+	ubyte  foundAll = 1, knowsSomebody = 1, handlerNr = 0;
+	char buffer[32];
+
+	if (fh)
+	{
+		if (dskGets(buffer, 31, fh))
+		{
+			if (!strcmp(buffer, FILE_SYSTEM_ID))
+			{
+				while (dskGets(buffer, 31, fh))
+				{
+					if (strcmp(buffer, FILE_HANDLER_ID)) break;
+
+					dskGets(buffer, 19, fh); /* reading handler id */
+
+					if (atol(buffer) && !dbIsObject(atol(buffer), Object_Police))
+					{
+						handlerNr++;
+
+						if (!FindHandler(sys, atol(buffer)))
+						{
+							if (knows(Person_Matt_Stuvysunt, atol (buffer)))
+							{
+								knowsSomebody++;
+								dbAddObjectNode(l, atol(buffer), OLF_INCLUDE_NAME);
+							}
+
+							foundAll = 0;
+						}
+					}
+				}
+			}
+		}
+	}
+
+	if (foundAll)
+	{
+		RemoveList(l);
+		l = NULL;
+	}
+	else
+	{
+		LIST *extList = NULL;
+		NODE *n;
+
+		if (knowsSomebody == 1)
+			extList = txtGoKey(PLAN_TXT, "SYSTEM_GUYS_MISSING_3");
+		else
+		{
+			if ((handlerNr - knowsSomebody) > 1)
+				extList = txtGoKeyAndInsert(PLAN_TXT, "SYSTEM_GUYS_MISSING_2", (ulong)(handlerNr - knowsSomebody));
+			else if (handlerNr - knowsSomebody)
+				extList = txtGoKey(PLAN_TXT, "SYSTEM_GUYS_MISSING_4");
+		}
+
+		if (extList)
+		{
+			for (n = (NODE *)LIST_HEAD(extList); NODE_SUCC(n); n = (NODE *)NODE_SUCC(n))
+				CreateNode(l, 0, NODE_NAME(n));
+
+			RemoveList(extList);
+		}
+	}
+
+	return l;
+}
+
+struct Handler *InitHandler(struct System *sys, ulong id, ulong flags)
+{
+   struct Handler *h = NULL;
+
+   if (sys && !FindHandler(sys, id))
+   {
+	  if (h = (struct Handler *)CreateNode(sys->Handlers, sizeof (struct Handler), NULL))
+	  {
+		 h->Id			  = id;
+		 h->Timer		  = 0L;
+		 h->Flags		  = flags;
+		 h->CurrentAction = NULL;
+
+		 if (!(h->Actions = (LIST*)CreateList(0L)))
+		 {
+			RemNode(h);
+			FreeNode(h);
+			h = NULL;
+		 }
+
+		 sys->ActivHandler = (NODE *)h;
+	  }
+   }
+
+   return h;
+}
+
+void CloseHandler(struct System *sys, ulong id)
+{
+   struct Handler *h;
+
+   if (h = FindHandler(sys, id))
+   {
+	  CorrectMem(h->Actions);
+
+	  if (h->Actions)
+		 RemoveList(h->Actions);
+
+	  RemNode(h);
+	  FreeNode(h);
+   }
+}
+
+struct Handler *ClearHandler(struct System *sys, ulong id)
+{
+   struct Handler *h;
+
+   if (h = FindHandler(sys, id))
+   {
+	  CorrectMem(h->Actions);
+
+	  if (h->Actions)
+		 RemoveList(h->Actions);
+
+	  if (!(h->Actions = (LIST*)CreateList(0L)))
+	  {
+		 RemNode(h);
+		 FreeNode(h);
+		 h = NULL;
+	  }
+
+	  h->Timer		   = 0L;
+	  h->CurrentAction = NULL;
+   }
+
+   return h;
+}
+
+ubyte IsHandlerCleared(struct System *sys)
+{
+   struct Handler *h;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  if (LIST_EMPTY(h->Actions))
+		 return 1;
+   }
+
+   return 0;
+}
+
+void SaveHandler(FILE *fh, struct System *sys, ulong id)
+{
+   struct Handler *h;
+   struct Action  *a;
+
+   if (fh && sys && (h = FindHandler(sys, id)))
+   {
+	  fprintf(fh, FILE_ACTION_LIST_ID "\n%ld\n", id);
+
+	  for (a = (struct Action *)LIST_HEAD(h->Actions); NODE_SUCC(a); a = (struct Action *)NODE_SUCC(a))
+	  {
+			fprintf(fh, FILE_ACTION_ID "\n%d\n%d\n", a->Type, a->TimeNeeded);
+
+			switch (a->Type)
+			{
+				case ACTION_GO:
+					fprintf(fh, "%d\n", (ulong)ActionData(a, struct ActionGo *)->Direction);
+				break;
+
+				case ACTION_USE:
+				case ACTION_TAKE:
+				case ACTION_DROP:
+					fprintf(fh, "%ld\n%ld\n", ActionData(a, struct ActionUse *)->ToolId,
+													  ActionData(a, struct ActionUse *)->ItemId);
+				break;
+
+			case ACTION_OPEN:
+			case ACTION_CLOSE:
+			case ACTION_CONTROL:
+			case ACTION_SIGNAL:
+			case ACTION_WAIT_SIGNAL:
+			   fprintf(fh, "%ld\n", ActionData(a, struct ActionOpen *)->ItemId);
+			break;
+		 }
+	  }
+   }
+}
+
+ubyte LoadHandler(FILE *fh, struct System *sys, ulong id)
+{
+	struct Action  *a;
+	ulong value;
+	ulong time;
+	char buffer[32];
+
+	if (fh && sys && (FindHandler(sys, id))) {
+		//rewind(fh);
+		fseek(fh, 0, SEEK_SET);	// LucyG 2017-10-29
+
+		while (!dskIsEOF(fh)) {
+			dskGets(buffer, 31, fh);
+
+			if (!strcmp(buffer, FILE_ACTION_LIST_ID)) {
+				dskGets(buffer, 31, fh); /* reading handler id */
+
+				if (id == atol(buffer)) {
+					SetActivHandler(sys, id);
+
+					while (dskGets(buffer, 31, fh)) {
+						if (strcmp(buffer, FILE_ACTION_ID)) break;
+
+						dskGets(buffer, 31, fh);
+						value = atol(buffer);
+
+						dskGets(buffer, 31, fh);
+						time = atol(buffer);
+
+						if (value) {
+							a = InitAction(sys, value, 0L, 0L, time);
+
+							switch (value) {
+								case ACTION_GO:
+									dskGets(buffer, 31, fh);
+									value = atol(buffer);
+									ActionData(a, struct ActionGo *)->Direction = value;
+								break;
+								case ACTION_USE:
+								case ACTION_TAKE:
+								case ACTION_DROP:
+									dskGets(buffer, 31, fh);
+									value = atol(buffer);
+									ActionData(a, struct ActionUse *)->ToolId = value;
+
+									dskGets(buffer, 31, fh);
+									value = atol(buffer);
+									ActionData(a, struct ActionUse *)->ItemId = value;
+								break;
+								case ACTION_OPEN:
+								case ACTION_CLOSE:
+								case ACTION_CONTROL:
+								case ACTION_WAIT_SIGNAL:
+								case ACTION_SIGNAL:
+									dskGets(buffer, 31, fh);
+									value = atol(buffer);
+									ActionData(a, struct ActionOpen *)->ItemId = value;
+								break;
+							}
+						} else {
+							return 0;
+						}
+					}
+
+					GoFirstAction(sys);
+					return 1;
+				}
+			}
+		}
+	}
+	return 0;
+}
+
+struct Action *InitAction(struct System *sys, uword type, ulong data1, ulong data2, ulong time)
+{
+   struct Handler *h;
+   struct Action  *a = NULL;
+
+	if (sys && (h = (struct Handler *)sys->ActivHandler))
+	{
+		if ((sysUsedMem + sizeof(struct Action) + sizeofAction[type]) <= SYS_MAX_MEMORY_SIZE)
+	  {
+		 sysUsedMem += sizeof(struct Action) + sizeofAction[type];
+
+		 if (a = (struct Action *)CreateNode(h->Actions, sizeof(struct Action) + sizeofAction[type], NULL))
+		 {
+			a->Type		  = type;
+			a->TimeNeeded = time;
+			a->Timer	  = time;
+
+			h->Timer		 += time;
+			h->CurrentAction  = (NODE *)a;
+
+			switch (type)
+			{
+			   case ACTION_GO:
+				  ActionData(a, struct ActionGo *)->Direction = (uword)data1;
+			   break;
+
+			   case ACTION_USE:
+			   case ACTION_TAKE:
+			   case ACTION_DROP:
+				  ActionData(a, struct ActionUse *)->ItemId = data1;
+				  ActionData(a, struct ActionUse *)->ToolId = data2;
+			   break;
+
+			   case ACTION_SIGNAL:
+			   case ACTION_WAIT_SIGNAL:
+			   case ACTION_OPEN:
+			   case ACTION_CLOSE:
+			   case ACTION_CONTROL:
+				  ActionData(a, struct ActionOpen *)->ItemId = data1;
+			   break;
+			}
+		 }
+	  }
+   }
+
+   return a;
+}
+
+struct Action *CurrentAction(struct System *sys)
+{
+   struct Handler *h;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+	  return (struct Action *)h->CurrentAction;
+
+   return NULL;
+}
+
+struct Action *GoFirstAction(struct System *sys)
+{
+   struct Handler *h;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  if (!LIST_EMPTY(h->Actions))
+	  {
+		 h->CurrentAction = (NODE *)LIST_HEAD(h->Actions);
+		 ((struct Action *)h->CurrentAction)->Timer = 0;
+		 h->Timer = 0;
+	  }
+	  else
+		 h->CurrentAction = NULL;
+
+	  return (struct Action *)h->CurrentAction;
+   }
+
+   return NULL;
+}
+
+struct Action *GoLastAction(struct System *sys)
+{
+   struct Handler *h;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  if (!LIST_EMPTY(h->Actions))
+	  {
+		 h->CurrentAction = (NODE *)LIST_TPRED(h->Actions);
+		 ((struct Action *)h->CurrentAction)->Timer = ((struct Action *)h->CurrentAction)->TimeNeeded;
+		 h->Timer = GetMaxTimer(sys);
+	  }
+	  else
+		 h->CurrentAction = NULL;
+
+	  return (struct Action *)h->CurrentAction;
+   }
+
+   return NULL;
+}
+
+struct Action *NextAction(struct System *sys)
+{
+   struct Handler *h;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  if ((struct Action *)h->CurrentAction)
+	  {
+		 if (((struct Action *)h->CurrentAction)->Timer == ((struct Action *)h->CurrentAction)->TimeNeeded)
+		 {
+			if (NODE_SUCC(NODE_SUCC(h->CurrentAction)))
+			{
+			   h->CurrentAction = (NODE *)NODE_SUCC(h->CurrentAction);
+
+			   ((struct Action *)h->CurrentAction)->Timer = 1;
+			   h->Timer++;
+			}
+			else
+			{
+			   if (h->Flags & SHF_AUTOREVERS)
+			   {
+				  h->CurrentAction = (NODE *)LIST_HEAD(h->Actions);
+				  ((struct Action *)h->CurrentAction)->Timer = 1;
+				  h->Timer++;
+			   }
+			   else
+			   {
+				  h->CurrentAction = (NODE *)LIST_TPRED(h->Actions);
+				  ((struct Action *)h->CurrentAction)->Timer = ((struct Action *)h->CurrentAction)->TimeNeeded;
+				  h->Timer = GetMaxTimer(sys);
+
+				  return NULL;
+			   }
+			}
+		 }
+		 else
+		 {
+			((struct Action *)h->CurrentAction)->Timer++;
+			h->Timer++;
+		 }
+	  }
+
+	  return (struct Action *)h->CurrentAction;
+   }
+
+   return NULL;
+}
+
+struct Action *PrevAction(struct System *sys)
+{
+   struct Handler *h;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  if ((struct Action *)h->CurrentAction)
+	  {
+		 if (((struct Action *)h->CurrentAction)->Timer == 1)
+		 {
+			if (NODE_PRED(NODE_PRED(h->CurrentAction)))
+			{
+			   h->CurrentAction = (NODE *)NODE_PRED(h->CurrentAction);
+
+			   ((struct Action *)h->CurrentAction)->Timer = ((struct Action *)h->CurrentAction)->TimeNeeded;
+			   h->Timer--;
+			}
+			else
+			{
+			   if ((h->Flags & SHF_AUTOREVERS) && h->Timer)
+			   {
+				  h->CurrentAction = (NODE *)LIST_TPRED(h->Actions);
+				  ((struct Action *)h->CurrentAction)->Timer = ((struct Action *)h->CurrentAction)->TimeNeeded;
+				  h->Timer--;
+			   }
+			   else
+			   {
+				  h->CurrentAction = (NODE *)LIST_HEAD(h->Actions);
+				  ((struct Action *)h->CurrentAction)->Timer = 0;
+				  h->Timer = 0;
+
+				  return NULL;
+			   }
+			}
+		 }
+		 else
+		 {
+			((struct Action *)h->CurrentAction)->Timer--;
+			h->Timer--;
+		 }
+	  }
+
+	  return (struct Action *)h->CurrentAction;
+   }
+
+   return NULL;
+}
+
+ubyte ActionStarted(struct System *sys)
+{
+   struct Handler *h;
+   struct Action  *a;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  if (a = (struct Action *)h->CurrentAction)
+	  {
+		 if (a->Timer == 1)
+			return 1;
+	  }
+   }
+
+   return 0;
+}
+
+ubyte ActionEnded(struct System *sys)
+{
+   struct Handler *h;
+   struct Action  *a;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  if (a = (struct Action *)h->CurrentAction)
+	  {
+		 if (a->Timer == a->TimeNeeded)
+			return 1;
+	  }
+   }
+
+   return 0;
+}
+
+void RemLastAction(struct System *sys)
+{
+   struct Handler *h;
+	NODE *n;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  if (!LIST_EMPTY(h->Actions))
+	  {
+		 if (GetNrOfNodes(h->Actions) > 1)
+		 {
+			n = (NODE *)RemTailNode(h->Actions);
+			sysUsedMem -= NODE_SIZE(n);
+			FreeNode(n);
+
+			h->Timer = GetMaxTimer(sys);
+			h->CurrentAction = (NODE *)LIST_TPRED(h->Actions);
+			((struct Action *)h->CurrentAction)->Timer = ((struct Action *)h->CurrentAction)->TimeNeeded;
+		 }
+		 else
+			ClearHandler(sys, h->Id);
+	  }
+   }
+}
+
+void IgnoreAction(struct System *sys)
+{
+   struct Handler *h;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  if ((struct Action *)h->CurrentAction)
+	  {
+		 if (NODE_SUCC(NODE_SUCC(h->CurrentAction)))
+		 {
+			h->CurrentAction = (NODE *)NODE_SUCC(h->CurrentAction);
+
+			((struct Action *)h->CurrentAction)->Timer = 0;
+		 }
+		 else
+		 {
+			h->CurrentAction = (NODE *)LIST_TPRED(h->Actions);
+			((struct Action *)h->CurrentAction)->Timer = ((struct Action *)h->CurrentAction)->TimeNeeded;
+		 }
+	  }
+   }
+}
+
+struct plSignal *InitSignal(struct System *sys, ulong sender, ulong receiver)
+{
+   struct plSignal *s = NULL;
+
+   if (sys)
+   {
+	  if (s = (struct plSignal *)CreateNode(sys->Signals, sizeof (struct plSignal), NULL))
+	  {
+		 s->SenderId   = sender;
+		 s->ReceiverId = receiver;
+	  }
+   }
+
+   return s;
+}
+
+void CloseSignal(struct plSignal *s)
+{
+   if (s)
+   {
+	  RemNode(s);
+	  FreeNode(s);
+   }
+}
+
+struct plSignal *IsSignal(struct System *sys, ulong sender, ulong receiver)
+{
+   struct plSignal *s;
+
+   if (sys)
+   {
+	  for (s = (struct plSignal *)LIST_HEAD(sys->Signals); NODE_SUCC(s); s = (struct plSignal *)NODE_SUCC(s))
+	  {
+		 if ((s->SenderId == sender) && (s->ReceiverId == receiver))
+			return s;
+	  }
+   }
+
+   return NULL;
+}
+
+ulong CurrentTimer(struct System *sys)
+{
+   struct Handler *h;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+	  return h->Timer;
+
+   return 0L;
+}
+
+void IncCurrentTimer(struct System *sys, ulong time, ubyte alsoTime)
+{
+   struct Handler *h;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  if (h->CurrentAction)
+	  {
+		 ((struct Action *)h->CurrentAction)->TimeNeeded += time;
+
+		 if (alsoTime)
+		 {
+			((struct Action *)h->CurrentAction)->Timer += time;
+			h->Timer								   += time;
+		 }
+	  }
+   }
+}
+
+ulong GetMaxTimer(struct System *sys)
+{
+   struct Handler *h;
+   struct Action  *a;
+   ulong		   time = 0;
+
+   if (sys && (h = (struct Handler *)sys->ActivHandler))
+   {
+	  for (a = (struct Action *)LIST_HEAD(h->Actions); NODE_SUCC(a); a = (struct Action *)NODE_SUCC(a))
+		 time += a->TimeNeeded;
+   }
+
+   return time;
+}
+
+void ResetMem(void)
+{
+   sysUsedMem = 0L;
+}
+
+void CorrectMem(LIST *l)
+{
+   NODE *n;
+
+   for (n = (NODE *)LIST_HEAD(l); NODE_SUCC(n); n = (NODE *)NODE_SUCC(n))
+	  sysUsedMem -= NODE_SIZE(n);
+}
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/planing/system.h b/cosp-0.6-src/ClouRemake/ClouRemake/planing/system.h
new file mode 100644
index 0000000..e50ecf6
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/planing/system.h
@@ -0,0 +1,239 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PLANING_SYSTEM
+#define MODULE_PLANING_SYSTEM
+
+#include <stdio.h>
+#include "theclou.h"
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_DISK
+#include "disk\disk.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_PLANING_PLANER
+#include "planing\planer.h"
+#endif
+
+
+/* System main structure - like the kernel in an OS */
+struct System
+{
+	LIST *Handlers;  /* Pointer to all started handlers */
+	LIST *Signals;   /* Pointer to signal in the system */
+
+	NODE *ActivHandler;
+};
+
+struct System *InitSystem(void);                          /* Initialize system for use */
+void CloseSystem(struct System *sys);                    /* Close all system immedietly */
+void SetActivHandler(struct System *sys, ulong id);
+
+void  SaveSystem(FILE *fh, struct System *sys);
+LIST *LoadSystem(FILE *fh, struct System *sys);
+
+
+/* System Handler Flags */
+#define SHF_NORMAL         0L
+#define SHF_AUTOREVERS     1L<<0
+
+/* Handler structure - like a task in an OS */
+struct Handler
+{
+	NODE	Link;                   /* Link to next handler */
+
+	ulong	Id;                     /* ID of handler (all handlers will be identified with their ID and
+	                                 not through pointers, which will save global data) */
+
+	ulong Timer;                  /* Handler time in seconds/3 */
+
+	ulong Flags;                  /* Handler flags */
+
+	LIST	*Actions;               /* Action table */
+	NODE	*CurrentAction;         /* Current action */
+};
+
+
+struct Handler *InitHandler(struct System *sys, ulong id, ulong flags);    /* Initialize handler         */
+void CloseHandler(struct System *sys, ulong id);                           /* Close Handler              */
+struct Handler *ClearHandler(struct System *sys, ulong id);                /* Clear Handlers action list */
+struct Handler *FindHandler(struct System *sys, ulong id);
+
+ubyte IsHandlerCleared(struct System *sys);
+
+void  SaveHandler(FILE *fh, struct System *sys, ulong id);
+ubyte LoadHandler(FILE *fh, struct System *sys, ulong id);
+
+ulong plGetUsedMem(void);
+
+/* here we are at the real part - the actions */
+#define ACTION_GO           1
+#define ACTION_WAIT         2
+#define ACTION_SIGNAL       3
+#define ACTION_WAIT_SIGNAL  4
+#define ACTION_USE          5
+#define ACTION_TAKE         6
+#define ACTION_DROP         7
+#define ACTION_OPEN         8
+#define ACTION_CLOSE	       9
+#define ACTION_CONTROL      10
+
+struct Action
+{
+   NODE  Link;
+
+	uword Type;
+
+	uword TimeNeeded;          /* times in seconds/3 */
+	uword Timer;
+	short pad;
+};
+
+/* Type : ACTION_GO
+   Figure will go in one direction for x steps */
+struct ActionGo
+{
+	uword Direction;
+	short pad;
+};
+
+#define DIRECTION_NO    0
+#define DIRECTION_LEFT  1
+#define DIRECTION_RIGHT 2
+#define DIRECTION_UP    4
+#define DIRECTION_DOWN  8
+
+
+/* Type : ACTION_WAIT
+   Figure waits for x seconds
+   Does not need an extended data structure */
+
+/* Type : ACTION_SIGNAL
+   Figure sends out a signal of a special type to a receiver */
+struct ActionSignal
+{
+   ulong ReceiverId;
+};
+
+/* Type : ACTION_WAIT_SIGNAL
+   Figure waits until it receives a signal of a special type from a special sender */
+struct ActionWaitSignal
+{
+	ulong SenderId;
+};
+
+/* Type : ACTION_USE */
+struct ActionUse
+{
+   ulong ItemId;
+   ulong ToolId;
+};
+
+/* Type : ACTION_TAKE */
+struct ActionTake
+{
+   ulong ItemId;
+   ulong LootId;
+};
+
+/* Type : ACTION_DROP */
+struct ActionDrop
+{
+   ulong ItemId;
+   ulong LootId;
+};
+
+/* Type : ACTION_OPEN */
+struct ActionOpen
+{
+   ulong ItemId;
+};
+
+/* Type : ACTION_CLOSE */
+struct ActionClose
+{
+   ulong ItemId;
+};
+
+/* Type : ACTION_CONTROL */
+struct ActionControl
+{
+   ulong ItemId;
+};
+
+/* LucyG 2017-10-29 : this macro looks suspicious */
+#define ActionData(ac,type)      ((type)(ac+1))
+
+struct Action *InitAction(struct System *sys, uword type, ulong data1, ulong data2, ulong time);
+struct Action *CurrentAction(struct System *sys);
+struct Action *GoFirstAction(struct System *sys);
+struct Action *GoLastAction(struct System *sys);
+struct Action *NextAction(struct System *sys);
+struct Action *PrevAction(struct System *sys);
+ubyte ActionStarted(struct System *sys);
+ubyte ActionEnded(struct System *sys);
+void RemLastAction(struct System *sys);
+void IgnoreAction(struct System *sys);
+
+
+/* Signal structure - to make it possible to communicate between handlers, our small attempt of an message system */
+#define SIGNAL_HURRY_UP    1  /* come on, get on */
+#define SIGNAL_DONE        2  /* well, my work is done */
+#define SIGNAL_ESCAPE      3  /* f..., police is coming, let's go */
+
+struct plSignal
+{
+	NODE  Link;
+
+	ulong	SenderId;
+	ulong	ReceiverId;
+};
+
+struct plSignal *InitSignal(struct System *sys, ulong sender, ulong receiver);
+void CloseSignal(struct plSignal *sig);
+struct plSignal *IsSignal(struct System *sys, ulong sender, ulong receiver);
+
+
+ulong CurrentTimer(struct System *sys);
+void  IncCurrentTimer(struct System *sys, ulong time, ubyte alsoTime);
+ulong GetMaxTimer(struct System *sys);
+
+void ResetMem(void);
+void CorrectMem(LIST *l);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/port/port.c b/cosp-0.6-src/ClouRemake/ClouRemake/port/port.c
new file mode 100644
index 0000000..f32b1fa
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/port/port.c
@@ -0,0 +1,31 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "SDL_byteorder.h"
+#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+#include "SDL_endian.h"
+#endif
+#include "port\port.h"
+
+/**
+ * Convert little to native endian word.
+ */
+void EndianW(uword *pw)
+{
+	#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+	*pw = SDL_Swap16(*pw);
+	#endif
+}
+
+/**
+ * Convert little to native endian long.
+ */
+void EndianL(ulong *pl)
+{
+	#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+	*pl = SDL_Swap32(*pl);
+	#endif
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/port/port.h b/cosp-0.6-src/ClouRemake/ClouRemake/port/port.h
new file mode 100644
index 0000000..df8edf0
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/port/port.h
@@ -0,0 +1,15 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef __port_h__
+#define __port_h__
+
+#include "theclou.h"
+
+extern void EndianW(uword *pw);
+extern void EndianL(ulong *pl);
+
+#endif /* __port_h__ */
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/present/interac.c b/cosp-0.6-src/ClouRemake/ClouRemake/present/interac.c
new file mode 100644
index 0000000..864f5f6
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/present/interac.c
@@ -0,0 +1,707 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "present\interac.h"
+#include "present\interac_p.h"
+
+extern void PlayFromCDROM(void);
+
+void SetBubbleType (uword type)
+{
+	CurrentBubbleType=type;
+}
+
+void SetPictID (uword PictID)
+{
+	ActivPersonPictID = PictID;
+}
+
+ubyte GetExtBubbleActionInfo(void)
+{
+	return ExtBubbleActionInfo;
+}
+
+void SetMenuTimeOutFunc(void *func)
+{
+	MenuTimeOutFunc = (void (*)()) func;
+}
+
+ubyte ChoiceOk (ubyte choice, ubyte xit, LIST *l)
+{
+	if (choice == GET_OUT)
+		return 0;
+
+	if (choice == xit)
+		return 0;
+
+	if (l && !LIST_EMPTY(l))
+	{
+		struct ObjectNode *objNode = (struct ObjectNode *)GetNthNode (l, choice);
+
+		if (!objNode->nr && !objNode->type && !objNode->data)
+			return 0;
+	}
+
+	return 1;
+}
+
+void DrawMenu (LIST *menu, ubyte nr, long mode)
+{
+	ubyte i;
+	char *m1 = 0, *m2 = 0;
+	long x = 8, lastx = 0;
+
+	if (mode == ACTIV_POSS)
+		gfxSetPens(m_wrp, 249, GFX_SAME_PEN, GFX_SAME_PEN);
+	else
+		gfxSetPens(m_wrp, 248, GFX_SAME_PEN, GFX_SAME_PEN);
+
+	for (i=0; i<=nr; i+=2)
+	{
+		m1 = NODE_NAME(GetNthNode (menu, i));
+
+		if ((i+1)<=nr)
+			m2 = NODE_NAME(GetNthNode (menu, i+1));
+		else
+			m2 = NULL;
+
+		if (m2)
+		{
+			if (strlen (m1) > strlen (m2))
+			{
+				lastx = gfxTextLength (m_wrp, m1, strlen (m1));
+				x += lastx;
+			}
+			else
+			{
+				lastx = gfxTextLength (m_wrp, m2, strlen (m2));
+				x += lastx;
+			}
+		}
+		else
+		{
+			lastx = gfxTextLength (m_wrp, m1, strlen (m1));
+			x += lastx;
+		}
+	}
+
+	if (nr == (i-2))
+		gfxPrintExact(m_wrp, m1, x + 8*nr - lastx, TXT_1ST_MENU_LINE_Y);
+	else
+	{
+		if (m2)
+			gfxPrintExact(m_wrp, m2, x + 8*(nr-1) - lastx, TXT_2ND_MENU_LINE_Y);
+	}
+}
+
+char SearchActiv (word delta, ubyte activ, ulong possibility, ubyte ub_max)
+{
+	do
+	{
+		activ += delta;
+
+		if (activ > ub_max)
+			activ = ub_max;
+
+		if (possibility & (1L << activ))
+			return (char)activ;
+	} while ((activ > 0) && (activ < ub_max));
+
+	return -1;
+}
+
+char SearchMouseActiv(ulong possibility, ubyte ub_max)  /* MOD : 14.12.93 hg */
+{
+	char activ;
+	uword x, y;
+
+	inpGetMouseXY(m_wrp, &x, &y);
+
+	if ((y > TXT_1ST_MENU_LINE_Y - 10) && (y < TXT_2ND_MENU_LINE_Y + 10))
+	{
+		ub_max -= 1;
+
+		for (activ = 0; (x >= MenuCoords[activ]) && (activ < ub_max / 2 + 1); activ++);
+
+		activ = (activ - 1) * 2;
+
+		if (y > TXT_1ST_MENU_LINE_Y + 7)
+			activ++;
+
+		if (activ > ub_max)
+			activ = ub_max;
+
+		if (possibility & (1L << activ))
+			return (char) activ;
+	}
+
+	return -1;
+}
+
+void RefreshMenu(void)
+{
+	ubyte ub_max, i;
+
+	if (refreshMenu)
+	{
+		ub_max = GetNrOfNodes (refreshMenu);
+
+		for (i=0; i < ub_max; i++)
+		{
+			if (refreshPoss & (1L << i))
+				DrawMenu (refreshMenu, i, INACTIV_POSS);
+		}
+
+		DrawMenu (refreshMenu, refreshActiv, ACTIV_POSS);
+	}
+}
+
+ubyte Menu (LIST *menu, ulong possibility, ubyte activ, void (*func)(ubyte), ulong waitTime)
+{
+	ubyte i;
+	long action;
+	char nextActiv;
+	ubyte ub_max;
+	char ende = FALSE;
+	uword x;
+	NODE *n;
+	uword l1, l2;
+
+	if (menu && !LIST_EMPTY(menu))
+	{
+		if (!possibility)
+			return 0;
+
+		x = 0;
+
+		for (ub_max = 0, n = (NODE*) LIST_HEAD(menu); NODE_SUCC(n); n = (NODE*) NODE_SUCC(n), ub_max++)
+		{
+			if ((ub_max % 2) == 0)
+			{
+				l1 = 0;
+				l2 = 0;
+
+				MenuCoords[ub_max/2] = x;
+
+				l1 = gfxTextLength (m_wrp, NODE_NAME(n), strlen(NODE_NAME(n))) + 11;
+
+				if(NODE_SUCC(NODE_SUCC(n)))
+					l2 = gfxTextLength (m_wrp, NODE_NAME(NODE_SUCC(n)), strlen(NODE_NAME(NODE_SUCC(n)))) + 11;
+
+				x += max(l1, l2);
+			}
+		}
+
+		for (i=0; i < ub_max; i++)
+		{
+			if (possibility & (1L << i))
+				DrawMenu (menu, i, INACTIV_POSS);
+		}
+
+		DrawMenu (menu, activ, ACTIV_POSS);
+
+		if (func)
+			func (activ);
+
+		if (waitTime)
+			inpSetWaitTicks (waitTime);
+
+		while (!ende)
+		{
+			action = INP_LEFT     | INP_RIGHT | INP_UP | INP_DOWN |
+						INP_LBUTTONP;
+
+			if (waitTime)
+					action |= INP_TIME;
+
+			action = inpWaitFor(action);
+
+			if (action & INP_TIME)
+			{
+				refreshMenu =NULL;
+
+				if (MenuTimeOutFunc)
+					MenuTimeOutFunc();
+				else
+					return (ubyte)TXT_MENU_TIMEOUT;
+			}
+
+			if (action & INP_FUNCTION_KEY)
+			{
+				refreshMenu  = menu;
+				refreshPoss  = possibility;
+				refreshActiv = activ;
+				return ((ubyte)-1);
+			}
+
+			if ((action & INP_ESC) || (action & INP_RBUTTONP))
+				return GET_OUT;
+
+			if (action & INP_LBUTTONP)
+				ende = TRUE;
+
+			if (action & INP_MOUSE)    /* MOD : 14.12.93 hg */
+			{
+				if ((nextActiv = SearchMouseActiv (possibility, ub_max)) != ((char)-1))
+				{
+					if (nextActiv != activ)
+					{
+						DrawMenu (menu, activ, INACTIV_POSS);
+						activ = nextActiv;
+						DrawMenu (menu, activ, ACTIV_POSS);
+
+						if (func)
+							func (activ);
+					}
+				}				
+			}
+			else if (action & INP_MOUSEWHEEL)    
+			{
+				i = 0;
+
+				if (action & INP_UP)
+				{
+					i = 1;
+					do
+					{
+						nextActiv = SearchActiv(-i, activ, possibility, ub_max);
+						i++;
+
+						if (i = 255 && nextActiv == (char)-1)
+						{
+							nextActiv = activ;
+							break;
+						}
+
+					} while (nextActiv == (char)-1);
+				}
+				else if (action & INP_DOWN)
+				{
+					i = 1;
+					do
+					{
+						nextActiv = SearchActiv(i, activ, possibility, ub_max);
+						i++;
+
+						if (i = 255 && nextActiv == (char)-1)
+						{
+							nextActiv = activ;
+							break;
+						}
+
+					} while (nextActiv == (char)-1);
+				}
+
+				DrawMenu(menu, activ, INACTIV_POSS);
+				activ = nextActiv;
+				DrawMenu(menu, activ, ACTIV_POSS);
+
+				if (func)
+					func(activ);
+			}
+			else
+			{
+				if (action & INP_UP || action & INP_DOWN || action & INP_LEFT || action & INP_RIGHT)
+				{
+					i = 0;
+
+					if (action & INP_UP)
+					{
+						i = 1;
+						do
+						{
+							nextActiv = SearchActiv(-i, activ, possibility, ub_max);
+							i++;
+
+							if (i = 255 && nextActiv == (char)-1)
+							{
+								nextActiv = activ;								
+								break;
+							}
+
+						} while (nextActiv == (char)-1);
+					}
+					else if (action & INP_DOWN)
+					{
+						i = 1;
+						do
+						{
+							nextActiv = SearchActiv(i, activ, possibility, ub_max);
+							i++;
+
+							if (i = 255 && nextActiv == (char)-1)
+							{
+								nextActiv = activ;
+								break;
+							}
+
+						} while (nextActiv == (char)-1);
+					}
+					else if (action & INP_LEFT)
+					{
+						i = 2;
+						do
+						{
+							nextActiv = SearchActiv(-i, activ, possibility, ub_max);
+							i--;
+						} while (nextActiv == (char)-1);
+					}
+					else if (action & INP_RIGHT)
+					{
+						i = 2;
+						do
+						{
+							nextActiv = SearchActiv(i, activ, possibility, ub_max);							
+							i--;	
+						} while (nextActiv == (char)-1);
+					}
+
+					DrawMenu(menu, activ, INACTIV_POSS);
+					activ = nextActiv;
+					DrawMenu(menu, activ, ACTIV_POSS);
+
+					if (func)
+						func(activ);
+				}
+			}
+		}
+
+		refreshMenu  = NULL;
+
+		return activ;
+	}
+
+	refreshMenu  = NULL;
+
+	return activ;
+}
+
+void DrawBubble (LIST *bubble, ubyte firstLine, ubyte activ, struct RastPort *rp, ulong ul_max)
+{
+	int i, j;
+	char *line = NULL;
+
+	gfxSetPens (&RefreshRP, 224, 224, 224);
+	gfxRectFill (&RefreshRP, X_OFFSET, 3, X_OFFSET+INT_BUBBLE_WIDTH, 49);
+
+	if (firstLine)
+	{
+		gfxSetDestRPForShow(&RefreshRP);
+		gfxShow(145, GFX_OVERLAY|GFX_NO_REFRESH, 0, X_OFFSET+135, 5);
+	}
+
+	if ((ul_max > (firstLine + NRBLINES)))
+	{
+		gfxSetDestRPForShow(&RefreshRP);
+		gfxShow(146, GFX_OVERLAY|GFX_NO_REFRESH, 0, X_OFFSET+135, 40);
+	}
+
+	for (i = firstLine, j = 4; (ul_max < firstLine + NRBLINES) ? i < ul_max : i < firstLine + NRBLINES; i++, j += 9)
+	{
+		line = NODE_NAME(GetNthNode (bubble, i));
+
+		if (!line)
+			break;
+
+		if (*line != '*')
+		{
+			if (!Config.gfxNoFontShadow) {
+				gfxSetPens (&RefreshRP, BG_TXT_COLOR, GFX_SAME_PEN, GFX_SAME_PEN);
+				gfxPrintExact(&RefreshRP, line, X_OFFSET, j+1);
+			}
+
+			gfxSetPens (&RefreshRP, VG_TXT_COLOR, GFX_SAME_PEN, GFX_SAME_PEN);
+			gfxPrintExact(&RefreshRP, line, X_OFFSET, j);
+		}
+		else
+		{
+			line = line+1;
+
+			if (!Config.gfxNoFontShadow) {
+				if (activ == i)
+					gfxSetPens (&RefreshRP, BG_ACTIVE_COLOR, GFX_SAME_PEN, GFX_SAME_PEN);
+				else
+					gfxSetPens (&RefreshRP, BG_INACTIVE_COLOR, GFX_SAME_PEN, GFX_SAME_PEN);
+
+				gfxPrintExact(&RefreshRP, line, X_OFFSET+1, j+1);
+			}
+
+			if (activ == i)
+				gfxSetPens (&RefreshRP, VG_ACTIVE_COLOR, GFX_SAME_PEN, GFX_SAME_PEN);
+			else
+				gfxSetPens (&RefreshRP, VG_INACTIVE_COLOR, GFX_SAME_PEN, GFX_SAME_PEN);
+
+			gfxPrintExact(&RefreshRP, line, X_OFFSET, j);
+		}
+	}
+
+	gfxBlit(&RefreshRP, X_OFFSET, 3, rp, X_OFFSET, 3, INT_BUBBLE_WIDTH - 3, 46, GFX_ONE_STEP);
+}
+
+ubyte Bubble(LIST *bubble, ubyte activ, void (*func)(ubyte), ulong waitTime)
+{
+	ubyte firstVis = 0;
+	ubyte ende = FALSE;
+	ulong action;
+	long l_max = GetNrOfNodes(bubble);
+	uword x, y;
+	ubyte newactiv;
+
+	SuspendAnim();
+
+	gfxPrepareRefresh();
+
+	if (activ == GET_OUT)
+		activ = 0;
+
+	if (activ >= NRBLINES)
+		firstVis = activ-NRBLINES+1;
+
+	if (func)
+		func (activ);
+
+	if (ActivPersonPictID == (uword)-1)
+		gfxShow ((uword) CurrentBubbleType, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);
+	else
+	{
+		gfxShow ((uword) ActivPersonPictID, GFX_NO_REFRESH|GFX_OVERLAY|GFX_BLEND_UP, 0, -1, -1);
+		gfxShow ((uword) CurrentBubbleType, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);
+
+		if (CurrentBubbleType == SPEAK_BUBBLE)
+			gfxShow((uword) 9, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);
+
+		if (CurrentBubbleType == THINK_BUBBLE)
+			gfxShow((uword)10, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);
+	}
+
+	gfxSetDrMd (&RefreshRP, GFX_JAM_1);
+	gfxSetFont (&RefreshRP, bubbleFont);
+	DrawBubble (bubble, firstVis, activ, u_wrp, l_max);
+
+	
+	if (bCDRom)
+	{
+		PlayFromCDROM();
+	}
+
+	if (waitTime)
+	{
+		inpSetWaitTicks (waitTime);
+		action = inpWaitFor (INP_LBUTTONP | INP_TIME | INP_RBUTTONP);
+
+		if (action & INP_LBUTTONP)
+			activ = 1;
+
+		if ((action & INP_ESC) || (action & INP_RBUTTONP) || (action & INP_TIME))
+			 activ = GET_OUT;
+
+		inpSetWaitTicks (0L);
+
+		ExtBubbleActionInfo = action;
+	}
+	else
+	{
+		while (!ende)
+		{
+			action = inpWaitFor (INP_UP | INP_DOWN | INP_LBUTTONP | INP_RBUTTONP | INP_LEFT | INP_RIGHT );
+
+			ExtBubbleActionInfo = action;
+
+			if ((action & INP_ESC) || (action & INP_RBUTTONP))
+			{
+				activ = GET_OUT;
+				ende  = TRUE;
+			}
+
+			if (!ende)
+			{
+				if (action & INP_LBUTTONP)
+					ende = TRUE;
+
+				if (action & INP_MOUSE)
+				{
+					inpGetMouseXY(u_wrp, &x, &y);
+
+					if ((x >= X_OFFSET) && (x <= X_OFFSET + INT_BUBBLE_WIDTH))
+					{
+						if ((y < 4) && (firstVis > 0))      /* Scroll up */
+						{
+							while ((y < 4) && (firstVis > 0))
+							{
+								firstVis -= 1; activ = firstVis;
+
+								DrawBubble (bubble, firstVis, activ, u_wrp, l_max);
+
+								if (func)
+									func (activ);
+
+								y = inpGetMouseY(u_wrp);
+							}
+						}
+						else if ((y > 48) && (y <= 52) && (firstVis < (l_max - 5))) /* Scroll down */
+						{
+							while ((y > 48) && (y <= 52) && (firstVis < (l_max - 5)))
+							{
+								firstVis += 1; activ = firstVis + 4;
+
+								if (activ > (l_max - 1))
+									activ = l_max - 1;
+
+								DrawBubble (bubble, firstVis, activ, u_wrp, l_max);
+
+								if (func)
+									func (activ);
+
+								y = inpGetMouseY(u_wrp);
+							}
+						}
+						else if ((y >= 4) && (y <= 48))
+						{
+							newactiv = firstVis + (y - 4) / 9;
+
+							if (newactiv != activ)
+							{
+								activ = newactiv;
+
+								if (activ > (l_max - 1))
+									activ = l_max - 1;
+
+								if (activ < firstVis)
+									activ = firstVis;
+
+								if (activ > firstVis + 4)
+									activ = firstVis + 4;
+
+								DrawBubble (bubble, firstVis, activ, u_wrp, l_max);
+
+								if (func)
+									func (activ);
+							}
+						}
+					}
+				}
+				else if (action & INP_MOUSEWHEEL)
+				{
+					if (action & INP_UP)
+					{
+						if (activ > 0)
+						{
+							int cl = abs(firstVis - activ) + 1;
+
+							while ((activ > 0) && cl)
+							{
+								activ--;
+								cl--;
+
+								if (*NODE_NAME(GetNthNode(bubble, activ)) == '*')
+									break;
+							}
+
+							if (activ < firstVis)
+								firstVis = activ;
+
+							DrawBubble(bubble, firstVis, activ, u_wrp, l_max);
+
+							if (func)
+								func(activ);
+						}
+					}
+					else if (action & INP_DOWN)
+					{
+						if (activ < l_max - 1)
+						{
+							int cl = NRBLINES - abs(firstVis - activ);
+
+							while ((activ < l_max - 1) && cl)
+							{
+								activ++;
+								cl--;
+
+								if (*NODE_NAME(GetNthNode(bubble, activ)) == '*')
+									break;
+							}
+
+							if (activ >(firstVis + NRBLINES - 1))
+								firstVis = activ - NRBLINES + 1;
+
+							DrawBubble(bubble, firstVis, activ, u_wrp, l_max);
+
+							if (func)
+								func(activ);
+						}
+					}
+				}
+				else
+				{
+					if (action & INP_UP)
+					{
+						if (activ > 0)
+						{
+							int cl = abs (firstVis-activ) + 1;
+
+							while ((activ > 0) && cl)
+							{
+								activ--;
+								cl--;
+
+								if (*NODE_NAME(GetNthNode (bubble, activ)) == '*')
+									break;
+							}
+
+							if (activ < firstVis)
+								firstVis = activ;
+
+							DrawBubble (bubble, firstVis, activ, u_wrp, l_max);
+
+							if (func)
+								func (activ);
+						}
+					}
+
+					if (action & INP_DOWN)
+					{
+						if (activ < l_max-1)
+						{
+							int cl = NRBLINES - abs (firstVis-activ);
+
+							while ((activ < l_max-1) && cl)
+							{
+								activ++;
+								cl--;
+
+								if (*NODE_NAME(GetNthNode (bubble, activ)) == '*')
+									break;
+							}
+
+							if (activ > (firstVis + NRBLINES-1))
+								firstVis = activ - NRBLINES + 1;
+
+							DrawBubble (bubble, firstVis, activ, u_wrp, l_max);
+
+							if (func)
+								func (activ);
+						}
+					}
+				}
+			}
+		}
+	}
+
+	if (activ != GET_OUT)
+	{
+		if (*NODE_NAME(GetNthNode (bubble, 0L)) != '*')
+			activ=0;
+	}
+
+	SetBubbleType (SPEAK_BUBBLE);
+	SetPictID (MATT_PICTID);
+
+	gfxRefresh();
+
+	ContinueAnim();
+
+	return(activ);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/present/interac.h b/cosp-0.6-src/ClouRemake/ClouRemake/present/interac.h
new file mode 100644
index 0000000..0b7b47c
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/present/interac.h
@@ -0,0 +1,59 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_INTERAC
+#define MODULE_INTERAC
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#define X_OFFSET    112
+#define NRBLINES    5
+
+#define BG_ACTIVE_COLOR   252
+#define VG_ACTIVE_COLOR   254
+
+#define BG_TXT_COLOR      252
+#define VG_TXT_COLOR      254
+
+#define BG_BAR_COLOR      230
+#define VG_BAR_COLOR      230
+
+#define TXT_MENU_TIMEOUT        (-2)
+
+extern ubyte ChoiceOk (ubyte choice, ubyte xit, LIST *l);
+
+extern ubyte Bubble(LIST *bubble, ubyte activ, void (*func)(ubyte), ulong waitTime);
+extern ubyte Menu (LIST *menu, ulong possibility, ubyte activ, void (*func)(ubyte), ulong waitTime);
+
+extern void RefreshMenu(void);
+
+extern void SetBubbleType (uword type);
+extern void SetPictID (uword PictID);
+extern void SetMenuTimeOutFunc(void *func);
+
+extern ubyte GetExtBubbleActionInfo(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/present/interac_p.h b/cosp-0.6-src/ClouRemake/ClouRemake/present/interac_p.h
new file mode 100644
index 0000000..bd2841d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/present/interac_p.h
@@ -0,0 +1,38 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+
+#define ACTIV_POSS   3L
+#define INACTIV_POSS 2L
+#define GHOSTED      1L
+
+#define BG_INACTIVE_COLOR		252
+#define VG_INACTIVE_COLOR		253
+
+#define TXT_MAX_MENU_COLUMNS     8
+#define TXT_1ST_MENU_LINE_Y     24
+#define TXT_2ND_MENU_LINE_Y     36
+
+#define INT_BUBBLE_WIDTH		 200
+
+// misc
+ubyte CurrentBubbleType   = 3;
+ubyte ExtBubbleActionInfo = 0;
+
+uword ActivPersonPictID = MATT_PICTID;
+uword MenuCoords[TXT_MAX_MENU_COLUMNS];
+
+void (*MenuTimeOutFunc)(void);
+
+// refresh
+LIST *refreshMenu  = NULL;
+ubyte refreshActiv = 0;
+ulong refreshPoss  = 0;
+
+
+
+
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/present/present.c b/cosp-0.6-src/ClouRemake/ClouRemake/present/present.c
new file mode 100644
index 0000000..6f4fe70
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/present/present.c
@@ -0,0 +1,251 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "present\present.h"
+#include "present\present_p.h"
+
+struct PresentControl PresentControl = {
+	NULL, 0, 0};
+
+#include "present\presenta.c"
+
+void DrawPresent (LIST *present, ubyte firstLine, struct RastPort *rp, ubyte max)
+{
+	int i, j, k;
+	struct presentationInfo *p;
+	char txt [70],s[10];
+
+	gfxSetPens (&RefreshRP, 224, 224, 224);
+	gfxRectFill (&RefreshRP, 88, 3, 320, 49);
+
+	if (firstLine)
+	{
+		gfxSetDestRPForShow(&RefreshRP);
+		gfxShow(145, GFX_OVERLAY|GFX_NO_REFRESH, 0, 120, 5);
+	}
+
+	if ((max > (firstLine + NRBLINES)))
+	{
+		gfxSetDestRPForShow(&RefreshRP);
+		gfxShow(146, GFX_OVERLAY|GFX_NO_REFRESH, 0, 120, 40);
+	}
+
+	for (i = firstLine, j = 4; (max < firstLine + NRBLINES) ? i<max : i<firstLine + NRBLINES; i++, j += 9)
+	{
+		p = (struct presentationInfo *)GetNthNode (present, i);
+
+		strcpy (txt, NODE_NAME(p));
+
+		switch (p->presentHow)
+		{
+		case PRESENT_AS_TEXT :
+			if(p->extendedText)
+			{
+				for (k = 0; k < (57-strlen (NODE_NAME(p))-strlen(p->extendedText)); k++)
+					strcat (txt, " ");
+
+				strcat (txt, p->extendedText);
+			}
+			break;
+
+		case PRESENT_AS_BAR  :
+			gfxSetPens  (&RefreshRP, 250, 250, 251);
+			gfxRectFill (&RefreshRP, 206, j, 316, j+7);
+			gfxSetPens  (&RefreshRP, 251, 251, 251);
+			gfxRectFill (&RefreshRP, 206, j, 206 + ((316-206)*p->extendedNr)/p->maxNr, j+7);
+
+			gfxSetPens  (&RefreshRP, 249, 252, 253);
+
+			gfxSetRect  (206, 316-206);
+			sprintf  (s,"%ld %%",(p->extendedNr * 100)/(p->maxNr));	// 2017-10-28 LucyG : %%
+
+			gfxPrint    (&RefreshRP,s,j,GFX_PRINT_CENTER);
+			break;
+		}
+
+		if (!Config.gfxNoFontShadow) {	// 2014-07-13 LucyG : forgot this in v0.4
+			gfxSetPens (&RefreshRP, 252, 224, GFX_SAME_PEN);
+			gfxPrintExact(&RefreshRP, txt, 89, j+1);
+		}
+
+		gfxSetPens (&RefreshRP, 254, 224, GFX_SAME_PEN);
+		gfxPrintExact(&RefreshRP, txt, 88, j);
+	}
+
+	gfxBlit(&RefreshRP, 88, 3, rp, 88, 3, 228, 46, GFX_ONE_STEP);
+}
+
+ubyte Present (ulong nr, const char *presentationText,void (*initPresentation)(ulong, LIST*, LIST*))
+{
+	ubyte firstVis;
+	ubyte maxNr;
+	ubyte exitLoop;
+	ulong action;
+	LIST *presentationData, *list;
+	Person obj;
+	Evidence e;
+	uword y;
+
+	presentationData = (LIST*)CreateList(0);
+
+	SuspendAnim();
+
+	gfxPrepareRefresh();
+
+	inpTurnFunctionKey(0);
+
+	if (dbIsObject(nr, Object_Person)) {
+		obj = (Person)dbGetObject(nr);
+		gfxShow(obj->PictID, GFX_NO_REFRESH|GFX_OVERLAY|GFX_BLEND_UP, 0, -1, -1);
+	} else if (dbIsObject(nr, Object_Evidence)) {
+		e = (Evidence)dbGetObject(nr);
+		gfxShow((uword)((Person)dbGetObject(e->pers))->PictID, GFX_NO_REFRESH|GFX_OVERLAY|GFX_BLEND_UP, 0, -1, -1);
+	} else if (dbIsObject(nr, Object_Tool)) {
+		gfxShow(((Tool)(dbGetObject(nr)))->PictID, GFX_NO_REFRESH|GFX_OVERLAY|GFX_BLEND_UP, 0, -1, -1);
+	} else if (dbIsObject(nr, Object_Loot)) {
+		gfxShow(((Loot)(dbGetObject(nr)))->PictID, GFX_NO_REFRESH|GFX_OVERLAY|GFX_BLEND_UP, 0, -1, -1);
+	}
+
+	gfxShow((uword)BIG_SHEET, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1); /* nur die Farben ! */
+
+	list = txtGoKey(PRESENT_TXT, (char *)presentationText);
+
+	if (list) {
+		initPresentation(nr, presentationData, list);
+	}
+
+	maxNr = GetNrOfNodes(presentationData);
+
+	gfxSetDrMd(&RefreshRP, GFX_JAM_1);
+	gfxSetFont(&RefreshRP, bubbleFont);
+
+	firstVis = 0;
+	DrawPresent(presentationData, firstVis, u_wrp, maxNr);
+
+	exitLoop = 0;
+	while (!exitLoop) {
+		action = inpWaitFor (INP_UP+INP_DOWN+INP_LBUTTONP+INP_RBUTTONP);
+
+		if ((action & INP_ESC) || (action & INP_RBUTTONP)) {
+			exitLoop = 1;
+		}
+
+		if (action & INP_LBUTTONP) {
+			exitLoop = 2;
+		}
+
+		if (action & INP_MOUSE) {
+			y = inpGetMouseY(u_wrp);
+
+			while ((y < 9) && (firstVis > 0)) {      /* Scroll up */
+				DrawPresent(presentationData, --firstVis, u_wrp, maxNr);
+				y = inpGetMouseY(u_wrp);
+			}
+
+			while ((y > 50) && (y <= 59) && (firstVis < (maxNr - 5))) { /* Scroll down */
+				DrawPresent (presentationData, ++firstVis, u_wrp, maxNr);
+				y = inpGetMouseY(u_wrp);
+			}
+		} else {
+			if (action & INP_UP) {
+				if (firstVis > 0) {
+					firstVis --;
+					DrawPresent (presentationData, firstVis, u_wrp, maxNr);
+				}
+			}
+
+			if (action & INP_DOWN) {
+				if ((maxNr-NRBLINES > 0) && (firstVis < (maxNr - NRBLINES))) {
+					firstVis++;
+					DrawPresent (presentationData, firstVis, u_wrp, maxNr);
+				}
+			}
+		}
+	}
+
+	RemoveList (list);
+	RemoveList (presentationData);
+
+	gfxRefresh();
+
+	ContinueAnim();
+
+	if (exitLoop == 1) {
+		return ((ubyte)GET_OUT);
+	} else {
+	    return ((ubyte)(exitLoop - 1));
+	}
+}
+
+void AddPresentLine(LIST *l, ubyte presentHow, ulong data, ulong maxNr, LIST *texts, uword textNr)
+{
+	char *name = NULL;
+	struct presentationInfo *p;
+
+	if (textNr != ((uword)-1)) {
+		name = NODE_NAME(GetNthNode(texts, (ulong)textNr));
+	}
+
+	p = (struct presentationInfo *)CreateNode(l, (ulong)sizeof(struct presentationInfo), name);
+
+	p->presentHow = presentHow;
+	p->maxNr      = maxNr;
+
+	switch (presentHow) {
+		case PRESENT_AS_TEXT: {
+			if (data) {
+				strcpy(p->extendedText, (char *)data);
+			} else {
+				strcpy (p->extendedText, "");
+			}
+		} break;
+		case PRESENT_AS_NUMBER: {
+			sprintf(p->extendedText, "%ld", data);
+			p->presentHow = PRESENT_AS_TEXT;
+		} break;
+		case PRESENT_AS_BAR: {
+			p->extendedNr = data;
+		} break;
+	}
+}
+
+void prSetBarPrefs(struct RastPort *p_RP,uword us_BarWidth,uword us_BarHeight,ubyte uch_FCol,ubyte uch_BCol, ubyte uch_TCol)
+{
+	PresentControl.p_CurrRP     = p_RP;
+	PresentControl.us_BarWidth  = us_BarWidth;
+	PresentControl.us_BarHeight = us_BarHeight;
+	PresentControl.uch_FCol     = uch_FCol;
+	PresentControl.uch_BCol     = uch_BCol;
+	PresentControl.uch_TCol		= uch_TCol;
+}
+
+void prDrawTextBar(char *puch_Text,ulong ul_Value,ulong ul_Max,uword us_XPos,uword us_YPos)
+{
+	struct RastPort *p_RP = PresentControl.p_CurrRP;
+	uword us_Width        = PresentControl.us_BarWidth;
+	uword us_Height       = PresentControl.us_BarHeight;
+
+	if(p_RP)
+	{
+		gfxSetRect  (us_XPos, us_Width);
+
+		gfxSetPens  (p_RP, PresentControl.uch_BCol, GFX_SAME_PEN, PresentControl.uch_FCol);
+		gfxRectFill (p_RP, us_XPos, us_YPos, us_XPos + us_Width - 1, us_YPos + us_Height - 1);
+
+		us_Width = (uword) ((us_Width * ul_Value) / ul_Max);
+
+		gfxSetPens  (p_RP, PresentControl.uch_FCol, GFX_SAME_PEN, GFX_SAME_PEN);
+		gfxRectFill (p_RP, us_XPos, us_YPos, us_XPos + us_Width - 1, us_YPos + us_Height - 1);
+
+		gfxSetPens  (p_RP, PresentControl.uch_TCol, GFX_SAME_PEN, GFX_SAME_PEN);
+
+		if(puch_Text)
+		{
+			gfxSetDrMd(p_RP, GFX_JAM_1);
+			gfxPrint  (p_RP, puch_Text, us_YPos + 2, GFX_PRINT_CENTER);
+		}
+	}
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/present/present.h b/cosp-0.6-src/ClouRemake/ClouRemake/present/present.h
new file mode 100644
index 0000000..7cb5d74
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/present/present.h
@@ -0,0 +1,72 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_PRESENT
+#define MODULE_PRESENT
+
+#include <math.h>
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_DATAAPPL
+#include "data\dataappl.h"
+#endif
+
+#ifndef MODULE_SCENES
+#include "scenes\scenes.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#define PRESENT_AS_TEXT       1
+#define PRESENT_AS_BAR        2
+#define PRESENT_AS_NUMBER     3
+
+extern ubyte Present (ulong nr, const char *presentationText,void (*initPresentation)(ulong,LIST *,LIST*));
+
+extern void InitPersonPresent(ulong nr,LIST *presentationData,LIST *texts);
+extern void InitCarPresent(ulong nr,LIST *presentationData,LIST *texts);
+extern void InitPlayerPresent(ulong nr,LIST *presentationData,LIST *texts);
+extern void InitBuildingPresent(ulong nr,LIST *presentationData,LIST *texts);
+extern void InitToolPresent(ulong nr,LIST *presentationData,LIST *texts);
+extern void InitObjectPresent(ulong nr, LIST *presentationData, LIST *texts);
+extern void InitEvidencePresent(ulong nr, LIST *presentationData, LIST *texts);
+extern void InitLootPresent(ulong nr, LIST *presentationData, LIST *texts);
+extern void InitOneLootPresent(ulong nr, LIST *presentationData, LIST *texts);
+
+extern void prSetBarPrefs(struct RastPort *p_RP,uword us_BarWidth,uword us_BarHeight,ubyte uch_FCol,ubyte uch_BCol, ubyte uch_TCol);
+extern void prDrawTextBar(char *puch_Text,ulong ul_Value,ulong ul_Max,uword us_XPos,uword us_YPos);
+
+extern void DrawPresent (LIST *present, ubyte firstLine, struct RastPort *rp, ubyte max);
+extern void AddPresentLine(LIST *l,ubyte presentHow,ulong data,ulong max,LIST *texts,uword textNr);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/present/present_p.h b/cosp-0.6-src/ClouRemake/ClouRemake/present/present_p.h
new file mode 100644
index 0000000..128bc85
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/present/present_p.h
@@ -0,0 +1,35 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+
+#define BAR_WIDTH         	 255
+
+struct PresentControl
+     {
+     struct RastPort *p_CurrRP;
+
+     uword     us_BarWidth;
+     uword     us_BarHeight;
+
+     ubyte     uch_FCol;
+	  ubyte     uch_BCol;
+	  ubyte		uch_TCol;
+     };
+
+struct presentationInfo
+	{
+	NODE link;
+
+	char  extendedText[70];
+	ulong extendedNr;
+	ulong maxNr;
+
+	ubyte presentHow;
+	};
+
+
+
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/present/presenta.c b/cosp-0.6-src/ClouRemake/ClouRemake/present/presenta.c
new file mode 100644
index 0000000..80e1382
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/present/presenta.c
@@ -0,0 +1,282 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+void InitEvidencePresent(ulong nr, LIST *presentationData, LIST *texts)
+{
+	Evidence e = (Evidence)dbGetObject(nr);
+	char data[TXT_KEY_LENGTH];
+
+	dbGetObjectName(e->pers, data);
+
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,0);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)e->Recognition,255L,texts,1);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)e->WalkTrail,255L,texts,2);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)e->WaitTrail,255L,texts,3);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)e->WorkTrail,255L,texts,4);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)e->KillTrail,255L,texts,5);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)e->CallTrail,255L,texts,6);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)e->FotoTrail,255L,texts,8);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)e->PaperTrail,255L,texts,7);
+}
+
+void InitLootPresent(ulong nr, LIST *presentationData, LIST *texts)
+{
+	CompleteLoot comp = (CompleteLoot)dbGetObject(CompleteLoot_LastLoot);
+	ulong total;
+
+	RemoveList(tcMakeLootList(Person_Matt_Stuvysunt, Relation_has));
+
+	total = comp->Bild + comp->Gold + comp->Geld + comp->Juwelen +
+	    comp->Statue + comp->Kuriositaet + comp->HistKunst +
+	    comp->GebrauchsArt + comp->Vase + comp->Delikates;
+
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,comp->Bild,0L,texts,0);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,comp->Gold,0L,texts,1);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,comp->Geld,0L,texts,2);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,comp->Juwelen,0L,texts,3);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,comp->Delikates,0L,texts,4);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,comp->Statue,0L,texts,5);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,comp->Kuriositaet,0L,texts,6);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,comp->HistKunst,0L,texts,7);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,comp->GebrauchsArt,0L,texts,8);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,comp->Vase,0L,texts,9);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,total,0L,texts,10);
+}
+
+void InitOneLootPresent(ulong nr, LIST *presentationData, LIST *texts)
+{
+	Loot loot = (Loot)dbGetObject(nr);
+	char data[TXT_KEY_LENGTH];
+	ulong value;
+
+	if (loot->Name == Kein_Name)
+		dbGetObjectName(nr, data);
+	else
+	    txtGetNthString(OBJECTS_ENUM_TXT,"enum_LootNameE", loot->Name, data);
+
+	AddPresentLine(presentationData,PRESENT_AS_TEXT, (ulong)data ,0L, texts, 4);
+
+	/* some nice guy put the value in this relation */
+	/* (... and because he is really nice, he will kill this one after usage) */
+	value = GetP (loot, hasLootRelationID, loot);
+
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER, value ,0L, texts, 5);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER, loot->Weight,0L, texts, 6);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER, loot->Volume,0L, texts, 7);
+}
+
+void InitObjectPresent(ulong nr, LIST *presentationData, LIST *texts)
+{
+	LSObject lso = (LSObject)dbGetObject(nr);
+	char data[TXT_KEY_LENGTH];
+	LIST *l;
+
+	dbGetObjectName(lso->Type, data);
+
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,0);
+
+	if(lso->uch_Chained & Const_tcCHAINED_TO_ALARM)
+		AddPresentLine(presentationData,PRESENT_AS_TEXT,0L,0L,texts,2);
+
+	if(lso->uch_Chained & Const_tcCHAINED_TO_POWER)
+		AddPresentLine(presentationData,PRESENT_AS_TEXT,0L,0L,texts,1);
+
+	if(lso->Type == Item_Stechuhr)
+		AddPresentLine(presentationData,PRESENT_AS_NUMBER,ClockTimerGet(nr, nr),0L,texts,8);
+
+	l = tcMakeLootList(nr, hasLootRelationID);
+
+	if(LIST_EMPTY(l))
+		AddPresentLine(presentationData,PRESENT_AS_TEXT,0L,0L,texts,3);
+
+	RemoveList (l);
+}
+
+void InitToolPresent(ulong nr,LIST *presentationData,LIST *texts)
+{
+	char data[TXT_KEY_LENGTH], i;
+	Tool  obj;
+	NODE  *n;
+	LIST  *tools     = txtGoKey(OBJECTS_ENUM_TXT,"enum_ItemE");
+	LIST  *abilities = txtGoKey(OBJECTS_ENUM_TXT,"enum_AbilityE");
+
+	obj=(Tool)dbGetObject(nr);
+
+	dbGetObjectName(nr,data);
+
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,0);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)tcGetToolTraderOffer(obj),0L,texts,1);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)tcRGetDanger(obj),255L,texts,3);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)tcRGetVolume(obj),255L,texts,4);
+
+	/*** Werkzeuge ***/
+
+	toolRequiresAll(nr, OLF_INCLUDE_NAME|OLF_NORMAL, Object_Tool);
+
+	for(n=(NODE*)LIST_HEAD(ObjectList), i = 5; NODE_SUCC(n); n=(NODE*)NODE_SUCC(n), i = 6)
+		AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)(NODE_NAME(n)),0L,texts,i);
+
+	/*** Eigenschaften ***/
+
+	toolRequiresAll(nr, OLF_INCLUDE_NAME|OLF_NORMAL, Object_Ability);
+
+	if (!LIST_EMPTY(ObjectList))
+	{
+		AddPresentLine(presentationData,PRESENT_AS_TEXT,0L,0L,texts,8L); /* "ben�tigt Wissen �ber..." */
+
+		for(n = (NODE*) LIST_HEAD(ObjectList); NODE_SUCC(n); n = (NODE*)NODE_SUCC(n))
+		{
+			Ability ability = (Ability)OL_DATA(n);
+
+			AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)toolRequiresGet(nr, OL_NR(n)),255L,abilities,(uword)ability->Name);
+		}
+	}
+
+	/*** Verwendung ***/
+
+	breakAll(nr, OLF_INCLUDE_NAME|OLF_NORMAL, Object_Item);
+
+	if(!(LIST_EMPTY(ObjectList)))
+		AddPresentLine(presentationData, PRESENT_AS_TEXT, 0L, 0L, texts, 7);
+
+	for(n = (NODE*)LIST_HEAD(ObjectList); NODE_SUCC(n); n = (NODE*)NODE_SUCC(n))
+	{
+		ulong itemNr = OL_NR(n);
+		ulong time   = breakGet(nr, itemNr);
+		Item  item   = (Item)OL_DATA(n);
+
+		sprintf(data,"%0.2ld:%0.2ld", time / 60, time % 60);
+
+		AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,tools,(uword)item->Type);
+	}
+
+	RemoveList(tools);
+	RemoveList(abilities);
+}
+
+void InitBuildingPresent(ulong nr,LIST *presentationData,LIST *texts)
+{
+	char data[TXT_KEY_LENGTH];
+	Building obj;
+
+	obj=(Building)dbGetObject(nr);
+
+	dbGetObjectName(nr,data);
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,0);
+
+	BuildTime((ulong)tcGetBuildPoliceT(obj),txtGetLanguage(),data);
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,1);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)tcGetBuildValues(obj),255L,texts,2);
+
+	txtGetNthString (OBJECTS_ENUM_TXT, "enum_RouteE", (ulong) obj->EscapeRoute, data);
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,3);
+
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Exactlyness,255L,texts,4);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)tcGetBuildGRate(obj),255L,texts,5);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)tcRGetBuildStrike(obj),255L,texts,6);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->RadioGuarding,255L,texts,7);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->GuardStrength,255L,texts,8);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->MaxVolume,255L,texts,9);
+}
+
+
+void InitPlayerPresent(ulong nr,LIST *presentationData,LIST *texts)
+{
+	Player player = (Player) dbGetObject(nr);
+
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)player->Money,0L,texts,0);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)player->StolenMoney,0L,texts,1);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)player->MyStolenMoney,0L,texts,2);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)player->MattsPart,0L,texts,3);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)player->NrOfBurglaries,0L,texts,4);
+}
+
+void InitPersonPresent(ulong nr,LIST *presentationData,LIST *texts)
+{
+	char   data[TXT_KEY_LENGTH],i;
+	LIST    *abilities=NULL;
+	NODE    *node;
+	ulong   abiNr;
+	Person  obj;
+	Ability abi;
+
+	obj=(Person)dbGetObject(nr);
+
+	dbGetObjectName(nr,data);
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,0);
+
+	txtGetNthString (OBJECTS_ENUM_TXT, "enum_JobE", (ulong) obj->Job, data);
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,1);
+
+	txtGetNthString (OBJECTS_ENUM_TXT, "enum_SexE", (ulong)obj->Sex, data);
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,2);
+
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)obj->Age,0L,texts,3);
+
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Health,255L,texts,4);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Mood,255L,texts,5);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Intelligence,255L,texts,6);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Strength,255L,texts,7);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Stamina,255L,texts,8);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Loyality,255L,texts,9);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Skill,255L,texts,10);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Known,255L,texts,11);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Popularity,255L,texts,12);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Avarice,255L,texts,13);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)(255-obj->Panic),255L,texts,14);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)(obj->KnownToPolice),255L,texts,15);
+
+	hasAll(nr,OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR,Object_Ability);
+	abilities = ObjectListPrivate;
+
+	if(!(LIST_EMPTY(abilities)))
+	{
+		AddPresentLine(presentationData,PRESENT_AS_TEXT,0L,0L,texts,16);
+
+		for(node=(NODE*)LIST_HEAD(abilities),i=0;NODE_SUCC(node);node=(NODE*)NODE_SUCC(node),i++)
+		{
+			abiNr =  ((struct ObjectNode *)GetNthNode(abilities,(ulong)i))->nr;
+			abi   =  (Ability)dbGetObject(abiNr);
+
+			txtGetNthString (OBJECTS_ENUM_TXT, "enum_AbilityE", (ulong)abi->Name, data);
+			CreateNode (texts,0L,data);
+
+			AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)hasGet(nr,abiNr),255L,texts,17+i);
+		}
+	}
+
+	RemoveList(abilities);
+}
+
+void InitCarPresent(ulong nr,LIST *presentationData,LIST *texts)
+{
+	char data[TXT_KEY_LENGTH];
+	Car obj;
+
+	obj=(Car)dbGetObject(nr);
+
+	dbGetObjectName(nr,data);
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,0);
+
+	txtGetNthString (OBJECTS_ENUM_TXT, "enum_LandE", (ulong) obj->Land, data);
+	AddPresentLine(presentationData,PRESENT_AS_TEXT,(ulong)data,0L,texts,1);
+
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)tcRGetCarAge(obj),0L,texts,2);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)tcGetCarPrice(obj),0L,texts,3);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)tcGetCarPS(obj),0L,texts,4);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)tcGetCarSpeed(obj),0L,texts,5);
+	AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)obj->PlacesInCar,0L,texts,6);
+
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->State,255L,texts,7);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->BodyWorkState,255L,texts,8);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->TyreState,255L,texts,9);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->MotorState,255L,texts,10);
+	if (!bProfidisk)
+		AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Capacity,7000000L,texts,11);
+	else
+		AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)obj->Capacity,9000000L,texts,11);
+	AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)tcGetCarStrike(obj),255L,texts,12);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/random/random.c b/cosp-0.6-src/ClouRemake/ClouRemake/random/random.c
new file mode 100644
index 0000000..ccddd30
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/random/random.c
@@ -0,0 +1,28 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "random\random.h"
+
+void rndInit(void)
+{
+	#ifndef __COSP__
+	randomize();	/* Zufallszahl �ber Timer initialiseren */
+	#else
+	srand(time(NULL));
+	#endif
+}
+
+void rndDone(void)
+	{
+	return;
+	}
+
+ulong CalcRandomNr(ulong l_limit, ulong u_limit)
+	{
+	ulong x = l_limit + (rand() % (u_limit - l_limit));
+
+	return x;
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/random/random.h b/cosp-0.6-src/ClouRemake/ClouRemake/random/random.h
new file mode 100644
index 0000000..2d84fc2
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/random/random.h
@@ -0,0 +1,25 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_RANDOM
+#define MODULE_RANDOM
+
+#include "theclou.h"
+
+#ifndef __STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifndef __TIME_H
+#include <time.h>
+#endif
+
+extern void rndInit(void);
+extern void rndDone(void);
+
+extern ulong CalcRandomNr(ulong l_limit, ulong u_limit);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/scenes/cars.c b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/cars.c
new file mode 100644
index 0000000..d5d758d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/cars.c
@@ -0,0 +1,440 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "scenes\scenes.h"
+
+void SetCarColors(ubyte index)
+{
+	ubyte Col[10][4][3]= {
+          {{ 8,  8,  8}, { 7,  7,  7}, { 6,  6,  6}, { 5,  5,  5}},
+	     {{ 1, 12,  8}, { 3,  9,  6}, { 3,  6,  4}, { 2,  5,  3}},
+	     {{ 7, 15, 15}, { 7, 13, 12}, { 5, 10, 10}, { 4,  8,  8}},
+	     {{12,  0,  7}, {10,  0,  9}, { 9,  0,  8}, { 7,  0,  6}},
+          {{12,  8,  7}, {11,  7,  6}, { 9,  6,  6}, { 8,  5,  5}},
+	     {{13, 13, 13}, {12, 12, 12}, {10, 10, 10}, { 8,  8,  8}},
+	     {{14,  0,  3}, {13,  0,  3}, {11,  0,  2}, { 9,  0,  2}},
+	     {{ 0, 14,  1}, { 0, 12,  0}, { 0, 10,  0}, { 0,  8,  0}},
+	     {{ 0,  6, 15}, { 0,  4, 13}, { 0,  2, 11}, { 0,  0,  9}},
+	     {{15, 15,  6}, {13, 13,  3}, {11, 11,  1}, { 9,  9,  0}}};
+
+	 // RGB8
+	gfxSetRGB(l_wrp, 8,(long)Col[index][0][0]<<3,(long)Col[index][0][1]<<3,(long)Col[index][0][2]<<3);
+	gfxSetRGB(l_wrp, 9,(long)Col[index][1][0]<<3,(long)Col[index][1][1]<<3,(long)Col[index][1][2]<<3);
+	gfxSetRGB(l_wrp,10,(long)Col[index][2][0]<<3,(long)Col[index][2][1]<<3,(long)Col[index][2][2]<<3);
+	gfxSetRGB(l_wrp,11,(long)Col[index][3][0]<<3,(long)Col[index][3][1]<<3,(long)Col[index][3][2]<<3);
+	gfxSetRGB(l_wrp,40,(long)Col[index][0][0]<<2,(long)Col[index][0][1]<<2,(long)Col[index][0][2]<<2);
+	gfxSetRGB(l_wrp,41,(long)Col[index][1][0]<<2,(long)Col[index][1][1]<<2,(long)Col[index][1][2]<<2);
+	gfxSetRGB(l_wrp,42,(long)Col[index][2][0]<<2,(long)Col[index][2][1]<<2,(long)Col[index][2][2]<<2);
+	gfxSetRGB(l_wrp,43,(long)Col[index][3][0]<<2,(long)Col[index][3][1]<<2,(long)Col[index][3][2]<<2);
+}
+
+char *tcShowPriceOfCar(ulong nr, ulong type, void *data)
+	{
+	static char line [TXT_KEY_LENGTH];
+	char        line1[TXT_KEY_LENGTH];
+	Car car = (Car) data;
+
+	txtGetFirstLine (BUSINESS_TXT,"PRICE_AND_MONEY",line1);
+	sprintf (line, line1, tcGetCarPrice(car));
+
+	return line;
+	}
+
+void tcBuyCar(void)
+	{
+	LIST  *bubble = NULL;
+	ubyte  choice = 0, choice1 = 0;
+	Car    matts_car;
+	Person marc = (Person) dbGetObject(Person_Marc_Smith);
+
+	while ((choice1!=2) && (choice != GET_OUT))
+		{
+		ObjectListSuccString = (char *(__cdecl *)(ulong,ulong,void *))tcShowPriceOfCar;
+		ObjectListWidth = 48;
+
+		hasAll(Person_Marc_Smith, OLF_ALIGNED|OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_ADD_SUCC_STRING, Object_Car);
+		bubble = ObjectListPrivate;
+
+		ObjectListSuccString = NULL;
+		ObjectListWidth = 0;
+
+		if (!(LIST_EMPTY(bubble)))
+			{
+			char exp[TXT_KEY_LENGTH];
+
+			txtGetFirstLine(BUSINESS_TXT, "THANKS", exp);
+			ExpandObjectList(bubble, exp);
+
+			ShowMenuBackground();
+
+			if (ChoiceOk(choice = Bubble(bubble,0,0L,0L), GET_OUT, bubble))
+				{
+				matts_car = (Car)dbGetObject(((struct ObjectNode *)GetNthNode(bubble,(ulong)choice))->nr);
+
+				SetCarColors((ubyte)matts_car->ColorIndex);
+				gfxShow((uword)matts_car->PictID,GFX_NO_REFRESH|GFX_OVERLAY,0L,-1L,-1L);
+
+				if (Present (((struct ObjectNode *)GetNthNode(bubble,(ulong)choice))->nr,"Car",InitCarPresent))
+					{
+					choice1 = Say(BUSINESS_TXT,0,MATT_PICTID,"AUTOKAUF");
+
+					AddVTime(7);
+
+					if(choice1==1)
+						{
+						long price = tcGetCarPrice(matts_car);
+
+						if (tcSpendMoney(price,0))
+							{
+							ulong carID = ((struct ObjectNode *)GetNthNode(bubble,(ulong)choice))->nr;
+
+							hasSet(Person_Matt_Stuvysunt, carID);
+							hasUnSet(Person_Marc_Smith, carID);
+
+							Say(BUSINESS_TXT,0,marc->PictID,"GOOD CAR");
+							}
+
+						if(Say(BUSINESS_TXT,0,MATT_PICTID,"NACH_AUTOKAUF")==1)
+							choice1 = 2;
+						}
+					}
+
+				gfxShow(27,GFX_NO_REFRESH|GFX_ONE_STEP,0L,-1L,-1L);
+				}
+			else
+				choice = GET_OUT;
+			}
+		else
+			{
+			Say(BUSINESS_TXT,0,marc->PictID,"NO_CAR");
+			choice = GET_OUT;
+			}
+
+		RemoveList(bubble);
+		}
+	}
+
+void tcCarInGarage(ulong carID)
+	{
+	ubyte     choice1=0;
+	Car       matts_car;
+	Person    marc = (Person) dbGetObject(Person_Marc_Smith);
+
+	matts_car = (Car)dbGetObject(carID);
+
+	while(choice1 != 5)
+		{
+		ShowMenuBackground();
+
+		switch(choice1=Say(BUSINESS_TXT,choice1,7,"GARAGE"))
+			{
+			case 0:
+				/* Analyse des Wagens */
+				 tcCarGeneralOverhoul(matts_car);
+				 break;
+			case 1:
+				/* Karosserie */
+				tcRepairCar(matts_car,"BodyRepair");
+				break;
+			case 2:
+				/* Reifen */
+				tcRepairCar(matts_car,"TyreRepair");
+				break;
+			case 3:
+				/* Motor  */
+				tcRepairCar(matts_car,"MotorRepair");
+				break;
+			case 4:
+				if (carID != Car_Jaguar_XK_1950)
+					tcColorCar(matts_car);
+				else
+					Say(BUSINESS_TXT, 0, marc->PictID, "JAGUAR_COLOR");
+				break;
+			default:
+				break;
+			}
+		}
+	}
+
+void tcColorCar(Car car)
+	{
+	LIST   *colors,*bubble;
+	ubyte  choice;
+	ulong  costs;
+	Person marc = (Person) dbGetObject(Person_Marc_Smith);
+
+	costs  = (ulong)tcColorCosts(car);
+
+	bubble = txtGoKeyAndInsert (BUSINESS_TXT,"LACKIEREN",(ulong)costs,NULL);
+
+	SetPictID(marc->PictID);
+	Bubble(bubble,0,0L,0L);
+	RemoveList(bubble);
+
+	if (Say(BUSINESS_TXT,0,MATT_PICTID,"LACKIEREN_ANT")==0)
+		{
+		colors = txtGoKey (OBJECTS_ENUM_TXT, "enum_ColorE");
+
+		txtPutCharacter (colors, 0, '*');
+
+		if (tcSpendMoney(costs,1))
+			{
+			char exp[TXT_KEY_LENGTH];
+
+			txtGetFirstLine (BUSINESS_TXT, "NO_CHOICE", exp);
+			ExpandObjectList (colors, exp);
+
+			if (ChoiceOk (choice = Bubble(colors,(ubyte)car->ColorIndex,0L,0L), GET_OUT, colors))
+				{
+				car->ColorIndex=(ubyte)choice;
+
+				SetCarColors(car->ColorIndex);
+				gfxPrepareRefresh();
+				PlayAnim("Umlackieren",3000,GFX_DONT_SHOW_FIRST_PIC);
+
+				inpSetWaitTicks(200L);
+
+				inpWaitFor(INP_LBUTTONP|INP_TIME);
+
+				StopAnim();
+				inpSetWaitTicks(1L);
+
+				gfxRefresh();
+				//gfxShow(26,GFX_NO_REFRESH|GFX_ONE_STEP,0L,-1L,-1L);
+				//gfxShow((uword)car->PictID,GFX_NO_REFRESH|GFX_OVERLAY,1L,-1L,-1L);
+				}
+			}
+
+		RemoveList(colors);
+		}
+
+	AddVTime(137);
+	}
+
+void tcSellCar(ulong ObjectID)
+	{
+	LIST      *bubble;
+	ulong     offer;
+	Car       car;
+	Person    marc = (Person) dbGetObject(Person_Marc_Smith);
+
+	car    = (Car) dbGetObject (ObjectID);
+	offer  = tcGetCarTraderOffer(car);
+
+	if (tcRGetCarAge(car) < 1)
+		bubble = txtGoKeyAndInsert(BUSINESS_TXT,"ANGEBOT_1",tcRGetCarValue(car),offer,NULL);
+	else
+		bubble = txtGoKeyAndInsert (BUSINESS_TXT,"ANGEBOT",tcRGetCarValue(car),tcRGetCarAge(car),offer,NULL);
+
+	SetPictID (marc->PictID);
+	Bubble (bubble,0,0L,0L);
+	RemoveList (bubble);
+
+	if ((Say(BUSINESS_TXT,0,MATT_PICTID,"VERKAUF"))==0)
+		{
+		if (GamePlayMode & GP_MORE_MONEY) {	// Lucy 2017-11-08 new cheat
+			if (offer > 0) offer = (offer * 3) / 2;
+		}
+		tcAddPlayerMoney(offer);
+
+		hasSet(Person_Marc_Smith,ObjectID);
+		hasUnSet(Person_Matt_Stuvysunt,ObjectID);
+		}
+
+	gfxShow(27,GFX_NO_REFRESH|GFX_ONE_STEP,0L,-1L,-1L);
+	AddVTime(97);
+	}
+
+void tcRepairCar(Car car,char *repairWhat)
+	{
+	LIST   *presentationData = (LIST*)CreateList(0);
+	LIST   *list = NULL;
+	ubyte  *item=NULL,enough=1,type=7,ready=0;
+	ulong  costs=0L,choice=0L,totalCosts=0L;
+	uword  line=0;
+	Person marc = (Person) dbGetObject(Person_Marc_Smith);
+
+	if (strcmp(repairWhat,"MotorRepair")==0)
+		{
+		item  = &car->MotorState;
+		costs = tcCostsPerEngineRepair(car);
+		type  = 1;
+		}
+	else
+		{
+		if (strcmp(repairWhat,"BodyRepair")==0)
+			{
+			item  = &car->BodyWorkState;
+			costs = tcCostsPerBodyRepair(car);
+			type  = 2;
+			}
+		else
+			{
+			if (strcmp(repairWhat,"TyreRepair")==0)
+				{
+				item  = &car->TyreState;
+				costs = tcCostsPerTyreRepair(car);
+				type  = 4;
+				}
+			else
+				costs = tcCostsPerTotalRepair(car);
+			}
+		}
+
+	if (!(enough = tcSpendMoney(costs,0)))
+		return;
+
+	list = txtGoKey (PRESENT_TXT,repairWhat);
+
+	gfxPrepareRefresh();
+	gfxShow ((uword)BIG_SHEET, GFX_NO_REFRESH|GFX_OVERLAY, 0L, -1L, -1L);
+	inpSetWaitTicks(3L);
+
+	PlayAnim("Reperatur",30000,GFX_DONT_SHOW_FIRST_PIC);
+
+	while (!(choice & INP_LBUTTONP) && enough && (!ready))
+		{
+		line=0;
+
+		AddVTime(3);
+
+		AddPresentLine(presentationData,PRESENT_AS_TEXT,0L,0L,list,line++);
+
+		if(item)
+			AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)(*item),255L,list,line++);
+
+		AddPresentLine(presentationData,PRESENT_AS_BAR,(ulong)(car->State),255L,list,line++);
+
+		AddPresentLine(presentationData,PRESENT_AS_NUMBER,totalCosts,0L,list,line++);
+		AddPresentLine(presentationData,PRESENT_AS_NUMBER,(ulong)tcGetPlayerMoney,0L,list,line++);
+
+		DrawPresent(presentationData,0,u_wrp,(ubyte) GetNrOfNodes(presentationData));
+
+		RemoveNode(presentationData,NULL);
+
+		choice = inpWaitFor(INP_LBUTTONP|INP_TIME);
+
+		if (choice & INP_TIME)
+			{
+			if (enough = tcSpendMoney(costs,1))
+				{
+				totalCosts += costs;
+
+				if (type & 1)
+					tcSetCarMotorState(car,1);
+
+				if (type & 2)
+					tcSetCarBodyState(car,1);
+
+				if (type & 4)
+					tcSetCarTyreState(car,1);
+				}
+			}
+
+		if (item)
+			{
+			if ((*item) == 255)
+				{
+				StopAnim();
+				gfxRefresh();
+				Say(BUSINESS_TXT,0,marc->PictID,"REP_READY");
+				ready = 1;
+				}
+			}
+		else
+			{
+			if (tcGetCarTotalState(car) > 253)
+				{
+				StopAnim();
+				gfxRefresh();
+				Say(BUSINESS_TXT,0,marc->PictID,"REP_READY");
+				ready = 1;
+				}
+			}
+		}
+
+	if (!ready)
+		{
+		StopAnim();
+		gfxRefresh();
+		}
+
+	inpSetWaitTicks(0L);
+
+	//gfxShow(26,GFX_NO_REFRESH|GFX_ONE_STEP,0L,-1L,-1L);
+	//gfxShow((uword)car->PictID,GFX_NO_REFRESH|GFX_OVERLAY,1L,-1L,-1L);
+
+	RemoveList(presentationData);
+	RemoveList(list);
+	}
+
+ulong tcChooseCar(ulong backgroundNr)
+	{
+	LIST  *bubble;
+	ulong carCount, carID = 0L;
+	ubyte choice;
+	Car matts_car;
+
+	hasAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Car);
+	bubble = ObjectListPrivate;
+
+	if (!(LIST_EMPTY(bubble)))
+	{
+		carCount = GetNrOfNodes(bubble);
+
+		choice = 0;	// 2014-07-01 LucyG: initialize
+
+		if(carCount == 1)
+		{
+			carID = OL_NR(LIST_HEAD(bubble));
+		}
+		else
+		{
+			char exp[TXT_KEY_LENGTH];
+
+			txtGetFirstLine (BUSINESS_TXT, "NO_CHOICE", exp);
+			ExpandObjectList (bubble, exp);
+
+			Say(BUSINESS_TXT,0,7,"ES GEHT UM..");
+
+			choice = Bubble(bubble,0,0L,0L);
+			if (ChoiceOk(choice, GET_OUT, bubble))
+				carID  =  OL_NR(GetNthNode(bubble,(ulong)choice));
+			else
+				choice = GET_OUT;
+		}
+
+		if (choice != GET_OUT)
+		{
+			matts_car = (Car)dbGetObject(carID);
+			SetCarColors((ubyte)matts_car->ColorIndex);
+			gfxShow(backgroundNr,GFX_NO_REFRESH|GFX_ONE_STEP,0L,-1L,-1L);
+			gfxShow((uword)matts_car->PictID,GFX_NO_REFRESH|GFX_OVERLAY,1L,-1L,-1L);
+		}
+	}
+
+	RemoveList(bubble);
+
+	return(carID);
+	}
+
+void tcCarGeneralOverhoul(Car car)
+	{
+	Person marc = (Person)dbGetObject(Person_Marc_Smith);
+	LIST *bubble;
+	ubyte choice;
+
+	SetPictID (marc->PictID);
+
+	bubble = txtGoKeyAndInsert (BUSINESS_TXT, "GENERAL_OVERHOUL", (ulong)((tcCostsPerTotalRepair(car) * 255) / 8), NULL);
+	Bubble (bubble, 0, 0L, 0L);
+	RemoveList (bubble);
+
+	choice = Say (BUSINESS_TXT, 0, MATT_PICTID, "GENERAL_OVERHOUL_QUEST");
+
+	if (choice == 0)
+		tcRepairCar(car,"TotalRepair");
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/scenes/dealer.c b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/dealer.c
new file mode 100644
index 0000000..36b98c8
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/dealer.c
@@ -0,0 +1,277 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "scenes\scenes.h"
+
+void tcDealerDlg(void)
+	{
+	ulong locNr = GetObjNrOfLocation(GetLocation);
+	Person dealer = NULL;
+	ubyte dealerNr, choice = 0;
+
+	if (locNr == Location_Parker)
+	{
+		dealer = (Person)dbGetObject(Person_Helen_Parker); knowsSet(Person_Matt_Stuvysunt, Person_Helen_Parker); dealerNr = 2;
+	}
+	else if (locNr == Location_Maloya)
+	{
+		dealer = (Person)dbGetObject(Person_Frank_Maloya); knowsSet(Person_Matt_Stuvysunt, Person_Frank_Maloya); dealerNr = 0;
+	}
+	else if (locNr == Location_Pooly)
+	{
+		dealer = (Person)dbGetObject(Person_Eric_Pooly); knowsSet(Person_Matt_Stuvysunt, Person_Eric_Pooly); dealerNr = 1;
+	}
+
+	while((choice != 2) && (choice != GET_OUT))
+		{
+		choice = Say(BUSINESS_TXT, 0, MATT_PICTID, "DEALER_QUEST");
+
+		switch(choice)
+			{
+			case 0:             /* womit ? */
+				if (locNr == Location_Parker)
+				{
+					Say(BUSINESS_TXT, 0, dealer->PictID, "DEALER_PARKER");
+				}
+				else if (locNr ==  Location_Maloya)
+				{
+					Say(BUSINESS_TXT, 0, dealer->PictID, "DEALER_MALOYA"); 
+				}
+				else if (locNr == Location_Pooly)
+				{
+					Say(BUSINESS_TXT, 0, dealer->PictID, "DEALER_POOLY"); 
+				}
+				break;
+			case 1:             /* offer */
+				hasAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Loot);
+
+				if	(LIST_EMPTY(ObjectList))
+					{
+					Say(BUSINESS_TXT,0,dealer->PictID,"NO_LOOT");
+					AddVTime(17);
+					}
+				else
+					tcDealerOffer(dealer, dealerNr);
+				break;
+			case 2:
+			default:
+				break;
+			}
+		}
+
+	AddVTime(11);
+	ShowTime(2);
+	}
+
+// 2014-06-29 LucyG : increase price variation for less predictable gameplay
+static long moreRandom(long v)
+{
+	long r;
+	r = CalcRandomNr(0, (v / 4) + 1);
+	r -= (v / 8);
+	v += r;
+	return(min(v, 250));
+}
+
+void tcDealerOffer(Person dealer, ubyte which)
+	{
+	// 2014-06-29 LucyG : possible compiler bug fixed
+	static const long Price[3*10] =    {  70, 150, 220,  90, 210, 110, 200,   0, 190,  80,   /* maloya */
+										 120, 200, 180, 220,  79, 110,   0,   0, 110, 200,   /* pooly */
+										 220,  66,   0, 110,   0, 220,   0, 212,  20, 130};  /* parker */
+	CompleteLoot comp = (CompleteLoot)dbGetObject (CompleteLoot_LastLoot);
+
+	RemoveList (tcMakeLootList(Person_Matt_Stuvysunt, Relation_has));
+
+	if(comp->Bild)           tcDealerSays(dealer, 0, moreRandom(Price[which*10+0]));
+	if(comp->Gold)           tcDealerSays(dealer, 1, moreRandom(Price[which*10+1]));
+	if(comp->Geld)           tcDealerSays(dealer, 2, moreRandom(Price[which*10+2]));
+	if(comp->Juwelen)        tcDealerSays(dealer, 3, moreRandom(Price[which*10+3]));
+	if(comp->Delikates)      tcDealerSays(dealer, 4, moreRandom(Price[which*10+4]));
+	if(comp->Statue)         tcDealerSays(dealer, 5, moreRandom(Price[which*10+5]));
+	if(comp->Kuriositaet)    tcDealerSays(dealer, 6, moreRandom(Price[which*10+6]));
+	if(comp->HistKunst)      tcDealerSays(dealer, 7, moreRandom(Price[which*10+7]));
+	if(comp->GebrauchsArt)   tcDealerSays(dealer, 8, moreRandom(Price[which*10+8]));
+	if(comp->Vase)           tcDealerSays(dealer, 9, moreRandom(Price[which*10+9]));
+	}
+
+void tcDealerSays(Person dealer, ubyte textNr, long perc)
+	{
+	LIST *lootNames   = txtGoKey(OBJECTS_ENUM_TXT, "enum_LootE");
+	LIST *specialLoot = txtGoKey(OBJECTS_ENUM_TXT, "enum_LootNameE");
+	LIST *dealerText  = txtGoKey(BUSINESS_TXT, "DEALER_OFFER");
+	LIST *dealerOffer = (LIST*)CreateList(0);
+	char line[TXT_KEY_LENGTH], symp, i;
+	struct ObjectNode *n;
+	Person others[3];
+	Player player = (Player)dbGetObject(Player_Player_1);
+
+	others[0] = (Person)dbGetObject(Person_Frank_Maloya);
+	others[1] = (Person)dbGetObject(Person_Eric_Pooly);
+	others[2] = (Person)dbGetObject(Person_Helen_Parker);
+
+	if (perc == 0)
+		{
+		sprintf(line, NODE_NAME(GetNthNode(dealerText, 4)), NODE_NAME(GetNthNode(lootNames, (ulong) textNr)));
+		CreateNode (dealerOffer, 0L, line);
+
+		CreateNode (dealerOffer, 0L, NODE_NAME(GetNthNode(dealerText, 5)));
+
+		SetPictID (dealer->PictID);
+		Bubble (dealerOffer, 0, 0L, 0L);
+		}
+	else
+		{
+		hasAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Loot);
+		perc = tcGetDealerPerc(dealer, perc);
+
+		for (n = (struct ObjectNode *)LIST_HEAD(ObjectList); NODE_SUCC(n); n = (struct ObjectNode *) NODE_SUCC(n))
+			{
+			Loot loot = (Loot)OL_DATA(n);
+			ulong price = hasGet(Person_Matt_Stuvysunt, OL_NR(n)), offer;
+
+			offer = tcGetDealerOffer(price, perc);
+			offer = max(offer, 1);
+
+			RemoveNode(dealerOffer, NULL);
+
+			if ((loot->Type) == textNr)
+				{
+				if (loot->Name)
+					{
+					symp = 10;
+
+					sprintf(line, NODE_NAME(GetNthNode(dealerText, 2)), NODE_NAME(GetNthNode(specialLoot, (ulong) loot->Name)));
+					CreateNode (dealerOffer, 0L, line);
+
+					sprintf (line, NODE_NAME(GetNthNode(dealerText, 3)), offer);
+					CreateNode (dealerOffer, 0L, line);
+					}
+				else
+					{
+					symp = 1;
+
+					sprintf (line, NODE_NAME(GetNthNode(dealerText, 0)), NODE_NAME(GetNthNode(lootNames, (ulong)textNr)));
+					CreateNode (dealerOffer, 0L, line);
+
+					sprintf (line, NODE_NAME(GetNthNode(dealerText, 1)), price, offer);
+					CreateNode (dealerOffer, 0L, line);
+					}
+
+				SetPictID (dealer->PictID);
+				Bubble (dealerOffer, 0, 0L, 0L);
+
+				if (!(Say (BUSINESS_TXT, 0, MATT_PICTID, "DEALER_ANSWER")))
+					{
+					long mattsMoney;
+
+					hasUnSet(Person_Matt_Stuvysunt, OL_NR(n));
+
+					if (GamePlayMode & GP_MORE_MONEY) {	// Lucy 2017-11-08 new cheat
+						if (offer > 0) offer = (offer * 3) / 2;
+					}
+
+					mattsMoney = max(((offer * (player->MattsPart)) / 100), 1);
+
+					tcAddDealerSymp(dealer, symp);
+					tcAddPlayerMoney(mattsMoney);
+
+					player->StolenMoney   += offer;
+					player->MyStolenMoney += mattsMoney;
+
+					for (i = 0; i < 3; i++)
+						if(dealer != others[i])    tcAddDealerSymp((others[i]), (symp * (-1)));
+					}
+				}
+			}
+		}
+
+	RemoveList (specialLoot);
+	RemoveList (dealerOffer);
+	RemoveList (dealerText);
+	RemoveList (lootNames);
+	}
+
+LIST *tcMakeLootList(ulong containerID, ulong relID)
+	{
+	NODE *n;
+	Loot loot;
+	CompleteLoot comp = (CompleteLoot)dbGetObject(CompleteLoot_LastLoot);
+	char data[TXT_KEY_LENGTH];
+	ulong value;
+	LIST *out = (LIST*)CreateList (0);
+	LIST *loots;
+	LIST *lootE     = txtGoKey(OBJECTS_ENUM_TXT,"enum_LootE");
+	LIST *lootNameE = txtGoKey(OBJECTS_ENUM_TXT,"enum_LootNameE");
+
+	/* Listen initialisieren */
+
+	SetObjectListAttr (OLF_PRIVATE_LIST, Object_Loot);
+	AskAll (dbGetObject(containerID), relID, BuildObjectList);
+	loots = ObjectListPrivate;
+
+	comp->Bild = comp->Gold = comp->Geld = comp->Juwelen = 0;
+	comp->Delikates = comp->Statue = comp->Kuriositaet = 0;
+	comp->HistKunst = comp->GebrauchsArt = comp->Vase = 0;
+
+	comp->TotalWeight = comp->TotalVolume = 0;
+
+	/* Liste durcharbeiten */
+
+	if (!(LIST_EMPTY(loots)))
+		{
+		for (n = (NODE*) LIST_HEAD(loots); NODE_SUCC(n); n = (NODE*) NODE_SUCC(n))
+			{
+			if (OL_TYPE(n) == Object_Loot)
+				{
+				loot = (Loot)OL_DATA(n);
+
+				value = GetP (dbGetObject(containerID), relID, loot);
+
+				switch(loot->Type)
+					{
+					case Ein_Bild:      comp->Bild += value; break;
+					case Gold:          comp->Gold += value; break;
+					case Geld:          comp->Geld += value; break;
+					case Juwelen:       comp->Juwelen += value; break;
+					case Delikatessen:  comp->Delikates += value; break;
+					case Eine_Statue:   comp->Statue += value; break;
+					case Eine_Kuriositaet:             comp->Kuriositaet += value; break;
+					case Eine_Vase:                    comp->Vase += value; break;
+					case Ein_historisches_Kunstobjekt: comp->HistKunst += value; break;
+					case Gebrauchsartikel:             comp->GebrauchsArt += value; break;
+					default: break;
+					}
+
+				comp->TotalWeight += loot->Weight;
+				comp->TotalVolume += loot->Volume;
+
+				if(loot->Name)
+					strcpy (data, NODE_NAME(GetNthNode (lootNameE, loot->Name)));
+				else
+					strcpy (data, NODE_NAME(GetNthNode (lootE, loot->Type)));
+
+				CreateNode (out, 0L, data);
+
+				sprintf (data, "%ld", value);
+				CreateNode (out, 0L, data);
+
+				sprintf (data, "%ld", loot->Volume);
+				CreateNode (out, 0L, data);
+
+				sprintf (data, "%ld", loot->Weight);
+				CreateNode (out, 0L, data);
+				}
+			}
+		}
+
+	RemoveList(lootE);
+	RemoveList(lootNameE);
+	RemoveList(loots);
+
+	return(out);
+	}
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/scenes/done.c b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/done.c
new file mode 100644
index 0000000..ab147ce
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/done.c
@@ -0,0 +1,398 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "scenes\scenes.h"
+
+void DoneTaxi(void)
+{
+	static ubyte i = 0;
+	ubyte j; 
+	char name[TXT_KEY_LENGTH], exp[TXT_KEY_LENGTH];
+	LIST *locs = (LIST*)CreateList(0L);
+	struct ObjectNode *n, *newNode;
+	ulong locNr;
+	Location loc;
+
+	knowsSet(Person_Matt_Stuvysunt, Person_Dan_Stanford);
+	taxiAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Location);
+
+	for (n = (struct ObjectNode *) LIST_HEAD(ObjectList); NODE_SUCC(n); n = (struct ObjectNode *) NODE_SUCC(n))
+	{
+		loc = (Location)OL_DATA(n);
+		locNr = ((Location) loc)->LocationNr;
+
+		sprintf(name ,"*%s", NODE_NAME(GetNthNode(film->loc_names, locNr)));
+
+		newNode = (struct ObjectNode *) CreateNode (locs,(ulong) (sizeof (struct ObjectNode)), name);
+		newNode->nr = locNr + 1;     /* because of ChoiceOk */
+	}
+
+	i = min(i, GetNrOfNodes(locs) - 1);
+
+	txtGetFirstLine(BUSINESS_TXT, "NO_CHOICE", exp);
+	ExpandObjectList(locs, exp);
+
+	if (ChoiceOk (j = Bubble(locs, i, 0L, 0L), GET_OUT, locs))
+	{
+		i = j;
+
+		locNr = OL_NR(GetNthNode(locs, i)) - 1;
+		SceneArgs.ReturnValue = (ulong) ((struct Scene *)GetLocScene(locNr)->EventNr);
+	}
+	else
+	    {
+		Say(BUSINESS_TXT,0,MATT_PICTID,"LOVELY_TAXI");
+
+		SceneArgs.ReturnValue = (ulong) ((struct Scene *)GetLocScene(GetOldLocation)->EventNr);
+	}
+
+	SceneArgs.Ueberschrieben=1;
+	SceneArgs.Moeglichkeiten=0L;
+
+	RemoveList(locs);
+	gfxChangeColors(l_wrp,2L,GFX_FADE_OUT,0L);
+}
+
+void DoneInsideHouse(void)
+{
+	LIST  *menu = txtGoKey(MENU_TXT, "Mainmenu");
+	ulong  choice, buildingID, areaID;
+	ubyte  activ=0, perc;
+	NODE  *node;
+
+	SceneArgs.ReturnValue    = 0;
+	SceneArgs.Ueberschrieben = 1;
+
+	ShowMenuBackground();
+
+	buildingID = GetObjNrOfBuilding(GetLocation + 1);
+	consistsOfAll(buildingID, OLF_NORMAL, Object_LSArea);
+
+	/* jetzt alle Stockwerke laden */
+	for (node = (NODE*) LIST_HEAD(ObjectList); NODE_SUCC(node); node = (NODE *) NODE_SUCC(node))
+	{
+		areaID = OL_NR(node);
+
+		lsInitRelations(areaID);
+		lsInitObjectDB(buildingID, areaID);
+	}
+
+	startsWithAll(buildingID, OLF_NORMAL, Object_LSArea);
+
+	areaID = OL_NR(LIST_HEAD(ObjectList));
+	lsLoadGlobalData(buildingID, areaID);  /* Stechuhren und so... */
+	/* muss nur einmal geladen werden.. */
+
+	lsSetRelations(areaID);
+
+	perc = ((Building)dbGetObject(buildingID))->Exactlyness;
+	lsShowRaster(areaID, perc);
+	gfxShow (154, GFX_FADE_OUT|GFX_BLEND_UP, 5, -1, -1);
+
+	tcRefreshLocationInTitle(GetLocation);
+
+	while(!SceneArgs.ReturnValue)
+	{
+		if(SceneArgs.Moeglichkeiten)
+		{
+			inpTurnFunctionKey(0);
+			inpTurnESC(0);
+			activ=Menu(menu, SceneArgs.Moeglichkeiten, (ubyte)(activ), NULL,0L);
+			inpTurnFunctionKey(1);
+			inpTurnESC(1);
+
+			choice=(ulong) 1L << activ;
+
+			switch(choice)
+			{
+			case LOOK:
+				tcInsideOfHouse(buildingID, areaID, perc);
+				ShowMenuBackground();
+				tcRefreshLocationInTitle(GetLocation);
+				AddVTime(19);
+				ShowTime(0);
+				break;
+			case GO:
+				if (!(areaID = tcGoInsideOfHouse(buildingID)))
+					SceneArgs.ReturnValue = (ulong) (((struct TCEventNode *)(LIST_HEAD((GetCurrentScene()->std_succ))))->EventNr);
+				else
+				    {
+					lsSetRelations(areaID);
+
+					lsShowRaster(areaID, perc);
+				}
+				tcRefreshLocationInTitle(GetLocation);
+				break;
+			default:
+				SceneArgs.ReturnValue = StdHandle(choice);
+				break;
+			}
+		}
+	}
+
+	consistsOfAll(buildingID, OLF_NORMAL, Object_LSArea);
+
+	/* jetzt alle Stockwerke entfernen */
+	for (node = (NODE*) LIST_HEAD(ObjectList); NODE_SUCC(node); node = (NODE *) NODE_SUCC(node))
+		lsDoneObjectDB(OL_NR(node));
+
+	StopAnim();
+	gfxChangeColors(l_wrp,5L,GFX_FADE_OUT,0L);
+
+	RemoveList (menu);
+}
+
+void DoneTools(void)
+{
+	ubyte     activ=0;
+	ulong     choice=0;
+	LIST      *menu= txtGoKey (MENU_TXT, "Mainmenu");
+
+	SceneArgs.Ueberschrieben=1;
+
+	tcMoveAPerson (Person_Mary_Bolton, Location_Tools_Shop);
+	livesInUnSet (London_London_1, Person_Mary_Bolton);
+
+	while(!SceneArgs.ReturnValue)
+	{
+		tcPersonIsHere();
+
+		inpTurnFunctionKey(0); /* dont save in tools shop */
+		inpTurnESC(0);
+		activ=Menu(menu, SceneArgs.Moeglichkeiten, (ubyte)(activ), NULL,0L);
+		inpTurnESC(1);
+
+		choice=(ulong) 1L << (activ);
+
+		if (choice == BUSINESS_TALK)
+		{
+			tcToolsShop();
+			AddVTime(9);
+			ShowTime(0);
+		}
+		else
+		    SceneArgs.ReturnValue=StdHandle(choice);
+	}
+
+	inpTurnFunctionKey(1);
+
+	livesInSet (London_London_1, Person_Mary_Bolton);
+
+	RemoveList(menu);
+	StopAnim();
+	gfxChangeColors(l_wrp,5L,GFX_FADE_OUT,0L);
+}
+
+void DoneDealer(void)
+{
+	ubyte activ  = 0;
+	ulong choice = 0;
+	LIST  *menu  = txtGoKey (MENU_TXT, "Mainmenu");
+
+	SceneArgs.Ueberschrieben=1;
+	SceneArgs.ReturnValue = 0L;
+
+	tcMoveAPerson (Person_Frank_Maloya, Location_Maloya);
+	tcMoveAPerson (Person_Eric_Pooly, Location_Pooly);
+	tcMoveAPerson (Person_Helen_Parker, Location_Parker);
+
+	livesInUnSet (London_London_1, Person_Frank_Maloya);   /* damit sie sich */
+	livesInUnSet (London_London_1, Person_Eric_Pooly);     /* nicht bewegen! */
+	livesInUnSet (London_London_1, Person_Helen_Parker);
+
+	while(!SceneArgs.ReturnValue)
+	{
+		inpTurnFunctionKey(0);  /* or call save functions in case of space */
+		inpTurnESC(0);
+		activ = Menu(menu, SceneArgs.Moeglichkeiten, (ubyte)(activ), NULL,0L);
+		inpTurnESC(1);
+		inpTurnFunctionKey(1);
+
+		choice = (ulong) 1L << (activ);
+
+		if (choice == BUSINESS_TALK)
+			tcDealerDlg();
+		else
+		    SceneArgs.ReturnValue = StdHandle(choice);
+	}
+
+	livesInSet (London_London_1, Person_Frank_Maloya);
+	livesInSet (London_London_1, Person_Eric_Pooly);
+	livesInSet (London_London_1, Person_Helen_Parker);
+
+	RemoveList(menu);
+	StopAnim();
+	gfxChangeColors(l_wrp,5L,GFX_FADE_OUT,0L);
+}
+
+void DoneParking(void)
+{
+	LIST *bubble = txtGoKey(BUSINESS_TXT,"PARKING");
+	LIST *menu   = txtGoKey (MENU_TXT, "Mainmenu");
+	ubyte activ=0, choice=0;
+	ulong carID;
+	Person marc = (Person)dbGetObject(Person_Marc_Smith);
+
+	SceneArgs.Ueberschrieben=1;
+	SceneArgs.ReturnValue=0;
+
+	while(!SceneArgs.ReturnValue)
+	{
+		inpTurnFunctionKey(0);  /* or call save functions in case of space */
+		inpTurnESC(0);
+
+		activ = Menu(menu, SceneArgs.Moeglichkeiten, (ubyte)(activ), 0L,0L);
+
+		inpTurnESC(1);
+		inpTurnFunctionKey(1);
+
+		if ((1L << activ) == BUSINESS_TALK)
+		{
+			choice = 0;
+
+			while(choice != 2)
+			{
+				choice = Bubble (bubble, 0, 0L, 0L);
+
+				switch(choice)
+				{
+				case 0:
+					tcBuyCar();
+					AddVTime(9);
+					choice = 2;
+					break;
+				case 1:
+					if (carID = tcChooseCar(27))
+					{
+						tcSellCar(carID);
+						AddVTime(11);
+					}
+					else
+					    {
+						Say(BUSINESS_TXT,0,marc->PictID,"SELL_HERE");
+						choice = 2;
+					}
+					break;
+				default:
+					choice = 2;
+					break;
+				}
+			}
+			ShowTime(0);
+		}
+		else
+		    {
+			inpTurnESC(0);
+			SceneArgs.ReturnValue = StdHandle(1L<<activ);
+			inpTurnESC(1);
+		}
+	}
+
+	RemoveList(bubble);
+	RemoveList(menu);
+	StopAnim();
+	gfxChangeColors(l_wrp,5L,GFX_FADE_OUT,0L);
+}
+
+void DoneGarage(void)
+{
+	LIST *menu = txtGoKey (MENU_TXT, "Mainmenu");
+	ubyte activ=0;
+	ulong choice, carID;
+	Person marc = (Person)dbGetObject(Person_Marc_Smith);
+
+	SceneArgs.Ueberschrieben=1;
+	SceneArgs.ReturnValue=0;
+
+	while(!SceneArgs.ReturnValue)
+	{
+		inpTurnFunctionKey(0); /* or call save functions in case of space */
+		inpTurnESC(0);
+
+		activ = Menu(menu, SceneArgs.Moeglichkeiten, (ubyte)(activ), NULL, 0);
+
+		inpTurnESC(1);
+		inpTurnFunctionKey(1);
+
+		choice=(ulong) 1L << (activ);
+
+		if (choice == BUSINESS_TALK)
+		{
+			if (carID = tcChooseCar(26))
+			{
+				tcCarInGarage(carID);
+				AddVTime(9);
+				ShowTime(0);
+			}
+			else
+			    {
+				Say(BUSINESS_TXT,0,marc->PictID,"REPAIR_HERE");
+				inpTurnESC(0);
+				SceneArgs.ReturnValue = StdHandle(GO);
+				inpTurnESC(1);
+			}
+		}
+		else
+		    {
+			inpTurnESC(0);
+			SceneArgs.ReturnValue=StdHandle(choice);
+			inpTurnESC(1);
+		}
+	}
+
+	RemoveList(menu);
+	StopAnim();
+	gfxChangeColors(l_wrp,5L,GFX_FADE_OUT,0L);
+}
+
+void tcInitFahndung(void)
+{
+	Player player = (Player)dbGetObject(Player_Player_1);
+
+	tcMattGoesTo(59);   /* B�ro */
+
+	player->NrOfBurglaries++;
+}
+
+void tcDoneFahndung(void)
+{
+	if (tcStartEvidence())
+	{
+		tcDonePrison();
+		SceneArgs.ReturnValue = SCENE_NEW_GAME;
+	}
+	else
+	    {
+		switch(((Player)(dbGetObject(Player_Player_1)))->NrOfBurglaries)
+		{
+		case 3:
+			SceneArgs.ReturnValue = SCENE_STATION;
+			break;
+		default:
+			SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+			break;
+		}
+	}
+
+	if (tcIsDeadlock())
+		SceneArgs.ReturnValue = SCENE_NEW_GAME;
+
+	gfxChangeColors(l_wrp,5L,GFX_FADE_OUT,0L);
+}
+
+/*
+* ein schlimmer Murks, aber anders geht's nicht!
+* und die ganze Scheisse nur wegen den Knochen
+*/
+
+void DoneHotelRoom(void)
+{
+	tcCheckForBones();
+	if (bProfidisk)
+		tcCheckForDowning();
+
+	StdDone();
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/scenes/evidence.c b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/evidence.c
new file mode 100644
index 0000000..227a451
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/evidence.c
@@ -0,0 +1,743 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "scenes\evidence.h"
+
+ulong tcPersonWanted(ulong persId);
+ulong tcPersonQuestioning(Person person);
+
+struct Search Search;
+
+ubyte tcCarFound(Car car, ulong time)
+	{
+	long i = 0, hours;
+	Person john  = (Person)dbGetObject (Person_John_Gludo);
+	Person miles = (Person)dbGetObject (Person_Miles_Chickenwing);
+	ubyte found = 0;
+
+	/* Der Jaguar darf nicht gefunden werden - sonst k�nnte er ja */
+	/* nicht explodieren! */
+
+	if (car != dbGetObject(Car_Jaguar_XK_1950))
+		{
+		if(tcIsCarRecognised(car, time)) /* Wagen wird erkannt! */
+			{
+			Say(BUSINESS_TXT,0,john->PictID,"CAR_RECOG");
+
+			hours = CalcRandomNr(2L, 5L);
+
+			while((i++) < hours)
+				{
+				AddVTime(60); inpDelay(35); ShowTime(2);
+				}
+
+			if(!tcIsCarRecognised(car, time)) /* Wagen wird nicht gefunden */
+				{
+				Say(BUSINESS_TXT,0,john->PictID,"CAR_NOT_FOUND");
+				car->Strike = CalcRandomNr(200, 255);
+				}
+			else      /* Wagen wird gefunden! */
+				{
+				found = 1;
+				Say(BUSINESS_TXT,0,john->PictID,"CAR_FOUND");
+				Say(BUSINESS_TXT,0,miles->PictID,"GUTE_ARBEIT");
+				UnSet (dbGetObject(Person_Matt_Stuvysunt), Relation_has, car);
+				}
+			}
+		}
+
+	return found;
+	}
+
+ulong tcATraitor(ulong traitorId)
+	{
+	char name[TXT_KEY_LENGTH], line[TXT_KEY_LENGTH];
+	LIST *bubble  = txtGoKey(BUSINESS_TXT, "A_TRAITOR");
+	LIST *newList = (LIST*)CreateList(0);
+	Person john   = (Person)dbGetObject(Person_John_Gludo);
+
+	dbGetObjectName (traitorId, name);
+	sprintf (line, NODE_NAME(LIST_HEAD(bubble)), name);
+
+	CreateNode (newList, 0L, line);
+	CreateNode (newList, 0L, NODE_NAME(GetNthNode(bubble, 1)));
+	CreateNode (newList, 0L, NODE_NAME(GetNthNode(bubble, 2)));
+
+	SetPictID (john->PictID);
+	Bubble (newList, 0, 0L, 0L);
+
+	RemoveList (bubble);
+	RemoveList(newList);
+
+	Say(BUSINESS_TXT,0,john->PictID,"ARRESTED");
+
+	return 1; /* gefangen! */
+	}
+
+ulong tcIsThereATraitor(void)
+	{
+	Player player = (Player)dbGetObject(Player_Player_1);
+	Person matt   = (Person)dbGetObject(Person_Matt_Stuvysunt);
+	ubyte symp = 255;
+	ulong traitorId = 0, caught = 0;
+	NODE *n;
+
+	if (player->JobOfferCount > 50 + CalcRandomNr(0, 20))     /* ein Verrat?! */
+		{
+		if(CalcRandomNr(0,255) <  matt->Popularity)  /* Verrat ! */
+			{
+			joined_byAll(Person_Matt_Stuvysunt, OLF_INCLUDE_NAME, Object_Person);
+
+			for (n = (NODE *) LIST_HEAD(ObjectList); NODE_SUCC(n); n = (NODE *) NODE_SUCC(n))
+				{
+				Person pers = (Person)OL_DATA(n);
+
+				if (OL_NR(n) != Person_Matt_Stuvysunt)  /* Matt verr�t sich nicht selbst */
+					{
+					if ((traitorId == 0) || (pers->Known < symp))
+						{
+						traitorId = OL_NR(n);
+						symp = pers->Known;
+						}
+					}
+				}
+
+			caught = tcATraitor(traitorId);
+			}
+		}
+
+	return caught;
+	}
+
+ulong tcStartEvidence(void)
+	{
+	long     MyEvidence[4][7], guarded, radio;
+	ulong    totalEvidence[7], i, j, shownEvidence[4], Recognition[4], caught = 0;
+	ubyte    guyReady, guyNr, evidenceNr, guyCount;
+	char     line[TXT_KEY_LENGTH];
+	ubyte	 shown = 0;
+	Person   p[4];
+	Evidence evidence = (Evidence)dbGetObject(Evidence_Evidence_1);    /* just for presentation */
+	struct   ObjectNode *n;
+	LIST     *guys, *spuren;
+	long div;
+	long newStrike;
+    Car  car;
+
+	if ((!(Search.EscapeBits & FAHN_ALARM)) && (!(Search.EscapeBits & FAHN_QUIET_ALARM)))
+		Say(BUSINESS_TXT,0,((Person)dbGetObject(Person_John_Gludo))->PictID,"A_BURGLARY_SIR");
+
+	Say(BUSINESS_TXT,0,((Person)dbGetObject(Person_Miles_Chickenwing))->PictID,"START_EVIDENCE");
+
+	joined_byAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST, Object_Person);
+	guys = ObjectListPrivate;
+	dbSortObjectList(&guys, dbStdCompareObjects);
+
+	guyCount = (ubyte) GetNrOfNodes(guys);
+	spuren = txtGoKey(BUSINESS_TXT,"SPUREN");
+
+	p[0] = p[1] = p[2] = p[3] = NULL;
+
+	guarded = ChangeAbs(((Building)dbGetObject(Search.BuildingId))->GRate,
+							  ((Building)dbGetObject(Search.BuildingId))->Strike / 7, 0, 255);
+
+	radio = (long) ((Building)dbGetObject(Search.BuildingId))->RadioGuarding;
+
+	for(n = (struct ObjectNode *) LIST_HEAD(guys), i = 0; NODE_SUCC(n); n = (struct ObjectNode*) NODE_SUCC(n), i++)
+		{
+		div = 380;
+
+		p[i] = (Person)OL_DATA(n);
+
+		/* alle folgenden Werte sind zwischen 0 und 255 */
+
+		/* statt durch 765 zu dividieren wurde urspr�nglich durch 255 dividiert -> */
+		/* viel zu gro�e Werte */
+
+		if (Search.SpotTouchCount[i])
+			div = 1;
+
+		MyEvidence[i][0] = (((tcGetTrail(p[i], 0) * (long) Search.WalkTime[i] * (max(1, 255-guarded))) / ((long)Search.TimeOfBurglary + 1)) ) / div;
+		MyEvidence[i][1] = (((tcGetTrail(p[i], 1) * (long) Search.WaitTime[i] * (max(1, 255-guarded))) / ((long)Search.TimeOfBurglary + 1)) ) / div;
+		MyEvidence[i][2] = (((tcGetTrail(p[i], 2) * (long) Search.WorkTime[i] * (max(1, 255-guarded))) / ((long)Search.TimeOfBurglary + 1)) ) / div;
+		MyEvidence[i][3] = (((tcGetTrail(p[i], 3) * (long) Search.KillTime[i] * (max(1, 255-guarded))) / ((long)Search.TimeOfBurglary + 1)) );
+		MyEvidence[i][4] = ChangeAbs(0, (long) Search.CallCount * (long) radio / 5, 0, 255);
+		MyEvidence[i][5] = (p[i]->KnownToPolice * (max(1, guarded))) / (div * 3);
+		MyEvidence[i][6] = ChangeAbs(0, (long) CalcRandomNr(200, 255) * (long) Search.SpotTouchCount[i], 0, 255);
+
+		for (j = 0; j < 7; j++)       /* jeden Betrag != 0 AUFRUNDEN auf 1% ! */
+			if (MyEvidence[i][j])
+				MyEvidence[i][j] = max(MyEvidence[i][j], 5);
+
+		if (has(Person_Matt_Stuvysunt, Tool_Maske))
+			MyEvidence[i][6] = (MyEvidence[i][6] * 2) / 3;
+
+		/* im Fluchtfall viele Gehspuren! */
+		if (Search.EscapeBits & FAHN_ESCAPE)
+			MyEvidence[i][0] = CalcValue (MyEvidence[i][0], CalcRandomNr(80, 120), 255, 255, 50);
+
+		totalEvidence[i] = MyEvidence[i][0] + MyEvidence[i][1] + MyEvidence[i][2] +
+						 MyEvidence[i][3] + MyEvidence[i][4] + MyEvidence[i][5] + MyEvidence[i][6];
+
+		shownEvidence[i] = Recognition[i] = 0;
+
+		tcPersonLearns(OL_NR(n));
+		}
+
+	prSetBarPrefs(m_wrp,300,12, 1,3,0);
+
+	guyReady = 0;
+	txtGetFirstLine(BUSINESS_TXT,"FAHNDUNG",line);
+
+	while(guyReady != ((1 << guyCount) - 1))
+		{
+		if (shown)
+			{
+			ShowTime(0);
+			inpDelay(35L);
+			AddVTime(CalcRandomNr(1,11));
+
+			shown = 0;
+			}
+
+		guyNr = CalcRandomNr(0, guyCount);
+
+		/* wer ist den noch nicht fertig? */
+		while((1<<guyNr) & guyReady)
+			guyNr = (guyNr + 1) % guyCount;
+
+		/* bei folgendem CalcRandomNr darf nicht 4 - guyCount stehe, sonst
+		 * Division durch 0!
+		 */
+
+		/* zuf�llig eine Spurenart ausw�hlen */
+		evidenceNr = CalcRandomNr (0, 7);
+
+		/* wenn diese Spurenart schon angzeigt wurde, eine freie
+		 * Spur suchen
+		 */
+		j = 0;
+
+		while(((1<<evidenceNr) & shownEvidence[guyNr]) && (j++ < 7))
+					  evidenceNr = (evidenceNr + 1) % 7;
+
+		if (j < 8)     /* 8 stimmt! -> ober wird anschlie�end noch erh�ht */
+			{
+			shownEvidence[guyNr] |= (1<<evidenceNr);
+
+			if (MyEvidence[guyNr][evidenceNr] > 0)
+				{
+				ShowMenuBackground();
+				PrintStatus(NODE_NAME(GetNthNode(spuren, evidenceNr)));
+
+				Recognition[guyNr] += MyEvidence[guyNr][evidenceNr];
+
+				evidence->Recognition  = Recognition[guyNr] / 3;  /* change also: totalEvidence /= 3.... */
+				evidence->pers         = (ulong) OL_NR(GetNthNode(guys, (ulong) guyNr));
+
+				/* f�r alle "Evidences" - stimmt so, da f�r alle */
+				/* Personen die selbe Evidence Struct benutzt wird -> */
+				/* bestimmte Werte sind von vorher gesetzt und m�ssen gel�scht */
+				/* werden */
+
+				evidence->WalkTrail  = 0;
+				evidence->WaitTrail  = 0;
+				evidence->WorkTrail  = 0;
+				evidence->KillTrail  = 0;
+				evidence->CallTrail  = 0;
+				evidence->PaperTrail = 0;
+				evidence->FotoTrail  = 0;
+
+				if(shownEvidence[guyNr] & 1)
+					evidence->WalkTrail = MyEvidence[guyNr][0];
+
+				if(shownEvidence[guyNr] & 2)
+					evidence->WaitTrail = MyEvidence[guyNr][1];
+
+				if(shownEvidence[guyNr] & 4)
+					evidence->WorkTrail = MyEvidence[guyNr][2];
+
+				if(shownEvidence[guyNr] & 8)
+					evidence->KillTrail = MyEvidence[guyNr][3];
+
+				if(shownEvidence[guyNr] & 16)
+					evidence->CallTrail = MyEvidence[guyNr][4];
+
+				if(shownEvidence[guyNr] & 32)
+					evidence->PaperTrail = MyEvidence[guyNr][5];
+
+				if(shownEvidence[guyNr] & 64)
+					evidence->FotoTrail = MyEvidence[guyNr][6];
+
+				Present(Evidence_Evidence_1, "Fahndung", InitEvidencePresent);
+
+				ShowMenuBackground();
+				PrintStatus(line);
+
+				shown = 1;
+				}
+			}
+
+		if (shownEvidence[guyNr] == ((1<<7) - 1))
+			guyReady |= (1<<guyNr);
+		}
+
+	guyReady = 0;	// 2014-06-28 LucyG : ??? Compiler warning "guyReady is assigned a value that is never used"
+
+	/* ein gewisses Restwissen bleibt der Polizei ! */
+	for (i = 0; i < guyCount; i++)
+		{
+		totalEvidence[i] /= 3;   /* change als in recognition = ... */
+
+		if(p[i] != 0)
+			{
+			if (totalEvidence[i] > 255)
+				totalEvidence[i] = 255;
+
+			p[i]->KnownToPolice = (ubyte) (totalEvidence[i]);
+
+			if (p[i]->KnownToPolice > tcPERSON_IS_ARRESTED)
+				caught |= tcPersonWanted(OL_NR(GetNthNode(guys, i)));
+
+			if (!caught)
+				if (p[i] == dbGetObject(Person_Robert_Bull))
+					caught |= tcATraitor(Person_Robert_Bull);
+
+			if (!caught)
+				if (p[i] == dbGetObject(Person_Marc_Smith))
+     			   caught |= tcATraitor(Person_Marc_Smith);
+
+			if (bProfidisk)
+			{
+				if (!caught)
+					if (p[i] == dbGetObject(Person_Phil_Ciggy))
+						caught |= tcATraitor(Person_Phil_Ciggy);
+			}
+		}
+	}
+
+	caught |= tcIsThereATraitor();
+
+	if(!(tcCarFound((Car) dbGetObject(Organisation.CarID), Search.TimeOfBurglary - Search.TimeOfAlarm)))
+		{
+		car = (Car)dbGetObject(Organisation.CarID);
+
+		newStrike = CalcValue ((long)car->Strike, 0, 255, 255, 15);
+
+		if (newStrike < (car->Strike + 40))
+			newStrike = ChangeAbs ((long)car->Strike, 40, 0, 255);
+
+		car->Strike = newStrike;
+		}
+
+	((Player)dbGetObject(Player_Player_1))->MattsPart = (ubyte) tcCalcMattsPart();
+	tcForgetGuys();
+
+	RemoveList (spuren);
+	RemoveList (guys);
+
+	return caught;
+	}
+
+void tcForgetGuys(void)
+	{
+	LIST *guys;
+	NODE *node;
+
+	joined_byAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST, Object_Person);
+	guys = ObjectListPrivate;
+
+	for (node = (NODE*) LIST_HEAD(guys); NODE_SUCC(node); node = (NODE*) NODE_SUCC(node))
+		{
+		if (OL_NR(node) != Person_Matt_Stuvysunt)
+			{
+			Person pers = (Person)OL_DATA(node);
+
+			pers->TalkBits |= (1<<Const_tcTALK_JOB_OFFER);     /* �ber Jobs kann man wieder reden! */
+
+			joined_byUnSet(Person_Matt_Stuvysunt, OL_NR(node));
+			joinUnSet(Person_Matt_Stuvysunt, OL_NR(node));
+			rememberUnSet(Person_Matt_Stuvysunt, OL_NR(node));
+			}
+		}
+
+	RemoveList(guys);
+	}
+
+ulong tcPersonWanted(ulong persId)
+	{
+	ulong hours, i = 0, caught = 0;
+	Person john  = (Person)dbGetObject(Person_John_Gludo);
+	Person miles = (Person)dbGetObject(Person_Miles_Chickenwing);
+	LIST *bubble;
+	LIST *jobs = txtGoKey(OBJECTS_ENUM_TXT, "enum_JobE");
+	char line[TXT_KEY_LENGTH], name[TXT_KEY_LENGTH];
+
+	dbGetObjectName (persId, name);
+
+	bubble = txtGoKey (BUSINESS_TXT, "BURGLAR_RECOG");
+
+	sprintf (line, "%s %s.", NODE_NAME(GetNthNode(bubble, 3)), name);
+
+	RemoveNode (bubble, NODE_NAME(GetNthNode(bubble, 3)));
+	CreateNode (bubble, 0L, line);
+
+	SetPictID (john->PictID);
+	Bubble (bubble, 0, 0L, 0L);
+	RemoveList (bubble);
+
+	Say(BUSINESS_TXT,0,miles->PictID,"ARREST_HIM");
+	livesInUnSet(London_London_1, persId);
+	tcMoveAPerson(persId, Location_Nirvana);
+
+	hours = CalcRandomNr(4L, 7L);
+
+	while((i++) < hours)
+		{AddVTime(60); inpDelay(35); ShowTime(2);}
+
+	if(tcGuyCanEscape((Person)dbGetObject(persId)) > CalcRandomNr(100, 255)) /* Flucht gelingt */
+		{
+		Say(BUSINESS_TXT,0,john->PictID,"ESCAPED");
+
+		livesInSet(London_Escape, persId);
+		}
+	else      /* nicht */
+		{
+		Say(BUSINESS_TXT,0,john->PictID,"ARRESTED");
+
+		livesInSet(London_Jail, persId);
+
+		caught = tcPersonQuestioning((Person)dbGetObject(persId));
+		}
+
+	RemoveList (jobs);
+
+	return caught;
+	}
+
+ulong tcPersonQuestioning(Person person)
+	{
+	ulong caught = 0;
+	Person john = (Person)dbGetObject(Person_John_Gludo);
+	Person miles = (Person)dbGetObject(Person_Miles_Chickenwing);
+
+	if(person != dbGetObject(Person_Matt_Stuvysunt))
+		{
+		if(tcGuyTellsAll(person) > CalcRandomNr(0, 180)) /* er spricht */
+			{
+			Say(BUSINESS_TXT,0,john->PictID,"ER_GESTEHT");
+			Say(BUSINESS_TXT,0,miles->PictID,"GUTE_ARBEIT");
+			caught = 1;
+			}
+		else                          /* er spricht nicht */
+			Say(BUSINESS_TXT,0,john->PictID,"ER_GESTEHT_NICHT");
+		}
+	else
+		{
+		Say(BUSINESS_TXT,0,john->PictID,"ER_GESTEHT_NICHT");
+		caught = 1;
+		}
+
+	return caught;
+	}
+
+long tcEscapeFromBuilding(ulong escBits)
+	{
+	Person gludo      = (Person)dbGetObject(Person_John_Gludo);
+	ubyte  escapeSucc = FAHN_NOT_ESCAPED;
+	long   timeLeft   = LONG_MAX;
+
+	/* Fluchtbilder zeigen! */
+	livSetAllInvisible();
+	lsSetDarkness(((LSArea)dbGetObject(lsGetActivAreaID()))->uch_Darkness);
+
+	if (escBits & FAHN_ESCAPE)
+		{
+		gfxShow (213, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+		inpDelay (80);
+
+		gfxShow (215, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+		inpDelay (80);
+		}
+
+	/*
+	 * Behandlung von "Umstellt"
+	 * sowie Berechnung eines Fluchtversuches (in jedem Flucht - fall)
+	 */
+
+	if (!(escBits & FAHN_SURROUNDED))
+		{
+		if ((escBits & FAHN_ALARM) || (escBits & FAHN_QUIET_ALARM))
+			{
+			Building build = (Building)dbGetObject(Search.BuildingId);
+
+			timeLeft = build->PoliceTime - (Search.TimeOfBurglary - Search.TimeOfAlarm);
+			timeLeft -= tcCalcEscapeTime();
+
+			if (timeLeft > 0)
+				escapeSucc = FAHN_ESCAPED;
+			}
+		else
+			escapeSucc = FAHN_ESCAPED;
+		}
+
+	if (escapeSucc == FAHN_ESCAPED)
+		{
+		gfxShow (211, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+		inpDelay(120);
+		}
+	else
+		{
+		Say (BUSINESS_TXT, 0, gludo->PictID, "UMSTELLT"); /* noch ein Umstellt */
+		timeLeft = 0;                                     /* wenn Zeit nicht gereicht hat */
+		}
+
+	return timeLeft;
+	}
+
+long tcEscapeByCar(ulong escBits, long timeLeft)
+	{
+	Person gludo = (Person)dbGetObject(Person_John_Gludo);
+	Person miles = (Person)dbGetObject(Person_Miles_Chickenwing);
+	ubyte escapeSucc;
+
+	if (timeLeft > 0)
+		escapeSucc = FAHN_ESCAPED;
+	else
+		escapeSucc = FAHN_NOT_ESCAPED;
+
+	/* Flucht per Auto! */
+	if(escapeSucc == FAHN_ESCAPED)
+		{
+		if ((Search.BuildingId != Building_Tower_of_London) &&
+			 (Search.BuildingId != Building_Starford_Kaserne))
+				escapeSucc = tcCalcCarEscape(timeLeft);
+		}
+	else
+		tcMattGoesTo(7);    /* Polizei */
+
+	/* Ausgabe : Flucht gelungen, Flucht nicht gelungen */
+	if (escapeSucc == FAHN_ESCAPED)
+		{
+		if ((escBits & FAHN_ALARM) || (escBits & FAHN_QUIET_ALARM))
+			{
+			Say(BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_0");      /* entkommen!  */
+			Say(BUSINESS_TXT, 0, miles->PictID, "HINWEIS_2");      /* woher Hinweis? */
+			}
+		else
+			Say(BUSINESS_TXT, 0, OLD_MATT_PICTID, "I_ESCAPED");    /* no problems */
+		}
+	else
+		{
+		Say (BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_1");     /* geschnappt! */
+		Say (BUSINESS_TXT, 0, miles->PictID, "HINWEIS_2");     /* woher Hinweis? */
+		}
+
+	/* Gludo erz�hlt woher Hinweise stammten (falls es welche gibt) */
+	if (escBits & FAHN_ALARM)
+		{
+		if (escBits & FAHN_ALARM_ALARM)
+			Say (BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_6");    /* Alarmanlage */
+
+		if (escBits & FAHN_ALARM_POWER)
+			Say (BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_8");
+
+		if (escBits & FAHN_ALARM_TIMER)
+			Say (BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_6");    /* Alarmanlage */
+
+		if (escBits & FAHN_ALARM_MICRO)
+			Say (BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_9");
+
+		if (escBits & FAHN_ALARM_TIMECLOCK)
+			Say (BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_7");    /* Alarmanlage */
+
+		if (escBits & FAHN_ALARM_GUARD)
+			Say (BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_10");
+		}
+	else
+		{
+		if (escBits & FAHN_QUIET_ALARM)
+			{
+			if (escBits & FAHN_ALARM_RADIO)
+				Say (BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_5");
+
+			if (escBits & FAHN_ALARM_PATRO)
+				Say (BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_4");
+
+			if (escBits & FAHN_ALARM_LOUDN)
+				Say (BUSINESS_TXT, 0, gludo->PictID, "HINWEIS_3");
+			}
+		}
+
+	if (escapeSucc != FAHN_ESCAPED)
+		StopAnim();
+
+	return((long)escapeSucc);
+	}
+
+long tcCalcCarEscape(long timeLeft)
+	{
+	ubyte kmhWeight[4]    = {32, 44, 60,   67};
+	ubyte psWeight[4]     = {68, 56, 40,   33};
+	ubyte driverWeight[4] = {50, 40, 25,   20};
+	ubyte policeSpeed[4]  = {90, 95, 103, 107}, paint, colortable[GFX_COLORTABLE_SIZE];
+	char line[TXT_KEY_LENGTH];
+	long kmh, ps, i, j, YardsInFront, length, wayType, unrealSpeed, x, xOldMatt = -1, xOldPoli = -1;
+	Car car        = (Car)dbGetObject (Organisation.CarID);
+	Building build = (Building)dbGetObject (Organisation.BuildingID);
+	long result = FAHN_ESCAPED;
+
+	if ((Organisation.BuildingID != Building_Tower_of_London) &&
+		 (Organisation.BuildingID != Building_Starford_Kaserne))
+		{
+		wayType = build->EscapeRoute;
+		length  = build->EscapeRouteLength;
+
+		kmh = car->Speed;
+		ps = car->PS;
+
+		/* Motor : pro 10% Schaden -> 5% Leistung weniger */
+		kmh = CalcValue (kmh, 0, 65535L, (car->MotorState) / 2, 50);
+		ps  = CalcValue (ps, 0, 65535L, (car->MotorState) / 2, 50);
+
+		/* pro Jahr 3% weniger */
+		i = (car->Speed * 3 * (tcRGetCarAge(car) + 1)) / 100;
+		j = (car->PS * 3 * (tcRGetCarAge(car) +1)) /100;
+
+		if (kmh >= i)	kmh -= i;
+		else				kmh = 0;
+
+		if (ps >= j)	ps -= j;
+		else				ps = 0;
+
+		/* Reifen pro 10% um 2% weniger */
+		i = (car->Speed * 2 * (255 - car->TyreState)) / 2500;
+		j = (car->Speed * 2 * (255 - car->PS)) / 2500;
+
+		if (kmh >= i)	kmh -= i;
+		else				kmh = 0;
+
+		if (ps >= j)	ps -=j;
+		else				ps = 0;
+
+		/* Fahrer */
+		/* kann aus einem Auto um ein Viertel mehr herausholen, als eigentlich */
+		/* drinnen ist! */
+		i   = hasGet(Organisation.DriverID, Ability_Autos);
+		kmh = CalcValue (kmh, 0, car->Speed + car->Speed / 4, i, driverWeight[wayType]);
+		ps  = CalcValue (ps , 0, car->PS + car->PS / 4, i, driverWeight[wayType]);
+
+		/* Ma�zahl f�r Geschwindigkeit */
+		/* Einheit = m pro Schleifendurchlauf */
+		unrealSpeed = (kmh * kmhWeight[wayType] + ps * psWeight[wayType]) / 100;
+
+		unrealSpeed = unrealSpeed + 5 - (long)(CalcRandomNr(0, 10));
+
+		if (unrealSpeed <= 0)
+			unrealSpeed = 5;
+
+		policeSpeed[wayType] = policeSpeed[wayType] + 5 - CalcRandomNr(0, 10);
+		policeSpeed[wayType] = CalcValue(policeSpeed[wayType], 0, 255, build->GRate, 25);
+
+		/* Vorsprung berechnen */
+		/* Vorsprung ist maximal die halbe Strecke (length * 500 m) und */
+		/* mindestens 2000 Meter (damit man von der Fluct etwas sieht!) */
+
+		i = min(((unrealSpeed * timeLeft) / 5), length * 500);
+		i = max(2000, i);   /* mindestens 2000 Meter */
+
+		j = 0;
+		length *= 1000; /* Fluchtweg in Meter */
+
+		/* Bildschirmdarstellung */
+
+		txtGetFirstLine (BUSINESS_TXT, "FLUCHT", line);
+		ShowMenuBackground();
+		PrintStatus(line);
+
+		gfxChangeColors (l_wrp, 0, GFX_FADE_OUT, 0);
+		gfxShow (car->PictID, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+
+		gfxPrepareColl(GFX_COLL_PARKING);
+		gfxGetColorTable(GFX_COLL_PARKING, colortable);
+
+		gfxChangeColors (l_wrp, 0, GFX_BLEND_UP, colortable);
+		SetCarColors (car->ColorIndex);
+
+		gfxSetPens(l_wrp, 20, GFX_SAME_PEN, 21);
+		gfxRectFill (l_wrp, 60, 40, 60 + 199, 40 + 19);
+
+		i = max(i, 60);
+		j = max(j, 5);
+
+		sndPlayFX("flucht.voc");
+
+		do
+			{
+			i += unrealSpeed; /* KmH von Matt */
+			i =  max(i, 0);
+
+			paint = 0;
+
+			if (Search.TimeOfAlarm)
+				j += policeSpeed[wayType];
+
+			YardsInFront = i - j;		/* zum Vorsprung addieren */
+
+			/* Berechnung der Darstellung */
+			x = (i * 190) / length;		/* Matts Car */
+
+			if (x != xOldMatt)
+				{
+				if (xOldMatt != -1)
+					{
+					gfxSetPens(l_wrp, 20, GFX_SAME_PEN, 20);
+
+					if ((195 - x + 1) < (198 + 195 - xOldMatt))
+						gfxRectFill (l_wrp, 60 + 195 - xOldMatt, 45, 60 + 198 - xOldMatt, 55);
+					}
+
+				gfxSetPens(l_wrp, 11, GFX_SAME_PEN, 11);
+				gfxRectFill(l_wrp, 60 + 195 - x, 45, 60 + 198 - x, 55);
+
+				xOldMatt = x;
+				paint = 1;
+				}
+
+			if (Search.TimeOfAlarm)            /* Police Car */
+				{
+				x = (j * 190) / length;
+
+				if (x != xOldPoli)
+					{
+					if(xOldPoli != -1)
+						{
+						gfxSetPens(l_wrp, 20, GFX_SAME_PEN, 20);
+						gfxRectFill (l_wrp, 60 + 195 - xOldPoli, 45, 60 + 198 - xOldPoli, 55);
+						}
+
+					gfxSetPens(l_wrp, 23, GFX_SAME_PEN, 23);
+					gfxRectFill (l_wrp, 60 + 195 - x, 45, 60 + 198 - x, 55);
+
+					paint = 1;
+					}
+
+				xOldPoli = x;
+				}
+
+			if (paint)
+				inpDelay(3);
+			}
+			while ((i < length) && (YardsInFront > 50));
+
+		if (YardsInFront > 50)
+			result = FAHN_ESCAPED;
+		else
+			result = FAHN_NOT_ESCAPED;
+		}
+
+	return result;
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/scenes/evidence.h b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/evidence.h
new file mode 100644
index 0000000..93adc45
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/evidence.h
@@ -0,0 +1,105 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_EVIDENCE
+#define MODULE_EVIDENCE
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_DIALOG
+#include "dialog\dialog.h"
+#endif
+
+#ifndef MODULE_INTERAC
+#include "present\interac.h"
+#endif
+
+#ifndef MODULE_PRESENT
+#include "present\present.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_DATACALC
+#include "data\datacalc.h"
+#endif
+
+#ifndef MODULE_DATAAPPL
+#include "data\dataappl.h"
+#endif
+
+#define FAHN_NOT_ESCAPED      1
+#define FAHN_ESCAPED          2
+
+#define FAHN_ALARM            1L<<0
+#define FAHN_ALARM_LOUDN      1L<<1
+#define FAHN_ALARM_RADIO      1L<<2
+#define FAHN_ALARM_PATRO      1L<<3
+#define FAHN_SURROUNDED       1L<<4
+#define FAHN_ESCAPE           1L<<5
+#define FAHN_QUIET_ALARM      1L<<6
+#define FAHN_STD_ESCAPE       1L<<7     /* wenn Einbruch glatt geht (Standardflucht) */
+#define FAHN_ALARM_ALARM      1L<<8
+#define FAHN_ALARM_TIMECLOCK  1L<<9
+#define FAHN_ALARM_POWER      1L<<10
+#define FAHN_ALARM_TIMER      1L<<11
+#define FAHN_ALARM_MICRO      1L<<12
+#define FAHN_ALARM_GUARD      1L<<13
+
+struct Search	/* wegen Arrays nicht in objects */
+	{
+	word	GuyXPos[4], GuyYPos[4];  /* letzte Position im Falle einer Flucht! */
+
+	ubyte	Exhaust[4];
+
+	uword	WalkTime[4];
+	uword	WaitTime[4];
+	uword	WorkTime[4];
+	uword	KillTime[4];
+
+	ulong DeriTime;         /* Abweichung vom Soll */
+
+	ulong	TimeOfBurglary;   /* Zeitpunkt! */
+	ulong TimeOfAlarm;      /* Zeitpunkt! */
+
+	ulong BuildingId;       /* Einbruch */
+	ulong LastAreaId;       /* zum Zeitpunkt der Flucht */
+
+	ulong EscapeBits;
+
+	word  CallValue;			/* "Wert" der Funkspr., word!!! */
+	uword	CallCount;			/* Anzahl d. FUnkspr. */
+
+	uword	WarningCount;		/* Anzahl der Warnungen */
+	ubyte	SpotTouchCount[4];
+
+	ubyte KaserneOk;        /* ob die Kaserne geschafft wurde! */
+	};
+
+extern long tcCalcCarEscape(long timeLeft);
+extern void tcForgetGuys(void);
+
+extern struct Search Search;
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/scenes/inside.c b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/inside.c
new file mode 100644
index 0000000..b4bdf44
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/inside.c
@@ -0,0 +1,199 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "scenes\scenes.h"
+
+ulong    CurrAreaId;
+LSObject CurrLSO;  /* for FadeObjectInside */
+
+static void FadeInsideObject(void)
+{
+	static ubyte status = 1;
+	lsFadeRasterObject(CurrAreaId, CurrLSO, (status++) % 2);
+}
+
+ulong tcGoInsideOfHouse(ulong buildingID)
+	{
+	LIST  *menu = txtGoKey(MENU_TXT, "INSIDE_MENU"), *areas;
+	ulong count, i, areaID = 0;
+
+	consistsOfAll(buildingID, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME, Object_LSArea);
+	areas = ObjectListPrivate;
+	dbSortObjectList(&areas, dbStdCompareObjects);
+
+	count = GetNrOfNodes(areas) + 1;
+
+	if (count > 2)
+		{
+		for(i = count; i < 5; i++)
+			RemoveNode(menu,  NODE_NAME(GetNthNode(menu, count)));
+
+		ShowMenuBackground();
+
+		inpTurnFunctionKey(0);
+		inpTurnESC(0);
+		i = (ulong) Menu(menu, (1L << count) - 1, 0, 0L, 0L);
+		inpTurnESC(1);
+		inpTurnFunctionKey(1);
+
+		consistsOfAll(buildingID, OLF_NORMAL, Object_LSArea);
+
+		if(i)
+			areaID = OL_NR(GetNthNode (areas, i-1));
+		}
+
+	ShowMenuBackground();
+	ShowTime(0);
+
+	RemoveList(areas);
+	RemoveList(menu);
+
+	return(areaID);
+	}
+
+void tcInsideOfHouse(ulong buildingID, ulong areaID, ubyte perc)
+{
+	LIST *objects;
+	NODE *node, *n;
+	ulong action, count;
+	char name[TXT_KEY_LENGTH];
+	char alarm[TXT_KEY_LENGTH], power[TXT_KEY_LENGTH];
+	LSObject lso;
+	LSArea area;
+	LIST *menu;
+
+	area = (LSArea)dbGetObject(areaID);
+	menu = txtGoKey(MENU_TXT, "LookMenu");
+
+	txtGetFirstLine (BUSINESS_TXT,"PROTECTED",alarm);
+	txtGetFirstLine (BUSINESS_TXT,"SUPPLIED",power);
+
+	inpTurnESC(0);
+	inpTurnFunctionKey(0);
+
+	/* liste und node initialisieren */
+	SetObjectListAttr (OLF_PRIVATE_LIST, Object_LSObject);
+	AskAll (area, ConsistOfRelationID, BuildObjectList);
+	objects = ObjectListPrivate;
+
+	//lsSortObjectList(&objects);
+
+	count = (GetNrOfNodes(objects) * perc) / 255;
+	node = lsGetSuccObject((NODE*) LIST_HEAD(objects));
+
+	CurrAreaId = areaID;
+
+	if ((GetNodeNrByAddr (objects, node)) > count) {
+		SetBubbleType (THINK_BUBBLE);
+		Say (BUSINESS_TXT, 0, MATT_PICTID, "CANT_LOOK");
+	} else {
+		action = 0;
+		while (action != 4) {
+			lso = (LSObject) OL_DATA(node);
+
+			dbGetObjectName(lso->Type, name);
+
+			if (lso->uch_Chained) {
+				strcat(name,"(");
+				if (lso->uch_Chained & Const_tcCHAINED_TO_ALARM) {
+					strcat(name, alarm);
+					if (lso->uch_Chained & Const_tcCHAINED_TO_POWER) {
+						strcat(name, ", ");
+						strcat(name, power);
+					}
+				} else {
+					if (lso->uch_Chained & Const_tcCHAINED_TO_POWER) {
+						strcat(name, power);
+					}
+				}
+
+				strcat(name,")");
+			}
+
+			ShowMenuBackground();
+			PrintStatus(name);
+
+			CurrLSO = lso;
+
+			SetMenuTimeOutFunc(FadeInsideObject);
+
+			inpTurnFunctionKey(0);
+			inpTurnESC(0);
+			action = Menu(menu, 31, (ubyte) action, 0, 10);
+			inpTurnESC(1);
+			inpTurnFunctionKey(1);
+
+			lsFadeRasterObject(areaID, lso, 1);
+
+			switch (action) {
+				case 0: {	// n�chster Gegenstand
+					n = lsGetSuccObject(node);
+					if (GetNodeNrByAddr (objects, n) < (count-1)) {
+						node = n;
+					}
+				} break;
+				case 1: {	// vorheriger Gegenstand
+					node = lsGetPredObject(node);
+				} break;
+				case 2: {	// genau ansehen
+					tcShowObjectData(areaID, node, perc);
+				} break;
+				case 3: {	// W�chter
+					isGuardedbyAll(buildingID, OLF_NORMAL, Object_Police);
+					if (!(LIST_EMPTY(ObjectList))) {
+						gfxSetPens(l_wrp, 4, GFX_SAME_PEN, GFX_SAME_PEN);
+						grdDraw(l_wrp, buildingID, areaID);
+					} else {
+						Say (BUSINESS_TXT, 0, MATT_PICTID, "NO_GUARD");
+					}
+				} break;
+				case 4: {	// Fertig
+				} break;
+				default: {
+					action = 0;
+				} break;
+			}
+
+			lso = (LSObject)OL_DATA(node);
+			lsFadeRasterObject(areaID, lso, 1);
+		}
+	}
+
+	RemoveList (menu);
+	RemoveList (objects);
+	inpSetWaitTicks (0);
+}
+
+void tcShowObjectData(ulong areaID, NODE *node, ubyte perc)
+{
+	NODE *n;
+
+	/* Objekt selbst pr�sentieren */
+	Present (OL_NR(node), "RasterObject", InitObjectPresent);
+
+	/* Inhalt zusammenstellen */
+	SetObjectListAttr (OLF_NORMAL, Object_Loot);
+	AskAll (OL_DATA(node), hasLootRelationID, BuildObjectList);
+
+	if (!LIST_EMPTY(ObjectList))
+		{
+		/* alle Loots durchgehen und anzeigen! */
+		for(n = (NODE*) LIST_HEAD(ObjectList); NODE_SUCC(n); n = (NODE*) NODE_SUCC(n))
+			{
+			/* zur Variablen��bergabe... (DIRTY, DIRTY...) */
+			SetP (OL_DATA(n), hasLootRelationID, OL_DATA(n),
+			GetP(OL_DATA(node), hasLootRelationID, OL_DATA(n)));
+
+			Present (OL_NR(n), "RasterObject", InitOneLootPresent);
+
+			/* kill these dirty things! */
+			UnSet (OL_DATA(n), hasLootRelationID, OL_DATA(n));
+			}
+		}
+
+	/* Verbindungen zeigen! */
+	lsShowAllConnections(areaID, node, perc);
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/scenes/invest.c b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/invest.c
new file mode 100644
index 0000000..6b18f21
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/invest.c
@@ -0,0 +1,219 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "scenes\scenes.h"
+
+ulong tcShowPatrol(LIST *bubble_l, char *c_time, char *patr, ubyte first, Building bui, ulong raise)
+	{
+	char patrolie[TXT_KEY_LENGTH];
+	ulong choice = 0;
+
+	sprintf(patrolie, "%s  %s", c_time, patr);
+
+	CreateNode(bubble_l, 0L, patrolie);
+
+	SetBubbleType(THINK_BUBBLE);
+
+	Bubble(bubble_l, (ubyte) first, 0, 140L);
+	choice = GetExtBubbleActionInfo();
+
+	tcAddBuildExactlyness(bui, raise);
+
+	ShowTime(0);
+
+	return choice;
+	}
+
+void Investigate(char *location)
+	{
+	NODE	*n, *nextMsg;
+	LIST 	*origin, *bubble_l;
+	char	patr[TXT_KEY_LENGTH], line[TXT_KEY_LENGTH];
+	char    c_time[10];
+	ulong minutes=0, guarding=0, choice=0, count=0, buiID=0, first = 0, raise;
+	Building  bui;
+	ulong     patrolCount;
+
+	buiID = GetObjNrOfBuilding(GetLocation);
+	bui   = (Building)dbGetObject(buiID);
+
+	if (bProfidisk)
+	{
+		if (buiID == Building_Buckingham_Palace)
+		{
+			bubble_l = txtGoKey(INVESTIGATIONS_TXT,"BuckinghamBeobachtet");
+			SetBubbleType(THINK_BUBBLE);
+			Bubble(bubble_l, 0 ,0L,0L);
+			RemoveList(bubble_l);
+
+			return;
+		}
+	}
+
+	if(!(GamePlayMode & GP_MUSIC_OFF))
+		sndPlaySound("invest.bk", 0);
+
+	inpTurnESC(0);
+
+	ShowMenuBackground();    /* Bildschirmaufbau */
+	ShowTime(0);
+	inpSetWaitTicks(50);
+
+	gfxSetRect(0, 320);
+	gfxSetPens(l_wrp, 249, GFX_SAME_PEN, 0);
+
+	txtGetFirstLine(INVESTIGATIONS_TXT,"Abbrechen",line);
+	txtGetFirstLine(INVESTIGATIONS_TXT,"Patrolie",patr);
+
+	gfxPrint(m_wrp,line,24,GFX_PRINT_CENTER);
+
+	/* Beobachtungstexte von Disk lesen */
+	origin   = txtGoKey(INVESTIGATIONS_TXT,location);
+	bubble_l = (LIST*)CreateList(0);
+	count    = GetNrOfNodes(origin);
+	guarding = (ulong) tcRGetGRate(bui);
+	patrolCount = (270 - guarding) / 4 + 1;
+
+	/* Wissensgewinn pro Ereignis =
+	 * (255-guarding) = alle wieviel Minuten Streife kommt
+	 * count = diverse andere Ereignisse
+	 * 1439 / (255- guarding) = Anzahl der Streifen / Tag
+	 * 3 = Konstante zur Beschleunigung (GamePlay)
+	 */
+
+	raise    = 255 / (1439 / patrolCount + count + 1) + 3;
+
+	hasSet(Person_Matt_Stuvysunt,buiID);
+
+	/* bis zur 1. Meldung Zeit vergehen lassen! */
+	for (nextMsg = 0; nextMsg == 0;)
+		{
+		BuildTime(GetMinute,txtGetLanguage(),c_time);
+
+		if (!(GetMinute % 60))
+			ShowTime(0);
+
+		for (n = (NODE*)LIST_HEAD(origin); NODE_SUCC(n); n = (NODE*) NODE_SUCC(n))
+			{
+			if (strncmp(NODE_NAME(n),c_time,5) == 0)
+				nextMsg = n;
+			}
+
+		if (!nextMsg)
+			AddVTime(1);
+
+		if((GetMinute % patrolCount) == 0)
+			choice = tcShowPatrol(bubble_l, c_time, patr, first++, bui, raise);
+
+		if(CalcRandomNr(0L,6L) == 1)
+			tcAddBuildStrike(bui,1);
+		}
+
+	while(((minutes) < MINUTES_PER_DAY) && (!(choice & INP_LBUTTONP)) && (!(choice & INP_RBUTTONP)) && (!(choice & INP_ESC)))
+		{
+		choice = 0;
+
+		/* Anzeigen jeder vollen Stunde */
+		if((GetMinute % 60)==0)
+			ShowTime(0);
+
+		BuildTime(GetMinute,txtGetLanguage(),c_time);
+
+		/* je nach Bewachungsgrad Meldung : "Patrolie" einsetzen ! */
+		if((GetMinute % patrolCount) == 0)
+			choice = tcShowPatrol(bubble_l, c_time, patr, first++, bui, raise);
+
+		/* �berpr�fen ob zur aktuellen Zeit (time) etwas geschieht : */
+		if (!choice)
+			{
+			if (strncmp(NODE_NAME(nextMsg),c_time,5)==0)
+				{
+				if((GetMinute % 60)!=0)
+					ShowTime(0);
+
+				n = (NODE*)CreateNode(bubble_l,0L,NODE_NAME(nextMsg));
+
+				SetBubbleType(THINK_BUBBLE);
+
+				Bubble(bubble_l,(ubyte) first++ ,0, 140L);
+				choice = GetExtBubbleActionInfo();
+
+				tcAddBuildExactlyness(bui, raise);
+
+				ShowTime(0);
+
+				if (NODE_SUCC(NODE_SUCC(nextMsg)))
+					nextMsg = (NODE*) NODE_SUCC(nextMsg);
+				else
+					nextMsg = (NODE*) LIST_HEAD(origin);
+				}
+			}
+
+		/* Zeit erh�hen und nach dem Spieler sehen ! */
+		if (CalcRandomNr(0L,6L) ==1)
+			tcAddBuildStrike(bui,1);
+
+		AddVTime(1L);
+		minutes++;
+
+		if(!choice)
+			choice = inpWaitFor(INP_TIME|INP_LBUTTONP|INP_RBUTTONP|INP_ESC);
+		}
+
+	RemoveList(bubble_l);
+
+	if (minutes >= 1440) /* wurde 24 Stunden lang beobachtet ? */
+		{
+		bubble_l = txtGoKey(INVESTIGATIONS_TXT,"24StundenBeobachtet");
+		SetBubbleType(THINK_BUBBLE);
+		Bubble(bubble_l, 0 ,0L,0L);
+		RemoveList(bubble_l);
+		}
+
+	RemoveList(origin);
+
+	Present(buiID,"Building",InitBuildingPresent);
+
+	/* Im Plan dazuaddieren : wie lange beobachtet */
+	/* wenn Geb�iude 2 mal beobachtet wird -> Auff�llig !! */
+	/* Auff�llugkeitgrad erh�hen */
+	/* Ergebnisse ! (Genauigkeit)*/
+	/* Abschlu�bericht zeigen ! */
+
+	ShowMenuBackground();
+	tcRefreshLocationInTitle(GetLocation);
+
+	inpSetWaitTicks(0);
+	ShowTime(0);
+
+	if(!(GamePlayMode & GP_MUSIC_OFF))
+		tcPlayStreetSound();
+
+	if (GamePlayMode & GP_DEMO)
+		{
+		ubyte colortable[768];
+
+		SuspendAnim();
+		gfxPrepareRefresh();
+
+		gfxGetColorTableFromReg(colortable);
+
+		gfxShow(224,GFX_NO_REFRESH|GFX_FADE_OUT|GFX_BLEND_UP|GFX_ONE_STEP,2,-1,-1);
+
+		inpWaitFor(INP_LBUTTONP);
+
+		gfxChangeColors(l_wrp, 0, GFX_FADE_OUT, NULL);
+		gfxClearArea(l_wrp);
+		gfxChangeColors(l_wrp, 0, GFX_BLEND_UP, colortable);
+
+		gfxRefresh();
+
+		ContinueAnim();
+		}
+
+	inpTurnESC(1);
+	}
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/scenes/scenes.c b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/scenes.c
new file mode 100644
index 0000000..027e8ae
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/scenes.c
@@ -0,0 +1,442 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "scenes\scenes.h"
+
+uword	CurrentBackground = BGD_LONDON;
+
+
+/**************************************************
+ * a little static func for presentation of data
+ */
+
+static ubyte tcDisplayInfoAboutPerson(ulong objID)
+	{
+	LIST *bubble;
+	char name[TXT_KEY_LENGTH]; 
+	ubyte ret = 0;
+
+	if(has(Person_Matt_Stuvysunt, objID))   /* hat Matt Wissen �ber ihn? */
+		ret = Present(objID,"Person",InitPersonPresent);
+	else
+		{
+		dbGetObjectName (objID, name);
+		bubble = txtGoKey (LOOK_TXT, name);
+
+		SetBubbleType (THINK_BUBBLE);
+		Bubble (bubble,0,0L,0L);
+		RemoveList (bubble);
+		}
+
+	return ret;
+	}
+
+
+/**************************************************
+ * taxi stuff
+ *
+ * AddTaxiLocation
+ * RemTaxiLocation
+ */
+
+void	AddTaxiLocation(ulong locNr)
+	{
+	ulong objNr;
+
+	if(objNr = GetObjNrOfLocation(locNr))
+		taxiSet(Person_Matt_Stuvysunt, objNr);
+	}
+
+void RemTaxiLocation(ulong locNr)
+	{
+	ulong objNr;
+
+	if (objNr = GetObjNrOfLocation(locNr))
+		taxiUnSet(Person_Matt_Stuvysunt, objNr);
+	}
+
+/***************************************************
+ * standard scenes
+ * Go
+ * Information
+ * Look
+ * Telefon
+ * Wait
+ */
+
+ulong Go(LIST *succ)
+	{
+	struct	TCEventNode *node;
+	struct 	Scene *sc;
+	ulong	prob,succ_eventnr;
+	NODE 	*location;
+	char 	line[255];
+
+	inpTurnFunctionKey(0);
+
+	if(GetNrOfNodes(succ) > 1)
+		{
+		prob=0L;
+
+		ShowMenuBackground();
+
+		txtGetFirstLine(THECLOU_TXT,"Gehen",line);
+
+		PrintStatus(line);
+
+		for(node=(struct TCEventNode*) LIST_HEAD(succ);NODE_SUCC(node);node=(struct TCEventNode*) NODE_SUCC(node))
+			{
+			sc=GetScene(node->EventNr);
+
+			location=(NODE*)GetNthNode(film->loc_names,(ulong)sc->LocationNr);
+
+			NODE_NAME(node)=NODE_NAME(location);
+
+			prob++;
+			}
+
+		prob=(1 << prob) - 1;
+
+		prob=Menu(succ,prob,0,NULL,0L);
+
+		succ_eventnr=((struct TCEventNode*)GetNthNode(succ,(ulong)prob))->EventNr;
+
+		/* jetzt die Zuweisung wieder entfernen, damit der Name */
+		/* nicht 2 mal freigegeben wird */
+
+		for(node=(struct TCEventNode*)LIST_HEAD(succ);NODE_SUCC(node);node=(struct TCEventNode*)NODE_SUCC(node))
+			NODE_NAME(node)=NULL;
+		}
+	else
+		{
+		succ_eventnr=(ulong) ((struct TCEventNode*)
+			GetNthNode(succ,0L))->EventNr;
+		}
+
+	inpTurnFunctionKey(1);
+
+	return(succ_eventnr);
+	}
+
+
+void Information(void)
+	{
+	LIST   *bubble,*list;
+	ubyte  choice=0,choice1=0, ret = 0;
+	char enough[TXT_KEY_LENGTH];
+	ulong  objID;
+
+	inpTurnESC(1);
+
+	while((choice != 6) && (ret != GET_OUT))
+		{
+		SetBubbleType(THINK_BUBBLE);
+		bubble  = txtGoKey(THECLOU_TXT,"INFORMATION");
+		choice  = Bubble(bubble,choice,0L,0L);
+		RemoveList(bubble);
+
+		choice1 = 0;
+
+		switch(choice)
+			{
+			case 0:
+				if ((Present(Player_Player_1,"Player",InitPlayerPresent)) != GET_OUT)
+					  Present(Person_Matt_Stuvysunt,"Person",InitPersonPresent);
+				break;
+
+			case 1:
+				hasAll(Person_Matt_Stuvysunt,OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Car);
+				list = ObjectListPrivate;
+
+				if(!(LIST_EMPTY(list)))
+					{
+					txtGetFirstLine(BUSINESS_TXT, "GENUG", enough);
+					ExpandObjectList(list, enough);
+					SetBubbleType(THINK_BUBBLE);
+
+					while(ChoiceOk((choice1 = Bubble(list, choice1, 0L, 0L)), GET_OUT, list))
+						{
+						SetBubbleType(THINK_BUBBLE);
+
+						objID = (ulong)(((struct ObjectNode*)GetNthNode(list ,(ulong)choice1))->nr);
+						ret   = Present (objID ,"Car" ,InitCarPresent);
+						}
+					}
+				else
+					Say(BUSINESS_TXT, 0, MATT_PICTID, "POOR");
+
+				RemoveList(list);
+				break;
+
+			case 2:
+				knowsAll(Person_Matt_Stuvysunt,OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR,Object_Person);
+				list = ObjectListPrivate;
+
+				if(!(LIST_EMPTY(list)))
+					{
+					txtGetFirstLine(BUSINESS_TXT, "GENUG", enough);
+					ExpandObjectList(list, enough);
+					SetBubbleType(THINK_BUBBLE);
+
+					while(ChoiceOk((choice1 = Bubble(list, choice1, 0L, 0L)), GET_OUT, list))
+						{
+						SetBubbleType(THINK_BUBBLE);
+
+						objID = (ulong)(((struct ObjectNode*)GetNthNode(list,(ulong)choice1))->nr);
+						ret   = tcDisplayInfoAboutPerson(objID);
+						}
+					}
+				else
+					Say(BUSINESS_TXT, 0, MATT_PICTID, "POOR");
+
+				RemoveList(list);
+				break;
+
+			case 3:
+				hasAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Tool);
+				list = ObjectListPrivate;
+
+				if(!(LIST_EMPTY(list)))
+					{
+					SetBubbleType(THINK_BUBBLE);
+					txtGetFirstLine(BUSINESS_TXT, "GENUG", enough);
+					ExpandObjectList(list, enough);
+
+					while(ChoiceOk((choice1 = Bubble(list, choice1, 0L, 0L)), GET_OUT, list))
+						{
+						SetBubbleType(THINK_BUBBLE);
+
+						objID   = (ulong)(((struct ObjectNode*)GetNthNode(list,(ulong)choice1))->nr);
+						ret = Present(objID,"Tool",InitToolPresent);
+						}
+					}
+				else
+					Say(BUSINESS_TXT, 0, MATT_PICTID, "POOR");
+
+				RemoveList(list);
+				break;
+
+			case 4:
+				hasAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Building);
+				list = ObjectListPrivate;
+
+				if(!(LIST_EMPTY(list)))
+					{
+					SetBubbleType(THINK_BUBBLE);
+					txtGetFirstLine(BUSINESS_TXT, "GENUG", enough);
+					ExpandObjectList(list, enough);
+
+					while(ChoiceOk((choice1 = Bubble(list, choice1, 0L, 0L)), GET_OUT, list))
+						{
+						SetBubbleType(THINK_BUBBLE);
+
+						objID = (ulong)(((struct ObjectNode*)GetNthNode(list,(ulong)choice1))->nr);
+						ret   = Present(objID,"Building",InitBuildingPresent);
+						}
+					}
+				else
+				  Say(BUSINESS_TXT, 0, MATT_PICTID, "POOR");
+
+				RemoveList(list);
+				break;
+
+			case 5:
+				Present(0, "Beute", InitLootPresent);
+				break;
+
+			default:
+				choice = 6;
+				break;
+			}
+		}
+	}
+
+
+void Look(ulong locNr)
+	{
+	LIST  *menu, *bubble;
+	ubyte choice=0 ,choice1=0;
+	char enough[TXT_KEY_LENGTH];
+	ulong objID;
+
+	inpTurnESC(1);
+
+	while(choice != 2)
+		{
+		menu = txtGoKey(THECLOU_TXT,"UMSEHEN");
+
+		SetBubbleType(THINK_BUBBLE);
+		choice = Bubble(menu,0,0L,0L);
+		RemoveList(menu);
+
+		choice1 = 0;
+
+		switch(choice)
+			{
+			case 0:
+				bubble = txtGoKey(HOUSEDESC_TXT,
+								NODE_NAME (GetNthNode(film->loc_names,(locNr))));
+
+				SetBubbleType(THINK_BUBBLE);
+				choice1 = Bubble(bubble,0,0L,0L);
+				RemoveList(bubble);
+				break;
+
+			case 1:
+				objID = GetObjNrOfLocation(locNr);
+				if(objID)
+					{
+					hasAll(objID , OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Person);
+					bubble = ObjectListPrivate;
+
+					if(!(LIST_EMPTY(bubble)))
+						{
+						txtGetFirstLine(BUSINESS_TXT, "GENUG_2", enough);
+						ExpandObjectList(bubble, enough);
+
+						SetBubbleType(THINK_BUBBLE);
+
+						while(ChoiceOk((choice1 = Bubble(bubble,choice1,0L,0L)), GET_OUT, bubble))
+							{
+							objID  = ((struct ObjectNode *)GetNthNode(bubble,(ulong)choice1))->nr;
+
+							tcDisplayInfoAboutPerson(objID);
+							}
+						}
+					else
+						Say(BUSINESS_TXT,0,MATT_PICTID,"NOBODY TO SEE");
+					}
+				else
+					Say(BUSINESS_TXT,0,MATT_PICTID,"NOBODY TO SEE");
+
+				RemoveList(bubble);
+				break;
+			default:
+				choice = 2;
+				break;
+			}
+		}
+	}
+
+ulong tcTelefon(void)
+	{
+	char connect[TXT_KEY_LENGTH];
+	ulong eventNr = 0L;
+	Person ben = (Person)dbGetObject(Person_Ben_Riggley);
+
+	gfxShow(175, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+
+	knowsAll(Person_Matt_Stuvysunt,OLF_INCLUDE_NAME|OLF_INSERT_STAR,Object_Person);
+
+	if(!(LIST_EMPTY(ObjectList)))
+		{
+		ubyte choice = 0;
+		ulong persID;
+
+		txtGetFirstLine(BUSINESS_TXT, "DONT_CONNECT_ME", connect);
+		ExpandObjectList(ObjectList, connect);
+
+		inpTurnESC (0);
+		choice = Say(THECLOU_TXT,0,MATT_PICTID,"CONNECT_ME");
+		inpTurnESC (1);
+
+		if (choice != GET_OUT)
+			{
+			if (ChoiceOk((choice = Bubble(ObjectList, 0, 0L, 0L)), GET_OUT, ObjectList))
+				{
+				persID =  (ulong)(((struct ObjectNode*)GetNthNode(ObjectList,(ulong)choice))->nr);
+
+				if(persID == Person_Ben_Riggley)
+					Say(BUSINESS_TXT,0,ben->PictID, "ALREADY_PHONING");
+
+				if(livesIn(London_London_1, persID))
+					{
+					if(CalcRandomNr(0L,9L) == 3)
+						Say(BUSINESS_TXT,0,ben->PictID, "OCCUPIED");
+					else
+						{
+						inpTurnESC(0);
+						DynamicTalk(Person_Matt_Stuvysunt,persID, DLG_TALKMODE_STANDARD);
+						inpTurnESC(1);
+						}
+					}
+				else
+					Say(BUSINESS_TXT,0,ben->PictID, "NOBODY_AT_HOME");
+				}
+			}
+		else
+			choice = GET_OUT;	// 2014-06-28 LucyG : ??? Compiler warning "choice is assigned a value that is never used"
+		}
+	else
+		Say(THECLOU_TXT,0,MATT_PICTID,"POOR_MATT");
+
+	gfxShow(173, GFX_ONE_STEP|GFX_NO_REFRESH, 0, -1, -1);
+
+	return(eventNr);
+	}
+
+void tcWait(void)
+	{
+	char line[TXT_KEY_LENGTH];
+	ubyte ende = 0;
+	ulong action=0L, minutes=0L, locNr = GetObjNrOfLocation(GetLocation);
+	ulong newCount=0, oldCount=0;
+
+	inpTurnESC(0);
+
+	ShowMenuBackground();
+	ShowTime(0);
+	inpSetWaitTicks(25L);
+
+	gfxSetRect(0, 320);
+	gfxSetPens(m_wrp, 249, 0, GFX_SAME_PEN);
+	txtGetFirstLine(THECLOU_TXT,"WAIT",line);
+	gfxPrint(m_wrp,line,22,GFX_PRINT_CENTER);
+
+	while((!ende) && (minutes<960))
+		{
+		minutes+=60;
+
+		AddVTime(60L);
+		ShowTime(0);
+
+		if(locNr)
+			{
+			hasAll(locNr, OLF_NORMAL, Object_Person);
+
+			newCount = GetNrOfNodes(ObjectList);
+
+			if((newCount > oldCount) && (oldCount != 0))
+				{
+				SetBubbleType(THINK_BUBBLE);
+				Say(THECLOU_TXT,0,MATT_PICTID,"NEW_PEOPLE");
+				ShowTime(0);
+				}
+
+			oldCount = newCount;
+			}
+
+		action =  inpWaitFor(INP_TIME|INP_LBUTTONP|INP_RBUTTONP|INP_ESC);
+
+		if ((action & INP_LBUTTONP) || (action & INP_RBUTTONP) ||
+			 (action & INP_ESC))
+				ende = 1;
+		}
+
+	if(minutes>=960)
+		{
+		SetBubbleType(THINK_BUBBLE);
+		Say(THECLOU_TXT,0,MATT_PICTID,"WURZEL_SEPP");
+		}
+
+	inpSetWaitTicks(0L);
+	ShowMenuBackground();
+	tcRefreshLocationInTitle(GetLocation);
+
+	inpTurnESC(1);
+	ShowTime(0);
+	}
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/scenes/scenes.h b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/scenes.h
new file mode 100644
index 0000000..d68ec76
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/scenes.h
@@ -0,0 +1,128 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_SCENES
+#define MODULE_SCENES
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_INTERAC
+#include "present\interac.h"
+#endif
+
+#ifndef MODULE_PRESENT
+#include "present\present.h"
+#endif
+
+#ifndef MODULE_DIALOG
+#include "dialog\dialog.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_DATACALC
+#include "data\datacalc.h"
+#endif
+
+#ifndef MODULE_DATAAPPL
+#include "data\dataappl.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_GAMEPLAY_APP
+#include "gameplay\gp_app.h"
+#endif
+
+#ifndef MODULE_RASTER
+#include "landscap\raster.h"
+#endif
+
+extern uword	CurrentBackground;
+
+/* standard scene functions - look at scenes.c */
+
+extern ulong Go(LIST *succ);
+extern ulong tcTelefon(void);
+
+extern void Look(ulong locNr);
+extern void Information(void);
+extern void tcWait(void);
+
+/* taxi functions */
+
+extern void AddTaxiLocation(ulong locNr);
+extern void RemTaxiLocation(ulong locNr);
+
+/* Done Funktionen */
+
+void DoneHotelRoom(void);
+void DoneTaxi(void);
+void DoneGarage(void);
+void DoneParking(void);
+void DoneTools(void);
+void DoneDealer(void);
+void DoneInsideHouse(void);
+
+void tcInitFahndung(void);
+void tcDoneFahndung(void);
+
+/* Hilfsfunktionen */
+
+void Investigate(char *location);
+
+void SetCarColors(ubyte index);
+
+void tcSellCar(ulong ObjectID);
+void tcColorCar(Car car);
+void tcRepairCar(Car car,char *repairWhat);
+void tcCarGeneralOverhoul(Car car);
+void tcToolsShop(void);
+
+long tcEscapeFromBuilding(ulong escBits);
+long tcEscapeByCar(ulong escBits, long timeLeft);
+
+ulong tcChooseCar(ulong backgroundNr);
+
+LIST  *tcMakeLootList(ulong containerID, ulong relID);
+
+char *tcShowPriceOfCar(ulong nr, ulong type, void *data);
+char *tcShowPriceOfTool(ulong nr, ulong type, void *data);
+
+void tcDealerSays(Person dealer, ubyte textNr, long perc);
+void tcDealerOffer(Person dealer, ubyte which);
+
+void  tcBuyCar(void);
+void  tcCarInGarage(ulong carID);
+
+ubyte tcBuyTool(ubyte choice);
+void  tcSellTool(void);
+ubyte tcShowTool(ubyte choice);
+ubyte tcDescTool(ubyte choice);
+void  tcDealerDlg(void);
+
+ulong tcStartEvidence(void);
+ulong tcGoInsideOfHouse(ulong buildingID);
+
+void  tcShowLootInfo(Loot loot);
+void  tcInsideOfHouse(ulong buildingID, ulong areaID, ubyte perc);
+void  tcShowObjectData(ulong areaID, NODE *node, ubyte perc);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/scenes/tools.c b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/tools.c
new file mode 100644
index 0000000..a841e3d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/scenes/tools.c
@@ -0,0 +1,273 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "scenes\scenes.h"
+
+char *tcShowPriceOfTool(ulong nr, ulong type, void *data)
+	{
+	static char line[TXT_KEY_LENGTH];
+	char  line1[TXT_KEY_LENGTH];
+	Tool   tool = (Tool) data;
+
+	txtGetFirstLine (BUSINESS_TXT,"PRICE_AND_MONEY",line1);
+	sprintf(line, line1, tool->Value);
+
+	return line;
+	}
+
+ubyte tcBuyTool(ubyte choice)
+	{
+	LIST      *tools;
+	NODE      *node;
+	ulong     toolID, price, count;
+	Person    mary = (Person)dbGetObject(Person_Mary_Bolton);
+	Tool      tool;
+	ubyte     oldChoice;
+	char exp[TXT_KEY_LENGTH];
+
+	ObjectListSuccString = tcShowPriceOfTool;
+	ObjectListWidth = 48;
+
+	hasAll(Person_Mary_Bolton, OLF_ALIGNED|OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_ADD_SUCC_STRING, Object_Tool);
+	tools  = ObjectListPrivate;
+
+	ObjectListSuccString = NULL;
+	ObjectListWidth = 0;
+
+	txtGetFirstLine(BUSINESS_TXT, "THANKS", exp);
+	ExpandObjectList(tools, exp);
+
+	SetBubbleType(THINK_BUBBLE);
+
+	count = GetNrOfNodes(tools) - 1;
+
+	choice = min(choice, count);
+
+	while(choice != GET_OUT)
+		{
+		SetPictID  (MATT_PICTID);
+
+		oldChoice = choice;
+
+		if (ChoiceOk(choice = Bubble(tools, choice, 0L, 0L), GET_OUT, tools))
+			{
+			node   = (NODE*)GetNthNode(tools, (ulong) choice);
+			toolID = OL_NR(node);
+			tool   = (Tool)dbGetObject(toolID);
+			price  = tcGetToolPrice(tool);
+
+			if(has(Person_Matt_Stuvysunt, toolID))
+				Say(BUSINESS_TXT,0,mary->PictID,"AUSVERKAUFT");
+			else
+				{
+				if(tcSpendMoney(price,0))
+					{
+					hasSet(Person_Matt_Stuvysunt,toolID);
+					Say(BUSINESS_TXT,0,mary->PictID,"GOOD TOOL");
+					}
+				}
+			}
+		else
+			choice = GET_OUT;
+		}
+
+	RemoveList(tools);
+
+	return(oldChoice);
+	}
+
+ubyte tcDescTool(ubyte choice)
+	{
+	LIST  *tools, *desc;
+	char line[TXT_KEY_LENGTH];
+	ubyte oldChoice;
+	char exp[TXT_KEY_LENGTH];
+	Person mary = (Person) dbGetObject(Person_Mary_Bolton);
+
+	ObjectListSuccString = tcShowPriceOfTool;
+	ObjectListWidth = 48;
+
+	hasAll(Person_Mary_Bolton, OLF_ALIGNED|OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_ADD_SUCC_STRING, Object_Tool);
+	tools  = ObjectListPrivate;
+
+	ObjectListWidth = 0;
+	ObjectListSuccString = NULL;
+
+	txtGetFirstLine(BUSINESS_TXT, "THANKS", exp);
+	ExpandObjectList(tools, exp);
+
+	choice = min(choice, (GetNrOfNodes(tools)-1));
+
+	while(choice != GET_OUT)
+		{
+		SetPictID (MATT_PICTID);
+
+		oldChoice = choice;
+
+		if (ChoiceOk(choice = Bubble(tools, choice, 0L, 0L), GET_OUT, tools))
+			{
+			dbGetObjectName(OL_NR(GetNthNode(tools, (ulong) choice)), line);
+
+			desc = txtGoKey (TOOLS_TXT , line);
+
+			SetPictID (mary->PictID);
+			Bubble (desc,0,0L,0L);
+
+			RemoveList (desc);
+			}
+		else
+			choice = GET_OUT;
+		}
+
+	RemoveList (tools);
+
+	return(oldChoice);
+	}
+
+ubyte tcShowTool(ubyte choice)
+	{
+	LIST *tools;
+	NODE *node;
+	ulong toolID;
+	ubyte oldChoice;
+	char exp[TXT_KEY_LENGTH];
+
+	ObjectListSuccString = tcShowPriceOfTool;
+	ObjectListWidth = 48;
+
+	hasAll(Person_Mary_Bolton, OLF_ALIGNED|OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR|OLF_ADD_SUCC_STRING, Object_Tool);
+	tools  = ObjectListPrivate;
+
+	ObjectListSuccString = NULL;
+	ObjectListWidth = 0;
+
+	txtGetFirstLine(BUSINESS_TXT, "THANKS", exp);
+	ExpandObjectList(tools, exp);
+
+	choice = min(choice, (GetNrOfNodes(tools)-1));
+
+	while(choice != GET_OUT)
+		{
+		SetPictID (MATT_PICTID);
+
+		oldChoice = choice;
+
+		if (ChoiceOk (choice = Bubble(tools,choice,0L,0L), GET_OUT, tools))
+			{
+			node   = (NODE*)GetNthNode(tools, (ulong) choice);
+			toolID = OL_NR(node);
+
+			Present(toolID,"Tool",InitToolPresent);
+			}
+		else
+			choice = GET_OUT;
+		}
+
+	RemoveList(tools);
+
+	return(oldChoice);
+	}
+
+void tcSellTool()
+	{
+	LIST      *bubble,*tools;
+	NODE      *node;
+	ulong     toolID,price;
+	ubyte     choice=0;
+	Tool      tool;
+	Person    mary;
+
+	mary = (Person) dbGetObject(Person_Mary_Bolton);
+
+	hasAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Tool);
+	tools  = ObjectListPrivate;
+
+	dbRemObjectNode(tools, Tool_Hand);
+	dbRemObjectNode(tools, Tool_Fusz);
+
+	if(LIST_EMPTY(tools))
+		Say(BUSINESS_TXT,0,MATT_PICTID,"MATT_HAS_NO_TOOL");
+
+	while ((choice != GET_OUT) && (!LIST_EMPTY(tools)))
+		{
+		char exp[TXT_KEY_LENGTH];
+
+		txtGetFirstLine(BUSINESS_TXT, "NO_CHOICE", exp);
+		ExpandObjectList(tools, exp);
+
+		SetPictID(MATT_PICTID);
+		if (ChoiceOk (choice =  Bubble(tools,0,NULL,0L), GET_OUT, tools))
+			{
+			ubyte choice2 = 0;
+
+			node   =  (NODE*)GetNthNode(tools, (ulong) choice);
+			toolID =  OL_NR(node);
+
+			tool   =  (Tool)dbGetObject(toolID);
+			price  =  tcGetToolTraderOffer(tool);
+
+			bubble =  txtGoKeyAndInsert(BUSINESS_TXT,"ANGEBOT_WERKZ",price);
+
+			SetPictID(mary->PictID);
+			Bubble(bubble, 0, 0L, 0L);
+			RemoveList(bubble);
+
+			bubble = txtGoKey(BUSINESS_TXT,"VERKAUF");
+
+			if (ChoiceOk (choice2 = Bubble(bubble,choice2,0L,0L), GET_OUT, bubble))
+				{
+				if(choice2 == 0)
+					{
+					if (GamePlayMode & GP_MORE_MONEY) {	// Lucy 2017-11-08 new cheat
+						if (price > 0) price = (price * 3) / 2;
+					}
+					tcAddPlayerMoney(price);
+					hasSet(Person_Mary_Bolton,toolID);
+					hasUnSet(Person_Matt_Stuvysunt,toolID);
+					}
+				}
+
+			RemoveList (bubble);
+			}
+		else
+			choice = GET_OUT;
+
+		RemoveList(tools);
+
+		hasAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST|OLF_INCLUDE_NAME|OLF_INSERT_STAR, Object_Tool);
+		tools  = ObjectListPrivate;
+
+		dbRemObjectNode(tools, Tool_Hand);
+		dbRemObjectNode(tools, Tool_Fusz);
+		}
+
+	RemoveList(tools);
+	}
+
+void tcToolsShop(void)
+	{
+	ubyte        choice  = 0;
+	static ubyte choice1 = 0;
+
+	if(!(knows(Person_Matt_Stuvysunt,Person_Mary_Bolton)))
+		knowsSet(Person_Matt_Stuvysunt,Person_Mary_Bolton);
+
+	while(choice != 4)
+		{
+		choice = Say(BUSINESS_TXT,choice,MATT_PICTID,"Tools Shop");
+
+		switch(choice)
+			{
+			case 0:   choice1 = tcBuyTool(choice1);break;
+			case 1:   tcSellTool();break;
+			case 2:   choice1 = tcShowTool(choice1);break;
+			case 3:   choice1 = tcDescTool(choice1);break;
+			default:  choice = 4; break;
+			}
+
+		if(choice1 == GET_OUT)   choice1 = 0;
+		}
+	}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/fmopl.c b/cosp-0.6-src/ClouRemake/ClouRemake/sound/fmopl.c
new file mode 100644
index 0000000..01a42ed
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/fmopl.c
@@ -0,0 +1,2433 @@
+/*
+**
+** File: fmopl.c - software implementation of FM sound generator
+**                                            types OPL and OPL2
+**
+** Copyright (C) 1999,2000 Tatsuyuki Satoh , MultiArcadeMachineEmulator development
+** Copyright (C) 2002 Jarek Burczynski
+**
+** Version 0.60
+**
+
+Revision History:
+
+04-28-2002 Jarek Burczynski:
+ - binary exact Envelope Generator (verified on real YM3812);
+   compared to YM2151: the EG clock is equal to internal_clock,
+   rates are 2 times slower and volume resolution is one bit less
+ - modified interface functions (they no longer return pointer -
+   that's internal to the emulator now):
+    - new wrapper functions for OPLCreate: YM3526Init(), YM3812Init() and Y8950Init()
+ - corrected 'off by one' error in feedback calculations (when feedback is off)
+ - enabled waveform usage (credit goes to Vlad Romascanu and zazzal22)
+ - speeded up noise generator calculations (Nicola Salmoria)
+
+03-24-2002 Jarek Burczynski (thanks to Dox for the YM3812 chip)
+ Complete rewrite (all verified on real YM3812):
+ - corrected sin_tab and tl_tab data
+ - corrected operator output calculations
+ - corrected waveform_select_enable register;
+   simply: ignore all writes to waveform_select register when
+   waveform_select_enable == 0 and do not change the waveform previously selected.
+ - corrected KSR handling
+ - corrected Envelope Generator: attack shape, Sustain mode and
+   Percussive/Non-percussive modes handling
+ - Envelope Generator rates are two times slower now
+ - LFO amplitude (tremolo) and phase modulation (vibrato)
+ - rhythm sounds phase generation
+ - white noise generator (big thanks to Olivier Galibert for mentioning Berlekamp-Massey algorithm)
+ - corrected key on/off handling (the 'key' signal is ORed from three sources: FM, rhythm and CSM)
+ - funky details (like ignoring output of operator 1 in BD rhythm sound when connect == 1)
+
+12-28-2001 Acho A. Tang
+ - reflected Delta-T EOS status on Y8950 status port.
+ - fixed subscription range of attack/decay tables
+
+
+	To do:
+		add delay before key off in CSM mode (see CSMKeyControll)
+		verify volume of the FM part on the Y8950
+*/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdarg.h>
+#include <math.h>
+#include "fmopl.h"
+
+/* XXX */
+typedef unsigned char	UINT8;   /* unsigned  8bit */
+typedef unsigned short	UINT16;  /* unsigned 16bit */
+typedef unsigned long	UINT32;  /* unsigned 32bit */
+typedef char			INT8;    /* signed  8bit   */
+typedef short			INT16;   /* signed 16bit   */
+typedef long			INT32;   /* signed 32bit   */
+
+#define INLINE  static
+/* XXX */
+
+#ifndef PI
+#define PI 3.14159265358979323846
+#endif
+
+
+
+/* output final shift */
+#if (OPL_SAMPLE_BITS==16)
+	#define FINAL_SH	(0)
+	#define MAXOUT		(+32767)
+	#define MINOUT		(-32768)
+#else
+	#define FINAL_SH	(8)
+	#define MAXOUT		(+127)
+	#define MINOUT		(-128)
+#endif
+
+
+#define FREQ_SH			16  /* 16.16 fixed point (frequency calculations) */
+#define EG_SH			16  /* 16.16 fixed point (EG timing)              */
+#define LFO_SH			24  /*  8.24 fixed point (LFO calculations)       */
+#define TIMER_SH		16  /* 16.16 fixed point (timers calculations)    */
+
+#define FREQ_MASK		((1<<FREQ_SH)-1)
+
+/* envelope output entries */
+#define ENV_BITS		10
+#define ENV_LEN			(1<<ENV_BITS)
+#define ENV_STEP		(128.0/ENV_LEN)
+
+#define MAX_ATT_INDEX	((1<<(ENV_BITS-1))-1) /*511*/
+#define MIN_ATT_INDEX	(0)
+
+/* sinwave entries */
+#define SIN_BITS		10
+#define SIN_LEN			(1<<SIN_BITS)
+#define SIN_MASK		(SIN_LEN-1)
+
+#define TL_RES_LEN		(256)	/* 8 bits addressing (real chip) */
+
+
+
+/* register number to channel number , slot offset */
+#define SLOT1 0
+#define SLOT2 1
+
+/* Envelope Generator phases */
+
+#define EG_ATT			4
+#define EG_DEC			3
+#define EG_SUS			2
+#define EG_REL			1
+#define EG_OFF			0
+
+
+/* save output as raw 16-bit sample */
+
+/*#define SAVE_SAMPLE*/
+
+#ifdef SAVE_SAMPLE
+static FILE *sample[1];
+	#if 1	/*save to MONO file */
+		#define SAVE_ALL_CHANNELS \
+		{	signed int pom = lt; \
+			fputc((unsigned short)pom&0xff,sample[0]); \
+			fputc(((unsigned short)pom>>8)&0xff,sample[0]); \
+		}
+	#else	/*save to STEREO file */
+		#define SAVE_ALL_CHANNELS \
+		{	signed int pom = lt; \
+			fputc((unsigned short)pom&0xff,sample[0]); \
+			fputc(((unsigned short)pom>>8)&0xff,sample[0]); \
+			pom = rt; \
+			fputc((unsigned short)pom&0xff,sample[0]); \
+			fputc(((unsigned short)pom>>8)&0xff,sample[0]); \
+		}
+	#endif
+#endif
+
+/* #define LOG_CYM_FILE */
+#ifdef LOG_CYM_FILE
+	FILE * cymfile = NULL;
+#endif
+
+
+
+#define OPL_TYPE_WAVESEL   0x01  /* waveform select		*/
+#define OPL_TYPE_ADPCM     0x02  /* DELTA-T ADPCM unit	*/
+#define OPL_TYPE_KEYBOARD  0x04  /* keyboard interface	*/
+#define OPL_TYPE_IO        0x08  /* I/O port			*/
+
+/* ---------- Generic interface section ---------- */
+#define OPL_TYPE_YM3526 (0)
+#define OPL_TYPE_YM3812 (OPL_TYPE_WAVESEL)
+#define OPL_TYPE_Y8950  (OPL_TYPE_ADPCM|OPL_TYPE_KEYBOARD|OPL_TYPE_IO)
+
+
+
+/* Saving is necessary for member of the 'R' mark for suspend/resume */
+
+typedef struct{
+	UINT32	ar;			/* attack rate: AR<<2			*/
+	UINT32	dr;			/* decay rate:  DR<<2			*/
+	UINT32	rr;			/* release rate:RR<<2			*/
+	UINT8	KSR;		/* key scale rate				*/
+	UINT8	ksl;		/* keyscale level				*/
+	UINT8	ksr;		/* key scale rate: kcode>>KSR	*/
+	UINT8	mul;		/* multiple: mul_tab[ML]		*/
+
+	/* Phase Generator */
+	UINT32	Cnt;		/* frequency counter			*/
+	UINT32	Incr;		/* frequency counter step		*/
+	UINT8   FB;			/* feedback shift value			*/
+	INT32   *connect1;	/* slot1 output pointer			*/
+	INT32   op1_out[2];	/* slot1 output for feedback	*/
+	UINT8   CON;		/* connection (algorithm) type	*/
+
+	/* Envelope Generator */
+	UINT8	eg_type;	/* percussive/non-percussive mode */
+	UINT8	state;		/* phase type					*/
+	UINT32	TL;			/* total level: TL << 2			*/
+	INT32	TLL;		/* adjusted now TL				*/
+	INT32	volume;		/* envelope counter				*/
+	INT32	sl;			/* sustain level: sl_tab[SL]	*/
+
+	UINT8	eg_sh_ar;	/* (attack state)				*/
+	UINT8	eg_sel_ar;	/* (attack state)				*/
+	UINT8	eg_sh_dr;	/* (decay state)				*/
+	UINT8	eg_sel_dr;	/* (decay state)				*/
+	UINT8	eg_sh_rr;	/* (release state)				*/
+	UINT8	eg_sel_rr;	/* (release state)				*/
+
+	UINT32	key;		/* 0 = KEY OFF, >0 = KEY ON		*/
+
+	/* LFO */
+	UINT32	AMmask;		/* LFO Amplitude Modulation enable mask */
+	UINT8	vib;		/* LFO Phase Modulation enable flag (active high)*/
+
+	/* waveform select */
+	unsigned int wavetable;
+} OPL_SLOT;
+
+typedef struct{
+	OPL_SLOT SLOT[2];
+	/* phase generator state */
+	UINT32  block_fnum;	/* block+fnum					*/
+	UINT32  fc;			/* Freq. Increment base			*/
+	UINT32  ksl_base;	/* KeyScaleLevel Base step		*/
+	UINT8   kcode;		/* key code (for key scaling)	*/
+} OPL_CH;
+
+/* OPL state */
+typedef struct fm_opl_f {
+	/* FM channel slots */
+	OPL_CH	P_CH[9];				/* OPL/OPL2 chips have 9 channels*/
+
+	UINT32	eg_cnt;					/* global envelope generator counter	*/
+	UINT32	eg_timer;				/* global envelope generator counter works at frequency = chipclock/72 */
+	UINT32	eg_timer_add;			/* step of eg_timer						*/
+	UINT32	eg_timer_overflow;		/* envelope generator timer overlfows every 1 sample (on real chip) */
+
+	UINT8	rhythm;					/* Rhythm mode					*/
+
+	UINT32	fn_tab[1024];			/* fnumber->increment counter	*/
+
+	/* LFO */
+	UINT8	lfo_am_depth;
+	UINT8	lfo_pm_depth_range;
+	UINT32	lfo_am_cnt;
+	UINT32	lfo_am_inc;
+	UINT32	lfo_pm_cnt;
+	UINT32	lfo_pm_inc;
+
+	UINT32	noise_rng;				/* 23 bit noise shift register	*/
+	UINT32	noise_p;				/* current noise 'phase'		*/
+	UINT32	noise_f;				/* current noise period			*/
+
+	UINT8	wavesel;				/* waveform select enable flag	*/
+
+	int		T[2];					/* timer counters				*/
+	UINT8	st[2];					/* timer enable					*/
+
+#if BUILD_Y8950
+	/* Delta-T ADPCM unit (Y8950) */
+
+	YM_DELTAT *deltat;
+
+	/* Keyboard / I/O interface unit*/
+	UINT8	portDirection;
+	UINT8	portLatch;
+	OPL_PORTHANDLER_R porthandler_r;
+	OPL_PORTHANDLER_W porthandler_w;
+	int		port_param;
+	OPL_PORTHANDLER_R keyboardhandler_r;
+	OPL_PORTHANDLER_W keyboardhandler_w;
+	int		keyboard_param;
+#endif
+
+	/* external event callback handlers */
+	OPL_TIMERHANDLER  TimerHandler;	/* TIMER handler				*/
+	int TimerParam;					/* TIMER parameter				*/
+	OPL_IRQHANDLER    IRQHandler;	/* IRQ handler					*/
+	int IRQParam;					/* IRQ parameter				*/
+	OPL_UPDATEHANDLER UpdateHandler;/* stream update handler		*/
+	int UpdateParam;				/* stream update parameter		*/
+
+	UINT8 type;						/* chip type					*/
+	UINT8 address;					/* address register				*/
+	UINT8 status;					/* status flag					*/
+	UINT8 statusmask;				/* status mask					*/
+	UINT8 mode;						/* Reg.08 : CSM,notesel,etc.	*/
+
+	int clock;						/* master clock  (Hz)			*/
+	int rate;						/* sampling rate (Hz)			*/
+	double freqbase;				/* frequency base				*/
+	double TimerBase;				/* Timer base time (==sampling time)*/
+} FM_OPL;
+
+
+
+/* mapping of register number (offset) to slot number used by the emulator */
+static const int slot_array[32]=
+{
+	 0, 2, 4, 1, 3, 5,-1,-1,
+	 6, 8,10, 7, 9,11,-1,-1,
+	12,14,16,13,15,17,-1,-1,
+	-1,-1,-1,-1,-1,-1,-1,-1
+};
+
+/* key scale level */
+/* table is 3dB/octave , DV converts this into 6dB/octave */
+/* 0.1875 is bit 0 weight of the envelope counter (volume) expressed in the 'decibel' scale */
+#define DV (0.1875/2.0)
+static const UINT32 ksl_tab[8*16]=
+{
+	/* OCT 0 */
+	 0.000/DV, 0.000/DV, 0.000/DV, 0.000/DV,
+	 0.000/DV, 0.000/DV, 0.000/DV, 0.000/DV,
+	 0.000/DV, 0.000/DV, 0.000/DV, 0.000/DV,
+	 0.000/DV, 0.000/DV, 0.000/DV, 0.000/DV,
+	/* OCT 1 */
+	 0.000/DV, 0.000/DV, 0.000/DV, 0.000/DV,
+	 0.000/DV, 0.000/DV, 0.000/DV, 0.000/DV,
+	 0.000/DV, 0.750/DV, 1.125/DV, 1.500/DV,
+	 1.875/DV, 2.250/DV, 2.625/DV, 3.000/DV,
+	/* OCT 2 */
+	 0.000/DV, 0.000/DV, 0.000/DV, 0.000/DV,
+	 0.000/DV, 1.125/DV, 1.875/DV, 2.625/DV,
+	 3.000/DV, 3.750/DV, 4.125/DV, 4.500/DV,
+	 4.875/DV, 5.250/DV, 5.625/DV, 6.000/DV,
+	/* OCT 3 */
+	 0.000/DV, 0.000/DV, 0.000/DV, 1.875/DV,
+	 3.000/DV, 4.125/DV, 4.875/DV, 5.625/DV,
+	 6.000/DV, 6.750/DV, 7.125/DV, 7.500/DV,
+	 7.875/DV, 8.250/DV, 8.625/DV, 9.000/DV,
+	/* OCT 4 */
+	 0.000/DV, 0.000/DV, 3.000/DV, 4.875/DV,
+	 6.000/DV, 7.125/DV, 7.875/DV, 8.625/DV,
+	 9.000/DV, 9.750/DV,10.125/DV,10.500/DV,
+	10.875/DV,11.250/DV,11.625/DV,12.000/DV,
+	/* OCT 5 */
+	 0.000/DV, 3.000/DV, 6.000/DV, 7.875/DV,
+	 9.000/DV,10.125/DV,10.875/DV,11.625/DV,
+	12.000/DV,12.750/DV,13.125/DV,13.500/DV,
+	13.875/DV,14.250/DV,14.625/DV,15.000/DV,
+	/* OCT 6 */
+	 0.000/DV, 6.000/DV, 9.000/DV,10.875/DV,
+	12.000/DV,13.125/DV,13.875/DV,14.625/DV,
+	15.000/DV,15.750/DV,16.125/DV,16.500/DV,
+	16.875/DV,17.250/DV,17.625/DV,18.000/DV,
+	/* OCT 7 */
+	 0.000/DV, 9.000/DV,12.000/DV,13.875/DV,
+	15.000/DV,16.125/DV,16.875/DV,17.625/DV,
+	18.000/DV,18.750/DV,19.125/DV,19.500/DV,
+	19.875/DV,20.250/DV,20.625/DV,21.000/DV
+};
+#undef DV
+
+/* sustain level table (3dB per step) */
+/* 0 - 15: 0, 3, 6, 9,12,15,18,21,24,27,30,33,36,39,42,93 (dB)*/
+#define SC(db) (UINT32) ( db * (2.0/ENV_STEP) )
+static const UINT32 sl_tab[16]={
+ SC( 0),SC( 1),SC( 2),SC(3 ),SC(4 ),SC(5 ),SC(6 ),SC( 7),
+ SC( 8),SC( 9),SC(10),SC(11),SC(12),SC(13),SC(14),SC(31)
+};
+#undef SC
+
+
+#define RATE_STEPS (8)
+static const unsigned char eg_inc[15*RATE_STEPS]={
+
+/*cycle:0 1  2 3  4 5  6 7*/
+
+/* 0 */ 0,1, 0,1, 0,1, 0,1, /* rates 00..12 0 (increment by 0 or 1) */
+/* 1 */ 0,1, 0,1, 1,1, 0,1, /* rates 00..12 1 */
+/* 2 */ 0,1, 1,1, 0,1, 1,1, /* rates 00..12 2 */
+/* 3 */ 0,1, 1,1, 1,1, 1,1, /* rates 00..12 3 */
+
+/* 4 */ 1,1, 1,1, 1,1, 1,1, /* rate 13 0 (increment by 1) */
+/* 5 */ 1,1, 1,2, 1,1, 1,2, /* rate 13 1 */
+/* 6 */ 1,2, 1,2, 1,2, 1,2, /* rate 13 2 */
+/* 7 */ 1,2, 2,2, 1,2, 2,2, /* rate 13 3 */
+
+/* 8 */ 2,2, 2,2, 2,2, 2,2, /* rate 14 0 (increment by 2) */
+/* 9 */ 2,2, 2,4, 2,2, 2,4, /* rate 14 1 */
+/*10 */ 2,4, 2,4, 2,4, 2,4, /* rate 14 2 */
+/*11 */ 2,4, 4,4, 2,4, 4,4, /* rate 14 3 */
+
+/*12 */ 4,4, 4,4, 4,4, 4,4, /* rates 15 0, 15 1, 15 2, 15 3 (increment by 4) */
+/*13 */ 8,8, 8,8, 8,8, 8,8, /* rates 15 2, 15 3 for attack */
+/*14 */ 0,0, 0,0, 0,0, 0,0, /* infinity rates for attack and decay(s) */
+};
+
+
+#define O(a) (a*RATE_STEPS)
+
+/*note that there is no O(13) in this table - it's directly in the code */
+static const unsigned char eg_rate_select[16+64+16]={	/* Envelope Generator rates (16 + 64 rates + 16 RKS) */
+/* 16 dummy (infinite time) rates */
+O(14),O(14),O(14),O(14),O(14),O(14),O(14),O(14),
+O(14),O(14),O(14),O(14),O(14),O(14),O(14),O(14),
+
+/* rates 00-12 */
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+O( 0),O( 1),O( 2),O( 3),
+
+/* rate 13 */
+O( 4),O( 5),O( 6),O( 7),
+
+/* rate 14 */
+O( 8),O( 9),O(10),O(11),
+
+/* rate 15 */
+O(12),O(12),O(12),O(12),
+
+/* 16 dummy rates (same as 15 3) */
+O(12),O(12),O(12),O(12),O(12),O(12),O(12),O(12),
+O(12),O(12),O(12),O(12),O(12),O(12),O(12),O(12),
+
+};
+#undef O
+
+/* rate  0,    1,    2,    3,   4,   5,   6,  7,  8,  9,  10, 11, 12, 13, 14, 15 */
+/* shift 12,   11,   10,   9,   8,   7,   6,  5,  4,  3,  2,  1,  0,  0,  0,  0  */
+/* mask  4095, 2047, 1023, 511, 255, 127, 63, 31, 15, 7,  3,  1,  0,  0,  0,  0  */
+
+#define O(a) (a*1)
+static const unsigned char eg_rate_shift[16+64+16]={	/* Envelope Generator counter shifts (16 + 64 rates + 16 RKS) */
+/* 16 infinite time rates */
+O(0),O(0),O(0),O(0),O(0),O(0),O(0),O(0),
+O(0),O(0),O(0),O(0),O(0),O(0),O(0),O(0),
+
+/* rates 00-12 */
+O(12),O(12),O(12),O(12),
+O(11),O(11),O(11),O(11),
+O(10),O(10),O(10),O(10),
+O( 9),O( 9),O( 9),O( 9),
+O( 8),O( 8),O( 8),O( 8),
+O( 7),O( 7),O( 7),O( 7),
+O( 6),O( 6),O( 6),O( 6),
+O( 5),O( 5),O( 5),O( 5),
+O( 4),O( 4),O( 4),O( 4),
+O( 3),O( 3),O( 3),O( 3),
+O( 2),O( 2),O( 2),O( 2),
+O( 1),O( 1),O( 1),O( 1),
+O( 0),O( 0),O( 0),O( 0),
+
+/* rate 13 */
+O( 0),O( 0),O( 0),O( 0),
+
+/* rate 14 */
+O( 0),O( 0),O( 0),O( 0),
+
+/* rate 15 */
+O( 0),O( 0),O( 0),O( 0),
+
+/* 16 dummy rates (same as 15 3) */
+O( 0),O( 0),O( 0),O( 0),O( 0),O( 0),O( 0),O( 0),
+O( 0),O( 0),O( 0),O( 0),O( 0),O( 0),O( 0),O( 0),
+
+};
+#undef O
+
+
+/* multiple table */
+#define ML 2
+static const UINT8 mul_tab[16]= {
+/* 1/2, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,10,12,12,15,15 */
+   0.50*ML, 1.00*ML, 2.00*ML, 3.00*ML, 4.00*ML, 5.00*ML, 6.00*ML, 7.00*ML,
+   8.00*ML, 9.00*ML,10.00*ML,10.00*ML,12.00*ML,12.00*ML,15.00*ML,15.00*ML
+};
+#undef ML
+
+/*	TL_TAB_LEN is calculated as:
+*	12 - sinus amplitude bits     (Y axis)
+*	2  - sinus sign bit           (Y axis)
+*	TL_RES_LEN - sinus resolution (X axis)
+*/
+#define TL_TAB_LEN (12*2*TL_RES_LEN)
+static signed int tl_tab[TL_TAB_LEN];
+
+#define ENV_QUIET		(TL_TAB_LEN>>4)
+
+/* sin waveform table in 'decibel' scale */
+/* four waveforms on OPL2 type chips */
+static unsigned int sin_tab[SIN_LEN * 4];
+
+
+/* LFO Amplitude Modulation table (verified on real YM3812)
+   27 output levels (triangle waveform); 1 level takes one of: 192, 256 or 448 samples
+
+   Length: 210 elements.
+
+	Each of the elements has to be repeated
+	exactly 64 times (on 64 consecutive samples).
+	The whole table takes: 64 * 210 = 13440 samples.
+
+	When AM = 1 data is used directly
+	When AM = 0 data is divided by 4 before being used (loosing precision is important)
+*/
+
+#define LFO_AM_TAB_ELEMENTS 210U
+
+static const UINT8 lfo_am_table[LFO_AM_TAB_ELEMENTS] = {
+0,0,0,0,0,0,0,
+1,1,1,1,
+2,2,2,2,
+3,3,3,3,
+4,4,4,4,
+5,5,5,5,
+6,6,6,6,
+7,7,7,7,
+8,8,8,8,
+9,9,9,9,
+10,10,10,10,
+11,11,11,11,
+12,12,12,12,
+13,13,13,13,
+14,14,14,14,
+15,15,15,15,
+16,16,16,16,
+17,17,17,17,
+18,18,18,18,
+19,19,19,19,
+20,20,20,20,
+21,21,21,21,
+22,22,22,22,
+23,23,23,23,
+24,24,24,24,
+25,25,25,25,
+26,26,26,
+25,25,25,25,
+24,24,24,24,
+23,23,23,23,
+22,22,22,22,
+21,21,21,21,
+20,20,20,20,
+19,19,19,19,
+18,18,18,18,
+17,17,17,17,
+16,16,16,16,
+15,15,15,15,
+14,14,14,14,
+13,13,13,13,
+12,12,12,12,
+11,11,11,11,
+10,10,10,10,
+9,9,9,9,
+8,8,8,8,
+7,7,7,7,
+6,6,6,6,
+5,5,5,5,
+4,4,4,4,
+3,3,3,3,
+2,2,2,2,
+1,1,1,1
+};
+
+/* LFO Phase Modulation table (verified on real YM3812) */
+static const INT8 lfo_pm_table[8*8*2] = {
+
+/* FNUM2/FNUM = 00 0xxxxxxx (0x0000) */
+0, 0, 0, 0, 0, 0, 0, 0,	/*LFO PM depth = 0*/
+0, 0, 0, 0, 0, 0, 0, 0,	/*LFO PM depth = 1*/
+
+/* FNUM2/FNUM = 00 1xxxxxxx (0x0080) */
+0, 0, 0, 0, 0, 0, 0, 0,	/*LFO PM depth = 0*/
+1, 0, 0, 0,-1, 0, 0, 0,	/*LFO PM depth = 1*/
+
+/* FNUM2/FNUM = 01 0xxxxxxx (0x0100) */
+1, 0, 0, 0,-1, 0, 0, 0,	/*LFO PM depth = 0*/
+2, 1, 0,-1,-2,-1, 0, 1,	/*LFO PM depth = 1*/
+
+/* FNUM2/FNUM = 01 1xxxxxxx (0x0180) */
+1, 0, 0, 0,-1, 0, 0, 0,	/*LFO PM depth = 0*/
+3, 1, 0,-1,-3,-1, 0, 1,	/*LFO PM depth = 1*/
+
+/* FNUM2/FNUM = 10 0xxxxxxx (0x0200) */
+2, 1, 0,-1,-2,-1, 0, 1,	/*LFO PM depth = 0*/
+4, 2, 0,-2,-4,-2, 0, 2,	/*LFO PM depth = 1*/
+
+/* FNUM2/FNUM = 10 1xxxxxxx (0x0280) */
+2, 1, 0,-1,-2,-1, 0, 1,	/*LFO PM depth = 0*/
+5, 2, 0,-2,-5,-2, 0, 2,	/*LFO PM depth = 1*/
+
+/* FNUM2/FNUM = 11 0xxxxxxx (0x0300) */
+3, 1, 0,-1,-3,-1, 0, 1,	/*LFO PM depth = 0*/
+6, 3, 0,-3,-6,-3, 0, 3,	/*LFO PM depth = 1*/
+
+/* FNUM2/FNUM = 11 1xxxxxxx (0x0380) */
+3, 1, 0,-1,-3,-1, 0, 1,	/*LFO PM depth = 0*/
+7, 3, 0,-3,-7,-3, 0, 3	/*LFO PM depth = 1*/
+};
+
+
+/* lock level of common table */
+static int num_lock = 0;
+
+/* work table */
+static void *cur_chip = NULL;	/* current chip point */
+OPL_SLOT *SLOT7_1,*SLOT7_2,*SLOT8_1,*SLOT8_2;
+
+static signed int phase_modulation;		/* phase modulation input (SLOT 2) */
+static signed int output[1];
+
+#if BUILD_Y8950
+static INT32 output_deltat[4];		/* for Y8950 DELTA-T */
+#endif
+
+static UINT32	LFO_AM;
+static INT32	LFO_PM;
+
+
+
+INLINE int limit( int val, int max, int min ) {
+	if ( val > max )
+		val = max;
+	else if ( val < min )
+		val = min;
+
+	return val;
+}
+
+
+/* status set and IRQ handling */
+INLINE void OPL_STATUS_SET(FM_OPL *OPL,int flag)
+{
+	/* set status flag */
+	OPL->status |= flag;
+	if(!(OPL->status & 0x80))
+	{
+		if(OPL->status & OPL->statusmask)
+		{	/* IRQ on */
+			OPL->status |= 0x80;
+			/* callback user interrupt handler (IRQ is OFF to ON) */
+			if(OPL->IRQHandler) (OPL->IRQHandler)(OPL->IRQParam,1);
+		}
+	}
+}
+
+/* status reset and IRQ handling */
+INLINE void OPL_STATUS_RESET(FM_OPL *OPL,int flag)
+{
+	/* reset status flag */
+	OPL->status &=~flag;
+	if((OPL->status & 0x80))
+	{
+		if (!(OPL->status & OPL->statusmask) )
+		{
+			OPL->status &= 0x7f;
+			/* callback user interrupt handler (IRQ is ON to OFF) */
+			if(OPL->IRQHandler) (OPL->IRQHandler)(OPL->IRQParam,0);
+		}
+	}
+}
+
+/* IRQ mask set */
+INLINE void OPL_STATUSMASK_SET(FM_OPL *OPL,int flag)
+{
+	OPL->statusmask = flag;
+	/* IRQ handling check */
+	OPL_STATUS_SET(OPL,0);
+	OPL_STATUS_RESET(OPL,0);
+}
+
+
+/* advance LFO to next sample */
+INLINE void advance_lfo(FM_OPL *OPL)
+{
+	UINT8 tmp;
+
+	/* LFO */
+	OPL->lfo_am_cnt += OPL->lfo_am_inc;
+	if (OPL->lfo_am_cnt >= (LFO_AM_TAB_ELEMENTS<<LFO_SH) )	/* lfo_am_table is 210 elements long */
+		OPL->lfo_am_cnt -= (LFO_AM_TAB_ELEMENTS<<LFO_SH);
+
+	tmp = lfo_am_table[ OPL->lfo_am_cnt >> LFO_SH ];
+
+	if (OPL->lfo_am_depth)
+		LFO_AM = tmp;
+	else
+		LFO_AM = tmp>>2;
+
+	OPL->lfo_pm_cnt += OPL->lfo_pm_inc;
+	LFO_PM = ((OPL->lfo_pm_cnt>>LFO_SH) & 7) | OPL->lfo_pm_depth_range;
+}
+
+/* advance to next sample */
+INLINE void advance(FM_OPL *OPL)
+{
+	OPL_CH *CH;
+	OPL_SLOT *op;
+	int i;
+
+	OPL->eg_timer += OPL->eg_timer_add;
+
+	while (OPL->eg_timer >= OPL->eg_timer_overflow)
+	{
+		OPL->eg_timer -= OPL->eg_timer_overflow;
+
+		OPL->eg_cnt++;
+
+		for (i=0; i<9*2; i++)
+		{
+			CH  = &OPL->P_CH[i/2];
+			op  = &CH->SLOT[i&1];
+
+			/* Envelope Generator */
+			switch(op->state)
+			{
+			case EG_ATT:		/* attack phase */
+			{
+
+				if ( !(OPL->eg_cnt & ((1<<op->eg_sh_ar)-1) ) )
+				{
+					op->volume += (~op->volume *
+	                        		           (eg_inc[op->eg_sel_ar + ((OPL->eg_cnt>>op->eg_sh_ar)&7)])
+        			                          ) >>3;
+
+					if (op->volume <= MIN_ATT_INDEX)
+					{
+						op->volume = MIN_ATT_INDEX;
+						op->state = EG_DEC;
+					}
+
+				}
+
+			}
+			break;
+
+			case EG_DEC:	/* decay phase */
+				if ( !(OPL->eg_cnt & ((1<<op->eg_sh_dr)-1) ) )
+				{
+					op->volume += eg_inc[op->eg_sel_dr + ((OPL->eg_cnt>>op->eg_sh_dr)&7)];
+
+					if ( op->volume >= op->sl )
+						op->state = EG_SUS;
+
+				}
+			break;
+
+			case EG_SUS:	/* sustain phase */
+
+				/* this is important behaviour:
+				one can change percusive/non-percussive modes on the fly and
+				the chip will remain in sustain phase - verified on real YM3812 */
+
+				if(op->eg_type)		/* non-percussive mode */
+				{
+									/* do nothing */
+				}
+				else				/* percussive mode */
+				{
+					/* during sustain phase chip adds Release Rate (in percussive mode) */
+					if ( !(OPL->eg_cnt & ((1<<op->eg_sh_rr)-1) ) )
+					{
+						op->volume += eg_inc[op->eg_sel_rr + ((OPL->eg_cnt>>op->eg_sh_rr)&7)];
+
+						if ( op->volume >= MAX_ATT_INDEX )
+							op->volume = MAX_ATT_INDEX;
+					}
+					/* else do nothing in sustain phase */
+				}
+			break;
+
+			case EG_REL:	/* release phase */
+				if ( !(OPL->eg_cnt & ((1<<op->eg_sh_rr)-1) ) )
+				{
+					op->volume += eg_inc[op->eg_sel_rr + ((OPL->eg_cnt>>op->eg_sh_rr)&7)];
+
+					if ( op->volume >= MAX_ATT_INDEX )
+					{
+						op->volume = MAX_ATT_INDEX;
+						op->state = EG_OFF;
+					}
+
+				}
+			break;
+
+			default:
+			break;
+			}
+		}
+	}
+
+	for (i=0; i<9*2; i++)
+	{
+		CH  = &OPL->P_CH[i/2];
+		op  = &CH->SLOT[i&1];
+
+		/* Phase Generator */
+		if(op->vib)
+		{
+			UINT8 block;
+			unsigned int block_fnum = CH->block_fnum;
+
+			unsigned int fnum_lfo   = (block_fnum&0x0380) >> 7;
+
+			signed int lfo_fn_table_index_offset = lfo_pm_table[LFO_PM + 16*fnum_lfo ];
+
+			if (lfo_fn_table_index_offset)	/* LFO phase modulation active */
+			{
+				block_fnum += lfo_fn_table_index_offset;
+				block = (block_fnum&0x1c00) >> 10;
+				op->Cnt += (OPL->fn_tab[block_fnum&0x03ff] >> (7-block)) * op->mul; /* ok */
+			}
+			else	/* LFO phase modulation  = zero */
+			{
+				op->Cnt += op->Incr;
+			}
+		}
+		else	/* LFO phase modulation disabled for this operator */
+		{
+			op->Cnt += op->Incr;
+		}
+	}
+
+	/*	The Noise Generator of the YM3812 is 23-bit shift register.
+	*	Period is equal to 2^23-2 samples.
+	*	Register works at sampling frequency of the chip, so output
+	*	can change on every sample.
+	*
+	*	Output of the register and input to the bit 22 is:
+	*	bit0 XOR bit14 XOR bit15 XOR bit22
+	*
+	*	Simply use bit 22 as the noise output.
+	*/
+
+	OPL->noise_p += OPL->noise_f;
+	i = OPL->noise_p >> FREQ_SH;		/* number of events (shifts of the shift register) */
+	OPL->noise_p &= FREQ_MASK;
+	while (i)
+	{
+		/*
+		UINT32 j;
+		j = ( (OPL->noise_rng) ^ (OPL->noise_rng>>14) ^ (OPL->noise_rng>>15) ^ (OPL->noise_rng>>22) ) & 1;
+		OPL->noise_rng = (j<<22) | (OPL->noise_rng>>1);
+		*/
+
+		/*
+			Instead of doing all the logic operations above, we
+			use a trick here (and use bit 0 as the noise output).
+			The difference is only that the noise bit changes one
+			step ahead. This doesn't matter since we don't know
+			what is real state of the noise_rng after the reset.
+		*/
+
+		if (OPL->noise_rng & 1) OPL->noise_rng ^= 0x800302;
+		OPL->noise_rng >>= 1;
+
+		i--;
+	}
+}
+
+
+INLINE signed int op_calc(UINT32 phase, unsigned int env, signed int pm, unsigned int wave_tab)
+{
+	UINT32 p;
+
+	p = (env<<4) + sin_tab[wave_tab + ((((signed int)((phase & ~FREQ_MASK) + (pm<<16))) >> FREQ_SH ) & SIN_MASK) ];
+
+	if (p >= TL_TAB_LEN)
+		return 0;
+	return tl_tab[p];
+}
+
+INLINE signed int op_calc1(UINT32 phase, unsigned int env, signed int pm, unsigned int wave_tab)
+{
+	UINT32 p;
+	INT32  i;
+
+	i = (phase & ~FREQ_MASK) + pm;
+
+/*logerror("i=%08x (i>>16)&511=%8i phase=%i [pm=%08x] ",i, (i>>16)&511, phase>>FREQ_SH, pm);*/
+
+	p = (env<<4) + sin_tab[ wave_tab + ((i>>FREQ_SH) & SIN_MASK)];
+
+/*logerror("(p&255=%i p>>8=%i) out= %i\n", p&255,p>>8, tl_tab[p&255]>>(p>>8) );*/
+
+	if (p >= TL_TAB_LEN)
+		return 0;
+	return tl_tab[p];
+}
+
+
+#define volume_calc(OP) ((OP)->TLL + ((UINT32)(OP)->volume) + (LFO_AM & (OP)->AMmask))
+
+/* calculate output */
+INLINE void OPL_CALC_CH( OPL_CH *CH )
+{
+	OPL_SLOT *SLOT;
+	unsigned int env;
+	signed int out;
+
+	phase_modulation = 0;
+
+	/* SLOT 1 */
+	SLOT = &CH->SLOT[SLOT1];
+	env  = volume_calc(SLOT);
+	out  = SLOT->op1_out[0] + SLOT->op1_out[1];
+	SLOT->op1_out[0] = SLOT->op1_out[1];
+	*SLOT->connect1 += SLOT->op1_out[0];
+	SLOT->op1_out[1] = 0;
+	if( env < ENV_QUIET )
+	{
+		if (!SLOT->FB)
+			out = 0;
+		SLOT->op1_out[1] = op_calc1(SLOT->Cnt, env, (out<<SLOT->FB), SLOT->wavetable );
+	}
+
+	/* SLOT 2 */
+	SLOT++;
+	env = volume_calc(SLOT);
+	if( env < ENV_QUIET )
+		output[0] += op_calc(SLOT->Cnt, env, phase_modulation, SLOT->wavetable);
+}
+
+/*
+	operators used in the rhythm sounds generation process:
+
+	Envelope Generator:
+
+channel  operator  register number   Bass  High  Snare Tom  Top
+/ slot   number    TL ARDR SLRR Wave Drum  Hat   Drum  Tom  Cymbal
+ 6 / 0   12        50  70   90   f0  +
+ 6 / 1   15        53  73   93   f3  +
+ 7 / 0   13        51  71   91   f1        +
+ 7 / 1   16        54  74   94   f4              +
+ 8 / 0   14        52  72   92   f2                    +
+ 8 / 1   17        55  75   95   f5                          +
+
+	Phase Generator:
+
+channel  operator  register number   Bass  High  Snare Tom  Top
+/ slot   number    MULTIPLE          Drum  Hat   Drum  Tom  Cymbal
+ 6 / 0   12        30                +
+ 6 / 1   15        33                +
+ 7 / 0   13        31                      +     +           +
+ 7 / 1   16        34                -----  n o t  u s e d -----
+ 8 / 0   14        32                                  +
+ 8 / 1   17        35                      +                 +
+
+channel  operator  register number   Bass  High  Snare Tom  Top
+number   number    BLK/FNUM2 FNUM    Drum  Hat   Drum  Tom  Cymbal
+   6     12,15     B6        A6      +
+
+   7     13,16     B7        A7            +     +           +
+
+   8     14,17     B8        A8            +           +     +
+
+*/
+
+/* calculate rhythm */
+
+INLINE void OPL_CALC_RH( OPL_CH *CH, unsigned int noise )
+{
+	OPL_SLOT *SLOT;
+	signed int out;
+	unsigned int env;
+
+
+	/* Bass Drum (verified on real YM3812):
+	  - depends on the channel 6 'connect' register:
+	      when connect = 0 it works the same as in normal (non-rhythm) mode (op1->op2->out)
+	      when connect = 1 _only_ operator 2 is present on output (op2->out), operator 1 is ignored
+	  - output sample always is multiplied by 2
+	*/
+
+	phase_modulation = 0;
+	/* SLOT 1 */
+	SLOT = &CH[6].SLOT[SLOT1];
+	env = volume_calc(SLOT);
+
+	out = SLOT->op1_out[0] + SLOT->op1_out[1];
+	SLOT->op1_out[0] = SLOT->op1_out[1];
+
+	if (!SLOT->CON)
+		phase_modulation = SLOT->op1_out[0];
+	/* else ignore output of operator 1 */
+
+	SLOT->op1_out[1] = 0;
+	if( env < ENV_QUIET )
+	{
+		if (!SLOT->FB)
+			out = 0;
+		SLOT->op1_out[1] = op_calc1(SLOT->Cnt, env, (out<<SLOT->FB), SLOT->wavetable );
+	}
+
+	/* SLOT 2 */
+	SLOT++;
+	env = volume_calc(SLOT);
+	if( env < ENV_QUIET )
+		output[0] += op_calc(SLOT->Cnt, env, phase_modulation, SLOT->wavetable) * 2;
+
+
+	/* Phase generation is based on:
+	 * HH  (13) channel 7->slot 1 combined with channel 8->slot 2 (same combination as TOP CYMBAL but different output phases)
+	 * SD  (16) channel 7->slot 1
+	 * TOM (14) channel 8->slot 1
+	 * TOP (17) channel 7->slot 1 combined with channel 8->slot 2 (same combination as HIGH HAT but different output phases)
+	 *
+	 * Envelope generation based on:
+	 * HH  channel 7->slot1
+	 * SD  channel 7->slot2
+	 * TOM channel 8->slot1
+	 * TOP channel 8->slot2
+	 */
+
+	/* The following formulas can be well optimized.
+	   I leave them in direct form for now (in case I've missed something).
+	*/
+
+	/* High Hat (verified on real YM3812) */
+	env = volume_calc(SLOT7_1);
+	if( env < ENV_QUIET )
+	{
+
+		/* high hat phase generation:
+			phase = d0 or 234 (based on frequency only)
+			phase = 34 or 2d0 (based on noise)
+		*/
+
+		/* base frequency derived from operator 1 in channel 7 */
+		unsigned char bit7 = ((SLOT7_1->Cnt>>FREQ_SH)>>7)&1;
+		unsigned char bit3 = ((SLOT7_1->Cnt>>FREQ_SH)>>3)&1;
+		unsigned char bit2 = ((SLOT7_1->Cnt>>FREQ_SH)>>2)&1;
+
+		unsigned char res1 = (bit2 ^ bit7) | bit3;
+
+		/* when res1 = 0 phase = 0x000 | 0xd0; */
+		/* when res1 = 1 phase = 0x200 | (0xd0>>2); */
+		UINT32 phase = res1 ? (0x200|(0xd0>>2)) : 0xd0;
+
+		/* enable gate based on frequency of operator 2 in channel 8 */
+		unsigned char bit5e= ((SLOT8_2->Cnt>>FREQ_SH)>>5)&1;
+		unsigned char bit3e= ((SLOT8_2->Cnt>>FREQ_SH)>>3)&1;
+
+		unsigned char res2 = (bit3e ^ bit5e);
+
+		/* when res2 = 0 pass the phase from calculation above (res1); */
+		/* when res2 = 1 phase = 0x200 | (0xd0>>2); */
+		if (res2)
+			phase = (0x200|(0xd0>>2));
+
+
+		/* when phase & 0x200 is set and noise=1 then phase = 0x200|0xd0 */
+		/* when phase & 0x200 is set and noise=0 then phase = 0x200|(0xd0>>2), ie no change */
+		if (phase&0x200)
+		{
+			if (noise)
+				phase = 0x200|0xd0;
+		}
+		else
+		/* when phase & 0x200 is clear and noise=1 then phase = 0xd0>>2 */
+		/* when phase & 0x200 is clear and noise=0 then phase = 0xd0, ie no change */
+		{
+			if (noise)
+				phase = 0xd0>>2;
+		}
+
+		output[0] += op_calc(phase<<FREQ_SH, env, 0, SLOT->wavetable) * 2;
+	}
+
+	/* Snare Drum (verified on real YM3812) */
+	env = volume_calc(SLOT7_2);
+	if( env < ENV_QUIET )
+	{
+		/* base frequency derived from operator 1 in channel 7 */
+		unsigned char bit8 = ((SLOT7_1->Cnt>>FREQ_SH)>>8)&1;
+
+		/* when bit8 = 0 phase = 0x100; */
+		/* when bit8 = 1 phase = 0x200; */
+		UINT32 phase = bit8 ? 0x200 : 0x100;
+
+		/* Noise bit XOR'es phase by 0x100 */
+		/* when noisebit = 0 pass the phase from calculation above */
+		/* when noisebit = 1 phase ^= 0x100; */
+		/* in other words: phase ^= (noisebit<<8); */
+		if (noise)
+			phase ^= 0x100;
+
+		output[0] += op_calc(phase<<FREQ_SH, env, 0, SLOT->wavetable) * 2;
+	}
+
+	/* Tom Tom (verified on real YM3812) */
+	env = volume_calc(SLOT8_1);
+	if( env < ENV_QUIET )
+		output[0] += op_calc(SLOT8_1->Cnt, env, 0, SLOT->wavetable) * 2;
+
+	/* Top Cymbal (verified on real YM3812) */
+	env = volume_calc(SLOT8_2);
+	if( env < ENV_QUIET )
+	{
+		/* base frequency derived from operator 1 in channel 7 */
+		unsigned char bit7 = ((SLOT7_1->Cnt>>FREQ_SH)>>7)&1;
+		unsigned char bit3 = ((SLOT7_1->Cnt>>FREQ_SH)>>3)&1;
+		unsigned char bit2 = ((SLOT7_1->Cnt>>FREQ_SH)>>2)&1;
+
+		unsigned char res1 = (bit2 ^ bit7) | bit3;
+
+		/* when res1 = 0 phase = 0x000 | 0x100; */
+		/* when res1 = 1 phase = 0x200 | 0x100; */
+		UINT32 phase = res1 ? 0x300 : 0x100;
+
+		/* enable gate based on frequency of operator 2 in channel 8 */
+		unsigned char bit5e= ((SLOT8_2->Cnt>>FREQ_SH)>>5)&1;
+		unsigned char bit3e= ((SLOT8_2->Cnt>>FREQ_SH)>>3)&1;
+
+		unsigned char res2 = (bit3e ^ bit5e);
+		/* when res2 = 0 pass the phase from calculation above (res1); */
+		/* when res2 = 1 phase = 0x200 | 0x100; */
+		if (res2)
+			phase = 0x300;
+
+		output[0] += op_calc(phase<<FREQ_SH, env, 0, SLOT->wavetable) * 2;
+	}
+
+}
+
+
+/* generic table initialize */
+static int init_tables(void)
+{
+	signed int i,x;
+	signed int n;
+	double o,m;
+
+
+	for (x=0; x<TL_RES_LEN; x++)
+	{
+		m = (1<<16) / pow(2, (x+1) * (ENV_STEP/4.0) / 8.0);
+		m = floor(m);
+
+		/* we never reach (1<<16) here due to the (x+1) */
+		/* result fits within 16 bits at maximum */
+
+		n = (int)m;		/* 16 bits here */
+		n >>= 4;		/* 12 bits here */
+		if (n&1)		/* round to nearest */
+			n = (n>>1)+1;
+		else
+			n = n>>1;
+						/* 11 bits here (rounded) */
+		n <<= 1;		/* 12 bits here (as in real chip) */
+		tl_tab[ x*2 + 0 ] = n;
+		tl_tab[ x*2 + 1 ] = -tl_tab[ x*2 + 0 ];
+
+		for (i=1; i<12; i++)
+		{
+			tl_tab[ x*2+0 + i*2*TL_RES_LEN ] =  tl_tab[ x*2+0 ]>>i;
+			tl_tab[ x*2+1 + i*2*TL_RES_LEN ] = -tl_tab[ x*2+0 + i*2*TL_RES_LEN ];
+		}
+	#if 0
+			logerror("tl %04i", x*2);
+			for (i=0; i<12; i++)
+				logerror(", [%02i] %5i", i*2, tl_tab[ x*2 /*+1*/ + i*2*TL_RES_LEN ] );
+			logerror("\n");
+	#endif
+	}
+	/*logerror("FMOPL.C: TL_TAB_LEN = %i elements (%i bytes)\n",TL_TAB_LEN, (int)sizeof(tl_tab));*/
+
+
+	for (i=0; i<SIN_LEN; i++)
+	{
+		/* non-standard sinus */
+		m = sin( ((i*2)+1) * PI / SIN_LEN ); /* checked against the real chip */
+
+		/* we never reach zero here due to ((i*2)+1) */
+
+		if (m>0.0)
+			o = 8*log(1.0/m)/log(2.0);	/* convert to 'decibels' */
+		else
+			o = 8*log(-1.0/m)/log(2.0);	/* convert to 'decibels' */
+
+		o = o / (ENV_STEP/4);
+
+		n = (int)(2.0*o);
+		if (n&1)						/* round to nearest */
+			n = (n>>1)+1;
+		else
+			n = n>>1;
+
+		sin_tab[ i ] = n*2 + (m>=0.0? 0: 1 );
+
+		/*logerror("FMOPL.C: sin [%4i (hex=%03x)]= %4i (tl_tab value=%5i)\n", i, i, sin_tab[i], tl_tab[sin_tab[i]] );*/
+	}
+
+	for (i=0; i<SIN_LEN; i++)
+	{
+		/* waveform 1:  __      __     */
+		/*             /  \____/  \____*/
+		/* output only first half of the sinus waveform (positive one) */
+
+		if (i & (1<<(SIN_BITS-1)) )
+			sin_tab[1*SIN_LEN+i] = TL_TAB_LEN;
+		else
+			sin_tab[1*SIN_LEN+i] = sin_tab[i];
+
+		/* waveform 2:  __  __  __  __ */
+		/*             /  \/  \/  \/  \*/
+		/* abs(sin) */
+
+		sin_tab[2*SIN_LEN+i] = sin_tab[i & (SIN_MASK>>1) ];
+
+		/* waveform 3:  _   _   _   _  */
+		/*             / |_/ |_/ |_/ |_*/
+		/* abs(output only first quarter of the sinus waveform) */
+
+		if (i & (1<<(SIN_BITS-2)) )
+			sin_tab[3*SIN_LEN+i] = TL_TAB_LEN;
+		else
+			sin_tab[3*SIN_LEN+i] = sin_tab[i & (SIN_MASK>>2)];
+
+		/*logerror("FMOPL.C: sin1[%4i]= %4i (tl_tab value=%5i)\n", i, sin_tab[1*SIN_LEN+i], tl_tab[sin_tab[1*SIN_LEN+i]] );
+		logerror("FMOPL.C: sin2[%4i]= %4i (tl_tab value=%5i)\n", i, sin_tab[2*SIN_LEN+i], tl_tab[sin_tab[2*SIN_LEN+i]] );
+		logerror("FMOPL.C: sin3[%4i]= %4i (tl_tab value=%5i)\n", i, sin_tab[3*SIN_LEN+i], tl_tab[sin_tab[3*SIN_LEN+i]] );*/
+	}
+	/*logerror("FMOPL.C: ENV_QUIET= %08x (dec*8=%i)\n", ENV_QUIET, ENV_QUIET*8 );*/
+
+
+#ifdef SAVE_SAMPLE
+	sample[0]=fopen("sampsum.pcm","wb");
+#endif
+
+	return 1;
+}
+
+static void OPLCloseTable( void )
+{
+#ifdef SAVE_SAMPLE
+	fclose(sample[0]);
+#endif
+}
+
+
+
+static void OPL_initalize(FM_OPL *OPL)
+{
+	int i;
+
+	/* frequency base */
+#if 1
+	OPL->freqbase  = (OPL->rate) ? ((double)OPL->clock / 72.0) / OPL->rate  : 0;
+#else
+	OPL->rate = (double)OPL->clock / 72.0;
+	OPL->freqbase  = 1.0;
+#endif
+
+	/* Timer base time */
+	OPL->TimerBase = 1.0 / ((double)OPL->clock / 72.0 );
+
+	/* make fnumber -> increment counter table */
+	for( i=0 ; i < 1024 ; i++ )
+	{
+		/* opn phase increment counter = 20bit */
+		OPL->fn_tab[i] = (UINT32)( (double)i * 64 * OPL->freqbase * (1<<(FREQ_SH-10)) ); /* -10 because chip works with 10.10 fixed point, while we use 16.16 */
+#if 0
+		logerror("FMOPL.C: fn_tab[%4i] = %08x (dec=%8i)\n",
+				 i, OPL->fn_tab[i]>>6, OPL->fn_tab[i]>>6 );
+#endif
+	}
+
+#if 0
+	for( i=0 ; i < 16 ; i++ )
+	{
+		logerror("FMOPL.C: sl_tab[%i] = %08x\n",
+			i, sl_tab[i] );
+	}
+	for( i=0 ; i < 8 ; i++ )
+	{
+		int j;
+		logerror("FMOPL.C: ksl_tab[oct=%2i] =",i);
+		for (j=0; j<16; j++)
+		{
+			logerror("%08x ", ksl_tab[i*16+j] );
+		}
+		logerror("\n");
+	}
+#endif
+
+
+	/* Amplitude modulation: 27 output levels (triangle waveform); 1 level takes one of: 192, 256 or 448 samples */
+	/* One entry from LFO_AM_TABLE lasts for 64 samples */
+	OPL->lfo_am_inc = (1.0 / 64.0 ) * (1<<LFO_SH) * OPL->freqbase;
+
+	/* Vibrato: 8 output levels (triangle waveform); 1 level takes 1024 samples */
+	OPL->lfo_pm_inc = (1.0 / 1024.0) * (1<<LFO_SH) * OPL->freqbase;
+
+	/*logerror ("OPL->lfo_am_inc = %8x ; OPL->lfo_pm_inc = %8x\n", OPL->lfo_am_inc, OPL->lfo_pm_inc);*/
+
+	/* Noise generator: a step takes 1 sample */
+	OPL->noise_f = (1.0 / 1.0) * (1<<FREQ_SH) * OPL->freqbase;
+
+	OPL->eg_timer_add  = (1<<EG_SH)  * OPL->freqbase;
+	OPL->eg_timer_overflow = ( 1 ) * (1<<EG_SH);
+	/*logerror("OPLinit eg_timer_add=%8x eg_timer_overflow=%8x\n", OPL->eg_timer_add, OPL->eg_timer_overflow);*/
+
+}
+
+INLINE void FM_KEYON(OPL_SLOT *SLOT, UINT32 key_set)
+{
+	if( !SLOT->key )
+	{
+		/* restart Phase Generator */
+		SLOT->Cnt = 0;
+		/* phase -> Attack */
+		SLOT->state = EG_ATT;
+	}
+	SLOT->key |= key_set;
+}
+
+INLINE void FM_KEYOFF(OPL_SLOT *SLOT, UINT32 key_clr)
+{
+	if( SLOT->key )
+	{
+		SLOT->key &= key_clr;
+
+		if( !SLOT->key )
+		{
+			/* phase -> Release */
+			if (SLOT->state>EG_REL)
+				SLOT->state = EG_REL;
+		}
+	}
+}
+
+/* update phase increment counter of operator (also update the EG rates if necessary) */
+INLINE void CALC_FCSLOT(OPL_CH *CH,OPL_SLOT *SLOT)
+{
+	int ksr;
+
+	/* (frequency) phase increment counter */
+	SLOT->Incr = CH->fc * SLOT->mul;
+	ksr = CH->kcode >> SLOT->KSR;
+
+	if( SLOT->ksr != ksr )
+	{
+		SLOT->ksr = ksr;
+
+		/* calculate envelope generator rates */
+		if ((SLOT->ar + SLOT->ksr) < 16+62)
+		{
+			SLOT->eg_sh_ar  = eg_rate_shift [SLOT->ar + SLOT->ksr ];
+			SLOT->eg_sel_ar = eg_rate_select[SLOT->ar + SLOT->ksr ];
+		}
+		else
+		{
+			SLOT->eg_sh_ar  = 0;
+			SLOT->eg_sel_ar = 13*RATE_STEPS;
+		}
+		SLOT->eg_sh_dr  = eg_rate_shift [SLOT->dr + SLOT->ksr ];
+		SLOT->eg_sel_dr = eg_rate_select[SLOT->dr + SLOT->ksr ];
+		SLOT->eg_sh_rr  = eg_rate_shift [SLOT->rr + SLOT->ksr ];
+		SLOT->eg_sel_rr = eg_rate_select[SLOT->rr + SLOT->ksr ];
+	}
+}
+
+/* set multi,am,vib,EG-TYP,KSR,mul */
+INLINE void set_mul(FM_OPL *OPL,int slot,int v)
+{
+	OPL_CH   *CH   = &OPL->P_CH[slot/2];
+	OPL_SLOT *SLOT = &CH->SLOT[slot&1];
+
+	SLOT->mul     = mul_tab[v&0x0f];
+	SLOT->KSR     = (v&0x10) ? 0 : 2;
+	SLOT->eg_type = (v&0x20);
+	SLOT->vib     = (v&0x40);
+	SLOT->AMmask  = (v&0x80) ? ~0 : 0;
+	CALC_FCSLOT(CH,SLOT);
+}
+
+/* set ksl & tl */
+INLINE void set_ksl_tl(FM_OPL *OPL,int slot,int v)
+{
+	OPL_CH   *CH   = &OPL->P_CH[slot/2];
+	OPL_SLOT *SLOT = &CH->SLOT[slot&1];
+	int ksl = v>>6; /* 0 / 1.5 / 3.0 / 6.0 dB/OCT */
+
+	SLOT->ksl = ksl ? 3-ksl : 31;
+	SLOT->TL  = (v&0x3f)<<(ENV_BITS-1-7); /* 7 bits TL (bit 6 = always 0) */
+
+	SLOT->TLL = SLOT->TL + (CH->ksl_base>>SLOT->ksl);
+}
+
+/* set attack rate & decay rate  */
+INLINE void set_ar_dr(FM_OPL *OPL,int slot,int v)
+{
+	OPL_CH   *CH   = &OPL->P_CH[slot/2];
+	OPL_SLOT *SLOT = &CH->SLOT[slot&1];
+
+	SLOT->ar = (v>>4)  ? 16 + ((v>>4)  <<2) : 0;
+
+	if ((SLOT->ar + SLOT->ksr) < 16+62)
+	{
+		SLOT->eg_sh_ar  = eg_rate_shift [SLOT->ar + SLOT->ksr ];
+		SLOT->eg_sel_ar = eg_rate_select[SLOT->ar + SLOT->ksr ];
+	}
+	else
+	{
+		SLOT->eg_sh_ar  = 0;
+		SLOT->eg_sel_ar = 13*RATE_STEPS;
+	}
+
+	SLOT->dr    = (v&0x0f)? 16 + ((v&0x0f)<<2) : 0;
+	SLOT->eg_sh_dr  = eg_rate_shift [SLOT->dr + SLOT->ksr ];
+	SLOT->eg_sel_dr = eg_rate_select[SLOT->dr + SLOT->ksr ];
+}
+
+/* set sustain level & release rate */
+INLINE void set_sl_rr(FM_OPL *OPL,int slot,int v)
+{
+	OPL_CH   *CH   = &OPL->P_CH[slot/2];
+	OPL_SLOT *SLOT = &CH->SLOT[slot&1];
+
+	SLOT->sl  = sl_tab[ v>>4 ];
+
+	SLOT->rr  = (v&0x0f)? 16 + ((v&0x0f)<<2) : 0;
+	SLOT->eg_sh_rr  = eg_rate_shift [SLOT->rr + SLOT->ksr ];
+	SLOT->eg_sel_rr = eg_rate_select[SLOT->rr + SLOT->ksr ];
+}
+
+
+/* write a value v to register r on OPL chip */
+static void OPLWriteReg(FM_OPL *OPL, int r, int v)
+{
+	OPL_CH *CH;
+	int slot;
+	unsigned block_fnum;
+
+
+	/* adjust bus to 8 bits */
+	r &= 0xff;
+	v &= 0xff;
+
+#ifdef LOG_CYM_FILE
+	if ((cymfile) && (r!=0) )
+	{
+		fputc( (unsigned char)r, cymfile );
+		fputc( (unsigned char)v, cymfile );
+	}
+#endif
+
+
+	switch(r&0xe0)
+	{
+	case 0x00:	/* 00-1f:control */
+		switch(r&0x1f)
+		{
+		case 0x01:	/* waveform select enable */
+			if(OPL->type&OPL_TYPE_WAVESEL)
+			{
+				OPL->wavesel = v&0x20;
+				/* do not change the waveform previously selected */
+			}
+			break;
+		case 0x02:	/* Timer 1 */
+			OPL->T[0] = (256-v)*4;
+			break;
+		case 0x03:	/* Timer 2 */
+			OPL->T[1] = (256-v)*16;
+			break;
+		case 0x04:	/* IRQ clear / mask and Timer enable */
+			if(v&0x80)
+			{	/* IRQ flag clear */
+				OPL_STATUS_RESET(OPL,0x7f);
+			}
+			else
+			{	/* set IRQ mask ,timer enable*/
+				UINT8 st1 = v&1;
+				UINT8 st2 = (v>>1)&1;
+				/* IRQRST,T1MSK,t2MSK,EOSMSK,BRMSK,x,ST2,ST1 */
+				OPL_STATUS_RESET(OPL,v&0x78);
+				OPL_STATUSMASK_SET(OPL,((~v)&0x78)|0x01);
+				/* timer 2 */
+				if(OPL->st[1] != st2)
+				{
+					double interval = st2 ? (double)OPL->T[1]*OPL->TimerBase : 0.0;
+					OPL->st[1] = st2;
+					if (OPL->TimerHandler) (OPL->TimerHandler)(OPL->TimerParam+1,interval);
+				}
+				/* timer 1 */
+				if(OPL->st[0] != st1)
+				{
+					double interval = st1 ? (double)OPL->T[0]*OPL->TimerBase : 0.0;
+					OPL->st[0] = st1;
+					if (OPL->TimerHandler) (OPL->TimerHandler)(OPL->TimerParam+0,interval);
+				}
+			}
+			break;
+#if BUILD_Y8950
+		case 0x06:		/* Key Board OUT */
+			if(OPL->type&OPL_TYPE_KEYBOARD)
+			{
+				if(OPL->keyboardhandler_w)
+					OPL->keyboardhandler_w(OPL->keyboard_param,v);
+				else
+					logerror("OPL:write unmapped KEYBOARD port\n");
+			}
+			break;
+		case 0x07:	/* DELTA-T controll : START,REC,MEMDATA,REPT,SPOFF,x,x,RST */
+			if(OPL->type&OPL_TYPE_ADPCM)
+				YM_DELTAT_ADPCM_Write(OPL->deltat,r-0x07,v);
+			break;
+		case 0x08:	/* MODE,DELTA-T : CSM,NOTESEL,x,x,smpl,da/ad,64k,rom */
+			OPL->mode = v;
+			v&=0x1f;	/* for DELTA-T unit */
+		case 0x09:		/* START ADD */
+		case 0x0a:
+		case 0x0b:		/* STOP ADD  */
+		case 0x0c:
+		case 0x0d:		/* PRESCALE   */
+		case 0x0e:
+		case 0x0f:		/* ADPCM data */
+		case 0x10: 		/* DELTA-N    */
+		case 0x11: 		/* DELTA-N    */
+		case 0x12: 		/* EG-CTRL    */
+			if(OPL->type&OPL_TYPE_ADPCM)
+				YM_DELTAT_ADPCM_Write(OPL->deltat,r-0x07,v);
+			break;
+#if 0
+		case 0x15:		/* DAC data    */
+		case 0x16:
+		case 0x17:		/* SHIFT    */
+			break;
+		case 0x18:		/* I/O CTRL (Direction) */
+			if(OPL->type&OPL_TYPE_IO)
+				OPL->portDirection = v&0x0f;
+			break;
+		case 0x19:		/* I/O DATA */
+			if(OPL->type&OPL_TYPE_IO)
+			{
+				OPL->portLatch = v;
+				if(OPL->porthandler_w)
+					OPL->porthandler_w(OPL->port_param,v&OPL->portDirection);
+			}
+			break;
+		case 0x1a:		/* PCM data */
+			break;
+#endif
+#endif
+		}
+		break;
+	case 0x20:	/* am ON, vib ON, ksr, eg_type, mul */
+		slot = slot_array[r&0x1f];
+		if(slot < 0) return;
+		set_mul(OPL,slot,v);
+		break;
+	case 0x40:
+		slot = slot_array[r&0x1f];
+		if(slot < 0) return;
+		set_ksl_tl(OPL,slot,v);
+		break;
+	case 0x60:
+		slot = slot_array[r&0x1f];
+		if(slot < 0) return;
+		set_ar_dr(OPL,slot,v);
+		break;
+	case 0x80:
+		slot = slot_array[r&0x1f];
+		if(slot < 0) return;
+		set_sl_rr(OPL,slot,v);
+		break;
+	case 0xa0:
+		if (r == 0xbd)			/* am depth, vibrato depth, r,bd,sd,tom,tc,hh */
+		{
+			OPL->lfo_am_depth = v & 0x80;
+			OPL->lfo_pm_depth_range = (v&0x40) ? 8 : 0;
+
+			OPL->rhythm  = v&0x3f;
+
+			if(OPL->rhythm&0x20)
+			{
+				/* BD key on/off */
+				if(v&0x10)
+				{
+					FM_KEYON (&OPL->P_CH[6].SLOT[SLOT1], 2);
+					FM_KEYON (&OPL->P_CH[6].SLOT[SLOT2], 2);
+				}
+				else
+				{
+					FM_KEYOFF(&OPL->P_CH[6].SLOT[SLOT1],~2);
+					FM_KEYOFF(&OPL->P_CH[6].SLOT[SLOT2],~2);
+				}
+				/* HH key on/off */
+				if(v&0x01) FM_KEYON (&OPL->P_CH[7].SLOT[SLOT1], 2);
+				else       FM_KEYOFF(&OPL->P_CH[7].SLOT[SLOT1],~2);
+				/* SD key on/off */
+				if(v&0x08) FM_KEYON (&OPL->P_CH[7].SLOT[SLOT2], 2);
+				else       FM_KEYOFF(&OPL->P_CH[7].SLOT[SLOT2],~2);
+				/* TOM key on/off */
+				if(v&0x04) FM_KEYON (&OPL->P_CH[8].SLOT[SLOT1], 2);
+				else       FM_KEYOFF(&OPL->P_CH[8].SLOT[SLOT1],~2);
+				/* TOP-CY key on/off */
+				if(v&0x02) FM_KEYON (&OPL->P_CH[8].SLOT[SLOT2], 2);
+				else       FM_KEYOFF(&OPL->P_CH[8].SLOT[SLOT2],~2);
+			}
+			else
+			{
+				/* BD key off */
+				FM_KEYOFF(&OPL->P_CH[6].SLOT[SLOT1],~2);
+				FM_KEYOFF(&OPL->P_CH[6].SLOT[SLOT2],~2);
+				/* HH key off */
+				FM_KEYOFF(&OPL->P_CH[7].SLOT[SLOT1],~2);
+				/* SD key off */
+				FM_KEYOFF(&OPL->P_CH[7].SLOT[SLOT2],~2);
+				/* TOM key off */
+				FM_KEYOFF(&OPL->P_CH[8].SLOT[SLOT1],~2);
+				/* TOP-CY off */
+				FM_KEYOFF(&OPL->P_CH[8].SLOT[SLOT2],~2);
+			}
+			return;
+		}
+		/* keyon,block,fnum */
+		if( (r&0x0f) > 8) return;
+		CH = &OPL->P_CH[r&0x0f];
+		if(!(r&0x10))
+		{	/* a0-a8 */
+			block_fnum  = (CH->block_fnum&0x1f00) | v;
+		}
+		else
+		{	/* b0-b8 */
+			block_fnum = ((v&0x1f)<<8) | (CH->block_fnum&0xff);
+
+			if(v&0x20)
+			{
+				FM_KEYON (&CH->SLOT[SLOT1], 1);
+				FM_KEYON (&CH->SLOT[SLOT2], 1);
+			}
+			else
+			{
+				FM_KEYOFF(&CH->SLOT[SLOT1],~1);
+				FM_KEYOFF(&CH->SLOT[SLOT2],~1);
+			}
+		}
+		/* update */
+		if(CH->block_fnum != block_fnum)
+		{
+			UINT8 block  = block_fnum >> 10;
+
+			CH->block_fnum = block_fnum;
+
+			CH->ksl_base = ksl_tab[block_fnum>>6];
+			CH->fc       = OPL->fn_tab[block_fnum&0x03ff] >> (7-block);
+
+			/* BLK 2,1,0 bits -> bits 3,2,1 of kcode */
+			CH->kcode    = (CH->block_fnum&0x1c00)>>9;
+
+			 /* the info below is actually opposite to what is stated in the Manuals (verifed on real YM3812) */
+			/* if notesel == 0 -> lsb of kcode is bit 10 (MSB) of fnum  */
+			/* if notesel == 1 -> lsb of kcode is bit 9 (MSB-1) of fnum */
+			if (OPL->mode&0x40)
+				CH->kcode |= (CH->block_fnum&0x100)>>8;	/* notesel == 1 */
+			else
+				CH->kcode |= (CH->block_fnum&0x200)>>9;	/* notesel == 0 */
+
+			/* refresh Total Level in both SLOTs of this channel */
+			CH->SLOT[SLOT1].TLL = CH->SLOT[SLOT1].TL + (CH->ksl_base>>CH->SLOT[SLOT1].ksl);
+			CH->SLOT[SLOT2].TLL = CH->SLOT[SLOT2].TL + (CH->ksl_base>>CH->SLOT[SLOT2].ksl);
+
+			/* refresh frequency counter in both SLOTs of this channel */
+			CALC_FCSLOT(CH,&CH->SLOT[SLOT1]);
+			CALC_FCSLOT(CH,&CH->SLOT[SLOT2]);
+		}
+		break;
+	case 0xc0:
+		/* FB,C */
+		if( (r&0x0f) > 8) return;
+		CH = &OPL->P_CH[r&0x0f];
+		CH->SLOT[SLOT1].FB  = (v>>1)&7 ? ((v>>1)&7) + 7 : 0;
+		CH->SLOT[SLOT1].CON = v&1;
+		CH->SLOT[SLOT1].connect1 = CH->SLOT[SLOT1].CON ? (INT32 *)&output[0] : (INT32 *)&phase_modulation;
+		break;
+	case 0xe0: /* waveform select */
+		/* simply ignore write to the waveform select register if selecting not enabled in test register */
+		if(OPL->wavesel)
+		{
+			slot = slot_array[r&0x1f];
+			if(slot < 0) return;
+			CH = &OPL->P_CH[slot/2];
+
+			CH->SLOT[slot&1].wavetable = (v&0x03)*SIN_LEN;
+		}
+		break;
+	}
+}
+
+#ifdef LOG_CYM_FILE
+static void cymfile_callback (int n)
+{
+	if (cymfile)
+	{
+		fputc( (unsigned char)0, cymfile );
+	}
+}
+#endif
+
+/* lock/unlock for common table */
+static int OPL_LockTable(void)
+{
+	num_lock++;
+	if(num_lock>1) return 0;
+
+	/* first time */
+
+	cur_chip = NULL;
+	/* allocate total level table (128kb space) */
+	if( !init_tables() )
+	{
+		num_lock--;
+		return -1;
+	}
+
+#ifdef LOG_CYM_FILE
+	cymfile = fopen("3812_.cym","wb");
+	if (cymfile)
+		timer_pulse ( TIME_IN_HZ(110), 0, cymfile_callback); /*110 Hz pulse timer*/
+	else
+		logerror("Could not create file 3812_.cym\n");
+#endif
+
+	return 0;
+}
+
+static void OPL_UnLockTable(void)
+{
+	if(num_lock) num_lock--;
+	if(num_lock) return;
+
+	/* last time */
+
+	cur_chip = NULL;
+	OPLCloseTable();
+
+#ifdef LOG_CYM_FILE
+	fclose (cymfile);
+	cymfile = NULL;
+#endif
+
+}
+
+static void OPLResetChip(FM_OPL *OPL)
+{
+	int c,s;
+	int i;
+
+	OPL->eg_timer = 0;
+	OPL->eg_cnt   = 0;
+
+	OPL->noise_rng = 1;	/* noise shift register */
+	OPL->mode   = 0;	/* normal mode */
+	OPL_STATUS_RESET(OPL,0x7f);
+
+	/* reset with register write */
+	OPLWriteReg(OPL,0x01,0); /* wavesel disable */
+	OPLWriteReg(OPL,0x02,0); /* Timer1 */
+	OPLWriteReg(OPL,0x03,0); /* Timer2 */
+	OPLWriteReg(OPL,0x04,0); /* IRQ mask clear */
+	for(i = 0xff ; i >= 0x20 ; i-- ) OPLWriteReg(OPL,i,0);
+
+	/* reset operator parameters */
+	for( c = 0 ; c < 9 ; c++ )
+	{
+		OPL_CH *CH = &OPL->P_CH[c];
+		for(s = 0 ; s < 2 ; s++ )
+		{
+			/* wave table */
+			CH->SLOT[s].wavetable = 0;
+			CH->SLOT[s].state     = EG_OFF;
+			CH->SLOT[s].volume    = MAX_ATT_INDEX;
+		}
+	}
+#if BUILD_Y8950
+	if(OPL->type&OPL_TYPE_ADPCM)
+	{
+		YM_DELTAT *DELTAT = OPL->deltat;
+
+		DELTAT->freqbase = OPL->freqbase;
+		DELTAT->output_pointer = &output_deltat[0];
+		DELTAT->portshift = 5;
+		DELTAT->output_range = 1<<23;
+		YM_DELTAT_ADPCM_Reset(DELTAT,0);
+	}
+#endif
+}
+
+/* Create one of virtual YM3812 */
+/* 'clock' is chip clock in Hz  */
+/* 'rate'  is sampling rate  */
+static FM_OPL *OPLCreate(int type, int clock, int rate)
+{
+	char *ptr;
+	FM_OPL *OPL;
+	int state_size;
+
+	if (OPL_LockTable() ==-1) return NULL;
+
+	/* calculate OPL state size */
+	state_size  = sizeof(FM_OPL);
+
+#if BUILD_Y8950
+	if (type&OPL_TYPE_ADPCM) state_size+= sizeof(YM_DELTAT);
+#endif
+
+	/* allocate memory block */
+	ptr = (char *)malloc(state_size);
+
+	if (ptr==NULL)
+		return NULL;
+
+	/* clear */
+	memset(ptr,0,state_size);
+
+	OPL  = (FM_OPL *)ptr;
+
+	ptr += sizeof(FM_OPL);
+
+#if BUILD_Y8950
+	if (type&OPL_TYPE_ADPCM)
+		OPL->deltat = (YM_DELTAT *)ptr;
+	ptr += sizeof(YM_DELTAT);
+#endif
+
+	OPL->type  = type;
+	OPL->clock = clock;
+	OPL->rate  = rate;
+
+	/* init global tables */
+	OPL_initalize(OPL);
+
+	/* reset chip */
+	OPLResetChip(OPL);
+	return OPL;
+}
+
+/* Destroy one of virtual YM3812 */
+static void OPLDestroy(FM_OPL *OPL)
+{
+	OPL_UnLockTable();
+	free(OPL);
+}
+
+/* Option handlers */
+
+static void OPLSetTimerHandler(FM_OPL *OPL,OPL_TIMERHANDLER TimerHandler,int channelOffset)
+{
+	OPL->TimerHandler   = TimerHandler;
+	OPL->TimerParam = channelOffset;
+}
+static void OPLSetIRQHandler(FM_OPL *OPL,OPL_IRQHANDLER IRQHandler,int param)
+{
+	OPL->IRQHandler     = IRQHandler;
+	OPL->IRQParam = param;
+}
+static void OPLSetUpdateHandler(FM_OPL *OPL,OPL_UPDATEHANDLER UpdateHandler,int param)
+{
+	OPL->UpdateHandler = UpdateHandler;
+	OPL->UpdateParam = param;
+}
+
+/* YM3812 I/O interface */
+static int OPLWrite(FM_OPL *OPL,int a,int v)
+{
+	if( !(a&1) )
+	{	/* address port */
+		OPL->address = v & 0xff;
+	}
+	else
+	{	/* data port */
+		if(OPL->UpdateHandler) OPL->UpdateHandler(OPL->UpdateParam,0);
+		OPLWriteReg(OPL,OPL->address,v);
+	}
+	return OPL->status>>7;
+}
+
+static unsigned char OPLRead(FM_OPL *OPL,int a)
+{
+	if( !(a&1) )
+	{
+		/* status port */
+		return OPL->status & (OPL->statusmask|0x80);
+	}
+
+#if BUILD_Y8950
+	/* data port */
+	switch(OPL->address)
+	{
+	case 0x05: /* KeyBoard IN */
+		if(OPL->type&OPL_TYPE_KEYBOARD)
+		{
+			if(OPL->keyboardhandler_r)
+				return OPL->keyboardhandler_r(OPL->keyboard_param);
+			else
+				logerror("OPL:read unmapped KEYBOARD port\n");
+		}
+		return 0;
+#if 0
+	case 0x0f: /* ADPCM-DATA  */
+		return 0;
+#endif
+	case 0x19: /* I/O DATA    */
+		if(OPL->type&OPL_TYPE_IO)
+		{
+			if(OPL->porthandler_r)
+				return OPL->porthandler_r(OPL->port_param);
+			else
+				logerror("OPL:read unmapped I/O port\n");
+		}
+		return 0;
+	case 0x1a: /* PCM-DATA    */
+		return 0;
+	}
+#endif
+
+	return 0xff;
+}
+
+/* CSM Key Controll */
+INLINE void CSMKeyControll(OPL_CH *CH)
+{
+	FM_KEYON (&CH->SLOT[SLOT1], 4);
+	FM_KEYON (&CH->SLOT[SLOT2], 4);
+
+	/* The key off should happen exactly one sample later - not implemented correctly yet */
+
+	FM_KEYOFF(&CH->SLOT[SLOT1], ~4);
+	FM_KEYOFF(&CH->SLOT[SLOT2], ~4);
+}
+
+
+static int OPLTimerOver(FM_OPL *OPL,int c)
+{
+	if( c )
+	{	/* Timer B */
+		OPL_STATUS_SET(OPL,0x20);
+	}
+	else
+	{	/* Timer A */
+		OPL_STATUS_SET(OPL,0x40);
+		/* CSM mode key,TL controll */
+		if( OPL->mode & 0x80 )
+		{	/* CSM mode total level latch and auto key on */
+			int ch;
+			if(OPL->UpdateHandler) OPL->UpdateHandler(OPL->UpdateParam,0);
+			for(ch=0; ch<9; ch++)
+				CSMKeyControll( &OPL->P_CH[ch] );
+		}
+	}
+	/* reload timer */
+	if (OPL->TimerHandler) (OPL->TimerHandler)(OPL->TimerParam+c,(double)OPL->T[c]*OPL->TimerBase);
+	return OPL->status>>7;
+}
+
+
+#define MAX_OPL_CHIPS 2
+
+
+#if (BUILD_YM3812)
+
+static FM_OPL *OPL_YM3812[MAX_OPL_CHIPS];	/* array of pointers to the YM3812's */
+static int YM3812NumChips = 0;				/* number of chips */
+
+int YM3812Init(int num, int clock, int rate)
+{
+	int i;
+
+	if (YM3812NumChips)
+		return -1;	/* duplicate init. */
+
+	YM3812NumChips = num;
+
+	for (i = 0;i < YM3812NumChips; i++)
+	{
+		/* emulator create */
+		OPL_YM3812[i] = OPLCreate(OPL_TYPE_YM3812,clock,rate);
+		if(OPL_YM3812[i] == NULL)
+		{
+			/* it's really bad - we run out of memeory */
+			YM3812NumChips = 0;
+			return -1;
+		}
+	}
+
+	return 0;
+}
+
+void YM3812Shutdown(void)
+{
+	int i;
+
+	for (i = 0;i < YM3812NumChips; i++)
+	{
+		/* emulator shutdown */
+		OPLDestroy(OPL_YM3812[i]);
+		OPL_YM3812[i] = NULL;
+	}
+	YM3812NumChips = 0;
+}
+void YM3812ResetChip(int which)
+{
+	OPLResetChip(OPL_YM3812[which]);
+}
+
+int YM3812Write(int which, int a, int v)
+{
+	return OPLWrite(OPL_YM3812[which], a, v);
+}
+
+unsigned char YM3812Read(int which, int a)
+{
+	/* YM3812 always returns bit2 and bit1 in HIGH state */
+	return OPLRead(OPL_YM3812[which], a) | 0x06 ;
+}
+int YM3812TimerOver(int which, int c)
+{
+	return OPLTimerOver(OPL_YM3812[which], c);
+}
+
+void YM3812SetTimerHandler(int which, OPL_TIMERHANDLER TimerHandler, int channelOffset)
+{
+	OPLSetTimerHandler(OPL_YM3812[which], TimerHandler, channelOffset);
+}
+void YM3812SetIRQHandler(int which,OPL_IRQHANDLER IRQHandler,int param)
+{
+	OPLSetIRQHandler(OPL_YM3812[which], IRQHandler, param);
+}
+void YM3812SetUpdateHandler(int which,OPL_UPDATEHANDLER UpdateHandler,int param)
+{
+	OPLSetUpdateHandler(OPL_YM3812[which], UpdateHandler, param);
+}
+
+
+/*
+** Generate samples for one of the YM3812's
+**
+** 'which' is the virtual YM3812 number
+** '*buffer' is the output buffer pointer
+** 'length' is the number of samples that should be generated
+*/
+void YM3812UpdateOne(int which, INT16 *buffer, int length)
+{
+	FM_OPL		*OPL = OPL_YM3812[which];
+	UINT8		rhythm = OPL->rhythm&0x20;
+	OPLSAMPLE	*buf = buffer;
+	int i;
+
+	if( (void *)OPL != cur_chip ){
+		cur_chip = (void *)OPL;
+		/* rhythm slots */
+		SLOT7_1 = &OPL->P_CH[7].SLOT[SLOT1];
+		SLOT7_2 = &OPL->P_CH[7].SLOT[SLOT2];
+		SLOT8_1 = &OPL->P_CH[8].SLOT[SLOT1];
+		SLOT8_2 = &OPL->P_CH[8].SLOT[SLOT2];
+	}
+	for( i=0; i < length ; i++ )
+	{
+		int lt;
+
+		output[0] = 0;
+
+		advance_lfo(OPL);
+
+		/* FM part */
+		OPL_CALC_CH(&OPL->P_CH[0]);
+		OPL_CALC_CH(&OPL->P_CH[1]);
+		OPL_CALC_CH(&OPL->P_CH[2]);
+		OPL_CALC_CH(&OPL->P_CH[3]);
+		OPL_CALC_CH(&OPL->P_CH[4]);
+		OPL_CALC_CH(&OPL->P_CH[5]);
+
+		if(!rhythm)
+		{
+			OPL_CALC_CH(&OPL->P_CH[6]);
+			OPL_CALC_CH(&OPL->P_CH[7]);
+			OPL_CALC_CH(&OPL->P_CH[8]);
+		}
+		else		/* Rhythm part */
+		{
+			OPL_CALC_RH(&OPL->P_CH[0], (OPL->noise_rng>>0)&1 );
+		}
+
+		lt = output[0];
+
+		lt >>= FINAL_SH;
+
+		/* limit check */
+		lt = limit( lt , MAXOUT, MINOUT );
+
+		#ifdef SAVE_SAMPLE
+			SAVE_ALL_CHANNELS
+		#endif
+
+		/* store to sound buffer */
+		buf[i] = lt;
+
+		advance(OPL);
+	}
+
+}
+#endif /* BUILD_YM3812 */
+
+
+
+#if (BUILD_YM3526)
+
+static FM_OPL *OPL_YM3526[MAX_OPL_CHIPS];	/* array of pointers to the YM3526's */
+static int YM3526NumChips = 0;				/* number of chips */
+
+int YM3526Init(int num, int clock, int rate)
+{
+	int i;
+
+	if (YM3526NumChips)
+		return -1;	/* duplicate init. */
+
+	YM3526NumChips = num;
+
+	for (i = 0;i < YM3526NumChips; i++)
+	{
+		/* emulator create */
+		OPL_YM3526[i] = OPLCreate(OPL_TYPE_YM3526,clock,rate);
+		if(OPL_YM3526[i] == NULL)
+		{
+			/* it's really bad - we run out of memeory */
+			YM3526NumChips = 0;
+			return -1;
+		}
+	}
+
+	return 0;
+}
+
+void YM3526Shutdown(void)
+{
+	int i;
+
+	for (i = 0;i < YM3526NumChips; i++)
+	{
+		/* emulator shutdown */
+		OPLDestroy(OPL_YM3526[i]);
+		OPL_YM3526[i] = NULL;
+	}
+	YM3526NumChips = 0;
+}
+void YM3526ResetChip(int which)
+{
+	OPLResetChip(OPL_YM3526[which]);
+}
+
+int YM3526Write(int which, int a, int v)
+{
+	return OPLWrite(OPL_YM3526[which], a, v);
+}
+
+unsigned char YM3526Read(int which, int a)
+{
+	return OPLRead(OPL_YM3526[which], a);
+}
+int YM3526TimerOver(int which, int c)
+{
+	return OPLTimerOver(OPL_YM3526[which], c);
+}
+
+void YM3526SetTimerHandler(int which, OPL_TIMERHANDLER TimerHandler, int channelOffset)
+{
+	OPLSetTimerHandler(OPL_YM3526[which], TimerHandler, channelOffset);
+}
+void YM3526SetIRQHandler(int which,OPL_IRQHANDLER IRQHandler,int param)
+{
+	OPLSetIRQHandler(OPL_YM3526[which], IRQHandler, param);
+}
+void YM3526SetUpdateHandler(int which,OPL_UPDATEHANDLER UpdateHandler,int param)
+{
+	OPLSetUpdateHandler(OPL_YM3526[which], UpdateHandler, param);
+}
+
+
+/*
+** Generate samples for one of the YM3526's
+**
+** 'which' is the virtual YM3526 number
+** '*buffer' is the output buffer pointer
+** 'length' is the number of samples that should be generated
+*/
+void YM3526UpdateOne(int which, INT16 *buffer, int length)
+{
+	FM_OPL		*OPL = OPL_YM3526[which];
+	UINT8		rhythm = OPL->rhythm&0x20;
+	OPLSAMPLE	*buf = buffer;
+	int i;
+
+	if( (void *)OPL != cur_chip ){
+		cur_chip = (void *)OPL;
+		/* rhythm slots */
+		SLOT7_1 = &OPL->P_CH[7].SLOT[SLOT1];
+		SLOT7_2 = &OPL->P_CH[7].SLOT[SLOT2];
+		SLOT8_1 = &OPL->P_CH[8].SLOT[SLOT1];
+		SLOT8_2 = &OPL->P_CH[8].SLOT[SLOT2];
+	}
+	for( i=0; i < length ; i++ )
+	{
+		int lt;
+
+		output[0] = 0;
+
+		advance_lfo(OPL);
+
+		/* FM part */
+		OPL_CALC_CH(&OPL->P_CH[0]);
+		OPL_CALC_CH(&OPL->P_CH[1]);
+		OPL_CALC_CH(&OPL->P_CH[2]);
+		OPL_CALC_CH(&OPL->P_CH[3]);
+		OPL_CALC_CH(&OPL->P_CH[4]);
+		OPL_CALC_CH(&OPL->P_CH[5]);
+
+		if(!rhythm)
+		{
+			OPL_CALC_CH(&OPL->P_CH[6]);
+			OPL_CALC_CH(&OPL->P_CH[7]);
+			OPL_CALC_CH(&OPL->P_CH[8]);
+		}
+		else		/* Rhythm part */
+		{
+			OPL_CALC_RH(&OPL->P_CH[0], (OPL->noise_rng>>0)&1 );
+		}
+
+		lt = output[0];
+
+		lt >>= FINAL_SH;
+
+		/* limit check */
+		lt = limit( lt , MAXOUT, MINOUT );
+
+		#ifdef SAVE_SAMPLE
+			SAVE_ALL_CHANNELS
+		#endif
+
+		/* store to sound buffer */
+		buf[i] = lt;
+
+		advance(OPL);
+	}
+
+}
+#endif /* BUILD_YM3526 */
+
+
+
+
+#if BUILD_Y8950
+
+static FM_OPL *OPL_Y8950[MAX_OPL_CHIPS];	/* array of pointers to the Y8950's */
+static int Y8950NumChips = 0;				/* number of chips */
+
+int Y8950Init(int num, int clock, int rate)
+{
+	int i;
+
+	if (Y8950NumChips)
+		return -1;	/* duplicate init. */
+
+	Y8950NumChips = num;
+
+	for (i = 0;i < Y8950NumChips; i++)
+	{
+		/* emulator create */
+		OPL_Y8950[i] = OPLCreate(OPL_TYPE_Y8950,clock,rate);
+		if(OPL_Y8950[i] == NULL)
+		{
+			/* it's really bad - we run out of memeory */
+			Y8950NumChips = 0;
+			return -1;
+		}
+	}
+
+	return 0;
+}
+
+void Y8950Shutdown(void)
+{
+	int i;
+
+	for (i = 0;i < Y8950NumChips; i++)
+	{
+		/* emulator shutdown */
+		OPLDestroy(OPL_Y8950[i]);
+		OPL_Y8950[i] = NULL;
+	}
+	Y8950NumChips = 0;
+}
+void Y8950ResetChip(int which)
+{
+	OPLResetChip(OPL_Y8950[which]);
+}
+
+int Y8950Write(int which, int a, int v)
+{
+	return OPLWrite(OPL_Y8950[which], a, v);
+}
+
+unsigned char Y8950Read(int which, int a)
+{
+	return OPLRead(OPL_Y8950[which], a);
+}
+int Y8950TimerOver(int which, int c)
+{
+	return OPLTimerOver(OPL_Y8950[which], c);
+}
+
+void Y8950SetTimerHandler(int which, OPL_TIMERHANDLER TimerHandler, int channelOffset)
+{
+	OPLSetTimerHandler(OPL_Y8950[which], TimerHandler, channelOffset);
+}
+void Y8950SetIRQHandler(int which,OPL_IRQHANDLER IRQHandler,int param)
+{
+	OPLSetIRQHandler(OPL_Y8950[which], IRQHandler, param);
+}
+void Y8950SetUpdateHandler(int which,OPL_UPDATEHANDLER UpdateHandler,int param)
+{
+	OPLSetUpdateHandler(OPL_Y8950[which], UpdateHandler, param);
+}
+
+void Y8950SetDeltaTMemory(int which, void * deltat_rom, int deltat_rom_size )
+{
+	FM_OPL		*OPL = OPL_Y8950[which];
+	OPL->deltat->memory = (UINT8 *)(deltat_rom);
+	OPL->deltat->memory_size = deltat_rom_size;
+}
+
+/*
+** Generate samples for one of the Y8950's
+**
+** 'which' is the virtual Y8950 number
+** '*buffer' is the output buffer pointer
+** 'length' is the number of samples that should be generated
+*/
+void Y8950UpdateOne(int which, INT16 *buffer, int length)
+{
+	int i;
+	FM_OPL		*OPL = OPL_Y8950[which];
+	UINT8		rhythm  = OPL->rhythm&0x20;
+	YM_DELTAT	*DELTAT = OPL->deltat;
+	OPLSAMPLE	*buf    = buffer;
+
+	/* setup DELTA-T unit */
+	YM_DELTAT_DECODE_PRESET(DELTAT);
+
+	if( (void *)OPL != cur_chip ){
+		cur_chip = (void *)OPL;
+		/* rhythm slots */
+		SLOT7_1 = &OPL->P_CH[7].SLOT[SLOT1];
+		SLOT7_2 = &OPL->P_CH[7].SLOT[SLOT2];
+		SLOT8_1 = &OPL->P_CH[8].SLOT[SLOT1];
+		SLOT8_2 = &OPL->P_CH[8].SLOT[SLOT2];
+
+	}
+	for( i=0; i < length ; i++ )
+	{
+		int lt;
+
+		output[0] = 0;
+		output_deltat[0] = 0;
+
+		advance_lfo(OPL);
+
+		/* deltaT ADPCM */
+		if( DELTAT->portstate )
+			YM_DELTAT_ADPCM_CALC(DELTAT);
+
+		/* FM part */
+		OPL_CALC_CH(&OPL->P_CH[0]);
+		OPL_CALC_CH(&OPL->P_CH[1]);
+		OPL_CALC_CH(&OPL->P_CH[2]);
+		OPL_CALC_CH(&OPL->P_CH[3]);
+		OPL_CALC_CH(&OPL->P_CH[4]);
+		OPL_CALC_CH(&OPL->P_CH[5]);
+
+		if(!rhythm)
+		{
+			OPL_CALC_CH(&OPL->P_CH[6]);
+			OPL_CALC_CH(&OPL->P_CH[7]);
+			OPL_CALC_CH(&OPL->P_CH[8]);
+		}
+		else		/* Rhythm part */
+		{
+			OPL_CALC_RH(&OPL->P_CH[0], (OPL->noise_rng>>0)&1 );
+		}
+
+		lt = output[0] + (output_deltat[0]>>11);
+
+		lt >>= FINAL_SH;
+
+		/* limit check */
+		lt = limit( lt , MAXOUT, MINOUT );
+
+		#ifdef SAVE_SAMPLE
+			SAVE_ALL_CHANNELS
+		#endif
+
+		/* store to sound buffer */
+		buf[i] = lt;
+
+		advance(OPL);
+	}
+
+	/* deltaT START flag */
+	if( !DELTAT->portstate )
+		OPL->status &= 0xfe;
+
+	if( DELTAT->eos ) /*AT: set bit 4 of OPL status register on EOS*/
+	{
+		DELTAT->eos = 0;
+		OPL->status |= 0x10;
+	}
+}
+
+void Y8950SetPortHandler(int which,OPL_PORTHANDLER_W PortHandler_w,OPL_PORTHANDLER_R PortHandler_r,int param)
+{
+	FM_OPL		*OPL = OPL_Y8950[which];
+	OPL->porthandler_w = PortHandler_w;
+	OPL->porthandler_r = PortHandler_r;
+	OPL->port_param = param;
+}
+
+void Y8950SetKeyboardHandler(int which,OPL_PORTHANDLER_W KeyboardHandler_w,OPL_PORTHANDLER_R KeyboardHandler_r,int param)
+{
+	FM_OPL		*OPL = OPL_Y8950[which];
+	OPL->keyboardhandler_w = KeyboardHandler_w;
+	OPL->keyboardhandler_r = KeyboardHandler_r;
+	OPL->keyboard_param = param;
+}
+
+#endif
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/fmopl.h b/cosp-0.6-src/ClouRemake/ClouRemake/sound/fmopl.h
new file mode 100644
index 0000000..4621170
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/fmopl.h
@@ -0,0 +1,114 @@
+#ifndef __FMOPL_H_
+#define __FMOPL_H_
+
+#include "theclou.h"
+
+/* --- select emulation chips --- */
+/* XXX
+#define BUILD_YM3812 (HAS_YM3812)
+#define BUILD_YM3526 (HAS_YM3526)
+#define BUILD_Y8950  (HAS_Y8950)
+*/
+#define BUILD_YM3812 1
+
+/* select output bits size of output : 8 or 16 */
+#define OPL_SAMPLE_BITS 16
+
+#if (OPL_SAMPLE_BITS==16)
+typedef short OPLSAMPLE;
+#endif
+#if (OPL_SAMPLE_BITS==8)
+typedef char OPLSAMPLE;
+#endif
+
+
+typedef void (*OPL_TIMERHANDLER) (int channel, double interval_Sec);
+typedef void (*OPL_IRQHANDLER) (int param, int irq);
+typedef void (*OPL_UPDATEHANDLER) (int param, int min_interval_us);
+typedef void (*OPL_PORTHANDLER_W) (int param, unsigned char data);
+typedef unsigned char (*OPL_PORTHANDLER_R) (int param);
+
+
+#if BUILD_YM3812
+
+int YM3812Init(int num, int clock, int rate);
+void YM3812Shutdown(void);
+void YM3812ResetChip(int which);
+int YM3812Write(int which, int a, int v);
+unsigned char YM3812Read(int which, int a);
+int YM3812TimerOver(int which, int c);
+void YM3812UpdateOne(int which, short * buffer, int length);
+
+void YM3812SetTimerHandler(int which, OPL_TIMERHANDLER TimerHandler,
+			   int channelOffset);
+void YM3812SetIRQHandler(int which, OPL_IRQHANDLER IRQHandler, int param);
+void YM3812SetUpdateHandler(int which, OPL_UPDATEHANDLER UpdateHandler,
+			    int param);
+
+#endif
+
+
+#if BUILD_YM3526
+
+/*
+** Initialize YM3526 emulator(s).
+**
+** 'num' is the number of virtual YM3526's to allocate
+** 'clock' is the chip clock in Hz
+** 'rate' is sampling rate
+*/
+int YM3526Init(int num, int clock, int rate);
+/* shutdown the YM3526 emulators*/
+void YM3526Shutdown(void);
+void YM3526ResetChip(int which);
+int YM3526Write(int which, int a, int v);
+unsigned char YM3526Read(int which, int a);
+int YM3526TimerOver(int which, int c);
+/*
+** Generate samples for one of the YM3526's
+**
+** 'which' is the virtual YM3526 number
+** '*buffer' is the output buffer pointer
+** 'length' is the number of samples that should be generated
+*/
+void YM3526UpdateOne(int which, short * buffer, int length);
+
+void YM3526SetTimerHandler(int which, OPL_TIMERHANDLER TimerHandler,
+			   int channelOffset);
+void YM3526SetIRQHandler(int which, OPL_IRQHANDLER IRQHandler, int param);
+void YM3526SetUpdateHandler(int which, OPL_UPDATEHANDLER UpdateHandler,
+			    int param);
+
+#endif
+
+
+#if BUILD_Y8950
+
+#include "ymdeltat.h"
+
+/* Y8950 port handlers */
+void Y8950SetPortHandler(int which, OPL_PORTHANDLER_W PortHandler_w,
+			 OPL_PORTHANDLER_R PortHandler_r, int param);
+void Y8950SetKeyboardHandler(int which,
+			     OPL_PORTHANDLER_W KeyboardHandler_w,
+			     OPL_PORTHANDLER_R KeyboardHandler_r, int param);
+void Y8950SetDeltaTMemory(int which, void *deltat_rom, int deltat_rom_size);
+
+int Y8950Init(int num, int clock, int rate);
+void Y8950Shutdown(void);
+void Y8950ResetChip(int which);
+int Y8950Write(int which, int a, int v);
+unsigned char Y8950Read(int which, int a);
+int Y8950TimerOver(int which, int c);
+void Y8950UpdateOne(int which, short * buffer, int length);
+
+void Y8950SetTimerHandler(int which, OPL_TIMERHANDLER TimerHandler,
+			  int channelOffset);
+void Y8950SetIRQHandler(int which, OPL_IRQHANDLER IRQHandler, int param);
+void Y8950SetUpdateHandler(int which, OPL_UPDATEHANDLER UpdateHandler,
+			   int param);
+
+#endif
+
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/fx.c b/cosp-0.6-src/ClouRemake/ClouRemake/sound/fx.c
new file mode 100644
index 0000000..6c40caa
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/fx.c
@@ -0,0 +1,74 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+/****************************************************************************
+  Portions copyright (c) 2005 Vasco Alexandre da Silva Costa
+  Portions copyright (c) 2005 Jens Granseuer
+
+  Please read the license terms which should be contained with this
+  distribution.
+ ****************************************************************************/
+#include "SDL.h"
+
+#include "base/base.h"
+
+#include "sound/mxr.h"
+#include "sound/fx.h"
+
+#define clamp(x, lower, upper)  ((x) < (lower) ? (lower) : (x) > (upper) ? (upper) : (x))
+
+MXR_Mixer *pAudioMixer = NULL;
+
+static int SfxChannelOn = FALSE;
+
+void InitAudio(void)
+{
+	MXR_Format fmt;
+	fmt.nSamplesPerSec = SND_FREQUENCY;
+	fmt.nBitsPerChannel = 16;
+	fmt.nNumChannels = 2;
+	fmt.nSampleSize = 4;
+	pAudioMixer = MXR_CreateMixer(&fmt);
+
+	currMusicVolume = Config.MusicVolume;
+}
+
+void RemoveAudio(void)
+{
+	MXR_DestroyMixer(pAudioMixer);
+	pAudioMixer = NULL;
+}
+
+void sndInitFX(void)
+{
+    SDL_LockAudio();
+
+    SfxChannelOn = FALSE;
+
+    SDL_UnlockAudio();
+}
+
+void sndDoneFX(void)
+{
+    SDL_LockAudio();
+
+    SfxChannelOn = FALSE;
+
+    SDL_UnlockAudio();
+}
+
+void sndPlayFX(const char *name)
+{
+    char fileName[256];
+
+	sndDoneFX();
+
+    if (pAudioMixer) {
+        dskBuildPathName(SAMPLES_DIRECTORY, name, fileName);
+		MXR_SetInput(pAudioMixer, MXR_INPUT_FX, MXR_CreateInputVOC(fileName));
+		SfxChannelOn = TRUE;
+    }
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/fx.h b/cosp-0.6-src/ClouRemake/ClouRemake/sound/fx.h
new file mode 100644
index 0000000..209844d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/fx.h
@@ -0,0 +1,36 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+/****************************************************************************
+  Portions copyright (c) 2005 Vasco Alexandre da Silva Costa
+
+  Please read the license terms which should be contained with this
+  distribution.
+ ****************************************************************************/
+#ifndef TC_FX_H
+#define TC_FX_H
+
+#include "theclou.h"
+#include "sound/mxr.h"
+
+#define	SND_FREQUENCY				44100
+#define SND_MAX_VOLUME              255
+
+//#define SND_BUFFER_SIZE				247226	// 65536
+#define SND_MUSIC_BUFFER_SIZE		65536
+#define SND_SAMPLES                 1024
+
+extern MXR_Mixer *pAudioMixer;
+
+extern void sndInitFX(void);
+extern void sndDoneFX(void);
+extern void sndPlayFX(const char *Name);
+
+extern void InitAudio(void);
+extern void RemoveAudio(void);
+
+#endif
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr.c b/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr.c
new file mode 100644
index 0000000..dada46b
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr.c
@@ -0,0 +1,504 @@
+/*
+** MXR - A Simple Audio Mixer
+** Copyright (c) 2017 by Oliver Gantert.
+**
+** Permission is given by the author to use this version of MXR freely,
+** provided that the message "Copyright (c) 2017 by Oliver Gantert" in this
+** and associated files is not changed or removed.
+**
+** See "mxr.h" for details.
+*/
+#include "SDL.h"
+#include "mxr.h"
+#include "sound/fmopl.h"
+
+#define MXR_DELAY	1
+
+/******************************************************************************/
+
+struct MXR_Mixer {
+	MXR_Format		fmt;
+	unsigned long	nVolume;
+
+	MXR_Input *		pInput[MXR_MAX_INPUTS];
+	unsigned char	buffer[MXR_BUFFER_SAMPLES * 2 * sizeof(short)];	/* (hopefully) the largest required buffer */
+	
+#if MXR_DELAY
+	short			delay_buffer[MXR_BUFFER_SAMPLES * 2];
+#endif
+};
+
+#define ClampValue(v,a,z)	((v) < (a) ? (a) : ((v) > (z) ? (z) : (v)))
+
+/******************************************************************************/
+
+static void MXR__ConvertU8ToS16(unsigned char *pBuffer, unsigned long nValues)
+{
+	long i;
+	short *pDest;
+	long s;
+
+	pDest = (short *)pBuffer;
+	for (i = (long)nValues - 1; i >= 0; --i) {
+		s = pBuffer[i];
+		s <<= 8;
+		s -= 0x008000;
+		pDest[i] = (short)s;
+	}
+}
+
+/******************************************************************************/
+
+static void MXR__ConvertS16ToU8(short *pBuffer, unsigned long nValues)
+{
+	long i;
+	unsigned char *pDest;
+	long s;
+
+	pDest = (unsigned char *)pBuffer;
+	for (i = 0; i < nValues; i++) {
+		s = pBuffer[i];
+		s += 0x008000;
+		s >>= 8;
+		pDest[i] = (unsigned char)s;
+	}
+}
+
+/******************************************************************************/
+
+static void MXR__ResampleAndMixS16MonoToMono(MXR_Mixer *pMixer, short *pStream, unsigned long nStreamSamples, MXR_Input *pInput, unsigned long nInputSamples)
+{
+	long s, s2;
+	long rem;
+	unsigned long i, ixSamples, j, j2;
+	short *pBuffer;
+
+	pBuffer = (short *)pMixer->buffer;
+
+	if (nStreamSamples == nInputSamples) {
+		for (i = 0; i < nStreamSamples; i++) {
+			s = pBuffer[i];
+
+			s *= pInput->nVolume;
+			s /= 255;
+			s += pStream[i];
+			pStream[i] = (short)ClampValue(s, -32768, 32767);
+		}
+		return;
+	}
+
+	for (i = 0; i < nStreamSamples; i++) {
+		ixSamples = i * nInputSamples;
+		rem = ixSamples % nStreamSamples;
+		j = ixSamples / nStreamSamples;
+		j2 = (j >= (nInputSamples - 1)) ? (nInputSamples - 1) : (j + 1);
+
+		s = pBuffer[j];
+		s2 = pBuffer[j2];
+		s = s + (((s2 - s) * rem) / (long)nStreamSamples);
+
+		s *= pInput->nVolume;
+		s /= 255;
+		s += pStream[i];
+		pStream[i] = (short)ClampValue(s, -32768, 32767);
+	}
+}
+
+/******************************************************************************/
+
+static void MXR__ResampleAndMixS16MonoToStereo(MXR_Mixer *pMixer, short *pStream, unsigned long nStreamSamples, MXR_Input *pInput, unsigned long nInputSamples)
+{
+	long s, s2;
+	long rem;
+	unsigned long i, i2, ixSamples, j, j2;
+	short *pBuffer;
+
+	pBuffer = (short *)pMixer->buffer;
+
+	if (nStreamSamples == nInputSamples) {
+		for (i = 0; i < nStreamSamples; i++) {
+			s = pBuffer[i];
+
+			s *= pInput->nVolume;
+			s /= 255;
+			s2 = s;
+			i2 = i << 1;
+			s += pStream[i2];
+			s2 += pStream[i2 + 1];
+			pStream[i2] = (short)ClampValue(s, -32768, 32767);
+			pStream[i2 + 1] = (short)ClampValue(s2, -32768, 32767);
+		}
+		return;
+	}
+
+	for (i = 0; i < nStreamSamples; i++) {
+		ixSamples = i * nInputSamples;
+		rem = ixSamples % nStreamSamples;
+		j = ixSamples / nStreamSamples;
+		j2 = (j >= (nInputSamples - 1)) ? (nInputSamples - 1) : (j + 1);
+
+		s = pBuffer[j];
+		s2 = pBuffer[j2];
+		s = s + (((s2 - s) * rem) / (long)nStreamSamples);
+
+		s *= pInput->nVolume;
+		s /= 255;
+		s2 = s;
+		i2 = i << 1;
+		s += pStream[i2];
+		s2 += pStream[i2 + 1];
+		pStream[i2] = (short)ClampValue(s, -32768, 32767);
+		pStream[i2 + 1] = (short)ClampValue(s2, -32768, 32767);
+	}
+}
+
+/******************************************************************************/
+
+static void MXR__ResampleAndMixS16StereoToMono(MXR_Mixer *pMixer, short *pStream, unsigned long nStreamSamples, MXR_Input *pInput, unsigned long nInputSamples)
+{
+	long s, s2, l, r;
+	long rem;
+	unsigned long i, i2, ixSamples, j, j2, jx, j2x;
+	short *pBuffer;
+
+	pBuffer = (short *)pMixer->buffer;
+
+	if (nStreamSamples == nInputSamples) {
+		for (i = 0; i < nStreamSamples; i++) {
+			i2 = i << 1;
+
+			s = pBuffer[i2];
+			s += pBuffer[i2 + 1];
+			s /= 2;
+
+			s *= pInput->nVolume;
+			s /= 255;
+			s += pStream[i];
+			pStream[i] = (short)ClampValue(s, -32768, 32767);
+		}
+		return;
+	}
+
+	for (i = 0; i < nStreamSamples; i++) {
+		ixSamples = i * nInputSamples;
+		rem = ixSamples % nStreamSamples;
+		j = ixSamples / nStreamSamples;
+		j2 = (j >= (nInputSamples - 1)) ? (nInputSamples - 1) : (j + 1);
+
+		jx = j << 1;
+		j2x = j2 << 1;
+		s = pBuffer[jx];
+		s2 = pBuffer[j2x];
+		l = s + (((s2 - s) * rem) / (long)nStreamSamples);
+		s = pBuffer[jx + 1];
+		s2 = pBuffer[j2x + 1];
+		r = s + (((s2 - s) * rem) / (long)nStreamSamples);
+
+		s = (l + r) / 2;
+
+		s *= pInput->nVolume;
+		s /= 255;
+		s += pStream[i];
+		pStream[i] = (short)ClampValue(s, -32768, 32767);
+	}
+}
+
+/******************************************************************************/
+
+static void MXR__ResampleAndMixS16StereoToStereo(MXR_Mixer *pMixer, short *pStream, unsigned long nStreamSamples, MXR_Input *pInput, unsigned long nInputSamples)
+{
+	long s, s2, l, r;
+	long rem;
+	unsigned long i, i2, ixSamples, j, j2, jx, j2x;
+	short *pBuffer;
+
+	pBuffer = (short *)pMixer->buffer;
+
+	if (nStreamSamples == nInputSamples) {
+		for (i = 0; i < nStreamSamples; i++) {
+			i2 = i << 1;
+
+			s = pBuffer[i2];
+			s *= pInput->nVolume;
+			s /= 255;
+			s += pStream[i2];
+
+			pStream[i2] = (short)ClampValue(s, -32768, 32767);
+
+			s = pBuffer[i2+1];
+			s *= pInput->nVolume;
+			s /= 255;
+			s += pStream[i2+1];
+
+			pStream[i2+1] = (short)ClampValue(s, -32768, 32767);
+		}
+		return;
+	}
+
+	for (i = 0; i < nStreamSamples; i++) {
+		ixSamples = i * nInputSamples;
+		rem = ixSamples % nStreamSamples;
+		j = ixSamples / nStreamSamples;
+		j2 = (j >= (nInputSamples - 1)) ? (nInputSamples - 1) : (j + 1);
+
+		i2 = i << 1;
+
+		jx = j << 1;
+		j2x = j2 << 1;
+		s = pBuffer[jx];
+		s2 = pBuffer[j2x];
+		s = s + (((s2 - s) * rem) / (long)nStreamSamples);
+		s *= pInput->nVolume;
+		s /= 255;
+		s += pStream[i2];
+		pStream[i2] = (short)ClampValue(s, -32768, 32767);
+
+		s = pBuffer[jx + 1];
+		s2 = pBuffer[j2x + 1];
+		s = s + (((s2 - s) * rem) / (long)nStreamSamples);
+		s *= pInput->nVolume;
+		s /= 255;
+		s += pStream[i2+1];
+		pStream[i2+1] = (short)ClampValue(s, -32768, 32767);
+	}
+}
+
+/******************************************************************************/
+
+static void MXR__ResampleAndMixU8MonoToMono(MXR_Mixer *pMixer, unsigned char *pStream, unsigned long nStreamSamples, MXR_Input *pInput, unsigned long nInputSamples)
+{
+}
+
+/******************************************************************************/
+
+static void MXR__ResampleAndMixU8MonoToStereo(MXR_Mixer *pMixer, unsigned char *pStream, unsigned long nStreamSamples, MXR_Input *pInput, unsigned long nInputSamples)
+{
+}
+
+/******************************************************************************/
+
+static void MXR__ResampleAndMixU8StereoToMono(MXR_Mixer *pMixer, unsigned char *pStream, unsigned long nStreamSamples, MXR_Input *pInput, unsigned long nInputSamples)
+{
+}
+
+/******************************************************************************/
+
+static void MXR__ResampleAndMixU8StereoToStereo(MXR_Mixer *pMixer, unsigned char *pStream, unsigned long nStreamSamples, MXR_Input *pInput, unsigned long nInputSamples)
+{
+}
+
+/******************************************************************************/
+typedef void (*SDL_AudioCallbackFunc)(void *, unsigned char *, int);
+
+static void MXR_ProcessMixer(MXR_Mixer *pMixer, unsigned char *pStream, int nStreamSize)
+{
+	int i;
+	MXR_Input *pInput;
+	unsigned long nStreamSamples, nInputSamples;
+
+	nStreamSamples = nStreamSize / pMixer->fmt.nSampleSize;	/* should(!) be MXR_BUFFER_SAMPLES */
+
+	/* the inputs are additive, so we should silence the stream first */
+	if (pMixer->fmt.nBitsPerChannel == 8) {
+		memset(pStream, 0x80, nStreamSize);
+	} else {
+		memset(pStream, 0, nStreamSize);
+	}
+
+	for (i = 0; i < MXR_MAX_INPUTS; i++) {
+		pInput = pMixer->pInput[i];
+		if (pInput && pInput->pProcess) {
+			nInputSamples = nStreamSamples * pInput->fmt.nSamplesPerSec / pMixer->fmt.nSamplesPerSec;
+
+			if (pInput->fmt.nBitsPerChannel == 8) {
+				memset(pMixer->buffer, 0x80, sizeof(pMixer->buffer));
+			} else {
+				memset(pMixer->buffer, 0, sizeof(pMixer->buffer));
+			}
+
+			if (pInput->pProcess(pInput, pMixer->buffer, nInputSamples) <= 0) {
+				if (pInput->pDestroy) {
+					pInput->pDestroy(pInput);
+				}
+				pMixer->pInput[i] = NULL;
+			} else {
+				/* convert pMixer->buffer to output format */
+				if (pInput->fmt.nBitsPerChannel < pMixer->fmt.nBitsPerChannel) {
+					MXR__ConvertU8ToS16(pMixer->buffer, nInputSamples * pInput->fmt.nNumChannels);
+				} else if (pInput->fmt.nBitsPerChannel > pMixer->fmt.nBitsPerChannel) {
+					MXR__ConvertS16ToU8(pMixer->buffer, nInputSamples * pInput->fmt.nNumChannels);
+				}
+
+				if (pMixer->fmt.nBitsPerChannel == 8) {
+					if (pInput->fmt.nNumChannels == 2) {
+						if (pMixer->fmt.nNumChannels == 2) {
+							MXR__ResampleAndMixU8StereoToStereo(pMixer, pStream, nStreamSamples, pInput, nInputSamples);
+						} else {
+							MXR__ResampleAndMixU8StereoToMono(pMixer, pStream, nStreamSamples, pInput, nInputSamples);
+						}
+					} else {
+						if (pMixer->fmt.nNumChannels == 2) {
+							MXR__ResampleAndMixU8MonoToStereo(pMixer, pStream, nStreamSamples, pInput, nInputSamples);
+						} else {
+							MXR__ResampleAndMixU8MonoToMono(pMixer, pStream, nStreamSamples, pInput, nInputSamples);
+						}
+					}
+				} else {
+					if (pInput->fmt.nNumChannels == 2) {
+						if (pMixer->fmt.nNumChannels == 2) {
+							MXR__ResampleAndMixS16StereoToStereo(pMixer, pStream, nStreamSamples, pInput, nInputSamples);
+						} else {
+							MXR__ResampleAndMixS16StereoToMono(pMixer, pStream, nStreamSamples, pInput, nInputSamples);
+						}
+					} else {
+						if (pMixer->fmt.nNumChannels == 2) {
+							MXR__ResampleAndMixS16MonoToStereo(pMixer, pStream, nStreamSamples, pInput, nInputSamples);
+						} else {
+							MXR__ResampleAndMixS16MonoToMono(pMixer, pStream, nStreamSamples, pInput, nInputSamples);
+						}
+					}
+				}
+
+			}
+		}
+	}
+#if MXR_DELAY
+	short rem;
+	for (i = 0; i < nStreamSamples * 2; i+=2) {
+		rem = ((short *)pStream)[i];
+		((short *)pStream)[i] = pMixer->delay_buffer[i];
+		pMixer->delay_buffer[i] = rem;
+	}
+#endif
+}
+
+/******************************************************************************/
+
+MXR_Mixer *MXR_CreateMixer(const MXR_Format *pFormat)
+{
+	MXR_Mixer *pMixer;
+	SDL_AudioSpec spec;
+	int i;
+
+	pMixer = (MXR_Mixer *)MXR_MemAlloc(sizeof(MXR_Mixer));
+	if (!pMixer) {
+		return(NULL);
+	}
+
+	pMixer->fmt.nSamplesPerSec	= pFormat->nSamplesPerSec;
+	pMixer->fmt.nBitsPerChannel	= pFormat->nBitsPerChannel;
+	pMixer->fmt.nNumChannels	= pFormat->nNumChannels;
+	pMixer->fmt.nSampleSize		= (pFormat->nNumChannels * pFormat->nBitsPerChannel) >> 3;
+	pMixer->nVolume				= 128;
+	for (i = 0; i < MXR_MAX_INPUTS; i++) {
+		pMixer->pInput[i] = NULL;
+	}
+
+	spec.freq		= pMixer->fmt.nSamplesPerSec;
+	if (pMixer->fmt.nBitsPerChannel == 8) {
+		spec.format	= AUDIO_U8;
+	} else {
+		pMixer->fmt.nBitsPerChannel = 16;
+		spec.format	= AUDIO_S16;
+	}
+	spec.channels	= pMixer->fmt.nNumChannels;
+	spec.samples	= MXR_BUFFER_SAMPLES;
+	spec.callback	= (SDL_AudioCallbackFunc)MXR_ProcessMixer;
+	spec.userdata	= pMixer;
+
+	if (SDL_InitSubSystem(SDL_INIT_AUDIO) != 0) {
+		MXR_MemFree(pMixer, sizeof(MXR_Mixer));
+		return(NULL);
+	}
+
+	if (SDL_OpenAudio(&spec, NULL)) {
+		Log("SDL_OpenAudio: %s", SDL_GetError());
+		MXR_MemFree(pMixer, sizeof(MXR_Mixer));
+		return(NULL);
+	}
+
+	/* YM3812 emulation for the HSC player */
+	YM3812Init(OPL_NUM_CHIPS, OPL_INTERNAL_FREQ, OPL_FREQUENCY);
+
+	SDL_PauseAudio(0);
+
+	return(pMixer);
+}
+
+/******************************************************************************/
+
+void MXR_DestroyMixer(MXR_Mixer *pMixer)
+{
+	int i;
+
+    SDL_CloseAudio();
+
+	/* YM3812 emulation for the HSC player */
+	YM3812Shutdown();
+
+    if (SDL_WasInit(SDL_INIT_AUDIO) != 0) {
+        SDL_QuitSubSystem(SDL_INIT_AUDIO);
+    }
+
+	if (pMixer) {
+		for (i = 0; i < MXR_MAX_INPUTS; i++) {
+			if (pMixer->pInput[i] && pMixer->pInput[i]->pDestroy) {
+				pMixer->pInput[i]->pDestroy(pMixer->pInput[i]);
+			}
+			pMixer->pInput[i] = NULL;
+		}
+		MXR_MemFree(pMixer, sizeof(MXR_Mixer));
+	}
+}
+
+/******************************************************************************/
+
+void MXR_SetInput(MXR_Mixer *pMixer, long nInput, MXR_Input *pInput)
+{
+	MXR_Input *pOldInput;
+
+	SDL_LockAudio();
+
+	pOldInput = pMixer->pInput[nInput];
+	pMixer->pInput[nInput] = pInput;
+
+	SDL_UnlockAudio();
+
+	if (pOldInput && pOldInput->pDestroy) {
+		pOldInput->pDestroy(pOldInput);
+	}
+}
+
+/******************************************************************************/
+
+unsigned char MXR_SetOutputVolume(MXR_Mixer *pMixer, unsigned char nVolume)
+{
+	unsigned char nOldVolume;
+
+	SDL_LockAudio();
+
+	nOldVolume = pMixer->nVolume;
+	pMixer->nVolume = nVolume;
+
+	SDL_UnlockAudio();
+
+	return(nOldVolume);
+}
+
+/******************************************************************************/
+
+unsigned char MXR_SetInputVolume(MXR_Mixer *pMixer, long nInput, unsigned char nVolume)
+{
+	unsigned char nOldVolume;
+
+	SDL_LockAudio();
+
+	nOldVolume = pMixer->pInput[nInput]->nVolume;
+	pMixer->pInput[nInput]->nVolume = nVolume;
+
+	SDL_UnlockAudio();
+
+	return(nOldVolume);
+}
+
+/******************************************************************************/
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr.h b/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr.h
new file mode 100644
index 0000000..37ce651
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr.h
@@ -0,0 +1,112 @@
+/*
+** MXR - A Simple Audio Mixer
+** Copyright (c) 2017 by Oliver Gantert.
+**
+** Permission is given by the author to use this version of MXR freely,
+** provided that the message "Copyright (c) 2017 by Oliver Gantert" in this
+** and associated files is not changed or removed.
+**
+** MXR features on-the-fly resampling and mixing of 8bit and 16bit streams.
+** Inputs may provide sample data in whatever (supported) format they prefer,
+** MXR handles the conversion to the desired output format.
+**
+** Resampling may introduce artifacts and audible aliasing effects (defects)
+** depending on sample rate conversion ratio, output buffer size and the
+** occasional rounding error.
+**
+** MXR was purposefully designed with integer operations, no floating points
+** were harmed in the resampling nor mixing code. However, inputs may use
+** floating point operations however they see fit.
+**
+**     Supported input/output formats :
+**
+**         - unsigned 8bit mono
+**         - unsigned 8bit stereo interleaved
+**         - signed 16bit mono
+**         - signed 16bit stereo interleaved
+**
+**    _________  _______
+**   / ___/ __ \/ __/ _ \      Der Clou!
+**  / /__/ /_/ /\ \/ ___/ Open Source Project
+**  \___/\____/___/_/ https://cosp.sourceforge.io
+**   Based on the original by neo Software GmbH
+**
+** This version was adapted to the Clou Open Source Project <cosp.sourceforge.io>
+** (which served as the initial test bed for this piece of software)
+** and uses SDL for audio output.
+**
+*/
+#ifndef mxr_h
+#define mxr_h
+
+/******************************************************************************/
+
+#include "theclou.h"
+#include "memory/memory.h"
+
+#define MXR_MemAlloc(size)		MemAlloc(size)
+#define MXR_MemFree(mem,size)	MemFree((mem),(size))
+
+#define OPL_INTERNAL_FREQ	3579545	/* 3.6 MHz... */
+#define OPL_FREQUENCY		44100
+#define	OPL_NUM_CHIPS		1
+#define OPL_CHIP0			0
+
+/******************************************************************************/
+
+/*
+** The audio buffer size (in samples)
+*/
+#define MXR_BUFFER_SAMPLES	1024
+
+/*
+** Maximum number of inputs
+*/
+#define MXR_MAX_INPUTS	3		// 0 = music, 1 = soundfx, 2 = voice
+
+#define MXR_INPUT_MUSIC	0
+#define MXR_INPUT_FX	1
+#define MXR_INPUT_VOICE	2
+
+/******************************************************************************/
+
+typedef struct MXR_Mixer	MXR_Mixer;
+typedef struct MXR_Input	MXR_Input;
+
+typedef struct {
+	unsigned long	nSamplesPerSec;		/* 22050, 44100 etc. */
+	unsigned long	nBitsPerChannel;	/* 8 or 16 */
+	unsigned long	nNumChannels;		/* 1 or 2 */
+	unsigned long	nSampleSize;		/* (nNumChannels * nBitsPerChannel / 8) */
+} MXR_Format;
+
+typedef unsigned long (*MXR_ProcessInputFunc)(MXR_Input *, void *, unsigned long);
+typedef void (*MXR_DestroyInputFunc)(MXR_Input *);
+
+struct MXR_Input {
+	MXR_Format				fmt;
+	unsigned long			nVolume;
+
+	MXR_ProcessInputFunc	pProcess;
+	MXR_DestroyInputFunc	pDestroy;
+};
+
+#define MXR_MillisecToSamples(ms,hz)	((ms)*(hz)/1000)
+
+/******************************************************************************/
+
+extern MXR_Mixer *MXR_CreateMixer(const MXR_Format *pFormat);
+extern void MXR_DestroyMixer(MXR_Mixer *pMixer);
+
+extern void MXR_SetInput(MXR_Mixer *pMixer, long nInput, MXR_Input *pInput);
+
+extern unsigned char MXR_SetOutputVolume(MXR_Mixer *pMixer, unsigned char nVolume);
+extern unsigned char MXR_SetInputVolume(MXR_Mixer *pMixer, long nInput, unsigned char nVolume);
+
+extern MXR_Input *MXR_CreateInputVOC(const char *pszFileName);
+extern MXR_Input *MXR_CreateInputWAV(const char *pszFileName);
+extern MXR_Input *MXR_CreateInputHSC(const char *pszFileName);
+
+/******************************************************************************/
+
+#endif /* mxr_h */
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr_hsc.c b/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr_hsc.c
new file mode 100644
index 0000000..107b3a1
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr_hsc.c
@@ -0,0 +1,570 @@
+/*
+** MXR - A Simple Audio Mixer
+** Copyright (c) 2017 by Oliver Gantert.
+**
+** Permission is given by the author to use this version of MXR freely,
+** provided that the message "Copyright (c) 2017 by Oliver Gantert" in this
+** and associated files is not changed or removed.
+**
+** See "mxr.h" for details.
+*/
+#include "mxr.h"
+#include "fmopl.h"
+
+/******************************************************************************/
+
+static const int index_car[] =
+    { 0x03, 0x04, 0x05, 0x0B, 0x0C, 0x0D, 0x13, 0x14, 0x15 };
+
+static const int index_mod[] =
+    { 0x00, 0x01, 0x02, 0x08, 0x09, 0x0A, 0x10, 0x11, 0x12 };
+
+static const int freq_table[] =
+    { 0x016B, 0x0181, 0x0198, 0x01B0, 0x01CA, 0x01E5, 0x0202, 0x0220, 0x0241, 0x0263, 0x0287, 0x02AE };
+
+typedef struct {
+    ubyte car_am_vib_eg_ksr_multi;
+    ubyte mod_am_vib_eg_ksr_multi;
+
+    ubyte car_ksl_volume;
+    ubyte mod_ksl_volume;
+
+    ubyte car_attack_decay;
+    ubyte mod_attack_decay;
+
+    ubyte car_sustain_release;
+    ubyte mod_sustain_release;
+
+    ubyte feedback_fm;
+
+    ubyte car_waveform;
+    ubyte mod_waveform;
+
+    ubyte slide;
+} HSC_Instrument;	// 12
+
+typedef struct {
+    ubyte note[9][64];
+    ubyte effect[9][64];
+} HSC_Pattern;		// 1152
+
+typedef enum {
+    on, off, slide
+} voice_type;
+
+#define HSC_BUFFER_SIZE		((unsigned)(OPL_FREQUENCY*10 / 182))
+
+typedef struct {
+	HSC_Instrument instrument[128];
+	HSC_Pattern pattern[50];
+
+	ubyte pattern_table[51];
+	ubyte reserved_padding;
+
+	int hsc_ch_keyoff[9]; // bool
+	int hsc_ch_octave[9];
+	int hsc_ch_inst[9];
+	int hsc_ch_note[9];
+
+	int hsc_index;
+	int hsc_line;
+	int hsc_speed;
+	int hsc_ticks;
+
+	int hsc_effect03; // bool
+	int hsc_effect03_line;
+
+	int hsc_valid_data; // bool
+
+	int hsc_in_process; // bool
+
+	int hsc_buffer_samples;
+	short hsc_buffer[HSC_BUFFER_SIZE];
+} HSC_File;
+
+/******************************************************************************/
+
+static void ym3812_write(int reg, int val)
+{
+    YM3812Write(OPL_CHIP0, 0x0388, reg);
+    YM3812Write(OPL_CHIP0, 0x0389, val);
+}
+/******************************************************************************/
+
+static void hsc_set_volume(HSC_File *pHSC, int channel, int volume_car, int volume_mod)
+{
+    if (volume_car != 0xFF) {
+	volume_car |= pHSC->instrument[pHSC->hsc_ch_inst[channel]].car_ksl_volume & 0xC0;
+
+	ym3812_write(0x40 + index_car[channel], volume_car);
+    }
+
+    if (volume_car == 0xFF && volume_mod != 0xFF) {
+	volume_mod |= pHSC->instrument[pHSC->hsc_ch_inst[channel]].mod_ksl_volume & 0xC0;
+
+	ym3812_write(0x40 + index_mod[channel], volume_mod);
+    }
+
+    if (volume_car != 0xFF && volume_mod != 0xFF
+	&& (pHSC->instrument[pHSC->hsc_ch_inst[channel]].feedback_fm & 1)) {
+	volume_mod |= pHSC->instrument[pHSC->hsc_ch_inst[channel]].mod_ksl_volume & 0xC0;
+
+	ym3812_write(0x40 + index_mod[channel], volume_mod);
+    }
+}
+
+/******************************************************************************/
+
+static void hsc_set_instrument(HSC_File *pHSC, int channel, int new_inst)
+{
+    pHSC->hsc_ch_inst[channel] = new_inst;
+
+    hsc_set_volume(pHSC, channel, 0x3F, 0x3F);
+
+    ym3812_write(0x20 + index_car[channel], pHSC->instrument[new_inst].car_am_vib_eg_ksr_multi);
+    ym3812_write(0x20 + index_mod[channel], pHSC->instrument[new_inst].mod_am_vib_eg_ksr_multi);
+
+    ym3812_write(0x40 + index_car[channel], pHSC->instrument[new_inst].car_ksl_volume);
+    ym3812_write(0x40 + index_mod[channel], pHSC->instrument[new_inst].mod_ksl_volume);
+
+    ym3812_write(0x60 + index_car[channel], pHSC->instrument[new_inst].car_attack_decay);
+    ym3812_write(0x60 + index_mod[channel], pHSC->instrument[new_inst].mod_attack_decay);
+
+    ym3812_write(0x80 + index_car[channel], pHSC->instrument[new_inst].car_sustain_release);
+    ym3812_write(0x80 + index_mod[channel], pHSC->instrument[new_inst].mod_sustain_release);
+
+    ym3812_write(0xC0 + channel, pHSC->instrument[new_inst].feedback_fm);
+
+    ym3812_write(0xE0 + index_car[channel], pHSC->instrument[new_inst].car_waveform);
+    ym3812_write(0xE0 + index_mod[channel], pHSC->instrument[new_inst].mod_waveform);
+}
+
+/******************************************************************************/
+
+static void hsc_set_voice(HSC_File *pHSC, int channel, voice_type vt)
+{
+    int note_high =	(pHSC->hsc_ch_note[channel] >> 0x08) | (pHSC->hsc_ch_octave[channel] << 0x02);
+    int note_low = pHSC->hsc_ch_note[channel] & 0xFF;
+
+    switch (vt) 
+	{
+    case on:
+	{
+	    ym3812_write(0xB0 + channel, 0x00);
+
+	    ym3812_write(0xA0 + channel, note_low);
+	    ym3812_write(0xB0 + channel, note_high | 0x20);
+
+	    pHSC->hsc_ch_keyoff[channel] = FALSE;
+	}
+	break;
+
+    case off:
+	{
+	    ym3812_write(0xB0 + channel, note_high);
+
+	    pHSC->hsc_ch_keyoff[channel] = TRUE;
+	}
+	break;
+
+    case slide:
+	{
+	    ym3812_write(0xA0 + channel, note_low);
+
+	    if (pHSC->hsc_ch_keyoff[channel]) {
+		ym3812_write(0xB0 + channel, note_high);
+	    } else {
+		ym3812_write(0xB0 + channel, note_high | 0x20);
+	    }
+	}
+	break;
+    }
+}
+
+/******************************************************************************/
+
+static void hsc_process_row(HSC_File *pHSC)
+{
+    int i, channel, cur_pattern, note, effect;
+
+    int pat_break = FALSE; // bool
+
+
+    if (!pHSC->hsc_valid_data || pHSC->hsc_in_process) {
+	return;
+    }
+
+    pHSC->hsc_in_process = TRUE;
+
+
+    if (pHSC->hsc_ticks < pHSC->hsc_speed) {
+	pHSC->hsc_ticks++;
+
+	pHSC->hsc_in_process = FALSE;
+
+	return;
+    }
+
+    pHSC->hsc_ticks = 1;
+
+
+    cur_pattern = pHSC->pattern_table[pHSC->hsc_index];
+
+    if (pHSC->hsc_effect03) {
+	pHSC->hsc_effect03_line++;
+
+	if (pHSC->hsc_effect03_line == 32) {
+	    pHSC->hsc_effect03 = FALSE;
+	    /*hsc_set_volume(4, 0x03 * 4, 0x03 * 4);*/
+	    /*hsc_set_volume(3, 0x03 * 4, 0x03 * 4);*/
+	} else {
+	    for (i = 0; i < 9; i++) {
+		hsc_set_volume(pHSC, i, 0x3F - pHSC->hsc_effect03_line * 2 + 1,
+			       0x3F - pHSC->hsc_effect03_line * 2 + 1);
+	    }
+	}
+    }
+
+
+
+    for (channel = 0; channel < 9; channel++) {
+	note = pHSC->pattern[cur_pattern].note[channel][pHSC->hsc_line];
+	effect = pHSC->pattern[cur_pattern].effect[channel][pHSC->hsc_line];
+
+	switch (note) {
+	case 0:
+	    {
+	    }
+	    break;
+
+	case 127:
+	    {
+		hsc_set_voice(pHSC, channel, off);
+	    }
+	    break;
+
+	case 128:
+	    {
+		hsc_set_instrument(pHSC, channel, effect);
+	    }
+	    break;
+
+	default:
+	    {
+		note -= 1;
+
+		pHSC->hsc_ch_octave[channel] = note / 12;
+		pHSC->hsc_ch_note[channel] = freq_table[note % 12];
+
+		if (effect >= 0x10 && effect <= 0x1F) {
+		    pHSC->hsc_ch_note[channel] += (int) ((effect - 0x10) * 1.31);
+		}
+
+		if (effect >= 0x20 && effect <= 0x2F) {
+		    pHSC->hsc_ch_note[channel] -= (int) ((effect - 0x20) * 1.31);
+		}
+
+		if (pHSC->instrument[pHSC->hsc_ch_inst[channel]].slide >> 0x04) {
+		    pHSC->hsc_ch_note[channel] +=
+			(int) ((pHSC->instrument[pHSC->hsc_ch_inst[channel]].
+				slide >> 0x04) * 1.31);
+		}
+
+		hsc_set_voice(pHSC, channel, on);
+	    }
+	    break;
+	}
+
+
+	if (effect != 0x00) {
+	    /* Pattern break */
+
+	    if (effect == 0x01 && note != 0x80) {
+		pat_break = TRUE;	/*cur_line = 0x3F;*/
+	    }
+
+
+	    if (effect == 0x03 && note != 0x80) {
+		pHSC->hsc_effect03 = TRUE;
+
+		pHSC->hsc_effect03_line = 0;
+
+		for (i = 0; i < 9; i++) {
+		    hsc_set_volume(pHSC, i, 0x3F, 0x3F);
+		}
+	    }
+	    /* Slide note up */
+
+	    if (effect >= 0x10 && effect <= 0x1F && note == 0x00) {
+		pHSC->hsc_ch_note[channel] += (int) ((effect - 0x10) * 1.31);
+
+		hsc_set_voice(pHSC, channel, slide);
+	    }
+	    /* Slide note down */
+
+	    if (effect >= 0x20 && effect <= 0x2F && note == 0x00) {
+		pHSC->hsc_ch_note[channel] -= (int) ((effect - 0x20) * 1.31);
+
+		hsc_set_voice(pHSC, channel, slide);
+	    }
+	    /* Set carrier volume */
+
+	    if (effect >= 0xA0 && effect <= 0xAF) {
+		hsc_set_volume(pHSC, channel, (effect - 0xA0) * 0x04, 0xFF);
+	    }
+	    /* Set modulator volume */
+
+	    if (effect >= 0xB0 && effect <= 0xBF) {
+		hsc_set_volume(pHSC, channel, 0xFF, (effect - 0xB0) * 0x04);
+	    }
+	    /* Set instrument volume */
+
+	    if (effect >= 0xC0 && effect <= 0xCF) {
+		hsc_set_volume(pHSC, channel, (effect - 0xC0) * 0x4,
+			       (effect - 0xC0) * 0x4);
+	    }
+	    /* Set speed */
+
+	    if (effect >= 0xF0 && effect <= 0xFF) {
+		pHSC->hsc_speed = effect - 0xEF;
+	    }
+	}
+    }
+
+
+    pHSC->hsc_line = pat_break ? 0x40 : pHSC->hsc_line + 0x01;
+
+
+    if (pHSC->hsc_line == 0x40) {
+	pHSC->hsc_line = 0x00;
+	pHSC->hsc_index += 0x01;
+
+	if (pHSC->pattern_table[pHSC->hsc_index] == 0xFF) {
+	    pHSC->hsc_index = 0x00;
+
+	    ym3812_write(0x01, 0x20);
+
+	    ym3812_write(0x08, 0x40);
+
+
+	    for (i = 0; i < 9; i++) {
+		ym3812_write(0xB0 + i, 0);
+		ym3812_write(0xA0 + i, 0);
+
+		hsc_set_instrument(pHSC, i, i);
+
+		pHSC->hsc_ch_note[i] = 0;
+		pHSC->hsc_ch_octave[i] = 0;
+		pHSC->hsc_ch_keyoff[i] = FALSE;
+	    }
+
+	    pHSC->hsc_line = 0;
+	    pHSC->hsc_index = 0;
+	    pHSC->hsc_ticks = 1;
+	    pHSC->hsc_speed = 2;
+	} else if (pHSC->pattern_table[pHSC->hsc_index] >= 0x80) {
+	    pHSC->hsc_index = pHSC->pattern_table[pHSC->hsc_index] - 0x80;
+
+	    ym3812_write(0x01, 0x20);
+	    ym3812_write(0x08, 0x40);
+
+	    for (i = 0; i < 9; i++) {
+		ym3812_write(0xB0 + i, 0);
+		ym3812_write(0xA0 + i, 0);
+
+		hsc_set_instrument(pHSC, i, i);
+
+		pHSC->hsc_ch_note[i] = 0;
+		pHSC->hsc_ch_octave[i] = 0;
+		pHSC->hsc_ch_keyoff[i] = FALSE;
+	    }
+
+	    pHSC->hsc_line = 0;
+	    pHSC->hsc_index = 0;
+	    pHSC->hsc_ticks = 1;
+	    pHSC->hsc_speed = 2;
+	}
+    }
+
+    pHSC->hsc_in_process = FALSE;
+}
+
+/******************************************************************************/
+
+static void hscReset(HSC_File *pHSC)
+{
+    while (pHSC->hsc_in_process);
+
+    pHSC->hsc_in_process = TRUE;
+    pHSC->hsc_valid_data = FALSE;
+
+    YM3812ResetChip(OPL_CHIP0);
+
+    pHSC->hsc_in_process = FALSE;
+}
+
+/******************************************************************************/
+
+static long HSCOpen(HSC_File *pHSC, const char *pszFileName)
+{
+    int i, line, channel, num_pattern;
+	long hsc_size;
+    ubyte *hsc_data, *hsc_file;
+	FILE *pFile;
+
+    hscReset(pHSC);
+
+    pHSC->hsc_in_process = TRUE;
+
+	pFile = fopen(pszFileName, "rb");
+	if (!pFile) {
+		return(0);
+	}
+
+	fseek(pFile, 0, SEEK_END);
+	hsc_size = ftell(pFile);
+	fseek(pFile, 0, SEEK_SET);
+
+	hsc_file = MXR_MemAlloc(hsc_size);
+	if (!hsc_file) {
+		fclose(pFile);
+		return(0);
+	}
+
+	fread(hsc_file, 1, hsc_size, pFile);
+	fclose(pFile);
+
+	hsc_data = hsc_file;
+
+    for (i = 0; i < 128; i++) {
+		pHSC->instrument[i].car_am_vib_eg_ksr_multi = *hsc_data++;
+		pHSC->instrument[i].mod_am_vib_eg_ksr_multi = *hsc_data++;
+
+		pHSC->instrument[i].car_ksl_volume = *hsc_data++;
+		pHSC->instrument[i].mod_ksl_volume = *hsc_data++;
+
+		pHSC->instrument[i].car_attack_decay = *hsc_data++;
+		pHSC->instrument[i].mod_attack_decay = *hsc_data++;
+
+		pHSC->instrument[i].car_sustain_release = *hsc_data++;
+		pHSC->instrument[i].mod_sustain_release = *hsc_data++;
+
+		pHSC->instrument[i].feedback_fm = *hsc_data++;
+
+		pHSC->instrument[i].car_waveform = *hsc_data++;
+		pHSC->instrument[i].mod_waveform = *hsc_data++;
+
+		pHSC->instrument[i].slide = *hsc_data++;
+    }
+
+    for (i = 0; i < 51; i++) {
+		pHSC->pattern_table[i] = *hsc_data++;
+	}
+
+    num_pattern = (hsc_size - 1587) / 1152;
+
+    for (i = 0; i < num_pattern; i++) {
+		for (line = 0; line < 64; line++) {
+			for (channel = 0; channel < 9; channel++) {
+				pHSC->pattern[i].note[channel][line] = *hsc_data++;
+				pHSC->pattern[i].effect[channel][line] = *hsc_data++;
+			}
+		}
+    }
+
+    MXR_MemFree(hsc_file, hsc_size);
+
+    ym3812_write(0x01, 0x20);
+    ym3812_write(0x08, 0x40);
+
+    for (i = 0; i < 9; i++) {
+		ym3812_write(0xB0 + i, 0);
+		ym3812_write(0xA0 + i, 0);
+
+		hsc_set_instrument(pHSC, i, i);
+
+		pHSC->hsc_ch_note[i] = 0;
+		pHSC->hsc_ch_octave[i] = 0;
+		pHSC->hsc_ch_keyoff[i] = FALSE;
+    }
+
+    pHSC->hsc_line = 0;
+    pHSC->hsc_index = 0;
+    pHSC->hsc_ticks = 1;
+    pHSC->hsc_speed = 2;
+
+    pHSC->hsc_valid_data = TRUE;
+    pHSC->hsc_in_process = FALSE;
+	
+	return(1);
+}
+
+/******************************************************************************/
+
+typedef struct {
+	MXR_Input	mxrInput;
+	HSC_File	hscFile;
+} MXR_InputHSC;
+
+/******************************************************************************/
+
+static unsigned long MXR_ProcessInputHSC(MXR_InputHSC *pInput, void *pStream, unsigned long nNumSamples)
+{
+	short *out;
+	long nSamples, nWrite, i;
+	out = (short *)pStream;
+	nSamples = nNumSamples;
+	while (nSamples > 0) {
+		if (pInput->hscFile.hsc_buffer_samples) {
+			nWrite = pInput->hscFile.hsc_buffer_samples;
+			if (nWrite > nSamples) {
+				nWrite = nSamples;
+			}
+			for (i = 0; i < nWrite; i++) {
+				*out++ = pInput->hscFile.hsc_buffer[(HSC_BUFFER_SIZE - pInput->hscFile.hsc_buffer_samples) + i];
+			}
+			pInput->hscFile.hsc_buffer_samples -= nWrite;
+			nSamples -= nWrite;
+		} else {
+			hsc_process_row(&pInput->hscFile);
+			YM3812UpdateOne(OPL_CHIP0, pInput->hscFile.hsc_buffer, HSC_BUFFER_SIZE);
+			pInput->hscFile.hsc_buffer_samples = HSC_BUFFER_SIZE;
+		}
+	}
+	return(nNumSamples);
+}
+
+/******************************************************************************/
+
+static void MXR_DestroyInputHSC(MXR_InputHSC *pInput)
+{
+	MXR_MemFree(pInput, sizeof(MXR_InputHSC));
+}
+
+/******************************************************************************/
+
+MXR_Input *MXR_CreateInputHSC(const char *pszFileName)
+{
+	MXR_InputHSC *pInput;
+	pInput = (MXR_InputHSC *)MXR_MemAlloc(sizeof(MXR_InputHSC));
+	if (!pInput) {
+		return(NULL);
+	}
+	pInput->mxrInput.pProcess = (MXR_ProcessInputFunc)MXR_ProcessInputHSC;
+	pInput->mxrInput.pDestroy = (MXR_DestroyInputFunc)MXR_DestroyInputHSC;
+	pInput->mxrInput.nVolume = 128;
+
+	pInput->mxrInput.fmt.nSamplesPerSec = OPL_FREQUENCY;
+	pInput->mxrInput.fmt.nBitsPerChannel = 16;
+	pInput->mxrInput.fmt.nNumChannels = 1;
+	pInput->mxrInput.fmt.nSampleSize = (pInput->mxrInput.fmt.nNumChannels * pInput->mxrInput.fmt.nBitsPerChannel) >> 3;
+
+	if (!HSCOpen(&pInput->hscFile, pszFileName)) {
+		MXR_MemFree(pInput, sizeof(MXR_InputHSC));
+		return(NULL);
+	}
+
+	return((MXR_Input *)pInput);
+}
+
+/******************************************************************************/
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr_voc.c b/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr_voc.c
new file mode 100644
index 0000000..be4fef0
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr_voc.c
@@ -0,0 +1,137 @@
+/*
+** MXR - A Simple Audio Mixer
+** Copyright (c) 2017 by Oliver Gantert.
+**
+** Permission is given by the author to use this version of MXR freely,
+** provided that the message "Copyright (c) 2017 by Oliver Gantert" in this
+** and associated files is not changed or removed.
+**
+** See "mxr.h" for details.
+*/
+#include <stdio.h>
+#include "mxr.h"
+
+/******************************************************************************/
+
+typedef struct {
+	char			sMagic[20];
+	unsigned short	wDataOffset;
+	unsigned short	wVersion;
+	unsigned short	wVersionCheck;
+} VOCHeader;
+#define SIZEOF_VOCHeader	26
+
+typedef struct {
+	unsigned char	nBlockType;
+	unsigned char	nSize[3];
+	unsigned char	nSampleRate;
+	unsigned char	nCompression;
+} VOCDataHeader;
+#define SIZEOF_VOCDataHeader	6
+
+typedef struct {
+	FILE *			pFile;
+	unsigned long	dwNumSamples;
+	unsigned long	dwDataOffset;
+	unsigned long	dwDataSize;
+	unsigned long	dwSampleSize;
+	unsigned long	dwPosition;
+	unsigned long	dwSamplesPerSec;
+	unsigned short	wChannels;
+	unsigned short	wBitsPerSample;
+} VOCFile;
+
+/******************************************************************************/
+
+static long VOCOpen(VOCFile *voc, const char *pszFileName)
+{
+	VOCHeader hdr;
+	VOCDataHeader dat;
+	
+	voc->pFile = fopen(pszFileName, "rb");
+	if (!voc->pFile) {
+		return(0);
+	}
+
+	if (fread(&hdr, 1, SIZEOF_VOCHeader, voc->pFile) != SIZEOF_VOCHeader) goto Lgetout;
+	if (memcmp(hdr.sMagic, "Creative Voice File\x1a", 20)) goto Lgetout;
+	fseek(voc->pFile, hdr.wDataOffset, SEEK_SET);
+	if (fread(&dat, 1, SIZEOF_VOCDataHeader, voc->pFile) != SIZEOF_VOCDataHeader) goto Lgetout;
+	if (dat.nBlockType != 1) goto Lgetout;
+	if (dat.nCompression != 0) goto Lgetout;
+
+	voc->dwDataSize = (dat.nSize[0] | (dat.nSize[1] << 8) | (dat.nSize[2] << 16)) - 2;
+	voc->dwDataOffset = ftell(voc->pFile);
+	voc->dwSampleSize = 1;
+	voc->dwNumSamples = voc->dwDataSize / voc->dwSampleSize;
+	voc->dwPosition = 0;
+	
+	voc->dwSamplesPerSec = 1000000L / (256L - dat.nSampleRate);
+	voc->wChannels = 1;
+	voc->wBitsPerSample = 8;
+	
+	return(1);
+	
+Lgetout:
+	fclose(voc->pFile);
+	voc->pFile = NULL;
+	return(0);
+}
+
+/******************************************************************************/
+
+typedef struct {
+	MXR_Input	mxrInput;
+	VOCFile		vocFile;
+} MXR_InputVOC;
+
+static unsigned long MXR_ProcessInputVOC(MXR_InputVOC *pInput, void *pStream, unsigned long nNumSamples)
+{
+	long nSamplesRemain, nSamplesRead;
+	nSamplesRemain = (pInput->vocFile.dwDataSize - pInput->vocFile.dwPosition) / pInput->mxrInput.fmt.nSampleSize;
+	if (nNumSamples > nSamplesRemain) {
+		nNumSamples = nSamplesRemain;
+	}
+	if (nNumSamples > 0) {
+		nSamplesRead = fread(pStream, pInput->mxrInput.fmt.nSampleSize, nNumSamples, pInput->vocFile.pFile);
+		if (nSamplesRead > 0) {
+			pInput->vocFile.dwPosition += (nSamplesRead * pInput->mxrInput.fmt.nSampleSize);
+			return(nSamplesRead);
+		}
+	}
+	return(0);	// MXR will destroy this input
+}
+
+static void MXR_DestroyInputVOC(MXR_InputVOC *pInput)
+{
+	if (pInput->vocFile.pFile) {
+		fclose(pInput->vocFile.pFile);
+	}
+	MXR_MemFree(pInput, sizeof(MXR_InputVOC));
+}
+
+MXR_Input *MXR_CreateInputVOC(const char *pszFileName)
+{
+	MXR_InputVOC *pInput;
+	pInput = (MXR_InputVOC *)MXR_MemAlloc(sizeof(MXR_InputVOC));
+	if (!pInput) {
+		return(NULL);
+	}
+	pInput->mxrInput.pProcess = (MXR_ProcessInputFunc)MXR_ProcessInputVOC;
+	pInput->mxrInput.pDestroy = (MXR_DestroyInputFunc)MXR_DestroyInputVOC;
+	pInput->mxrInput.nVolume = 128;
+
+	if (!VOCOpen(&pInput->vocFile, pszFileName)) {
+		MXR_MemFree(pInput, sizeof(MXR_InputVOC));
+		return(NULL);
+	}
+
+	pInput->mxrInput.fmt.nSamplesPerSec = pInput->vocFile.dwSamplesPerSec;
+	pInput->mxrInput.fmt.nBitsPerChannel = pInput->vocFile.wBitsPerSample;
+	pInput->mxrInput.fmt.nNumChannels = pInput->vocFile.wChannels;
+	pInput->mxrInput.fmt.nSampleSize = (pInput->mxrInput.fmt.nNumChannels * pInput->mxrInput.fmt.nBitsPerChannel) >> 3;
+
+	return((MXR_Input *)pInput);
+}
+
+/******************************************************************************/
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr_wav.c b/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr_wav.c
new file mode 100644
index 0000000..f0f6cb1
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/mxr_wav.c
@@ -0,0 +1,140 @@
+/*
+** MXR - A Simple Audio Mixer
+** Copyright (c) 2017 by Oliver Gantert.
+**
+** Permission is given by the author to use this version of MXR freely,
+** provided that the message "Copyright (c) 2017 by Oliver Gantert" in this
+** and associated files is not changed or removed.
+**
+** See "mxr.h" for details.
+*/
+#include "mxr.h"
+
+/******************************************************************************/
+
+typedef struct {
+	unsigned long	dwChunkID;
+	unsigned long	dwChunkSize;
+} WAVChunk;
+
+typedef struct {
+	unsigned short	wFormatTag;
+	unsigned short	wChannels;
+	unsigned long	dwSamplesPerSec;
+	unsigned long	dwAvgBytesPerSec;
+	unsigned short	wBlockAlign;
+	unsigned short	wBitsPerSample;
+} WAVFmtChunk;
+
+typedef struct {
+	FILE *			pFile;
+	WAVFmtChunk		fmt;
+	unsigned long	dwNumSamples;
+	unsigned long	dwDataOffset;
+	unsigned long	dwDataSize;
+	unsigned long	dwSampleSize;
+	unsigned long	dwPosition;
+} WAVFile;
+
+#define makefourcc(ch0,ch1,ch2,ch3) \
+	((unsigned int)(unsigned char)(ch0) | ((unsigned int)(unsigned char)(ch1) << 8) | \
+	((unsigned int)(unsigned char)(ch2) << 16) | ((unsigned int)(unsigned char)(ch3) << 24))
+
+/******************************************************************************/
+
+static long WAVOpen(WAVFile *wav, const char *pszFileName)
+{
+	WAVChunk chk;
+
+	wav->pFile = fopen(pszFileName, "rb");
+	if (!wav->pFile) {
+		return(0);
+	}
+
+	if (fread(&chk, 1, sizeof(WAVChunk), wav->pFile) != sizeof(WAVChunk)) goto Lgetout;
+	if (chk.dwChunkID != makefourcc('R','I','F','F')) goto Lgetout;
+	if (fread(&chk.dwChunkID, 1, sizeof(long), wav->pFile) != sizeof(long)) goto Lgetout;
+	if (chk.dwChunkID != makefourcc('W','A','V','E')) goto Lgetout;
+	if (fread(&chk, 1, sizeof(WAVChunk), wav->pFile) != sizeof(WAVChunk)) goto Lgetout;
+	if (chk.dwChunkID != makefourcc('f','m','t',' ')) goto Lgetout;
+	if (chk.dwChunkSize < sizeof(WAVFmtChunk)) goto Lgetout;
+	if (fread(&wav->fmt, 1, sizeof(WAVFmtChunk), wav->pFile) != sizeof(WAVFmtChunk)) goto Lgetout;
+	if (chk.dwChunkSize > sizeof(WAVFmtChunk)) {
+		fseek(wav->pFile, chk.dwChunkSize - sizeof(WAVFmtChunk), SEEK_CUR);
+	}
+	if (fread(&chk, 1, sizeof(WAVChunk), wav->pFile) != sizeof(WAVChunk)) goto Lgetout;
+	if (chk.dwChunkID != makefourcc('d','a','t','a')) goto Lgetout;
+	wav->dwSampleSize = (wav->fmt.wChannels * wav->fmt.wBitsPerSample) >> 3;
+	if (!wav->dwSampleSize) goto Lgetout;
+	wav->dwDataSize = chk.dwChunkSize;
+	if (!wav->dwDataSize) goto Lgetout;
+	wav->dwDataOffset = ftell(wav->pFile);
+	wav->dwNumSamples = wav->dwDataSize / wav->dwSampleSize;
+	if (!wav->dwNumSamples) goto Lgetout;
+	wav->dwPosition = 0;
+
+	return(1);
+	
+Lgetout:
+	fclose(wav->pFile);
+	wav->pFile = NULL;
+	return(0);
+}
+
+/******************************************************************************/
+
+typedef struct {
+	MXR_Input	mxrInput;
+	WAVFile		wavFile;
+} MXR_InputWAV;
+
+static unsigned long MXR_ProcessInputWAV(MXR_InputWAV *pInput, void *pStream, unsigned long nNumSamples)
+{
+	long nSamplesRemain, nSamplesRead;
+	nSamplesRemain = (pInput->wavFile.dwDataSize - pInput->wavFile.dwPosition) / pInput->mxrInput.fmt.nSampleSize;
+	if (nNumSamples > nSamplesRemain) {
+		nNumSamples = nSamplesRemain;
+	}
+	if (nNumSamples > 0) {
+		nSamplesRead = fread(pStream, pInput->mxrInput.fmt.nSampleSize, nNumSamples, pInput->wavFile.pFile);
+		if (nSamplesRead > 0) {
+			pInput->wavFile.dwPosition += (nSamplesRead * pInput->mxrInput.fmt.nSampleSize);
+			return(nSamplesRead);
+		}
+	}
+	return(0);	// MXR will destroy this input
+}
+
+static void MXR_DestroyInputWAV(MXR_InputWAV *pInput)
+{
+	if (pInput->wavFile.pFile) {
+		fclose(pInput->wavFile.pFile);
+	}
+	MXR_MemFree(pInput, sizeof(MXR_InputWAV));
+}
+
+MXR_Input *MXR_CreateInputWAV(const char *pszFileName)
+{
+	MXR_InputWAV *pInput;
+	pInput = (MXR_InputWAV *)MXR_MemAlloc(sizeof(MXR_InputWAV));
+	if (!pInput) {
+		return(NULL);
+	}
+	pInput->mxrInput.pProcess = (MXR_ProcessInputFunc)MXR_ProcessInputWAV;
+	pInput->mxrInput.pDestroy = (MXR_DestroyInputFunc)MXR_DestroyInputWAV;
+	pInput->mxrInput.nVolume = 128;
+
+	if (!WAVOpen(&pInput->wavFile, pszFileName)) {
+		MXR_MemFree(pInput, sizeof(MXR_InputWAV));
+		return(NULL);
+	}
+
+	pInput->mxrInput.fmt.nSamplesPerSec = pInput->wavFile.fmt.dwSamplesPerSec;
+	pInput->mxrInput.fmt.nBitsPerChannel = pInput->wavFile.fmt.wBitsPerSample;
+	pInput->mxrInput.fmt.nNumChannels = pInput->wavFile.fmt.wChannels;
+	pInput->mxrInput.fmt.nSampleSize = (pInput->mxrInput.fmt.nNumChannels * pInput->mxrInput.fmt.nBitsPerChannel) >> 3;
+
+	return((MXR_Input *)pInput);
+}
+
+/******************************************************************************/
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/newsound.c b/cosp-0.6-src/ClouRemake/ClouRemake/sound/newsound.c
new file mode 100644
index 0000000..f13688e
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/newsound.c
@@ -0,0 +1,87 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+/****************************************************************************
+  Portions copyright (c) 2005 Vasco Alexandre da Silva Costa
+
+  Please read the license terms which should be contained with this
+  distribution.
+ ****************************************************************************/
+#include "SDL.h"
+
+#include "disk/disk.h"
+
+#include "sound/fx.h"
+#include "sound/newsound.h"
+
+#include "sound/mxr.h"
+
+char currSoundName[256];
+
+int currMusicVolume = 0;
+int targetMusicVolume = 0;
+
+void sndInit(void)
+{
+    currSoundName[0] = '\0';
+
+	currMusicVolume = Config.MusicVolume;
+	targetMusicVolume = Config.MusicVolume;
+}
+
+void sndDone(void)
+{
+}
+
+void sndPlaySound(char *name, ulong mode)
+{
+	char path[256];
+
+	if (pAudioMixer) {
+		if (stricmp(currSoundName, name)) {
+			strcpy(currSoundName, name);
+
+			dskBuildPathName(SOUND_DIRECTORY, name, path);
+
+			MXR_SetInput(pAudioMixer, MXR_INPUT_MUSIC, MXR_CreateInputHSC(path));
+
+			targetMusicVolume = Config.MusicVolume;
+		}
+	}
+}
+
+char *sndGetCurrSoundName(void)
+{
+    return currSoundName;
+}
+
+// 2014-07-17 LucyG : called from inpDoPseudoMultiTasking
+void sndDoFading(void)
+{
+	if (currMusicVolume < targetMusicVolume) {
+		currMusicVolume++;
+	} else if (currMusicVolume > targetMusicVolume) {
+		currMusicVolume--;
+	}
+}
+
+void sndFading(short int targetVol)
+{
+    if (pAudioMixer) {
+		/* 2014-07-17 LucyG : this is called from dialog.c (and intro.c)
+		   with targetVol = 16 before and 0 after voice playback */
+		if (!targetVol) {
+			targetMusicVolume = Config.MusicVolume;
+		} else {
+			targetMusicVolume = Config.MusicVolume / 4;
+		}
+    }
+}
+
+void sndStopSound(ubyte dummy)
+{
+	MXR_SetInput(pAudioMixer, MXR_INPUT_MUSIC, NULL);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/sound/newsound.h b/cosp-0.6-src/ClouRemake/ClouRemake/sound/newsound.h
new file mode 100644
index 0000000..32eac70
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/sound/newsound.h
@@ -0,0 +1,33 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+/****************************************************************************
+  Portions copyright (c) 2005 Vasco Alexandre da Silva Costa
+
+  Please read the license terms which should be contained with this
+  distribution.
+ ****************************************************************************/
+#ifndef TC_NEWSOUND_H
+#define TC_NEWSOUND_H
+
+#include "theclou.h"
+
+extern int currMusicVolume;
+extern int targetMusicVolume;
+
+void sndDoFading(void);
+
+void sndInit(void);
+void sndDone(void);
+
+void sndPlaySound(char *name, ulong mode);
+void sndStopSound(ubyte dummy);
+void sndFading(short int targetVol);
+
+char *sndGetCurrSoundName(void);
+
+#endif
+
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/stdafx.cpp b/cosp-0.6-src/ClouRemake/ClouRemake/stdafx.cpp
new file mode 100644
index 0000000..3b28a49
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/stdafx.cpp
@@ -0,0 +1,8 @@
+// stdafx.cpp : Quelldatei, die nur die Standard-Includes einbindet.
+// ClouRemake.pch ist der vorkompilierte Header.
+// stdafx.obj enth�lt die vorkompilierten Typinformationen.
+
+#include "stdafx.h"
+
+// TODO: Auf zus�tzliche Header verweisen, die in STDAFX.H
+// und nicht in dieser Datei erforderlich sind.
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/stdafx.h b/cosp-0.6-src/ClouRemake/ClouRemake/stdafx.h
new file mode 100644
index 0000000..3c572bf
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/stdafx.h
@@ -0,0 +1,16 @@
+// stdafx.h: Includedatei f�r Standardsystem-Includedateien
+// oder h�ufig verwendete projektspezifische Includedateien,
+// die nur in unregelm��igen Abst�nden ge�ndert werden.
+//
+
+#pragma once
+
+#include "targetver.h"
+
+#define WIN32_LEAN_AND_MEAN             // Selten verwendete Komponenten aus Windows-Headern ausschlie�en
+// Windows-Headerdateien:
+#include <windows.h>
+
+
+
+// TODO: Hier auf zus�tzliche Header, die das Programm erfordert, verweisen.
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/story/story.c b/cosp-0.6-src/ClouRemake/ClouRemake/story/story.c
new file mode 100644
index 0000000..732b390
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/story/story.c
@@ -0,0 +1,2040 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#include "story\story.h"
+
+ubyte tcDoLastBurglarySpot(ulong ul_Time, ulong ul_BuildingId);
+
+static void tcInitTowerBurglary(void);
+static long tcDoTowerBurglary(void);
+
+static void tcSomebodyIsComing(void)
+{
+	ubyte i;
+
+	for (i = 0; i < 3; i++)
+	{
+		inpDelay(50);
+		sndPlayFX("klopfen.voc");
+	}
+}
+
+static void tcSomebodyIsCalling(void)
+{
+	ubyte i;
+
+	for (i = 0; i < CalcRandomNr(1, 4); i++)
+	{
+		inpDelay(180);
+		sndPlayFX("ring.voc");
+	}
+}
+
+ubyte tcKarateOpa(ulong ul_ActionTime, ulong ul_BuildingId)
+{
+	livSetAllInvisible();
+	lsSetViewPort(0, 0);     /* links, oben */
+
+	gfxShow (217, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+
+	return 1;
+}
+
+void tcDoneCredits(void)
+{
+	Person ben = (Person)dbGetObject(Person_Ben_Riggley);
+
+	tcSomebodyIsComing();
+
+	Say(THECLOU_TXT, 0, ben->PictID, "A_LETTER_FOR_YOU");
+	Say(THECLOU_TXT, 0, LETTER_PICTID, "SOME_CREDITS");
+	Say(THECLOU_TXT, 0, MATT_PICTID, "SO_EIN_SCH");
+
+	if (GamePlayMode & GP_MORE_MONEY) {	// Lucy 2017-11-08 new cheat
+		tcAddPlayerMoney(100);
+	}
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+}
+
+
+/* THE ARRIVAL (ST_30)
+-----------------------------------------------------------------*/
+
+void tcDoneArrival(void)
+{
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"ST_30_OLD");
+
+	AddTaxiLocation(0); 	// holland
+	AddTaxiLocation(58); // victoria station
+
+	SceneArgs.ReturnValue = SCENE_STATION;
+}
+
+/* HOTEL RECEPTION
+-----------------------------------------------------------------*/
+
+void tcDoneHotelReception(void)
+{
+	Person      rig = (Person) dbGetObject(Person_Ben_Riggley);
+	Environment env = (Environment) dbGetObject(Environment_TheClou);
+
+	knowsSet(Person_Matt_Stuvysunt, Person_Ben_Riggley);
+
+	if (env->MattHasHotelRoom==2)  /* er hat es bereits ! */
+		SceneArgs.ReturnValue = SCENE_HOTEL;
+	else
+	    {
+		AddTaxiLocation(2);      /* watling */
+		AddTaxiLocation(1);      /* cars */
+
+		if (tcGetPlayerMoney>=tcCOSTS_FOR_HOTEL)
+		{
+			Say(STORY_0_TXT,0,MATT_PICTID,"THE_KEY_PLEASE");
+			Say(STORY_0_TXT,0,rig->PictID,"I_LL_FETCH_THE_KEY");
+			Say(STORY_0_TXT,0,MATT_PICTID,"THANKS_FOR_KEY");
+
+			env->MattHasHotelRoom = 2;
+
+			tcSetPlayerMoney(tcGetPlayerMoney-tcCOSTS_FOR_HOTEL);
+
+			SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+		}
+		else
+		    {
+			if (env->MattHasHotelRoom == 0)     /* 1. mal da */
+			{
+				ubyte choice = 2, evaluation = 0;
+
+				while ((choice == 2) || (choice == 3))
+				{
+					choice = Say(STORY_0_TXT, 0, MATT_PICTID, "HOTEL_MATT_1");
+
+					switch(choice)
+					{
+					case 0:
+						Say(STORY_0_TXT, 0, rig->PictID, "HOTEL_ANT_11");
+
+						if (Say(STORY_0_TXT, 0, MATT_PICTID, "HOTEL_MATT_2") == 1)
+						{
+							evaluation = 1;
+							Say(STORY_0_TXT, 0, rig->PictID, "HOTEL_ANT_22");
+						}
+						else
+						    {
+							Say(STORY_0_TXT, 0, rig->PictID, "HOTEL_ANT_21");
+							Say(STORY_0_TXT, 0, MATT_PICTID, "HOTEL_MATT_3");
+							Say(STORY_0_TXT, 0, rig->PictID, "HOTEL_ANT_31");
+						}
+						break;
+					case 1:
+						Say(STORY_0_TXT, 0, rig->PictID, "HOTEL_ANT_12");
+						Say(STORY_0_TXT, 0, MATT_PICTID, "HOTEL_MATT_3");
+						Say(STORY_0_TXT, 0, rig->PictID, "HOTEL_ANT_31");
+						break;
+					case 2:
+						Say(STORY_0_TXT, 0, rig->PictID, "HOTEL_ANT_13");
+						break;
+					case 3:
+						Say(STORY_0_TXT, 0, rig->PictID, "HOTEL_ANT_14");
+						break;
+					case 4:
+						break;
+					}
+				}
+
+				if (!evaluation)
+				{
+					SceneArgs.ReturnValue = SCENE_HOLLAND_STR;
+					env->MattHasHotelRoom = 1;
+				}
+				else
+				{
+					env->MattHasHotelRoom = 2;
+					SetBubbleType(THINK_BUBBLE);
+					Say(STORY_0_TXT,0,MATT_PICTID,"MILLIONAIRE");
+
+					Say(STORY_0_TXT,0,MATT_PICTID,"THANKS_FOR_KEY");
+
+					SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+				}
+			}
+			else
+			    {
+				if (env->MattHasHotelRoom == 1)
+				{
+					Say(STORY_0_TXT,0,rig->PictID,"YOU_HAVE_NO_MONEY");
+
+					SceneArgs.ReturnValue = SCENE_HOLLAND_STR;
+				}
+			}
+		}
+	}
+
+	gfxChangeColors(l_wrp,3,GFX_FADE_OUT,0);
+}
+
+/* ZIMMER _ MAMI (ST_31)
+-----------------------------------------------------------------*/
+
+void tcDoneMamiCalls(void)
+{
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"ST_31_OLD_0");
+
+	Say(STORY_0_TXT,0,MATT_PICTID,"ST_31_MATT_0");
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"ST_31_OLD_1");
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+}
+
+/* CASH FROM GLUDO
+-----------------------------------------------------------------*/
+
+void tcDoneGludoMoney(void)
+{
+	Person Gludo = (Person) dbGetObject(Person_John_Gludo);
+	Environment env = (Environment)dbGetObject(Environment_TheClou);
+	ubyte  choice;
+	long money;
+
+	knowsSet(Person_Matt_Stuvysunt,Person_John_Gludo);
+
+	choice = Say(STORY_0_TXT, 0, MATT_PICTID, "POLI_MATT_1");
+
+	switch(choice)
+	{
+	case 0:
+		Say(STORY_0_TXT, 0, Gludo->PictID, "POLI_ANT_11");
+		Say(STORY_0_TXT, 0, MATT_PICTID,   "POLI_MATT_2");
+		Say(STORY_0_TXT, 0, Gludo->PictID, "POLI_ANT_21");
+		Say(STORY_0_TXT, 0, MATT_PICTID,   "POLI_MATT_5");
+		Say(STORY_0_TXT, 0, Gludo->PictID, "POLI_ANT_51");
+		money = tcCOSTS_FOR_HOTEL;
+		if (GamePlayMode & GP_MORE_MONEY) {	// Lucy 2017-11-08 new cheat
+			money *= 2;
+		}
+		tcAddPlayerMoney(money);
+		break;
+	case 1:
+		Say(STORY_0_TXT, 0, Gludo->PictID, "POLI_ANT_12");
+		break;
+	case 2:
+		Say(STORY_0_TXT, 0, Gludo->PictID, "POLI_ANT_13");
+		break;
+	case 3:
+		Say(BUSINESS_TXT, 0, Gludo->PictID, "Bye");
+		break;
+	}
+
+	SetBubbleType(THINK_BUBBLE);
+	Say(STORY_0_TXT,0,MATT_PICTID,"POLI_MATT_6");
+
+	env->MattHasIdentityCard = 1;
+
+	StopAnim ();
+	gfxChangeColors (l_wrp, 3, GFX_FADE_OUT, 0);
+
+	SceneArgs.ReturnValue = SCENE_WATLING;
+}
+
+/* CASH FROM DANNER
+-----------------------------------------------------------------*/
+
+void tcDoneDanner(void)
+{
+	Person Jim    = (Person) dbGetObject(Person_Jim_Danner);
+	ubyte  choice;
+
+	if (tcGetPlayerMoney < tcCOSTS_FOR_HOTEL)
+	{
+		knowsSet(Person_Matt_Stuvysunt,Person_Jim_Danner);
+
+		Say(STORY_0_TXT,0,Jim->PictID,"DANNER_1");
+		choice =  Say(STORY_0_TXT,0,MATT_PICTID,"DANNER_2");
+
+		switch(choice)
+		{
+		case 0:
+			Say(STORY_0_TXT,0,Jim->PictID,"DANNER_21");
+			break;
+		case 1:
+			Say(STORY_0_TXT,0,Jim->PictID,"DANNER_22");
+			break;
+		case 2:
+			Say(STORY_0_TXT,0,Jim->PictID,"DANNER_23");
+			SetBubbleType(THINK_BUBBLE);
+			break;
+		}
+
+		Say(STORY_0_TXT,0,MATT_PICTID,"DANNER_3");
+		if (GamePlayMode & GP_MORE_MONEY) {	// Lucy 2017-11-08 new cheat
+			tcAddPlayerMoney(40);
+		} else {
+			tcAddPlayerMoney(20);
+		}
+
+		livesInUnSet(London_London_1, Person_Jim_Danner);
+		tcMoveAPerson(Person_Jim_Danner, Location_Nirvana);
+	}
+	else
+	    livesInSet(London_London_1, Person_Jim_Danner);
+
+	SceneArgs.ReturnValue = SCENE_CARS_VANS;
+}
+
+/* MEETING BRIGGS
+-----------------------------------------------------------------*/
+
+void tcDoneMeetBriggs(void)
+{
+	Person Briggs = (Person) dbGetObject(Person_Herbert_Briggs);
+	ubyte  choice;
+
+	knowsSet(Person_Matt_Stuvysunt,Person_Herbert_Briggs);
+
+	Say(STORY_0_TXT,0,Briggs->PictID,"BRIGGS_BRIGGS_1");
+	Say(STORY_0_TXT,0,MATT_PICTID,"BRIGGS_MATT_1");
+	Say(STORY_0_TXT,0,Briggs->PictID,"BRIGGS_BRIGGS_2");
+	Say(STORY_0_TXT,0,MATT_PICTID,"BRIGGS_MATT_2");
+	Say(STORY_0_TXT,0,Briggs->PictID,"BRIGGS_BRIGGS_3");
+
+	choice =  Say(STORY_0_TXT,0,MATT_PICTID,"BRIGGS_MATT_3");
+
+	if(choice==0)  /* angenommen ! */
+	{
+		Building bui = (Building) dbGetObject(Building_Kiosk);
+
+		hasSet(Person_Matt_Stuvysunt,Building_Kiosk);
+
+		if (GamePlayMode & GP_MORE_MONEY) {	// Lucy 2017-11-08 new cheat
+			tcAddPlayerMoney(30);
+		} else {
+			tcAddPlayerMoney(15);
+		}
+
+		tcAddBuildExactlyness(bui,255L);
+		tcAddBuildStrike(bui,5L);
+
+		Say(STORY_0_TXT,0,Briggs->PictID,"BRIGGS_BRIGGS_4");
+
+		Present(Car_Fiat_Topolino_1940, "Car", InitCarPresent);
+		Present(Building_Kiosk, "Building", InitBuildingPresent);
+
+		Say(STORY_0_TXT,0,OLD_MATT_PICTID,"AFTER_MEETING_BRIGGS");
+
+		hasSet(Person_Matt_Stuvysunt, Car_Fiat_Topolino_1940);
+
+		SceneArgs.ReturnValue = SCENE_FAT_MANS;
+	}
+	else           /* nicht angenommen ! */
+	{
+		Person james = (Person)dbGetObject(Person_Pater_James);
+
+		Say(STORY_0_TXT,0,Briggs->PictID,"BRIGGS_BRIGGS_5");
+
+		gfxShow (170, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);
+
+		Say(STORY_0_TXT,0,OLD_MATT_PICTID,"BRIGGS_MR_WHISKY");
+
+		tcAsTimeGoesBy(GetMinute + 793);
+
+		StopAnim();
+		gfxChangeColors(l_wrp, 8, GFX_FADE_OUT, 0);
+
+		tcMattGoesTo(60);     /* Kloster */
+
+		Say(STORY_0_TXT,0,OLD_MATT_PICTID,"KLOSTER");
+		Say(STORY_0_TXT,0,james->PictID,"ABT");
+
+		choice =  Say(STORY_0_TXT,0,MATT_PICTID,"HOLY_MATT");
+
+		if(choice==0)  /* holy */
+		{
+			sndPlaySound("end.bk", 0);
+
+			Say(STORY_0_TXT,0,155,"THE_END_MONASTERY");  /* pict = holy matt ! */
+			Say(STORY_0_TXT,0,OLD_MATT_PICTID,"THE_EDGE");
+
+			SceneArgs.ReturnValue = SCENE_NEW_GAME;
+		}
+		else           /* evil */
+		{
+			Say(STORY_0_TXT, 0, MATT_PICTID, "EVIL_MATT");
+			Say(STORY_0_TXT, 0, james->PictID, "EVIL_MATT_ABT");
+			Say(STORY_0_TXT, 0, MATT_PICTID, "EVIL_MATT_1");
+
+			Say(STORY_0_TXT, 0, OLD_MATT_PICTID, "EVIL_OLD_MATT");
+
+			hasSetP(Person_Matt_Stuvysunt, Loot_Ring_des_Abtes, tcVALUE_OF_RING_OF_PATER);
+
+			AddVTime(1440 + 525 - GetMinute);
+
+			SceneArgs.ReturnValue = SCENE_HOLLAND_STR;
+		}
+
+		StopAnim ();
+		gfxChangeColors (l_wrp, 5, GFX_FADE_OUT, 0);
+	}
+
+	AddTaxiLocation(10);     /* trafik */
+	AddTaxiLocation(18);     /* pink */
+	AddTaxiLocation(20);     /* senioren */
+	AddTaxiLocation(12);     /* aunt */
+
+	if (bProfidisk)
+		AddTaxiLocation(68); /* baker street */
+}
+
+void tcDoneFreeTicket(void)
+{
+	Person dan=(Person)dbGetObject(Person_Dan_Stanford);
+
+	knowsSet(Person_Matt_Stuvysunt,Person_Dan_Stanford);
+
+	Say(STORY_0_TXT,0,7,"AEHHH");
+	Say(STORY_0_TXT,0,dan->PictID,"FREE_TICKET");
+
+	SceneArgs.ReturnValue = GetLocScene(8)->EventNr;
+}
+
+#if 0
+void tcDoneAfterMeetingBriggs(void)
+{
+	SetBubbleType(THINK_BUBBLE);
+	Say(STORY_0_TXT,0,MATT_PICTID,"AFTER_MEETING_BRIGGS");
+
+	SceneArgs.ReturnValue = SCENE_WATLING;
+}
+#endif
+
+void tcDoneCallFromPooly(void)
+{
+	ubyte choice;
+
+	knowsSet(Person_Matt_Stuvysunt,Person_Eric_Pooly);
+
+	if (has(Person_Matt_Stuvysunt, Loot_Ring_des_Abtes))
+	{
+		tcSomebodyIsCalling();
+
+		Say(STORY_0_TXT,0,PHONE_PICTID,"A_CALL_FOR_YOU");
+
+		Say(STORY_0_TXT, 0,PHONE_PICTID ,"DEALER_0");
+		choice = Say(STORY_0_TXT, 0, MATT_PICTID, "DEALER_MATT_1");
+
+		if((choice == 0)  || (choice == 1))
+			Say(STORY_0_TXT, 0,PHONE_PICTID ,"DEALER_1");
+		else
+		    Say(STORY_0_TXT, 0,PHONE_PICTID ,"DEALER_2");
+	}
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+}
+
+void tcInitPrison(void)
+{
+	/* es ist wichtig, dass die Location hier gesetzt wird */
+	/* da sonst diverse Szenen in die Gefaengnisszene      */
+	/* hineinplatzen koennen */
+
+	SetLocation(64);    /* auf ins Gefaengnis */
+}
+
+void tcDonePrison(void)
+/*
+* wird schmutzigerweise von tcDoneGludoAsSailor,
+* tcLastBurglary
+* direkt angesprungen
+*/
+{
+	SetDay(719792L);     /* 13.01.1972? */
+
+	sndPlaySound("end.bk", 0);    /* dont change it! (-> story_9) */
+	tcMattGoesTo(7);
+
+	gfxShow (169, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+	Say (STORY_1_TXT,0,OLD_MATT_PICTID,"THE_END_PRISON");
+	StopAnim ();
+
+	tcMattGoesTo (60);
+	inpDelay (190);
+	Say (STORY_1_TXT,0,155,"THE_END_MONASTERY"); /* holy matt */
+
+	StopAnim ();
+	gfxChangeColors (l_wrp, 0, GFX_FADE_OUT, 0);
+
+	SceneArgs.ReturnValue = SCENE_NEW_GAME;
+}
+
+long tcIsDeadlock(void)
+{
+	long deadlock = 0, total = 0;
+	CompleteLoot comp =(CompleteLoot)dbGetObject(CompleteLoot_LastLoot);
+
+	hasAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Car);
+
+	if (LIST_EMPTY(ObjectList))
+	{
+		NODE *n;
+		long money = tcGetPlayerMoney, enough = 0;
+
+		/* jetzt zum Geld noch die vorhandene Beute addieren */
+		RemoveList(tcMakeLootList(Person_Matt_Stuvysunt, Relation_has));
+
+		total = comp->Bild + comp->Gold + comp->Geld + comp->Juwelen +
+		    comp->Statue + comp->Kuriositaet + comp->HistKunst +
+		    comp->GebrauchsArt + comp->Vase + comp->Delikates;
+
+		money += total / 15; /* im schlimmsten Fall bleibt Matt in */
+		/* etwa nur ein F�uenfzehnten           */
+
+		hasAll(Person_Marc_Smith, OLF_NORMAL, Object_Car);
+
+		/* get cheapest car! */
+		for (n = (NODE*) LIST_HEAD(ObjectList); NODE_SUCC(n); n = (NODE *) NODE_SUCC(n))
+		{
+			Car car = (Car)OL_DATA(n);
+
+			if (tcGetCarPrice(car) < money)
+				enough = 1;
+		}
+
+		if (!enough)
+		{
+			Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "DEADLOCK");
+
+			sndPlaySound("end.bk", 0);
+
+			tcMattGoesTo(60);
+			inpDelay(190);
+			Say (STORY_1_TXT,0,155,"THE_END_MONASTERY"); /* holy matt */
+
+			StopAnim ();
+			gfxChangeColors (l_wrp, 0, GFX_FADE_OUT, 0);
+
+			deadlock = 1;
+		}
+	}
+
+	return deadlock;
+}
+
+/***********************************************************************
+ ***
+ *** 1st BURGLARY
+***
+ ***********************************************************************/
+
+
+void tcDone1stBurglary(void)
+{
+	AddTaxiLocation(22); /* highgate */
+	AddTaxiLocation(16); /* anti */
+
+	if (bProfidisk)
+		AddTaxiLocation(75);     /* train */
+
+	hasSet(Person_Marc_Smith, Car_Morris_Minor_1950);
+	hasSet(Person_Marc_Smith, Car_Fiat_Topolino_1942);
+	hasSet(Person_Marc_Smith, Car_Jeep_1945);
+	hasSet(Person_Marc_Smith, Car_Pontiac_Streamliner_1946);
+
+	if (bProfidisk)
+		hasSet(Person_Marc_Smith, Car_Ford_Model_T__1926);
+
+	hasSet(Person_Mary_Bolton, Tool_Dietrich);
+	hasSet(Person_Mary_Bolton, Tool_Bohrmaschine);
+	hasSet(Person_Mary_Bolton, Tool_Strickleiter);
+	hasSet(Person_Mary_Bolton, Tool_Schloszstecher);
+	hasSet(Person_Mary_Bolton, Tool_Winkelschleifer);
+	hasSet(Person_Mary_Bolton, Tool_Schutzanzug);
+
+	livesInSet(London_London_1, Person_Marc_Smith);
+	livesInSet(London_London_1, Person_Robert_Bull);
+	livesInSet(London_London_1, Person_Thomas_Groul);
+	livesInSet(London_London_1, Person_Lucas_Grull);
+	livesInSet(London_London_1, Person_Peter_Brook);
+	livesInSet(London_London_1, Person_Luthmilla_Nervesaw);
+
+	if (bProfidisk)
+	{
+		livesInSet(London_London_1, Person_Tom_Cooler);
+		livesInSet(London_London_1, Person_Tina_Olavson);
+	}
+
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"LOBHUDEL");
+
+	GetScene(SCENE_FAHNDUNG)->Geschehen = 0;     /* damit nicht gleich Burglary 2 geschieht */
+
+	SceneArgs.ReturnValue = GetLocScene(GetLocation)->EventNr;
+}
+
+void tcDoneGludoAsSailor(void)
+{
+	knowsSet(Person_Matt_Stuvysunt,Person_John_Gludo);
+
+	sndPlaySound("gludo.bk", 0);
+
+	Say(STORY_0_TXT,0,(uword)FACE_GLUDO_SAILOR,"SAILOR_GLUDO_0");
+	Say(STORY_0_TXT,0,MATT_PICTID,"SAILOR_MATT_0");
+	Say(STORY_0_TXT,0,(uword)FACE_GLUDO_SAILOR,"SAILOR_GLUDO_1");
+
+	if (Say(STORY_0_TXT, 0, MATT_PICTID, "SAILOR_MATT_1"))
+	{
+		Say(STORY_0_TXT,0,OLD_MATT_PICTID,"SAILOR_OLD_MATT_0");
+
+		sndPlaySound("street1.bk", 0);
+		SceneArgs.ReturnValue = SCENE_HOLLAND_STR;
+	}
+	else
+	    {
+		Say(STORY_0_TXT,0,(uword)FACE_GLUDO_SAILOR,"SAILOR_GLUDO_2");
+		StopAnim ();
+
+		tcDonePrison();
+	}
+}
+
+void tcDoneCallFromBriggs(void)
+{
+	tcAsTimeGoesBy(GetMinute + 130);
+
+	tcSomebodyIsCalling();
+
+	Say(STORY_0_TXT,0,PHONE_PICTID,"A_CALL_FOR_YOU");
+	Say(STORY_0_TXT,0,PHONE_PICTID,"CALL_BRIGGS_0");
+	Say(STORY_0_TXT,0,MATT_PICTID,"CALL_MATT_0");
+	Say(STORY_0_TXT,0,PHONE_PICTID,"CALL_BRIGGS_1");
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+}
+
+/***********************************************************************
+ ***
+ *** 2nd BURGLARY
+***
+ ***********************************************************************/
+
+void tcDone2ndBurglary(void)
+{
+	AddTaxiLocation(14);     /* jewels */
+
+	if (bProfidisk)
+		AddTaxiLocation(72);     /* abbey */
+
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"FAHNDUNG");
+
+	hasSet(Person_Marc_Smith, Car_Pontiac_Streamliner_1944);
+	hasSet(Person_Marc_Smith, Car_Standard_Vanguard_1953);
+
+	if (bProfidisk)
+	{
+		hasSet(Person_Marc_Smith, Car_Rover_75_1950);
+		hasSet(Person_Marc_Smith, Car_Bentley_Continental_Typ_R_1952);
+	}
+
+	hasSet(Person_Mary_Bolton, Tool_Funkgeraet);
+	hasSet(Person_Mary_Bolton, Tool_Glasschneider);
+	hasSet(Person_Mary_Bolton, Tool_Bohrwinde);
+	hasSet(Person_Mary_Bolton, Tool_Elektroset);
+
+	livesInSet(London_London_1, Person_Margrete_Briggs);
+	livesInSet(London_London_1, Person_Paul_O_Conner);
+	livesInSet(London_London_1, Person_Tony_Allen);
+
+
+	GetScene(SCENE_FAHNDUNG)->Geschehen = 0;     /* damit nicht gleich Burglary 2 geschieht */
+
+	SceneArgs.ReturnValue = GetLocScene(GetLocation)->EventNr;
+}
+
+/* wird von DoneHotel aufgerufen */
+void tcCheckForBones(void)
+{
+	Person luthm = (Person)dbGetObject(Person_Luthmilla_Nervesaw);
+	long money;
+
+	if (has(Person_Matt_Stuvysunt, Loot_Gebeine))
+	{
+		if (knows(Person_Matt_Stuvysunt, Person_Luthmilla_Nervesaw))
+		{
+			Player player =(Player)dbGetObject(Player_Player_1);
+
+			tcSomebodyIsComing();
+
+			Say(STORY_0_TXT, 0, luthm->PictID, "KARL_MARX");
+
+			money = 20 * player->MattsPart;
+			if (GamePlayMode & GP_MORE_MONEY) {	// Lucy 2017-11-08 new cheat
+				if (money > 0) money = (money * 3) / 2;
+			}
+			tcAddPlayerMoney(money);
+
+			player->StolenMoney   += 2000;
+			player->MyStolenMoney += money;
+
+			livesInUnSet(London_London_1, Person_Luthmilla_Nervesaw);
+			tcMoveAPerson(Person_Luthmilla_Nervesaw, Location_Nirvana);
+			hasUnSet(Person_Matt_Stuvysunt, Loot_Gebeine);
+		}
+	}
+}
+
+
+/***********************************************************************
+ ***
+ *** 3rd BURGLARY
+***
+ ***********************************************************************/
+
+void tcDone3rdBurglary(void)
+{
+	AddTaxiLocation(35);     /* sotherbys */
+	AddTaxiLocation(33); /* chiswick */
+
+	if (bProfidisk)
+		AddTaxiLocation(74);  /* downing */
+
+	knowsSet(Person_Matt_Stuvysunt,Person_John_Gludo);
+
+	hasSet(Person_Mary_Bolton, Tool_Schneidbrenner);
+	hasSet(Person_Mary_Bolton, Tool_Stethoskop);
+	hasSet(Person_Mary_Bolton, Tool_Stromgenerator);
+	hasSet(Person_Mary_Bolton, Tool_Maske);
+
+	livesInSet(London_London_1, Person_Miguel_Garcia);
+	livesInSet(London_London_1, Person_John_O_Keef);
+	livesInSet(London_London_1, Person_Samuel_Rosenblatt);
+
+	gfxShow (166, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"READ_TIMES_0");
+
+	sndPlaySound("gludo.bk", 0);
+
+	Say(STORY_0_TXT,0,FACE_GLUDO_MAGIC,"READ_TIMES_GLUDO");
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"READ_TIMES_1");
+
+	sndPlaySound("street1.bk", 0);
+
+	gfxShow (150, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+
+	GetScene(SCENE_FAHNDUNG)->Geschehen = 0;     /* damit nicht gleich Burglary 2 geschieht */
+
+	SceneArgs.ReturnValue = GetLocScene(GetLocation)->EventNr;
+}
+
+void tcCheckForDowning(void)
+{
+	if (has(Person_Matt_Stuvysunt, Loot_Dokument))
+	{
+		Building bui = (Building)dbGetObject(Building_Buckingham_Palace);
+
+		hasSet(Person_Matt_Stuvysunt,Building_Buckingham_Palace);
+
+		tcAddBuildExactlyness(bui,255L);
+		tcAddBuildStrike(bui,5L);
+
+		SetBubbleType(THINK_BUBBLE);
+		Say(INVESTIGATIONS_TXT,0,OLD_MATT_PICTID,"BuckinghamPlansFound");
+
+		Present(Building_Buckingham_Palace, "Building", InitBuildingPresent);
+		hasUnSet(Person_Matt_Stuvysunt, Loot_Dokument);
+	}
+}
+
+
+/***********************************************************************
+ ***
+ *** 4th BURGLARY
+***
+ ***********************************************************************/
+
+void tcDone4thBurglary(void)
+{
+	Person Gludo = (Person) dbGetObject(Person_John_Gludo);
+
+	AddTaxiLocation(31); /* osterly */
+	AddTaxiLocation(29); /* ham */
+
+	if (bProfidisk)
+		AddTaxiLocation(70);  /* madame */
+
+	tcSomebodyIsComing();
+
+	sndPlaySound("gludo.bk", 0);
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"ARREST_OLD_MATT_0");
+	Say(STORY_0_TXT,0,Gludo->PictID,"ARREST_GLUDO_0");
+	Say(STORY_0_TXT,0,MATT_PICTID,"ARREST_MATT_0");
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"ARREST_OLD_MATT_1");
+	Say(STORY_0_TXT,0,Gludo->PictID,"ARREST_GLUDO_1");
+
+	hasSet(Person_Marc_Smith, Car_Standard_Vanguard_1950);
+	hasSet(Person_Marc_Smith, Car_Cadillac_Club_1952);
+
+	if (bProfidisk)
+		hasSet(Person_Marc_Smith, Car_Fiat_634_N_1943);
+
+	hasSet(Person_Mary_Bolton, Tool_Dynamit);
+	hasSet(Person_Mary_Bolton, Tool_Kernbohrer);
+	hasSet(Person_Mary_Bolton, Tool_Sauerstofflanze);
+	hasSet(Person_Mary_Bolton, Tool_Chloroform);
+
+	livesInSet(London_London_1, Person_Garry_Stevenson);
+	livesInSet(London_London_1, Person_Jiri_Poulin);
+	livesInSet(London_London_1, Person_Prof_Emil_Schmitt);
+
+	if (bProfidisk)
+	{
+		livesInSet(London_London_1, Person_Melanie_Morgan);
+		livesInSet(London_London_1, Person_Sid_Palmer);
+	}
+
+	gfxChangeColors(l_wrp, 0, GFX_FADE_OUT, 0);
+
+	GetScene(SCENE_FAHNDUNG)->Geschehen = 0;     /* damit nicht gleich Burglary 2 geschieht */
+	SceneArgs.ReturnValue = GetLocScene(7)->EventNr;  /* Polizei */
+}
+
+void tcDoneMattIsArrested(void)
+{
+	StopAnim();
+
+	gfxShow (169, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1); /* prison */
+
+	AddVTime(1439);
+
+	Say (STORY_0_TXT, 0, OLD_MATT_PICTID, "IN_PRISON_OLD_0");
+	gfxShow (161, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);     /* polizei */
+
+	SceneArgs.ReturnValue = SCENE_POLICE;
+}
+
+/***********************************************************************
+ ***
+ *** 5th BURGLARY
+***
+ ***********************************************************************/
+
+void tcDone5thBurglary(void)
+{
+	AddTaxiLocation(27); /* kenw */
+	AddTaxiLocation(39); /* natural museum */
+
+	if (bProfidisk)
+		AddTaxiLocation(77);  /* tate */
+
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"5TH_OLD_0");
+
+	hasSet(Person_Marc_Smith, Car_Standard_Vanguard_1951);
+
+	if (bProfidisk)
+	{
+		hasSet(Person_Marc_Smith, Car_Rover_75_1952);
+		hasSet(Person_Marc_Smith, Car_Bentley_Continental_Typ_R_1953);
+	}
+
+	hasSet(Person_Mary_Bolton, Tool_Schuhe);
+	hasSet(Person_Mary_Bolton, Tool_Elektrohammer);
+
+	livesInSet(London_London_1, Person_Thomas_Smith);
+	livesInSet(London_London_1, Person_Albert_Liet);
+	livesInSet(London_London_1, Person_Frank_Meier);
+	livesInSet(London_London_1, Person_Mike_Kahn);
+	livesInSet(London_London_1, Person_Mark_Hart);
+	livesInSet(London_London_1, Person_Frank_De_Silva);
+	livesInSet(London_London_1, Person_Neil_Grey);
+	livesInSet(London_London_1, Person_Serge_Fontane);
+	livesInSet(London_London_1, Person_Mike_Seeger);
+	livesInSet(London_London_1, Person_Mathew_Black);
+
+	if (bProfidisk)
+	{
+		livesInSet(London_London_1, Person_Prof_Marcus_Green);
+		livesInSet(London_London_1, Person_Pere_Ubu);
+	}
+
+	GetScene(SCENE_FAHNDUNG)->Geschehen = 0;     /* damit nicht gleich Burglary 2 geschieht */
+	SceneArgs.ReturnValue = GetLocScene(GetLocation)->EventNr;
+}
+
+void tcDoneDealerIsAfraid(void)
+{
+	ulong  persID;
+	Person pers;
+
+	switch(GetLocation)
+	{
+	case 52:
+		persID = Person_Helen_Parker;
+		SceneArgs.ReturnValue = SCENE_WATLING;
+		break;
+	case 53:
+		persID = Person_Frank_Maloya;
+		SceneArgs.ReturnValue = SCENE_HOLLAND_STR;
+		break;
+	case 54:
+		persID = Person_Eric_Pooly;
+		SceneArgs.ReturnValue = SCENE_HOLLAND_STR;
+		break;
+	}
+
+	knowsSet(Person_Matt_Stuvysunt,persID);
+
+	pers =  (Person) dbGetObject(persID);
+	Say(STORY_0_TXT,0,pers->PictID,"DEALER_IS_AFRAID");
+
+	gfxChangeColors(l_wrp,5L,GFX_FADE_OUT,0L);
+}
+
+void tcDoneRaidInWalrus(void)
+{
+	Person      Red  = (Person)      dbGetObject(Person_Red_Stanson);
+	Environment Env  = (Environment) dbGetObject(Environment_TheClou);
+
+	knowsSet(Person_Matt_Stuvysunt,Person_Red_Stanson);
+	sndPlaySound("gludo.bk", 0);
+
+	Say(STORY_0_TXT,0,Red->PictID,"RAID_POLICE_0");
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"RAID_OLD_MATT_0");
+
+	Say(STORY_0_TXT,0,MATT_PICTID,"RAID_MATT_0");
+	Say(STORY_0_TXT,0,Red->PictID,"RAID_POLICE_1");
+
+	if(Env->MattHasIdentityCard)
+	{
+		Say(STORY_0_TXT,0,MATT_PICTID,"RAID_MATT_1");
+		Say(STORY_0_TXT,0,OLD_MATT_PICTID,"RAID_OLD_MATT_1");
+
+		SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+	}
+	else
+	    {
+		Say(STORY_0_TXT,0,MATT_PICTID,"RAID_MATT_2");
+		Say(STORY_0_TXT,0,OLD_MATT_PICTID,"RAID_OLD_MATT_2");
+
+		SceneArgs.ReturnValue = SCENE_POLICE;
+	}
+
+	StopAnim();
+	gfxChangeColors(l_wrp, 0, GFX_FADE_OUT, 0);
+}
+
+void tcDoneDartJager(void)
+{
+	ubyte choice;
+	Person Grull = (Person) dbGetObject(Person_Lucas_Grull);
+	Environment Env  = (Environment) dbGetObject(Environment_TheClou);
+
+	if (!Env->MattHasIdentityCard)
+	{
+		StopAnim ();
+
+		gfxShow (169, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);  /* Knast */
+
+		knowsSet(Person_Matt_Stuvysunt,Person_Lucas_Grull);
+
+		Say(STORY_0_TXT,0,Grull->PictID,"DART_GRULL_0");
+		choice =  Say(STORY_0_TXT,0,MATT_PICTID,"DART_MATT_1");
+
+		if(choice==0)
+		{
+			Say(STORY_0_TXT,0,Grull->PictID,"DART_GRULL_1");
+
+			sndPlayFX("darth.voc");
+
+			Say(STORY_0_TXT,0,OLD_MATT_PICTID,"DART_JAEGER_0");
+
+			gfxChangeColors(l_wrp, 0, GFX_FADE_OUT, 0);
+			gfxShow(221, GFX_NO_REFRESH|GFX_ONE_STEP|GFX_BLEND_UP, 0, -1, -1);
+
+			sndPlayFX("darth.voc");
+
+			Say(STORY_0_TXT,0,OLD_MATT_PICTID,"DART_JAEGER_1");
+
+			sndPlaySound("end.bk", 0);
+			tcMattGoesTo(60);
+			Say(STORY_0_TXT,0,155,"THE_END_MONASTERY");  /* pict = holy matt */
+
+			StopAnim();
+			gfxChangeColors(l_wrp,3L,GFX_FADE_OUT,0L);
+
+			SceneArgs.ReturnValue = SCENE_NEW_GAME;
+		}
+		else
+		    {
+			Say(STORY_0_TXT,0,Grull->PictID,"DART_GRULL_2");
+			Say(STORY_0_TXT,0,OLD_MATT_PICTID,"DART_OLD_MATT_0");
+
+			gfxShow (161, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);  /* Polizei - refresh */
+
+			SceneArgs.ReturnValue = SCENE_POLICE;
+		}
+	}
+	else
+	    SceneArgs.ReturnValue = SCENE_POLICE;
+}
+
+void tcDoneGludoBurnsOffice(void)
+{
+	Person Gludo = (Person)dbGetObject(Person_John_Gludo);
+
+	StopAnim();
+
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"5TH_OLD_1");
+	Say(STORY_0_TXT,0,MATT_PICTID,"5TH_MATT_0");
+	Say(STORY_0_TXT,0,Gludo->PictID,"5TH_GLUDO_0");
+
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"5TH_OLD_2");
+	Say(STORY_0_TXT,0,Gludo->PictID,"5TH_GLUDO_1");
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"5TH_OLD_3");
+
+	Say(STORY_0_TXT,0,Gludo->PictID,"5TH_GLUDO_2");
+
+	gfxShow (162, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);
+	sndPlayFX("brille.voc");
+
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"5TH_OLD_4");
+	Say(STORY_0_TXT,0,Gludo->PictID,"5TH_GLUDO_3");
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"5TH_OLD_5");
+
+	Say(STORY_0_TXT,0,MATT_PICTID,"5TH_MATT_1");
+	Say(STORY_0_TXT,0,Gludo->PictID,"5TH_GLUDO_4");
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"5TH_OLD_6");
+
+	sndPlayFX("streich.voc");
+
+	gfxShow (153, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+
+	Say(STORY_0_TXT,0,Gludo->PictID,"5TH_GLUDO_5");
+	Say(STORY_0_TXT,0,OLD_MATT_PICTID,"5TH_OLD_7");
+
+	gfxChangeColors (l_wrp, 5, GFX_FADE_OUT, 0);
+
+	SceneArgs.ReturnValue = SCENE_WATLING;
+}
+
+void tcDoneBeautifullMorning(void)
+{
+	tcAsTimeGoesBy(GetMinute + 187);
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "MORNING_MATT_0");
+
+	PlayAnim("Sleep", 30000, GFX_DONT_SHOW_FIRST_PIC);
+	tcAsTimeGoesBy(546);
+	StopAnim();
+
+	gfxShow (173, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);  /* Hotel */
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "MORNING_MATT_1");
+
+	AddTaxiLocation(61);
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+}
+
+void tcDoneVisitingSabien(void)
+{
+	Person Sabien = (Person)dbGetObject(Person_Sabien_Pardo);
+
+	knowsSet(Person_Matt_Stuvysunt, Person_Sabien_Pardo);
+
+	Say(STORY_1_TXT, 0, Sabien->PictID, "GROVE_SABIEN_0");
+	Say(STORY_1_TXT, 0, MATT_PICTID, "GROVE_MATT_0");
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "GROVE_OLD_MATT_0");
+	Say(STORY_1_TXT, 0, Sabien->PictID, "GROVE_SABIEN_1");
+	Say(STORY_1_TXT, 0, MATT_PICTID, "GROVE_MATT_1");
+	Say(STORY_1_TXT, 0, Sabien->PictID, "GROVE_SABIEN_2");
+	Say(STORY_1_TXT, 0, MATT_PICTID, "GROVE_MATT_2");
+	Say(STORY_1_TXT, 0, Sabien->PictID, "GROVE_SABIEN_3");
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "GROVE_OLD_MATT_1");
+
+	gfxChangeColors (l_wrp, 5, GFX_FADE_OUT, 0);
+	SceneArgs.ReturnValue = SCENE_LISSON_GROVE;
+}
+
+void tcDoneADream(void)
+{
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST1_OLD_0");
+
+	PlayAnim("Sleep", 30000, GFX_DONT_SHOW_FIRST_PIC);
+	tcAsTimeGoesBy(517);
+	StopAnim();
+
+	gfxShow (173, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);  /* Hotel */
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST1_OLD_1");
+
+	tcSomebodyIsCalling();
+
+	Say(STORY_1_TXT, 0, PHONE_PICTID, "ST1_BRIGGS_0");
+	Say(STORY_1_TXT, 0, MATT_PICTID, "ST1_MATT_0");
+	Say(STORY_1_TXT, 0, PHONE_PICTID, "ST1_BRIGGS_1");
+	Say(STORY_1_TXT, 0, MATT_PICTID, "ST1_MATT_1");
+	Say(STORY_1_TXT, 0, PHONE_PICTID, "ST1_BRIGGS_2");
+	Say(STORY_1_TXT, 0, MATT_PICTID, "ST1_MATT_2");
+	Say(STORY_1_TXT, 0, PHONE_PICTID, "ST1_BRIGGS_3");
+	Say(STORY_1_TXT, 0, MATT_PICTID, "ST1_MATT_3");
+	Say(STORY_1_TXT, 0, PHONE_PICTID, "ST1_BRIGGS_4");
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+}
+
+void tcMeetingRosenblatt(void)
+{
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_2_OLD_0");
+
+	SceneArgs.ReturnValue = SCENE_STATION;
+}
+
+void tcBriggsAngry(void)
+{
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_2_NOT_OLD_0");
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_REC;
+}
+
+void tcSabienInWalrus(void)
+{
+	Person Sabien = (Person)dbGetObject(Person_Sabien_Pardo);
+
+	sndPlaySound("sabien.bk", 0);
+	StopAnim();
+
+	Say (STORY_1_TXT, 0, Sabien->PictID, "ST_3_SABIEN_0");
+	Say (STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_3_OLD_0");
+	gfxShow (157, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);  /* Kiss */
+
+	inpSetWaitTicks(200);
+	inpWaitFor(INP_LBUTTONP|INP_TIME);
+	inpSetWaitTicks(0);
+
+	gfxShow (141, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);  /* Walrus */
+
+	SceneArgs.ReturnValue = SCENE_WALRUS;
+}
+
+void tcWalrusTombola(void)
+{
+	Environment Env = (Environment)dbGetObject(Environment_TheClou);
+
+	Env->Present = 1;
+	sndPlaySound("sabien.bk", 0);
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_5_OLD_0");
+
+	SceneArgs.ReturnValue = SCENE_WALRUS;
+}
+
+void tcRainyEvening(void)
+{
+	Person Briggs = (Person)dbGetObject(Person_Herbert_Briggs);
+
+	tcAsTimeGoesBy(1220);
+
+	Say(STORY_1_TXT, 0, MATT_PICTID, "ST_8_MATT_0");
+	Say(STORY_1_TXT, 0, LETTER_PICTID, "ST_8_SABIEN_0");
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_8_OLD_0");
+
+	PlayAnim ("Sleep", 30000, GFX_DONT_SHOW_FIRST_PIC);
+	tcAsTimeGoesBy(424);
+	StopAnim ();
+
+	gfxShow (173, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);  /* Hotel */
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_9_OLD_0");
+	Say(STORY_1_TXT, 0, Briggs->PictID, "ST_9_BRIGGS_0");
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_9_OLD_1");
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+}
+
+void tcDoneMissedDate(void)
+{
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "VERPASST_BRIEF");
+	Say(STORY_1_TXT, 0, LETTER_PICTID, "DATE_VERPASST");
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+}
+
+/***********************************************************************
+ ***
+ *** 6th BURGLARY
+***
+ ***********************************************************************/
+
+void tcDone6thBurglary(void)
+{
+	AddTaxiLocation(43); /* vict & alb */
+	AddTaxiLocation(37); /* brit */
+
+	if (bProfidisk)
+		AddTaxiLocation(79);  /* buckingham */
+
+	hasSet(Person_Marc_Smith, Car_Pontiac_Streamliner_1949);
+	hasSet(Person_Marc_Smith, Car_Triumph_Roadstar_1949);
+
+	livesInSet(London_London_1, Person_Kevin_Smith);
+	livesInSet(London_London_1, Person_Al_Mel);
+
+	if (bProfidisk)
+	{
+		livesInSet(London_London_1, Person_Phil_Ciggy);
+		livesInSet(London_London_1, Person_Rod_Masterson);
+	}
+
+	GetScene(SCENE_FAHNDUNG)->Geschehen = 0;     /* damit nicht gleich Burglary 2 geschieht */
+	SceneArgs.ReturnValue = GetLocScene(GetLocation)->EventNr;
+}
+
+void tcPoliceInfoTower(void)
+{
+	Building tower = (Building)dbGetObject(Building_Tower_of_London);
+	Environment Env = (Environment)dbGetObject(Environment_TheClou);
+
+	if (Env->Present)
+	{
+		Say(STORY_1_TXT, 0, 223, "ST_7_OLD_0"); /* Matt mit Bart */
+		tower->Exactlyness = 175;
+
+		Present(Building_Tower_of_London,"Building",InitBuildingPresent);
+
+		SceneArgs.ReturnValue = SCENE_WATLING;
+
+		StopAnim();
+		gfxChangeColors (l_wrp, 3, GFX_FADE_OUT, 0);
+	}
+	else
+	    SceneArgs.ReturnValue = SCENE_POLICE;
+}
+
+void tcPresentInHotel(void)
+{
+	Person Ben = (Person)dbGetObject(Person_Ben_Riggley);
+	Environment Env = (Environment)dbGetObject(Environment_TheClou);
+
+	Env->Present = 1;
+
+	Say(STORY_1_TXT, 0, Ben->PictID, "ST_6_BEN_0");
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_6_OLD_0");
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_REC;
+}
+
+void tcSabienDinner(void)
+{
+	tcAsTimeGoesBy(1210);
+	sndPlaySound("sabien.bk", 0);
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_4_OLD_0");
+	tcMattGoesTo(62);
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_4_OLD_1");
+	tcAsTimeGoesBy(GetMinute + 160);
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_4_OLD_2");
+
+	gfxChangeColors (l_wrp, 3, GFX_FADE_OUT, 0);
+	SceneArgs.ReturnValue = SCENE_WALRUS;
+}
+
+
+/***********************************************************************
+ ***
+ *** 7th BURGLARY
+***
+ ***********************************************************************/
+
+
+void tcDone7thBurglary(void)
+{
+	AddTaxiLocation(41);     /* national */
+	AddTaxiLocation(45);     /* bank */
+
+	if (bProfidisk)
+		AddTaxiLocation(81);     /* bulstrode  */
+
+	/* Jaguar kommt hier, da: 1. man barucht ihn f�r Villa, */
+	/* 2. Jaguar wird in Fahndung nie erwischt (sonst k�nnte er nicht explodieren) */
+	/* 3. man soll Jaguar nicht zu lange haben k�nnen (da man nie erwischt wird  */
+
+	hasSet(Person_Marc_Smith, Car_Jaguar_XK_1950);
+
+	livesInSet(London_London_1, Person_Mohammed_Abdula);
+
+	GetScene(SCENE_FAHNDUNG)->Geschehen = 0;     /* damit nicht gleich Burglary 2 geschieht */
+	SceneArgs.ReturnValue = GetLocScene(GetLocation)->EventNr;
+}
+
+void tcDoneBirthday(void)
+{
+	LIST *persons;
+	struct ObjectNode *n;
+
+	StopAnim ();
+	gfxShow (172, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);
+
+	sndPlayFX("birthd2.voc");	// Klatschen
+
+	knowsAll(Person_Matt_Stuvysunt, OLF_PRIVATE_LIST, Object_Person);
+	persons = ObjectListPrivate;
+
+	for (n = (struct ObjectNode *)LIST_HEAD(persons); NODE_SUCC(n); n = (struct ObjectNode *)NODE_SUCC(n))
+	{
+		Person p = (Person)dbGetObject(OL_NR(n));
+
+		switch(OL_NR(n))
+		{
+		case Person_Sabien_Pardo:
+		case Person_Herbert_Briggs:
+		case Person_John_Gludo:
+		case Person_Miles_Chickenwing:
+			//case Person_Old_Matt:
+		case Person_Red_Stanson:
+			break;
+		default:
+			if (livesIn(London_London_1, OL_NR(n)) && (CalcRandomNr(0, 10) < 7))
+			{
+				tcMoveAPerson(OL_NR(n), Location_Walrus);
+
+				Say(STORY_1_TXT,0,p->PictID,"ST_11_ALL_0");
+			}
+			break;
+		}
+	}
+
+	sndPlayFX("birthd1.voc"); // Sektkorken
+
+	RemoveList(persons);
+
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_11_OLD_0");
+	gfxShow (141, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);
+
+	SceneArgs.ReturnValue = SCENE_WALRUS;
+}
+
+void tcWalkWithSabien(void)
+{
+	Environment Env = (Environment)dbGetObject(Environment_TheClou);
+
+	sndPlaySound("sabien.bk", 0);
+
+	gfxShow(165, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_13_OLD_0");
+
+	gfxShow(158, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);  /* Sabien outside! */
+
+	Env->MattIsInLove     = 1;
+
+	SceneArgs.ReturnValue = SCENE_LISSON_GROVE;
+}
+
+void tcDoneSabienCall(void)
+{
+	tcSomebodyIsCalling();
+
+	Say(STORY_0_TXT,0 , PHONE_PICTID, "A_CALL_FOR_YOU");
+	Say(STORY_1_TXT, 0, PHONE_PICTID, "ST_10_SABIEN");
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+}
+
+void tcDoneMeetingAgain(void)
+{
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_10_OLD_0");
+
+	gfxChangeColors(l_wrp, 3, GFX_FADE_OUT, 0);
+
+	SceneArgs.ReturnValue = SCENE_LISSON_GROVE;
+}
+
+/***********************************************************************
+ ***
+ *** 8th BURGLARY
+***
+ ***********************************************************************/
+
+
+void tcDone8thBurglary(void)
+{
+	AddTaxiLocation(25); /* villa */
+
+	GetScene(SCENE_FAHNDUNG)->Geschehen = 0;     /* damit nicht gleich Burglary 2 geschieht */
+	SceneArgs.ReturnValue = GetLocScene(GetLocation)->EventNr;
+}
+
+void tcDoneAgent(void)
+{
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_14_OLD_0");
+
+	tcSomebodyIsCalling();
+
+	Say(STORY_1_TXT,0,PHONE_PICTID,"ST_14_AGENT_0");
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_14_OLD_1");
+
+	if (GamePlayMode & GP_MORE_MONEY) {	// Lucy 2017-11-08 new cheat
+		tcAddPlayerMoney(22500);
+	} else {
+		tcAddPlayerMoney(15000);
+	}
+
+	SceneArgs.ReturnValue = SCENE_HOTEL_ROOM;
+}
+
+/***********************************************************************
+ ***
+ *** 9th BURGLARY
+***
+ ***********************************************************************/
+
+void tcDone9thBurglary(void)
+{
+	Environment Env = (Environment)dbGetObject(Environment_TheClou);
+
+	SetMinute(540);
+
+	if (has(Person_Matt_Stuvysunt, Loot_Koffer))
+	{
+		Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_15_OLD_0");
+		gfxShow (174, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);  /* cracks */
+	}
+	else
+	{
+		Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_15_OLD_NOT_0");
+		SetBubbleType(THINK_BUBBLE);
+		Say(STORY_1_TXT,0,MATT_PICTID,"ST_15_MATT_NOT_0");
+
+		Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_15_OLD_NOT_1");
+		gfxShow (174, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);    /* cracks */
+	}
+
+	inpDelay(150);
+	gfxShow (173, GFX_ONE_STEP|GFX_NO_REFRESH, 0, -1, -1);  /* hotel */
+
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_15_OLD_1");
+
+	tcSomebodyIsCalling();
+
+	Say(STORY_1_TXT,0,PHONE_PICTID,"ST_15_ALLEN_0");
+
+	/* keine Polizisten sind mehr unterwegs */
+	livesInUnSet(London_London_1, Person_John_Gludo);
+	livesInUnSet(London_London_1, Person_Miles_Chickenwing);
+	livesInUnSet(London_London_1, Person_Red_Stanson);
+
+	tcMoveAPerson(Person_John_Gludo, Location_Nirvana);
+	tcMoveAPerson(Person_Miles_Chickenwing, Location_Nirvana);
+	tcMoveAPerson(Person_Red_Stanson, Location_Nirvana);
+
+	/* nur mehr cars&vans bzw. Lisson Grove zu erreichen */
+	RemRelation(Relation_taxi);
+	AddRelation(Relation_taxi);
+
+	AddTaxiLocation(1);      /* cars */
+
+	if (Env->MattIsInLove)
+		AddTaxiLocation(61);     /* lisson */
+
+	/* nur mehr M�glichkeiten: gehen */
+	SetEnabledChoices(GO|WAIT);
+
+	GetScene(SCENE_FAHNDUNG)->Geschehen = 0;     /* damit nicht gleich Burglary 2 geschieht */
+	SceneArgs.ReturnValue = GetLocScene(GetLocation)->EventNr;
+}
+
+void tcDoneGoAndFetchJaguar(void)
+{
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_16_OLD_0");
+
+	SceneArgs.ReturnValue = SCENE_HOLLAND_STR;
+}
+
+void tcDoneThinkOfSabien(void)
+{
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_16_OLD_1");
+
+	SceneArgs.ReturnValue = SCENE_HOLLAND_STR;
+}
+
+void tcDoneTerror(void)
+{
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_17_OLD_0");
+
+	gfxPrepareColl (211);
+	gfxPrepareColl (210);
+	gfxPrepareColl (209);
+
+	gfxShow (176, GFX_NO_REFRESH|GFX_ONE_STEP, 0, -1, -1);
+	inpDelay (150);
+
+	sndPlayFX("explosio.voc");
+
+	PlayAnim("Explo1", 1, GFX_DONT_SHOW_FIRST_PIC);
+	inpDelay (200);
+	PlayAnim("Explo2",50, GFX_DONT_SHOW_FIRST_PIC);
+	inpDelay (260);
+
+	StopAnim ();
+
+	hasUnSet(Person_Matt_Stuvysunt, Car_Jaguar_XK_1950);
+
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_17_OLD_1");
+	gfxChangeColors (l_wrp, 0, GFX_FADE_OUT, 0);
+
+	SceneArgs.ReturnValue = SCENE_CARS_VANS;
+}
+
+void tcDoneConfessingSabien(void)
+{
+	Person Sabien = (Person)dbGetObject(Person_Sabien_Pardo);
+	Environment Env = (Environment)dbGetObject(Environment_TheClou);
+
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_18_OLD_0");
+	Say(STORY_1_TXT,0,Sabien->PictID,"ST_18_SABIEN_0");
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_18_OLD_1");
+	Say(STORY_1_TXT,0,Sabien->PictID,"ST_18_SABIEN_1");
+
+	Env->WithOrWithoutYou = Say(STORY_1_TXT,0,MATT_PICTID,"ST_18_MATT_0");
+
+	StopAnim();	// mod 06-06-94 hg
+
+	if (Env->WithOrWithoutYou)    /* bleibt bei Sabien! */
+	{
+		gfxChangeColors(l_wrp, 3, GFX_FADE_OUT, 0);
+		ShowMenuBackground();
+
+		gfxShow (163, GFX_NO_REFRESH|GFX_ONE_STEP|GFX_BLEND_UP, 0, -1, -1); /* south 1*/
+		gfxShow (152, GFX_NO_REFRESH|GFX_OVERLAY, 3, -1, -1);       /* family */
+
+		sndPlaySound("sabien.bk", 0);
+
+		Say (STORY_1_TXT,0,OLD_MATT_PICTID,"ST_19_OLD_0");
+
+		/* hier eventuell gl�ckliche Anim zeigen! */
+		gfxShow (164, GFX_NO_REFRESH|GFX_OVERLAY, 0, -1, -1);   /*  The End */
+
+		inpWaitFor (INP_LBUTTONP);
+		gfxChangeColors (l_wrp, 3, GFX_FADE_OUT, 0);
+
+		SceneArgs.ReturnValue = SCENE_NEW_GAME;
+	}
+	else           /* bleibt nicht bei Sabien! */
+	{
+		AddVTime(2713);     /* hier nicht ausblenden? */
+
+		gfxChangeColors(l_wrp, 3, GFX_FADE_OUT, 0);
+
+		SceneArgs.ReturnValue = SCENE_SOUTHHAMPTON;
+
+		SetLocation(-1);    /* damit sicher eingeblendet wird! */
+	}
+}
+
+void tcDoneSouthhamptonWithoutSabien(void)
+{
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_20_OLD_0");
+
+	SceneArgs.ReturnValue = SCENE_SOUTHHAMPTON;
+}
+
+void tcDoneSouthhamptonSabienUnknown(void)
+{
+	Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_20W_OLD_0");
+
+	StopAnim();
+	gfxChangeColors(l_wrp, 0, GFX_FADE_OUT, 0);
+
+	SceneArgs.ReturnValue = SCENE_SOUTHHAMPTON;
+}
+
+static void tcDoneFirstTimeLonelyInSouth(void)
+{
+	LIST *menu = txtGoKey (MENU_TXT, "SouthhamptonMenu");
+	ulong startTime = 0, actionTime;
+	ubyte ende = 0, activ = 1;
+	Environment Env = (Environment)dbGetObject(Environment_TheClou);
+	Person    Herb = (Person)dbGetObject(Person_Herbert_Briggs);
+
+	tcAsDaysGoBy(713518L,30);
+	startTime = GetDay * 1440 + GetMinute;
+
+	while(!ende)
+	{
+		inpTurnFunctionKey(0);
+		inpTurnESC(0);
+		activ = Menu(menu, 46, activ, NULL,0L);
+		inpTurnESC(1);
+		inpTurnFunctionKey(1);
+
+		actionTime = CalcRandomNr(180, 300);    /* 2 bis 5 Stunden */
+
+		switch(activ)
+		{
+		case 1:
+			tcAsTimeGoesBy(GetMinute + actionTime);
+			break;   /* spazieren */
+		case 2:
+			tcAsTimeGoesBy(GetMinute + actionTime);
+			break;   /* warten  */
+		case 3:
+			tcAsTimeGoesBy(GetMinute + actionTime);
+			break;   /* fischen */
+		case 5:
+			Information();
+			ShowTime(0);
+			break;
+		default:
+			break;
+		}
+
+		if (((GetDay * 1440 + GetMinute) > (startTime + 420)) && (!(Env->SouthhamptonHappened & 1)))    /* nach 7 Stunden */
+		{
+			Env->SouthhamptonHappened |= 1;
+
+			Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_21_OLD"); /* Kummer */
+		}
+
+		if(((GetDay * 1440 + GetMinute) > (startTime + 1020)) && (!(Env->SouthhamptonHappened & 2))) /* nach 17 Stunden */
+		{
+			Env->SouthhamptonHappened |= 2;
+
+			SetBubbleType(THINK_BUBBLE);
+
+			if (Env->MattIsInLove)
+				Say(STORY_1_TXT,0,MATT_PICTID,"ST_22_MATT"); /* Neugier */
+			else
+			    Say(STORY_1_TXT,0,MATT_PICTID,"ST_22O_MATT");
+		}
+
+		if(((GetDay * 1440 + GetMinute) > (startTime + 1500)) && (!(Env->SouthhamptonHappened & 4))) /* nach 25 Stunden */
+		{
+			Env->SouthhamptonHappened |= 4;
+
+			if (Env->MattIsInLove)
+				Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_23_MATT"); /* Neugier */
+			else
+			    Say(STORY_1_TXT,0,OLD_MATT_PICTID,"ST_23O_MATT");
+		}
+
+		if(((GetDay * 1440 + GetMinute) > (startTime + 2100)) && (!(Env->SouthhamptonHappened & 8)))
+		{
+			Env->SouthhamptonHappened |= 8;
+
+			Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_24_OLD_0");  /* The Return */
+			Say(STORY_1_TXT, 0, Herb->PictID   , "ST_24_BRIGGS_0");
+			Say(STORY_1_TXT, 0, MATT_PICTID    , "ST_24_MATT_0");
+			Say(STORY_1_TXT, 0, Herb->PictID   , "ST_24_BRIGGS_1");
+			Say(STORY_1_TXT, 0, MATT_PICTID    , "ST_24_MATT_1");
+			Say(STORY_1_TXT, 0, Herb->PictID   , "ST_24_BRIGGS_2");
+
+			if (Env->MattIsInLove)
+			{
+				Say(STORY_1_TXT, 0, MATT_PICTID    , "ST_24_MATT_2");
+				Say(STORY_1_TXT, 0, Herb->PictID   , "ST_24_BRIGGS_3");
+			}
+
+			Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_24_OLD_1");
+			Say(STORY_1_TXT, 0, MATT_PICTID    , "ST_24_MATT_3");
+			Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_24_OLD_2");
+
+			if (Env->MattIsInLove)
+				Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_24_OLD_3");
+			else
+			    Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_24O_OLD_3");
+
+			hasSet(Person_Matt_Stuvysunt, Building_Tower_of_London);
+
+			ende = 1;
+		}
+
+		ShowTime(0);
+	}
+
+	RemoveList(menu);
+}
+
+void tcDoneSouthhampton(void)
+{
+	LIST *menu = txtGoKey (MENU_TXT, "SouthhamptonMenu");
+	ubyte activ = 1;    /* !! */
+	ulong actionTime;
+	Environment Env = (Environment)dbGetObject(Environment_TheClou);
+
+	SceneArgs.Ueberschrieben = 1;
+	SceneArgs.ReturnValue    = 0; /* MU� SEIN! */
+
+	SetEnabledChoices(GP_ALL_CHOICES_ENABLED);
+
+	AddVTime(CalcRandomNr(560, 830));
+	ShowTime(0);
+
+	if (Env->FirstTimeInSouth)
+	{
+		Env->FirstTimeInSouth = 0;
+		tcDoneFirstTimeLonelyInSouth();
+		tcInitTowerBurglary();             /* wird absichtlich X mal aufgerufen - siehe weiter unten! */
+	}
+
+	/* mit Gehen oder Planen kommt man aus dem Men� raus */
+	while((activ != 0) && (SceneArgs.ReturnValue==0))
+	{
+		inpTurnESC(0);
+		inpTurnFunctionKey(1);
+		activ = Menu(menu, 127, activ, NULL, 0L);
+		inpTurnFunctionKey(0);
+		inpTurnESC(1);
+
+		if (activ == (ubyte) -1)
+		{
+			ShowTheClouRequester(No_Error);
+			SceneArgs.ReturnValue = ((Player)dbGetObject(Player_Player_1))->CurrScene;
+
+			activ = 1;     /* nicht 0! */
+		}
+		else
+		{
+			actionTime = CalcRandomNr(180, 300);    /* 2 bis 5 Stunden */
+
+			switch(activ)
+			{
+			case 0:
+				break;
+
+			case 1:
+				tcAsTimeGoesBy(GetMinute + actionTime);
+				break;   /* spazieren */
+			case 2:
+				tcAsTimeGoesBy(GetMinute + actionTime);
+				break;   /* warten  */
+			case 3:
+				tcAsTimeGoesBy(GetMinute + actionTime);
+				break;   /* fischen */
+			case 4:
+				sndPlaySound("hotel.bk", 0);
+				tcInitTowerBurglary();   /* just to be sure */
+				plPlaner(Building_Tower_of_London);
+				RefreshCurrScene();
+				break;
+			case 5:
+				Information();
+				ShowTime(0);
+				inpTurnFunctionKey(1);
+				break;
+			case 6:
+				if (tcDoTowerBurglary())
+					SceneArgs.ReturnValue = SCENE_KASERNE_OUTSIDE;
+				else
+				    RefreshCurrScene();
+				break;
+				/* Vorsicht bei Erweiterung -> Speichern weiter oben */
+			default:
+				break;
+			}
+
+			ShowTime(0);
+		}
+	}
+
+	if (!activ)
+	{
+		AddVTime(CalcRandomNr(560, 830));
+		SceneArgs.ReturnValue = SCENE_TOWER_OUT;
+	}
+
+	StopAnim();
+	gfxChangeColors(l_wrp, 3, GFX_FADE_OUT, 0);
+
+	RemoveList(menu);
+}
+
+static void tcInitTowerBurglary(void)
+{
+	NODE *node;
+	Car car = (Car)dbGetObject(Car_Cadillac_Club_1952);
+	Player player = (Player)dbGetObject(Player_Player_1);
+
+	/* alle Personen entfernen! */
+	player->MattsPart = 25;
+
+	joined_byAll(Person_Matt_Stuvysunt, OLF_NORMAL, Object_Person);
+
+	for (node = (NODE*) LIST_HEAD(ObjectList); NODE_SUCC(node); node = (NODE*) NODE_SUCC(node))
+		joined_byUnSet(Person_Matt_Stuvysunt, OL_NR(node));
+
+	/* und Personen, Abilities neu setzen! */
+	joined_bySet(Person_Matt_Stuvysunt, Person_Matt_Stuvysunt);
+	joined_bySet(Person_Matt_Stuvysunt, Person_Herbert_Briggs);
+	joined_bySet(Person_Matt_Stuvysunt, Person_Marc_Smith);
+	joined_bySet(Person_Matt_Stuvysunt, Person_Mohammed_Abdula);
+
+	joinSet(Person_Matt_Stuvysunt, Person_Matt_Stuvysunt);
+	joinSet(Person_Matt_Stuvysunt, Person_Herbert_Briggs);
+	joinSet(Person_Matt_Stuvysunt, Person_Marc_Smith);
+	joinSet(Person_Matt_Stuvysunt, Person_Mohammed_Abdula);
+
+	knowsSet(Person_Matt_Stuvysunt, Person_Marc_Smith);
+	knowsSet(Person_Matt_Stuvysunt, Person_Mohammed_Abdula);
+
+	/* all tools */
+	hasSet(Person_Matt_Stuvysunt, Tool_Dietrich);
+	hasSet(Person_Matt_Stuvysunt, Tool_Hammer);
+	hasSet(Person_Matt_Stuvysunt, Tool_Axt);
+	hasSet(Person_Matt_Stuvysunt, Tool_Kernbohrer);
+	hasSet(Person_Matt_Stuvysunt, Tool_Handschuhe);
+	hasSet(Person_Matt_Stuvysunt, Tool_Schuhe);
+	hasSet(Person_Matt_Stuvysunt, Tool_Maske);
+	hasSet(Person_Matt_Stuvysunt, Tool_Chloroform);
+	hasSet(Person_Matt_Stuvysunt, Tool_Brecheisen);
+	hasSet(Person_Matt_Stuvysunt, Tool_Winkelschleifer);
+	hasSet(Person_Matt_Stuvysunt, Tool_Bohrmaschine);
+	hasSet(Person_Matt_Stuvysunt, Tool_Bohrwinde);
+	hasSet(Person_Matt_Stuvysunt, Tool_Schloszstecher);
+	hasSet(Person_Matt_Stuvysunt, Tool_Schneidbrenner);
+	hasSet(Person_Matt_Stuvysunt, Tool_Sauerstofflanze);
+	hasSet(Person_Matt_Stuvysunt, Tool_Stethoskop);
+	hasSet(Person_Matt_Stuvysunt, Tool_Batterie);
+	hasSet(Person_Matt_Stuvysunt, Tool_Stromgenerator);
+	hasSet(Person_Matt_Stuvysunt, Tool_Elektroset);
+	hasSet(Person_Matt_Stuvysunt, Tool_Schutzanzug);
+	hasSet(Person_Matt_Stuvysunt, Tool_Dynamit);
+	hasSet(Person_Matt_Stuvysunt, Tool_Elektrohammer);
+	hasSet(Person_Matt_Stuvysunt, Tool_Glasschneider);
+	hasSet(Person_Matt_Stuvysunt, Tool_Strickleiter);
+	hasSet(Person_Matt_Stuvysunt, Tool_Funkgeraet);
+
+	if (hasGet(Person_Matt_Stuvysunt, Ability_Schloesser) < 210)
+		hasSetP(Person_Matt_Stuvysunt, Ability_Schloesser, 210);
+
+	if (hasGet(Person_Matt_Stuvysunt, Ability_Elektronik) < 251)
+		hasSetP(Person_Matt_Stuvysunt, Ability_Elektronik, 251);
+
+	hasSetP(Person_Marc_Smith, Ability_Autos, 255);
+	hasSetP(Person_Mohammed_Abdula, Ability_Kampf, 255);
+
+	hasSet(Person_Matt_Stuvysunt, Car_Cadillac_Club_1952);
+
+	/* Auto */
+	car->State = 255;
+	car->MotorState = 255;
+	car->BodyWorkState = 180;
+	car->TyreState = 255;
+	car->Strike = 80;       /* extrem niedrig! (f�r diesen Wagen) */
+
+	/* Organisatorisches! */
+	Organisation.CarID      = Car_Cadillac_Club_1952;
+	Organisation.DriverID   = Person_Marc_Smith;
+	Organisation.BuildingID = Building_Tower_of_London;
+
+	Organisation.GuyCount = 4;
+}
+
+static void tcDoneMafia(void)
+{
+	Person Ken      = (Person)dbGetObject(Person_Ken_Addison);
+	Person Briggs   = (Person)dbGetObject(Person_Herbert_Briggs);
+
+	CurrentBackground = BGD_LONDON;
+	ShowMenuBackground();
+
+	gfxShow (168, GFX_NO_REFRESH|GFX_ONE_STEP|GFX_CLEAR_FIRST|GFX_FADE_OUT|GFX_BLEND_UP, 3, -1, -1);  /* Mafia */
+
+	Say(STORY_1_TXT, 0, Ken->PictID, "ST_25_PATE_0");
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_25_OLD_1");
+	Say(STORY_1_TXT, 0, Briggs->PictID, "ST_25_BRIGGS_0");
+
+	Say(STORY_1_TXT, 0, MATT_PICTID, "ST_25_MATT_0");
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_25_OLD_2");
+
+	sndPlaySound("street1.bk", 0);
+
+	gfxChangeColors(l_wrp, 3, GFX_FADE_OUT, 0);
+	tcAsTimeGoesBy(GetMinute + 420);
+
+	tcMattGoesTo(25);   /* Villa */
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_26_OLD_0");
+	Say(STORY_1_TXT, 0, Ken->PictID, "ST_26_PATE_0");
+	Say(STORY_1_TXT, 0, Ken->PictID, "KEN_PLAN");
+
+	Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_26_OLD_1");
+}
+
+static long tcDoTowerBurglary(void)
+{
+	long burglary;
+
+	/* das Organisatorische mu� hier wiederholt werden, da */
+	/* es sonst zu Fehler kommen kann, da die Organisation */
+	/* nicht abgespeichert wird!                           */
+	tcInitTowerBurglary();
+
+	/* und los gehts! */
+	burglary = plPlayer(Building_Tower_of_London, 0, NULL);
+
+	if (burglary)
+	{
+		if (has(Person_Matt_Stuvysunt, Loot_Kronjuwelen))
+			Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_25_OLD_0");
+		else
+		    Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_25O_OLD_0");
+
+		tcDoneMafia();
+	}
+
+	return burglary;
+}
+
+void tcDoneKaserne(void)
+{
+	Environment Env = (Environment)dbGetObject(Environment_TheClou);
+	Car car         = (Car)dbGetObject(Car_Cadillac_Club_1952);
+	LIST *menu      = txtGoKey(MENU_TXT, "KaserneMenu");
+	ubyte activ     = 0, burglary = 0;
+	ulong successor = 0;
+
+	joined_bySet(Person_Matt_Stuvysunt, Person_Matt_Stuvysunt);
+	joined_bySet(Person_Matt_Stuvysunt, Person_Herbert_Briggs);
+	joined_bySet(Person_Matt_Stuvysunt, Person_Marc_Smith);
+	joined_bySet(Person_Matt_Stuvysunt, Person_Ken_Addison);
+
+	joined_byUnSet(Person_Matt_Stuvysunt, Person_Mohammed_Abdula);
+
+	joinSet(Person_Matt_Stuvysunt, Person_Ken_Addison);
+	knowsSet(Person_Matt_Stuvysunt, Person_Ken_Addison);
+
+	((Building)dbGetObject(Building_Starford_Kaserne))->Exactlyness = 255;
+
+	hasSet(Person_Matt_Stuvysunt, Building_Starford_Kaserne);
+
+	/* Auto */
+	car->State = 255;
+	car->MotorState = 255;
+	car->BodyWorkState = 180;
+	car->TyreState = 255;
+	car->Strike = 80;       /* extrem niedrig! (f�r diesen Wagen) */
+
+	/* Organisatorisches! */
+	Organisation.CarID    = Car_Cadillac_Club_1952;
+	Organisation.DriverID = Person_Marc_Smith;
+
+	Organisation.GuyCount = 4;
+
+	/* und los gehts! */
+	while((!burglary) && (!successor))
+	{
+		inpTurnESC(0);
+		activ = Menu(menu, 15, activ, NULL, 0L);
+		inpTurnESC(1);
+
+		/* change possibilites in PatchStory too! */
+		if (activ == (ubyte) -1)
+		{
+			ShowTheClouRequester(No_Error);
+			successor = ((Player)dbGetObject(Player_Player_1))->CurrScene;
+
+			activ = 1;
+		}
+		else
+		    {
+			switch(activ)
+			{
+			case 0:
+				StopAnim();
+				gfxChangeColors(l_wrp, 3, GFX_FADE_OUT, 0);
+				SetLocation(65);
+				SceneArgs.Moeglichkeiten = 265;
+				DoneInsideHouse();
+				tcMattGoesTo(66);
+				break;
+			case 1:
+				Information();
+				break;
+			case 2:
+				StopAnim();
+				plPlaner(Building_Starford_Kaserne);
+				tcMattGoesTo(66);    /* refresh! */
+				break;
+			case 3:
+				StopAnim();
+				Search.KaserneOk = 0;
+				if (!(burglary = plPlayer(Building_Starford_Kaserne, 0, NULL)))
+					tcMattGoesTo(66);   /* refresh! */
+				break;
+			default:
+				break;
+			}
+		}
+	}
+
+	StopAnim();
+
+	if (burglary)
+	{
+		if (Search.KaserneOk)
+		{
+			sndPlaySound("end.bk", 0);
+
+			if (Env->MattIsInLove)
+				Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_27_OLD_0");
+			else
+			    Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_28_OLD_0");
+
+			gfxShow(224, GFX_NO_REFRESH|GFX_ONE_STEP|GFX_FADE_OUT|GFX_BLEND_UP, 3, -1, -1);
+			Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_29_OLD_0");
+		}
+		else
+		    {
+			/* sndPlaySound() in tcDonePrison() */
+
+			Say(STORY_1_TXT, 0, OLD_MATT_PICTID, "ST_28_OLD_1");
+			tcDonePrison();
+		}
+
+		successor = SCENE_NEW_GAME;
+	}
+
+	gfxChangeColors(l_wrp, 3, GFX_FADE_OUT, 0);
+	RemoveList(menu);
+
+	SceneArgs.ReturnValue = successor;
+}
+
+long tcIsLastBurglaryOk(void)
+{
+	Building kaserne = (Building)dbGetObject(Building_Starford_Kaserne);
+	word carXPos0 = kaserne->CarXPos - 40;
+	word carYPos0 = kaserne->CarYPos - 40;
+	word carXPos1 = kaserne->CarXPos + 40;
+	word carYPos1 = kaserne->CarYPos + 40;
+	long madeIt = 1, i;
+	LSObject left  = (LSObject)dbGetObject(tcLAST_BURGLARY_LEFT_CTRL_OBJ);
+	LSObject right = (LSObject)dbGetObject(tcLAST_BURGLARY_RIGHT_CTRL_OBJ);
+
+	/* Links mu� ein, Rechts mu� ausgeschalten sein */
+	/* 1.. OFF!    */
+
+	if ((left->ul_Status & (1<<Const_tcON_OFF)))
+		madeIt = 0;
+
+	if (!(right->ul_Status & (1<<Const_tcON_OFF)))
+		madeIt = 0;
+
+	if (!has(Person_Matt_Stuvysunt, Loot_Dokument))
+		madeIt = 0;
+
+	/* alle anderen m�ssen beim Auto sein... */
+	for (i = 1; i < 4; i++)
+		if ((Search.GuyXPos[i] < carXPos0) || (Search.GuyXPos[i] > carXPos1) ||
+			    (Search.GuyYPos[i] < carYPos0) || (Search.GuyYPos[i] > carYPos1))
+			madeIt = 0;
+
+	if ((Search.GuyXPos[0] >= carXPos0) && (Search.GuyXPos[0] <= carXPos1) &&
+		    (Search.GuyYPos[0] >= carYPos0) && (Search.GuyYPos[i] <= carYPos1))
+		madeIt = 0;
+
+	return madeIt;
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/story/story.h b/cosp-0.6-src/ClouRemake/ClouRemake/story/story.h
new file mode 100644
index 0000000..a7f0c6d
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/story/story.h
@@ -0,0 +1,295 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_STORY
+#define MODULE_STORY
+
+#include "theclou.h"
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_TEXT
+#include "text\text.h"
+#endif
+
+#ifndef MODULE_INTERAC
+#include "present\interac.h"
+#endif
+
+#ifndef MODULE_PRESENT
+#include "present\present.h"
+#endif
+
+#ifndef MODULE_DIALOG
+#include "dialog\dialog.h"
+#endif
+
+#ifndef MODULE_RELATION
+#include "data\relation.h"
+#endif
+
+#ifndef MODULE_DATABASE
+#include "data\database.h"
+#endif
+
+#ifndef MODULE_DATACALC
+#include "data\datacalc.h"
+#endif
+
+#ifndef MODULE_DATAAPPL
+#include "data\dataappl.h"
+#endif
+
+#ifndef MODULE_TCDATA
+#include "data\tcdata.h"
+#endif
+
+#ifndef MODULE_SCENES
+#include "scenes\scenes.h"
+#endif
+
+#ifndef MODULE_GAMEPLAY
+#include "gameplay\gp.h"
+#endif
+
+#ifndef MODULE_GAMEPLAY_APP
+#include "gameplay\gp_app.h"
+#endif
+
+#ifndef MODULE_GFX
+#include "gfx\gfx.h"
+#endif
+
+#ifndef MODULE_ORGANISATION
+#include "organisa\organisa.h"
+#endif
+
+#ifndef MODULE_PLANING_PLANER
+#include "planing\planer.h"
+#endif
+
+#ifndef MODULE_PLANING_PLAYER
+#include "planing\player.h"
+#endif
+
+#ifndef MODULE_LANDSCAP
+#include "landscap\landscap.h"
+#endif
+
+#ifndef MODULE_FX
+#include "sound\fx.h"
+#endif
+
+#define tcLAST_BURGLARY_LEFT_CTRL_OBJ   440221L
+#define tcLAST_BURGLARY_RIGHT_CTRL_OBJ  440228L
+
+#define PHONE_PICTID    		     144
+#define LETTER_PICTID         	  151
+
+#define SCENE_NEW_GAME        45350912L
+#define SCENE_CREDITS         46399488L
+
+#define SCENE_GARAGE          16777216L
+#define SCENE_PARKING         17039360L
+#define SCENE_CARS_OFFICE      2621440L
+#define SCENE_TOOLS            3145728L
+
+#define SCENE_PARKER          19398656L
+#define SCENE_MALOYA          17825792L
+#define SCENE_POOLY           19136512L
+
+#define SCENE_TOWER_OUT       15204352L
+#define SCENE_AT_SABIEN       45088768L
+#define SCENE_FREIFAHRT       21233664L
+#define SCENE_ARRIVAL         22282240L
+#define SCENE_STATION         21495808L
+#define SCENE_HOTEL_REC       18612224L
+#define SCENE_HOTEL_1ST_TIME  22544384L
+#define SCENE_DANNER          22806528L
+#define SCENE_GLUDO_MONEY     23068672L
+#define SCENE_HOLLAND_STR     20185088L
+#define SCENE_HOTEL           18612224L
+#define SCENE_LISSON_GROVE    33292288L
+#define SCENE_CARS_VANS       1048576L
+#define SCENE_HOTEL_ROOM      2097152L
+#define SCENE_FAT_MANS        2359296L
+#define SCENE_MAMI_CALLS      23855104L
+#define SCENE_FST_MEET_BRIGGS 24117248L
+#define SCENE_CALL_FROM_POOLY 31457280L
+#define SCENE_WALRUS          16515072L
+#define SCENE_WATLING         20971520L
+#define SCENE_THE_END          3932160L
+#define SCENE_FAHNDUNG        24641536L
+#define SCENE_1ST_BURG        24903680L
+#define SCENE_GLUDO_SAILOR    25165824L
+#define SCENE_CALL_BRIGGS     25427968L
+#define SCENE_2ND_BURG        25690112L
+#define SCENE_3RD_BURG        25952256L
+#define SCENE_4TH_BURG        26214400L
+#define SCENE_5TH_BURG        26476544L
+#define SCENE_6TH_BURG        28573696L
+#define SCENE_7TH_BURG        28835840L
+#define SCENE_8TH_BURG        29097984L
+#define SCENE_9TH_BURG        29360128L
+#define SCENE_POLICE           3407872L
+#define SCENE_ARRESTED_MATT   26738688L
+#define SCENE_POOLY_AFRAID    27787264L
+#define SCENE_MALOYA_AFRAID   28049408L
+#define SCENE_PARKER_AFRAID   28311552L
+#define SCENE_RAID            30932992L
+#define SCENE_DART            31195136L
+#define SCENE_MEETING_AGAIN   38273024L
+
+#define SCENE_GLUDO_BURNS     27000832L
+#define SCENE_MORNING         31981568L
+#define SCENE_VISITING        32243712L
+#define SCENE_A_DREAM         35127296L
+#define SCENE_ROSENBLATT      35389440L
+#define SCENE_BRIGGS_ANGRY    35651584L
+#define SCENE_SABIEN_WALRUS   35913728L
+#define SCENE_SABIEN_DINNER   36175872L
+#define SCENE_TOMBOLA         36438016L
+#define SCENE_PRESENT_HOTEL   36700160L
+#define SCENE_INFO_TOWER      36962304L
+#define SCENE_RAINY_EVENING   37224448L
+
+#define SCENE_SABIEN_CALL     38010880L
+#define SCENE_BIRTHDAY        38797312L
+#define SCENE_WALK_WITH       39059456L
+#define SCENE_AGENT           39321600L
+#define SCENE_JAGUAR          44302336L
+#define SCENE_THINK_OF        40370176L
+#define SCENE_TERROR          40108032L
+#define SCENE_CONFESSING      40632320L
+
+#define SCENE_PRISON          44826624L
+
+/* #define SCENE_SOUTH_WITH */
+#define SCENE_SOUTH_WITHOUT   44040192L
+#define SCENE_SOUTH_UNKNOWN   41418752L
+#define SCENE_SOUTHHAMPTON    43778048L
+
+#define SCENE_MISSED_DATE_0   37748736L
+#define SCENE_MISSED_DATE_1   43515904L
+
+#define SCENE_VILLA_INSIDE     8650752L
+#define SCENE_KENWO_INSIDE     9175040L
+
+#define SCENE_TANTE_INSIDE     5242880L
+#define SCENE_JUWEL_INSIDE     5767168L
+#define SCENE_ANTIQ_INSIDE     6291456L
+#define SCENE_TRANS_INSIDE     6815744L
+#define SCENE_SENIO_INSIDE     7340032L
+#define SCENE_KENWO_INSIDE     9175040L
+#define SCENE_HAMHO_INSIDE     9699328L
+#define SCENE_OSTER_INSIDE    10223616L
+#define SCENE_CHISW_INSIDE    10747904L
+#define SCENE_SOTHE_INSIDE    11796480L
+#define SCENE_BRITI_INSIDE    12320768L
+#define SCENE_NATUR_INSIDE    12845056L
+#define SCENE_NATIO_INSIDE    13369344L
+#define SCENE_VICTO_INSIDE    13893632L
+#define SCENE_BANKO_INSIDE    14417920L
+#define SCENE_TOWER_INSIDE    14942208L
+
+#define SCENE_KASERNE_INSIDE  47185920L
+#define SCENE_KASERNE_OUTSIDE 47448064L
+
+#define SCENE_PROFI_21        52428800
+#define SCENE_PROFI_22        51380224
+#define SCENE_PROFI_23        48496640
+#define SCENE_PROFI_24        51904512
+#define SCENE_PROFI_25        47972352
+#define SCENE_PROFI_26        50855936
+#define SCENE_PROFI_27        50069504
+#define SCENE_PROFI_28        50593792
+
+#define SCENE_PROFI_21_INSIDE 52166656
+#define SCENE_PROFI_22_INSIDE 51118080
+#define SCENE_PROFI_23_INSIDE 48234496
+#define SCENE_PROFI_24_INSIDE 51642368
+#define SCENE_PROFI_25_INSIDE 47710208
+#define SCENE_PROFI_26_INSIDE                               // NO TRAIN INSIDE
+#define SCENE_PROFI_27_INSIDE 49807360
+#define SCENE_PROFI_28_INSIDE 50331648
+
+#define FACE_GLUDO_SAILOR     126
+#define FACE_GLUDO_MAGIC      124
+
+ubyte tcKarateOpa(ulong ul_ActionTime, ulong ul_BuildingId);
+
+void tcTheAlmighty(ulong time);
+void tcMattGoesTo(ulong locNr);
+void tcMovePersons(ulong personCount, ulong time);
+void tcMoveAPerson(ulong persID, ulong newLocID);
+void tcAsTimeGoesBy(ulong untilMinute);
+void tcAsDaysGoBy(ulong day, ulong stepSize);
+
+void tcDoneFreeTicket(void);
+void tcDoneMamiCalls(void);
+void tcDoneArrival(void);
+void tcDoneHotelReception(void);
+void tcDoneDanner(void);
+void tcDoneGludoMoney(void);
+void tcDoneMeetBriggs(void);
+void tcDone1stBurglary(void);
+void tcDoneGludoAsSailor(void);
+void tcDoneCallFromBriggs(void);
+void tcDone2ndBurglary(void);
+void tcDone3rdBurglary(void);
+void tcDone4thBurglary(void);
+void tcDone5thBurglary(void);
+void tcDone6thBurglary(void);
+void tcDone7thBurglary(void);
+void tcDone8thBurglary(void);
+void tcDone9thBurglary(void);
+void tcDoneMattIsArrested(void);
+void tcDoneGludoBurnsOffice(void);
+void tcDoneDealerIsAfraid(void);
+void tcDoneDartJager(void);
+void tcDoneRaidInWalrus(void);
+void tcDoneBeautifullMorning(void);
+void tcDoneVisitingSabien(void);
+void tcDoneADream(void);
+void tcDoneCallFromPooly(void);
+void tcMeetingRosenblatt(void);
+void tcBriggsAngry(void);
+void tcSabienInWalrus(void);
+void tcSabienDinner(void);
+void tcWalrusTombola(void);
+void tcPresentInHotel(void);
+void tcPoliceInfoTower(void);
+void tcRainyEvening(void);
+void tcDoneMissedDate(void);
+void tcDoneSabienCall(void);
+void tcDoneBirthday(void);
+void tcWalkWithSabien(void);
+void tcDoneAgent(void);
+void tcDoneGoAndFetchJaguar(void);
+void tcDoneThinkOfSabien(void);
+void tcDoneTerror(void);
+void tcDoneConfessingSabien(void);
+void tcDoneSouthhamptonWithSabien(void);
+void tcDoneSouthhamptonWithoutSabien(void);
+void tcDoneSouthhamptonSabienUnknown(void);
+void tcDoneSouthhampton(void);
+void tcDonePrison(void);
+void tcDoneMeetingAgain(void);
+void tcDoneCredits(void);
+void tcDoneKaserne(void);
+void tcInitPrison(void);
+
+long tcIsLastBurglaryOk(void);
+long tcIsDeadlock(void);
+void tcCheckForBones(void);
+
+ulong tcLastBurglary(void);
+
+void tcCheckForDowning(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/targetver.h b/cosp-0.6-src/ClouRemake/ClouRemake/targetver.h
new file mode 100644
index 0000000..497706e
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/targetver.h
@@ -0,0 +1,8 @@
+#pragma once
+
+// Durch Einbeziehen von"SDKDDKVer.h" wird die h�chste verf�gbare Windows-Plattform definiert.
+
+// Wenn Sie die Anwendung f�r eine fr�here Windows-Plattform erstellen m�chten, schlie�en Sie "WinSDKVer.h" ein, und
+// legen Sie das _WIN32_WINNT-Makro auf die zu unterst�tzende Plattform fest, bevor Sie "SDKDDKVer.h" einschlie�en.
+
+#include <SDKDDKVer.h>
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/text/text.c b/cosp-0.6-src/ClouRemake/ClouRemake/text/text.c
new file mode 100644
index 0000000..7db2f75
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/text/text.c
@@ -0,0 +1,520 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+
+// public header(s)
+#include "text\text.h"
+
+// private header(s)
+#include "text\text_e.h"
+#include "text\text_p.h"
+
+#include "port\port.h"
+
+// private globals declaration
+char   *txtLanguageMark[TXT_LANG_LAST + 1] = {
+	"E", "D", "F", "S" };
+struct TextControl *txtBase = NULL;
+char   keyBuffer[TXT_KEY_LENGTH];
+
+// private functions
+static char *txtGetLine(struct Text *txt, ubyte lineNr)
+{
+	ubyte i;
+	char *line = NULL;
+
+	if (txt && txt->txt_LastMark && lineNr)
+	{
+		line = txt->txt_LastMark;
+		i = 0;
+
+		while (i < lineNr)
+		{
+			if (!line) {	// 2015-01-04 LucyG : just in case...
+				break;
+			}
+
+			if (*line == TXT_CHAR_EOF) // < ((char *)TXT_BUFFER_WORK + txt->txt_Size))
+			{
+				line = NULL;
+				break;
+			}
+
+			if (i && (*line == TXT_CHAR_MARK))
+			{
+				line = NULL;
+				break;
+			}
+
+			if (*line == TXT_CHAR_EOS)
+			{
+				line++;	// overread second EOS
+				i++;
+
+				if (*line == TXT_CHAR_EOF)
+				{
+					line = NULL;
+					break;
+				}
+
+				// overread comments
+				while (*(line+1) == TXT_CHAR_REMARK)
+				{
+					while (*(++line) != TXT_CHAR_EOS);
+					line++;	// overread second EOS;
+				}
+			}
+
+			line++;
+		}
+
+		// 2015-01-04 LucyG : crashed on executing Chiswick House plan
+		//                    because line was NULL
+		if (!line) {
+			Log("%s|%s: line %d = NULL", __FILE__, __func__, lineNr);
+		} else if ((*line == TXT_CHAR_EOF) || (*line == TXT_CHAR_MARK)) {
+			line = NULL;
+		}
+
+		if (line >= ((char *)TXT_BUFFER_WORK + txt->txt_Size))
+			line = NULL;
+	}
+
+	return(line);
+}
+
+//  public functions - TEXT
+void txtInit(ubyte lang)
+{
+	char txtListPath[DSK_PATHNAMELENGTH];
+	struct Text *txt;
+	uword i;
+
+	if (txtBase = (struct TextControl *)MemAlloc(sizeof(struct TextControl)))
+	{
+		txtBase->tc_Texts     = (LIST *) CreateList(0);
+		txtBase->tc_Language  = lang;
+
+		dskBuildPathName(TEXT_DIRECTORY, TXT_LIST, txtListPath);
+
+		if (ReadList(txtBase->tc_Texts, sizeof(struct Text), txtListPath, TXT_DISK_ID))
+		{
+			for (i = 0; i < GetNrOfNodes(txtBase->tc_Texts); i++)
+			{
+				txt = (struct Text*)GetNthNode(txtBase->tc_Texts, i);
+
+				txt->txt_Handle   = NULL;
+				txt->txt_LastMark = NULL;
+				txt->txt_Size     = 0;
+
+				txtLoad(i);
+			}
+		}
+		else
+		    NewErrorMsg(No_Mem, __FILE__, __func__, ERR_TXT_READING_LIST);
+	}
+	else
+	    NewErrorMsg(No_Mem, __FILE__, __func__, ERR_TXT_FAILED_BASE);
+}
+
+void txtDone(void)
+{
+	if (txtBase)
+	{
+		uword i;
+
+		for (i = 0; i < GetNrOfNodes(txtBase->tc_Texts); i++)
+			txtUnLoad(i);
+
+		RemoveList(txtBase->tc_Texts);
+
+		MemFree(txtBase, sizeof(struct TextControl));
+	}
+}
+
+void txtLoad (ulong textId)
+{
+	struct Text *txt = (struct Text*)GetNthNode(txtBase->tc_Texts, textId);
+
+	if (txt)
+	{
+		if (!txt->txt_Handle)
+		{
+			char txtPath[DSK_PATHNAMELENGTH];
+			ubyte *mem;
+
+			dskBuildPathName(TEXT_DIRECTORY, NODE_NAME(txt), txtPath);
+			strcat(txtPath, txtLanguageMark[txtBase->tc_Language]);
+			strcat(txtPath, TXT_SUFFIX);
+
+			txt->txt_Size = dskFileLength(txtPath);
+
+			// loading text into buffer
+			dskLoad(txtPath, TXT_BUFFER_LOAD, TXT_DISK_ID);
+
+			// correcting text
+			for (mem = (ubyte*) TXT_BUFFER_LOAD; mem < ((ubyte *)TXT_BUFFER_LOAD + txt->txt_Size); mem++)
+			{
+				*mem ^= TXT_XOR_VALUE;
+				if (*mem == 10 || *mem == 13) *mem = TXT_CHAR_EOS;
+			}
+
+			// save text into xms
+			if (txt->txt_Handle = MemAlloc(txt->txt_Size)) {
+				//xmsCopyUp(txt->txt_Handle, 0, TXT_BUFFER_LOAD, txt->txt_Size);
+                memcpy(txt->txt_Handle, TXT_BUFFER_LOAD, txt->txt_Size);
+			} else {
+			    NewErrorMsg(No_Mem, __FILE__, __func__, ERR_TXT_NO_XMS);
+            }
+		}
+	}
+}
+
+void txtUnLoad(ulong textId)
+{
+	struct Text *txt = (struct Text*)GetNthNode(txtBase->tc_Texts, textId);
+
+	if (txt)
+	{
+		if (txt->txt_Handle)
+		{
+			MemFree(txt->txt_Handle, txt->txt_Size);
+
+			txt->txt_Handle   = NULL;
+			txt->txt_LastMark = NULL;
+			txt->txt_Size     = 0;
+		}
+	}
+}
+
+void txtPrepare(ulong textId)
+{
+	struct Text *txt = (struct Text*)GetNthNode(txtBase->tc_Texts, textId);
+
+	if (txt)
+	{
+		//xmsCopyDown(txt->txt_Handle, 0, TXT_BUFFER_WORK, txt->txt_Size);
+        memcpy(TXT_BUFFER_WORK, txt->txt_Handle, txt->txt_Size);
+		txt->txt_LastMark = (char*) TXT_BUFFER_WORK;
+	}
+}
+
+void txtUnPrepare(ulong textId)
+{
+	struct Text *txt = (struct Text*)GetNthNode(txtBase->tc_Texts, textId);
+
+	if (txt)
+		txt->txt_LastMark = NULL;
+}
+
+void txtReset(ulong textId)
+{
+	struct Text *txt = (struct Text*)GetNthNode(txtBase->tc_Texts, textId);
+
+	if (txt)
+		txt->txt_LastMark = (char*)TXT_BUFFER_WORK;
+}
+
+// public functions - KEY
+char *txtGetKey(uword keyNr, char *key)
+{
+	uword i;
+
+	if (key)
+	{
+		for (i = 1; i < keyNr; i++)
+		{
+			while (*key && (*key != TXT_CHAR_KEY_SEPERATOR))
+				key++;
+
+			if (!*key)
+				break;
+			else
+			    key++;
+		}
+
+		if (*key)
+		{
+			while (isspace (*key))
+				key++;
+
+			if (*key)
+			{
+				for (i = 0; *key && (*key != TXT_CHAR_KEY_SEPERATOR) && (i < TXT_KEY_LENGTH); i++)
+					keyBuffer[i] = *key++;
+
+				keyBuffer[i] = TXT_CHAR_EOS;
+
+				return keyBuffer;
+			}
+		}
+	}
+
+	return NULL;
+}
+
+ulong txtGetKeyAsULONG(uword keyNr, char *key)
+{
+	char *t = txtGetKey(keyNr, key);
+	if (!t) return(0);
+	return((ulong)atol(t));
+}
+
+/* 2015-01-10 LucyG: the Czech localization crashed when asking Dan Stanford about */
+/* Marc Smith and selecting the second option (... k?). There is a problem with */
+/* "Dan Stanford_k�iv]mi obchody" getting truncated to "Dan Stanford_k". */
+
+/* This is really just a workaround at the rear end of the problem. If something */
+/* like that should happen again with other strings, we should trace to the source */
+/* of the problem (data file, some "strange" char converted to 0, whatever). */
+
+/* Same as txtGoKey, but uses strncmp instead of strcmp. */
+static LIST *txtGoKeyN(ulong textId, char *key)
+{
+	LIST *txtList = NULL;
+	char *LastMark = NULL;
+	struct Text *txt;
+	ubyte found, i;
+	char mark[TXT_KEY_LENGTH];
+	char *line;
+
+	txt = (struct Text*)GetNthNode(txtBase->tc_Texts, textId);
+	if (txt) {
+		if (!key && txt->txt_LastMark) {
+			LastMark = txt->txt_LastMark;
+		}
+		txtPrepare(textId);
+		if (!key && LastMark) {
+			txt->txt_LastMark = LastMark + 1;
+		}
+
+		for (; txt->txt_LastMark < ((char *)TXT_BUFFER_WORK + txt->txt_Size); txt->txt_LastMark++) {
+			if (*txt->txt_LastMark == TXT_CHAR_MARK) {
+				found = 1;
+				if (key) {
+					strcpy(mark, txt->txt_LastMark+1);
+					if (strncmp(key, mark, strlen(key)) != 0) {
+						found = 0;
+					} else {
+						/* Got it! This should be the truncated string */
+						Log("%s|%s: \"%s\" == \"%s\"", __FILE__, __func__, key, mark);
+					}
+				}
+				if (found) {
+					i = 1;
+					txtList = (LIST*)CreateList(0);
+					while (line = txtGetLine(txt, i++)) {
+						CreateNode(txtList, 0, line);
+					}
+					break;
+				}
+			}
+		}
+	}
+
+	if (!txtList) {
+		Log("%s|%s: Cannot find text (%d, \"%s\"). Giving up :(", __FILE__, __func__, textId, key ? key : "NULL");
+		NewErrorMsg(Disk_Defect, __FILE__, __func__, ERR_TXT_NO_KEY);
+	}
+
+	return txtList;
+}
+
+LIST *txtGoKey(ulong textId, char *key)
+{
+	LIST *txtList = NULL;
+	char *LastMark = NULL;
+	struct Text *txt;
+	ubyte found, i;
+	char mark[TXT_KEY_LENGTH];
+	char *line;
+
+	txt = (struct Text*)GetNthNode(txtBase->tc_Texts, textId);
+	if (txt)
+	{
+		// MOD: 08-04-94 hg
+		// wenn kein key angegeben wurde, soll der n�chste genommen werden
+		// -> in LastMark wird die letzte Position zwischengespeichert, da
+		// txt->LastMark in txtPrepare neu gesetzt wird!
+
+		// Vorsicht auf Spezialfall: kein Key, Text noch nie benutzt !!
+
+		if (!key && txt->txt_LastMark)
+		{
+			LastMark = txt->txt_LastMark;
+		}
+
+		txtPrepare(textId);
+
+		// Erkl�rung zu +1: LastMark zeigt auf den letzten Schl��ssel
+		// -> ohne "+1" w��rde wieder der selbe Schl��ssel zur��ckgegeben werden
+		if (!key && LastMark)
+		{
+			txt->txt_LastMark = LastMark + 1;
+		}
+
+		for (; txt->txt_LastMark < ((char *)TXT_BUFFER_WORK + txt->txt_Size); txt->txt_LastMark++)
+		{
+			if (*txt->txt_LastMark == TXT_CHAR_MARK)
+			{
+				found = 1;
+
+				if (key)
+				{
+					strcpy(mark, txt->txt_LastMark+1);
+
+					if (strcmp(key, mark) != 0)
+					{
+						found = 0;
+					}
+				}
+
+				if (found)
+				{
+					i = 1;
+
+					txtList = (LIST*)CreateList(0);
+
+					while (line = txtGetLine(txt, i++))
+					{
+						CreateNode(txtList, 0, line);
+					}
+
+					break;
+				}
+			}
+		}
+	}
+
+	if (!txtList)
+	{
+		Log("%s|%s: Cannot find text (%d, \"%s\"). Using alternative search.", __FILE__, __func__, textId, key ? key : "NULL");
+		return(txtGoKeyN(textId, key));
+	}
+
+	return txtList;
+}
+
+LIST *txtGoKeyAndInsert(ulong textId, char *key, ...)
+{
+	va_list argument;
+	LIST *txtList = (LIST*)CreateList(0L), *originList = NULL;
+	NODE *node;
+
+	va_start(argument, key);
+
+	originList = txtGoKey(textId, key);
+
+	for (node = LIST_HEAD(originList); NODE_SUCC(node); node = NODE_SUCC(node))
+	{
+		ubyte i;
+		char originLine[256],txtLine[256];
+
+		strcpy(originLine, NODE_NAME(node));
+		strcpy(txtLine, NODE_NAME(node));
+
+		for (i = 2; i < strlen(originLine); i++)
+		{
+			if (originLine[i-2] == '%')
+			{
+				sprintf(txtLine, originLine, va_arg(argument, ulong));
+				i = strlen(originLine)+1;
+			}
+		}
+
+		CreateNode(txtList, 0, txtLine);
+	}
+
+	RemoveList(originList);
+
+	return txtList;
+}
+
+ubyte txtKeyExists(ulong textId, char *key)
+{
+	ubyte found = 0;
+	struct Text *txt = (struct Text*)GetNthNode(txtBase->tc_Texts, textId);
+	char mark[TXT_KEY_LENGTH];
+
+	if (txt && key)
+	{
+		txtPrepare(textId);
+
+		// after txtPrepare txt_LastMark points to TXT_BUFFER_PREPARE in every case
+		for (; txt->txt_LastMark < ((char *)TXT_BUFFER_WORK + txt->txt_Size); txt->txt_LastMark++)
+		{
+			if (*txt->txt_LastMark == TXT_CHAR_MARK)
+			{
+				strcpy(mark, txt->txt_LastMark+1);
+
+				if (strcmp(key, mark) == 0)
+				{
+					found = 1;
+					break;
+				}
+			}
+		}
+	}
+
+	return found;
+}
+
+ulong txtCountKey(char *key)
+{
+	ulong i = strlen(key), j, k;
+	for (j = 0, k = 0; j < i; j++)
+	{
+		if (key[j] == TXT_CHAR_KEY_SEPERATOR) k++;
+	}
+	return(k + 1);
+}
+
+// functions - STRING
+char *txtGetNthString(ulong textId, char *key, ulong nth, char *dest)
+{
+	LIST *txtList = txtGoKey(textId, key);
+	char *src;
+	if (src = (char*)GetNthNode(txtList, nth)) strcpy(dest, NODE_NAME(src));
+	else dest[0] = '\0';
+	RemoveList(txtList);
+	return(dest);
+}
+
+void txtPutCharacter(LIST *list, uword pos, ubyte c)
+{
+	NODE *node;
+	for (node = LIST_HEAD(list); NODE_SUCC(node); node = NODE_SUCC(node))
+	{
+		NODE_NAME(node)[pos] = c;
+	}
+}
+
+// public functions - LANGUAGE
+void txtSetLanguage(ubyte lang)
+{
+	if (txtBase)
+	{
+		if (lang > TXT_LANG_LAST) txtBase->tc_Language = TXT_LANG_GERMAN;
+		else txtBase->tc_Language = lang;
+	}
+}
+
+ubyte txtGetLanguage(void)
+{
+	if (txtBase) return(txtBase->tc_Language);
+	return(TXT_LANG_GERMAN);
+}
+
+char *txtGetTemporary(void)
+{
+	static ubyte i = 0;
+	static char s[16][TXT_KEY_LENGTH];
+	char *r;
+	r = &s[i][0];
+	i = (i+1) & 15;
+	memset(r, 0, TXT_KEY_LENGTH);
+	return(r);
+}
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/text/text.h b/cosp-0.6-src/ClouRemake/ClouRemake/text/text.h
new file mode 100644
index 0000000..d4815c6
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/text/text.h
@@ -0,0 +1,80 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_TEXT
+#define MODULE_TEXT
+
+// includes
+
+#ifndef __CTYPE_H
+#include <ctype.h>
+#endif
+
+#include "theclou.h"
+
+#ifndef MODULE_ERROR
+#include "error\error.h"
+#endif
+
+#ifndef MODULE_LIST
+#include "list\list.h"
+#endif
+
+#ifndef MODULE_MEMORY
+#include "memory\memory.h"
+#endif
+
+
+// public defines
+#define TXT_LANG_ENGLISH   0
+#define TXT_LANG_GERMAN    1
+#define TXT_LANG_FRENCH    2
+#define TXT_LANG_SPANISH   3
+#define TXT_LANG_LAST      TXT_LANG_SPANISH
+
+#define TXT_KEY_LENGTH     256
+
+
+#define txtGetFirstLine(id, key, dest) (txtGetNthString(id, key, 0, dest))
+
+
+// public prototypes - TEXT
+void txtInit(ubyte lang);
+void txtDone(void);
+
+void txtLoad(ulong textId);
+void txtUnLoad(ulong textId);
+
+void txtPrepare(ulong textId);
+void txtUnPrepare(ulong textId);
+
+void txtReset(ulong textId);
+
+
+// public prototypes - KEY
+char *txtGetKey(uword keyNr, char *key);
+ulong txtGetKeyAsULONG(uword keyNr, char *key);
+
+LIST *txtGoKey(ulong textId, char *key);
+LIST *txtGoKeyAndInsert(ulong textId, char *key, ...);
+
+ubyte txtKeyExists(ulong textId, char *key);
+ulong txtCountKey(char *key);
+
+
+// public prototypes - STRING
+char *txtGetString(ulong textId, char *key, char *dest);
+char *txtGetNthString(ulong textId, char *key, ulong nth, char *dest);
+void txtPutCharacter(LIST *list, uword pos, ubyte c);
+
+// public prototypes - LANGUAGE
+void txtSetLanguage(ubyte lang);
+ubyte txtGetLanguage(void);
+
+// get a temporary string
+char *txtGetTemporary(void);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/text/text_e.h b/cosp-0.6-src/ClouRemake/ClouRemake/text/text_e.h
new file mode 100644
index 0000000..0f53172
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/text/text_e.h
@@ -0,0 +1,16 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_TXT_EH
+#define MODULE_TXT_EH
+
+#define ERR_TXT_READING_LIST     1
+#define ERR_TXT_FAILED_LIST      2
+#define ERR_TXT_NO_XMS           3
+#define ERR_TXT_NO_KEY           4
+#define ERR_TXT_FAILED_BASE		5
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/text/text_p.h b/cosp-0.6-src/ClouRemake/ClouRemake/text/text_p.h
new file mode 100644
index 0000000..8f6e2a4
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/text/text_p.h
@@ -0,0 +1,65 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef MODULE_TXT_PH
+#define MODULE_TXT_PH
+
+// includes
+#include "theclou.h"
+#include "disk\disk.h"
+#include "list\list.h"
+#include "base\base.h"
+
+
+// private defines
+#define TXT_DISK_ID     0
+#define TXT_LIST        "TEXTS.LST"
+#define TXT_SUFFIX      ".TXT"
+
+#define TXT_BUFFER_LOAD    StdBuffer0
+#define TXT_BUFFER_WORK    StdBuffer1
+
+#define TXT_CHAR_EOL            13
+#define TXT_CHAR_EOS            '\0'
+#define TXT_CHAR_MARK           '#'
+#define TXT_CHAR_REMARK         ';'
+#define TXT_CHAR_KEY_SEPERATOR  ','
+#define TXT_CHAR_EOF		'^'
+
+#define TXT_XOR_VALUE				0x75
+
+
+// private structures
+struct TextControl
+{
+   LIST *tc_Texts;
+   
+   ubyte tc_Language;
+ubyte Padding[3];
+};
+
+struct Text
+{
+   NODE  txt_Link;
+
+   void *txt_Handle;
+   char *txt_LastMark;
+
+   uword txt_Size;
+uword Padding;
+};
+
+
+// private gobals definition
+extern char *txtLanguageMark[];
+extern struct TextControl *txtBase;
+extern char keyBuffer[];
+
+
+// private prototypes - LINE
+static char *txtGetLine(struct Text *txt, ubyte lineNr);
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ClouRemake/theclou.h b/cosp-0.6-src/ClouRemake/ClouRemake/theclou.h
new file mode 100644
index 0000000..e0f9b00
--- /dev/null
+++ b/cosp-0.6-src/ClouRemake/ClouRemake/theclou.h
@@ -0,0 +1,175 @@
+/*  _________  _______
+   / ___/ __ \/ __/ _ \      Der Clou!
+  / /__/ /_/ /\ \/ ___/ Open Source Project
+  \___/\____/___/_/ http://cosp.sourceforge.net
+   Based on the original by neo Software GmbH
+*/
+#ifndef THECLOU_MODULE
+#define THECLOU_MODULE
+
+#define __COSP__
+#define COSP_VERSION	"0.6"
+#define COSP_TITLE		"Der Clou! Open Source Project"
+
+typedef struct {
+	int gfxScreenWidth;
+	int gfxScreenHeight;
+	char gfxFullScreen;
+	char gfxScaleNx;
+	char gfxNoFontShadow;
+	char NoIntro;
+
+	int SfxVolume;
+	int MusicVolume;
+	
+	unsigned char UseJoystick;
+} Configuration_t;
+extern Configuration_t Config;	/* base.c */
+
+/*
+ * MemAlloc/MemFree logging to
+ * help with memory leaking code
+ */
+//#define THECLOU_DEBUG_ALLOC
+
+/*
+ * verwendete Typen
+ */
+
+typedef unsigned char	ubyte;
+typedef unsigned short	uword;
+typedef short			word;
+typedef unsigned long	ulong;
+
+#define EOS 	 ((char)'\0')
+
+#if _MSC_VER
+// defines for Visual C++
+#define max(a,b)    (((a) > (b)) ? (a) : (b))
+#define min(a,b)    (((a) < (b)) ? (a) : (b))
+#define __func__	__FUNCTION__
+#endif
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+#ifndef TRUE
+#define TRUE (~0)
+#endif
+
+// ADDITIONAL VERSION DEFINES
+extern char bProfidisk;
+extern char bCDRom;
+
+// SPECIALS DEFINES
+#define THECLOU_JOYSTICK_DISABLED
+#define THECLOU_DEBUG
+
+/*
+ * Textdateien, die auch als Daten verwendet werden
+ *
+ */
+
+#define LOCATIONS_TXT		"location.lst"
+#define COLL_LIST_TXT		"coll.lst"
+#define PICT_LIST_TXT		"pict.lst"
+#define GAMES_LIST_TXT		"games.lst"
+#define GAMES_ORIG_TXT		"origin.lst"
+
+#define LIV_ANIM_TEMPLATE_LIST	"Template.lst"
+#define LIV_LIVINGS_LIST		"livings.lst"
+
+#define SND_SOUND_LIST			"sounds.list"
+#define SND_SOUND_DIRECTORY		"sounds"
+
+/*
+ * Namen der anderen Dateien
+ *
+ * Diese Dateien befinden sich im Verzeichnis theclou:data
+ *
+ */
+
+#define STORY_DAT 		"TCStory.pc"
+#define STORY_DAT_DEMO	"TCStory.dem"
+
+/*
+ * Nummern der Textdateien in denen die Menues stehen
+ *
+ * siehe Texts.list im Verzeichnis Texts
+ *
+ */
+
+#define MENU_TXT				0L
+#define OBJECTS_TXT				1L
+#define BUSINESS_TXT 			2L
+#define HOUSEDESC_TXT			3L
+#define THECLOU_TXT				4L
+#define INVESTIGATIONS_TXT 		5L
+#define CDROM_TXT 				6L
+#define OBJECTS_ENUM_TXT		7L
+#define ANIM_TXT				8L
+#define PRESENT_TXT				9L
+#define STORY_0_TXT				10L
+#define PLAN_TXT				11L
+#define TOOLS_TXT 				12L
+#define LOOK_TXT				13L
+#define ABILITY_TXT				14L
+#define STORY_1_TXT				15L
+#define TALK_0_TXT				16L
+#define TALK_1_TXT				17L
+
+/*
+ * Disk Nr.
+ *
+ */
+
+/*
+ * Defines betreffend Disketten und Verzeichnisse
+ *
+ */
+
+#define PICTURE_DIRECTORY	"pictures"
+#define TEXT_DIRECTORY		"texts"
+#define INCLUDE_DIRECTORY	"Include"
+#define DATA_DIRECTORY		"data"
+#define SOUND_DIRECTORY 	"sounds"
+#define SAMPLES_DIRECTORY	"samples"
+#define AUDIO_DIRECTORY		"audio"
+
+#define DATADISK			"datadisk"
+
+#define BUILD_DATA_NAME 	"tcbuild"
+#define MAIN_DATA_NAME		"tcmain"
+#define GAME_DATA_EXT		".dat"
+#define GAME_REL_EXT 		".rel"
+#define TAXI_LOC_EXT 		".loc"
+
+#define STORY_DATA_NAME 	"tcstory"
+
+/*
+ * defines fue�r Error Modul
+ *
+ */
+
+ulong ShowTheClouRequester(long error_class);	/* siehe Base.c */
+
+/*
+ * some defines ...
+ */
+
+#define MATT_PICTID		 ((uword)7)
+#define OLD_MATT_PICTID  ((uword)125)
+#define BIG_SHEET 		 ((uword)5)
+
+#define BGD_LONDON		 ((uword)21)
+#define BGD_PLANUNG		 ((uword)23)
+#define BGD_EINBRUCH 	 ((uword)23)
+#define BGD_CLEAR 		 ((uword)0)
+
+#define RADIO_BUBBLE 	 ((uword)12)
+#define SPEAK_BUBBLE 	 ((uword)12)
+#define THINK_BUBBLE 	 ((uword)13)
+
+#define GFX_COLL_PARKING ((uword)27)
+
+#endif
diff --git a/cosp-0.6-src/ClouRemake/ipch/CLOUREMAKE-eef1e6cf/CLOUREMAKE-8ed510f4.ipch b/cosp-0.6-src/ClouRemake/ipch/CLOUREMAKE-eef1e6cf/CLOUREMAKE-8ed510f4.ipch
new file mode 100644
index 0000000..ac2c31b
Binary files /dev/null and b/cosp-0.6-src/ClouRemake/ipch/CLOUREMAKE-eef1e6cf/CLOUREMAKE-8ed510f4.ipch differ
diff --git a/cosp-cdaudio-22khz.zip b/cosp-cdaudio-22khz.zip
new file mode 100644
index 0000000..7674824
Binary files /dev/null and b/cosp-cdaudio-22khz.zip differ
diff --git a/cosp-cdaudio-22khz/AUDIO/5th_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/5th_matt_0.wav
new file mode 100644
index 0000000..74cb121
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/5th_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/5th_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/5th_matt_1.wav
new file mode 100644
index 0000000..29abc44
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/5th_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/5th_old_0.wav b/cosp-cdaudio-22khz/AUDIO/5th_old_0.wav
new file mode 100644
index 0000000..638132d
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/5th_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/5th_old_1.wav b/cosp-cdaudio-22khz/AUDIO/5th_old_1.wav
new file mode 100644
index 0000000..e1372bc
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/5th_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/5th_old_2.wav b/cosp-cdaudio-22khz/AUDIO/5th_old_2.wav
new file mode 100644
index 0000000..9fe3a4f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/5th_old_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/5th_old_3.wav b/cosp-cdaudio-22khz/AUDIO/5th_old_3.wav
new file mode 100644
index 0000000..58dad60
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/5th_old_3.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/5th_old_4.wav b/cosp-cdaudio-22khz/AUDIO/5th_old_4.wav
new file mode 100644
index 0000000..5135d1c
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/5th_old_4.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/5th_old_5.wav b/cosp-cdaudio-22khz/AUDIO/5th_old_5.wav
new file mode 100644
index 0000000..b680cc3
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/5th_old_5.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/5th_old_6.wav b/cosp-cdaudio-22khz/AUDIO/5th_old_6.wav
new file mode 100644
index 0000000..55471f6
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/5th_old_6.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/5th_old_7.wav b/cosp-cdaudio-22khz/AUDIO/5th_old_7.wav
new file mode 100644
index 0000000..553b1e3
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/5th_old_7.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/aehhh.wav b/cosp-cdaudio-22khz/AUDIO/aehhh.wav
new file mode 100644
index 0000000..b51e632
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/aehhh.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/after_meeting_briggs.wav b/cosp-cdaudio-22khz/AUDIO/after_meeting_briggs.wav
new file mode 100644
index 0000000..7ce3eb5
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/after_meeting_briggs.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/arrest_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/arrest_matt_0.wav
new file mode 100644
index 0000000..c94f11f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/arrest_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/arrest_old_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/arrest_old_matt_0.wav
new file mode 100644
index 0000000..7503d3e
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/arrest_old_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/arrest_old_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/arrest_old_matt_1.wav
new file mode 100644
index 0000000..010f21d
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/arrest_old_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/briggs_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/briggs_matt_1.wav
new file mode 100644
index 0000000..90a7962
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/briggs_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/briggs_matt_2.wav b/cosp-cdaudio-22khz/AUDIO/briggs_matt_2.wav
new file mode 100644
index 0000000..b98cb03
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/briggs_matt_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/briggs_mr_whisky.wav b/cosp-cdaudio-22khz/AUDIO/briggs_mr_whisky.wav
new file mode 100644
index 0000000..8ef840b
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/briggs_mr_whisky.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/bye.wav b/cosp-cdaudio-22khz/AUDIO/bye.wav
new file mode 100644
index 0000000..e398ef3
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/bye.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/call_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/call_matt_0.wav
new file mode 100644
index 0000000..17575ef
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/call_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/danner_3.wav b/cosp-cdaudio-22khz/AUDIO/danner_3.wav
new file mode 100644
index 0000000..2bf54c7
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/danner_3.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/dart_jaeger_0.wav b/cosp-cdaudio-22khz/AUDIO/dart_jaeger_0.wav
new file mode 100644
index 0000000..7c525f5
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/dart_jaeger_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/dart_jaeger_1.wav b/cosp-cdaudio-22khz/AUDIO/dart_jaeger_1.wav
new file mode 100644
index 0000000..97afc99
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/dart_jaeger_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/dart_old_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/dart_old_matt_0.wav
new file mode 100644
index 0000000..26f17b5
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/dart_old_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/evil_matt.wav b/cosp-cdaudio-22khz/AUDIO/evil_matt.wav
new file mode 100644
index 0000000..877143b
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/evil_matt.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/evil_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/evil_matt_1.wav
new file mode 100644
index 0000000..82ed2cc
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/evil_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/evil_old_matt.wav b/cosp-cdaudio-22khz/AUDIO/evil_old_matt.wav
new file mode 100644
index 0000000..3e99327
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/evil_old_matt.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/fahndung.wav b/cosp-cdaudio-22khz/AUDIO/fahndung.wav
new file mode 100644
index 0000000..9ab360b
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/fahndung.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/grove_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/grove_matt_0.wav
new file mode 100644
index 0000000..43c8d72
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/grove_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/grove_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/grove_matt_1.wav
new file mode 100644
index 0000000..a6da9f1
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/grove_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/grove_matt_2.wav b/cosp-cdaudio-22khz/AUDIO/grove_matt_2.wav
new file mode 100644
index 0000000..3af95d7
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/grove_matt_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/grove_old_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/grove_old_matt_0.wav
new file mode 100644
index 0000000..6d4b966
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/grove_old_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/grove_old_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/grove_old_matt_1.wav
new file mode 100644
index 0000000..9f77acf
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/grove_old_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/hotel_matt_3.wav b/cosp-cdaudio-22khz/AUDIO/hotel_matt_3.wav
new file mode 100644
index 0000000..b30e11f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/hotel_matt_3.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/in_prison_old_0.wav b/cosp-cdaudio-22khz/AUDIO/in_prison_old_0.wav
new file mode 100644
index 0000000..6a51ac3
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/in_prison_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_02.wav b/cosp-cdaudio-22khz/AUDIO/intro_02.wav
new file mode 100644
index 0000000..20643d7
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_02.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_03.wav b/cosp-cdaudio-22khz/AUDIO/intro_03.wav
new file mode 100644
index 0000000..f1bf3ca
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_03.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_04.wav b/cosp-cdaudio-22khz/AUDIO/intro_04.wav
new file mode 100644
index 0000000..e5211cc
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_04.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_05.wav b/cosp-cdaudio-22khz/AUDIO/intro_05.wav
new file mode 100644
index 0000000..5cbf108
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_05.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_06.wav b/cosp-cdaudio-22khz/AUDIO/intro_06.wav
new file mode 100644
index 0000000..1904823
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_06.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_07.wav b/cosp-cdaudio-22khz/AUDIO/intro_07.wav
new file mode 100644
index 0000000..25bf801
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_07.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_08.wav b/cosp-cdaudio-22khz/AUDIO/intro_08.wav
new file mode 100644
index 0000000..c77144d
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_08.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_09.wav b/cosp-cdaudio-22khz/AUDIO/intro_09.wav
new file mode 100644
index 0000000..7476293
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_09.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_10.wav b/cosp-cdaudio-22khz/AUDIO/intro_10.wav
new file mode 100644
index 0000000..28aaf09
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_10.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_11.wav b/cosp-cdaudio-22khz/AUDIO/intro_11.wav
new file mode 100644
index 0000000..3834511
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_11.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_12.wav b/cosp-cdaudio-22khz/AUDIO/intro_12.wav
new file mode 100644
index 0000000..6fedc6f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_12.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_13.wav b/cosp-cdaudio-22khz/AUDIO/intro_13.wav
new file mode 100644
index 0000000..896ab68
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_13.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_14.wav b/cosp-cdaudio-22khz/AUDIO/intro_14.wav
new file mode 100644
index 0000000..4e9150c
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_14.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_15.wav b/cosp-cdaudio-22khz/AUDIO/intro_15.wav
new file mode 100644
index 0000000..ae1e4fd
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_15.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_16.wav b/cosp-cdaudio-22khz/AUDIO/intro_16.wav
new file mode 100644
index 0000000..a0df985
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_16.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_17.wav b/cosp-cdaudio-22khz/AUDIO/intro_17.wav
new file mode 100644
index 0000000..23a6f6a
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_17.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_18.wav b/cosp-cdaudio-22khz/AUDIO/intro_18.wav
new file mode 100644
index 0000000..b187c15
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_18.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_19.wav b/cosp-cdaudio-22khz/AUDIO/intro_19.wav
new file mode 100644
index 0000000..d141b1b
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_19.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_20.wav b/cosp-cdaudio-22khz/AUDIO/intro_20.wav
new file mode 100644
index 0000000..179c570
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_20.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_21.wav b/cosp-cdaudio-22khz/AUDIO/intro_21.wav
new file mode 100644
index 0000000..1eb94db
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_21.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_22.wav b/cosp-cdaudio-22khz/AUDIO/intro_22.wav
new file mode 100644
index 0000000..27b3ccd
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_22.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/intro_23.wav b/cosp-cdaudio-22khz/AUDIO/intro_23.wav
new file mode 100644
index 0000000..5bf9cdc
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/intro_23.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/kloster.wav b/cosp-cdaudio-22khz/AUDIO/kloster.wav
new file mode 100644
index 0000000..21c959f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/kloster.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/lobhudel.wav b/cosp-cdaudio-22khz/AUDIO/lobhudel.wav
new file mode 100644
index 0000000..dac973e
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/lobhudel.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/matt_stays_holy.wav b/cosp-cdaudio-22khz/AUDIO/matt_stays_holy.wav
new file mode 100644
index 0000000..58536a9
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/matt_stays_holy.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/millionaire.wav b/cosp-cdaudio-22khz/AUDIO/millionaire.wav
new file mode 100644
index 0000000..0a42be7
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/millionaire.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/morning_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/morning_matt_0.wav
new file mode 100644
index 0000000..f03738b
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/morning_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/morning_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/morning_matt_1.wav
new file mode 100644
index 0000000..a483f11
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/morning_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/poli_matt_2.wav b/cosp-cdaudio-22khz/AUDIO/poli_matt_2.wav
new file mode 100644
index 0000000..6fb934f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/poli_matt_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/poli_matt_3.wav b/cosp-cdaudio-22khz/AUDIO/poli_matt_3.wav
new file mode 100644
index 0000000..28a8ec8
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/poli_matt_3.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/poli_matt_4.wav b/cosp-cdaudio-22khz/AUDIO/poli_matt_4.wav
new file mode 100644
index 0000000..3366f1a
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/poli_matt_4.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/poli_matt_5.wav b/cosp-cdaudio-22khz/AUDIO/poli_matt_5.wav
new file mode 100644
index 0000000..d1cd31b
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/poli_matt_5.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/poli_matt_6.wav b/cosp-cdaudio-22khz/AUDIO/poli_matt_6.wav
new file mode 100644
index 0000000..d197797
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/poli_matt_6.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/raid_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/raid_matt_1.wav
new file mode 100644
index 0000000..3dd5c03
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/raid_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/raid_matt_2.wav b/cosp-cdaudio-22khz/AUDIO/raid_matt_2.wav
new file mode 100644
index 0000000..77a32a9
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/raid_matt_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/raid_old_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/raid_old_matt_0.wav
new file mode 100644
index 0000000..21f2134
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/raid_old_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/raid_old_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/raid_old_matt_1.wav
new file mode 100644
index 0000000..c5c1db8
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/raid_old_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/raid_old_matt_2.wav b/cosp-cdaudio-22khz/AUDIO/raid_old_matt_2.wav
new file mode 100644
index 0000000..5670fb3
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/raid_old_matt_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/read_times_0.wav b/cosp-cdaudio-22khz/AUDIO/read_times_0.wav
new file mode 100644
index 0000000..f6552a0
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/read_times_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/read_times_1.wav b/cosp-cdaudio-22khz/AUDIO/read_times_1.wav
new file mode 100644
index 0000000..9ee5ce4
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/read_times_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/sailor_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/sailor_matt_0.wav
new file mode 100644
index 0000000..ec7070b
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/sailor_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/sailor_old_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/sailor_old_matt_0.wav
new file mode 100644
index 0000000..8efbd12
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/sailor_old_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st1_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/st1_matt_0.wav
new file mode 100644
index 0000000..b53406f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st1_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st1_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/st1_matt_1.wav
new file mode 100644
index 0000000..df00977
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st1_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st1_matt_2.wav b/cosp-cdaudio-22khz/AUDIO/st1_matt_2.wav
new file mode 100644
index 0000000..ef161c1
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st1_matt_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st1_matt_3.wav b/cosp-cdaudio-22khz/AUDIO/st1_matt_3.wav
new file mode 100644
index 0000000..684915e
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st1_matt_3.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st1_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st1_old_0.wav
new file mode 100644
index 0000000..20a156f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st1_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st1_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st1_old_1.wav
new file mode 100644
index 0000000..1e4ec87
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st1_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_10_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_10_old_0.wav
new file mode 100644
index 0000000..5bf83cb
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_10_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_11_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_11_old_0.wav
new file mode 100644
index 0000000..404c2d8
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_11_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_13_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_13_old_0.wav
new file mode 100644
index 0000000..6abb0e6
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_13_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_14_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_14_old_0.wav
new file mode 100644
index 0000000..fa9df26
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_14_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_14_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_14_old_1.wav
new file mode 100644
index 0000000..a9a2cd6
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_14_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_15_matt_not_0.wav b/cosp-cdaudio-22khz/AUDIO/st_15_matt_not_0.wav
new file mode 100644
index 0000000..8f32d8c
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_15_matt_not_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_15_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_15_old_0.wav
new file mode 100644
index 0000000..1038088
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_15_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_15_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_15_old_1.wav
new file mode 100644
index 0000000..da34fa9
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_15_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_15_old_not_0.wav b/cosp-cdaudio-22khz/AUDIO/st_15_old_not_0.wav
new file mode 100644
index 0000000..c9f57f9
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_15_old_not_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_15_old_not_1.wav b/cosp-cdaudio-22khz/AUDIO/st_15_old_not_1.wav
new file mode 100644
index 0000000..2fa5f9b
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_15_old_not_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_16_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_16_old_0.wav
new file mode 100644
index 0000000..e808202
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_16_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_16_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_16_old_1.wav
new file mode 100644
index 0000000..aa2fdf2
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_16_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_17_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_17_old_0.wav
new file mode 100644
index 0000000..eee885a
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_17_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_17_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_17_old_1.wav
new file mode 100644
index 0000000..c3c3287
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_17_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_18_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_18_old_0.wav
new file mode 100644
index 0000000..13c10b6
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_18_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_18_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_18_old_1.wav
new file mode 100644
index 0000000..ab59cc0
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_18_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_19_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_19_old_0.wav
new file mode 100644
index 0000000..7220c43
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_19_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_20_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_20_old_0.wav
new file mode 100644
index 0000000..69de0ae
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_20_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_20w_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_20w_old_0.wav
new file mode 100644
index 0000000..97be063
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_20w_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_21_old.wav b/cosp-cdaudio-22khz/AUDIO/st_21_old.wav
new file mode 100644
index 0000000..7f1a084
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_21_old.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_22_matt.wav b/cosp-cdaudio-22khz/AUDIO/st_22_matt.wav
new file mode 100644
index 0000000..7283ec5
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_22_matt.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_22o_matt.wav b/cosp-cdaudio-22khz/AUDIO/st_22o_matt.wav
new file mode 100644
index 0000000..741e623
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_22o_matt.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_23_matt.wav b/cosp-cdaudio-22khz/AUDIO/st_23_matt.wav
new file mode 100644
index 0000000..1d193ca
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_23_matt.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_23o_matt.wav b/cosp-cdaudio-22khz/AUDIO/st_23o_matt.wav
new file mode 100644
index 0000000..5c63f4a
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_23o_matt.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_24_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/st_24_matt_0.wav
new file mode 100644
index 0000000..d11bde4
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_24_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_24_matt_1.wav b/cosp-cdaudio-22khz/AUDIO/st_24_matt_1.wav
new file mode 100644
index 0000000..10bfda9
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_24_matt_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_24_matt_2.wav b/cosp-cdaudio-22khz/AUDIO/st_24_matt_2.wav
new file mode 100644
index 0000000..d602539
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_24_matt_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_24_matt_3.wav b/cosp-cdaudio-22khz/AUDIO/st_24_matt_3.wav
new file mode 100644
index 0000000..6015108
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_24_matt_3.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_24_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_24_old_0.wav
new file mode 100644
index 0000000..796d978
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_24_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_24_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_24_old_1.wav
new file mode 100644
index 0000000..74e533c
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_24_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_24_old_2.wav b/cosp-cdaudio-22khz/AUDIO/st_24_old_2.wav
new file mode 100644
index 0000000..e23baa2
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_24_old_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_24_old_3.wav b/cosp-cdaudio-22khz/AUDIO/st_24_old_3.wav
new file mode 100644
index 0000000..7b22f98
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_24_old_3.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_24o_old_3.wav b/cosp-cdaudio-22khz/AUDIO/st_24o_old_3.wav
new file mode 100644
index 0000000..29d5664
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_24o_old_3.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_25_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/st_25_matt_0.wav
new file mode 100644
index 0000000..bd93eac
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_25_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_25_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_25_old_0.wav
new file mode 100644
index 0000000..cfe8102
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_25_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_25_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_25_old_1.wav
new file mode 100644
index 0000000..8db3441
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_25_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_25_old_2.wav b/cosp-cdaudio-22khz/AUDIO/st_25_old_2.wav
new file mode 100644
index 0000000..0dc948b
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_25_old_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_26_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_26_old_0.wav
new file mode 100644
index 0000000..ddf1a0e
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_26_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_26_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_26_old_1.wav
new file mode 100644
index 0000000..5bf7957
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_26_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_27_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_27_old_0.wav
new file mode 100644
index 0000000..48dc6fe
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_27_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_28_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_28_old_0.wav
new file mode 100644
index 0000000..548e7e4
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_28_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_28_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_28_old_1.wav
new file mode 100644
index 0000000..17be01a
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_28_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_29_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_29_old_0.wav
new file mode 100644
index 0000000..db24a81
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_29_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_2_not_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_2_not_old_0.wav
new file mode 100644
index 0000000..9dd0163
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_2_not_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_2_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_2_old_0.wav
new file mode 100644
index 0000000..237f5ba
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_2_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_30_old.wav b/cosp-cdaudio-22khz/AUDIO/st_30_old.wav
new file mode 100644
index 0000000..586066e
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_30_old.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_31_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/st_31_matt_0.wav
new file mode 100644
index 0000000..c4bfce0
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_31_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_31_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_31_old_0.wav
new file mode 100644
index 0000000..e8a9812
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_31_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_31_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_31_old_1.wav
new file mode 100644
index 0000000..e2e6e1f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_31_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_3_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_3_old_0.wav
new file mode 100644
index 0000000..ae93e35
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_3_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_4_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_4_old_0.wav
new file mode 100644
index 0000000..de15224
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_4_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_4_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_4_old_1.wav
new file mode 100644
index 0000000..fed5297
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_4_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_4_old_2.wav b/cosp-cdaudio-22khz/AUDIO/st_4_old_2.wav
new file mode 100644
index 0000000..e0a5abb
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_4_old_2.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_5_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_5_old_0.wav
new file mode 100644
index 0000000..c7ee72f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_5_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_6_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_6_old_0.wav
new file mode 100644
index 0000000..22815ea
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_6_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_7_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_7_old_0.wav
new file mode 100644
index 0000000..21cc283
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_7_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_8_matt_0.wav b/cosp-cdaudio-22khz/AUDIO/st_8_matt_0.wav
new file mode 100644
index 0000000..7565e17
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_8_matt_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_8_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_8_old_0.wav
new file mode 100644
index 0000000..beca5e3
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_8_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_9_old_0.wav b/cosp-cdaudio-22khz/AUDIO/st_9_old_0.wav
new file mode 100644
index 0000000..6611e6b
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_9_old_0.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/st_9_old_1.wav b/cosp-cdaudio-22khz/AUDIO/st_9_old_1.wav
new file mode 100644
index 0000000..d6fd3dd
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/st_9_old_1.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/thanks_for_key.wav b/cosp-cdaudio-22khz/AUDIO/thanks_for_key.wav
new file mode 100644
index 0000000..1b8bd5c
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/thanks_for_key.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/the_end_monastery.wav b/cosp-cdaudio-22khz/AUDIO/the_end_monastery.wav
new file mode 100644
index 0000000..6206fb5
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/the_end_monastery.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/the_end_prison.wav b/cosp-cdaudio-22khz/AUDIO/the_end_prison.wav
new file mode 100644
index 0000000..30da1f2
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/the_end_prison.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/the_key_please.wav b/cosp-cdaudio-22khz/AUDIO/the_key_please.wav
new file mode 100644
index 0000000..48d500f
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/the_key_please.wav differ
diff --git a/cosp-cdaudio-22khz/AUDIO/verpasst_brief.wav b/cosp-cdaudio-22khz/AUDIO/verpasst_brief.wav
new file mode 100644
index 0000000..88a7d93
Binary files /dev/null and b/cosp-cdaudio-22khz/AUDIO/verpasst_brief.wav differ
