• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**************************************************************************
2  *
3  * Copyright 2010, 2011 BMW Car IT GmbH
4  * Copyright (C) 2011 DENSO CORPORATION and Robert Bosch Car Multimedia Gmbh
5  *
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *        http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  ****************************************************************************/
20 #ifndef _WLEYESRENDERER_H_
21 #define _WLEYESRENDERER_H_
22 
23 #include <wayland-client.h>
24 #include "WLEGLSurface.h"
25 #include "WLEyes.h"
26 
27 bool InitRenderer();
28 bool InitShader();
29 bool InitVertexBuffer();
30 int WaitForEvent(struct wl_display* wlDisplay, int fd);
31 void TerminateRenderer();
32 
33 bool DrawEyes(WLEGLSurface* surface, WLEyes* eyes);
34 void DrawFillPoly(const int nPoint, const float* points, const float color[4]);
35 void DrawPoly(const int nPoint, const float* points, const float color[4], int width);
36 
37 extern const struct wl_pointer_listener PointerListener;
38 extern const struct wl_keyboard_listener KeyboardListener;
39 extern const struct wl_touch_listener TouchListener;
40 
41 #endif /* _WLEYESRENDERER_H_ */
42