Questions tagged [glew]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
177 views

OpenGL c++ cube render back issue

I'm testing on OpenGL and I've created a cube that rotates, but everytime I launch it some weird bugs happens and sometimes opengl gives priority to the back faces and other times it just break and ...
0
votes
1answer
311 views

C++ glGenBuffers does not return proper VBOID when called in thread [closed]

I'm currently learning to properly use multithreading in C++ in combination with OpenGL and GLFW, and I encounter a strange bug in my application. I'm generating a procedurally generated terrain in a ...
1
vote
1answer
352 views

Transform existing C++ OpenGL project from glut/glew to GLFW

Is it possible to easly transform existing glut/glew to GLFW API?
-1
votes
2answers
233 views

C++/GLEW strange artefacts when drawing a 3D cube

I'm working on a bad 3D game engine in C++ with the help of GLEW, GLM and GLFW. I made the engine halfway through in 2D, but I wanted to rewrite it for 3D. I skipped the part with the per-vertex color,...
0
votes
1answer
452 views

OpenGL: Better Approach to Repeating Sprites (e.g. terrain)?

Preface: Linux (Ubuntu 16.04 Gnome), C++11, SDL2, GLEW 2.0, OpenGL 4.5 Hello ladies/gents, My conundrum is this: How do I handle draw a repeated texture (sprite) as a single object, at various ...
2
votes
1answer
181 views

Rotating a Row of Textures

Preface: In Linux, using C++11, SDL2, GLEW, and OpenGL. Hello Ladies/Gents, I am reaching out as I'm stuck on a fairly simple problem that a decade out of school has further hindered. Specifically, ...
-1
votes
1answer
820 views

What is the difference between OpenGL, SDL, DirectX, GLFW, GLUE?

I have not work with graphics yet but I'd like to know its concepts at some high level overview. I was told that OpenGL and DirectX are somehow programmed into my graphics card, and I can use GLFW, ...
0
votes
3answers
3k views

Glew isn't initializing

I making a game on visual studio, I am still learning though. SO I create the window the context and then initialize glew. Glew doesn't initialize I just get a self-created error(cout written by me) ...
1
vote
2answers
716 views

Should I link GLFW and GLEW into my engine directly?

I want to write my own (simple) game engine with OpenGL. I use GLEW and GLFW and so far linked it successfully. Should the engine or the respective game (which depends on the engine) include GLFW ...
0
votes
1answer
451 views

Some OpenGL code not working, but some is

I'm just starting out using GLEW and GLFW in a C++ project for my rendering code, but I'm having trouble actually getting anything to render. I know OpenGL is working in some capacity, because I am ...
2
votes
1answer
58 views

Normals showing unexpected results

I am making a game in c++ with opengl and glm and was working on my terrain when this happend : as it appears it is renderering just the way i planned it, but my question was, how do i make it appear ...
0
votes
1answer
77 views

Terrain not rendering like it should be

i was following this tutorial here: https://www.youtube.com/watch?v=yNYwZMmgTJk, in which i was translating from Java to C++ to generate a terrain, and stumbled across this issue: As it appears, it ...
15
votes
1answer
7k views

What is GLEW and how does it work?

I am looking for a beginner-friendly explanation. The official website's explanation is too short and lead me to more questions than answers: What is GLEW? GLEW developer's page says: The OpenGL ...
4
votes
1answer
442 views

What is causing my default libraries to conflict with OpenGL extensions?

So I'm currently following the tutorial for creating OpenGL programs on learnopengl.com,so I'm using GLFW, GLEW and the base library for OpenGL. However, when I go to build my code, I get a warning ...
0
votes
0answers
36 views

Having trouble running OpenGL on MSVC

I'm using the OpenGL Programming Guide, 8th Edition with MSVC 2013 but I can't get the triangles.cpp file to run. These are the errors popping up: http://puu.sh/jAokn/c07420cf46.png
0
votes
1answer
11k views

Porting SDL OpenGL Game to Android and IOS

I am currently learning OpenGL (3.0+) with C++. I am using SDL for input handling, window creation, etc., GLEW to use OpenGL and call OpenGL Functions, and GLM for OpenGL Math stuff. If I fully ...
4
votes
1answer
494 views

Nvidia Nsight 4.6 VS Edition. The Graphics debugger can't find glew32.dll

I'm trying to debug some textures and FBO's with Nvidia Nsight 4.6 VS Edition. But when I select either "Start CUDA debugging" or "Start graphics debugging" I get an error. "The program can't start ...
3
votes
1answer
2k views

How do I get GLEW to use my Nvidia GPU instead of an integrated Intel card?

I'm new to graphics programming, though not to coding generally. I've been learning opengl from the OpenGL Superbible, 6th Edition. I was trying out the shader examples from the book but couldn't get ...
1
vote
0answers
530 views

OpenGL - Texture disappears

I'm making a simple program with C++, SDL and GLEW. So far it is going great but I ran into a weird problem. One of my four textures would not show up on screen even though it used the same code as ...
3
votes
2answers
5k views

glGenVertexArrays causes crash

My code keeps crashing at runtime, I have done some creative debugging and determined that it was the glGenVertexArrays that was causing the crash, I've looked around and come across some answers that ...
5
votes
3answers
2k views

How can I use ARB_debug_output with SDL on Windows?

I'm trying to port a small GL program that I've been working on from Linux to Windows. I have the following: ...
1
vote
1answer
551 views

glGenBuffers fails with 0x0, win7, glew [closed]

I try to run a simple renderer on my win7 machine but it dies at the first glGenBuffers call. The computer has an Intel HD3000 card, with the latest driver (OpenGL 3.0 support). I use glew 1.10 (self ...
0
votes
1answer
721 views

How to enable geometry shader in OpenGL 4.2?

I'm porting my Direct3D-based engine to OpenGL and I'm using geometry shaders for rendering text characters (basically, textured billboards). D3D version works fine, but in OpenGL mode it gives only ...