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

Updating instanced data with a compute shader

I can't get instanced geometry to work with a compute shader (I got both things work in isolation but don't know how to combine them). Below is an example that renders instances of a colored quad with different offsets. I'd like to be able to update…
0
votes
1 answer

can SFML and glad be used in the same project

I am compleatly new to both SFML and OpenGL. Following the holy LearnOpenGl tutorial I managed to make a triangle, but now I have used SFML for a lot of a project already and I need to do something in 3d, thus (I think) I need glfw and glad but when…
0
votes
1 answer

OpenGL GLFW + GLAD Program not drawing triangle

I am trying to draw a triangle with GLFW and Glad. But the screen won't display anything (I can only clear the screen). I am able to Open a Window, and clear the screen to a dark blue color (or any other color) But I cannot draw a triangle on the…
Sarund9
  • 3
  • 1
0
votes
1 answer

Issues while rendering textures in OpenGL in C++

I am having issues rendering textures in OpenGL. My goal is to render transparent and non transparent textures but the code I am using seems to swap and mix the pixels of my files. I am mostly taking the code from this tutorial (learnopengl.com)…
LiteApplication
  • 177
  • 2
  • 13
0
votes
1 answer

Segmentation Fault with glViewport (openGL C++ programming with GLFW and GLAD)

1) Problem summary: I am following exactly the tutorials on LearnOpenGL dot com. My program is crashing (with a segmentation fault) whenever glViewport is being called. How can I have it not crash while calling glViewport according to the code shown…
0
votes
0 answers

CMake Error Using GLFW and GLAD: Found Relative Path While Evaluating Link Directories

I have been attempting to play around with C and OpenGL and am currently attempting to write a simple Snake program using these two libraries. Although I am on Windows, I prefer not to use Visual Studio and so am currently building my project with…
ComedicChimera
  • 466
  • 1
  • 4
  • 15
0
votes
1 answer

how do I properly link GLAD to my project

I am making a small game engine in Visual Studio. As far as I am aware I have everything linked correctly, but I am still generating this in the .log file Creating library C:\dev\Gluten\Gluten\bin\x64\Release\Gluten.lib and object…
DevStuffz
  • 19
  • 9
0
votes
1 answer

Segmentation Fault when using some OpenGL functions

I am having troubles using OpenGL functions in my render loop. Here is my code : // This works, I have glad in an include folder with glad headers in it #include "include/glad/glad.h" #include #include int main(int argc,…
LiteApplication
  • 177
  • 2
  • 13
0
votes
0 answers

Getting GLFW together with glad to work on windows

i wanted to start a small project using OpenGL. I have done similar things in Java before and wanted to transfer some code to C++. I started with installing glfw using msys2: pacman -S mingw-w64-x86_64-glfw Beside that, I had a glad.c and glad.h…
Finn Eggers
  • 857
  • 8
  • 21
0
votes
2 answers

Why is this texture not showing up?

I am following the tutorial from learnopengl.com to make a game engine. I am using stb_image.h to load the textures, and my own header file to compile and link the shaders. I got to the part in Getting Started/Textures where the container.jpg…
0
votes
0 answers

Using glad in Qt: QOpenGL and glad are conflicting

QT version: 5.12.0 OpenGL version: 4.5 core Development environment: VS 2017 pro file: QT += widgets ... I have already add the glad.c file into my project, and ensure that the glad.h is included at the first place in every file. But while I…
Ray
  • 61
  • 4
0
votes
0 answers

glVertexAttribDivisor not present

The function glVertexAttribDivisor when used with CMake - it just throws the following error during compilation, which means that function is not imported. error: 'glVertexAttribDivisor' was not declared in this scope; did you mean…
Rohan Asokan
  • 634
  • 4
  • 22
0
votes
1 answer

Trouble linking with glfw

I'm using codeblocks and MinGW and windows 10. I put the directory for the include folder for glad and GLFW under compiler under search directories. I put the directory for the lib folder for GLFW under compiler under search directories. I also put…
The Man
  • 9
  • 1
0
votes
0 answers

Visual Studio cant find glad.h

Visual studio cant find glad.h. To test if everything was working I used this code: #include #include #include void framebuffer_size_callback(GLFWwindow* window, int width, int height); void…
Astrocow
  • 1
  • 1
0
votes
0 answers

Problems linking glfw3 in Ubuntu 18.04

I am trying to run a single program using OpenGL: #include "glad/glad.h" #include "GLFW/glfw3.h" int main() { glfwInit(); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); …
Antonio Gamiz Delgado
  • 1,871
  • 1
  • 12
  • 33
1 2 3
8 9