Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 1 | // |
| 2 | // Copyright (c) 2015 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | // OSPixmap.h: Definition of an abstract pixmap class |
| 8 | |
| 9 | #ifndef SAMPLE_UTIL_PIXMAP_H_ |
| 10 | #define SAMPLE_UTIL_PIXMAP_H_ |
| 11 | |
Corentin Wallez | 27593e0 | 2015-09-15 08:19:09 -0700 | [diff] [blame] | 12 | #include <stdlib.h> |
| 13 | |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 14 | #include <EGL/egl.h> |
| 15 | #include <EGL/eglext.h> |
| 16 | |
| 17 | #include "Event.h" |
| 18 | |
Yuly Novikov | 55033e5 | 2016-08-25 17:32:12 +0000 | [diff] [blame] | 19 | class OSPixmap |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 20 | { |
| 21 | public: |
| 22 | OSPixmap() {} |
| 23 | virtual ~OSPixmap() {} |
| 24 | |
| 25 | virtual bool initialize(EGLNativeDisplayType display, size_t width, size_t height, int depth) = 0; |
| 26 | |
| 27 | virtual EGLNativePixmapType getNativePixmap() const = 0; |
| 28 | }; |
| 29 | |
Yuly Novikov | 55033e5 | 2016-08-25 17:32:12 +0000 | [diff] [blame] | 30 | OSPixmap *CreateOSPixmap(); |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 31 | |
| 32 | #endif // SAMPLE_UTIL_PIXMAP_H_ |