Searched refs:s2p (Results 1 – 4 of 4) sorted by relevance
42 float s2p(float s) { return (s + 1.0f) * 0.5f * (GLfloat)windowWidth; } in s2p() function in PointSpritesTest100 float xw = s2p(pointX); in testPointCoordAndPointSizeCompliance()101 float yw = s2p(pointY); in testPointCoordAndPointSizeCompliance()104 int xf = static_cast<int>(floorf(s2p(pointX + u * pointWidth))); in testPointCoordAndPointSizeCompliance()105 int yf = static_cast<int>(floorf(s2p(pointY + v * pointWidth))); in testPointCoordAndPointSizeCompliance()
43 float s2p(float s) { return (s + 1.0f) * 0.5f * (GLfloat)windowWidth; } in s2p() function in PointSpritesTest101 float xw = s2p(pointX); in testPointCoordAndPointSizeCompliance()102 float yw = s2p(pointY); in testPointCoordAndPointSizeCompliance()105 int xf = static_cast<int>(floorf(s2p(pointX + u * pointWidth))); in testPointCoordAndPointSizeCompliance()106 int yf = static_cast<int>(floorf(s2p(pointY + v * pointWidth))); in testPointCoordAndPointSizeCompliance()
193 char *s2, *s2p; in line_callback() local208 s2p = s2 + strlen(s2) - 1; in line_callback()209 while (s2p >= s2 && '\r' == *s2p) { in line_callback()210 *s2p = '\0'; in line_callback()211 s2p -= 1; in line_callback()
397 char *s2p = (char *) s2; in SDL_memcmp()399 if (*s1p != *s2p) { in SDL_memcmp()400 return (*s1p - *s2p); in SDL_memcmp()403 ++s2p; in SDL_memcmp()