Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
GLTexture.hpp
1
#pragma once
2
3
#include <vector>
4
#include <GL/gl3w.h>
5
6
#include <Common/Graphics/Texture.hpp>
7
8
namespace
Grindstone::GraphicsAPI::OpenGL {
9
class
Texture
:
public
Grindstone::GraphicsAPI::Texture
{
10
public
:
11
Texture
(
const
CreateInfo
& ci);
12
Texture
(
const
CubemapCreateInfo
& ci);
13
virtual
void
RecreateTexture(
const
CreateInfo
& createInfo)
override
;
14
void
CreateTexture(
const
CreateInfo
& createInfo);
15
void
Bind(
int
i);
16
17
virtual
unsigned
int
GetTexture()
const
;
18
19
~Texture
();
20
21
protected
:
22
GLuint textureHandle;
23
bool
isCubemap;
24
25
};
26
}
Grindstone::GraphicsAPI::OpenGL::Texture
Definition
GLTexture.hpp:9
Grindstone::GraphicsAPI::Texture
Definition
Texture.hpp:40
Grindstone::GraphicsAPI::Texture::CreateInfo
Definition
Texture.hpp:42
Grindstone::GraphicsAPI::Texture::CubemapCreateInfo
Definition
Texture.hpp:52
sources
code
Plugins
GraphicsOpenGL
GLTexture.hpp
Generated by
1.12.0