|
ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
|
An SDL_GPUSampler describing texture filter and address modes.
More...
#include <Sampler.h>
Public Member Functions | |
| Sampler * | initWithDevice (Sampler *self, RenderDevice *device, const SDL_GPUSamplerCreateInfo *info) |
Initializes this Sampler, creating its SDL_GPUSampler. | |
| Class * | _Sampler (void) |
| The Sampler archetype. | |
Data Fields | |
| Object | object |
| The superclass. | |
| SDL_GPUSampler * | sampler |
| The underlying SDL sampler. | |
| ident | data |
| User data. | |
Protected Attributes | |
| SamplerInterface * | interface |
| The interface. | |
An SDL_GPUSampler describing texture filter and address modes.
Sampler owns its underlying SDL_GPUSampler and releases it in dealloc, so a Sampler is freed with release like any other Objectively object, including ones returned by RenderDevice's createSampler* convenience constructors for common filter/address-mode presets.
| Sampler * initWithDevice | ( | Sampler * | self, |
| RenderDevice * | device, | ||
| const SDL_GPUSamplerCreateInfo * | info | ||
| ) |
Initializes this Sampler, creating its SDL_GPUSampler.
This is the designated initializer.
| self | The Sampler. |
| device | The RenderDevice used to create and release the sampler. Retained. |
| info | Sampler creation parameters (filters, mip mode, address modes, anisotropy, etc.). |
NULL on failure. | ident Sampler::data |
User data.
|
protected |
The interface.
| Object Sampler::object |
The superclass.
| SDL_GPUSampler* Sampler::sampler |
The underlying SDL sampler.