
Any chances you'd be able to create an OpenGL context on a PB window? There's code for this on the forum for all platforms, but obviously not for Cocoa

Yes, there's NSOpenGLView.Polo wrote:Any chances you'd be able to create an OpenGL context on a PB window? There's code for this on the forum for all platforms, but obviously not for Cocoa
I know, though there is not OpenGL Gadget, ie just a part of a window ready to use with the opengl APIJ. Baker wrote:@Polo
Not sure what you are trying to do exactly but there is already OpenGL in PB. If you are looking for some king of scrolling text effect or something, it can be done.
Thanks for the tip, will try that!Fred wrote:You can use a WindowedScreen(), and use glcommand in it (indeed you need to use opengl subsystem on windows). Should work on all OS
@wilbert: i looked at your source, and you don't need to create the autorelease pool for each command, as PB already have one (which is flushed in Wait/WindowEvent())
Thanks for the info Fred.Fred wrote:@wilbert: i looked at your source, and you don't need to create the autorelease pool for each command, as PB already have one (which is flushed in Wait/WindowEvent())
That's greatFred wrote:The pool is created at the very beginning of the program, in PureBasic init routine, before any program command.
It's just a small command that internally creates a CFUUID and outputs it as a PureBasic string.J. Baker wrote:Hey Wilbert, can you explain more on the UUID? Thanks!
Does that help ?Apple docs wrote:UUIDs (Universally Unique Identifiers), also known as GUIDs (Globally Unique Identifiers) or IIDs (Interface Identifiers), are 128-bit values guaranteed to be unique. A UUID is made unique over both space and time by combining a value unique to the computer on which it was generated—usually the Ethernet hardware address—and a value representing the number of 100-nanosecond intervals since October 15, 1582 at 00:00:00.
The standard format for UUIDs represented in ASCII is a string punctuated by hyphens, for example 68753A44-4D6F-1226-9C60-0050E4C00067.