15,203 reputation
13571
bio website vectorstorm.org
location Melbourne, Australia
age
visits member for 3 years, 8 months
seen 8 hours ago

Mobygames Profile (not entirely accurate): http://www.mobygames.com/developer/sheet/view/developerId,80048/


Dec
23
answered How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
Dec
23
comment Fragment Shader output type error
I've gone over a diff of the two versions of the loading code; the only material differences (besides different indenting and a few modified variable names) is the code for printing out the shader info logs. The original code destroyed shaders and exited when a compile error was reported. The new code does not. (In fact, the new code doesn't even check whether the shader compilation succeeded) Whatever solved the problem, it seems implausible for it to have been related to this code.
Dec
23
reviewed Close How to handle car game circuits in a top-down view?
Dec
23
reviewed Close How do I compute the angle between a pixel on an irregular curve and a circle colliding with it?
Dec
23
reviewed Close (LibGdx) Get mouse position in ENTIRE game
Dec
23
reviewed Close Audio Panning using RtAudio
Dec
23
revised Why isn't my aspect ratio calculation working on Android platforms?
now -> not, and then is (...) not -> isn't.
Dec
23
comment How to setup glOrtho and Viewport
@AndonM.Coleman These arguments are unhelpful. I think your interpretation of the question is problematic. Particularly since the question was how to make the area defined by those variables fill the display. That question makes no sense if those two things are, in fact, the same thing, as you claim. Unless the original asker comes back to explain their intent, we're going to have to agree to disagree over the likely intent of this confusingly phrased question.
Dec
22
reviewed Close 2D game development with C++
Dec
22
comment How to setup glOrtho and Viewport
@AndonM.Coleman The precise question was how to "fill the display". I think it's pretty clear that they weren't asking how to fill only a small portion of a window.
Dec
22
comment How to setup glOrtho and Viewport
Using these variables how can i configure glViewport to have the area defined by the dimX variables fill the display? The origin needs to be at 0,0 and the viewport needs to fill the entire window. That was the question being asked, as I read it.
Dec
22
comment How to setup glOrtho and Viewport
Your glViewport call won't work if dimL doesn't equal zero, or if dimR doesn't equal windowWidth. Similarly, dimB must be zero, and dimT must equal windowHeight. I don't think the question implied that any of those conditions were necessarily the case.
Dec
22
reviewed Close GPU skinning weird issue
Dec
22
comment How to setup glOrtho and Viewport
I don't think this is right: glViewport (dimL, dimB, dimR - dimL, dimT - dimB). Those dimL, dimB, dimR, and dimT values are the values being passed to glOrtho() (according to the code provided by the OP); they don't necessarily have anything to do with the window dimensions.
Dec
22
answered How to setup glOrtho and Viewport
Dec
20
comment Problem getting mouse events while keys held down in SDL2
@sol_var You should post that as the answer and accept it. :)
Dec
19
answered Box2d C++ x velocity slowing for no apparent reason
Dec
18
comment Problem getting mouse events while keys held down in SDL2
No, in SDL2 you will receive SDL_KEYDOWN multiple times, at a frequency based on your OS's key repeat rate. (You can tell whether a SDL_KEYDOWN was generated by a true keydown or by the OS's key repeat by checking the value of event.key.repeat.)
Dec
18
comment Problem getting mouse events while keys held down in SDL2
For what it's worth, the code looks legal, and it works for me as-is under Linux, using SDL2 v2.0.2.
Dec
18
comment Problem getting mouse events while keys held down in SDL2
Note that if you're receiving mouse motion data via SDL_PollEvent, you can get the mouse's absolute position from event.motion.x and event.motion.y (and its motion from event.motion.xrel and event.motion.yrel) -- no need to call SDL_GetMouseState. (This doesn't answer your question -- it's just a side-note)