Skip to content

Commit 229d619

Browse files
authored
Merge pull request #277 from rversteegen/inc_updates
Bindings updates and fixes from fbbindings
2 parents 16b5664 + 4b50fb6 commit 229d619

40 files changed

+2444
-751
lines changed

changelog.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ Version 1.08.0
33
[changed]
44
- array descriptor contains new 'flags' field. Careful, breaks binary compatibility plus chicken-egg problem to build fbc.
55
- fbc '-version' reports build date in yyyy-mm-dd format (aka build date iso)
6-
- updated SQLite headers for binding to SQLite 3.33.0
6+
- updated SQLite headers for binding to SQLite 3.34.0
77
- updated BASS headers for binding to BASS 2.4.15
88
- updated PostgreSQL headers for binding to PostgreSQL 12.0
9-
- updated curl headers for binding to curl 7.66.0
9+
- updated curl headers for binding to curl 7.73.0
10+
- updated SDL1.2 bindings to SDL_gfx 2.0.26
11+
- updated SDL2 bindings to SDL2 2.0.14, SDL2_image 2.0.5, SDL2_mixer 2.0.4, SDL2_ttf 2.0.15
12+
- updated LLVM and Clang bindings to 5.0.0
13+
- updated Chipmunk2D binding to 7.0.3
14+
- updated cryptlib binding to 3.4.5
15+
- updated DevIL binding to 1.8.0
1016
- warning level for all warnings is increased by 1. Default warning level is 1. Previously, default warning level was 0 and some warnings had level of -1.
1117
- reverted changes due sf.net #893: invalid suffixes due to '-lang fb'
1218
- reverted changes due sf.net #832: Fix bug allowing QB style suffixes on all keywords, regardless of -lang
@@ -61,6 +67,7 @@ Version 1.08.0
6167
- makefile: add arm and aarch64 targets to the bootstrap package
6268
- release: add arm and aarch64 targets as an option to the contrib/release.build.sh script
6369
- emscripten port (WIP, v1ctor & angros47)
70+
- bindings to SoLoud audio library (soloud_c.bi: C API only)
6471

6572
[fixed]
6673
- makefile: under MSYS2 (and friends), TARGET_ARCH is now identified from shell's default target architecture instead of shell's host architecture
@@ -99,6 +106,7 @@ Version 1.08.0
99106
- rtlib: FORMAT() should always use all the fix digits in exponential form, e.g. format(1234, "###e+#") = "123e+1"
100107
- github #92: FORMAT() should always have an exponent of 0 for zero.
101108
- sf.net #928: Wrong sign / type when printing BYTE values on arm/aarch64
109+
- various HANDLE_WM_*, FORWARD_WM_* macros in win/windowsx.bi were broken
102110

103111

104112
Version 1.07.0

inc/IL/il.bi

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
'' FreeBASIC binding for DevIL-1.7.8
1+
'' FreeBASIC binding for DevIL-1.8.0
22
''
33
'' based on the C header files:
44
'' ImageLib Sources
5-
'' Copyright (C) 2000-2009 by Denton Woods
5+
'' Copyright (C) 2000-2017 by Denton Woods
66
'' Last modified: 03/07/2009
77
''
88
'' Filename: IL/il.h
@@ -12,7 +12,7 @@
1212
'' This library is free software; you can redistribute it and/or
1313
'' modify it under the terms of the GNU Lesser General Public
1414
'' License as published by the Free Software Foundation; either
15-
'' version 2 of the License, or (at your option) any later version.
15+
'' version 2.1 of the License, or (at your option) any later version.
1616
''
1717
'' This library is distributed in the hope that it will be useful,
1818
'' but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -21,10 +21,11 @@
2121
''
2222
'' You should have received a copy of the GNU Lesser General Public
2323
'' License along with this library; if not, write to the Free Software
24-
'' Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24+
'' Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
25+
'' USA
2526
''
2627
'' translated to FreeBASIC by:
27-
'' Copyright © 2015 FreeBASIC development team
28+
'' Copyright © 2020 FreeBASIC development team
2829

2930
#pragma once
3031

@@ -104,8 +105,8 @@ const IL_HALF = &h140B
104105
const IL_VENDOR = &h1F00
105106
const IL_LOAD_EXT = &h1F01
106107
const IL_SAVE_EXT = &h1F02
107-
const IL_VERSION_1_7_8 = 1
108-
const IL_VERSION = 178
108+
const IL_VERSION_1_8_0 = 1
109+
const IL_VERSION = 180
109110
const IL_ORIGIN_BIT = &h00000001
110111
const IL_FILE_BIT = &h00000002
111112
const IL_PAL_BIT = &h00000004
@@ -175,6 +176,7 @@ const IL_TEXTURE = &h044F
175176
const IL_DPX = &h0450
176177
const IL_UTX = &h0451
177178
const IL_MP3 = &h0452
179+
const IL_KTX = &h0453
178180
const IL_JASC_PAL = &h0475
179181
const IL_NO_ERROR = &h0000
180182
const IL_INVALID_ENUM = &h0501

inc/IL/ilu.bi

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
'' FreeBASIC binding for DevIL-1.7.8
1+
'' FreeBASIC binding for DevIL-1.8.0
22
''
33
'' based on the C header files:
44
'' ImageLib Utility Sources
5-
'' Copyright (C) 2000-2009 by Denton Woods
5+
'' Copyright (C) 2000-2017 by Denton Woods
66
'' Last modified: 03/07/2009
77
''
88
'' Filename: IL/ilu.h
@@ -12,7 +12,7 @@
1212
'' This library is free software; you can redistribute it and/or
1313
'' modify it under the terms of the GNU Lesser General Public
1414
'' License as published by the Free Software Foundation; either
15-
'' version 2 of the License, or (at your option) any later version.
15+
'' version 2.1 of the License, or (at your option) any later version.
1616
''
1717
'' This library is distributed in the hope that it will be useful,
1818
'' but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -21,10 +21,11 @@
2121
''
2222
'' You should have received a copy of the GNU Lesser General Public
2323
'' License along with this library; if not, write to the Free Software
24-
'' Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24+
'' Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
25+
'' USA
2526
''
2627
'' translated to FreeBASIC by:
27-
'' Copyright © 2015 FreeBASIC development team
28+
'' Copyright © 2020 FreeBASIC development team
2829

2930
#pragma once
3031

@@ -40,8 +41,8 @@
4041

4142
#define __ilu_h_
4243
#define __ILU_H__
43-
const ILU_VERSION_1_7_8 = 1
44-
const ILU_VERSION = 178
44+
const ILU_VERSION_1_8_0 = 1
45+
const ILU_VERSION = 180
4546
const ILU_FILTER = &h2600
4647
const ILU_NEAREST = &h2601
4748
const ILU_LINEAR = &h2602
@@ -74,6 +75,7 @@ const ILU_JAPANESE = &h0803
7475
const ILU_SPANISH = &h0804
7576
const ILU_GERMAN = &h0805
7677
const ILU_FRENCH = &h0806
78+
const ILU_ITALIAN = &h0807
7779

7880
type ILinfo
7981
Id as ILuint
@@ -121,6 +123,7 @@ declare function iluEmboss() as ILboolean
121123
declare function iluEnlargeCanvas(byval Width as ILuint, byval Height as ILuint, byval Depth as ILuint) as ILboolean
122124
declare function iluEnlargeImage(byval XDim as ILfloat, byval YDim as ILfloat, byval ZDim as ILfloat) as ILboolean
123125
declare function iluEqualize() as ILboolean
126+
declare function iluEqualize2() as ILboolean
124127
declare function iluErrorString(byval Error as ILenum) as const zstring ptr
125128
declare function iluConvolution(byval matrix as ILint ptr, byval scale as ILint, byval bias as ILint) as ILboolean
126129
declare function iluFlipImage() as ILboolean
@@ -148,6 +151,7 @@ declare function iluSaturate4f(byval r as ILfloat, byval g as ILfloat, byval b a
148151
declare function iluScale(byval Width as ILuint, byval Height as ILuint, byval Depth as ILuint) as ILboolean
149152
declare function iluScaleAlpha(byval scale as ILfloat) as ILboolean
150153
declare function iluScaleColours(byval r as ILfloat, byval g as ILfloat, byval b as ILfloat) as ILboolean
154+
declare function iluSepia() as ILboolean
151155
declare function iluSetLanguage(byval Language as ILenum) as ILboolean
152156
declare function iluSharpen(byval Factor as ILfloat, byval Iter as ILuint) as ILboolean
153157
declare function iluSwapColours() as ILboolean

inc/IL/ilut.bi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
'' FreeBASIC binding for DevIL-1.7.8
1+
'' FreeBASIC binding for DevIL-1.8.0
22
''
33
'' based on the C header files:
44
'' ImageLib Utility Toolkit Sources
5-
'' Copyright (C) 2000-2009 by Denton Woods
5+
'' Copyright (C) 2000-2017 by Denton Woods
66
'' Last modified: 03/07/2009
77
''
88
'' Filename: IL/ilut.h
@@ -12,7 +12,7 @@
1212
'' This library is free software; you can redistribute it and/or
1313
'' modify it under the terms of the GNU Lesser General Public
1414
'' License as published by the Free Software Foundation; either
15-
'' version 2 of the License, or (at your option) any later version.
15+
'' version 2.1 of the License, or (at your option) any later version.
1616
''
1717
'' This library is distributed in the hope that it will be useful,
1818
'' but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -21,10 +21,11 @@
2121
''
2222
'' You should have received a copy of the GNU Lesser General Public
2323
'' License along with this library; if not, write to the Free Software
24-
'' Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24+
'' Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
25+
'' USA
2526
''
2627
'' translated to FreeBASIC by:
27-
'' Copyright © 2015 FreeBASIC development team
28+
'' Copyright © 2020 FreeBASIC development team
2829

2930
#pragma once
3031

@@ -45,8 +46,8 @@
4546

4647
#define __ilut_h_
4748
#define __ILUT_H__
48-
const ILUT_VERSION_1_7_8 = 1
49-
const ILUT_VERSION = 178
49+
const ILUT_VERSION_1_8_0 = 1
50+
const ILUT_VERSION = 180
5051
const ILUT_OPENGL_BIT = &h00000001
5152
const ILUT_D3D_BIT = &h00000002
5253
const ILUT_ALL_ATTRIB_BITS = &h000FFFFF
@@ -89,7 +90,6 @@ const ILUT_DIRECT3D10 = 6
8990

9091
#ifdef __FB_WIN32__
9192
#define __ILUT_CONFIG_H__
92-
#define IL_USE_PRAGMA_LIBS
9393
#undef ILUT_USE_ALLEGRO
9494
#undef ILUT_USE_DIRECTX8
9595
#define ILUT_USE_OPENGL

0 commit comments

Comments
 (0)