Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: yo1dog

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,941

    I asked the same question. Answer: You can't. the...

    I asked the same question. Answer: You can't. the rpi implementation does not use frambuffers at all.

    See my post here:...
  2. Replies
    7
    Views
    1,843

    r = *(frame_buffer_888 + i * RGB_888_STRIDE + j *...

    r = *(frame_buffer_888 + i * RGB_888_STRIDE + j * RGB_888_PIXEL_SIZE); // gets the red value (0-255)
    r <<= 8; // left shift red 8 times so that the first 8 bits are now red's bits
    r &= 0xF800; //...
  3. Replies
    7
    Views
    1,843

    I did some testing my manually setting the first...

    I did some testing my manually setting the first and second byte of each pixel and by observing the output of my LCD it seems that the color format is BRG 853??

    11111111|00000000 is full blue...
  4. Replies
    7
    Views
    1,843

    OK I tried my hand at manually convert the...

    OK I tried my hand at manually convert the format, but the colors don't look right... Any ideas?



    int i, j;
    unsigned short r, g, b;
    for (i = 0; i < SCREEN_HEIGHT; i++)
    {
    for (j = 0; j <...
  5. Replies
    7
    Views
    1,843

    Hmm, so you are saying that Raspberry Pi has its...

    Hmm, so you are saying that Raspberry Pi has its own implementation of OpenGL ES? I thought there was a single universal library called OpenGL ES, not a specific implementation for each device.
    ...
  6. Replies
    7
    Views
    1,843

    glReadPixels GL_UNSIGNED_SHORT_5_6_5

    int pixel_size = 2;
    int stride = SCREEN_WIDTH * pixel_size;
    unsigned char* frame_buffer = malloc(SCREEN_HEIGHT * stride);

    while(!terminate)
    {
    update_model(state);
    redraw_scene(state);
    ...
Results 1 to 6 of 6