6 #ifndef _MGLineWidth_HH_
7 #define _MGLineWidth_HH_
9 #include "mgGL/GLAttrib.h"
54 void exec(
mgVBO& vbo)
const;
56 void set_width(
float width);
66 float get_maximum_width()
const;
89 std::string
whoami()
const{
return "LineWidth";};
97 std::ostream&
out(std::ostream&)
const;
106 #endif //#ifndef _MGLineWidth_HH_
MODE
Definition: LineWidth.h:28
void reset_Amask(unsigned int &mask, MGGLAttrib::ATTRIB_MASK bit)
MGGLAttrib is an abstract class which defines the enum of undefined or disabled.
Definition: GLAttrib.h:35
void set_Amask(unsigned int &mask, MGGLAttrib::ATTRIB_MASK bit)
Set or reset the bit of mask.
bool is_highlight_attrib() const
Test if this is highlight attrib or not.
Definition: LineWidth.h:69
Definition: GLAttrib.h:41
virtual bool operator<(const MGGel &gel2) const
MGLineWidth(float width)
Definition: LineWidth.h:35
virtual MGGLAttrib * clone() const =0
Generate a newed clone object.
virtual void WriteMembers(MGOfstream &buf) const
Write all member data.
void reset_draw_attrib_mask(unsigned int &mask) const
Turn off the appropriate mask bit for this attribute. See glPushAttrib().
Definition: LineWidth.h:78
float get_width() const
Definition: LineWidth.h:57
virtual void ReadMembers(MGIfstream &buf)
Read all member data.
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
virtual MGGLAttrib & operator=(const MGGLAttrib &gel2)
Definition: GLAttrib.h:70
Definition: GLAttrib.h:40
MGGel is an abstract class which represents a group element.
Definition: Gel.h:53
long identify_type() const
Return This object's typeID.
Definition: LineWidth.h:87
virtual std::ostream & out(std::ostream &) const
Output virtual function.
void reset_render_attrib_mask(unsigned int &mask) const
Turn off the appropriate mask bit for this attribute. See glPushAttrib().
Definition: LineWidth.h:84
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
void render(mgVBO &vbo) const
render GLAttribute process.
Definition: LineWidth.h:72
void drawAttrib(mgVBO &vbo, bool no_color=false) const
draw GLAttribute process.
Definition: LineWidth.h:60
void set_draw_attrib_mask(unsigned int &mask) const
Turn on the appropriate mask bit for this attribute. See glPushAttrib().
Definition: LineWidth.h:75
void set_render_attrib_mask(unsigned int &mask) const
Turn on the appropriate mask bit for this attribute. See glPushAttrib().
Definition: LineWidth.h:81
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76
MGLineWidth(MODE m=UNDEFINED)
Definition: LineWidth.h:34
std::string whoami() const
Definition: LineWidth.h:89
MGLineWidth defines line width of a curve.
Definition: LineWidth.h:24