Not sure how to translate this C++ variable to D.

WhatMeWorry via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 14 15:14:16 PDT 2016


-------------------- 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.


More information about the Digitalmars-d-learn mailing list