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 3 of 3

Thread: Bitmap objects

  1. #1
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    765

    Bitmap objects

    okay, with all the furore over opengl's apparant lack of 2D support (bullsh<coughcough> ), I was thinking about an extension to the pixel copy functions.

    One of the main critisisms of glCopyPixels seems to be the need to recopy the bitmap across the bus every frame. In the same sense that textures can be stored on the video card to prevent this problem for texture mapping, why not make bitmap objects to allow the programmer to transfer a bitmap once, and reuse it?

    for example

    glBindBitmap(bmp.id);
    glTransferPixels(bmp.img);

    ...

    glBindBitmap(bmp.id);
    glRasterpos2i(0,0);
    glBlitPixels();

    or something???

    cheers
    John

  2. #2
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,345

    Re: Bitmap objects

    I think that an extension for non power of 2 textures would be a better solution since it solves this problem but is very useful in 3d too. There is also already hardware which support this (eg Matrox G400).

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    765

    Re: Bitmap objects

    there are very good reasons why textures are a power of two. think about it... computers count in binary... binary increments in powers of two... niiiiice optimisation potential

Posting Permissions

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