VISU - PHP Game Framework

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

$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
see
https://registry.khronos.org/OpenGL-Refpages/gl4/html/glTexImage2D.xhtml

$isSRGB

Is SRGB This is a hint so that the texture is loaded as sRGB

public bool $isSRGB = false

$width

The textures width (This is only used when the texture is created from a buffer)

public int|null $width = null

        
On this page

Search results