Draws the following triangles with texture, scaled by their colours.
- texture: the texture to draw.
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.
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.