Leviathan  0.8.0.0
Leviathan game engine
Leviathan::Shader Class Reference

#include <Shader.h>

+ Inheritance diagram for Leviathan::Shader:

Public Member Functions

bs::HShader GetInternal ()
 
 REFERENCE_COUNTED_PTR_TYPE (Shader)
 
- 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 Shader (const bs::HShader &shader)
 
- 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 Shader.h.

Constructor & Destructor Documentation

◆ Shader()

DLLEXPORT Shader::Shader ( const bs::HShader &  shader)
protected

Definition at line 7 of file Shader.cpp.

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

Member Function Documentation

◆ GetInternal()

bs::HShader Leviathan::Shader::GetInternal ( )
inline

Definition at line 20 of file Shader.h.

21  {
22  return BsShader;
23  }

◆ REFERENCE_COUNTED_PTR_TYPE()

Leviathan::Shader::REFERENCE_COUNTED_PTR_TYPE ( Shader  )

Member Data Documentation

◆ ReferenceCounted

friend Leviathan::Shader::ReferenceCounted
protected

Definition at line 16 of file Shader.h.


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