6 #if !defined(_MGVBOLEAF__INCLUDED_)
7 #define _MGVBOLEAF__INCLUDED_
11 #endif // _MSC_VER > 1000
13 #include "MGCLStdAfx.h"
14 #include "mgGL/Color.h"
15 #include "mgGL/VBOElement.h"
21 class mgVBOLeafBuilder;
46 static const GLfloat m_PolygonModePointSizeBase;
55 mgVBOLeaf(
const mgVBOLeafBuilder& builder);
104 bool texture_is_bound()
const;
108 void updateVertex(
unsigned ID,
const MGPosition& P);
113 void updateVertices(
unsigned startID,
const std::vector<MGPosition>& Ps);
118 void updateVertices(
unsigned startID,
const MGBPointSeq& Ps);
123 void updateVertices(
unsigned startID,
unsigned numVertices,
const float* area);
141 void setPolygonMode(GLenum mode);
176 bool m_ColorSpecified:1,m_NormalSpecified:1,m_TextureSpecified:1;
178 mutable GLuint m_vertexArrayID;
182 GLenum m_primitiveMode;
209 void execStaticAttrib(
MGCL::VIEWMODE viewMode,
bool selection=
false);
214 #endif // !defined(_MGVBOLEAF__INCLUDED_)
Interface class to include an element in mgVBO class's.
Definition: VBOElement.h:44
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
void setStaticAttribColor(const MGColor &color)
Definition: VBOLeaf.h:143
void setLineStipple(short int factor, GLushort pattern=0)
size<=0. はundefinedを示す
unsigned getDName() const
Definition: VBOLeaf.h:131
void setStaticAttribPointSize(GLfloat size)
size<=0. はundefinedを示す
void make_display_list(MGCL::VIEWMODE vmode=MGCL::DONTCARE)
Definition: VBOLeaf.h:69
mgGLSL::DrawType getDrawType() const
Definition: VBOLeaf.h:93
MGColor defines the OpenGL color (R,G,B,A).
Definition: Color.h:26
void setLightMode(int mode)
Set light mode. mode=-1:undefined, =0:disabled, =1:enabled.
Definition: VBO.h:448
virtual void draw(MGCL::VIEWMODE viewMode=MGCL::DONTCARE)=0
DrawType
Definition: glslprogram.h:25
void setPrimitiveMode(GLenum primitiveMode)
Definition: VBOLeaf.h:147
Represent a positional data.
Definition: Position.h:28
Texture definition class.
Definition: Texture.h:29
short int m_stippleFactor
Definition: VBO.h:484
Defines BPoint seq of a space dimension and of a capacity.
Definition: BPointSeq.h:38
VIEWMODE
Definition: MGCL.h:271
void redraw(MGCL::VIEWMODE viewMode=MGCL::DONTCARE)
Definition: VBOLeaf.h:79
int m_lightMode
m_LineStipplePatternindicates the pattern.
Definition: VBO.h:490
GLushort m_LineStipplePattern
Definition: VBO.h:487
void setTexture(mgTexture *texture)
virtual GLuint getSelectionName() const
Definition: VBOLeaf.h:136
bool is_made(MGCL::VIEWMODE viewMode=MGCL::DONTCARE)
Definition: VBOLeaf.h:65
virtual void selectionDraw(MGCL::VIEWMODE viewMode=MGCL::DONTCARE)=0
void setStaticAttribLineWidth(GLfloat size)
mgVBOに対して描画データ作成後の情報を保持するためのクラス.
Definition: VBOLeaf.h:38
void setDrawType(mgGLSL::DrawType drawType)
DrawTypeをセットする
Definition: VBOLeaf.h:92
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76
unsigned getVerticesNumber() const
Vertexの数を求める
Definition: VBOLeaf.h:126