How do you make a shape static while the camera moves C++ OpenGL? -


i want make maze game, shapes in form of maze , person walking through ( or square or something) in 2d. know how make camera move, don't know how make person/square move camera. i'm using c++ opengl, , @ moment i'm using freeglut realize isn't best thing using. i'm still beginner, if can in freeglut , not have download optimal. thanks!

so, figured out answer own question. have built quad takes parameters quadx , quad y bottom left vertex. have built function moves camera based on key pressed, , have quad appear stay camera, have move same amount camera does.

p.s. make sure have thing want move camera in view @ starting location of camera, else never on screen because move away as it.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -