Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [glew]

The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform.

glew
-1 votes
0 answers
48 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 ...
Yesko's user avatar
  • 1
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 (...
Thow's user avatar
  • 55
-1 votes
1 answer
57 views

Issues with GLFW and GLEW

As I've been learning C and C++, I started with SDL2 to visualize the programs I'm making. I use Visual Studio Code as I like the look of it and I don't want to use an IDE, and I use either the ...
jpwol's user avatar
  • 21
0 votes
1 answer
57 views

How to set up glew with glfw : trouble with GLEW_ERROR_NO_GLX_DISPLAY?

I have tried to use glfw and glew for a small project but I have trouble to initialize glew using glewInit(): Here is the Code: bool WindowGLFW::initialize() { // Initialize GLFW if (!glfwInit(...
Benzait Sofiane's user avatar
0 votes
0 answers
46 views

With glTexStorage3D why cant i allocate more than 2048 2D texures and what do I do if i need more?

While using glTexStorage3D(GL_TEXTURE_2D_ARRAY, 1, GL_RGBA8, width, height, depth); I can't set depth more than 2048 (otherwise OpenGL drops 1281 error which is GL_INVALID_VALUE), but I didn't found ...
bor is lov's user avatar
0 votes
0 answers
102 views

Need Help Configuring VTK-m Build (cmake) on Ubuntu 22.04

I have tried three times to build, and install, VTK-m, with cmake, and each time it has crashed my computer when I run make -j, so I really need help from a human at this point because I'm getting ...
Ashamandarei's user avatar
0 votes
0 answers
75 views

Undefined references when linking against GLFW?

Important: I didn't use Visual Code (much info in Internet about OpenGL setting up is related to this IDE) (I use VSCode). As I got, there is OpenGL realization (GLFW) and OpenGL loader, that load ...
IGoogleBeforeAsking's user avatar
0 votes
0 answers
25 views

mingw32/bin/ld.exe: cannot find -lglew

I use CLion and gcc as default compiler. GLEW and GLFW was compiled through the MinGW-32. I have that CMake File add_executable(${PROJECT_NAME} main.cpp) #OpenGL find_package(OpenGL) if(NOT ...
xeim's user avatar
  • 1
0 votes
0 answers
34 views

Can GLFW and Qt share the same OpenGL context and use GLEW functions to render to both surfaces?

I am writing an OpenGL engine that is not tied to any windowing framework. It uses GLEW to retrieve the OpenGL functions. It works perfect with GLFW, but can't figure out how to get to GLFW share its ...
Christopher Barrios Agosto's user avatar
-1 votes
1 answer
83 views

Undefined references when building GLEW program?

i set up simple OpenGl project (Clion IDE, g++ compiler from msys) i download glfw and glew source files, compiled them manually with mingw32-make. Still cannot build project due to linking problem (i ...
unstablecookie's user avatar
1 vote
0 answers
36 views

Can't get GLEW static library to link properly on windows using cmake

I have a c++ project set up on windows using cmake that should link to the libaries glfw and glew for use of messing around with opengl cmake_minimum_required(VERSION 3.28) set(CMAKE_CXX_STANDARD 17) ...
Nutritive's user avatar
1 vote
0 answers
78 views

Opengl window closes by itself

I was trying out this OpenGL program of displaying a triangle. It executes the program successfully , gives an output window with a triangle drawn, but the window closes itself after 2-3 of showing ...
Nemizis's user avatar
  • 11
0 votes
0 answers
49 views

Which step in compilation could be causing crashes in release builds when calling a modern OpenGL fuction from a static library?

I've been working on a static library to streamline two-dimensional rendering in OpenGL. The library is built using the glew and OpenGL libraries, and the other specifics are unimportant for this ...
Sunshy's user avatar
  • 1
1 vote
0 answers
121 views

Using OpenGL shader programs on the M1mac

What we want to achieve I would like to use GLSL shader programs on my M1mac. Assumption I want to use OlenGL shader program in C++ to display a red screen. However, the shader program is not ...
にぼし's user avatar
0 votes
0 answers
25 views

Why the triangle is not displayed using glm 0.9.9.8, but it works using glm 0.9.8.5? [duplicate]

I am learning opengl and the following code is displaying a blank screen when using glm 0.9.9.8, but it works correctly using 0.9.8.5. The expected behavior is to display a triangle moving left to ...
Mike's user avatar
  • 31

15 30 50 per page
1
2 3 4 5
71