Posted
over 9 years
ago
Since you are using 3.0.0a, did you call GLContext.createFromCurrent() after making the context of the window current with glfwMakeContextCurrent(window) ?[code]int windowID = // create the window hereglfwMakeContextCurrent(windowID);GLContext.crea...
|
Posted
over 9 years
ago
I know how the transformation matrix works, but I don't know how to let e.g. Object1 rotate around Object2, I think I have to use some maths for this right?
|
Posted
over 9 years
ago
It must be my machine then, my code is roughly the same as yours; I'll take my precautionsCode: [Select]for (int i = 0; i < joysticks.length; i++) joysticks[i].present = glfwJoystickPresent(i) == GL_TRUE;
|
Posted
over 9 years
ago
Not sure. I tested this:Code: [Select]for ( int i = 0; i < GLFW_JOYSTICK_LAST; i++ ) { glfwJoystickPresent(i);}it takes ~100μs on my machine (Windows 10). glfwJoystickPresent is calling [url=https://msdn.microsoft.com/en-us/library/windows/desktop/...
|
Posted
over 9 years
ago
In order to support controller hot-plugging I was cheking for present joysticks once per frame (now I do it once every second) and I realized that my frames per second droped from 4 digit numbers to a few 30 to 40. I traked the isue to the glfwJoystic...
|
Posted
over 9 years
ago
m2e also has an equivalent option. Just right-click your project, then under "Maven" -> "Update Project..." mark the "Force Update of Snapshots/Releases" checkbox.
|
Posted
over 9 years
ago
Thinking that on reflection, no pun intended, that #2 might just be the most intuitive, and let the user sort out passing the correct gl_type in whether they're passing in FloatBuffers or IntBuffers or whatever. Which could allow some amusing "casting"...
|
Posted
over 9 years
ago
Andrew_3dsI use a VAO / VBO to draw text, it sounds a lot easier than using a geometry shader to generate the quads rather than generating the quads on the CPU. The basic premise is that you create a quad per character and you position that quad on th...
|
Posted
over 9 years
ago
Quote from: Andrew_3ds on August 12, 2015, 02:57:46Do I need to create a vertex array object (This is OpenGL 3)?Yes, if you're running on a core profile context.[quote author=Andrew_3ds link=topic=5886.msg31475#msg3147...
|
Posted
over 9 years
ago
Quote from: Kai on August 11, 2015, 21:50:51To make sure that you always have an up-to-date version of the latest dependencies of your Maven project, you can use the -U switch on the command line when invoking a phase ...
|