2009-08-30 06:36:11 -04:00
|
|
|
/*
|
|
|
|
* Cogl
|
|
|
|
*
|
|
|
|
* An object oriented GL/GLES Abstraction/Utility Layer
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007,2008,2009 Intel Corporation.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2010-03-01 07:56:10 -05:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*
|
2009-08-30 06:36:11 -04:00
|
|
|
*/
|
|
|
|
|
2011-10-08 06:53:20 -04:00
|
|
|
#ifndef __COGL_TEXTURE_2D_SLICED_PRIVATE_H
|
|
|
|
#define __COGL_TEXTURE_2D_SLICED_PRIVATE_H
|
2009-08-30 06:36:11 -04:00
|
|
|
|
|
|
|
#include "cogl-bitmap-private.h"
|
2010-10-27 13:54:57 -04:00
|
|
|
#include "cogl-pipeline-private.h"
|
2009-08-30 06:36:11 -04:00
|
|
|
#include "cogl-texture-private.h"
|
2011-10-08 06:53:20 -04:00
|
|
|
#include "cogl-texture-2d-sliced.h"
|
2009-08-30 06:36:11 -04:00
|
|
|
|
2011-10-08 06:53:20 -04:00
|
|
|
#include <glib.h>
|
2009-08-30 06:36:11 -04:00
|
|
|
|
|
|
|
struct _CoglTexture2DSliced
|
|
|
|
{
|
2012-11-22 16:46:54 -05:00
|
|
|
CoglTexture _parent;
|
|
|
|
GArray *slice_x_spans;
|
|
|
|
GArray *slice_y_spans;
|
|
|
|
GArray *slice_textures;
|
|
|
|
int max_waste;
|
2012-11-22 18:01:08 -05:00
|
|
|
CoglPixelFormat internal_format;
|
2009-08-30 06:36:11 -04:00
|
|
|
};
|
|
|
|
|
2011-10-08 06:53:20 -04:00
|
|
|
CoglTexture2DSliced *
|
2012-11-08 15:33:00 -05:00
|
|
|
_cogl_texture_2d_sliced_new_from_foreign (CoglContext *context,
|
|
|
|
unsigned int gl_handle,
|
|
|
|
unsigned int gl_target,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
int x_pot_waste,
|
|
|
|
int y_pot_waste,
|
|
|
|
CoglPixelFormat format,
|
|
|
|
CoglError **error);
|
2009-08-30 06:36:11 -04:00
|
|
|
|
2011-10-08 06:53:20 -04:00
|
|
|
CoglTexture2DSliced *
|
2012-11-08 12:54:10 -05:00
|
|
|
_cogl_texture_2d_sliced_new_from_bitmap (CoglBitmap *bmp,
|
2009-08-30 06:36:11 -04:00
|
|
|
CoglTextureFlags flags,
|
2012-11-08 12:54:10 -05:00
|
|
|
CoglPixelFormat internal_format,
|
2013-06-07 19:28:14 -04:00
|
|
|
CoglBool can_convert_in_place,
|
2012-11-08 12:54:10 -05:00
|
|
|
CoglError **error);
|
2009-08-30 06:36:11 -04:00
|
|
|
|
2011-10-08 06:53:20 -04:00
|
|
|
#endif /* __COGL_TEXTURE_2D_SLICED_PRIVATE_H */
|