GLFW is a cross-platform library for creating and interacting with windows with an OpenGL context.
1
vote
1answer
42 views
Runtime resolution changing with GLFW3
I've been trying to figure out the correct method for changing the resolution/fullscreen state of a GLFW window for a while now, but after searching all I found were references of how to do it with ...
0
votes
0answers
16 views
Compiling glfw application mingw
I am trying to compile a glfw application on mingw.
I am using 64 bit windows and 32bit mingw compiler And I have downloaded 32 bit binaries from http://www.glfw.org/download.html I am trying do by ...
0
votes
0answers
36 views
Game loop not functioning correctly
I'm working on a game loop in C++ using OpenGL and GLFW and it works like expected (I think), except when I'm focused in the window the FPS drops to 1fps (or 1000ms per frame) but when I'm not focused ...
0
votes
1answer
50 views
How can I ensure GLFW callback events only happen once in the main loop?
The problem is that the mouse and keyboard events can be triggered before the main loop(in which the program starts to render and update content) takes place. In the program if the moues button is ...
0
votes
1answer
404 views
How do I set a background image in OpenGL/GLFW?
I'm writing a simple 2D game with C++ and OpenGL/GLFW, and my current step is to create a menu. I finished with buttons, but I think it looks a little bit boring (with only 4 buttons and a black ...
2
votes
1answer
162 views
GLFW mouselook under OSX
I'm continuing to port an OpenGL app from Visual Studio 2012 to XCode 5.
The only major issue I'm having is mouselook. It "doesn't work" under OSX (Mavericks).
Here's the (pseudocode):
...
3
votes
2answers
1k views
Why does my machine render OpenGL using my onboard chipset instead of my graphics card?
I'm following an OpenGL tutorial series at opengl-tutorial.org, but have run into a problem:
The following lines:
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
...
0
votes
1answer
362 views
Why would creating a GLFW 3 window return null?
For some reason after calling 'glfwCreateWindow' I get back NULL as the return value.
I'm initializing GLFW beforehand with 'glfwInit' and while searching for a solution tried setting ...
0
votes
1answer
2k views
How to find monitor resolution with glfw3?
For a while now, I have been playing around with making a game using OpenGL, and glfw3. I have been perfectly happy to create windows at my native resolution of 1920x1080. I'm getting to the point ...
1
vote
1answer
115 views
What is the purpose of bitdepth for the several components of the framebuffer in glfwWindowHint function of GLFW3?
I would like to know what are the following "framebuffer related hints" of GLFW3 function glfwWindowHint :
GLFW_RED_BITS
GLFW_GREEN_BITS
GLFW_BLUE_BITS
GLFW_ALPHA_BITS
GLFW_DEPTH_BITS
...
-1
votes
2answers
920 views
Need help drawing obj file! [closed]
I'm using GLFW and I want to draw a obj file. How are they drawn? I know how to draw 3D in OpenGL but when I open the obj file I see "v"s, "vn"s, "f"s, "vt"s, what are these? I don't know how to read ...
1
vote
0answers
347 views
Separating rendering and logic thread in GLFW? [closed]
I want to separate my rendering thread (the main thread) and my logic thread in my GLFW game. I'm new to the concept of threading inside games. How would this be done? GLFW isn't thread safe so it ...
21
votes
1answer
667 views
My game seems to be incompatible with recording software. What could be causing this?
I've just finished a little Game-Dev project for university and I need to record a video to accompany my submission (just in case they can't get my source to work). Basically my game doesn't work at ...
0
votes
1answer
439 views
gluLookAt strange behavior implementing camera
I'm having a super tough time trying to implement what I thought would be a very straightforward problem. I'm trying to demonstrate a free camera that can move forward/back, strafe left/right, fly ...
2
votes
1answer
3k views
Why does glGetString returns a NULL string
I am trying my hands at GLFW library. I have written a basic program to get OpenGL renderer and vendor string. Here is the code
#include <GL/glew.h>
#include <GL/glfw.h>
#include ...
0
votes
1answer
453 views
Problem with GLFW input
I am using GLFW for the input in my game. I just started learning it and I have encountered a problem. The problem is the input, I have a callback function, where I check for keypresses. I want the ...
2
votes
1answer
405 views
Kinds of anti aliasing? [closed]
I'm looking into the newer OpenGL's with GLFW, but I'm stuck in a decision. What kind of anti aliasing is the best, or something that makes it look real, not "real". I don't want the picture blurred, ...
2
votes
2answers
3k views
Frame timing for GLFW versus GLUT
I need a library which ensures me that the timing between frames are more constant as possible during an experiment of visual psychophics.
This is usually done synchronizing the refresh rate of the ...
1
vote
1answer
882 views
C++ OpenGL wireframe cube rendering blank
I'm just trying to draw a bunch of lines that make up a "cube". I can't for the life of me figure out why this is producing a black screen. The debugger does not break at any point.
I'm sure it's a ...
5
votes
2answers
4k views
Toggle Fullscreen at Runtime
Using the library GLFW, I can create a fullscreen window using this line of code.
glfwOpenWindow(Width, Height, 8, 8, 8, 8, 24, 0, GLFW_FULLSCREEN);
The line for creating a standard window looks ...