这是返回SDL_Renderer数据类型的正确方法吗?
SDL_Renderer * aRenderer; //Initialize Variable.
SDL_Renderer * getaRenderer() //Function to get aRenderer from other parts of the program.
{
return aRenderer;
}
答案 0 :(得分:-1)
看起来适合我
类CFramework
{
公共:
SDL_Renderer * getRenderer(){return aRenderer; }
私人:
SDL_Renderer * aRenderer;
}