-------------------- sprite_renderer.h --------------

class SpriteRenderer
{
...
};

-------------------- game.cpp ------------------------

#include "sprite_renderer.h"

SpriteRenderer  *Renderer;

Game::Game(GLuint width, GLuint height)
        : State(GAME_ACTIVE), Keys(), Width(width), Height(height)
{
  ...
}

-------------------------------------------------------

What is the best (or any) approach for translating SpriteRenderer *Renderer;
to D?  Thanks.

Sorry if this is common knowledge. I tried taking due diligence with the documentation.

Reply via email to