Newer
Older
Import / applications / HighwayDash / ports / Game / RenderLayer.h
@John John on 29 Dec 2020 523 bytes bulk import from macbookpro checkouts
//  BlockyFroggy
//  Copyright © 2017 John Ryland.
//  All rights reserved.
#pragma once
#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