yoshisuga / MAME4iOS

Multiple Arcade Machine Emulator for iOS, iPadOS, tvOS, macOS (Catalyst)
Other
635 stars 103 forks source link

CGBitmapContextCreate error #436

Closed LiuSky closed 1 year ago

LiuSky commented 1 year ago
截屏2023-04-13 00 44 19 截屏2023-04-13 00 44 06

WechatIMG332 WechatIMG331 WechatIMG333

I want to render with img_buffer, but the result is not correct. I would like to ask you which of my above screenshot code is wrong. Thanks for your advice @ToddLa

ToddLa commented 1 year ago

That is old code, current M4i does not render like that, it uses Metal...

ToddLa commented 1 year ago

You can get a image via MAME snapshot key....

LiuSky commented 1 year ago

It's finally the big boy. I know that currently m4i uses metal render. But I want to try using img_buffer. But it never turned out right. I'd like you to take a look at it. Thank you @ToddLa

LiuSky commented 1 year ago

I don't want a screenshot, I want a bitmap of the entire render. @ToddLa

ToddLa commented 1 year ago

Why? Rendering via CoreImage is old skool.

You can grab a snapshot after the Metal render?

Do you just need a frame snap, Or are you making a whole new method to draw, ie a new MAME iOS app?

Or maybe you can do what you want with a Metal Shader?

ToddLa commented 1 year ago

You should roll back (via git) MAME4iOS to a version that supported CoreImage and you will see how it used the software renderer

LiuSky commented 1 year ago

Why? Rendering via CoreImage is old skool.

You can grab a snapshot after the Metal render?

Do you just need a frame snap, Or are you making a whole new method to draw, ie a new MAME iOS app?

Or maybe you can do what you want with a Metal Shader?

yes。I want to go back to the old ways. I want to give it a try.

LiuSky commented 1 year ago

Why? Rendering via CoreImage is old skool.

You can grab a snapshot after the Metal render?

Do you just need a frame snap, Or are you making a whole new method to draw, ie a new MAME iOS app?

Or maybe you can do what you want with a Metal Shader?

I just want you to look at how to render a bitmap using renderer_sdl1

ToddLa commented 1 year ago

And this is a MAME4iOS issue how?

Use Discord for random questions, this is for bugs/features/issues