Rectangular region of a texture, normalised by the textures dimensions.
More...
#include <primitive.h>
Rectangular region of a texture, normalised by the textures dimensions.
- Parameters
-
tx | Lower left corner of region, along width, in [0, 1]. |
ty | Lower left corner of region, along height, in [0, 1]. |
lx | Length of region along width, in [0, 1]. |
ly | Length of region along height, in [0, 1]. |
◆ NormalisedTextureRegion() [1/2]
jGL::NormalisedTextureRegion::NormalisedTextureRegion |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
w, |
|
|
float |
h |
|
) |
| |
|
inline |
◆ NormalisedTextureRegion() [2/2]
jGL::NormalisedTextureRegion::NormalisedTextureRegion |
( |
| ) |
|
|
inline |
◆ lx
float jGL::NormalisedTextureRegion::lx |
◆ ly
float jGL::NormalisedTextureRegion::ly |
◆ tx
float jGL::NormalisedTextureRegion::tx |
◆ ty
float jGL::NormalisedTextureRegion::ty |
The documentation for this struct was generated from the following file: