CubeMap

Inherits: Resource < Reference < Object

Category: Core

Brief Description

A CubeMap is a 6 sided 3D texture.

Member Functions

int get_flags ( ) const
int get_height ( ) const
Image get_side ( int side ) const
int get_width ( ) const
void set_flags ( int flags )
void set_side ( int side, Image image )

Member Variables

  • float lossy_storage_quality - The lossy storage quality of the CubeMap if the storage mode is set to STORAGE_COMPRESS_LOSSY.
  • int storage_mode - The CubeMap’s storage mode. See STORAGE\_\* constants.

Numeric Constants

  • STORAGE_RAW = 0
  • STORAGE_COMPRESS_LOSSY = 1
  • STORAGE_COMPRESS_LOSSLESS = 2
  • SIDE_LEFT = 0
  • SIDE_RIGHT = 1
  • SIDE_BOTTOM = 2
  • SIDE_TOP = 3
  • SIDE_FRONT = 4
  • SIDE_BACK = 5
  • FLAG_MIPMAPS = 1
  • FLAG_REPEAT = 2
  • FLAG_FILTER = 4
  • FLAGS_DEFAULT = 7

Description

A CubeMap is a 6 sided 3D texture typically used for faking reflections. It can be used to make an object look as if it’s reflecting its surroundings. This usually delivers much better performance than other reflection methods.

Member Function Description

  • int get_flags ( ) const
  • int get_height ( ) const

Returns the CubeMap’s height.

Returns an Image for a side of the CubeMap using one of the SIDE\_\* constants or an integer 0-5.

  • int get_width ( ) const

Returns the CubeMap’s width.

  • void set_flags ( int flags )
  • void set_side ( int side, Image image )

Sets an Image for a side of the CubeMap using one of the SIDE\_\* constants or an integer 0-5.