scg3
0.6
CubeMapCore.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 CUBEMAPCORE_H_
26
#define CUBEMAPCORE_H_
27
28
#include <vector>
29
#include "
scg_internals.h
"
30
#include "
TextureCore.h
"
31
32
namespace
scg
{
33
34
40
class
CubeMapCore
:
public
TextureCore
{
41
42
public
:
43
47
CubeMapCore
();
48
52
virtual
~CubeMapCore
();
53
57
static
CubeMapCoreSP
create
();
58
67
void
setCubeMap
(GLsizei width, GLsizei height,
const
std::vector<unsigned char*>& rgbaData);
68
75
virtual
void
render
(
RenderState
* renderState);
76
81
virtual
void
renderPost
(
RenderState
* renderState);
82
83
};
84
85
86
}
/* namespace scg */
87
88
#endif
/* CUBEMAPCORE_H_ */
scg::CubeMapCore::renderPost
virtual void renderPost(RenderState *renderState)
scg::CubeMapCore::create
static CubeMapCoreSP create()
scg::TextureCore
Base class for all texture cores (abstract).
Definition:
TextureCore.h:39
TextureCore.h
Base class for all texture cores (abstract).
scg::CubeMapCore::render
virtual void render(RenderState *renderState)
scg::CubeMapCore
Cube map textue core.
Definition:
CubeMapCore.h:40
scg::RenderState
The central render state that collects information about the current shader, transformations,...
Definition:
RenderState.h:107
scg
Definition:
Animation.h:28
scg_internals.h
Internal definitions required by most classes.
scg::CubeMapCore::setCubeMap
void setCubeMap(GLsizei width, GLsizei height, const std::vector< unsigned char * > &rgbaData)
scg::CubeMapCore::CubeMapCore
CubeMapCore()
scg::CubeMapCore::~CubeMapCore
virtual ~CubeMapCore()
src
CubeMapCore.h
Generated on Wed Apr 10 2019 12:43:57 for scg3 by
1.8.15