Graphics

Namespace: graphics Language: Lua Type: Defold Lua File: script_graphics.cpp Source: engine/script/src/script_graphics.cpp

Graphics functions and constants.

API

graphics.adapter_info

Type: STRUCT Graphics adapter information

Members

graphics.adapter_limits

Type: STRUCT Graphics context limits

Members

graphics.BLEND_EQUATION

Type: ENUM Blend equations

Members

graphics.BLEND_FACTOR

Type: ENUM Blend factors

Members

graphics.BUFFER_TYPE

Type: ENUM Buffer types

Members

graphics.COMPARE_FUNC

Type: ENUM Comparison functions

Members

graphics.COMPRESSION_TYPE

Type: ENUM Texture compression types

Members

graphics.CONTEXT_FEATURE

Type: ENUM Optional graphics-context features

Members

graphics.COORDINATE_SPACE

Type: ENUM Vertex attribute coordinate spaces

Members

graphics.DATA_TYPE

Type: ENUM Vertex attribute data types

Members

graphics.FACE_TYPE

Type: ENUM Face types

Members

graphics.get_adapter_info

Type: FUNCTION Returns a table describing the active graphics context: the adapter family, its hardware limits, the list of driver-reported extensions, and the set of optional context features supported by the backend.

Returns

graphics.get_engine_adapters

Type: FUNCTION get the list of graphics adapters that have been registered with the engine

Returns

graphics.SEMANTIC_TYPE

Type: ENUM Vertex attribute semantic types

Members

graphics.STATE

Type: ENUM Graphics states

Members

graphics.STENCIL_OP

Type: ENUM Stencil operations

Members

graphics.TEXTURE_FILTER

Type: ENUM Texture filters

Members

graphics.TEXTURE_FORMAT

Type: ENUM Texture formats

Members

graphics.TEXTURE_TYPE

Type: ENUM Texture types

Members

graphics.TEXTURE_USAGE_FLAG

Type: ENUM Texture usage flags

Members

graphics.TEXTURE_WRAP

Type: ENUM Texture wrapping modes

Members