]> git.tdb.fi Git - libs/gl.git/commit
Expand the PixelFormat conversion API
authorMikko Rasa <tdb@tdb.fi>
Thu, 3 Nov 2016 10:50:35 +0000 (12:50 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 3 Nov 2016 11:00:43 +0000 (13:00 +0200)
commit8f373af3e375799dd739fe932bc697e8595756b4
treef2831b8f2aa65c98c1e0a44885bf19de57628f62
parentfcaae0500d5c6fa842babe37450c435e4178547a
Expand the PixelFormat conversion API

Get_sized_pixelformat now takes an explicit size parameter.  The decision
between 16-bit and 32-bit depth component formats has been moved to
Texture::set_internal_format.

Get_unsized_pixelformat was added as an intermediate step for
get_base_pixelformat.  It preserves sRGB information.
source/pixelformat.cpp
source/pixelformat.h
source/texture.cpp