VIZ++ Class: OpenGLVertexArrays

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

Source code

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



#pragma once

#ifdef GL_ARB_vertex_array_object

#include <viz++/openglarb/OpenGLVertexArray.h>

namespace VIZ {

class OpenGLVertexArrays : public OpenGLVertexArray {

public:
  OpenGLVertexArrays(GLsizei s)
  :OpenGLVertexArray(s)
  {
  }
  
  ~OpenGLVertexArrays()
  {
  }
  void bindNth(int n)
  {
      GLuint id = getNth(n);
      bind(id); 
  }
};

}

#endif


Last modified: 10 Feb 2017

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