VIZ++ Class: OpenGLFont

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

Source code

/*
 * OpenGLFont.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 OpenGLFont :public OpenGLObject {
private:
  void* font;

public:
  OpenGLFont()
  :font(NULL)
  {
  }

public:
  OpenGLFont(void* font) 
  :font(font)
  {
//In windows, font may take NULL, because 
//#define  GLUT_STROKE_ROMAN ((void *)0x0000)
   validate(font);
  }

  ~OpenGLFont()
  {
    font = NULL;
  }

  virtual bool validate(void* font)
  {
    bool rc = true;
    return rc;
  }

  void*  getFont()
  {
    return font;
  }
};
}


Last modified: 10 Feb 2017

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