/* ------------------------------------------------------------------
 * GEM - Graphics Environment for Multimedia
 *
 * SPDX-FileCopyrightText: © 2004, James Tittle II and the GEM contributors
 * SPDX-License-Identifier: GPL-2.0-or-later
 *
 * ------------------------------------------------------------------
 */

#ifndef _INCLUDE__GEM_OPENGL_GEMGLLOADMATRIXD_H_
#define _INCLUDE__GEM_OPENGL_GEMGLLOADMATRIXD_H_

#include "Base/GemGLBase.h"

/*
 CLASS
        GEMglLoadMatrixd
 KEYWORDS
        openGL  0
 DESCRIPTION
        wrapper for the openGL-function
        "glLoadMatrixd( GLdouble matrix)"
 */

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

public:
  // Constructor
  GEMglLoadMatrixd (t_float);   // CON

protected:
  // Destructor
  virtual ~GEMglLoadMatrixd ();
  // check extensions
  virtual bool isRunnable(void);

  // Do the rendering
  virtual void  render (GemState *state);

  // variables
  GLdouble        m_matrix[16];           // VAR
  virtual void  matrixMess(int argc, t_atom*argv);      // FUN


private:

  // we need some inlets
  t_inlet *m_inlet;

  // static member functions
  static void    matrixMessCallback (void*, t_symbol*,int,t_atom*);
};
#endif // for header file
