srp
software rendering pipeline
Loading...
Searching...
No Matches

Internals of the Texture module. More...

Collaboration diagram for Texture:

Classes

struct  SRPTexture
 
#define N_CHANNELS_REQUESTED   3
 
static vec4d textureGetColor (const SRPTexture *this, size_t x, size_t y)
 

Detailed Description

Internals of the Texture module.

Macro Definition Documentation

◆ N_CHANNELS_REQUESTED

#define N_CHANNELS_REQUESTED   3

Number of channels requested from the stbi_load() call.

Function Documentation

◆ textureGetColor()

static vec4d textureGetColor ( const SRPTexture this,
size_t  x,
size_t  y 
)
static

Get texture color at specified pixel position

Parameters
[in]thisPointer to SRPTexture
[in]x,yPosition of the requested pixel
Returns
Requested pixel's color