framebuffer

Dirty Rectangles

Where may one find references on implementing an algorithm for calculating a "dirty rectangle" for minimizing frame buffer updates? A display model that permits arbitrary edits and computes the minimal set of "bit blit" operations required to update the display. ...

Pushing pixels on the iPhone

What's the fastest way to get a framebuffer and render to in software on the iPhone? Basically getting into a mode 13h style thing going so I can make some effects? :) ...

How to push pixels faster on the iPhone?

I asked before about pixel-pushing, and have now managed to get far enough to get noise to show up on the screen. Here's how I init: CGDataProviderRef provider; bitmap = malloc(320*480*4); provider = CGDataProviderCreateWithData(NULL, bitmap, 320*480*4, NULL); CGColorSpaceRef colorSpaceRef; colorSpaceRef = CGColorSpaceCreateDeviceRGB();...

OpenGL: How to implement an "eraser" tool?

I'm working on a game for the iPhone that has a drawing/paint mechanic involved and I'm having problems trying to create a tool that would erase things already painted. The main problem is that the background being painted on is not a solid color but a static image or animation. I've tried using different blending options and logical op...

How to develop a DirectFB app without leaving X.11 environment.

Hi folks, I'm trying to develop a GUI application for an embedded platform, without any windowing whatsoever and I'm doing that with DirectFB, and it suits my needs very fine. Since the embedded I develop for is not that powerful, I would really like to try to develop on my own Ubuntu desktop. The problem is Framebuffer is conflicting ...

Framebuffers, textures and glColor behavior in OpenGL/OpenGL ES.

I apologize in advance if this question seems confused. The behaviour I am seeing makes no sense to me. I have a Framebuffer rendering to a texture. I render solid rectangles of red, green, blue of varying opacity to this texture. I then render the texture to the screen (Framebuffer 0). The Framebuffer attached to the texture is persist...

Direct access to linux framebuffer - copyarea.

I want to move very quickly a rectangle over a framebuffer in an embedded linux application. I have found that the function cfb_copyarea may be useful. But I cannot find any ioctl over the /dev/fb device to call the function. Or can this function be called directly? ...

Fragment shader rendering to off-screen frame buffer

Hi! In a Qt based application I want to execute a fragment shader on two textures (both 1000x1000 pixels). I draw a rectangle and the fragment shader works fine. But, now I want to renderer the output into GL_AUX0 frame buffer to let the result read back and save to a file. Unfortunately if the window size is less than 1000x1000 pixel...

How to write directly to linux framebuffer?

How to write directly to linux framebuffer? ...

Taking a Screen Shot of an Embedded Linux Framebuffer

I'm running Embedded Linux on an evaluation kit (Zoom OMAP35x Torpedo Development Kit). The board has an LCD and I would like to be able to take screen shots convert them into a gif or png. I can get the raw data by doing the following: "cp /dev/fb0 screen.raw", but I am stumped on how to convert the image into a gif or png format. I pl...

How to draw the graph in framebuffer using c language..?

Hi friends, i am new to this linux framebuffer so do anybody guide me to draw the line-graph in framebuffer. And i have the code to draw graph in turbo c but now in linux. So please help me out. Thank You, Rahul ...

"Error in the program" Can anybody clear this error..? (LINUX FRAMEBUFFER PROGRAM)

#include <unistd.h> #include <stdio.h> #include <fcntl.h> #include <linux/fb.h> #include <sys/mman.h> int main() { int fbfd = 0; struct fb_var_screeninfo vinfo; struct fb_fix_screeninfo finfo; long int screensize = 0; char fbp = 0; int x = 0, y = 0; long int location = 0; // Open the file for reading and writing fbfd = open("/dev/fb0",...

inteldrmfb api?

I have a kernel 2.6.31 booting from a USB stick using Intel 915 based KMS to get to graphics mode. It appears to be setting itself to the native resolution and its booting nicely into framebuffer console with a beautiful Tux logo! Question is, how do I access the inteldrmfb? How do I get it into /dev? Will udev do this for me? What is ...

How to screen capture screenshots or movies on the Linux framebuffer

How can the linux frame buffer, on Cell Linux, be captured to obtain either screen shots or movies? Is there a tool to do this for a running program, or must the program writing to, and presumably controlling, the frame buffer also handle capture and recording? ...

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 of the characters should ideally be defined solely in code, and no third party libraries wo...

Problem using FBO: Only first pass renders. A possible problem at setting render target back?

Hi, I have a huge problem with using FBO. I have a multi-pass display using FBOs and multitexturing. Everything seems to work fine until the end of first execution of display. I set the render target back to screen using glBindFrameBufferEXT(GL_FRAMEBUFFER_EXT, 0) at the end of my display function but the passes after that do not take...

Trying to render to texture using framebuffer always results in white texture

Using a couple of posts here in StackOverflow, I created what is supposed to be a simple render-to-texture using a framebuffer. The problem here is that it's not working. Something is broken in the mix, as my final texture is just a white square. I am not getting any gl errors whatsoever. Here is my code. Declare instance variables. G...

OpenGL Textures wont work unless made between two pieces of code which isn't what I want.

Hello, I'm making a game with python and OpenGL. I was making it with pygame but I realised quick enough that it was too slow. I've made a class which I want to reasonably act like the Surface class for pygame, where Surface objects can be blitted to other Surface objects. I'm wishing to use framebuffers for rendering textures to texture...

OpenGL ES Framebuffer weird mirroring when drawing

I really can't wrap my mind around this: Previously I couldn't get Framebuffers to work, but I've got it going now. However, there is this incredibly weird mirroring going on with the texture generated from the framebuffer, and I have no idea why. Basically, I will try to draw a texture at 0,0 using GL_TRIANGLE_FAN, and the texture appe...

Lines do not render on an offscreen frame buffer with a completely black texture

If I have a frame buffer which has a textured binded to it which is simply black with full alpha and I try to draw a line to it, even if the line has full alpha it wont render. I'm not stupid, so the lines definitely aren't black. If the texture is white instead the line suddenly render correctly as if the colour of the texture behind it...