PureBasic Forumhttps://www.purebasic.fr/english/ PB 5.51 GL Constantshttps://www.purebasic.fr/english/viewtopic.php?f=36&t=67651 Page 1 of 1

 Author: benmalartre [ Mon Jan 30, 2017 10:19 pm ] Post subject: PB 5.51 GL Constants Hello, apparently some (but not all) OpenGL Globals Constants were added in the latest release of PB 5.51And 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?

 Author: applePi [ Tue Jan 31, 2017 9:19 am ] Post subject: Re: PB 5.51 GL Constants There is a big lists of constants posted here by luisviewtopic.php?f=13&t=45687&start=0also the file C:\Purebasic\Residents\OpenGL.res contains the constants in purebasic distribution, can be opened with notepad as textcopy the name of the constant and search for it in luis unclude files to get its value.using Dos comp utility (in windows xp):the OpenGL.res in PB 5.51 is the same as in PB 5.43but different than OpenGL.res in PB 5.31 and 5.40so i suggest to backup OpenGL.res in your PB5.51 and replace it with the OpenGL.res from PB5.40 or 5.31 it may work

 Author: benmalartre [ Tue Jan 31, 2017 1:41 pm ] Post subject: 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...

 Author: applePi [ Tue Jan 31, 2017 2:15 pm ] Post subject: Re: PB 5.51 GL Constants i suggest first to try your demo in 5.43/5.44 which have the same OpenGL.res as 5.51 and compile it as ascii not unicode and see if it works. if it works then it is a unicode issue:related to 5.51: as pjay said (Many of the OpenGL commands that you pass strings to will need modifying, this is due to PB switching to Unicode strings internally): viewtopic.php?f=36&t=62179&hilit=Shader+coding+with+PB+possible&start=30i have faced this also here viewtopic.php?f=12&t=49583&hilit=Small+cross+platform+OpenGL+demo&start=45