const uint8_t *FPNGTexture::GetColumn (unsigned int column, const Span **spans_out) { if (Pixels == NULL) { MakeTexture (); } if ((unsigned)column >= (unsigned)Width) { if (WidthMask + 1 == Width) { column &= WidthMask; } else { column %= Width; } } if (spans_out != NULL) { if (Spans == NULL) { Spans = CreateSpans (Pixels); } *spans_out = Spans[column]; } return Pixels + column*Height; }
const BYTE *FMultiPatchTexture::GetColumn (unsigned int column, const Span **spans_out) { if (bRedirect) { return Parts->Texture->GetColumn (column, spans_out); } if (Pixels == NULL) { MakeTexture (); } if ((unsigned)column >= (unsigned)Width) { if (WidthMask + 1 == Width) { column &= WidthMask; } else { column %= Width; } } if (spans_out != NULL) { if (Spans == NULL) { Spans = CreateSpans (Pixels); } *spans_out = Spans[column]; } return Pixels + column*Height; }
const BYTE* FCELTexture::GetColumn(unsigned int column, const Span** spans) { if (m_pixels == NULL) { MakeTexture(); } if (DWORD(column) >= DWORD(Width)) { if (WidthMask + 1 == Width) { column &= WidthMask; } else { column %= Width; } } if (NULL != spans) { if (NULL == m_spans) { m_spans = CreateSpans(m_pixels); } *spans = m_spans[column]; } return m_pixels + column * Height; }
const BYTE *FWarpTexture::GetColumn (unsigned int column, const Span **spans_out) { DWORD time = r_FrameTime; if (Pixels == NULL || time != GenTime) { MakeTexture (time); } if ((unsigned)column >= (unsigned)Width) { if (WidthMask + 1 == Width) { column &= WidthMask; } else { column %= Width; } } if (spans_out != NULL) { if (Spans == NULL) { Spans = CreateSpans (Pixels); } *spans_out = Spans[column]; } return Pixels + column*Height; }