[MPlayer-dev-eng] OpenGL for Mac OS X (was: New OpenGL vo module (based on vo_gl2))

Dan Christiansen danchr at daimi.au.dk
Sat Oct 18 03:19:57 CEST 2003


On Thursday, October 16, 2003, at 11:27 AM, Alex Beregszaszi wrote:
> Hi,
>
> Don't commit this!
>
> I'm going to care about this:
> * separate common parts to gl_common.c
> * vo_glx.c for x11/glx
> * vo_wgl.c for win32

Please take a Mac OS X port into consideration when figuring out how to 
reorganise it ;) I attempted to make a mac native vo, but 
unfortunately, vo_gl2 won't work on my mac - neither x11 nor native. If 
any one has an opportunity to test this, I'd like to hear if/how it 
works. Anyhow, I'm eagerly awaiting what you end up with so I can 
finish this :)

It's done in Objective-C since that's *sooo* much easier to make a UI 
in, and I don't know how to use the C APIs for UI on Mac OS X. I had to 
make a minor change to Makefile to make it recognise the .m suffix.

Considering the design, I'd suggest:
gl_common.[ch]
{mac,win,x11}_common.[ch]
vo_gl.c
vo_gl2.c
vo_opengl.c
...

This way, there would be a place for:
- Shared OpenGL cod
- Native code
- The module-specific code

- Dan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-gl2-mac.tar.bz2
Type: application/octet-stream
Size: 5244 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031018/71a90586/attachment.obj>


More information about the MPlayer-dev-eng mailing list