2,467 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
5
votes
1
answer
132
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 ...
1
vote
0
answers
74
views
Fixed Length Bytes and Glfw
I can draw a rectangle without errors if I use unsigned int or uint32_t in indices[] and I have 2 questions:
Why do I get a triangle when using uint8_t?
I get nothing if its 2 bytes (uint16_t) ?
No ...
2
votes
1
answer
123
views
Exception Thrown GLFW
I am following MG's OpenGL Tutorials and making some adjustments on my liking to the code. It was working at first, but after compiling shaders and linking them into a program, it somehow started to ...
0
votes
0
answers
91
views
Where is wgpu::EmscriptenSurfaceSourceCanvasHTMLSelector located?
I'm following this C++ WebGPU tutorial (with associated Git repo here) in another language, and so must rewrite the build script accordingly.
The tutorial calls wgpu::glfw::CreateSurfaceForWindow ...
0
votes
2
answers
203
views
Manually generated texture shows unexpected results, OpenGL
I am trying to generate texture data manually. The texture shows in unexpected ways. So I stripped all to two simple cases for 1x1 and 2x2 texture. When I provide 1x1 texture it is ok, but it is not ...
0
votes
1
answer
189
views
Linking Imgui correctly with pure c project using cImgui
I'm trying to use the latest version of cImgui, which supports Imgui 1.92.3 along CMake to link all the libraries required.
I got it compiling and now the compiler expects there to be external ...
0
votes
1
answer
39
views
(Kotlin) Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/glfw/GLFW
I'm trying to create a window in Kotlin using the LWJGL3 library. The code compiles, IntelliJ sees no issue. However when I run it expecting it to return either a 0 or a 1 to be printed out, I instead ...
0
votes
1
answer
200
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 ...
2
votes
2
answers
127
views
Simple GLFW animation of a circle fails
This is supposed to animate half of a clockwise circle, as though a particle was moving in a circle at constant speed:
// gcc simple6.c -o simple6 -lglfw -lGL -lm
// Fedora Linux 42 (Workstation ...
0
votes
0
answers
70
views
Why do I have GLFW window running on ChromeOS without decorations?
I am experiencing an issue with GLFW's window, it's running without title bar, collapse, maximize and minimize buttons! I have compiled and installed GLFW from source with it's necessary dependencies, ...
2
votes
1
answer
205
views
Cannot link to just libglfw.so (Have to include libglfw.so.3 as well)
I am making a small application with glfw. I'm not using CMake and instead opted to make a custom build system for more control, but I'm getting an error when trying to run my program:
error while ...
user avatar
user29961125
0
votes
1
answer
144
views
Segfault when calling OpenGL functions from other file
I am creating a small abstraction layer for an engine, but when I call any OpenGL API functions from a class, the code segfaults. I'm using glad and glfw and there aren't any errors from either, and ...
5
votes
1
answer
121
views
OpenGL fails to draw textured triangle?
In this program the 3 triangles aren't drawn, even when I replace the texture by vec4(0.0f, 0.5f, 0.0f, 1.0f);, trying to draw the third triangle in green:
#define GLFW_INCLUDE_NONE
#include <GLFW/...
3
votes
1
answer
102
views
Set window icon by glfw in python
I am using pyGLFW to create a window and I want to set an icon for the window. I tried to search on the glfw website but it does not support Python.
I am encountering an error when passing the image ...
0
votes
0
answers
75
views
GLSL Program crashing when attempting to include a textured background [duplicate]
I have been displaying animations:
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cmath>
#include &...