2006-11-25 11:49:17 -07:00
|
|
|
/*
|
2010-05-22 14:05:42 -06:00
|
|
|
* Copyright (C) 2009 Chia-I Wu <olv@0xlab.org>
|
2006-11-25 11:49:17 -07:00
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included
|
|
|
|
* in all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
|
|
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2010-05-22 14:05:42 -06:00
|
|
|
#ifndef _WINSYS_H_
|
|
|
|
#define _WINSYS_H_
|
2006-11-25 11:49:17 -07:00
|
|
|
|
2010-05-22 14:05:42 -06:00
|
|
|
#include <EGL/egl.h>
|
2006-11-25 11:49:17 -07:00
|
|
|
|
2010-05-22 14:05:42 -06:00
|
|
|
EGLBoolean winsysInitScreen(void);
|
|
|
|
EGLBoolean winsysQueryScreenSize(EGLint *width, EGLint *height);
|
|
|
|
void winsysFiniScreen(void);
|
2006-11-25 11:49:17 -07:00
|
|
|
|
2010-05-22 14:05:42 -06:00
|
|
|
void winsysSwapBuffers(void);
|
|
|
|
double winsysNow(void);
|
2006-11-25 11:49:17 -07:00
|
|
|
|
2010-05-22 14:05:42 -06:00
|
|
|
void winsysRun(double seconds, void (*draw_frame)(void *data), void *data);
|
2006-11-25 11:49:17 -07:00
|
|
|
|
2010-05-22 14:05:42 -06:00
|
|
|
#endif /* _WINSYS_H_ */
|