Internals: Other
-
float TS_NDCX(float x)
get normalized device coordinates along the x and y axes
- Parameters
x – x coordinate
- Returns
normalized y coordinate
-
float TS_NDCY(float y)
get normalized device coordinates along the x and y axes
- Parameters
y – y coordinate
- Returns
normalized x coordinate
-
std::array<float, 4> TS_NDCRect(float x, float y, float w, float h)
normalize rectangle
- Parameters
x – x-coordinate of the top left corner
y – y-coordinate of the top left corner
w – size in x-dimension
h – size in y-dimension
- Returns
rectangle as 4-array of floats
-
float TS_NTCU(int x, int w)
normalize texture coordinates along the u axis
- Parameters
x – x-coordinate
w – width
- Returns
normalized y-coordinate
-
float TS_NTCV(int y, int h)
normalize texture coordinates along the v axis
- Parameters
y – y-coordinate
h – height
- Returns
normalized x-coordinate
-
std::array<float, 4> TS_NTCRect(int x, int y, int w, int h, int w2, int h2)
normalize texture coordinate rectangle
- Parameters
x – x-coordinate of top left corner
y – y-coordinate of top left corner
w – width
h – height
w2 – new width
h2 – new height
- Returns
rect as 4-array
-
void TS_Add4Indices()
add the next 4 indices to the index buffer, followed by a primitive restart (0xffffffff)