seika.assets

Texture

Engine representation of a texture. All properties are read only.

Properties

file_path : str

Texture's relative file path.

wrap_s : str

String representation of texture's GL_TEXTURE_WRAP_S.

wrap_t : str

String representation of texture's GL_TEXTURE_WRAP_T.

filter_min : str

String representation of texture's GL_TEXTURE_MIN_FILTER.

filter_max : str

String representation of texture's GL_TEXTURE_MAG_FILTER.

width : int

Returns texture's width.

height : int

Returns texture's height.


Signals

None.


Methods

@staticmethod
get(file_path: str) -> seika.assets.Texture:

Get texture from relative file path.

get_pixel_color(position: seika.math.Vector2) -> seika.color.Color:

Get pixel color from a texture at the location of the passed in position.


Font

Engine representation of a font. All properties are read only.

Properties

uid : str

Unique id of font.

file_path : str

Relative file path of font.

size : int

Size of the font.


Signals

None.


Methods

create(uid: str, file_path: str, size: int) -> seika.assets.Font:

Creates a new font.

get(uid: str) -> seika.assets.Font:

Returns an already existing font.