// Texture.H: Texture nodes.

// This file has been generated using nodegen 0.51.
// Restrict manual editing to the sections delimited by
// . the comments "utility includes" and "end of utility includes"
// . the comments "utility members" and "end of utility members"

#ifndef _Texture_H_
#define _Texture_H_

#include "xrml.H"
#include "PhBTexture.H"

// utility includes
// end of utility includes

namespace xrml {
#define TextureTypeId 	"Texture"
extern bool IsTexture(SFNode*);

class Texture:  public PhBTexture {
public:
  //
  virtual int major_version(void), minor_version(void);
  virtual bool is_leaf_class(void);
  
  Texture();
  
  //
  virtual void     	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  SFBool           	repeatS;
  SFBool           	repeatT;
  
  // field assignement: no forwarding or eventOut generation!
  virtual bool     	assign_repeatS(const SFBool&);
  virtual bool     	assign_repeatT(const SFBool&);
  
  // update status
  virtual bool     	repeatS_is_updated(void);
  virtual void     	repeatS_clear_update(void);
  virtual bool     	repeatT_is_updated(void);
  virtual void     	repeatT_clear_update(void);
  
  // utility members
  virtual void    	begin_render(void);
  virtual void    	end_render(void);

  int Width, Height, Channels;
  unsigned char* Map;  // Width * Height * Channels bytes
  virtual void load(void);

protected:
  void util_init(void);
  void util_clone(const Texture& src);
  void util_destruct(void);
};

// end of utility members
} // namespace xrml
#endif /*_Texture_H_*/
