Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdRoll/rustenstein
/ get_texture
Method
get_texture
src/cache.rs:188–190 ·
view source on GitHub ↗
(&self, index: usize)
Source
from the content-addressed store, hash-verified
186
}
187
188
pub fn get_texture(&self, index: usize) -> &Vec<u8> {
189
&self.textures[index]
190
}
191
192
pub fn get_sprite(&self, index: usize) -> &(CompShape, Vec<u8>) {
193
&self.sprites[index]
Callers
1
draw_world
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected