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 | |
Yuly Novikov | 9f08862 | 2018-12-29 20:46:15 +0000 | [diff] [blame] | 14 | #include <export.h> |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 15 | #include <EGL/egl.h> |
| 16 | #include <EGL/eglext.h> |
| 17 | |
Yuly Novikov | 9f08862 | 2018-12-29 20:46:15 +0000 | [diff] [blame] | 18 | #include "Event.h" |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 19 | |
Yuly Novikov | 9f08862 | 2018-12-29 20:46:15 +0000 | [diff] [blame] | 20 | class ANGLE_EXPORT OSPixmap |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 21 | { |
| 22 | public: |
| 23 | OSPixmap() {} |
| 24 | virtual ~OSPixmap() {} |
| 25 | |
Yuly Novikov | 9f08862 | 2018-12-29 20:46:15 +0000 | [diff] [blame] | 26 | virtual bool initialize(EGLNativeDisplayType display, size_t width, size_t height, int depth) = 0; |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 27 | |
| 28 | virtual EGLNativePixmapType getNativePixmap() const = 0; |
| 29 | }; |
| 30 | |
Yuly Novikov | 9f08862 | 2018-12-29 20:46:15 +0000 | [diff] [blame] | 31 | ANGLE_EXPORT OSPixmap *CreateOSPixmap(); |
Corentin Wallez | 5244528 | 2015-06-09 09:15:54 +0200 | [diff] [blame] | 32 | |
Yuly Novikov | 9f08862 | 2018-12-29 20:46:15 +0000 | [diff] [blame] | 33 | #endif // SAMPLE_UTIL_PIXMAP_H_ |