10 #include "mgGL/GLAttrib.h"
55 iterator
begin(){
return m_lights.begin();};
56 const_iterator
begin()
const{
return m_lights.begin();};
57 void clear(){m_lights.clear();};
58 bool empty()
const{
return m_lights.empty();};
59 iterator
end(){
return m_lights.end();};
60 const_iterator
end()
const{
return m_lights.end();};
71 virtual void exec()
const;
96 int size()
const{
return (
int)m_lights.size();};
104 std::string
whoami()
const{
return "Lights";};
112 virtual std::ostream&
out(std::ostream&)
const;
121 #endif // _MGLIGHTS_HH_
const MGLight * operator[](int i) const
Definition: Lights.h:63
void reset_draw_attrib_mask(unsigned int &mask) const
Turn off the appropriate mask bit for this attribute. See glPushAttrib().
Definition: Lights.h:99
MGLights(MGLight *light)
Construct MGLights of one light.
Definition: Lights.h:37
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.
virtual bool operator<(const MGGel &gel2) const
virtual MGGLAttrib * clone() const =0
Generate a newed clone object.
virtual void WriteMembers(MGOfstream &buf) const
Write all member data.
MGPvector< MGLight >::reverse_iterator reverse_iterator
Definition: Lights.h:29
void render(mgVBO &vbo) const
render GLAttribute process.
Definition: Lights.h:84
virtual void ReadMembers(MGIfstream &buf)
Read all member data.
const_iterator end() const
Definition: Lights.h:60
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
const_iterator begin() const
Definition: Lights.h:56
virtual MGGLAttrib & operator=(const MGGLAttrib &gel2)
Definition: GLAttrib.h:70
const MGLight * front() const
Definition: Lights.h:61
void clear()
Definition: Lights.h:57
MGLight is an abstract base class for light sources.
Definition: Light.h:27
virtual long identify_type() const
Return This object's typeID.
Definition: Lights.h:102
void reset_render_attrib_mask(unsigned int &mask) const
Turn off the appropriate mask bit for this attribute. See glPushAttrib().
Definition: Lights.h:90
MGGel is an abstract class which represents a group element.
Definition: Gel.h:53
MGLight * back()
Definition: Lights.h:54
void pop_back()
Definition: Lights.h:65
iterator begin()
Definition: Lights.h:55
bool empty() const
Definition: Lights.h:58
void set_draw_attrib_mask(unsigned int &mask) const
Turn on the appropriate mask bit for this attribute. See glPushAttrib().
Definition: Lights.h:93
virtual std::ostream & out(std::ostream &) const
Output virtual function.
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
MGLight * operator[](int i)
Definition: Lights.h:64
MGPvector< MGLight >::const_iterator const_iterator
Definition: Lights.h:28
MGPvector< MGLight >::const_reverse_iterator const_reverse_iterator
Definition: Lights.h:30
MGLight * front()
Definition: Lights.h:62
const MGLight * back() const
Definition: Lights.h:53
MGPvector< MGLight >::iterator iterator
Definition: Lights.h:27
void drawAttrib(mgVBO &vbo, bool no_color=false) const
draw GLAttribute process.
Definition: Lights.h:74
void set_render_attrib_mask(unsigned int &mask) const
Turn on the appropriate mask bit for this attribute. See glPushAttrib().
Definition: Lights.h:87
std::string whoami() const
Definition: Lights.h:104
a container class for light sources(MGDirectionalLight, MGPointLight, or MGSpotLight).
Definition: Lights.h:23
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76
Defines Vector of newed object pointers.
Definition: Pvector.h:27
int size() const
Obtain the light number defined.
Definition: Lights.h:96
iterator end()
Definition: Lights.h:59