RunicVTT
Open Source Virtual Tabletop for TTRPG using P2P
Loading...
Searching...
No Matches
Texture.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Renderer.h
"
4
5
class
Texture
6
{
7
private
:
8
unsigned
char
*
m_LocalBuffer
;
9
int
m_Width
,
m_Height
,
m_BPP
;
10
unsigned
int
m_RendererID
;
11
12
public
:
13
std::string
m_FilePath
;
14
Texture
(
const
std::string& path);
15
~Texture
();
16
unsigned
int
GetRendererID
();
17
void
SetFilePath
(
const
std::string& path);
18
19
void
Bind
(
unsigned
int
slot = 0)
const
;
20
void
Unbind
()
const
;
21
22
inline
int
GetWidth
()
const
23
{
24
return
m_Width
;
25
};
26
inline
int
GetHeight
()
const
27
{
28
return
m_Height
;
29
};
30
};
Renderer.h
Texture
Definition
Texture.h:6
Texture::~Texture
~Texture()
Definition
Texture.cpp:31
Texture::Unbind
void Unbind() const
Definition
Texture.cpp:53
Texture::Bind
void Bind(unsigned int slot=0) const
Definition
Texture.cpp:46
Texture::GetHeight
int GetHeight() const
Definition
Texture.h:26
Texture::Texture
Texture(const std::string &path)
Definition
Texture.cpp:5
Texture::SetFilePath
void SetFilePath(const std::string &path)
Definition
Texture.cpp:41
Texture::m_BPP
int m_BPP
Definition
Texture.h:9
Texture::GetWidth
int GetWidth() const
Definition
Texture.h:22
Texture::m_Height
int m_Height
Definition
Texture.h:9
Texture::m_FilePath
std::string m_FilePath
Definition
Texture.h:13
Texture::m_RendererID
unsigned int m_RendererID
Definition
Texture.h:10
Texture::m_LocalBuffer
unsigned char * m_LocalBuffer
Definition
Texture.h:8
Texture::m_Width
int m_Width
Definition
Texture.h:9
Texture::GetRendererID
unsigned int GetRendererID()
Definition
Texture.cpp:36
include
renderer
Texture.h
Generated by
1.10.0