/* osgEarth
 * Copyright 2008-2014 Pelican Mapping
 * MIT License
 */
#ifndef OSGEARTH_DRIVERS_MP_RENDER_BINDINGS_H
#define OSGEARTH_DRIVERS_MP_RENDER_BINDINGS_H 1

#include "Common"

namespace osgEarth { namespace Drivers { namespace MPTerrainEngine
{
    class SamplerBinding
    {
    public:
        SamplerBinding() : _unit(-1) { }

        int& unit() { return _unit; }
        const int& unit() const { return _unit; }

        std::string& samplerName() { return _samplerName; }
        const std::string& samplerName() const { return _samplerName; }

        std::string& matrixName() { return _matrixName; }
        const std::string& matrixName() const { return _matrixName; }

    private:
        int         _unit;
        std::string _samplerName;
        std::string _matrixName;
    };

    class RenderBindings
    {
    public:
        SamplerBinding& color() { return _colorBinding; }
        const SamplerBinding& color() const { return _colorBinding; }

        SamplerBinding& parentColor() { return _parentColorBinding; }
        const SamplerBinding& parentColor() const { return _parentColorBinding; }

        SamplerBinding& elevation() { return _elevationBinding; }
        const SamplerBinding& elevation() const { return _elevationBinding; }

        SamplerBinding& parentElevation() { return _parentElevationBinding; }
        const SamplerBinding& parentElevation() const { return _parentElevationBinding; }

    private:
        SamplerBinding _colorBinding;
        SamplerBinding _parentColorBinding;
        SamplerBinding _elevationBinding;
        SamplerBinding _parentElevationBinding;
    };

} } } // namespace osgEarth::Drivers::MPTerrainEngine

#endif // OSGEARTH_DRIVERS_MP_RENDER_BINDINGS_H