glfw

What does my choice of GLFW_SAMPLES actually do?

时光怂恿深爱的人放手 提交于 2019-12-04 00:28:54
问题 What does setting this variable do? For instance, if I set it to 4, what does that mean? I read a description on glfw.org (see here: GLFW Window Guide) under the "Framebuffer related hints" section. The manual says "GLFW_SAMPLES specifies the desired number of samples to use for multisampling. Zero disables multisampling. GLFW_DONT_CARE means the application has no preference." I also read a description of multisampling in general (see here: Multisampling by Shawn Hargreaves). I have a rough

Creating a BufferedImage causes GLFW in the LWJGL to lock up (Java)

旧时模样 提交于 2019-12-03 22:59:22
问题 There is a link to download the project below. The project already contains the LWJGL. Just open it with eclipse and tell me I'm not going crazy I'm experimenting with the LWJGL for the first time and have managed to get the sample code on the LWJGL website to work. The odd thing is, if I create an instance of a BufferedImage anywhere in the program, it causes the whole thing to lock up. I've managed to narrow it down to the ColorModel class (which is used by BufferedImage) but can't figure

Visual Studio 11 GLFW external symbol error

回眸只為那壹抹淺笑 提交于 2019-12-03 16:42:21
The basic code I use is the example from http://www.glfw.org/documentation.html I get this output: 1>------ Build started: Project: ConsoleApplication1, Configuration: Debug Win32 ------ 1> Quelle.cpp 1>Quelle.obj : error LNK2019: unresolved external symbol _glfwInit referenced in function _main 1>Quelle.obj : error LNK2019: unresolved external symbol _glfwTerminate referenced in function _main 1>Quelle.obj : error LNK2019: unresolved external symbol _glfwCreateWindow referenced in function _main 1>Quelle.obj : error LNK2019: unresolved external symbol _glfwWindowShouldClose referenced in

GLFW opens OpenGL 3.2 context but Freeglut can't - why?

大城市里の小女人 提交于 2019-12-03 14:19:35
I am working on a Mac, I've got FreeGlut compiled and installed, but I can't seem to get the OpenGL 3.2 context with it. However, I can get it without any problem while using GLFW. So in GLFW, this code works perfectly fine: glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3); glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2); glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwOpenWindow(500, 500, 8, 8, 8, 8, 24, 8, GLFW_WINDOW) But with FreeGlut, this code fails(on glutCreateWindow ): glutInitContextVersion (3, 2); glutInitContextProfile(GLUT_CORE_PROFILE); glutInitWindowSize

What is the difference between FreeGLUT vs GLFW?

∥☆過路亽.° 提交于 2019-12-03 08:11:22
问题 My university started teaching a course which includes OpenGL programming. They make us use FreeGLUT to create a window and a context for OpenGL, but I found an online course at lynda.com about OpenGL in which they use GLFW instead of FreeGLUT. So I want to know which one should I use and what are the differences between the two? 回答1: FreeGLUT: Based on the GLUT API. GLUT has been around for about as long as OpenGL itself. Many tutorials and examples out there use GLUT. Takes care of

Cannot deploy GLFW 3.2

百般思念 提交于 2019-12-03 07:36:46
So this one is a doozie; I've got a pretty large OpenGL solution, written in version 3.2 core with GLSL 1.5 in Windows 7. I am using GLEW and GLM as helper libraries. When I create a window, I am using the following lines: // Initialize main window glewExperimental = GL_TRUE; glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3); // Use OpenGL Core v3.2 glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2); glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); if(!glfwOpenWindow(Game::WINDOW_X, Game::WINDOW_Y, 0, 0, 0, 0, 32, 0, GLFW_WINDOW)) { ... If I omit the three glfwOpenWindowHint

Can't get GLFW to link

二次信任 提交于 2019-12-03 07:13:48
I am trying to compile the below test program: #include <GL/glfw.h> int main(int argc, char** argv) { if(!glfwInit()) { return -1; } if(!glfwOpenWindow(640, 480, 8, 8, 8, 0, 24, 0, GLFW_WINDOW)) { return -1; } while(glfwGetWindowParam(GLFW_OPENED)) { glfwSwapBuffers(); } return 0; } but I always get undefined reference errors in regards to the GLFW functions. Below is my makefile: CXX = clang++ CXXFLAGS = -Wall -std=c++0x LDFLAGS = -lglfw OBJ_DIR = bin LIB_DIR = -L/usr/lib INC_DIR = -I/usr/include SOURCE = main.cpp OBJECTS = ${SOURCE:%.cpp=$(OBJ_DIR)/%.o} EXECUTABLE = hello all: init $(OBJECTS

Installing GLFW on OSX

只愿长相守 提交于 2019-12-03 06:48:10
I've been all over the internet and I simply cannot find a way to install GLFW for OSX and use it with Xcode. A lot of articles use cmake for this, which I tried to install but I still can't access it from the terminal. I just need a simple step-by-step guide for installing it because I'm going to lose my mind. Thanks I use homebrew to install GLFW. Once brew has been configured, use the commands brew tap homebrew/versions brew install --build-bottle --static glfw2 If you are still running into trouble with this and want to use homebrew, change the install command to reflect the newer GLFW

GLFW MinGW link error

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been attempting to test out GLFW with C++ for quite a while and am having constant linker issues. I am fairly new to C++, although I have experience in Java and C#, working directly with the compiler is fairly new to me. Here's my setup information. IDE: Qt Creator OS: Windows 7 64-bit Compiler: MinGW32 4.8.1 01:23:26: Starting: "C:\MinGW\bin\mingw32-make.exe" C:/MinGW/bin/mingw32-make -f Makefile.Debug mingw32-make[1]: Entering directory 'A:/workspace_cpp/Test-Debug' g++ -Wl,-subsystem,console -mthreads -o debug\Test.exe debug/main.o

GLFW linking issue Visual Studio 2012

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is driving me mad, I want to statically link to GLFW.lib, following section 4.2.1. of the readme.html file provided I have added glfw.lib and opengl32.lib to the additional dependancies section of the linker on VS. I've also added the dir including glfw.lib to the additional library directories section under linker > general. And of course I have included the glfw.h file in my project, yet I'm still getting... Error 1 error LNK2019: unresolved external symbol _glfwInit referenced in function _main C:\Users\Smith_000\Documents\Visual