first commit
This commit is contained in:
44
CS4451/proj5/cwrappers.h
Normal file
44
CS4451/proj5/cwrappers.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#ifndef _CWRAPPERS_H_
|
||||
#define _CWRAPPERS_H_
|
||||
|
||||
#include <GL/glut.h>
|
||||
|
||||
#include "Renderer.h"
|
||||
#include "Input.h"
|
||||
|
||||
inline GLvoid reshape(GLint vpw, GLint vph)
|
||||
{
|
||||
Renderer::getInstance()->window_resize(vpw,vph);
|
||||
}
|
||||
|
||||
inline GLvoid redraw()
|
||||
{
|
||||
Renderer::getInstance()->render();
|
||||
}
|
||||
|
||||
inline GLvoid keyboard_event(GLubyte key, GLint x, GLint y)
|
||||
{
|
||||
Input::getInstance()->keyboard_event(key,x,y);
|
||||
}
|
||||
|
||||
inline GLvoid menu( int value )
|
||||
{
|
||||
Input::getInstance()->menu(value);
|
||||
}
|
||||
|
||||
inline GLvoid passive_motion(GLint mx, GLint my)
|
||||
{
|
||||
Input::getInstance()->passive_motion(mx,my);
|
||||
}
|
||||
|
||||
inline GLvoid button_motion(GLint mx, GLint my)
|
||||
{
|
||||
Input::getInstance()->button_motion(mx,my);
|
||||
}
|
||||
|
||||
inline GLvoid mouse_button(GLint btn, GLint state, GLint mx, GLint my)
|
||||
{
|
||||
Input::getInstance()->mouse_button(btn,state,mx,my);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user