Questions tagged [glfw]
GLFW is a free, Open Source, multi-platform library for opening a window, creating an OpenGL context and managing input. It is easy to integrate into existing applications and does not lay claim to the main loop. GLFW is written in C and has native support for Windows, Mac OS X and many Unix-like systems using the X Window System, such as Linux and FreeBSD. GLFW is licensed under the zlib/libpng license.
glfw
2,456
questions
-2
votes
0
answers
33
views
Trouble setting up OpenGL on Windows (in VS Code)
I am following the tutorial text to setup OpenGL on Windows 11.
This is the main script(HelloWorld.cpp):
#include <GLFW/glfw3.h>
int main(void)
{
GLFWwindow* window;
/* Initialize the ...
-3
votes
0
answers
55
views
How do I create a window creation function for OpenGL? [closed]
GLFWwindow* window = glfwCreateWindow(SCR_WIDTH, SCR_HEIGHT, "OpenGL", NULL, NULL);
if (window == NULL) {
cout << "Failed to Create GLFW window" << endl;
...
0
votes
0
answers
9
views
Failed to use MTWindow in Docker
I used the following method to open the desktop
xhost '+local:*';
The description of creating a Docker container is as follows:
sudo docker run -dit --privileged --name test3 -v /dev/bus/usb:/deb/bus/...
0
votes
1
answer
47
views
Access violation inside glfwPollEvents()? [closed]
When I start my program:
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
struct ...
-2
votes
0
answers
15
views
pyassimp.errors.AssimpError: assimp library not found [closed]
(CGIP) ┏[vbk16] ┖[E:\6th Sem\CG\Mini_Project]> python .\Program.py Traceback (most recent call last): File "E:\6th Sem\CG\Mini_Project\Program.py", line 7, in <module> import ...
-1
votes
1
answer
32
views
Modifying window size with GLFW
When I use GLFW to create a window with glfwWindowHint(GLFW_DECORATED, GLFW_FALSE); to remove window decorations, how can I resize the window by dragging with the mouse?
"I tried using ...
1
vote
1
answer
64
views
GLEW vs WinAPI, windows size and click coordinates problem
I have some discrepancies when I use different windowing APIs. When I create window with WinAPI it is 1.5 times larger than the window created by GLFW. Documentation for both says that width and ...
0
votes
0
answers
25
views
Cmake Nested Projects Static Linking Problem with glew32s.lib and glfw3.lib [duplicate]
I am developing a library to easily create an OpenGL window context and display an image on it. I have two CMakeLists.txt files. The first one (top project) is for the .exe file, and the second one (...
-1
votes
0
answers
20
views
cmake build is coming up with a "Undefined reference to 'glClear'" error [duplicate]
this is the error code i get when i try to run the program
[main] Building folder: opengl opengl
[build] Starting build
[proc] Executing command: /usr/bin/cmake --build /home/amy/Documents/dev/opengl/...
0
votes
1
answer
124
views
libdecor-gtk-WARNING: Failed to initialize GTK. Occurs when using glfwinit
I have a testing project set up for bgfx, which I was trying to learn.
Problem is, i can't get GLFW to initialize properly.
The code snippet currently existing is this:
#include <bgfx/bgfx.h>
#...
-2
votes
1
answer
63
views
LWJGL glfwPollEvents blocks libGDX main loop on macOS
While my Lwjgl3Application-based game runs fine on windows and various linux distros, I only get a black screen on macOS. Looks like the call to glfwPollEvents does not return at all which blocks the ...
-1
votes
0
answers
22
views
error in make :In function 'initextensions': undefined reference to symbol 'XF86VidModeQueryExtension' (linux,ubuntu) [duplicate]
I met an error when I run make command in bulid file of my project
It shows
//usr/local/lib/libglfw3.a(x11_init.c.o): In function `initExtensions' :
x11_init.c:(.text+0x196c): undefined reference to ...
-1
votes
0
answers
34
views
Connot create graphics with OpenGL 4 [duplicate]
I want to learn OpenGL 4.4 on my PC under Windows 10, but I have a problem.
I have two graphics processors : the first is Intel HD Graphics 4000 wich is compatible with OpenGL 4.0
and the second is ...
2
votes
1
answer
63
views
Multiple models not rendering together but rendering seperately
I am building a simple test to see if I can render multiple separate objects using multiple EBOs, VAOs, and VBOs. I've gotten this to work in the past with just quads, but now that I am using a cube ...
-1
votes
1
answer
54
views
Can someone explain me how to add GLFW in a new CLion project?
I've been learning Cpp for a little while now, and I want to import libraires and such. But I haven't been able to import and use anything so far... I downloaded the binaries for GLFW, copied the ...