X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=examples%2Fopengl%2Fmaterial.py;h=734749d6e98fc91cbc629b54367e6bafb113a279;hb=65211f29fc6e1e540cc3e1c515753f860653382b;hp=29698e37718ef9aba5d288b0c8f351b88ac59ffb;hpb=6fcd334d6c80537283ab6afb30603d243178c768;p=meshio%2Fpymeshio.git diff --git a/examples/opengl/material.py b/examples/opengl/material.py index 29698e3..734749d 100644 --- a/examples/opengl/material.py +++ b/examples/opengl/material.py @@ -38,12 +38,13 @@ Material * テクスチャー ''' class MQOMaterial(object): - def __init__(self, rgba): - self.rgba=rgba + def __init__(self): + self.rgba=(0, 0, 0, 0) + self.vcol=False self.texture=None def begin(self): - glColor4f(self.rgba.r, self.rgba.g, self.rgba.b, self.rgba.a) + glColor4f(*self.rgba) if self.texture: self.texture.begin()