galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
TextureView.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_GRAPHICS_GL_TEXTUREVIEW_HPP_
9#define GALAXY_GRAPHICS_GL_TEXTUREVIEW_HPP_
10
11namespace galaxy
12{
16 class TextureView final
17 {
18 public:
28 TextureView(const unsigned int parent, const unsigned int minlevel, const unsigned int numlevels, const unsigned int minlayer, const unsigned int numlayers) noexcept;
29
33 TextureView(TextureView&&) noexcept;
34
39
43 ~TextureView() noexcept;
44
50 [[nodiscard]]
51 unsigned int id() const noexcept;
52
53 private:
57 TextureView() = delete;
58
62 TextureView(const TextureView&) = delete;
63
68
69 private:
73 unsigned int m_id;
74 };
75} // namespace galaxy
76
77#endif
OpenGL 2D TextureView.
TextureView(const TextureView &)=delete
Copy constructor.
unsigned int id() const noexcept
Get OpenGL texture id.
~TextureView() noexcept
Destructor.
TextureView & operator=(const TextureView &)=delete
Copy assignment operator.
unsigned int m_id
Texture view id.
TextureView & operator=(TextureView &&) noexcept
Move assignment operator.
TextureView()=delete
Constructor.
Animated.cpp galaxy.
Definition Animated.cpp:16