// Generated by gmmproc 2.50.0 -- DO NOT MODIFY!
#ifndef _GSTREAMERMM_PLUGINS_BAD_GLFILTER_H
#define _GSTREAMERMM_PLUGINS_BAD_GLFILTER_H


#include <glibmm/ustring.h>
#include <sigc++/sigc++.h>

/* gstreamermm - a C++ wrapper for gstreamer
 *
 * Copyright 2008-2015 The gstreamermm Development Team
 *
 * 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.1 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
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */


#define GST_USE_UNSTABLE_API

#include <gst/gl/gl.h>
#include <gstreamermm-plugins-bad/glbasefilter.h>
#include <gstreamermm/videoinfo.h>
#include <gstreamermm/buffer.h>

#ifndef DOXYGEN_SHOULD_SKIP_THIS
using GstGLFilter = struct _GstGLFilter;
using GstGLFilterClass = struct _GstGLFilterClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace Gst
{

namespace Bad
{ class GLFilter_Class; } // namespace Bad

} // namespace Gst
#endif //DOXYGEN_SHOULD_SKIP_THIS

namespace Gst
{
namespace Bad
{


class GLFilter
: public GLBaseFilter
{
  
#ifndef DOXYGEN_SHOULD_SKIP_THIS

public:
  using CppObjectType = GLFilter;
  using CppClassType = GLFilter_Class;
  using BaseObjectType = GstGLFilter;
  using BaseClassType = GstGLFilterClass;

  // noncopyable
  GLFilter(const GLFilter&) = delete;
  GLFilter& operator=(const GLFilter&) = delete;

private:  friend class GLFilter_Class;
  static CppClassType glfilter_class_;

protected:
  explicit GLFilter(const Glib::ConstructParams& construct_params);
  explicit GLFilter(GstGLFilter* castitem);

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

public:

  GLFilter(GLFilter&& src) noexcept;
  GLFilter& operator=(GLFilter&& src) noexcept;

  ~GLFilter() noexcept override;

  /** Get the GType for this class, for use with the underlying GObject type system.
   */
  static GType get_type()      G_GNUC_CONST;

#ifndef DOXYGEN_SHOULD_SKIP_THIS


  static GType get_base_type() G_GNUC_CONST;
#endif

  ///Provides access to the underlying C GObject.
  GstGLFilter*       gobj()       { return reinterpret_cast<GstGLFilter*>(gobject_); }

  ///Provides access to the underlying C GObject.
  const GstGLFilter* gobj() const { return reinterpret_cast<GstGLFilter*>(gobject_); }

  ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
  GstGLFilter* gobj_copy();

private:


public:
    virtual bool filter_vfunc(const Glib::RefPtr<Gst::Buffer>& inbuf, const Glib::RefPtr<Gst::Buffer>& outbuf);

    virtual bool filter_texture_vfunc(guint in_tex, guint out_tex);

    virtual bool init_fbo_vfunc();


  //gtkmmproc error: transform_internal_caps :  vfunc defs lookup failed
  //gtkmmproc error: display_init_cb :  vfunc defs lookup failed
  //gtkmmproc error: display_reset_cb :  vfunc defs lookup failed

  typedef sigc::slot<void, gint, gint, guint> SlotTextureOperation;
  void render_to_target(bool resize, GLuint input, GLuint target, const SlotTextureOperation& slot);
  ;

  Gst::VideoInfo get_in_info() const;
  void set_in_info(const Gst::VideoInfo& value);

  Glib::RefPtr<Gst::Caps> get_out_caps() const;
  void set_out_caps(const Glib::RefPtr<Gst::Caps>& value);

  GLuint get_fbo() const;
  void set_fbo(const GLuint& value);

  GLuint get_depthbuffer() const;
  void set_depthbuffer(const GLuint& value);

  GLuint get_vao() const;
  void set_vao(const GLuint& value);

  GLuint get_vbo_indices() const;
  void set_vbo_indices(const GLuint& value);

  GLuint get_vertex_buffer() const;
  void set_vertex_buffer(const GLuint& value);


  GLint get_draw_attr_position_loc() const;
  void set_draw_attr_position_loc(const GLint& value);

  GLint get_draw_attr_texture_loc() const;
  void set_draw_attr_texture_loc(const GLint& value);


public:

public:
  //C++ methods used to invoke GTK+ virtual functions:

protected:
  //GTK+ Virtual Functions (override these to change behaviour):

  //Default Signal Handlers::


};

}
}


namespace Glib
{
  /** A Glib::wrap() method for this object.
   *
   * @param object The C instance.
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
   * @result A C++ instance that wraps this C instance.
   *
   * @relates Gst::Bad::GLFilter
   */
  Glib::RefPtr<Gst::Bad::GLFilter> wrap(GstGLFilter* object, bool take_copy = false);
}


#endif /* _GSTREAMERMM_PLUGINS_BAD_GLFILTER_H */

