#include "afxwin.h"
#include "GL/gl.h"
#include "GL/glu.h"
#include "GL/glaux.h"
void myinit(void);
void CALLBACK display(void);
void CALLBACK ProcUp(void);
void CALLBACK ProcDown(void);
void CALLBACK RrocLeft(void);
void CALLBACK ProcRight(void);
int main(int argc, char** argv)
{
auxInitDisplayMode (AUX_SINGLE | AUX_RGB );
auxInitPosition (0, 0, 500, 500);
auxInitWindow ("1-6");
myinit ();
auxKeyFunc(AUX_UP, ProcUp);
auxKeyFunc(AUX_DOWN, ProcDown);
auxKeyFunc(AUX_LEFT, RrocLeft);
auxKeyFunc(AUX_RIGHT, ProcRight);
auxMainLoop(display);
return(0);
}
void CALLBACK ProcUp (void)
{
MessageBox(0,"Up","Press",MB_ICONINFORMATION);
}
void CALLBACK ProcDown (void)
{
MessageBox(0,"Down","Press",MB_ICONINFORMATION);
}
void CALLBACK RrocLeft(void)
{
MessageBox(0,"Left","Press",MB_ICONINFORMATION);
}
void CALLBACK ProcRight(void)
{
MessageBox(0,"Rigth","Press",MB_ICONINFORMATION);
}