6 #ifndef _MGStaticGLAttrib_HH_
7 #define _MGStaticGLAttrib_HH_
21 void setColor(
const MGColor& color);
22 void setColor(
const float color[4]);
30 void setLineStipple(
short int factor, GLushort pattern);
35 const float*
color()
const{
return m_color;};
38 void getLineStipple(
short int& factor, GLushort& pattern)
const;
45 short int m_stippleFactor;
46 GLushort m_LineStipplePattern;
53 #endif //#ifndef _MGStaticGLAttrib_HH_
mgStaticGLAttrib defines MGColor and line width data of OpenGL.
Definition: StaticGLAttrib.h:16
float getLineWidth() const
Definition: StaticGLAttrib.h:37
MGColor defines the OpenGL color (R,G,B,A).
Definition: Color.h:26
const float * color() const
Definition: StaticGLAttrib.h:35
void setLineWidth(float lineWidth)
Definition: StaticGLAttrib.h:23
int getLightMode() const
Definition: StaticGLAttrib.h:39
void setLightMode(int mode)
Set light mode. mode=-1:undefined, =0:disabled, =1:enabled.
Definition: StaticGLAttrib.h:33