~darkxst/ubuntu/raring/cogl/lp1163025

« back to all changes in this revision

Viewing changes to cogl/cogl-texture-3d-private.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-03-13 19:11:11 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120313191111-3hgk529qkh9m6uk2
Tags: 1.9.8-0ubuntu1
* New upstream release (LP: #941617)
* Updated symbols & library name for soname update
* debian/control.in: Bump minimum glib to 2.28
* debian/patches/02_disable_armv5t_specific_optimization.patch: Disabled

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "cogl-handle.h"
29
29
#include "cogl-pipeline-private.h"
30
30
#include "cogl-texture-private.h"
31
 
 
32
 
#define COGL_TEXTURE_3D(tex) ((CoglTexture3D *) tex)
33
 
 
34
 
typedef struct _CoglTexture3D CoglTexture3D;
 
31
#include "cogl-texture-3d.h"
35
32
 
36
33
struct _CoglTexture3D
37
34
{
58
55
  CoglTexturePixel first_pixel;
59
56
};
60
57
 
61
 
GQuark
62
 
_cogl_handle_texture_3d_get_type (void);
63
 
 
64
58
/*
65
59
 * cogl_texture_3d_new_from_bitmap:
66
 
 * @bmp_handle: A #CoglHandle to a bitmap.
 
60
 * @bmp_handle: A #CoglBitmap object.
67
61
 * @height: height of the texture in pixels.
68
62
 * @depth: depth of the texture in pixels.
69
 
 * @flags: Optional flags for the texture, or %COGL_TEXTURE_NONE
70
63
 * @internal_format: the #CoglPixelFormat that will be used for storing
71
64
 *    the buffer on the GPU. If COGL_PIXEL_FORMAT_ANY is given then a
72
65
 *    premultiplied format similar to the format of the source data will
84
77
 * actual height of the bitmap can be larger than @height × @depth. In
85
78
 * this case it assumes there is padding between the images.
86
79
 *
87
 
 * Return value: the newly created texture or %COGL_INVALID_HANDLE if
 
80
 * Return value: the newly created texture or %NULL if
88
81
 *   there was an error.
89
82
 */
90
 
CoglHandle
91
 
_cogl_texture_3d_new_from_bitmap (CoglBitmap      *bmp,
92
 
                                  unsigned int     height,
93
 
                                  unsigned int     depth,
94
 
                                  CoglTextureFlags flags,
95
 
                                  CoglPixelFormat  internal_format,
96
 
                                  GError         **error);
 
83
CoglTexture3D *
 
84
_cogl_texture_3d_new_from_bitmap (CoglContext *context,
 
85
                                  CoglBitmap *bmp,
 
86
                                  unsigned int height,
 
87
                                  unsigned int depth,
 
88
                                  CoglPixelFormat internal_format,
 
89
                                  GError **error);
97
90
 
98
91
#endif /* __COGL_TEXTURE_3D_PRIVATE_H */