2D_Game_Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TextureComponent Class Reference

#include <entity.hpp>

Public Member Functions

 TextureComponent (const std::string &path, int mag_filter, int min_filter, float width, float height, int layer, uint32_t uid)
 
 TextureComponent (std::shared_ptr< Texture >t, float width, float height, int layer, uint32_t uid)
 
 TextureComponent ()
 
 TextureComponent (uint32_t uid)
 
 TextureComponent (TextureComponent &other)
 
 TextureComponent (TextureComponent &&other)
 
TextureComponentoperator= (TextureComponent &b)
 
TextureComponentoperator= (TextureComponent &&b)
 

Public Attributes

std::shared_ptr< Texturem_Texture
 
float m_Width
 
float m_Height
 
int m_Layer
 
uint32_t m_UID
 

Detailed Description

Definition at line 115 of file entity.hpp.

Constructor & Destructor Documentation

◆ TextureComponent() [1/6]

TextureComponent::TextureComponent ( const std::string & path,
int mag_filter,
int min_filter,
float width,
float height,
int layer,
uint32_t uid )

Definition at line 58 of file entity.cpp.

◆ TextureComponent() [2/6]

TextureComponent::TextureComponent ( std::shared_ptr< Texture > t,
float width,
float height,
int layer,
uint32_t uid )

Definition at line 64 of file entity.cpp.

◆ TextureComponent() [3/6]

TextureComponent::TextureComponent ( )
inline

Definition at line 119 of file entity.hpp.

◆ TextureComponent() [4/6]

TextureComponent::TextureComponent ( uint32_t uid)
inline

Definition at line 120 of file entity.hpp.

◆ TextureComponent() [5/6]

TextureComponent::TextureComponent ( TextureComponent & other)

Definition at line 81 of file entity.cpp.

◆ TextureComponent() [6/6]

TextureComponent::TextureComponent ( TextureComponent && other)

Definition at line 89 of file entity.cpp.

Member Function Documentation

◆ operator=() [1/2]

TextureComponent & TextureComponent::operator= ( TextureComponent && b)
inline

Definition at line 132 of file entity.hpp.

◆ operator=() [2/2]

TextureComponent & TextureComponent::operator= ( TextureComponent & b)
inline

Definition at line 124 of file entity.hpp.

Member Data Documentation

◆ m_Height

float TextureComponent::m_Height

Definition at line 144 of file entity.hpp.

◆ m_Layer

int TextureComponent::m_Layer

Definition at line 145 of file entity.hpp.

◆ m_Texture

std::shared_ptr<Texture> TextureComponent::m_Texture

Definition at line 143 of file entity.hpp.

◆ m_UID

uint32_t TextureComponent::m_UID

Definition at line 146 of file entity.hpp.

◆ m_Width

float TextureComponent::m_Width

Definition at line 144 of file entity.hpp.


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