23 #ifndef __GL_WIDGET_H__ 24 #define __GL_WIDGET_H__ 71 bool Contains(
float x,
float y )
const;
76 inline void Move(
float x,
float y ) {
mX += x;
mY += y; }
81 inline float X()
const {
return mX; }
86 inline float Y()
const {
return mY; }
91 inline void SetX(
float x ) {
mX = x; }
96 inline void SetY(
float y ) {
mY = y; }
141 inline void GetSize(
float* width,
float* height )
const {
if(width) *width=
mWidth;
if(height) *height=
mHeight; }
261 void GlobalToLocal(
float x,
float y,
float* x_out,
float* y_out )
const;
266 void LocalToGlobal(
float x,
float y,
float* x_out,
float* y_out )
const;
302 bool OnEvent( uint16_t event,
int a,
int b,
void* user );
OpenGL display window and image/video renderer with CUDA interoperability.
Definition: glDisplay.h:47