VIZ++ Class: OpenGLTesselator

 VIZ++ Class Library  VIZ++ Samples  VIZ++ ClassTree 

Source code

/*
 * OpenGLTesselator.h 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


#pragma once

#include <viz++/Exception.h>
//#include <viz++/ArrayT.h>
#include <viz++/opengl/OpenGLObject.h>
#include <math.h>

namespace VIZ {

class OpenGLTesselator :public OpenGLObject {
private:
  GLUTesselator* tesselator 
 
public:
  OpenGLTesselator()
  :OpenGLObject(NULL),
  tesselator(NULL)
  {
    tesselator = gluNewTess();
  } 

  ~OpenGLTesselator()
  {
    gluDeleteTess(tesselator);
  }
 
  GLUTesselator* getTesselator()
  {
     return tesselator;
  }

};

}


Last modified: 10 Feb 2017

Copyright (c) 2009-2017 Antillia.com ALL RIGHTS RESERVED.