Questions tagged [glad]

GLAD is an open-source C/C++/D OpenGL function/extension loading library for C/C++/D generated by Python script from the Khronos API specification XML documents.

Resources:

131 questions
17
votes
1 answer

How to fix undefined reference to symbol 'dlclose@@GLIBC_2.2.5' from glad.c

I am learning Opengl by following the tutorial at https://learnopengl.com/ and I am having trouble setting up dependency with cmake(See Creating a window). I based my CMakeLists.txt on the GLFW documentation. cmake_minimum_required(VERSION…
SeaEyeHay
  • 913
  • 2
  • 7
  • 7
15
votes
2 answers

: No such file or directory

I'm following this tutorial to learn OpenGL, but I'm having trouble compiling since the compiler can't find one of the header files. This is the file I'm trying to compile: #include #include int main() { return…
dinosaur
  • 3,164
  • 4
  • 28
  • 40
13
votes
1 answer

If I use Glad and not GLEW will I miss on something?

I want to use OpenGL but I don't know how to set up GLEW. Would I lose something if I am going to use Glad? Could I learn from tutorials that use GLEW?
xfajk X
  • 151
  • 1
  • 1
  • 7
11
votes
2 answers

How to fix "unresolved external symbol _gladLoadGLLoader referenced in function _main" and "unresolved external symbol _glad_glViewport"?

I keep getting the unresolved external symbol' error when building the program. However, the program compiles fine. I'm using the GLFW and GLAD libraries. #include #include #include void…
Pixelated_Hacker
  • 113
  • 1
  • 1
  • 4
6
votes
1 answer

Having an issue with "gladLoadGL". I'm getting an error saying it does not take 1 argument

I'm trying to do some openGL tutorials (https://www.glfw.org/docs/latest/quick_guide.html#quick_example) and one of the functions is gladLoadGL. The line of code is "gladLoadGL(glfwGetProcAddress);" however when I try to run I get the error "C2660…
Marnie Rodriguez
  • 431
  • 2
  • 8
  • 22
4
votes
1 answer

Access violation executing location 0x0000000000000000. OpenGL with GLAD and GLFW

I have been trying to create an OpenGL window making use of GLAD and GLFW, following the instructions found at learnopengl.com and glfw.org. At first glance according to the documentation, this is enough to get a window working: #include…
Ciro García
  • 601
  • 5
  • 22
4
votes
0 answers

Committing first page of sparse texture crashes at glfwDestroyWindow

The following OpenGL/GLFW/GLAD code (MCVE version) crashes the process with the following access violation exception in nvoglv64.dll: 0x00007FFC731F586F (nvoglv64.dll) in ConsoleApplication2.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position…
httpdigest
  • 5,411
  • 2
  • 14
  • 28
4
votes
1 answer

Are OpenGL functions actually context-specific?

I know that I must pass glfwGetProcAddress function to gladLoadGLLoader function after context was initialized. GLFW documentation says that this function returns the address of the specified function for the CURRENT context. Based on this…
haxen
  • 43
  • 2
4
votes
2 answers

Do I need to load functions for every opengl context separately?

I am trying to load opengl functions on windows using glad. Soon I figured out that I need to have valid opengl context to load functions. Everything works, but I am not really sure if it's good idea to load opengl functions everytime I create…
Etwus
  • 549
  • 5
  • 15
3
votes
0 answers

GL_INVALID_OPERATION in glGetIntegerv() with GLAD

I use GLAD (config) to load OpenGL functions and GLFW 3.3.8 to create context. Each time I start my program it pops a ERROR 1282 in glGetIntegerv from GLAD debug post-callback function (as far as I know it is invoked after each gl- function and…
3
votes
1 answer

OpenGL context without a monitor

I want to create an opengl context but that context must be created without a monitor attach to the system. The reason I want this is because this program should ran in a linux ubuntu server. Inside a docker image to be specific. I'm using many…
Turgut
  • 711
  • 3
  • 25
3
votes
1 answer

OpenGL binding order between EBO and VAO

I`m trying to create opengl triangle and I bumped up with some problem. EBO : ElementArrayBufferObject VAO : VertexArrayObject While I'm trying to bind the EBO before binding the VAO it causes an error and I don't know why. my code : // Generate the…
user117474
  • 39
  • 1
  • 7
3
votes
0 answers

Add /usr/local/include to Xcode default include search path

Xcode seems to not be able to find the header files on /usr/local/include by default: file not found error. I know it can be fixed by adding the path in the target -> Build Settings -> Header Search Paths: workaround. Is it possible to let Xcode…
3
votes
1 answer

Segmentation fault when including glad.h

I am following the GLFW guide to getting started but I can't seem to make it run with GLAD. Here's my C file (prac.c) #include #include #include #include void error_callback(int error, const char*…
Daniel
  • 509
  • 1
  • 4
  • 17
3
votes
1 answer

ImGui with the glad openGL loader throws segmentation fault (core dumped)

I am new to the ImGui library and recently i've been trying out the examples included. Everything worked like a charm until I changed the include (and functions) of gl3w to glad (the loader i would like to use). The moment I swapped between the two…
Manu
  • 209
  • 1
  • 3
  • 13
1
2 3
8 9