Who's Online |
99 user(s) are online ( 84 user(s) are browsing Forums)
Members: 2
Guests: 97
billyfish, beworld,
more...
|
|
Headlines |
-
libwprintf.lha - development/library/misc
Jan 18, 2021
-
amiupdate_dan.lha - utility/workbench
Jan 18, 2021
-
thumbnailmaker.lha - video/misc
Jan 18, 2021
-
pythonssl_22.lha - library/misc
Jan 17, 2021
-
redeht_ita.lha - network/samba
Jan 17, 2021
-
aiostreams.lha - video/misc
Jan 17, 2021
-
mce.lha - game/utility
Jan 16, 2021
-
libpsem.lha - development/library/misc
Jan 15, 2021
-
a1222-mcu-watcher.lha - utility/workbench
Jan 15, 2021
-
x5000-mcu-watcher.lha - utility/workbench
Jan 15, 2021
|
|
|
Re: Porting to AmigaOS4 thread | Subject: Re: Porting to AmigaOS4 thread by Raziel on 2020/11/24 12:58:04
@Capehill
I was rummaging through ScummVM's code and stumbled over these two instances regarding OpenGL.
#if !defined(AMIGAOS) && !defined(__MORPHOS__)
if (renderToFrameBuffer) {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
_frameBuffer = createFramebuffer(_engineRequestedWidth, _engineRequestedHeight);
_frameBuffer->attach();
}
#endif
}
#if !defined(AMIGAOS) && !defined(__MORPHOS__)
OpenGL::FrameBuffer *OpenGLSdlGraphics3dManager::createFramebuffer(uint width, uint height) {
#if !defined(USE_GLES2)
if (_antialiasing && OpenGLContext.framebufferObjectMultisampleSupported) {
return new OpenGL::MultiSampleFrameBuffer(width, height, _antialiasing);
} else
#endif
{
return new OpenGL::FrameBuffer(width, height);
}
}
#endif // AMIGAOS
1) Does #if !defined mean that the platforms are excluded or included? 2) Shouldn't it be #if !defined(__amigaos4__)? I though (AMIGAOS) was the old platform define for the classic 68k line? 3) What would happen if i change that to #if !defined(__amigaos4__) Are those (excluded?) GL commands supported? Could i get rid of this (exclusion?) completely?
Thank you very much
|
|