#NEWLINE# def _show_block( self , position , block ) : #NEWLINE# #INDENT# 'Private implementation of the `show_block()` method.\n\n        Parameters\n        ----------\n        position : tuple of len 3\n            The (x, y, z) position of the block to show.\n        texture : list of len 3\n            The coordinates of the texture squares. Use `tex_coords()` to\n            generate.\n        ' #NEWLINE# ( x , y , z ) = position #NEWLINE# vertex_data = cube_vertices ( x , y , z , 0.5 ) #NEWLINE# shade_data = cube_shade ( 1 , 1 , 1 , 1 ) #NEWLINE# texture_data = block . texture #NEWLINE# if ( block . identifier not in self . texture_group ) : #NEWLINE# #INDENT# self . texture_group [ block . identifier ] = TextureGroup ( image . load ( block . texture_path ) . get_texture ( ) ) #NEWLINE# #UNINDENT# self . _shown [ position ] = self . batch . add ( 24 , GL_QUADS , self . texture_group [ block . identifier ] , ( 'v3f/static' , vertex_data ) , ( 'c3f/static' , shade_data ) , ( 't2f/static' , texture_data ) )