Simp module

set_shader_for_images

procedureSource

Draws the following triangles with texture, scaled by their colours.

Example
texture: Texture;
texture_load_from_file(*texture, "sprite.png");

set_shader_for_images(*texture);
immediate_quad(.{10, 10}, .{138, 10}, .{138, 138}, .{10, 138});

This one is only checked to compile, not run.

set_shader_for_images :: (texture: *Texture)

Draws the following triangles with texture, scaled by their colours.

Parameters

texture: *Texture
the texture to draw.
Example
texture: Texture;
texture_load_from_file(*texture, "sprite.png");

set_shader_for_images(*texture);
immediate_quad(.{10, 10}, .{138, 10}, .{138, 138}, .{10, 138});

This one is only checked to compile, not run.

See also