Search found 26 matches

by benmalartre
Sun Aug 15, 2021 8:16 am
Forum: Coding Questions
Topic: SortStructuredArray Ascending
Replies: 3
Views: 3159

Re: SortStructuredArray Ascending

my bad! thanks for the answer!
by benmalartre
Sun Aug 08, 2021 10:58 am
Forum: Coding Questions
Topic: SortStructuredArray Ascending
Replies: 3
Views: 3159

SortStructuredArray Ascending

Hello, it appears the SortStructuredArray function, used with #PB_SORT_ASCENDING mode,
is returning a wrong array. a first empty element is added to the array and the one that should be last has disappeared.

The sort is working fine with #PB_SORT_DESCENDING but i have to reverse the array in a ...
by benmalartre
Thu Nov 14, 2019 7:33 am
Forum: 3D Programming
Topic: PB 5.51 GL Constants
Replies: 8
Views: 6381

Re: PB 5.51 GL Constants

Hello Niffo
here is a link to OpenGLExt.pbi

https://github.com/benmalartre/Noodle/b ... nGLExt.pbi
by benmalartre
Tue Oct 15, 2019 1:50 pm
Forum: Mac OSX
Topic: Linker OSX version error
Replies: 2
Views: 2413

Re: Linker OSX version error

OS Version: 10.13.6 (MacOS High Sierra, I can't update the OS anymore...)
Xcode Version: 9.3
Purebasic Version: 7.1

I found the source of the problem :oops: :
an imported function in purebasic was not declared in the cpp project :D
by benmalartre
Mon Oct 14, 2019 7:13 pm
Forum: Mac OSX
Topic: Linker OSX version error
Replies: 2
Views: 2413

Linker OSX version error

Hello forum!
When linking a static library(bullet.a), I get some errors like the one below:

ld: warning: object file (Window.a(AddKeyboardShortcut.o)) was built for newer OSX version (10.8) than being linked (10.7)

I successfully get rid of the one related to my library by setting the -mmacosx ...
by benmalartre
Thu Jul 04, 2019 10:37 am
Forum: Coding Questions
Topic: ParseJSON fail when CreateJSON with #PB_Any
Replies: 4
Views: 1815

Re: ParseJSON fail when CreateJSON with #PB_Any

It's not a compilation warning, it's a compilation error!!

But for sure I misread the documentation!!!
Sorry for the noise and thanks kenmo!

Ben
by benmalartre
Wed Jul 03, 2019 7:37 pm
Forum: Coding Questions
Topic: ParseJSON fail when CreateJSON with #PB_Any
Replies: 4
Views: 1815

ParseJSON fail when CreateJSON with #PB_Any

hello,

Code: Select all

Define json.i = CreateJSON(#PB_Any)
Define datas$ = "[1, 2, 3, 4, 5]"  
ParseJSON(json, datas$)
give me this error:
[ERROR]#JSON object number is very high (over 10000), are you sure of that?

and stop the compilation
by benmalartre
Tue Jan 15, 2019 8:30 pm
Forum: Coding Questions
Topic: Defined(Label, #PB_Label) problem ?
Replies: 7
Views: 1675

Re: Defined(Label, #PB_Label) problem ?

Thanks all to have a look
I avoid the problem by declaring empty labels and not use Defined(Label, #PB_Label) inside of my procs
by benmalartre
Tue Jan 15, 2019 12:58 pm
Forum: Coding Questions
Topic: Defined(Label, #PB_Label) problem ?
Replies: 7
Views: 1675

Defined(Label, #PB_Label) problem ?

Here is the problem I'm facing:

I want to check the existence of a label when creating an object
while the label is defined inside the module itself, it is not inside a procedure of the module
(in fact it is , I can assign it with ?Label, but the function Defined(Label, #PB_Label) says it's not)

I ...
by benmalartre
Tue Jan 31, 2017 9:38 pm
Forum: 3D Programming
Topic: PB 5.51 GL Constants
Replies: 8
Views: 6381

Re: PB 5.51 GL Constants

No problems with the encoding of my shaders...

Here is my shader Module


;============================================================================================
; Shader Module Declararion ...
by benmalartre
Tue Jan 31, 2017 9:30 pm
Forum: 3D Programming
Topic: PB 5.51 GL Constants
Replies: 8
Views: 6381

Re: PB 5.51 GL Constants

replacing the opengl.res file isn't working...
however I managed to compile by introducing a CompilerIf checking the PB version and declaring only missing GL constants that I use


CompilerIf #PB_Compiler_Version < 550
;Here I declare ALL GL Constants
CompilerElse
#GL_SHADING_LANGUAGE_VERSION ...
by benmalartre
Tue Jan 31, 2017 1:41 pm
Forum: 3D Programming
Topic: PB 5.51 GL Constants
Replies: 8
Views: 6381

Re: PB 5.51 GL Constants

Thanks for the answer applePi!
I didn't knew about residents files...
I encountered the problem upgrading from PB 5.41 to PB 5.51...
I'll try replacing the .res file tonight...
by benmalartre
Mon Jan 30, 2017 10:19 pm
Forum: 3D Programming
Topic: PB 5.51 GL Constants
Replies: 8
Views: 6381

PB 5.51 GL Constants

Hello, apparently some (but not all) OpenGL Globals Constants were added in the latest release of PB 5.51
And they are conflicting with my GL Module(I use it globally ie: UseModule OpenGL)
Where/How can I find the exhaustive list of those Constants?
by benmalartre
Sun Mar 06, 2016 6:53 pm
Forum: Tricks 'n' Tips
Topic: GLFW 304 wrapper 1.03 (Win/Lin/OSX x86/x64 Static/Dynamic)
Replies: 46
Views: 23780

Re: GLFW 304 wrapper 1.03 (Win/Lin/OSX x86/x64 Static/Dynami

To compile in Release mode
I had to add

Code: Select all

ImportC "/usr/lib/x86_64-linux-gnu/libxcb.a" : EndImport
ImportC "/usr/lib/x86_64-linux-gnu/libXau.a" : EndImport 
ImportC "/usr/lib/x86_64-linux-gnu/libXdmcp.a" : EndImport 
by benmalartre
Sun Mar 06, 2016 4:03 pm
Forum: Tricks 'n' Tips
Topic: GLFW 304 wrapper 1.03 (Win/Lin/OSX x86/x64 Static/Dynamic)
Replies: 46
Views: 23780

Re: GLFW 304 wrapper 1.03 (Win/Lin/OSX x86/x64 Static/Dynami

I solved the problem by providing full path to static libraries


ImportC LIB_INCLUDE_PATH+"glfw3.a" : EndImport

ImportC "/usr/lib/x86_64-linux-gnu/libX11.a" : EndImport
ImportC "/usr/lib/x86_64-linux-gnu/libXinerama.a" : EndImport
ImportC "/usr/lib/x86_64-linux-gnu/libXi.a" : EndImport ...