Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
GLImage.hpp
1
#pragma once
2
3
#include <vector>
4
#include <GL/gl3w.h>
5
6
#include <Common/Graphics/Image.hpp>
7
8
namespace
Grindstone::GraphicsAPI::OpenGL {
9
class
Image :
public
Grindstone::GraphicsAPI::Image
{
10
public
:
11
Image(
const
CreateInfo
& ci);
12
virtual
void
Resize(uint32_t width, uint32_t height)
override
;
13
virtual
void
UploadData(
const
char
* data, uint64_t dataSize)
override
;
14
15
void
Bind(
int
i);
16
bool
IsCubemap()
const
;
17
18
virtual
unsigned
int
GetImage()
const
;
19
20
~Image();
21
22
protected
:
23
GLsizei width, height, depth, mipCount, arrayLayerCount;
24
GLuint imageHandle;
25
GLenum textureType;
26
GLenum format;
27
GLenum internalFormat;
28
GLenum formatType;
29
GLenum access;
30
};
31
}
Grindstone::GraphicsAPI::Image
Definition
Image.hpp:48
Grindstone::GraphicsAPI::Image::CreateInfo
Definition
Image.hpp:50
sources
code
Plugins
GraphicsOpenGL
GLImage.hpp
Generated by
1.13.2