beatmup.ShaderApplicator

class beatmup.ShaderApplicator

A task applying an image shader to bitmaps

__init__(self: beatmup.ShaderApplicator) None

Methods

__init__(self)

add_sampler(self, bitmap[, uniform_name])

Connects a bitmap to a shader uniform variable.

clear_samplers(self)

Clears all connections of bitmaps to samplers

remove_sampler(self, uniform_name)

Removes a sampler with a uniform variable name.

Attributes

output_bitmap

Output bitmap

shader

Shader to apply to the bitmap(s)