libGumball 0.0.2
C23-Based, libGimbal-powered UI Library
Loading...
Searching...
No Matches
gumball_texture.h File Reference

Go to the source code of this file.

Macros

Type System

Type UUID and cast operators

#define GUM_TEXTURE_TYPE
#define GUM_TEXTURE(self)
#define GUM_TEXTURE_CLASS(klass)
#define GUM_TEXTURE_CLASSOF(self)

Functions

GblBox GUM_Vector2 GUM_Texture_size (GBL_SELF)
void * GUM_Texture_getTexture (GBL_SELF)

Detailed Description

GUM_Texture data structure and hierarchy graph

GUM_Texture is the backend-agnostic type that represents a texture

Author
2025 Agustín Bellagamba

Macro Definition Documentation

◆ GUM_TEXTURE_TYPE

#define GUM_TEXTURE_TYPE

Returns the GUM_Texture Type UUID.

◆ GUM_TEXTURE

#define GUM_TEXTURE ( self)

Casts an instance of a compatible resource to a GUM_Texture.

◆ GUM_TEXTURE_CLASS

#define GUM_TEXTURE_CLASS ( klass)

Casts a class of a compatible resource to a GUM_TextureClass.

◆ GUM_TEXTURE_CLASSOF

#define GUM_TEXTURE_CLASSOF ( self)

Casts an instance of a compatible resource to a GUM_TextureClass.

Function Documentation

◆ GUM_Texture_size()

GblBox GUM_Vector2 GUM_Texture_size ( GBL_SELF )

Returns the size of the texture as a GUM_Vector2.

◆ GUM_Texture_getTexture()

void * GUM_Texture_getTexture ( GBL_SELF )

Returns a void pointer to the underlying backend specific texture.