glx: Deprecate ClutterGLXTexturePixmap
Since 1.4 the ClutterGLXTexturePixmap is just a wrapper around ClutterX11TexturePixmap, so we can safely deprecate it. All the functionality it provided is now effectively available from the superclass or directly from Cogl.
This commit is contained in:
parent
770bcd5b40
commit
cd96e631f1
@ -43,23 +43,21 @@
|
|||||||
* may use the extension if it is possible.
|
* may use the extension if it is possible.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
|
||||||
|
#include "clutter-glx-texture-pixmap.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../x11/clutter-x11-texture-pixmap.h"
|
#include <GL/glx.h>
|
||||||
#include "clutter-glx-texture-pixmap.h"
|
|
||||||
|
#include "x11/clutter-x11-texture-pixmap.h"
|
||||||
#include "cogl/winsys/cogl-texture-pixmap-x11.h"
|
#include "cogl/winsys/cogl-texture-pixmap-x11.h"
|
||||||
|
|
||||||
G_DEFINE_TYPE (ClutterGLXTexturePixmap, \
|
G_DEFINE_TYPE (ClutterGLXTexturePixmap, \
|
||||||
clutter_glx_texture_pixmap, \
|
clutter_glx_texture_pixmap, \
|
||||||
CLUTTER_X11_TYPE_TEXTURE_PIXMAP);
|
CLUTTER_X11_TYPE_TEXTURE_PIXMAP);
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clutter_glx_texture_pixmap_init (ClutterGLXTexturePixmap *self)
|
clutter_glx_texture_pixmap_init (ClutterGLXTexturePixmap *self)
|
||||||
{
|
{
|
||||||
@ -83,6 +81,9 @@ clutter_glx_texture_pixmap_class_init (ClutterGLXTexturePixmapClass *klass)
|
|||||||
* GLX_EXT_texture_from_pixmap OpenGL extension or falling back to the
|
* GLX_EXT_texture_from_pixmap OpenGL extension or falling back to the
|
||||||
* slower software mechanism.
|
* slower software mechanism.
|
||||||
*
|
*
|
||||||
|
* Deprecated: 1.6: Use cogl_texture_pixmap_x11_is_using_tfp_extension()
|
||||||
|
* on the texture handle instead.
|
||||||
|
*
|
||||||
* Since: 0.8
|
* Since: 0.8
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
@ -107,6 +108,8 @@ clutter_glx_texture_pixmap_using_extension (ClutterGLXTexturePixmap *texture)
|
|||||||
* Return value: A new #ClutterGLXTexturePixmap bound to the given X Pixmap
|
* Return value: A new #ClutterGLXTexturePixmap bound to the given X Pixmap
|
||||||
*
|
*
|
||||||
* Since: 0.8
|
* Since: 0.8
|
||||||
|
*
|
||||||
|
* Deprecated: 1.6: Use clutter_x11_texture_pixmap_new_with_pixmap() instead
|
||||||
*/
|
*/
|
||||||
ClutterActor *
|
ClutterActor *
|
||||||
clutter_glx_texture_pixmap_new_with_pixmap (Pixmap pixmap)
|
clutter_glx_texture_pixmap_new_with_pixmap (Pixmap pixmap)
|
||||||
@ -125,7 +128,9 @@ clutter_glx_texture_pixmap_new_with_pixmap (Pixmap pixmap)
|
|||||||
* Return value: A new #ClutterGLXTexturePixmap bound to the given X window
|
* Return value: A new #ClutterGLXTexturePixmap bound to the given X window
|
||||||
*
|
*
|
||||||
* Since: 0.8
|
* Since: 0.8
|
||||||
**/
|
*
|
||||||
|
* Deprecated: 1.6: Use clutter_x11_texture_pixmap_new_with_window() instead
|
||||||
|
*/
|
||||||
ClutterActor *
|
ClutterActor *
|
||||||
clutter_glx_texture_pixmap_new_with_window (Window window)
|
clutter_glx_texture_pixmap_new_with_window (Window window)
|
||||||
{
|
{
|
||||||
@ -142,6 +147,8 @@ clutter_glx_texture_pixmap_new_with_window (Window window)
|
|||||||
* Return value: A new #ClutterGLXTexturePixmap
|
* Return value: A new #ClutterGLXTexturePixmap
|
||||||
*
|
*
|
||||||
* Since: 0.8
|
* Since: 0.8
|
||||||
|
*
|
||||||
|
* Deprecated: 1.6: Use clutter_x11_texture_pixmap_new() instead
|
||||||
*/
|
*/
|
||||||
ClutterActor *
|
ClutterActor *
|
||||||
clutter_glx_texture_pixmap_new (void)
|
clutter_glx_texture_pixmap_new (void)
|
||||||
|
@ -26,11 +26,9 @@
|
|||||||
#ifndef __CLUTTER_GLX_TEXTURE_PIXMAP_H__
|
#ifndef __CLUTTER_GLX_TEXTURE_PIXMAP_H__
|
||||||
#define __CLUTTER_GLX_TEXTURE_PIXMAP_H__
|
#define __CLUTTER_GLX_TEXTURE_PIXMAP_H__
|
||||||
|
|
||||||
#include <glib.h>
|
|
||||||
#include <glib-object.h>
|
|
||||||
#include <clutter/x11/clutter-x11-texture-pixmap.h>
|
#include <clutter/x11/clutter-x11-texture-pixmap.h>
|
||||||
|
|
||||||
#include <GL/glx.h>
|
#if !defined(CLUTTER_COMPILATION) || defined(CLUTTER_DISABLE_DEPRECATED)
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
@ -51,6 +49,8 @@ typedef struct _ClutterGLXTexturePixmapPrivate ClutterGLXTexturePixmapPrivate;
|
|||||||
* The #ClutterGLXTexturePixmapClass structure contains only private data
|
* The #ClutterGLXTexturePixmapClass structure contains only private data
|
||||||
*
|
*
|
||||||
* Since: 0.8
|
* Since: 0.8
|
||||||
|
*
|
||||||
|
* Deprecated: 1.6: Use #ClutterX11TexturePixmapClass instead
|
||||||
*/
|
*/
|
||||||
struct _ClutterGLXTexturePixmapClass
|
struct _ClutterGLXTexturePixmapClass
|
||||||
{
|
{
|
||||||
@ -64,6 +64,8 @@ struct _ClutterGLXTexturePixmapClass
|
|||||||
* The #ClutterGLXTexturePixmap structure contains only private data
|
* The #ClutterGLXTexturePixmap structure contains only private data
|
||||||
*
|
*
|
||||||
* Since: 0.8
|
* Since: 0.8
|
||||||
|
*
|
||||||
|
* Deprecated: 1.6: Use #ClutterX11TexturePixmap instead
|
||||||
*/
|
*/
|
||||||
struct _ClutterGLXTexturePixmap
|
struct _ClutterGLXTexturePixmap
|
||||||
{
|
{
|
||||||
@ -85,4 +87,6 @@ gboolean clutter_glx_texture_pixmap_using_extension (ClutterGLXTexturePixm
|
|||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif /* !CLUTTER_DISABLE_DEPRECATED || CLUTTER_COMPILATION */
|
||||||
|
|
||||||
|
#endif /* __CLUTTER_GLX_TEXTURE_PIXMAP_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user