scg3  0.6
TextureCore.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright 2014 Volker Ahlers
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */
24 
25 #ifndef TEXTURECORE_H_
26 #define TEXTURECORE_H_
27 
28 #include "scg_glew.h"
29 #include "Core.h"
30 #include "scg_glm.h"
31 #include "scg_internals.h"
32 
33 namespace scg {
34 
35 
39 class TextureCore: public Core {
40 
41 public:
42 
46  TextureCore();
47 
51  virtual ~TextureCore() = 0;
52 
59  TextureCore* rotate(GLfloat angleDeg, glm::vec3 axis);
60 
66  TextureCore* scale(glm::vec3 scaling);
67 
72  TextureCore* setMatrix(glm::mat4 matrix);
73 
78  virtual void render(RenderState* renderState);
79 
84  virtual void renderPost(RenderState* renderState);
85 
86 protected:
87 
88  GLuint tex_;
89  GLint texOld_;
90  glm::mat4 matrix_;
91 };
92 
93 
94 } /* namespace scg */
95 
96 #endif /* TEXTURECORE_H_ */
glm::mat4 matrix_
Definition: TextureCore.h:90
Local header file for GLM OpenGL Mathematics library.
Base class for all cores (abstract).
Definition: Core.h:36
virtual void renderPost(RenderState *renderState)
Base class for all texture cores (abstract).
Definition: TextureCore.h:39
TextureCore * rotate(GLfloat angleDeg, glm::vec3 axis)
Local header file for GLEW library.
TextureCore * setMatrix(glm::mat4 matrix)
virtual ~TextureCore()=0
The central render state that collects information about the current shader, transformations,...
Definition: RenderState.h:107
Definition: Animation.h:28
virtual void render(RenderState *renderState)
Internal definitions required by most classes.
Base class for all cores (abstract).
TextureCore * scale(glm::vec3 scaling)