45 lines
860 B
C
45 lines
860 B
C
#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
|