C++ Call function once

后端 未结 0 711
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-23 07:08

Is smarter way to do this than

static bool init = false;

if (!init)
{
   init = true;
}

without every frame checking

if (!ini         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题