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
-1
votes
0 answers

Call GL functions from C# causes a read access violation

I'm loading OpenGL with Glad (in combo with GLFW), and calling native functions by loading them in with LoadLibrary/GetProcAddress and casting to a function pointer in C#. Here is an example: nint glad = LoadLibrary("glad.dll"); ... // code to…
bquack-l
  • 59
  • 4
-1
votes
1 answer

openGL draw with VBO without VAO

I can render a single triangle using VAO and VBO, here is the code // reading shader source, compile it and link shader program Shader shader("vertexShader.vs", "fragmentShader.fs"); float vertices[] = { -0.5f, -0.5f, 0.0f, …
arron
  • 73
  • 5
-1
votes
0 answers

Mac M1 - CMake GLFW and GLAD - Undefined symbols

I'm using Mac with M1 chip (clang-arm64 compiler). I'm trying to build a project for using OpenGL. To use it I need GLFW and GLAD libraries. I cannot link the libraries properly. Here's my CMakeLists.txt: cmake_minimum_required(VERSION…
-1
votes
1 answer

GLAD link is not providing needed functions

TLDR: The GLAD header file won't let me use the openGL Commands and I don't know exactly why. Here's a breakdown: I'm on a Windows 10 Laptop. I'm coding in C++. I'm compiling with MinGW's g++ tool. I'm using GLFW and GLAD. My file layout is…
Sad Robot
  • 13
  • 2
-1
votes
1 answer

How do I include a c/c++ library in vscode with Makefile

I usually use Visual Studio for c/c++ programming, however I want to give vscode a shot and I don't know how to include libraries using Makefile. (The tutorials on youtube didn't work) I tried using C/C++ Configurations (IntelliSense Configurations)…
-1
votes
1 answer

Problems getting OpenGL to work in VSCode on Mac

I am trying to complie a basic openGL program in VSCode on mac. I am using glad and GLFW, and I have the Glad files in the same folder as the test.cpp file I am trying to run. However, the include statement throws an error no matter how I type it.…
-1
votes
1 answer

GLSL shader not writing to color_attatchment1

I am trying to render to multiple render targets, I set up a float texture and bound it to COLOR_ATTACHMENT1. This all works well and the buffer is created and bound properly. The buffer is even drawn to if I let all the shaders draw to it…
Gaming Gecko
  • 49
  • 1
  • 7
-1
votes
1 answer

Calling glBindImageTexture() terminates program

My goal is to make use of compute shaders through C++ and OpenGL. The problem is that when I call glBindImageTexture() after creating and initializing a texture, it just terminates the program. I tried checking everywhere what could be the culprit,…
CodeForFun
  • 35
  • 10
-1
votes
1 answer

Errors while building GLAD with gcc

i'm having troubles with GLAD. I've downloaded the source files with this configuration: Language - C/C++ Specification - OpenGL API - gl Version 4.6 Profile - Core Generate loader is checked After unpacking the archive i got this structure (made…
y0u4r3w3
  • 67
  • 3
  • 6
-2
votes
1 answer

Makefiles giving the compiler files that dont/shouldnt exist

I have a basic Makefile setup for C OpenGL programming but when running there are 2 files passed to clang that shouldnt exist and i have no idea why. The problem happened after i added glad and glfw to the project. code: CC = clang `CCFLAGS…
-2
votes
1 answer

C++ Same include line in 2 files in the same folder: one works, another can't find the file

Windows 10 Eclipse IDE for C/C++ Developers Version: Kepler Service Release 2 Build id: 20140224-0627 I'm trying to use imgui. Unfortunately, documentation is pretty shady about how to get it working. So, in order to get it working, I think I need…
Ilya
  • 992
  • 7
  • 14
1 2 3
8
9