Jamie Madill | dc35604 | 2013-07-19 16:36:57 -0400 | [diff] [blame^] | 1 | #include "precompiled.h" |
| 2 | // |
| 3 | // Copyright (c) 2013 The ANGLE Project Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style license that can be |
| 5 | // found in the LICENSE file. |
| 6 | // |
| 7 | |
| 8 | // Sampler.cpp : Implements the Sampler class, which represents a GLES 3 |
| 9 | // sampler object. Sampler objects store some state needed to sample textures. |
| 10 | |
| 11 | #include "libGLESv2/Sampler.h" |
| 12 | |
| 13 | namespace gl |
| 14 | { |
| 15 | |
| 16 | Sampler::Sampler(GLuint id) |
| 17 | : RefCountObject(id), |
| 18 | mMinFilter(GL_NEAREST_MIPMAP_LINEAR), |
| 19 | mMagFilter(GL_LINEAR), |
| 20 | mWrapS(GL_REPEAT), |
| 21 | mWrapT(GL_REPEAT), |
| 22 | mWrapR(GL_REPEAT), |
| 23 | mMinLod(-1000.0f), |
| 24 | mMaxLod(1000.0f), |
| 25 | mComparisonMode(GL_NONE), |
| 26 | mComparisonFunc(GL_LEQUAL) |
| 27 | { |
| 28 | } |
| 29 | |
| 30 | } |