以前只记得类中静态变量属于类,并且初始化需要在类外面,因为不怎么用所以总记不得怎么写,今天又用到了,所以,记录一下。`
class People
{
public:
People(glm::vec3 th_pos, glm::vec3 th_dir=glm::vec3(0,0,-1
以前只记得类中静态变量属于类,并且初始化需要在类外面,因为不怎么用所以总记不得怎么写,今天又用到了,所以,记录一下。`
class People
{
public:
People(glm::vec3 th_pos, glm::vec3 th_dir=glm::vec3(0,0,-1