144 questions
Tooling
0
votes
8
replies
113
views
confused on how to install glad for OpenGL
I am following this OpenGL tutorial series: https://youtu.be/XpBGwZNyUh0?si=Jbhlk5W-ifrzlBxB and was able to install most of the dependencies, but I'm being stumped on glad.
I can see a github??? (...
2
votes
0
answers
93
views
Cursor hidden on GLFW (borderless) fullscreen window when told not to
I recently started a game-dev project using only GLFW, GLAD and GLM. Everything was going well till I tried to change my window from a normal 1280x720 window to a (borderless) fullscreen window:
My ...
1
vote
0
answers
61
views
LibVLC main filter error: Failed to create video converter
I am using LibVLC (via the VideoLAN.LibVLC.Windows.3.0.23 NuGet package) on Windows 10 to reproduce a video (MiVideo.mp4, 1920x1080):
#include <glad/glad.h> // OpenGl
#include <GLFW/glfw3.h&...
0
votes
0
answers
119
views
How to do 'gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)' in FreePascal?
I am attempting to follow along the LearnOpenGL tutorial using Free Pascal (via the Lazarus IDE) and so far I managed to figure out translating most of the code... except for:
gladLoadGLLoader((...
5
votes
1
answer
175
views
Second GLFW window won't render?
I decided to try a dual screen to display the square as a wireframe vs a colored in square:
#include <GLAD/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
void ...
0
votes
1
answer
260
views
C++ / GLFW / ImGui crash in DLL: Assertion bd->PrevWndProc != nullptr
I’m working on a custom C++ engine using GLFW and GLAD with OpenGL. My engine is compiled as a DLL and used in an editor/game executable. So far, everything works fine: I can create a window and ...
1
vote
0
answers
239
views
Cannot install glad in vcpkg
I want to install "glad" using the vcpkg with this command:
.\vcpkg.exe install glad:x64-windows
But got an error:
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility ...
1
vote
2
answers
260
views
GLAD initialization on multiple dlls that use GLAD
At the moment I am making a simple 3D space using glfw and glad. My approach for project management is to separate it into smaller projects, like:
Core
Renderer
Scene
Window
ExternalGraphicsLibs
...
0
votes
0
answers
149
views
Compiling GLAD with Clang and -pedantic flag on Windows
When compiling GLAD with Clang using these flags: -pedantic -Wall -Wextra I get these warnings:
C:/Dev/glad/include\KHR/khrplatform.h:189:9: warning: extension used [-Wlanguage-extension-token]
189 |...
1
vote
1
answer
451
views
Linker Error When Linking GLAD with OpenGL and GLFW in CMake/MSBuild
I'm working on an OpenGL project using GLFW and GLAD in a CMake-based setup:
cmake_minimum_required(VERSION 3.16) # Specify the project name and the languages
project(MyApp LANGUAGES CXX)
# Set C++ ...
0
votes
1
answer
168
views
glReadPixels() returns background color?
I am trying to get the colour which was clicked on in OpenGL via glReadPixels():
#include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/gtc/...
2
votes
1
answer
521
views
Trying to load OpenGL 4.1 but only get OpenGL 2.1 on MacOS
I am trying to setup a OpenGL-based project in my Macbook Pro 14 (M2 Pro CPU, Macos Sonoma 14.5). I have basically managed to get everything working, BUT no matter what I do I cannot make the program ...
0
votes
1
answer
109
views
Interaction between function pointers and device drivers in OpenGL
I've been learning more about OpenGL recently, and there's one aspect about retrieving function pointers to the OpenGL function implementations in your local drivers that I can't quite understand (...
-2
votes
1
answer
54
views
. Quad disappears once i moved it into a seperate class [duplicate]
I finally got a quad working with textures, and to clean up my code, I decided to move it into a separate class, but now it disappeared without any error message.
Main file:
#include <glad/glad.h&...
0
votes
1
answer
341
views
How do I initialize OpenGL before GLFW? [closed]
I'm currently developing an OpenGL graphics engine with a focus on versatility. I aim for it to display frames in a window and also enable saving images to disk without displaying a window. To achieve ...