24
|
1 |
/* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
*
|
|
3 |
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
4 |
* copy of this software and /or associated documentation files
|
|
5 |
* (the "Materials "), to deal in the Materials without restriction,
|
|
6 |
* including without limitation the rights to use, copy, modify, merge,
|
|
7 |
* publish, distribute, sublicense, and/or sell copies of the Materials,
|
|
8 |
* and to permit persons to whom the Materials are furnished to do so,
|
|
9 |
* subject to the following conditions:
|
|
10 |
*
|
|
11 |
* The above copyright notice and this permission notice shall be included
|
|
12 |
* in all copies or substantial portions of the Materials.
|
|
13 |
*
|
|
14 |
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17 |
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18 |
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19 |
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR
|
|
20 |
* THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef _RIEGLOS_H
|
|
24 |
#define _RIEGLOS_H
|
|
25 |
|
|
26 |
#include "EGL/egl.h"
|
|
27 |
#include "riImage.h"
|
|
28 |
|
|
29 |
namespace OpenVGRI
|
|
30 |
{
|
|
31 |
|
|
32 |
/*-------------------------------------------------------------------*//*!
|
|
33 |
* \brief
|
|
34 |
* \param
|
|
35 |
* \return
|
|
36 |
* \note
|
|
37 |
*//*-------------------------------------------------------------------*/
|
|
38 |
struct OSWindowContext
|
|
39 |
{
|
|
40 |
int window;
|
|
41 |
unsigned int* tmp;
|
|
42 |
int tmpWidth;
|
|
43 |
int tmpHeight;
|
|
44 |
};
|
|
45 |
|
|
46 |
void* OSGetCurrentThreadID(void);
|
|
47 |
void OSDeinitMutex(void);
|
|
48 |
void OSAcquireMutex(void);
|
|
49 |
void OSReleaseMutex(void);
|
|
50 |
OSWindowContext* OSCreateWindowContext(EGLNativeWindowType window);
|
|
51 |
void OSDestroyWindowContext(OSWindowContext* ctx);
|
|
52 |
bool OSIsWindow(const OSWindowContext* context);
|
|
53 |
void OSGetWindowSize(const OSWindowContext* ctx, int& width, int& height);
|
|
54 |
void OSBlitToWindow(OSWindowContext* ctx, const Drawable* drawable);
|
|
55 |
EGLDisplay OSGetDisplay(EGLNativeDisplayType display_id);
|
|
56 |
} //namespace OpenVGRI
|
|
57 |
|
|
58 |
#endif
|