Results 1 to 2 of 2

Thread: 2D with OpenGL

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2000
    Posts
    5

    2D with OpenGL

    Yop,

    i know that this question has been frequently asked here, but i can't find the old post... so :

    I would like to do some 2D effects with OpenGL. I make a quad and give him a texture.
    But it would like to change the texture.
    Which functions should i use ?
    I try with gltexture2d, giving it a buffer, then i changed the buffer every frame... but, nothing happend (and nothing happend even i don't modify the buffer).
    So i tried with glu2dbitmaps but i need to call glu(..) every frame, and it is slow.
    Can someone help me ?

    Another question: can we directly access to the frame buffer ? in order to make a filtering effects or something like that.

    bye, FusiuM / DKS

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

    Re: 2D with OpenGL

    You have to call glTexture2d each time you update the texture.
    And no, you can't have direct access to the framebuffer in OpenGL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean