var searchIndex = {}; searchIndex["gfx_voxel"] = {"doc":"A voxel rendering library on top of Gfx.","items":[[0,"cube","gfx_voxel","Helper methods and structures for working with cubes.",null,null],[3,"ParseError","gfx_voxel::cube","The error parsing face from string.",null,null],[3,"FaceIterator","","Iterates through each face on a cube.",null,null],[4,"Face","","A value representing face direction.",null,null],[13,"Down","","Facing down.",0,null],[13,"Up","","Facing up.",0,null],[13,"North","","Facing north.",0,null],[13,"South","","Facing south.",0,null],[13,"West","","Facing west.",0,null],[13,"East","","Facing east.",0,null],[6,"Vector3","","A 3D vector.",null,null],[17,"QUADS","","Cube faces (clockwise).",null,null],[17,"VERTICES","","Cube vertices.",null,null],[11,"fmt","","",0,null],[11,"cmp","","",0,null],[11,"partial_cmp","","",0,null],[11,"eq","","",0,null],[11,"clone","","",0,null],[11,"vertices","","Computes vertices of the face.",0,null],[11,"direction","","Gets the direction of face.",0,null],[11,"from_direction","","Gets the face in a specific direction.",0,null],[11,"from_usize","","Convert number to face.",0,{"inputs":[{"name":"usize"}],"output":{"name":"option"}}],[11,"fmt","","",1,null],[11,"eq","","",1,null],[11,"clone","","",1,null],[11,"from_str","","",0,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"clone","","",2,null],[11,"new","","Creates a new face iterator.",2,{"inputs":[],"output":{"name":"self"}}],[11,"next","","",2,null],[0,"texture","gfx_voxel","Create textures and build texture atlas.",null,null],[3,"Texture","gfx_voxel::texture","Represents a texture.",null,null],[12,"surface","","Pixel storage for texture.",3,null],[12,"view","","View used by shader.",3,null],[8,"ImageSize","","Implemented by all images to be used with generic algorithms.",null,null],[10,"get_size","","Get the image size.",4,null],[11,"get_width","","Gets the image width.",4,null],[11,"get_height","","Gets the image height.",4,null],[3,"TextureSettings","","Texture creation parameters.",null,null],[3,"ColorMap","","A 256x256 image that stores colors.",null,null],[3,"AtlasBuilder","","Builds an atlas of textures.",null,null],[4,"ColorMapError","","An enumeration of ColorMap errors.",null,null],[13,"Img","","The image opening error.",5,null],[13,"Size","","The image size error.",5,null],[11,"fmt","","",5,null],[11,"from","","",5,{"inputs":[{"name":"imageerror"}],"output":{"name":"self"}}],[11,"from_path","","Creates a new `ColorMap` from path.",6,{"inputs":[{"name":"p"}],"output":{"name":"result"}}],[11,"get","","Gets RGB color from the color map.",6,null],[11,"new","","Creates a new `AtlasBuilder`.",7,{"inputs":[{"name":"p"},{"name":"u32"},{"name":"u32"}],"output":{"name":"self"}}],[11,"load","","Loads a file into the texture atlas.\nChecks if the file is loaded and returns position within the atlas.\nThe name should be specified without file extension.\nPNG is the only supported format.",7,null],[11,"min_alpha","","Finds the minimum alpha value in a given sub texture of the image.",7,null],[11,"complete","","Returns the complete texture atlas as a texture.",7,null],[11,"empty","","Returns empty texture.",3,{"inputs":[{"name":"f"}],"output":{"name":"result"}}],[11,"from_path","","Creates a texture from path.",3,{"inputs":[{"name":"f"},{"name":"p"},{"name":"flip"},{"name":"texturesettings"}],"output":{"name":"result"}}],[11,"from_image","","Creates a texture from image.",3,{"inputs":[{"name":"f"},{"name":"imagebuffer"},{"name":"texturesettings"}],"output":{"name":"result"}}],[11,"from_memory_alpha","","Creates texture from memory alpha.",3,null],[11,"update","","Updates the texture with an image.",3,null],[11,"create","","",3,null],[11,"update","","",3,null],[11,"get_size","","",3,null],[11,"new","","Create default settings.",8,{"inputs":[],"output":{"name":"texturesettings"}}],[11,"get_convert_gamma","","Gets whether to convert gamma, treated as sRGB color space.",8,null],[11,"set_convert_gamma","","Sets convert gamma.",8,null],[11,"convert_gamma","","Sets convert gamma.",8,null],[11,"get_compress","","Gets wheter compress on the GPU.",8,null],[11,"set_compress","","Sets compress.",8,null],[11,"compress","","Sets compress.",8,null],[11,"get_generate_mipmap","","Gets generate mipmap.",8,null],[11,"set_generate_mipmap","","Sets generate mipmap.",8,null],[11,"generate_mipmap","","Sets generate mipmap.",8,null],[11,"get_min","","Gets minify filter.",8,null],[11,"set_min","","Sets minify filter.",8,null],[11,"min","","Sets minify filter.",8,null],[11,"get_mag","","Gets magnify filter",8,null],[11,"set_mag","","Sets magnify filter",8,null],[11,"mag","","Sets magnify filter",8,null],[11,"get_mipmap","","Gets minify mipmap filter",8,null],[11,"set_mipmap","","Sets magnify mipmap filter, and sets generate_mipmap to true.",8,null],[11,"mipmap","","Sets magnify mipmap filter, and sets generate_mipmap to true",8,null],[11,"get_filter","","Returns the min and mag filter",8,null],[11,"set_filter","","Sets the min and mag filter",8,null],[11,"filter","","Sets the min and mag filter",8,null]],"paths":[[4,"Face"],[3,"ParseError"],[3,"FaceIterator"],[3,"Texture"],[8,"ImageSize"],[4,"ColorMapError"],[3,"ColorMap"],[3,"AtlasBuilder"],[3,"TextureSettings"]]}; initSearch(searchIndex);