PureBasic 5.30 beta 9 released!

Developed or developing a new product in PureBasic? Tell the world about it.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: PureBasic 5.30 beta 3 released!

Post by davido »

Great. Thank you for all the hard work.

As a matter of interest when 5.30 is out of beta, will the online manual be based on version 5.3, 5.23LTS or both?
DE AA EB
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 5.30 beta 3 released!

Post by Fred »

grabiller wrote:Any chance to have access to the GetProcAddress (across platforms) from the OpenGLGadget for v5.30 ?
How would that work exactly ? You can already access it with regular API (glXGetProcAddress() and wglGetProcAddress()). Also I don't think it will work on OS X as we use Cocoa and you need objective C to access the context feature (https://developer.apple.com/library/mac ... rence.html). We can return the system context for all OS if you need it.
User avatar
grabiller
Enthusiast
Enthusiast
Posts: 309
Joined: Wed Jun 01, 2011 9:38 am
Location: France - 89220 Rogny-Les-Septs-Ecluses
Contact:

Re: PureBasic 5.30 beta 3 released!

Post by grabiller »

Fred wrote:
grabiller wrote:Any chance to have access to the GetProcAddress (across platforms) from the OpenGLGadget for v5.30 ?
How would that work exactly ? You can already access it with regular API (glXGetProcAddress() and wglGetProcAddress()). Also I don't think it will work on OS X as we use Cocoa and you need objective C to access the context feature (https://developer.apple.com/library/mac ... rence.html). We can return the system context for all OS if you need it.
I was thinking about something like this:

Code: Select all

; Prototype of PB cross-platform 'GetProcAddress' function
Prototype.i glGetProcAddress_func( func_name.s )

; Retrieve function, granted #0 is an instance of an OpenGLGadget
SetGadgetAttribute( 0, #PB_OpenGL_SetContext, #True ) ; Make sure we are binded to the Gadget Context
Global glGetProcAddress.glGetProcAddress_func = GetGadgetAttribute( 0, #PB_OpenGL_ProcAddressFunc )

; Using the function
Prototype glBindProgramPipeline_func( pipeline.l )
Global glBindProgramPipeline.glBindProgramPipeline_func = glGetProcAddress("glBindProgramPipeline")
On Mac OSX - normaly, I'm not a Mac expert but I'm pretty sure it should work like this - you/we don't need to use Cocoa. Just use dlopen/dlsym/dlclose against the "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" to directly retrieve all OpenGL functions including extensions. On Mac you can get the functions just through dlsym instead of a specific function like "glXGetProcAddress()".

Your job would then be to create an internal PB 'glGetProcAddress_func' that wraps glx/wgl and dlsym calls across platforms, and that get exposed to us, the users, through the GetGadgetAttribute( 0, #PB_OpenGL_ProcAddressFunc ) call.
guy rabiller | radfac founder / ceo | raafal.org
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 5.30 beta 3 released!

Post by Fred »

Thanks for clarifying. It just seems too messy to me, you can still do a small wrapper in PB if needed (using OpenLibrary() on OS X and dedicated function on other OS).
User avatar
mback2k
Enthusiast
Enthusiast
Posts: 257
Joined: Sun Dec 02, 2007 12:11 pm
Location: Germany

Re: PureBasic 5.30 beta 1 released!

Post by mback2k »

CSHW89 wrote:Wow, great features in particular the new PREPROCESS compiler flag. But for simpler implementation of precompiler is it possible to insert a new tool trigger in the "tool-chain" like this?

Code: Select all

Run tools with trigger "Before Compile/Run"
PREPROCESS
Run tools with new trigger "After Preprocess"
COMPILE
Run tools with trigger "After Compile/Run"
...
I second that. I think it would be great if the existing IDE tool triggers "Before Compile/Run" and "Before Create Executable" could be extended to have a checkbox that makes them use the pre-compiled output.
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: PureBasic 5.30 beta 3 released!

Post by coco2 »

Oops tapatalk seems to be double posting but not. Anyway I was wondering with OpenGL do you need a DLL for that?
julesd
User
User
Posts: 23
Joined: Fri May 24, 2013 1:39 am

Re: PureBasic 5.30 beta 3 released!

Post by julesd »

Just wondering if the new opengl gadget will be added to the visual form editor soon, or at all?
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: PureBasic 5.30 beta 3 released!

Post by Polo »

julesd wrote:Just wondering if the new opengl gadget will be added to the visual form editor soon, or at all?
Will try to!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: PureBasic 5.30 beta 3 released!

Post by ts-soft »

@Polo
and the scintillagadget to :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: PureBasic 5.30 beta 3 released!

Post by Polo »

Ok I've added the OpenGLGadget.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: PureBasic 5.30 beta 3 released!

Post by davido »

@Polo Fast work!

Thank you. :D
DE AA EB
julesd
User
User
Posts: 23
Joined: Fri May 24, 2013 1:39 am

Re: PureBasic 5.30 beta 3 released!

Post by julesd »

Why that was fast.

Just wanted to mention that PureBasic really seams fast and the web site is also really quick.
Everything about it is great.

Just wondering is there a way to change themes on the visual form editor, if not will this be put in place some day?
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: PureBasic 5.30 beta 3 released!

Post by davido »

@ julesd

It was a straight answer.
Polo earns his 'bread' elsewhere. He's also doing a great job with the Form.
DE AA EB
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: PureBasic 5.30 beta 3 released!

Post by Polo »

Scintilla is now added as well.
julesd wrote:Just wondering is there a way to change themes on the visual form editor, if not will this be put in place some day?
Which theme do you mean?
You can switch between Windows 7, 8 and OS X in preferences if that's what you are talking about?
julesd
User
User
Posts: 23
Joined: Fri May 24, 2013 1:39 am

Re: PureBasic 5.30 beta 3 released!

Post by julesd »

I mean like color themes changing the colors, of buttons Black with white fonts, blue with red fonts color of panels matching buttons ect...

basically the ability to change background color and forground color of every gadget on the Form, and also the form as well.

I know you can change the background of the form already. But being able to do this for the gadgets as well, we can create color themes for our form and gadgets.
Post Reply