コード例 #1
0
bool Render2DDeviceImpl::loadTexture(FileStream &fs, TexturePtr &texture, vector2i &image_size)
{
	u32 width, height;
	texture = createTextureFromPNG(this , (DataStream*)&fs, width, height);
	
	image_size.set(width, height);

	if (!texture.ptr())
	{
		return false;
	}

	return true;
}