 /* ------------------------------------------------------------------
  * GEM - Graphics Environment for Multimedia
  *
  *  Copyright (c) 2004 tigital -> mac.com
  *  For information on usage and redistribution, and for a DISCLAIMER
  *  OF ALL WARRANTIES, see the file, "GEM.LICENSE.TERMS"
  *
  * ------------------------------------------------------------------
  */

#ifndef INCLUDE_GEM_GLGENPROGRAMSARB_H_
#define INCLUDE_GEM_GLGENPROGRAMSARB_H_

#include "Base/GemGLUtil.h"
#include "Base/GemBase.h"

/*
 CLASS
	GEMglGenProgramsARB
 KEYWORDS
	openGL	1
 DESCRIPTION
	wrapper for the openGL-function
	"glGenProgramsARB( GLsizei n, GLuint *programs)"
 */

class GEM_EXTERN GEMglGenProgramsARB : public GemBase
{
	CPPEXTERN_HEADER(GEMglGenProgramsARB, GemBase)

	public:
	  // Constructor
	  GEMglGenProgramsARB (int,t_atom*);	// CON

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

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

	// variables
	  GLsizei	n;		// VAR
	  GLuint*	programs;		// VAR
	  virtual void	programsMess(int,t_atom*);	// FUN


	private:

	// we need some inlets
	  t_inlet *m_inlet;

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