Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
texture_storage.h File Reference
#include <string>
#include <cstdint>
#include <bgfx/bgfx.h>
+ Include dependency graph for texture_storage.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BlamTextureRef
 

Namespaces

 Blam
 Namespace surrounding all major engine components.
 
 Blam::RenderingBGFX
 
 Blam::RenderingBGFX::TextureStorage
 
 Blam::RenderingBGFX::Textures
 Namespace containing functions for interacting with textures.
 

Macros

#define BLAM_TEXTURE_REF_INVALID_STORAGE_ID   0xFFFFFFFFu
 
#define BLAM_TEXTURE_SIZE_CLASS_COUNT   7
 

Functions

bool BlamTextureRef_IsValid (BlamTextureRef ref)
 
BlamTextureRef BlamTextureRef_MakeInvalid ()
 
void Blam::RenderingBGFX::TextureStorage::Initialize ()
 
void Blam::RenderingBGFX::TextureStorage::Shutdown ()
 
BlamTextureRef Blam::RenderingBGFX::TextureStorage::UploadFromTag (const char *tag_path, int width, int height, bgfx::TextureFormat::Enum format, uint32_t sampler_flags, const void *pixel_data, int pixel_data_size)
 
void Blam::RenderingBGFX::TextureStorage::UpdateLayer (BlamTextureRef ref, int width, int height, const void *pixel_data, int pixel_data_size)
 
void Blam::RenderingBGFX::TextureStorage::Release (BlamTextureRef ref)
 
void Blam::RenderingBGFX::TextureStorage::BindArraysForFrame (uint8_t first_stage)
 
int Blam::RenderingBGFX::TextureStorage::GetSizeClassCount ()
 
BlamTextureRef Blam::RenderingBGFX::Textures::GetTextureRefFromTag (std::string tag_path)
 
void Blam::RenderingBGFX::Textures::OnBitmapTagUnloading (std::string tag_path)
 

Variables

const int BLAM_TEXTURE_SIZE_CLASS_RESOLUTIONS [BLAM_TEXTURE_SIZE_CLASS_COUNT]
 
const int BLAM_TEXTURE_INITIAL_LAYERS_PER_CLASS [BLAM_TEXTURE_SIZE_CLASS_COUNT]
 

Macro Definition Documentation

◆ BLAM_TEXTURE_REF_INVALID_STORAGE_ID

#define BLAM_TEXTURE_REF_INVALID_STORAGE_ID   0xFFFFFFFFu

◆ BLAM_TEXTURE_SIZE_CLASS_COUNT

#define BLAM_TEXTURE_SIZE_CLASS_COUNT   7

Function Documentation

◆ BlamTextureRef_IsValid()

bool BlamTextureRef_IsValid ( BlamTextureRef  ref)
inline
+ Here is the caller graph for this function:

◆ BlamTextureRef_MakeInvalid()

BlamTextureRef BlamTextureRef_MakeInvalid ( )
inline
+ Here is the caller graph for this function:

Variable Documentation

◆ BLAM_TEXTURE_INITIAL_LAYERS_PER_CLASS

const int BLAM_TEXTURE_INITIAL_LAYERS_PER_CLASS[BLAM_TEXTURE_SIZE_CLASS_COUNT]

◆ BLAM_TEXTURE_SIZE_CLASS_RESOLUTIONS

const int BLAM_TEXTURE_SIZE_CLASS_RESOLUTIONS[BLAM_TEXTURE_SIZE_CLASS_COUNT]