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
1 answer

I really need to add # in Cmake url but BYPRODUCTS containing a "#" is not allowed

Code in CMakeLists.txt if (NOT glad_FOUND) include(FetchContent) FetchContent_Declare( glad URL…
Chu Chun
  • 35
  • 6
0
votes
1 answer

Text rendering in OpenGL using FreeType

I'm trying to display some simple text in OpenGL, but all I get is a black screen. I'm using cglm (glm for c), glad, and glfw. Here is my code: #include #include #include #include #include…
0
votes
1 answer

OpenGL clear sprite

I created 10 sprites on the window and now I want to clear only one sprite out of 10 sprites. Now the function glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) clears the entire window of sprites, but I don't want to clear the entire window of…
0
votes
0 answers

Include Conan Libraries with multiple cmake files/Program throws exception when calling glCreateShader only with conan libraries integrated

I'm currently developing a small game native in C++ and OpenGL.... So now I am at the point where I wanna include Nvidia PhysX to get the nice physics simulations. For that, I'm utilizing Conan (Without it, it's kinda annoying). The thing is when I…
0
votes
1 answer

Unable to compile GLFW and GLAD

I was trying to setup a project with GLFW and GLAD. The file structure is as following: opengl │ build.bat │ main.c │ ├───bin │ ├───deps │ └───lib-vc2022 │ glfw3.lib │ └───include ├───glad │ glad.c │ glad.h …
Ali Awan
  • 180
  • 10
0
votes
2 answers

Black lines between 2d textures

I just started learning opengl technology. My program draw 2d isometric tiles and program output this: Be unknown reasons black lines appear when two textures overlap or two textures touch. Code example: typedef unsigned int ID; class GraphicEngine…
0
votes
1 answer

expected 'const GLchar * const*' {aka 'const char * const*'} but argument is of type 'char **'

I tried to convert my old openGl code (written in c++) to c, I always encounter this weird warning about an incompatible pointer type when I try to use glCompileShader() char *buffer = 0; long length; FILE *f = fopen(vertexPath, "rb"); if(f) { …
randomguy
  • 3
  • 3
0
votes
1 answer

Using GLAD for Raspberry Pi project

I am trying to figure out how to create a window for my project. I want to work with OpenGL ES and I found online guides on how to use X11 and EGL for creating the window, and this option works just fine. But I am trying to follow OpenGL guides and…
0
votes
0 answers

Loading OpenGL with wgl

I have been having issues with the function "gladLoadGLLoader" in which I have been passing (GLADloadproc)wglGetProcAddress. I learned that this is because wglGetProcAddress only does functions from OpenGL 1.1+ and GetProcAddress does functions from…
Evan
  • 31
  • 3
0
votes
0 answers

what should i do to solve my problem with the compiler

whenever i am trying to compile my code using the library glad i am getting to following error c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:…
0
votes
1 answer

Create opengl context in SDL and C++ using singleton pattern

I'm trying to create a simple window with SDL and OpenGL using singleton pattern, but when I execute the code appears a white window and the usage of VGA does not increase also, any of the error handlers get nothing which means everything worked…
Eduardo Mosca
  • 71
  • 1
  • 7
0
votes
0 answers

glad causing problems when I use gladLoadGLLoader

I've been trying to use glad, however I get all sorts of issues when I use it. First off, I get no errors by just including it #include #include I only start to get problems when I use it if…
Regin.hd
  • 21
  • 2
0
votes
1 answer

How do i fix this specific "undeclared identifier" error?

I am trying to learn how to make games and simulations in c using glad and glfw. This error occurred when trying to use the struct Window in any function as parameter or just to declare a Window instance. I am getting the 'Window': undeclared…
0
votes
1 answer

VS Code GLFW and GLAD development in Mac and Windows

I just wanted to ask if anyone has been able to setup your GLFW/GLAD project in VS Code to work both in Mac and Windows, as I usually have to switch between those 2 OS and I would like to be able to work on my project on both of them.
0
votes
1 answer

C++ simple glfw/glad setup not rendering triangle

I have written a very basic test setup to render a quad with glfw/glad. I would expext it to draw a black quad in the middle of the window. #include #include #include #include #include…
Symlink
  • 383
  • 2
  • 12
1 2 3
8 9