Aeon Engine
c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
OpenGLTexture.hpp
1
/*
2
Copyright (C) 2016-2021,2025,2026 Rodrigo Jose Hernandez Cordoba
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
#ifndef AEONGAMES_OPENGLTEXTURE_HPP
17
#define AEONGAMES_OPENGLTEXTURE_HPP
18
#include "OpenGLFunctions.hpp"
19
20
namespace
AeonGames
21
{
22
class
Texture
;
23
class
OpenGLRenderer
;
25
class
OpenGLTexture
26
{
27
public
:
28
OpenGLTexture
(
OpenGLRenderer
& aOpenGLRenderer,
const
Texture
& aTexture );
30
OpenGLTexture
(
OpenGLTexture
&& aOpenGLTexture );
31
OpenGLTexture
(
const
OpenGLTexture
& ) =
delete
;
32
OpenGLTexture
& operator= (
const
OpenGLTexture
& ) =
delete
;
33
OpenGLTexture
& operator= (
OpenGLTexture
&& ) =
delete
;
34
~OpenGLTexture
();
36
GLuint
GetTextureId
()
const
;
37
private
:
38
OpenGLRenderer
& mOpenGLRenderer;
39
const
Texture
* mTexture{};
40
GLuint mTextureId{};
41
};
42
}
43
#endif
AeonGames::OpenGLRenderer
OpenGL rendering backend implementing the Renderer interface.
Definition
OpenGLRenderer.hpp:45
AeonGames::OpenGLTexture::OpenGLTexture
OpenGLTexture(OpenGLRenderer &aOpenGLRenderer, const Texture &aTexture)
Definition
OpenGLTexture.cpp:31
AeonGames::OpenGLTexture::GetTextureId
GLuint GetTextureId() const
Get the OpenGL texture object identifier.
Definition
OpenGLTexture.cpp:82
AeonGames::Texture
Represents a 2D texture image resource.
Definition
Texture.hpp:33
AeonGames
<- This is here just for the literals
Definition
AABB.hpp:31
engine
renderers
opengl
OpenGLTexture.hpp
Generated by
1.16.1