graphics - How to restart screen in openGL? -
i have developed simple program in opengl. @ first when click on ball goes above want when press 's' in keyboard ball should in initial state.i want reset tx,ty values. otherwise program changes don't come previous state. it's restart new game.
whatever state variables of program are, reset them initial values , issue redraw event. opengl draws points, lines , triangles, each @ time , forgets it. whatever keeps scene in program, it's not opengl, else.
hard tell more without seeing code.
Comments
Post a Comment