blob: 47cd53175fd47d657cd1ccd4f3b31eee79ee14a4 [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
Corentin Wallez27593e02015-09-15 08:19:09 -070012#include <stdlib.h>
13
Corentin Wallez52445282015-06-09 09:15:54 +020014#include <EGL/egl.h>
15#include <EGL/eglext.h>
16
17#include "Event.h"
18
19class OSPixmap
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
30OSPixmap *CreateOSPixmap();
31
32#endif // SAMPLE_UTIL_PIXMAP_H_