gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > gl Functions / both screens

#144640 - napharianwolf - Mon Nov 05, 2007 6:33 am

I'm new to ds development, but familiar with c++/c and opengl. I haven't put a lot of work into actually programming until I learn some stuff, but I have noticed that libnds has opengl functions.

The question is, can these functions be used on both screens or just the one with 3d enabled? I only need 3d on one screen, but I've come used to using opengl for 2d also...

Also, can anyone point me towards a good tutorial that shows specifically the drawing between screens?

Any help is appreciated,

wolftousen

#144659 - tepples - Mon Nov 05, 2007 1:31 pm

OpenGL works only on the screen with 3D. You'll have to learn the classic GBA background and sprite architecture in order to draw anything on the other screen.[1] Try reading through the TONC tutorials.


[1] Yes, I remembered the display capture method. But it's an advanced method, it reduces the frame rate, and you still have to use the GBA style background modes to draw the captured image.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#144662 - kusma - Mon Nov 05, 2007 1:38 pm

AFAIK it is possible to use 3d both screens by using the capture-capability if you accept dropping from 60fps to 30fps and wasting an entire vram-bank. I'd say listen to tepples on this one.