blob: cf2c2b5746014290d4c02b116a2396a84a964c72 [file] [log] [blame]
Corentin Wallez52445282015-06-09 09:15:54 +02001//
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
12#include <EGL/egl.h>
13#include <EGL/eglext.h>
14
15#include "Event.h"
16
17class OSPixmap
18{
19 public:
20 OSPixmap() {}
21 virtual ~OSPixmap() {}
22
23 virtual bool initialize(EGLNativeDisplayType display, size_t width, size_t height, int depth) = 0;
24
25 virtual EGLNativePixmapType getNativePixmap() const = 0;
26};
27
28OSPixmap *CreateOSPixmap();
29
30#endif // SAMPLE_UTIL_PIXMAP_H_