Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: SORRY.......

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2001
    Location
    hk
    Posts
    16

    SORRY.......

    thx rob reply me ,but i want to ask what is framebuffer first,
    does it any difference with reading a bmp into memory??
    i have found some code which can change bmp into memory,but i don't know how can change the bmp in memory to framebuffer?
    THX~
    kim

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: SORRY.......

    Hi !

    The framebuffer is the memory where OpenGL will put all the pixels, today this memory is almost always in memory on the videocard so you will not be able to use it as you do with normal RAM.

    You use glReadPixels and glDrawPixels to read and write data from/to the framebuffer.

    If you need to do fast updates you might want to use a texture instead of glDrawPixels.

    Mikael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •