All Questions
24 questions
0
votes
0
answers
169
views
An OpenGL backend for displaying a framebuffer of an emulator
Motivation
I'm making an emulator. It has its own software framebuffer of size 320x240. Each frame is prepared internally from the emulator, and I just need a way to display it on a window, scaled to ...
1
vote
2
answers
294
views
3D object in OpenGL
I made a 3D object in OpenGL. But I think my code is extremely bad and now, I want to make my code better.
Here is my code:
...
5
votes
3
answers
269
views
OpenGL Hello Triangles
Here is my OpenGL "Hello, Triangles" program. I tried to avoid all the deprecated functions and put the triangles in a buffer. Even in two different ways.
It is a bit bloated by the shader ...
8
votes
1
answer
180
views
tiny mandelbrot
When I first got the idea for creating a tiny mandelbrot renderer I knew It would be possible
since people having creating tiny demos for a while and that I would probably use a shader. However at ...
4
votes
2
answers
124
views
Loading and drawing an image
I have some functions and structs for loading and drawing an image with OpenGL. The two main places I would like feedback are:
I've tried to separate the OpenGL-specific code into the implementation ...
6
votes
1
answer
164
views
Per pixel Image Computation with Gamma Correction in OpenGL and C [closed]
I've been working on a way to optimize pixel computation in OpenGL with C. If this information helps, my current environtment = Linux (terminal) + GPU (Nvidia 1080Ti). I'm working with old OpenGL (...
3
votes
3
answers
254
views
Refining an OpenGL tutorial demo
I'm working my way through the examples in an OpenGL website; I'm now on tutorial 2 ("the first triangle").
Among the (many) things I've changed from the sample include:
Replacing the hodge-podge of ...
5
votes
1
answer
337
views
Mouse control of a camera in an OpenGL program
Introduction
I'm doing an OpenGL program in C. As of now I'm working on the 3D camera system and got the control right. Now I'm working on the mouse control.
It works, but I have used two different ...
3
votes
1
answer
243
views
Voxel engine to draw cubes
I am an amateur in OpenGl and for this reason I am seeking to learn only modern OpenGl the 4.x stuff. Once I had completed basic tutorials (rotating cubes, for example) I decided I would try and ...
9
votes
2
answers
1k
views
OpenGL 3 Mandelbrot Set
I've written a short program to learn about computing with drawing using OpenGL 3. To do so, I created a program to create two triangles, which form a quad, and pass all the arguments for computing ...
13
votes
1
answer
2k
views
Platformer in C
GitHub repo.
main.c
...
7
votes
2
answers
3k
views
Simple OpenGL image viewer in C
I'm making an image viewer and before I continue development I want to make sure I haven't done anything bad. In particular, I was wondering if my error handling is sane.
Most of the code is OpenGL/...
2
votes
1
answer
1k
views
Implementing a sprite batch in OpenGL
I wrote a simple 2D renderer in OpenGL that works pretty well. I can render about 16,000k sprites in 1 draw call if it uses the same texture. I wanted to refactor this code out and put it in its own ...
5
votes
1
answer
397
views
Initializing an EGL display
I'm somewhat new to writing real-world projects in C, so I'm not familiar with best practices and standards. I'm writing code dealing with EGL and OpenGL, and some setup calls might fail for reasons ...
4
votes
2
answers
1k
views
Draw multiple objects
The OpenGL tutorial that I was following only used a single model to demonstrate various points. I wanted to draw more than one model. After some research, I came to the conclusion that I needed to ...