TinyGL : GL_BGRA format
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 592 from 2010/2/10
    From: FRANCE
    Hi all !

    Is it possible to support the GL_BGRA format for the glTexImage2D input and glReadPixels output ?

    We need this possibility to continue our tests with SDL 2 RENDERER.

    SDL2's State :
    https://github.com/BSzili/SDL/commits/mos-sdl2
    https://github.com/BSzili/SDL/blob/mos-sdl2/TODO.MORPHOS

    Thanks you

    BeWorld

    [ Edité par beworld 19.03.2020 - 14:38 ]
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »19.03.20 - 13:38
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    amigadave
    Posts: 2795 from 2006/3/21
    From: Northern Calif...
    Quote:

    beworld wrote:
    Hi all !

    Is it possible to support the GL_BGRA format for the glTexImage2D input and glReadPixels output ?

    We need this possibility to continue our tests with SDL 2 RENDERER.

    SDL2's State :
    https://github.com/BSzili/SDL/commits/mos-sdl2
    https://github.com/BSzili/SDL/blob/mos-sdl2/TODO.MORPHOS

    Thanks you

    BeWorld

    [ Edité par beworld 19.03.2020 - 14:38 ]


    Although a few of the MorphOS Dev. Team members post forum messages on this site, I don't think that asking for specific graphic support here is the best place to get a quick response. Don't you think that trying to post this question to the official MorphOS website, or to several of the email addresses for certain MorphOS Dev. Team members shown on the official site, would be a better place to send your question?

    Unless I am not understanding your question correctly (which wouldn't be the first or last time for me), what you are asking can only be added to the core of MorphOS by the team members working on the video card drivers. Bigfoot would probably be the best team member to send this request to, IMHO.
    MorphOS - The best Next Gen Amiga choice.
  • »19.03.20 - 18:36
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12097 from 2003/5/22
    From: Germany
    > post this question to the official MorphOS Website

    How would this be done?
  • »20.03.20 - 00:41
    Profile
  • MorphOS Developer
    cyfm
    Posts: 537 from 2003/4/11
    From: Germany
    I think that GL_BGRA is actually supported for texture input but reading pixels back via GL_BGRA won't work and needs some workaround that does conversion from GL_RGBA to GL_BGRA.
    It should be possible to fix that for a future release.
  • »20.03.20 - 14:02
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    BSzili
    Posts: 559 from 2012/6/8
    From: Hungary
    Thank you, that would be great! Here's an example of what we got with TGLDEBUG:

    Quote:

    TGL:[ 477]/GLGenTextures() : Allocating texture:1
    TGL:[1140]/GLTexImage2D() : (1)format:0x80e1, tgldInternalFormat:0x1908 (GL_RGBA). width:1024, height:512
    TGL:[2321]/GLTexSubImage2D() : update:(1)format:0x80e1 (GL_BGRA), internalformat:0x1908(GL_RGBA) (640x480 pixels) source:644460568
    TGL:[1520]/gl_convertGL_to_GL() : Unsupported image format:format:0x80e1(GL_BGRA) . dstFormat:1908(GL_RGBA)



    [ Edited by BSzili 20.03.2020 - 17:27 ]
    This is just like television, only you can see much further.
  • »20.03.20 - 16:05
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 592 from 2010/2/10
    From: FRANCE
    Hi !

    Any update ?

    SDL2 now work fine, i port a lot of games with it.

    It would be formable if we could activate SDL_VIDEO_RENDER_OGL.

    Thanks
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »23.04.20 - 12:18
    Profile Visit Website