Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
1 replies
29 views

How do I add: menuSound.loadSound("hover_sound", "Audio/Sound/button_hover_sound1.wav", 0.5f); sound effect to all button in ImGui, so that when the mouse hover over them it will ...
ShizamDaGeek's user avatar
-1 votes
0 answers
81 views

I am having issues getting this to run: main file: // #include <iostream> #include <GL/glew.h> #include <OpenGL/OpenGL.h> #include <GLFW/glfw3.h> #include <fstream> #...
user25211590's user avatar
Advice
0 votes
6 replies
85 views

I'm currently working on Voronoi polyhedra, I already have a software that generates all the vertices for me, but a got no indexes to draw the polyhedra. I know how to draw polygons and 3d shapes ...
Diabo Veio's user avatar
1 vote
0 answers
56 views

I'm embedding a VTK rendering widget inside a Qt 6 app using QVTKOpenGLNativeWidget. The window contains a QVTKOpenGLNativeWidget used for 3D rendering, wrapped inside a QFrame. On top of it, a ...
Dresult's user avatar
  • 313
-3 votes
0 answers
72 views

I'm trying to learn Nuklear. I have seen others with this issue, but I have added both GL.create capabilities and glfwmakecontextcurrent, as well as set up version_major and version_minor. So I don't ...
Circle's user avatar
  • 1
-2 votes
0 answers
74 views

I've noticed something very curious: if I use these functions to define a lower version of OpenGL than my video card supports, I can still use higher shader versions. Example. SDL_GL_SetAttribute(...
Javier Ramírez's user avatar
3 votes
2 answers
89 views

In a graphics API like Vulkan, you have VkFilter, which can be NEAREST or LINEAR. Leaving aside the mipmap filtering, which is another thing altogether, I'm trying to understand what the point of the ...
Zebrafish's user avatar
  • 16.3k
0 votes
0 answers
38 views

I can create a simple window on my main monitor, but when I try to perform the same function on a secondary monitor, the window appears for a second or so, then disappears. Initially, I was attempting ...
Julian Varker's user avatar
2 votes
1 answer
56 views

I found a comment on Reddit saying: SSBO accesses are bound checked at runtime by the shader to prevent segmentation faults (which is why the descriptor of a SSBO is a pointer and size). I think this ...
Zebrafish's user avatar
  • 16.3k
1 vote
1 answer
110 views

Preface: I'm aware fixed-function OpenGL is obsolete, I'm just using it for fun and learning. I'm trying to set up a classic fixed-function OpenGL context with Xlib and EGL. However, I'm getting ...
Sijmen Mulder's user avatar
-1 votes
2 answers
133 views

In a texture atlas the individual images are arranged geometrically. The texture atlas itself is an image that can be viewed in any image viewer. I was wondering if it was possible, to simply dump all ...
user1785730's user avatar
  • 3,839
2 votes
0 answers
150 views

When running a simple SDL2/OpenGL demo with VSync on Windows 10, I noticed that deltaTime between frames fluctuates by 1–4 ms at 60 Hz. I expect some jitter from OS scheduling, but 4 ms seems large ...
Ralf's user avatar
  • 379
1 vote
1 answer
132 views

I've read the Khronos wiki Memory_Model page and the glMemoryBarrier docs, and I'm still confused. I have two buffers for vertex data (A and B) that I glMapBufferRange, memcpy into them, then ...
mr grumpy's user avatar
  • 1,591
0 votes
0 answers
54 views

I have recently moved on newer hardware (laptop with rtx 5070) and so with new nvdia driver (version 575). I am now using OpenGL 4.6 rather than 3.3 I used before and now I am struggling ...
Sofiane Benzait's user avatar
0 votes
1 answer
135 views

I am creating a small abstraction layer for an engine, but when I call any OpenGL API functions from a class, the code segfaults. I'm using glad and glfw and there aren't any errors from either, and ...
PossibleMaybe's user avatar
-3 votes
2 answers
117 views

currently working in c++ trying to create an Init class to initialize some of the behavior in GLFW and GLEW. Basically I'm moving the whole setup portion to a new class called Init. Init will have ...
Ayite Dalmeida's user avatar
1 vote
1 answer
92 views

I'm trying to basic 3D rendering working using OpenGL 1.1: #define GLFW_INCLUDE_GLU #include <GLFW/glfw3.h> #include <gl/GL.h> #include <gl/GLU.h> #include <stdio.h> #include &...
Fomantis's user avatar
3 votes
1 answer
133 views

I know there's gl_VertexIndex and gl_VertexID, but let's just say I have an index buffer that looks like: [3, 0, 4, 1, 2, 3] The first vertex processed in the vertex shader with an indexed draw ...
Zebrafish's user avatar
  • 16.3k
0 votes
0 answers
75 views

I have been displaying animations: #include <GL/glew.h> #include <GLFW/glfw3.h> #include <iostream> #include <fstream> #include <sstream> #include <cmath> #include &...
Sam's user avatar
  • 494
1 vote
1 answer
95 views

I have an opengl problem but the minimal code for showcase became 450 lines of code so I uploaded it to github instead: https://github.com/Siamaster/opengltest What I'm trying to do here is to define ...
Siamaster's user avatar
  • 1,007
0 votes
0 answers
143 views

I'm building an OpenGL 4.6 application using SDL3 and GLAD, compiled with g++: // g++ -Wall -Ofast main.cpp include/glad/glad.c -Iinclude/SDL3 -Linclude/SDL3 -lSDL3 -lopengl32 -o build/program #define ...
HannesScript's user avatar
13 votes
0 answers
649 views

Creating a borderless OpenGL window with SDL3 on Windows at the native display resolution results in the window unexpectedly switching to an exclusive fullscreen mode. This happens specifically after ...
Vittorio Romeo's user avatar
0 votes
1 answer
74 views

I recently faced a problem I still cannot overcome for the reason I don't understand its nature. I created a sphere, assigned vertices and normals and indices and built DSA vao (Opengl 4.5). Having ...
auraxarr's user avatar
1 vote
1 answer
109 views

I have the following code, QT doesn't explain how to use extensions like this, like at all (just a default page when you go to QtOpenGLExtension page), so I assume I'm supposed to inherit from it. //...
Krupip's user avatar
  • 5,356
0 votes
1 answer
94 views

I am using Legacy OpenGL to make a fish tank: #include <GL/glut.h> #include <stdio.h> float fishPosX = 0.0f; float fishDirection = -1.0f; float rotationAngle = 0.0f; int rotating = 0; ...
Draven West's user avatar

1
2 3 4 5
761