Questions tagged [glew]
The glew tag has no usage guidance.
26
questions
0
votes
0
answers
49
views
Jittery and Jumpy camera movement with SDL2 and OpenGL
i have successfully been able to draw a cube using openGL and SDL2. To me the next natural step would be to add some basic forward/backward movement to the camera. I did so with this code here:
...
1
vote
1
answer
1k
views
Why is my OpenGL triangle not drawing on the screen?
I am currently following this tutorial to create a simple game engine, but I am doing it using SDL and C++. I am stumped, however, because I can't get a triangle to draw on the screen, and I'm getting ...
1
vote
0
answers
92
views
Subtract a circle on a rectangle - OpenGL
I am writing a game using GLFW, GLEW, GLM and Bullet3 in C++. Its a Maze with holes. I am doing the floor with rectangles (wich is 2 GL_TRIANGLES).
I want to make some woles (circles), to the ball ...
2
votes
2
answers
342
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
1
answer
511
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
1
answer
649
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
2
answers
378
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
1
answer
819
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
1
answer
287
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
vote
2
answers
4k
views
What is the difference between OpenGL, SDL, DirectX, GLFW, GLUE?
I'm aware that OpenGL and DirectX are somehow programmed into my graphics card drivers initially, and I can use GLFW, SDL etc. to get access to those and manipulate them, by creating kind of different ...
0
votes
3
answers
8k
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
2
answers
1k
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
1
answer
856
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
1
answer
74
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
1
answer
87
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 ...
18
votes
1
answer
11k
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
1
answer
798
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
0
answers
39
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
2
votes
1
answer
14k
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
1
answer
758
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 ...
4
votes
1
answer
5k
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
0
answers
691
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
2
answers
7k
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
3
answers
3k
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
1
answer
635
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
1
answer
940
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 ...