CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GLSampler Class Referencefinal

#include <CeresEngine/RenderAPI/OpenGL/GLSampler.hpp>

Inheritance diagram for CeresEngine::GLSampler:
CeresEngine::GPUSampler CeresEngine::GLDeviceObject< GLSampler, GPUSampler > CeresEngine::TDeviceObject< GPUSamplerDescriptor > CeresEngine::GLObject< ChildTypeName, ParentType > CeresEngine::GPUDeviceObject CeresEngine::GPUObject

Public Member Functions

 GLSampler (GLDevicePtr device, const GPUSamplerDescriptor &descriptor)
 
 ~GLSampler () override
 
GLuint handle () const
 
- Public Member Functions inherited from CeresEngine::GPUSampler
 GPUSampler (const GPUSampler &)=delete
 Deleted copy constructor.
 
GPUSampleroperator= (const GPUSampler &)=delete
 
 GPUSampler (GPUSampler &&)=delete
 Deleted move constructor.
 
GPUSampleroperator= (GPUSampler &&)=delete
 
 TDeviceObject (GPUDevice &device, const Descriptor &descriptor)
 Inherited constructors.
 
 TDeviceObject (const TDeviceObject &)=delete
 Inherited constructors.
 
 TDeviceObject (TDeviceObject &&)=delete
 Inherited constructors.
 
- Public Member Functions inherited from CeresEngine::TDeviceObject< GPUSamplerDescriptor >
 TDeviceObject (GPUDevice &device, const Descriptor &descriptor)
 Initializes a new RenderAPI device object instance.
 
 TDeviceObject (const TDeviceObject &)=delete
 
 TDeviceObject (TDeviceObject &&)=delete
 
 ~TDeviceObject () override=default
 
TDeviceObjectoperator= (const TDeviceObject &)=delete
 
TDeviceObjectoperator= (TDeviceObject &&)=delete
 
- Public Member Functions inherited from CeresEngine::GPUDeviceObject
 GPUDeviceObject (GPUDevice &device)
 
 ~GPUDeviceObject () override
 
- Public Member Functions inherited from CeresEngine::GPUObject
 GPUObject ()=default
 
virtual ~GPUObject ()=default
 
 GPUObject (const GPUObject &)=delete
 
GPUObjectoperator= (const GPUObject &)=delete
 
 GPUObject (GPUObject &&)=delete
 
GPUObjectoperator= (GPUObject &&)=delete
 
void retain () noexcept
 Retains the object by increment it's reference count by one.
 
bool release () noexcept
 Releases the object by decrementing it's reference count by one.
 

Private Attributes

const GPUSamplerDescriptor descriptorGL
 A structure that describes the sampler and it's properties.
 
GLObjectHandle<&glad_glGenSamplers, &glad_glDeleteSamplerssamplerID {}
 The OpenGL sampler object.
 

Additional Inherited Members

- Public Types inherited from CeresEngine::TDeviceObject< GPUSamplerDescriptor >
using Descriptor = GPUSamplerDescriptor
 An type-alias to the descriptor struct type.
 
- Static Public Member Functions inherited from CeresEngine::GLObject< ChildTypeName, ParentType >
static RC< ChildTypeNamecast (const RC< ParentType > &ptr)
 Casts a RC containing a ParentType pointer to a pointer to a pointer to a ChildTypeName.
 
static RC< ChildTypeNamesafeCast (const RC< ParentType > &ptr)
 Safely casts a RC containing a ParentType pointer to a pointer to a pointer to a ChildTypeName.
 
static ChildTypeNamecast (ParentType &object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
static const ChildTypeNamecast (const ParentType &object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
static ChildTypeNamecast (ParentType *object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
static const ChildTypeNamecast (const ParentType *object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
static ChildTypeNamesafeCast (ParentType *object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
static const ChildTypeNamesafeCast (const ParentType *object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
- Public Attributes inherited from CeresEngine::TDeviceObject< GPUSamplerDescriptor >
const Descriptordescriptor
 A structure that describes the object and it's properties.
 
- Public Attributes inherited from CeresEngine::GPUDeviceObject
GPUDevicedevice
 The owning device this object was created from.
 
- Protected Member Functions inherited from CeresEngine::GPUObject
virtual void destroy () noexcept
 A internal method called by the system when the object reference count reaches zero.
 
- Protected Member Functions inherited from CeresEngine::GLDeviceObject< GLSampler, GPUSampler >
 GLDeviceObject (GLDevicePtr device)
 Creates a new GLDeviceObject from the given device.
 
- Protected Attributes inherited from CeresEngine::GLDeviceObject< GLSampler, GPUSampler >
GLDevicedeviceGL
 The owning GLDevice instance.
 

Constructor & Destructor Documentation

◆ GLSampler()

CeresEngine::GLSampler::GLSampler ( GLDevicePtr  device,
const GPUSamplerDescriptor descriptor 
)

◆ ~GLSampler()

CeresEngine::GLSampler::~GLSampler ( )
override

Member Function Documentation

◆ handle()

GLuint CeresEngine::GLSampler::handle ( ) const
inline
Returns
The OpenGL object handle

Member Data Documentation

◆ descriptorGL

const GPUSamplerDescriptor CeresEngine::GLSampler::descriptorGL
private

A structure that describes the sampler and it's properties.

◆ samplerID

GLObjectHandle<& glad_glGenSamplers , & glad_glDeleteSamplers > CeresEngine::GLSampler::samplerID {}
private

The OpenGL sampler object.


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