Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
void* outputFramebuffer for both GFX_LEFT and GFX_RIGHT
#1
I'm trying to enable 3D mode in mgba. This line here

Code:
void* outputFramebuffer = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, &height, &width);

draws the left screen of the top screen. I want to simultaniously draw the right screen to enable 3D (like when you slide the 3D slider to the top). I have tried numerous approaches but nothing worked.

Code:
void* outputFramebuffer = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, &height, &width);
void* outputFramebuffer = gfxGetFramebuffer(GFX_TOP, GFX_RIGHT, &height, &width);
Code:
void* outputFramebuffer = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, &height, &width), outputFramebuffer = gfxGetFramebuffer(GFX_TOP, GFX_RIGHT, &height, &width);

and so on. Every time I got a compile error. What am I doing wrong? How is it supposed to work? Pleas help me.
Reply



Messages In This Thread
void* outputFramebuffer for both GFX_LEFT and GFX_RIGHT - by Robin - 02-16-2016, 12:30 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2024 Melroy van den Berg.