model module

This module processes uniform attributes for the appropriate model

class model.AdvancedSkyBox(app, vao_name='advanced_skybox', tex_id='skybox', pos=(0, 0, 0), rot=(0, 0, 0), scale=(1, 1, 1))[source]

Bases: BaseModel

on_init()[source]
update()[source]

Override update(x) in a subclass

class model.BaseModel(app, vao_name, tex_id, pos=(0, 0, 0), rot=(0, 0, 0), scale=(1, 1, 1))[source]

Bases: object

get_model_matrix()[source]
render()[source]
update()[source]

Override update(x) in a subclass

class model.Cat(app, vao_name='cat', tex_id='cat', pos=(0, 0, 0), rot=(-90, 0, 0), scale=(1, 1, 1))[source]

Bases: ExtendedBaseModel

class model.Cube(app, vao_name='cube', tex_id=0, pos=(0, 0, 0), rot=(0, 0, 0), scale=(1, 1, 1))[source]

Bases: ExtendedBaseModel

class model.ExtendedBaseModel(app, vao_name, tex_id, pos, rot, scale)[source]

Bases: BaseModel

Subclass for an application’s main objects

on_init()[source]
render_shadow()[source]
update()[source]

Update dynamic uniform attributes

update_shadow()[source]
class model.MovingCube(*args, **kwargs)[source]

Bases: Cube

update()[source]

Update dynamic uniform attributes

class model.SkyBox(app, vao_name='skybox', tex_id='skybox', pos=(0, 0, 0), rot=(0, 0, 0), scale=(1, 1, 1))[source]

Bases: BaseModel

on_init()[source]
update()[source]

Override update(x) in a subclass