chromium/third_party/angle/third_party/glmark2/src/src/scene-terrain/renderer.h

/*
 * Copyright © 2012 Linaro Limited
 *
 * This file is part of the glmark2 OpenGL (ES) 2.0 benchmark.
 *
 * glmark2 is free software: you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * glmark2 is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * glmark2.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *  Alexandros Frantzis
 */
#include <stdint.h>
#include <vector>

#include "canvas.h"
#include "mesh.h"
#include "vec.h"
#include "program.h"
#include "gl-headers.h"

/** 
 * Renderer interface.
 */
class IRenderer
{};

/** 
 * A chain of renderers, which implements IRenderer
 */
class RendererChain : public IRenderer
{};

/** 
 * A base implementation of the IRenderer interface.
 */
class BaseRenderer : public IRenderer
{};

/** 
 * A renderer that renders its input texture to its target,
 * according to the supplied GL Program.
 */
class TextureRenderer : public BaseRenderer
{};

/** 
 * A renderer that copies the input texture to its target.
 */
class CopyRenderer : public TextureRenderer
{};

/** 
 * A renderer that renders simplex noise to its target.
 */
class SimplexNoiseRenderer : public TextureRenderer
{};

/** 
 * A renderer that renders a normal map to its target from a
 * height map in its input texture.
 */
class NormalFromHeightRenderer : public TextureRenderer
{};

/** 
 * A renderer that renders the luminance of its input texture to its target.
 */
class LuminanceRenderer : public TextureRenderer
{};


/** 
 * A renderer that renders a blurred version of the input texture to its target.
 */
class BlurRenderer : public TextureRenderer
{};

/** 
 * A renderer that renders with opacity (overlays) it's input texture over
 * the target of another renderer.
 */
class OverlayRenderer : public IRenderer
{};

/** 
 * A renderer that renders a dynamic terrain as per the WebGL
 * dynamic terrain demo.
 */
class TerrainRenderer : public BaseRenderer
{};