]> git.tdb.fi Git - libs/gl.git/commit
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)
commit2e09b4f72f06537431151fe8b2574e1aa886ad48
tree253e1f826cf48d9937e7f3356a0adb9d89b7b0c0
parentb6dbbbee0c7e6a3af10391f2d9f4bb9e007afb29
Use friend declarations to access OpenGL IDs of objects

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.
source/core/buffer.h
source/core/commands.cpp
source/core/framebuffer.cpp
source/core/framebuffer.h
source/core/pipelinestate.cpp
source/core/program.h
source/core/sampler.h
source/core/texture.h
source/core/vertexsetup.cpp
source/core/vertexsetup.h