You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because some OGL objects need a context before they are initialised, I think it's best if we provide a default constructor so functions such as Load( ) (for example, a shader program) can be called later instead of being automatically called by the constructor.
This also makes a bit more sense, as the we can specify something like
sh3::gl::program test;test.Load("program");
instead of having to specify the program name when the object is declared, so we can defer the loading to when we actually need it (like loading an msbmp later, not during object construction).
This will mainly affect sh3::gl::program, sh3::graphics::texture, sh3::graphics::msbmp etc.
The text was updated successfully, but these errors were encountered:
Because some OGL objects need a context before they are initialised, I think it's best if we provide a default constructor so functions such as
Load( )
(for example, a shader program) can be called later instead of being automatically called by the constructor.This also makes a bit more sense, as the we can specify something like
sh3::gl::program test;test.Load("program");
instead of having to specify the program name when the object is declared, so we can defer the loading to when we actually need it (like loading an
msbmp
later, not during object construction).This will mainly affect
sh3::gl::program, sh3::graphics::texture, sh3::graphics::msbmp
etc.The text was updated successfully, but these errors were encountered: