]> git.tdb.fi Git - libs/gl.git/commitdiff
Use friend declarations to access OpenGL IDs of objects
authorMikko Rasa <tdb@tdb.fi>
Sat, 18 Sep 2021 12:57:24 +0000 (15:57 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 18 Sep 2021 13:20:19 +0000 (16:20 +0300)
This seems neater than exposing get_id() methods to the public.

Texture2D::AsyncLoader still uses get_id() on the PBO for now, since
it's not reasonably possible to name that class as a friend.


No differences found