Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Engine
Texture
OpenGLTexture.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Engine/Utility/Defines.hpp
"
4
#ifdef USING_OPENGL
5
#include "
Engine/Texture/Texture.hpp
"
6
7
namespace
Engine
8
{
12
class
ENGINE_API
OpenGLTexture :
public
Texture
13
{
14
public
:
18
~OpenGLTexture()
override
;
24
void
CreateTextureWithData(stbi_uc* data,
bool
genMipMaps,
TextureDataSize
bytes =
TextureDataSize::U_CHAR
,
bool
storage =
false
)
override
;
25
private
:
26
friend
class
Skeleton;
27
friend
class
ResourceManager;
28
34
explicit
OpenGLTexture(
const
eastl::string& filename,
int
desiredChannels = 4);
40
explicit
OpenGLTexture(
int
width,
int
height);
41
};
42
}
//namespace Engine
43
#endif
Texture.hpp
Engine::TextureDataSize::U_CHAR
ENGINE_API
#define ENGINE_API
Definition:
api.hpp:25
Engine
Definition:
Skeleton.cpp:15
Engine::TextureDataSize
TextureDataSize
Definition:
Texture.hpp:11
Defines.hpp
Generated by
1.8.11