mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-07 15:52:59 +12:00
FINALLY IOS GRAPHICS
This commit is contained in:
parent
88e986ca53
commit
1bd00a87f9
2 changed files with 1 additions and 9 deletions
|
@ -25,20 +25,16 @@ IOS_EXPORT void iosCreateEmulator() {
|
|||
// auto path = emulator->getAppDataRoot() / "Kirb Demo.3ds";
|
||||
// auto path = emulator->getAppDataRoot() / "Kirb Demo.3ds";
|
||||
|
||||
auto path = emulator->getAppDataRoot() / "SimplerTri.elf";
|
||||
auto path = emulator->getAppDataRoot() / "toon_shading.elf";
|
||||
emulator->loadROM(path);
|
||||
printf("Created emulator\n");
|
||||
}
|
||||
|
||||
IOS_EXPORT void iosRunFrame(CAMetalLayer* layer) {
|
||||
printf("Running a frame\n");
|
||||
// void* layerBridged = (void*)CFBridgingRetain(layer);
|
||||
void* layerBridged = (__bridge void*)layer;
|
||||
|
||||
emulator->getRenderer()->setMTKLayer(layerBridged);
|
||||
emulator->runFrame();
|
||||
// CFRelease(layerBridged);
|
||||
|
||||
// CFBridgingAutorelease(layerBridged);
|
||||
printf("Ran a frame\n");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue