Results 1 to 7 of 7

Thread: OpenGL Capability to Create Bitmap Buffer in 2D

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2009
    Posts
    4

    OpenGL Capability to Create Bitmap Buffer in 2D

    Hell Everyone and thank you for attention .

    i have a question about opengl and its capabilities . i am working on a monitoring system , that requires to showing some 2D gauges on the display and i want to create this by OpenGL under linux .

    the job requires some OOP features , and to reach this i want to know , does OpenGL Have Capability To Create a Buffer( bitmap ) on RAM and draw some lines and circles and also some other bitmaps on that Buffer ?!

    in better words , i want to know can OpenGL flush its output to a buffer ?!

    after that , finally combine a set of such buffers ( each buffer for a gauge ) into a another big buffer ( the whole of display ) and show that buffer in VGA output .

    Does OpenGL has such capability ?!

    Regards.

  2. #2
    Junior Member Newbie
    Join Date
    Dec 2009
    Posts
    4

    Re: OpenGL Capability to Create Bitmap Buffer in 2D

    Any Idea ?! is this very Advanced Question .

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: OpenGL Capability to Create Bitmap Buffer in 2D

    can OpenGL flush its output to a buffer
    Yes.
    I guess your question is so strangely worded that no one had a clear idea of how to help you.

  4. #4
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    Location
    UK, London
    Posts
    1,161

    Re: OpenGL Capability to Create Bitmap Buffer in 2D

    in a simple answer yes!
    Since you want to control each gauge separately, I suggest you render each one to a separate off-screen frame buffer (each framebuffer is like a separate GL window - with it's own texture).
    Once you have drawn each gauge to its FBO (framebuffer object), you can then get hold of the texture which is the actual buffer holding the data. These textures can be applied onto the main screen in any way you like, and also you can persist them to disk with a little work.

  5. #5
    V-man
    Guest

    Re: OpenGL Capability to Create Bitmap Buffer in 2D

    I guess what you want to do is either render to the. back buffer or render to an offscreen buffer (FBO) and then use glReadPixels. For the FBO stuff, look in the Wiki in the extensions section.

  6. #6
    Junior Member Newbie
    Join Date
    Dec 2009
    Posts
    4

    Re: OpenGL Capability to Create Bitmap Buffer in 2D

    thanks for answer , i found better solution for my problem .

  7. #7
    Junior Member Newbie
    Join Date
    Dec 2009
    Posts
    4

    Re: OpenGL Capability to Create Bitmap Buffer in 2D

    thanks for answer , i found better solution for my problem .

Similar Threads

  1. The parallel capability of modern GPUs with openGL
    By martel in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-04-2018, 05:13 AM
  2. Create a texture from a [OpenGL-type] bitmap
    By SpiffGQ in forum OpenGL: Basic Coding
    Replies: 19
    Last Post: 05-12-2003, 07:44 AM
  3. create a 3D image from a bitmap
    By snupinokyo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-13-2003, 06:52 AM
  4. How to create an OpenGL rendering queue/buffer/cache
    By stodge in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-16-2003, 03:36 AM
  5. rendering GL view to a bitmap to create a thumbnail
    By mcsellski in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-21-2002, 08:07 AM

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