Questions tagged [framebuffer]

In general a framebuffer is a graphic hardware-independent abstraction layer used to display output to a monitor or display.

Resources:

1142 questions
9
votes
1 answer

What does GL_COLOR_ATTACHMENT do?

I'm learning about framebuffers right now and I just don't understand what the Color attachment does. I understand framebuffers. What is the point of the second parameter in: glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,…
alanxoc3
  • 115
  • 1
  • 1
  • 6
9
votes
2 answers

Get maximum number of framebuffer color attachments?

I'm developing an OpenGL application and I need to find how many framebuffer color attachments are supported. Is there a way to query OpenGL for that value?
user1204080
9
votes
1 answer

How to draw using framebuffer on Android?

I would like to write an application for Android which displays stuff on screen using the framebuffer. This will run only on a specific rooted device, so permissions etc is not a problem. Same application (simple test version anyway) is already…
Alex I
  • 19,689
  • 9
  • 86
  • 158
9
votes
3 answers

Drawing text on a framebuffer in Linux from C

How can a program draw text on a frame buffer mapped in as an array? What is needed is both a means of representing the individual characters, and of drawing the characters pixel by pixel in a manner that is not too inefficient. The representation…
grrussel
  • 7,209
  • 8
  • 51
  • 71
9
votes
1 answer

Is ordering between glUniformBlockBinding and glBindBufferBase important?

When using UBOs, we bind a uniform block to a binding point. Then we also bind the UBO to the same binding point: something like: glUseProgram(ProgramName); glUniformBlockBinding(ProgramName, uniformLocation,…
viktorzeid
  • 1,521
  • 1
  • 22
  • 35
9
votes
4 answers

How to write directly to linux framebuffer?

How to write directly to linux framebuffer?
SomeUser
  • 1,976
  • 15
  • 42
  • 60
9
votes
2 answers

OpenGL invalid framebuffer operation after glClear(GL_COLOR_BUFFER_BIT);

Every time after I call glClear(GL_COLOR_BUFFER_BIT);, I get the OpenGL error "invalid framebuffer operation". The call seems to work just fine, and nothing seems wrong. I call glClear(GL_COLOR_BUFFER_BIT); first thing in the ::paintGL()…
houbysoft
  • 32,532
  • 24
  • 103
  • 156
8
votes
1 answer

Proper double buffering with linux framebuffer

I am wondering how to properly double buffer the framebuffer to avoid tearing. I've done lots of research on this topic and I can't seem to find anything. I've tried FBIO_WAITFORVSYNC. But per this thread: How to query Vsync phase in Linux it seems…
ktb92677
  • 407
  • 4
  • 16
8
votes
1 answer

OpenGL - How to draw to a multisample framebuffer and then use the result as a normal texture?

I'm developing a little gamedev library. One of the elements of this library is a Canvas (offscreen drawing area), which is implemented through an OpenGL framebuffer. So far, everything's been good, I generate a texture, attach it to a framebuffer,…
faiface
  • 457
  • 1
  • 5
  • 8
8
votes
2 answers

If "pure XCB" OpenGL is impossible, then what's the use of the XCB/GLX API found in xcb/glx.h?

The official XCB documentation tells us that using OpenGL purely with XCB is impossible: one must also use Xlib. This post by Bart Massey (creator of XCB) doesn't suggest this should be impossible. But I'm sure I'm missing something. I've spent…
étale-cohomology
  • 2,098
  • 2
  • 28
  • 33
8
votes
2 answers

iOS8 MKMapView Framebuffer error during rotation when autoresize is applied

#import "AppDelegate.h" #import @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions { [self setWindow:[[UIWindow alloc]…
Morty Choi
  • 373
  • 2
  • 10
8
votes
3 answers

-[EAGLContext renderbufferStorage:fromDrawable:] Failing the second time on?

I'm developing an iOS openGL ES application. I'm doing the usual EAGLView / ES2Render stuff. On startup, frambuffer creation succeeds, using the following code: - (BOOL) createFramebuffers { [EAGLContext setCurrentContext:_mainContext]; //…
Nicolas Miari
  • 16,006
  • 8
  • 81
  • 189
8
votes
1 answer

Frame buffer module of python

I'm looking for a python module which can display jpg or png file to /dev/fb0 directly. I hope the the module can call and display the picture on screen by like this: show_photo(path_to_jpg, x, y, dev='/dev/fb0') I had searched such kind of python…
billy3321
  • 85
  • 1
  • 1
  • 6
7
votes
1 answer

OpenGL render-to-texture-via-FBO -- incorrect display vs. normal Texture

off-screen rendering to a texture-bound offscreen framebuffer object should be so trivial but I'm having a problem I cannot wrap my head around. My full sample program (2D only for now!) is here: http://pastebin.com/hSvXzhJT See below for some…
metaleap
  • 2,132
  • 2
  • 22
  • 40
7
votes
3 answers

Is there a way to use application that use hardware accelerated OpenGL on a headless machine?

There exist a class of applications that use opengl to provide hardware acceleration, but are not GUI based. However it seems that in the default case, to use opengl, there must be running an X-server with GLX (on the same virtual terminal) for…
Catskul
  • 17,916
  • 15
  • 84
  • 113