/* ------------------------------------------------------------------
 * GEM - Graphics Environment for Multimedia
 *
 * SPDX-FileCopyrightText: © 2005, James Tittle II and the GEM contributors
 * SPDX-License-Identifier: GPL-2.0-or-later
 *
 * this file has been generated...
 * ------------------------------------------------------------------
 */

#ifndef _INCLUDE__GEM_OPENGL_GEMGLUPERSPECTIVE_H_
#define _INCLUDE__GEM_OPENGL_GEMGLUPERSPECTIVE_H_

#include "Base/GemGLBase.h"

/*
 CLASS
        GEMgluPerspective
 KEYWORDS
        openGL  0
 DESCRIPTION
        wrapper for the openGL-function
        "gluPerspective( GLdouble fovy, GLdouble aspect, GLdouble near, GLdouble far)"
 */

class GEM_EXTERN GEMgluPerspective : public GemGLBase
{
  CPPEXTERN_HEADER(GEMgluPerspective, GemGLBase);

public:
  // Constructor
  GEMgluPerspective (t_float, t_float, t_float, t_float);       // CON

protected:
  // Destructor
  virtual ~GEMgluPerspective ();
  // Do the rendering
  virtual void  render (GemState *state);

  // variables
  GLdouble      fovy;           // VAR
  virtual void  fovyMess(t_float);      // FUN

  GLdouble      aspect;         // VAR
  virtual void  aspectMess(t_float);    // FUN

  GLdouble      m_near;         // VAR
  virtual void  nearMess(t_float);      // FUN

  GLdouble      m_far;          // VAR
  virtual void  farMess(t_float);       // FUN


private:

  // we need some inlets
  t_inlet *m_inlet[4];

  // static member functions
  static void    fovyMessCallback (void*, t_float);
  static void    aspectMessCallback (void*, t_float);
  static void    nearMessCallback (void*, t_float);
  static void    farMessCallback (void*, t_float);
};
#endif // for header file
