VIZ++ Class: OpenGLLightModel
|
Source code
/*
* OpenGLLightModel.h
* Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
#pragma once
#include <viz++/opengl/OpenGLObject.h>
namespace VIZ {
class OpenGLLightModel :public OpenGLObject {
private:
GLenum model;
public:
OpenGLLightModel(GLenum model)
:model(model)
{
//The model parameter will take parameter. GL_LIGHT_MODEL_AMBIENT,
//GL_LIGHT_MODEL_COLOR_CONTROL, GL_LIGHT_MODEL_LOCAL_VIEWER,
//and GL_LIGHT_MODEL_TWO_SIDE are accepted.
}
void param(GLfloat* value)
{
assert(value);
glLightModelfv(model, value);
}
void param(GLint* value)
{
assert(value);
glLightModeliv(model, value);
}
};
}
Last modified: 10 Feb 2017
Copyright (c) 2009-2017 Antillia.com ALL RIGHTS RESERVED.