TextureOptions
in package
Table of Contents
Properties
- $dataFormat : int|null
- Texture format This is the format of the texture data
- $dataType : int|null
- Texture type This is the type of the texture data
- $generateMipmaps : bool
- Should generate mipmaps This is a hint so that the texture mipmaps are generated on the fly when the texture is loaded
- $height : int|null
- The textures height (This is only used when the texture is created from a buffer)
- $internalFormat : int|null
- Internal texture format This is the format the texture is stored in on the GPU
- $isSRGB : bool
- Is SRGB This is a hint so that the texture is loaded as sRGB
- $magFilter : int
- The textures magnification filter
- $minFilter : int
- The textures minification filter
- $width : int|null
- The textures width (This is only used when the texture is created from a buffer)
- $wrapR : int
- The textures wrap mode in the r direction
- $wrapS : int
- The textures wrap mode in the s direction
- $wrapT : int
- The textures wrap mode in the t direction
Properties
$dataFormat
Texture format This is the format of the texture data
public
int|null
$dataFormat
= null
Possible values:
- GL_RGB
- GL_RGBA
- GL_RED
- GL_RG
- GL_BGRA
- GL_BGR_INTEGER
- GL_DEPTH_COMPONENT
- GL_DEPTH_STENCIL
- etc ...
Tags
$dataType
Texture type This is the type of the texture data
public
int|null
$dataType
= null
Possible values:
- GL_BYTE
- GL_UNSIGNED_BYTE
- GL_UNSIGNED_SHORT
- GL_UNSIGNED_INT
- GL_FLOAT
- etc ...
Tags
$generateMipmaps
Should generate mipmaps This is a hint so that the texture mipmaps are generated on the fly when the texture is loaded
public
bool
$generateMipmaps
= true
$height
The textures height (This is only used when the texture is created from a buffer)
public
int|null
$height
= null
$internalFormat
Internal texture format This is the format the texture is stored in on the GPU
public
int|null
$internalFormat
= null
Possible values (Base):
- GL_RGB
- GL_RGBA
- GL_RED
- GL_RG
- GL_DEPTH_COMPONENT
- GL_DEPTH_STENCIL
Possible values (SRGB):
- GL_SRGB
- GL_SRGB_ALPHA
- GL_SRGB8
- etc ...
Possible values (Sized):
- GL_R8
- GL_R16
- GL_R16F
- GL_R32F
- GL_RG8
- GL_RG16
- etc ...
Tags
$isSRGB
Is SRGB This is a hint so that the texture is loaded as sRGB
public
bool
$isSRGB
= false
$magFilter
The textures magnification filter
public
int
$magFilter
= GL_LINEAR
Possible values:
- GL_NEAREST
- GL_LINEAR
Tags
$minFilter
The textures minification filter
public
int
$minFilter
= GL_NEAREST_MIPMAP_LINEAR
Possible values:
- GL_NEAREST
- GL_LINEAR
- GL_NEAREST_MIPMAP_NEAREST
- GL_LINEAR_MIPMAP_NEAREST
- GL_NEAREST_MIPMAP_LINEAR
- GL_LINEAR_MIPMAP_LINEAR
Tags
$width
The textures width (This is only used when the texture is created from a buffer)
public
int|null
$width
= null
$wrapR
The textures wrap mode in the r direction
public
int
$wrapR
= GL_REPEAT
Possible values:
- GL_REPEAT
- GL_MIRRORED_REPEAT
- GL_CLAMP_TO_EDGE
- GL_CLAMP_TO_BORDER
Tags
$wrapS
The textures wrap mode in the s direction
public
int
$wrapS
= GL_REPEAT
Possible values:
- GL_REPEAT
- GL_MIRRORED_REPEAT
- GL_CLAMP_TO_EDGE
- GL_CLAMP_TO_BORDER
Tags
$wrapT
The textures wrap mode in the t direction
public
int
$wrapT
= GL_REPEAT
Possible values:
- GL_REPEAT
- GL_MIRRORED_REPEAT
- GL_CLAMP_TO_EDGE
- GL_CLAMP_TO_BORDER