Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6718881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:01:37+00:00 2026-05-26T09:01:37+00:00

I knew it is possible to render offline without displaying it on screen. How

  • 0

I knew it is possible to render offline without displaying it on screen.

How to do it, maybe

create an invisible window then draw.

Can I use specific fbo when render?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:01:38+00:00Added an answer on May 26, 2026 at 9:01 am

    You can create a framebuffer object using something like:

    GLint fbo, tex; // "handles" for framebuffer and it's texture
    glGenFramebuffersEXT(1, &fbo);
    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo);
    
    // setup texture for colour attachment
    glGenTextures(1, &tex);
    glEnable(GL_TEXTURE_2D);
    glDisable(GL_COLOR_MATERIAL);
    glBindTexture(GL_TEXTURE_2D, tex);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
    // set a size fotr the texture, but not any initial data
    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, fbo_resX, fbo_resY, 0, GL_BGRA, GL_UNSIGNED_BYTE, NULL);
    // You might want a depth attachment here too perhaps?
    glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, tex, 0);
    
    const GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT);
    assert(status == GL_FRAMEBUFFER_COMPLETE_EXT);
    
    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
    

    You then use it like:

    // specify which FBO to use
    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo);
    // glDraw...
    
    // return to the default
    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
    

    You can create multiple framebuffers as you like and bind to them when you please. (Give or take). You’ll need a valid OpenGL context to use this, which usually approximates to creating a window on most platforms, but you don’t ever have to draw anything into that window.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I knew that we can create child themes for wordpress. But i want to
I was wondering if anyone knew if it were possible to override the default
I am Python newbie, so maybe don't knew if this is obvious or not.
In Python it's possible to create a procedure that has no explicit return. i.e.:
Still now I knew Its not Possible to change the contents of location bar
Possible Duplicate: How will I know when to create an interface? Hi guys, This
I was wondering if any of you knew if it was possible to make
Possible Duplicates: Is excessive use of this in C++ a code smell Years ago,
I must draw lots of primitives with OpenGL (3.3, 4.2), I knew with glutSolidTeapot()
I am going to create an application for displaying the installed applications (and their

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.