var searchIndex = {}; searchIndex["gfx_voxel"] = {"doc":"A voxel rendering library on top of Gfx.","items":[[8,"Array","gfx_voxel::array","Implemented by arrays of different lengths.",null,null],[10,"from_fn","","Creates array from a function of each component index.",0,{"inputs":[{"name":"f"}],"output":{"name":"self"}}],[11,"from_iter","","Creates an array from an iterator.\nWill fail if the iterator does not contain enough elements.",0,{"inputs":[{"name":"i"}],"output":{"name":"self"}}],[8,"Array2","","An array with 2 components.",null,null],[10,"map","","Converts array into another type,\nby executing a function for each component.",1,null],[10,"x","","Returns the `x` component.",1,null],[10,"y","","Returns the `y` component.",1,null],[8,"Array3","","An array with 3 components.",null,null],[10,"map","","Converts array into another type,\nby executing a function for each component.",2,null],[10,"x","","Returns the `x` component.",2,null],[10,"y","","Returns the `y` component.",2,null],[10,"z","","Returns the `z` component.",2,null],[8,"Array4","","An array with 4 components.",null,null],[10,"map","","Converts array into another type,\nby executing a function for each component.",3,null],[10,"x","","Returns the `x` component.",3,null],[10,"y","","Returns the `y` component.",3,null],[10,"z","","Returns the `z` component.",3,null],[10,"w","","Returns the `w` component.",3,null],[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.",4,null],[13,"Up","","Facing up.",4,null],[13,"North","","Facing north.",4,null],[13,"South","","Facing south.",4,null],[13,"West","","Facing west.",4,null],[13,"East","","Facing east.",4,null],[6,"Vector3","","A 3D vector.",null,null],[17,"QUADS","","Cube faces (clockwise).",null,null],[17,"VERTICES","","Cube vertices.",null,null],[11,"fmt","","",4,null],[11,"cmp","","",4,null],[11,"partial_cmp","","",4,null],[11,"eq","","",4,null],[11,"clone","","",4,null],[11,"vertices","","Computes vertices of the face.",4,null],[11,"direction","","Gets the direction of face.",4,null],[11,"from_direction","","Gets the face in a specific direction.",4,null],[11,"from_usize","","Convert number to face.",4,{"inputs":[{"name":"usize"}],"output":{"name":"option"}}],[11,"fmt","","",5,null],[11,"eq","","",5,null],[11,"clone","","",5,null],[11,"from_str","","",4,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"clone","","",6,null],[11,"new","","Creates a new face iterator.",6,{"inputs":[],"output":{"name":"self"}}],[11,"next","","",6,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.",7,null],[12,"view","","View used by shader.",7,null],[8,"ImageSize","","Implemented by all images to be used with generic algorithms.",null,null],[10,"get_size","","Get the image size.",8,null],[11,"get_width","","Gets the image width.",8,null],[11,"get_height","","Gets the image height.",8,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.",9,null],[13,"Size","","The image size error.",9,null],[11,"fmt","","",9,null],[11,"from","","",9,{"inputs":[{"name":"imageerror"}],"output":{"name":"self"}}],[11,"from_path","","Creates a new `ColorMap` from path.",10,{"inputs":[{"name":"p"}],"output":{"name":"result"}}],[11,"get","","Gets RGB color from the color map.",10,null],[11,"new","","Creates a new `AtlasBuilder`.",11,{"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.",11,null],[11,"min_alpha","","Finds the minimum alpha value in a given sub texture of the image.",11,null],[11,"complete","","Returns the complete texture atlas as a texture.",11,null],[11,"empty","","Returns empty texture.",7,{"inputs":[{"name":"f"}],"output":{"name":"result"}}],[11,"from_path","","Creates a texture from path.",7,{"inputs":[{"name":"f"},{"name":"p"},{"name":"flip"},{"name":"texturesettings"}],"output":{"name":"result"}}],[11,"from_image","","Creates a texture from image.",7,{"inputs":[{"name":"f"},{"name":"imagebuffer"},{"name":"texturesettings"}],"output":{"name":"result"}}],[11,"from_memory_alpha","","Creates texture from memory alpha.",7,null],[11,"update","","Updates the texture with an image.",7,null],[11,"create","","",7,null],[11,"update","","",7,null],[11,"get_size","","",7,null],[11,"new","","Create default settings.",12,{"inputs":[],"output":{"name":"texturesettings"}}],[11,"get_convert_gamma","","Gets whether to convert gamma, treated as sRGB color space.",12,null],[11,"set_convert_gamma","","Sets convert gamma.",12,null],[11,"convert_gamma","","Sets convert gamma.",12,null],[11,"get_compress","","Gets wheter compress on the GPU.",12,null],[11,"set_compress","","Sets compress.",12,null],[11,"compress","","Sets compress.",12,null],[11,"get_generate_mipmap","","Gets generate mipmap.",12,null],[11,"set_generate_mipmap","","Sets generate mipmap.",12,null],[11,"generate_mipmap","","Sets generate mipmap.",12,null],[11,"get_min","","Gets minify filter.",12,null],[11,"set_min","","Sets minify filter.",12,null],[11,"min","","Sets minify filter.",12,null],[11,"get_mag","","Gets magnify filter",12,null],[11,"set_mag","","Sets magnify filter",12,null],[11,"mag","","Sets magnify filter",12,null],[11,"get_mipmap","","Gets minify mipmap filter",12,null],[11,"set_mipmap","","Sets magnify mipmap filter, and sets generate_mipmap to true.",12,null],[11,"mipmap","","Sets magnify mipmap filter, and sets generate_mipmap to true",12,null],[11,"get_filter","","Returns the min and mag filter",12,null],[11,"set_filter","","Sets the min and mag filter",12,null],[11,"filter","","Sets the min and mag filter",12,null]],"paths":[[8,"Array"],[8,"Array2"],[8,"Array3"],[8,"Array4"],[4,"Face"],[3,"ParseError"],[3,"FaceIterator"],[3,"Texture"],[8,"ImageSize"],[4,"ColorMapError"],[3,"ColorMap"],[3,"AtlasBuilder"],[3,"TextureSettings"]]}; initSearch(searchIndex);