4 * An object oriented GL/GLES Abstraction/Utility Layer
6 * Copyright (C) 2009 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 #ifndef __COGL_TEXTURE_RECTANGLE_H
25 #define __COGL_TEXTURE_RECTANGLE_H
27 #include "cogl-pipeline-private.h"
28 #include "cogl-texture-private.h"
29 #include "cogl-texture-rectangle.h"
31 struct _CoglTextureRectangle
35 /* The internal format of the GL texture represented as a
37 CoglPixelFormat format;
38 /* The internal format of the GL texture represented as a GL enum */
40 /* The texture object number */
51 CoglTextureRectangle *
52 _cogl_texture_rectangle_new_from_bitmap (CoglBitmap *bmp,
53 CoglTextureFlags flags,
54 CoglPixelFormat internal_format);
56 CoglTextureRectangle *
57 _cogl_texture_rectangle_new_from_foreign (GLuint gl_handle,
60 CoglPixelFormat format);
62 #endif /* __COGL_TEXTURE_RECTANGLE_H */