Added default values to the TexEnvCombine constructor.

This commit is contained in:
Robert Osfield
2002-08-19 19:53:34 +00:00
parent 41db2e08d0
commit 7a0f041a15
2 changed files with 60 additions and 45 deletions

View File

@@ -3,12 +3,27 @@
using namespace osg;
TexEnvCombine::TexEnvCombine()
TexEnvCombine::TexEnvCombine():
_combine_RGB(GL_MODULATE),
_combine_Alpha(GL_MODULATE),
_source0_RGB(GL_TEXTURE),
_source1_RGB(GL_PREVIOUS_ARB),
_source2_RGB(GL_CONSTANT_ARB),
_source0_Alpha(GL_TEXTURE),
_source1_Alpha(GL_PREVIOUS_ARB),
_source2_Alpha(GL_CONSTANT_ARB),
_operand0_RGB(GL_SRC_COLOR),
_operand1_RGB(GL_SRC_COLOR),
_operand2_RGB(GL_SRC_ALPHA),
_operand0_Alpha(GL_SRC_ALPHA),
_operand1_Alpha(GL_SRC_ALPHA),
_operand2_Alpha(GL_SRC_ALPHA),
_scale_RGB(1.0),
_scale_Alpha(1.0),
_constantColor(0.0f,0.0f,0.0f,0.0f)
{
_constantColor.set(0.0f,0.0f,0.0f,0.0f);
}
TexEnvCombine::~TexEnvCombine()
{
}