Initialzies member variables for QualCommand class.

This commit is contained in:
James Chen 2014-04-10 20:31:44 +08:00
parent 7b4bec1395
commit 1fdcaaa2c6
1 changed files with 7 additions and 3 deletions

View File

@ -36,11 +36,15 @@ static void convertIntToByteArray(int value, int* output)
}
QuadCommand::QuadCommand()
:_textureID(0)
,_blendType(BlendFunc::DISABLE)
,_quadsCount(0)
:_materialID(0)
,_textureID(0)
,_lastTextureID(0)
,_shader(nullptr)
,_lastShader(nullptr)
,_blendType(BlendFunc::DISABLE)
,_lastBlendType(BlendFunc::DISABLE)
,_quads(nullptr)
,_quadsCount(0)
{
_type = RenderCommand::Type::QUAD_COMMAND;
}