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
galaxy::TextureView Class Referencefinal

OpenGL 2D TextureView. More...

#include <TextureView.hpp>

+ Collaboration diagram for galaxy::TextureView:

Public Member Functions

 TextureView (const unsigned int parent, const unsigned int minlevel, const unsigned int numlevels, const unsigned int minlayer, const unsigned int numlayers) noexcept
 Args constructor.
 
 TextureView (TextureView &&) noexcept
 Move constructor.
 
TextureViewoperator= (TextureView &&) noexcept
 Move assignment operator.
 
 ~TextureView () noexcept
 Destructor.
 
unsigned int id () const noexcept
 Get OpenGL texture id.
 

Private Member Functions

 TextureView ()=delete
 Constructor.
 
 TextureView (const TextureView &)=delete
 Copy constructor.
 
TextureViewoperator= (const TextureView &)=delete
 Copy assignment operator.
 

Private Attributes

unsigned int m_id
 Texture view id.
 

Detailed Description

OpenGL 2D TextureView.

Definition at line 16 of file TextureView.hpp.

Constructor & Destructor Documentation

◆ TextureView() [1/4]

galaxy::TextureView::TextureView ( const unsigned int parent,
const unsigned int minlevel,
const unsigned int numlevels,
const unsigned int minlayer,
const unsigned int numlayers )
noexcept

Args constructor.

Parameters
parentTexture id of which to create a view from.
minlevelMipmap level.
numlevelsNumber of mipmaps to include.
minlayerSpecifies the index of the first layer to include in the view.
numlayersSpecifies the number of layers to include in the view.

Definition at line 14 of file TextureView.cpp.

◆ TextureView() [2/4]

galaxy::TextureView::TextureView ( TextureView && t)
noexcept

Move constructor.

Definition at line 26 of file TextureView.cpp.

◆ ~TextureView()

galaxy::TextureView::~TextureView ( )
noexcept

Destructor.

Definition at line 47 of file TextureView.cpp.

◆ TextureView() [3/4]

galaxy::TextureView::TextureView ( )
privatedelete

Constructor.

◆ TextureView() [4/4]

galaxy::TextureView::TextureView ( const TextureView & )
privatedelete

Copy constructor.

Member Function Documentation

◆ operator=() [1/2]

TextureView & galaxy::TextureView::operator= ( TextureView && t)
noexcept

Move assignment operator.

Definition at line 34 of file TextureView.cpp.

◆ id()

unsigned int galaxy::TextureView::id ( ) const
nodiscardnoexcept

Get OpenGL texture id.

Returns
Unsigned int.

Definition at line 52 of file TextureView.cpp.

+ Here is the caller graph for this function:

◆ operator=() [2/2]

TextureView & galaxy::TextureView::operator= ( const TextureView & )
privatedelete

Copy assignment operator.

Member Data Documentation

◆ m_id

unsigned int galaxy::TextureView::m_id
private

Texture view id.

Definition at line 73 of file TextureView.hpp.


The documentation for this class was generated from the following files: