VIZ++ Class: OpenGLClientState

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

Source code

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


#pragma once

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

namespace VIZ {

class OpenGLClientState :public OpenGLObject {
private:
 GLenum state;
  
public:
 OpenGLClientState(GLenum state)
 :OpenGLObject(),
  state(state)
  {
    enable();
  }
  
  ~OpenGLClientState()
  {
    disable();
  }

public:
  void enable()
  {
    glEnableClientState(state);
  }
  
  void disable()
  {
    glDisableClientState(state);
  }
};
  
}


Last modified: 10 Feb 2017

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