Cleaned up the types.

This commit is contained in:
Robert Osfield
2005-01-05 17:14:38 +00:00
parent c58f56adb6
commit e2132cc62a
6 changed files with 70 additions and 94 deletions

View File

@@ -20,11 +20,11 @@
using namespace osg;
BlendEquation::BlendEquation():
_equation(FUNC_ADD_EXT)
_equation(FUNC_ADD)
{
}
BlendEquation::BlendEquation(GLenum equation):
BlendEquation::BlendEquation(Equation equation):
_equation(equation)
{
}
@@ -48,7 +48,7 @@ void BlendEquation::apply(State& state) const
return;
}
extensions->glBlendEquation(_equation);
extensions->glBlendEquation(static_cast<GLenum>(_equation));
}

View File

@@ -19,7 +19,7 @@ LogicOp::LogicOp():
{
}
LogicOp::LogicOp(GLenum opcode):
LogicOp::LogicOp(Opcode opcode):
_opcode(opcode)
{
}
@@ -30,6 +30,6 @@ LogicOp::~LogicOp()
void LogicOp::apply(State&) const
{
glLogicOp(_opcode);
glLogicOp(static_cast<GLenum>(_opcode));
}