Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
xiver77's user avatar
  • 419
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: ...
sbh's user avatar
  • 147
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 ...
user avatar
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 ...
nullptr's user avatar
  • 659
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 ...
User319's user avatar
  • 1,132
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 (...
raisa_'s user avatar
  • 163
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 ...
Reinderien's user avatar
  • 70.8k
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 ...
Cewein's user avatar
  • 153
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 ...
Oliver Strong's user avatar
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 ...
theoden8's user avatar
  • 329
13 votes
1 answer
2k views

Platformer in C

GitHub repo. main.c ...
Daniel Sunday's user avatar
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/...
Ezechiel's user avatar
  • 137
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 ...
user1610950's user avatar
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 ...
Zane Geiger's user avatar
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 ...
yasar's user avatar
  • 1,597

15 30 50 per page