4
* An object oriented GL/GLES Abstraction/Utility Layer
6
* Copyright (C) 2010 Intel Corporation.
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
24
* Damien Lespiau <damien.lespiau@intel.com>
27
#ifndef __COGL_PIXEL_BUFFER_PRIVATE_H__
28
#define __COGL_PIXEL_BUFFER_PRIVATE_H__
30
#include "cogl-handle.h"
31
#include "cogl-buffer-private.h"
37
#define COGL_PIXEL_BUFFER(buffer) ((CoglPixelBuffer *)(buffer))
39
#define COGL_PIXEL_BUFFER_SET_FLAG(buffer, flag) \
40
((buffer)->flags |= (COGL_PIXEL_BUFFER_FLAG_ ## flag))
42
#define COGL_PIXEL_BUFFER_CLEAR_FLAG(buffer, flag) \
43
((buffer)->flags &= ~(COGL_PIXEL_BUFFER_FLAG_ ## flag))
45
#define COGL_PIXEL_BUFFER_FLAG_IS_SET(buffer, flag) \
46
((buffer)->flags & (COGL_PIXEL_BUFFER_FLAG_ ## flag))
48
typedef enum _CoglPixelBufferFlags
50
COGL_PIXEL_BUFFER_FLAG_NONE = 0,
51
COGL_PIXEL_BUFFER_FLAG_STORE_CREATED = 1 << 0,
52
} CoglPixelBufferFlags;
54
typedef struct _CoglPixelBuffer
58
CoglPixelBufferFlags flags;
61
CoglPixelFormat format;
69
_cogl_handle_pixel_buffer_get_type (void);
73
#endif /* __COGL_PIXEL_BUFFER_PRIVATE_H__ */