MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / create_texture

Method create_texture

canvas/src/context.rs:237–239  ·  view source on GitHub ↗

Creates a new texture that can be used with fill_texture of the specified width and height

(&mut self, texture_id: TextureId, width: u32, height: u32, format: TextureFormat)

Source from the content-addressed store, hash-verified

235
236 /// Creates a new texture that can be used with fill_texture of the specified width and height
237 fn create_texture(&mut self, texture_id: TextureId, width: u32, height: u32, format: TextureFormat) {
238 self.draw(Draw::Texture(texture_id, TextureOp::Create(width, height, format)));
239 }
240
241 /// Releases the memory allocated to a particular texture
242 fn free_texture(&mut self, texture_id: TextureId) {

Callers 5

load_textureMethod · 0.80
drawMethod · 0.80
show_mandelbrotFunction · 0.80
draw_mandelbrotFunction · 0.80
section_texturesFunction · 0.80

Implementers 3

font_line_layout.rscanvas/src/font_line_layout.rs
context.rscanvas/src/context.rs
canvas.rscanvas/src/canvas.rs

Calls 2

TextureClass · 0.85
drawMethod · 0.45

Tested by

no test coverage detected