Skip Menu |

This queue is for tickets about the Prima CPAN distribution.

Report information
The Basics
Id: 69130
Status: resolved
Priority: 0/
Queue: Prima

People
Owner: Nobody in particular
Requestors: chm [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.30
Fixed in: (no value)



Subject: Feature Request: OpenGL context/widget support
I'm impressed with the cross-platform portability of
the Prima library and toolkit.  However, my application
involves 3-D graphics display and animation.

Are there any plans to support OpenGL context in
windows or widgets?

Regards,
Chris
Could be cool, will try to look into it. If you want to, you're welcome to participate.
Hi Chris, My mail server crashed and won't come up, so I can't get to access my mail for the las two days. I'm writing here until it is fixed, but I'd like ask you to look at this proof of concept I wrote in the last two days: https://github.com/dk/Prima-OpenGL I still believe that the common code abstracted in win32.c and x11.c (and especially parsing of GL attributes) would be probably better off as a part of OpenGL distribution. It would require more C-level integration with other toolkits though, for passing around the existing display connection handle, GUI font handles, and possibly image bits. /dk
Subject: Re: [rt.cpan.org #69130] Feature Request: OpenGL context/widget support
Date: Fri, 01 Jul 2011 18:45:46 -0400
To: bug-Prima [...] rt.cpan.org
From: chm <devel.chm.01 [...] gmail.com>
On 7/1/2011 8:36 AM, KARASIK via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=69130> > > My mail server crashed and won't come up, so I can't get to access my > mail for the las two days. I'm writing here until it is fixed, but I'd > like ask you to look at this proof of concept I wrote in the last two > days: https://github.com/dk/Prima-OpenGL
Thanks, I'll give it a go this evening. Show quoted text
> I still believe that the common code abstracted in win32.c and x11.c > (and especially parsing of GL attributes) would be probably better off > as a part of OpenGL distribution. It would require more C-level > integration with other toolkits though, for passing around the existing > display connection handle, GUI font handles, and possibly image bits.
I like the idea of putting context code (in some portable abstraction) in Perl OpenGL (a.k.a., POGL) and enabling GUI toolkits to provide any needed functionality *to* POGL. This would allow for support of any GUI toolkit(s) that could work with OpenGL contexts. --Chris
Subject: Re: [rt.cpan.org #69130] Feature Request: OpenGL context/widget support
Date: Fri, 01 Jul 2011 19:23:55 -0400
To: bug-Prima [...] rt.cpan.org
From: chm <devel.chm.01 [...] gmail.com>
On 7/1/2011 6:45 PM, devel.chm.01@gmail.com via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=69130> > > On 7/1/2011 8:36 AM, KARASIK via RT wrote:
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=69130> >> >> My mail server crashed and won't come up, so I can't get to access my >> mail for the las two days. I'm writing here until it is fixed, but I'd >> like ask you to look at this proof of concept I wrote in the last two >> days: https://github.com/dk/Prima-OpenGL
> > Thanks, I'll give it a go this evening.
I just tried a quick test build from the README and for some reason it is trying to to a win32 build on my cygwin install. I'll drill down into the build process to see if I can determine what is going on. Regards, Chris Show quoted text
>> I still believe that the common code abstracted in win32.c and x11.c >> (and especially parsing of GL attributes) would be probably better off >> as a part of OpenGL distribution. It would require more C-level >> integration with other toolkits though, for passing around the existing >> display connection handle, GUI font handles, and possibly image bits.
> > I like the idea of putting context code (in some > portable abstraction) in Perl OpenGL (a.k.a., POGL) > and enabling GUI toolkits to provide any needed > functionality *to* POGL. This would allow for > support of any GUI toolkit(s) that could work with > OpenGL contexts. > > --Chris > > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1388 / Virus Database: 1516/3738 - Release Date: 07/01/11 > >
Subject: Re: [rt.cpan.org #69130] Feature Request: OpenGL context/widget support
Date: Sat, 02 Jul 2011 15:23:13 -0400
To: bug-Prima [...] rt.cpan.org
From: chm <devel.chm.01 [...] gmail.com>
Before I get to debugging the cygwin build, I figured I would try building Prima::OpenGL with strawaberry perl portable: (1) Prima and OpenGL::Prima built out-of-the-box for strawberry perl portable v5.10.1.2 (2) Prima fails to build for strawberry perl portable version v5.12.3.0 with the error message: g++.exe -mdll -s -L"C:\ftp\perl\strawberry\v5.12.3\v5_12_3_0\perl\lib\CORE" -L"C:\ftp\perl\strawberry\v5.12.3\v5_12_3_0\c\lib" -LC:\ftp\perl\strawberry\v5.12.3\v5_12_3_0\c\lib -LC:\ftp\perl\strawberry\v5.12.3\v5_12_3_0\perl\lib\CORE -o auto\Prima\Prima.dll AbstractMenu.o AccelTable.o Application.o Clipboard.o Component.o DeviceBitmap.o Drawable.o File.o Icon.o Image.o Menu.o Object.o Popup.o primguts.o Printer.o Timer.o Utils.o Widget.o Widget_geometry.o Window.o img\bc_color.o img\bc_const.o img\bc_extra.o img\codec_bmp.o img\codec_jpeg.o img\codec_png.o img\codec_tiff.o img\codec_ungif.o img\codec_Xpm.o img\codecs.o img\conv.o img\ic_conv.o img\img.o img\imgscale.o img\imgtype.o img\put.o win32\apc.o win32\clip.o win32\cursor.o win32\dev.o win32\files.o win32\global.o win32\gp.o win32\misc.o win32\stock.o win32\timers.o -lXpm -lgif -ltiff -lpng -ljpeg -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lgcc -lgdi32 -lmpr -lwinspool -lcomdlg32 -lperl512 win32/Prima.def c:/ftp/perl/strawberry/v5.12.3/v5_12_3_0/c/bin/../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686-w64-mingw32/lib/libmingw32.a(lib32_libmingw32_a-gccmain.o): In function `_do_global_ctors': /opt/W64_156151-src.32/build-crt/../mingw-w64-crt/crt/gccmain.c:46: multiple definition of `__do_global_ctors' c:/ftp/perl/strawberry/v5.12.3/v5_12_3_0/c/bin/../lib/gcc/i686-w64-mingw32/4.4.3/libgcc.a(__main.o):/opt/W64_156151-src.32/build-gcc/i686-w64-mingw32/libgcc/../../../gcc44-svn/libgcc/../gcc/libgcc2.c:2160: first defined here c:/ftp/perl/strawberry/v5.12.3/v5_12_3_0/c/bin/../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686-w64-mingw32/lib/libmingw32.a(lib32_libmingw32_a-gccmain.o): In function `_main': /opt/W64_156151-src.32/build-crt/../mingw-w64-crt/crt/gccmain.c:80: multiple definition of `__main' c:/ftp/perl/strawberry/v5.12.3/v5_12_3_0/c/bin/../lib/gcc/i686-w64-mingw32/4.4.3/libgcc.a(__main.o):/opt/W64_156151-src.32/build-gcc/i686-w64-mingw32/libgcc/../../../gcc44-svn/libgcc/../gcc/libgcc2.c:2184: first defined here c:/ftp/perl/strawberry/v5.12.3/v5_12_3_0/c/bin/../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686-w64-mingw32/lib/libmingw32.a(lib32_libmingw32_a-gccmain.o): In function `_do_global_dtors': /opt/W64_156151-src.32/build-crt/../mingw-w64-crt/crt/gccmain.c:28: multiple definition of `__do_global_dtors' c:/ftp/perl/strawberry/v5.12.3/v5_12_3_0/c/bin/../lib/gcc/i686-w64-mingw32/4.4.3/libgcc.a(__main.o):/opt/W64_156151-src.32/build-gcc/i686-w64-mingw32/libgcc/../../../gcc44-svn/libgcc/../gcc/libgcc2.c:2131: first defined here c:/ftp/perl/strawberry/v5.12.3/v5_12_3_0/c/bin/../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686-w64-mingw32/lib/libmingw32.a(lib32_libmingw32_a-gccmain.o):gccmain.c:(.text+0x15a): undefined reference to `_imp__FreeLibrary@4' collect2: ld returned 1 exit status dmake.exe: Error code 129, while making 'auto\Prima\Prima.dll' KARASIK/Prima-1.30.tar.gz C:\ftp\perl\strawberry\v5.12.3\v5_12_3_0\c\bin\dmake.exe -- NOT OK Running make test Can't test without successful make Failed during this command: KARASIK/Prima-1.30.tar.gz : make NO I'm not sure where to start with this one but it is working for one version of strawberry perl portable. Will continue to keep you posted with progress. --Chris
Published Prima::OpenGL, which works against the latest github sources of Prima. Next release 1.31 should work out of box with it.
Thanks for the update, Dmitry.  I'm in the process of refactoring
OpenGL to use GLEW for the bindings which is taking a while.
Lots of lines of code to do and check.  I'll keep you posted when
I catch up to the GUI library support part.

--Chris

On Thu Jul 21 03:58:37 2011, KARASIK wrote:
Show quoted text
> Published Prima::OpenGL, which works against the latest github sources
> of Prima. Next release 1.31 should work out of box with it.

Subject: Re: [rt.cpan.org #69130] Feature Request: OpenGL context/widget support
Date: Thu, 21 Jul 2011 14:37:00 +0200
To: Chris Marshall via RT <bug-Prima [...] rt.cpan.org>
From: Dmitry Karasik <dmitry [...] karasik.eu.org>
Hi Chris, Yes, this is the status of how far I got the intergration between Prima and OpenGL... I see that you have other ideas, with PDL, IPA etc etc, and this is really great, I'm just not mentally flexible enough to jump in and code that too. It could be great to see OpenGL's code tightened, working in more evnvironments, with more modern software, etc etc, as soon I see a possibility to join in, I'd definitely do. Thanks for your efforts! ;) /dk On Thu, Jul 21, 2011 at 08:28:34AM -0400, Chris Marshall via RT wrote: Show quoted text
> Queue: Prima > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=69130 > > > Thanks for the update, Dmitry. I'm in the process of refactoring > OpenGL to use GLEW for the bindings which is taking a while. > Lots of lines of code to do and check. I'll keep you posted when > I catch up to the GUI library support part. > > --Chris > > On Thu Jul 21 03:58:37 2011, KARASIK wrote:
> > Published Prima::OpenGL, which works against the latest github sources > > of Prima. Next release 1.31 should work out of box with it.
-- Sincerely, Dmitry Karasik
Subject: Re: [rt.cpan.org #69130] Resolved: Feature Request: OpenGL context/widget support
Date: Thu, 21 Jul 2011 08:38:54 -0400
To: bug-Prima [...] rt.cpan.org
From: Chris Marshall <devel.chm.01 [...] gmail.com>
Hi Dmitry- The multi-window support is *very* cool. Thanks! One thing I noticed on trying it out was that toggling off and on for the lighting resulted in no lighting in that window. Cloning another copy would show lighting again. That would disappear if the setting was toggled on then off. Cheers, Chris On Thu, Jul 21, 2011 at 3:58 AM, KARASIK via RT <bug-Prima@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=69130 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message. >
fixed, thanks!