I created a pixmap using, for example, this code On my Linux pc this pixmap can be shown with glDrawPixels or with glTexImage2D. But I can't find g ...
I created a pixmap using, for example, this code On my Linux pc this pixmap can be shown with glDrawPixels or with glTexImage2D. But I can't find g ...
I have a function that draws pixels 1 by 1 on a window, but what I want to know is how to get the pixels to be drawn in a different color other than r ...
I don't know how to resolve this problem, I want to use this function to make a soft-renderer engine to study 3D pipeline. This is code: ...
What I have to do is to display an image using a .ptm file. So, I open the file, read the W and H and set the RGBA to each pixel. But when I try to d ...
As the title says, Red Green And Blue values are put into different slots, making the screen have stripes of red green and blue. the code is pretty mu ...
I am using opengl and c++ doing image processing. The idea is simple, I will load an image, draw a polygon by clicking and then apply an effect (desat ...
Basically I am doing some tests to simulate various window inside a scene. Everything works fine until I try to position better the window that I am d ...
Here's the code. The output is a greyish square - all the time, no matter what the input is and its clearly wrong. My objective is to be able to have ...
I would just like to start by saying I am new to CUDA and OpenGL. I get the above runtime error when it runs glutMainLoop() and the mainloop runs glDr ...
I'm doing some pixel work in OpenGL, and all was going well until I had to load a PNG. I found a thing called 'DevIL', and followed an example I found ...
Since last week I've been trying to load and show a PNG on the screen. I used a library libpng to copy png into memory and then used glDrawPixels to s ...
I have an array of pixels from a gl.readPixels() call. Can I put those pixels back to the drawing buffer or a framebuffer? i.e. I'd like to call somet ...
So I know that glDrawPixels is deprecated. Is there any function that does the same thing? I thought of using textures, but they are modified by the c ...
I have been playing around with trying to draw a 320 by 240 full screen resolution image in opengl using java and lwjgl. I set the resolution to 640 b ...
Here is the thing: I want to load a picture as a background filled in the whole viewport. This background should always face to the camera no matter w ...
I have to use glDrawPixels to implement a raster algorithm. Right now I'm only trying to get a simple example of glDrawPixels working but having an i ...
I need to scale the result of glDrawPixels image. I'm drawing a 640x480 pixels image buffer with glDrawPixels in a Qt QGLWidget. I tryed to do the ...
I have drawn an image file with the GIMP and saved it as a .c file. Then I used the following in my OpenGL code to load the image onto the screen: ...
I am trying to follow the glDrawPixels example from Chapter 8 of the red book (which is incomplete) but cannot see anything (I just see a black screen ...
I hope that this ends up being a simple question. I'm using JOGL in Netbeans to create a checkerboard of pixels where you can specify the number of t ...