4
* An object oriented GL/GLES Abstraction/Utility Layer
6
* Copyright (C) 2009,2010,2011,2012 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
* Neil Roberts <neil@linux.intel.com>
25
* Robert Bragg <robert@linux.intel.com>
34
#include "cogl-private.h"
35
#include "cogl-texture-2d-nop-private.h"
36
#include "cogl-texture-2d-private.h"
37
#include "cogl-error-private.h"
40
_cogl_texture_2d_nop_free (CoglTexture2D *tex_2d)
45
_cogl_texture_2d_nop_can_create (CoglContext *ctx,
48
CoglPixelFormat internal_format)
54
_cogl_texture_2d_nop_init (CoglTexture2D *tex_2d)
59
_cogl_texture_2d_nop_allocate (CoglTexture *tex,
66
_cogl_texture_2d_nop_new_from_bitmap (CoglBitmap *bmp,
67
CoglPixelFormat internal_format,
70
return _cogl_texture_2d_create_base (_cogl_bitmap_get_context (bmp),
71
cogl_bitmap_get_width (bmp),
72
cogl_bitmap_get_height (bmp),
76
#if defined (COGL_HAS_EGL_SUPPORT) && defined (EGL_KHR_image_base)
78
_cogl_egl_texture_2d_nop_new_from_image (CoglContext *ctx,
81
CoglPixelFormat format,
85
_cogl_set_error (error,
87
COGL_SYSTEM_ERROR_UNSUPPORTED,
88
"Creating 2D textures from an EGLImage isn't "
89
"supported by the NOP backend");
95
_cogl_texture_2d_nop_flush_legacy_texobj_filters (CoglTexture *tex,
102
_cogl_texture_2d_nop_flush_legacy_texobj_wrap_modes (CoglTexture *tex,
110
_cogl_texture_2d_nop_copy_from_framebuffer (CoglTexture2D *tex_2d,
115
CoglFramebuffer *src_fb,
123
_cogl_texture_2d_nop_get_gl_handle (CoglTexture2D *tex_2d)
129
_cogl_texture_2d_nop_generate_mipmap (CoglTexture2D *tex_2d)
134
_cogl_texture_2d_nop_copy_from_bitmap (CoglTexture2D *tex_2d,
149
_cogl_texture_2d_nop_get_data (CoglTexture2D *tex_2d,
150
CoglPixelFormat format,