chromium/third_party/angle/src/libANGLE/GLES1State.cpp

//
// Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

// GLES1State.cpp: Implements the GLES1State class, tracking state
// for GLES1 contexts.

#include "libANGLE/GLES1State.h"

#include "libANGLE/Context.h"
#include "libANGLE/GLES1Renderer.h"

namespace gl
{

TextureCoordF::TextureCoordF() = default;

TextureCoordF::TextureCoordF(float _s, float _t, float _r, float _q) :{}

bool TextureCoordF::operator==(const TextureCoordF &other) const
{}

MaterialParameters::MaterialParameters() = default;

LightModelParameters::LightModelParameters() = default;

LightParameters::LightParameters() = default;

LightParameters::LightParameters(const LightParameters &other) = default;

FogParameters::FogParameters() = default;

AlphaTestParameters::AlphaTestParameters() = default;

bool AlphaTestParameters::operator!=(const AlphaTestParameters &other) const
{}

TextureEnvironmentParameters::TextureEnvironmentParameters() = default;

TextureEnvironmentParameters::TextureEnvironmentParameters(
    const TextureEnvironmentParameters &other) = default;

PointParameters::PointParameters() = default;

PointParameters::PointParameters(const PointParameters &other) = default;

ClipPlaneParameters::ClipPlaneParameters() = default;

ClipPlaneParameters::ClipPlaneParameters(bool enabled, const angle::Vector4 &equation)
    :{}

ClipPlaneParameters::ClipPlaneParameters(const ClipPlaneParameters &other) = default;

ClipPlaneParameters &ClipPlaneParameters::operator=(const ClipPlaneParameters &other) = default;

GLES1State::GLES1State()
    :{}

GLES1State::~GLES1State() = default;

// Taken from the GLES 1.x spec which specifies all initial state values.
void GLES1State::initialize(const Context *context, const PrivateState *state)
{}

void GLES1State::setAlphaTestParameters(AlphaTestFunc func, GLfloat ref)
{}

void GLES1State::setClientTextureUnit(unsigned int unit)
{}

unsigned int GLES1State::getClientTextureUnit() const
{}

void GLES1State::setCurrentColor(const ColorF &color)
{}

const ColorF &GLES1State::getCurrentColor() const
{}

void GLES1State::setCurrentNormal(const angle::Vector3 &normal)
{}

const angle::Vector3 &GLES1State::getCurrentNormal() const
{}

bool GLES1State::shouldHandleDirtyProgram()
{}

void GLES1State::setCurrentTextureCoords(unsigned int unit, const TextureCoordF &coords)
{}

const TextureCoordF &GLES1State::getCurrentTextureCoords(unsigned int unit) const
{}

void GLES1State::setMatrixMode(MatrixType mode)
{}

MatrixType GLES1State::getMatrixMode() const
{}

GLint GLES1State::getCurrentMatrixStackDepth(GLenum queryType) const
{}

void GLES1State::pushMatrix()
{}

void GLES1State::popMatrix()
{}

GLES1State::MatrixStack &GLES1State::currentMatrixStack()
{}

const angle::Mat4 &GLES1State::getModelviewMatrix() const
{}

const GLES1State::MatrixStack &GLES1State::getMatrixStack(MatrixType mode) const
{}

const GLES1State::MatrixStack &GLES1State::currentMatrixStack() const
{}

void GLES1State::loadMatrix(const angle::Mat4 &m)
{}

void GLES1State::multMatrix(const angle::Mat4 &m)
{}

void GLES1State::setTextureEnabled(GLint activeSampler, TextureType type, bool enabled)
{}

void GLES1State::setLogicOpEnabled(bool enabled)
{}

void GLES1State::setLogicOp(LogicalOperation opcodePacked)
{}

void GLES1State::setClientStateEnabled(ClientVertexArrayType clientState, bool enable)
{}

void GLES1State::setTexCoordArrayEnabled(unsigned int unit, bool enable)
{}

bool GLES1State::isClientStateEnabled(ClientVertexArrayType clientState) const
{}

bool GLES1State::isTexCoordArrayEnabled(unsigned int unit) const
{}

bool GLES1State::isTextureTargetEnabled(unsigned int unit, const TextureType type) const
{}

LightModelParameters &GLES1State::lightModelParameters()
{}

const LightModelParameters &GLES1State::lightModelParameters() const
{}

LightParameters &GLES1State::lightParameters(unsigned int light)
{}

const LightParameters &GLES1State::lightParameters(unsigned int light) const
{}

MaterialParameters &GLES1State::materialParameters()
{}

const MaterialParameters &GLES1State::materialParameters() const
{}

bool GLES1State::isColorMaterialEnabled() const
{}

void GLES1State::setShadeModel(ShadingModel model)
{}

void GLES1State::setClipPlane(unsigned int plane, const GLfloat *equation)
{}

void GLES1State::getClipPlane(unsigned int plane, GLfloat *equation) const
{}

FogParameters &GLES1State::fogParameters()
{}

const FogParameters &GLES1State::fogParameters() const
{}

TextureEnvironmentParameters &GLES1State::textureEnvironment(unsigned int unit)
{}

const TextureEnvironmentParameters &GLES1State::textureEnvironment(unsigned int unit) const
{}

bool operator==(const TextureEnvironmentParameters &a, const TextureEnvironmentParameters &b)
{}

bool operator!=(const TextureEnvironmentParameters &a, const TextureEnvironmentParameters &b)
{}

PointParameters &GLES1State::pointParameters()
{}

const PointParameters &GLES1State::pointParameters() const
{}

const AlphaTestParameters &GLES1State::getAlphaTestParameters() const
{}

AttributesMask GLES1State::getVertexArraysAttributeMask() const
{}

AttributesMask GLES1State::getActiveAttributesMask() const
{}

void GLES1State::setHint(GLenum target, GLenum mode)
{}

GLenum GLES1State::getHint(GLenum target) const
{}

}  // namespace gl