[Question] Framebuffers and bgr images

Discussion in '3DS - Homebrew Development and Emulators' started by Urbanshadow, Nov 6, 2015.

  1. Urbanshadow
    OP

    Urbanshadow GBAtemp Maniac

    Member
    1,294
    472
    Oct 16, 2015
    When I write directly with memcpy images to a screen framebuffer, should I expect alpha support for png images?
    How am I supposed to play with multiple layered images? Should I use memcpy if I intend to work with sprites?

    If double buffering is active image flickers but I'm writing the image in backbuffer every frame. Why?

    Thanks in advance.
     
    Last edited by Urbanshadow, Nov 6, 2015
  2. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,263
    Nov 24, 2014
    Italy
    Bologna
    3DS Framebuffers are BGR (so no alpha channel like PSVITA ones) and they are 240x320 and 240x400 (so they are rotated).
     
  3. Urbanshadow
    OP

    Urbanshadow GBAtemp Maniac

    Member
    1,294
    472
    Oct 16, 2015
    Ok... I am supossed to use an extra library to work with sprites, am I?
    Already tried to use console mode after seting the image to framebuffer... no luck, image shows messed up.
     
    Last edited by Urbanshadow, Nov 6, 2015
  4. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,263
    Nov 24, 2014
    Italy
    Bologna
  5. Urbanshadow
    OP

    Urbanshadow GBAtemp Maniac

    Member
    1,294
    472
    Oct 16, 2015
    Ok thanks! Sf2dlib is more glu'ish so i'll try that.