Vivid
Loading...
Searching...
No Matches
Texture.h
1
#pragma once
2
3
#include "Renderer.h"
4
#include "stb_image/stb_image.h"
5
6
namespace
Vivid
7
{
13
class
Texture
14
{
15
private
:
16
unsigned
int
m_RendererID;
17
String m_Name;
18
String m_FilePath;
19
unsigned
char
* m_LocalBuffer;
20
int
m_Width, m_Height, m_BPP;
21
22
public
:
23
Texture
();
24
Texture
(
const
std::string& path);
25
~Texture
();
26
27
void
Bind(
unsigned
int
slot = 0)
const
;
28
void
Unbind()
const
;
29
30
inline
unsigned
int
GetRendererID()
const
{
return
m_RendererID; }
31
inline
int
GetWidth()
const
{
return
m_Width; }
32
inline
int
GetHeight()
const
{
return
m_Height; }
33
inline
String GetFilePath()
const
{
return
m_FilePath; }
34
inline
String GetName()
const
{
return
m_Name; }
35
36
inline
void
SetName(
const
String& name) { m_Name = name; }
37
};
38
}
Vivid::Texture
A class for the Texture.
Definition:
Texture.h:14
src
core
renderer
Texture.h
Generated by
1.9.6