Newer
Older
Import / applications / HighwayDash / ports / Game / RenderLayer.h
@John Ryland John Ryland on 22 Dec 2020 433 bytes import NUC files
#ifndef RENDER_LAYER_H
#define RENDER_LAYER_H


#include "GLProgram.h"


class RenderLayer
{
public:
    RenderLayer();
    virtual ~RenderLayer();
    
    virtual void initialize() = 0;
    virtual void update(float a_dt) = 0;
    virtual void draw() = 0;
    
    void setEnabled(bool a_enabled);
    bool isEnabled() const;

protected:
    GLProgram  m_program;
private:
    bool m_enabled = true;
};


#endif // RENDER_LAYER_H