libretro.api.video.render

Hardware rendering interface types.

Corresponds to retro_hw_render_interface and the rotation constants in libretro.h.

Classes

HardwareRenderInterfaceType

Type of hardware rendering interface.

Rotation

Screen rotation angle.

retro_hw_render_interface

Corresponds to retro_hw_render_interface in libretro.h.

class HardwareRenderInterfaceType[source]

Bases: IntEnum

Type of hardware rendering interface.

Corresponds to retro_hw_render_interface_type in libretro.h.

VULKAN = 0
D3D9 = 1
D3D10 = 2
D3D11 = 3
D3D12 = 4
GSKIT_PS2 = 5
__new__(value)
classmethod value in self

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

classmethod self[name]

Return the member matching name.

__init__()
classmethod iter(self)

Return members in definition order.

classmethod len(self)

Return the number of members (no aliases)

class retro_hw_render_interface[source]

Bases: Structure

Corresponds to retro_hw_render_interface in libretro.h.

Base type for hardware-specific render interfaces.

>>> from libretro.api.video import retro_hw_render_interface
>>> iface = retro_hw_render_interface()
>>> iface.interface_version
0
interface_type

Rendering API this interface is for.

interface_version

Version of this rendering interface.

__init__(*args, **kwargs)
classmethod __new__(*args, **kwargs)
retro_hw_render_interface_type

alias of c_int

class Rotation[source]

Bases: IntEnum

Screen rotation angle.

>>> from libretro.api.video import Rotation
>>> Rotation.NONE
<Rotation.NONE: 0>
NONE = 0
NINETY = 1
ONE_EIGHTY = 2
TWO_SEVENTY = 3
__new__(value)
classmethod value in self

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

classmethod self[name]

Return the member matching name.

__init__()
classmethod iter(self)

Return members in definition order.

classmethod len(self)

Return the number of members (no aliases)