FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::RenderResourceTextures Class Reference

Resource containing textures information for rendering. More...

#include <C_renderStates.hpp>

Public Types

enum class  PtrTypes { TEXTURE , TEXTURE_IMAGE }
 The type of pointer used to store the textures. More...
 

Public Member Functions

template<class TTexture >
constexpr RenderResourceTextures (TTexture const *textures, uint32_t count)
 
template<class TTexture >
constexpr void set (TTexture const *textures, uint32_t count)
 
constexpr uint32_t getCount () const
 
constexpr PtrTypes getPointerType () const
 
template<PtrTypes TTextureType>
constexpr auto const * get (uint32_t index) const
 
template<PtrTypes TTextureType>
constexpr fge::TextureType const * getTextureImage (uint32_t index) const
 

Static Public Attributes

template<class... >
static constexpr std::false_type always_false {}
 

Detailed Description

Resource containing textures information for rendering.

For new RenderStates by default, the textures are set to nullptr and the count to 0. When setting nullptr textures, the provided count is ignored and set to 0.

Member Enumeration Documentation

◆ PtrTypes

The type of pointer used to store the textures.

There is 2 types of pointers:


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