Loading [MathJax]/extensions/TeX/AMSmath.js
Radium Engine
1.5.20
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
i
l
m
n
o
p
q
r
s
t
v
z
Functions
a
c
d
f
g
i
l
m
n
o
p
q
r
s
t
v
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
b
d
f
i
m
s
v
w
Typedefs
a
b
c
f
g
i
k
o
r
s
t
v
Enumerations
Enumerator
Related Symbols
Files
File List
File Members
All
Macros
▼
Radium Engine
►
Radium Basics
►
Radium Concepts
►
Developer manual
►
Licenses
Todo List
Deprecated List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
src
►
Core
▼
Engine
▼
Data
BlinnPhongMaterial.cpp
BlinnPhongMaterial.hpp
DisplayableObject.hpp
DrawPrimitives.cpp
DrawPrimitives.hpp
EnvironmentTexture.cpp
EnvironmentTexture.hpp
LambertianMaterial.cpp
LambertianMaterial.hpp
Material.cpp
Material.hpp
MaterialConverters.cpp
MaterialConverters.hpp
MaterialTextureSet.hpp
Mesh.cpp
Mesh.hpp
PlainMaterial.cpp
PlainMaterial.hpp
RawShaderMaterial.cpp
RawShaderMaterial.hpp
RenderParameters.cpp
RenderParameters.hpp
ShaderConfigFactory.cpp
ShaderConfigFactory.hpp
ShaderConfiguration.cpp
ShaderConfiguration.hpp
ShaderProgram.cpp
ShaderProgram.hpp
ShaderProgramManager.cpp
ShaderProgramManager.hpp
SimpleMaterial.cpp
SimpleMaterial.hpp
stb.cpp
Texture.cpp
Texture.hpp
TextureManager.cpp
TextureManager.hpp
ViewingParameters.hpp
VolumeObject.cpp
VolumeObject.hpp
VolumetricMaterial.cpp
VolumetricMaterial.hpp
►
Rendering
►
Scene
FrameInfo.hpp
OpenGL.hpp
pch.hpp
RadiumEngine.cpp
RadiumEngine.hpp
RaEngine.hpp
►
Gui
►
Headless
►
IO
►
PluginBase
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
TextureManager.hpp
1
#pragma once
2
3
#include <Engine/RaEngine.hpp>
4
#include <map>
5
#include <string>
6
7
#include <Engine/Data/Texture.hpp>
8
#include <Engine/OpenGL.hpp>
9
namespace
Ra
{
10
namespace
Engine {
11
namespace
Data {
12
19
class
RA_ENGINE_API
TextureManager
final
20
{
21
22
private
:
23
public
:
24
using
TextureHandle = Ra::Core::Utils::Index;
25
30
TextureHandle addTexture(
const
TextureParameters
& p );
31
36
Texture
* getTexture(
const
TextureHandle& handle );
37
43
TextureHandle getTextureHandle(
const
std::string
& name );
44
46
Texture
*
getTexture
(
const
std::string
& name ) {
47
return
getTexture( getTextureHandle( name ) );
48
}
46
Texture
*
getTexture
(
const
std::string
& name ) {
…
}
49
54
void
deleteTexture(
const
TextureHandle& handle );
55
64
static
ImageParameters
loadTextureImage(
const
std::string
& filename,
bool
linearize =
false
);
65
66
public
:
67
TextureManager
();
68
~TextureManager
();
69
TextureManager
(
TextureManager
const
& ) =
delete
;
70
TextureManager
(
TextureManager
&& ) =
delete
;
71
TextureManager
& operator=(
TextureManager
const
& ) =
delete
;
72
TextureManager
& operator=(
TextureManager
&& ) =
delete
;
73
74
private
:
75
std::vector<std::unique_ptr<Texture>
> m_textures;
76
};
19
class
RA_ENGINE_API
TextureManager
final {
…
};
77
78
}
// namespace Data
79
}
// namespace Engine
80
}
// namespace Ra
std::string
Ra::Engine::Data::TextureManager
Manage Texture loading and registration.
Definition
TextureManager.hpp:20
Ra::Engine::Data::TextureManager::getTexture
Texture * getTexture(const std::string &name)
Convinience function to obtain Texture ptr from name.
Definition
TextureManager.hpp:46
Ra::Engine::Data::Texture
Represent a Texture of the engine.
Definition
Texture.hpp:120
Ra
hepler function to manage enum as underlying types in VariableSet
Definition
Cage.cpp:3
Ra::Engine::Data::ImageParameters
Definition
Texture.hpp:40
Ra::Engine::Data::TextureParameters
Describes the sampler and image of a texture.
Definition
Texture.hpp:99
std::vector
src
Engine
Data
TextureManager.hpp
Generated by
1.12.0