Home | Info | Community | Development | myReactOS | Contact Us
[static]
Adaptor for fetching a float texel from a GLchan-valued texture.
Definition at line 2994 of file texstore.c.
Referenced by _mesa_set_fetch_functions().
{ GLchan temp[4]; ASSERT(texImage->FetchTexelc); texImage->FetchTexelc(texImage, i, j, k, temp); if (texImage->TexFormat->BaseFormat == GL_DEPTH_COMPONENT || texImage->TexFormat->BaseFormat == GL_DEPTH_STENCIL_EXT) { /* just one channel */ texelOut[0] = CHAN_TO_FLOAT(temp[0]); } else { /* four channels */ texelOut[0] = CHAN_TO_FLOAT(temp[0]); texelOut[1] = CHAN_TO_FLOAT(temp[1]); texelOut[2] = CHAN_TO_FLOAT(temp[2]); texelOut[3] = CHAN_TO_FLOAT(temp[3]); } }