Leviathan  0.8.0.0
Leviathan game engine
Leviathan::Texture Class Reference

#include <Texture.h>

+ Inheritance diagram for Leviathan::Texture:

Public Member Functions

bs::HTexture GetInternal ()
 
 REFERENCE_COUNTED_PTR_TYPE (Texture)
 
- Public Member Functions inherited from Leviathan::ReferenceCounted
 ReferenceCounted (const ReferenceCounted &other)=delete
 
ReferenceCountedoperator= (const ReferenceCounted &other)=delete
 
FORCE_INLINE void AddRef () const
 
FORCE_INLINE void Release () const
 removes a reference and deletes the object if reference count reaches zero More...
 
FORCE_INLINE void AddRef ()
 
FORCE_INLINE void Release ()
 
int32_t GetRefCount () const
 Returns the reference count. More...
 

Protected Member Functions

DLLEXPORT Texture (const bs::HTexture &texture)
 
- Protected Member Functions inherited from Leviathan::ReferenceCounted
DLLEXPORT ReferenceCounted ()
 
virtual DLLEXPORT ~ReferenceCounted ()
 

Protected Attributes

friend ReferenceCounted
 

Additional Inherited Members

- Public Types inherited from Leviathan::ReferenceCounted
using basepointer = boost::intrusive_ptr< ReferenceCounted >
 
using refcountedpointer = boost::intrusive_ptr< ReferenceCounted >
 
- Static Public Member Functions inherited from Leviathan::ReferenceCounted
template<class ActualType >
static boost::intrusive_ptr< ActualType > WrapPtr (ActualType *ptr)
 Creates an intrusive_ptr from raw pointer. More...
 
template<class ActualType , class... Args>
static boost::intrusive_ptr< ActualType > MakeShared (Args &&... args)
 Constructs a new instance and wraps it. More...
 

Detailed Description

Definition at line 12 of file Texture.h.

Constructor & Destructor Documentation

◆ Texture()

DLLEXPORT Texture::Texture ( const bs::HTexture &  texture)
protected

Definition at line 7 of file Texture.cpp.

7  : BsTexture(texture)
8 {
9  LEVIATHAN_ASSERT(texture, "Given bsf texture is null");
10 }
#define LEVIATHAN_ASSERT(x, msg)
Definition: Define.h:100

Member Function Documentation

◆ GetInternal()

bs::HTexture Leviathan::Texture::GetInternal ( )
inline

Definition at line 20 of file Texture.h.

21  {
22  return BsTexture;
23  }

◆ REFERENCE_COUNTED_PTR_TYPE()

Leviathan::Texture::REFERENCE_COUNTED_PTR_TYPE ( Texture  )

Member Data Documentation

◆ ReferenceCounted

friend Leviathan::Texture::ReferenceCounted
protected

Definition at line 16 of file Texture.h.


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