Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
Texture.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Window.hpp
"
4
8
class
Texture
9
{
10
string
m_name
;
11
uvec2
m_size
;
12
GLuint
m_id
;
14
public
:
19
GLuint &
getId
() {
return
m_id
; }
24
uvec2 &
getSize
() {
return
m_size
; }
29
string
&
getName
() {
return
m_name
; }
30
31
public
:
37
Texture
(
string
const
& name);
41
~Texture
();
42
47
void
bind
(uint target = 0);
48
};
49
54
class
Textures
55
{
56
map<string, unique_ptr<Texture>>
m_textures
;
58
public
:
62
Textures
();
66
virtual
~Textures
();
67
74
Texture
*
get
(
string
const
& name);
75
};
Texture
Definition:
Texture.hpp:8
Texture::getId
GLuint & getId()
Definition:
Texture.hpp:19
Window.hpp
Texture::getName
string & getName()
Definition:
Texture.hpp:29
Textures
Definition:
Texture.hpp:54
Texture::m_name
string m_name
Definition:
Texture.hpp:10
Texture::getSize
uvec2 & getSize()
Definition:
Texture.hpp:24
Texture::m_size
uvec2 m_size
Definition:
Texture.hpp:11
Texture::m_id
GLuint m_id
Definition:
Texture.hpp:12
Textures::Textures
Textures()
Definition:
Texture.cpp:63
Textures::~Textures
virtual ~Textures()
Definition:
Texture.cpp:67
Texture::Texture
Texture(string const &name)
Definition:
Texture.cpp:4
Textures::m_textures
map< string, unique_ptr< Texture > > m_textures
Definition:
Texture.hpp:56
Texture::bind
void bind(uint target=0)
Definition:
Texture.cpp:54
Texture::~Texture
~Texture()
Definition:
Texture.cpp:49
Generated on Fri Jun 6 2014 13:57:29 for Number5 by
1.8.7