| 1 | /* |
| 2 | * GStreamer |
| 3 | * Copyright (C) 2015 Matthew Waters <matthew@centricular.com> |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Library General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Library General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Library General Public |
| 16 | * License along with this library; if not, write to the |
| 17 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
| 18 | * Boston, MA 02110-1301, USA. |
| 19 | */ |
| 20 | |
| 21 | #ifndef _GST_GL_ENUMS_H_ |
| 22 | #define _GST_GL_ENUMS_H_ |
| 23 | |
| 24 | /** |
| 25 | * GstGLTextureTarget: |
| 26 | * @GST_GL_TEXTURE_TARGET_NONE: no texture target |
| 27 | * @GST_GL_TEXTURE_TARGET_2D: 2D texture target (`GL_TEXTURE_2D`) |
| 28 | * @GST_GL_TEXTURE_TARGET_RECTANGLE: rectangle texture target |
| 29 | * (`GL_TEXTURE_RECTANGLE`) |
| 30 | * @GST_GL_TEXTURE_TARGET_EXTERNAL_OES: external oes texture target |
| 31 | * (`GL_TEXTURE_EXTERNAL_OES`) |
| 32 | * |
| 33 | * The OpenGL texture target that an OpenGL texture can be bound to. The |
| 34 | * gst_gl_value_set_texture_target_from_mask(), |
| 35 | * gst_gl_value_get_texture_target_mask(), and |
| 36 | * gst_gl_value_set_texture_target() functions can be used for handling texture |
| 37 | * targets with #GValue's when e.g. dealing with #GstCaps. |
| 38 | * |
| 39 | * Since: 1.8 |
| 40 | */ |
| 41 | typedef enum |
| 42 | { |
| 43 | GST_GL_TEXTURE_TARGET_NONE, |
| 44 | GST_GL_TEXTURE_TARGET_2D, |
| 45 | GST_GL_TEXTURE_TARGET_RECTANGLE, |
| 46 | GST_GL_TEXTURE_TARGET_EXTERNAL_OES, |
| 47 | } GstGLTextureTarget; |
| 48 | |
| 49 | #endif /* _GST_GL_ENUMS_H_ */ |
| 50 | |