Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide default constructors and move constructors to source (*.cpp) files. #112

Open
Quaker762 opened this issue Sep 1, 2017 · 0 comments

Comments

@Quaker762
Copy link
Member

Quaker762 commented Sep 1, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
TODO
  
To do
Development

No branches or pull requests

2 participants