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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -