Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
99 user(s) are online (84 user(s) are browsing Forums)

Members: 2
Guests: 97

billyfish, beworld, more...

Support us!

Headlines

Report message:*
 

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 widthuint height) {
#if !defined(USE_GLES2)
    
if (_antialiasing && OpenGLContext.framebufferObjectMultisampleSupported) {
        return new 
OpenGL::MultiSampleFrameBuffer(widthheight_antialiasing);
    } else
#endif
    
{
        return new 
OpenGL::FrameBuffer(widthheight);
    }
}
#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

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project