1 // 2 // Copyright 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 12 #include <stdlib.h> 13 14 #include <EGL/egl.h> 15 #include <EGL/eglext.h> 16 17 #include "util/Event.h" 18 #include "util/util_export.h" 19 20 class ANGLE_UTIL_EXPORT OSPixmap 21 { 22 public: OSPixmap()23 OSPixmap() {} ~OSPixmap()24 virtual ~OSPixmap() {} 25 26 virtual bool initialize(EGLNativeDisplayType display, 27 size_t width, 28 size_t height, 29 int nativeVisual) = 0; 30 31 virtual EGLNativePixmapType getNativePixmap() const = 0; 32 }; 33 34 ANGLE_UTIL_EXPORT OSPixmap *CreateOSPixmap(); 35 36 #endif // SAMPLE_UTIL_PIXMAP_H_ 37