VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Texture.h
1 /*
2  * Copyright (C) 2014 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef TEXTURE_H
18 #define TEXTURE_H
19 
20 #include "RendererCommon.h"
21 
32 class Texture {
33 public:
34  virtual ~Texture() { }
35 
42  virtual void bind() = 0;
46  virtual void unbind() = 0;
50  virtual int getWidth() const = 0;
54  virtual int getHeight() const = 0;
58  virtual GLint getMagnificationFilter() = 0;
63  virtual void setMagnificationFilter(GLint value) = 0;
67  virtual GLint getMinificationFilter() = 0;
72  virtual void setMinificationFilter(GLint value) = 0;
76  virtual GLint getHorizontalWrapMode() = 0;
81  virtual void setHorizontalWrapMode(GLint value) = 0;
85  virtual GLint getVerticalWrapMode() = 0;
90  virtual void setVerticalWrapMode(GLint value) = 0;
91 };
92 
93 #endif // TEXTURE_H
Header declaring and including types common to renderer classes such as Vector2. Also includes GL hea...
virtual void setMagnificationFilter(GLint value)=0
Sets the magnification filter mode applied to this Texture.
virtual void bind()=0
Binds this Texture to the current active texture stage.
Texture abstract base class.
Definition: Texture.h:32
virtual GLint getVerticalWrapMode()=0
Returns the wrap mode to apply to the Texture vertically.
virtual int getHeight() const =0
Returns the height of this Texture in texels.
virtual GLint getMinificationFilter()=0
Returns the minification filter mode applied to this Texture.
virtual GLint getHorizontalWrapMode()=0
Returns the wrap mode to apply to the Texture horizontally.
virtual void setHorizontalWrapMode(GLint value)=0
Sets the wrap mode to apply to the Texture horizontally.
virtual GLint getMagnificationFilter()=0
Returns the magnification filter mode applied to this Texture.
virtual void setMinificationFilter(GLint value)=0
Sets the minification filter mode applied to this Texture.
virtual int getWidth() const =0
Returns the width of this Texture in texels.
virtual void unbind()=0
Unbinds this Texture from the current active texture stage.
virtual void setVerticalWrapMode(GLint value)=0
Sets the wrap mode to apply to the Texture vertically.