2009-08-30 10:36:11 +00: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 12:56:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*
|
2009-08-30 10:36:11 +00:00
|
|
|
*/
|
|
|
|
|
2011-10-08 10:53:20 +00:00
|
|
|
#ifndef __COGL_TEXTURE_2D_SLICED_PRIVATE_H
|
|
|
|
#define __COGL_TEXTURE_2D_SLICED_PRIVATE_H
|
2009-08-30 10:36:11 +00:00
|
|
|
|
|
|
|
#include "cogl-bitmap-private.h"
|
2010-10-27 17:54:57 +00:00
|
|
|
#include "cogl-pipeline-private.h"
|
2009-08-30 10:36:11 +00:00
|
|
|
#include "cogl-texture-private.h"
|
2011-10-08 10:53:20 +00:00
|
|
|
#include "cogl-texture-2d-sliced.h"
|
2009-08-30 10:36:11 +00:00
|
|
|
|
2011-10-08 10:53:20 +00:00
|
|
|
#include <glib.h>
|
2009-08-30 10:36:11 +00:00
|
|
|
|
|
|
|
struct _CoglTexture2DSliced
|
|
|
|
{
|
2012-11-22 21:46:54 +00:00
|
|
|
CoglTexture _parent;
|
|
|
|
GArray *slice_x_spans;
|
|
|
|
GArray *slice_y_spans;
|
|
|
|
GArray *slice_textures;
|
|
|
|
int max_waste;
|
2012-11-22 23:01:08 +00:00
|
|
|
CoglPixelFormat internal_format;
|
2009-08-30 10:36:11 +00:00
|
|
|
};
|
|
|
|
|
2011-10-08 10:53:20 +00:00
|
|
|
CoglTexture2DSliced *
|
2012-11-08 20:33:00 +00: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 10:36:11 +00:00
|
|
|
|
2011-10-08 10:53:20 +00:00
|
|
|
CoglTexture2DSliced *
|
2012-11-08 17:54:10 +00:00
|
|
|
_cogl_texture_2d_sliced_new_from_bitmap (CoglBitmap *bmp,
|
2013-06-08 17:52:20 +00:00
|
|
|
int max_waste,
|
2012-11-08 17:54:10 +00:00
|
|
|
CoglPixelFormat internal_format,
|
2013-06-07 23:28:14 +00:00
|
|
|
CoglBool can_convert_in_place,
|
2012-11-08 17:54:10 +00:00
|
|
|
CoglError **error);
|
2009-08-30 10:36:11 +00:00
|
|
|
|
2011-10-08 10:53:20 +00:00
|
|
|
#endif /* __COGL_TEXTURE_2D_SLICED_PRIVATE_H */
|