VIZ++ Class: OpenGLGeometry

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

Source code

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


#pragma once

#include <viz++/opengl/OpenGLObject.h>
#include <GL/glut.h>

namespace VIZ {

class OpenGLGeometry :public OpenGLObject {

public:
  
  void  wireCube( GLdouble size )
  {
    glutWireCube(size);
  }

  void  solidCube( GLdouble size )
  {
    glutSolidCube(size);
  }

  void  wireSphere( GLdouble radius, GLint slices, GLint stacks )
  {
    glutWireSphere(radius, slices, stacks);
  }

  void  solidSphere( GLdouble radius, GLint slices, GLint stacks )
  {
    glutSolidSphere(radius, slices, stacks);
  }

  void  wireCone( GLdouble base, GLdouble height, 
       GLint slices, GLint stacks )
  {
    glutWireCone(base, height, slices, stacks);
  }

  void  solidCone( GLdouble base, GLdouble height, GLint slices, GLint stacks )
  {
    glutSolidCone(base, height, slices, stacks);
  }

  void  wireTorus( GLdouble innerRadius, GLdouble outerRadius, 
       GLint sides, GLint rings )
  {
    glutWireTorus(innerRadius, outerRadius, sides, rings);
  }

  void  solidTorus( GLdouble innerRadius, GLdouble outerRadius, 
       GLint sides, GLint rings )
  {
    glutSolidTorus(innerRadius, outerRadius, sides, rings);
  }

  void  wireTeapot(GLdouble value)
  {
    glutWireTeapot(value);
  }

  void  solidTeapot(GLdouble value) 
  {
    glutSolidTeapot(value);
  }
};

}


Last modified: 10 Feb 2017

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