Cube Demo/src/stb_image.h
// initialize a callback-based context

initialize a callback-based context
initialize a callback - based context
static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)
{
	s->io = *c;
	s->io_user_data = user;
	s->buflen = sizeof(s->buffer_start);
	s->read_from_callbacks = 1;
	s->img_buffer_original = s->buffer_start;
	stbi__refill_buffer(s);
	s->img_buffer_original_end = s->img_buffer_end;
}
static void stbi__start_callbacks ( stbi__context * s , stbi_io_callbacks * c , void * user ) { s -> io = * c ; s -> io_user_data = user ; s -> buflen = sizeof ( s -> buffer_start ) ; s -> read_from_callbacks = 1 ; s -> img_buffer_original = s -> buffer_start ; stbi__refill_buffer ( s ) ; s -> img_buffer_original_end = s -> img_buffer_end ; }
initialize a callback-based context
initialize a callback - based context