mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-15 23:48:31 +00:00
Rename set_texture_id to set_font_texture_id
This commit is contained in:
parent
bdbdfe58e3
commit
a2b69395d1
@ -175,7 +175,7 @@ impl<R: Resources> Renderer<R> {
|
||||
factory.create_sampler(SamplerInfo::new(FilterMethod::Trilinear, WrapMode::Clamp));
|
||||
let pair = (texture, sampler);
|
||||
let mut textures = Textures::new();
|
||||
imgui.set_texture_id(textures.insert(pair.clone()));
|
||||
imgui.set_font_texture_id(textures.insert(pair.clone()));
|
||||
|
||||
let slice = Slice {
|
||||
start: 0,
|
||||
|
||||
@ -241,7 +241,7 @@ impl DeviceObjects {
|
||||
Texture2d::new(ctx, data)
|
||||
})?;
|
||||
let mut textures = Textures::new();
|
||||
im_gui.set_texture_id(textures.insert(texture));
|
||||
im_gui.set_font_texture_id(textures.insert(texture));
|
||||
|
||||
Ok(DeviceObjects {
|
||||
vertex_buffer: vertex_buffer,
|
||||
|
||||
@ -172,7 +172,7 @@ impl ImGui {
|
||||
})
|
||||
}
|
||||
}
|
||||
pub fn set_texture_id(&mut self, value: ImTexture) {
|
||||
pub fn set_font_texture_id(&mut self, value: ImTexture) {
|
||||
self.fonts().set_texture_id(value.id());
|
||||
}
|
||||
pub fn set_ini_filename(&mut self, value: Option<ImString>) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user