Page 8 of 14
Re: PureBasic 5.30 beta 3 released!
Posted: Mon Jun 09, 2014 4:27 pm
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?
Re: PureBasic 5.30 beta 3 released!
Posted: Mon Jun 09, 2014 7:14 pm
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.
Re: PureBasic 5.30 beta 3 released!
Posted: Mon Jun 09, 2014 10:56 pm
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.
Re: PureBasic 5.30 beta 3 released!
Posted: Tue Jun 10, 2014 12:14 am
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).
Re: PureBasic 5.30 beta 1 released!
Posted: Tue Jun 10, 2014 1:07 pm
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.
Re: PureBasic 5.30 beta 3 released!
Posted: Wed Jun 11, 2014 5:18 am
by coco2
Oops tapatalk seems to be double posting but not. Anyway I was wondering with OpenGL do you need a DLL for that?
Re: PureBasic 5.30 beta 3 released!
Posted: Fri Jun 13, 2014 12:08 pm
by julesd
Just wondering if the new opengl gadget will be added to the visual form editor soon, or at all?
Re: PureBasic 5.30 beta 3 released!
Posted: Fri Jun 13, 2014 4:49 pm
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!
Re: PureBasic 5.30 beta 3 released!
Posted: Fri Jun 13, 2014 5:27 pm
by ts-soft
@Polo
and the scintillagadget to

Re: PureBasic 5.30 beta 3 released!
Posted: Fri Jun 13, 2014 5:36 pm
by Polo
Ok I've added the OpenGLGadget.
Re: PureBasic 5.30 beta 3 released!
Posted: Sat Jun 14, 2014 7:45 am
by davido
@
Polo Fast work!
Thank you.

Re: PureBasic 5.30 beta 3 released!
Posted: Sat Jun 14, 2014 7:45 pm
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?
Re: PureBasic 5.30 beta 3 released!
Posted: Sat Jun 14, 2014 8:05 pm
by davido
@ julesd
It was a straight answer.
Polo earns his 'bread' elsewhere. He's also doing a great job with the Form.
Re: PureBasic 5.30 beta 3 released!
Posted: Sun Jun 15, 2014 1:42 pm
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?
Re: PureBasic 5.30 beta 3 released!
Posted: Mon Jun 16, 2014 12:36 am
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.