le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
flattexzc.h
Go to the documentation of this file.
1 
32 inline void LeRasterizer::fillFlatTexZC(int y, float x1, float x2, float w1, float w2, float u1, float u2, float v1, float v2)
33 {
34  float floatd = x2 - x1;
35  if (floatd == 0.0f) return;
36 
37  int xb = (int)(x1);
38  int xe = (int)(x2 + 1.9999f);
39  if (xe > frame.tx) xe = frame.tx;
40 
41  uint8_t * p = (uint8_t *) (xb + y * frame.tx + pixels);
42  short shortd = xe - xb;
43 
44  fill_flat_texel_float(p, shortd, floatd, u1, v1, w1, u2, v2, w2, texMaskU, texMaskV, texSizeU, texDiffusePixels);
45 }
int tx
Definition: bitmap.h:81
LeBitmap frame
Definition: rasterizer_float.h:61
void fill_flat_texel_float(uint8_t *p, short d, float df, float u1, float v1, float w1, float u2, float v2, float w2, uint32_t texMaskU, uint32_t texMaskV, uint32_t texSizeU, LeColor *texPixels)