jasonbcox / rocket

ROCKET Engine
Other
1 stars 0 forks source link

Write a Wrapper to Handle GLFW Window and GLEW Initialization #32

Open jasonbcox opened 10 years ago

jasonbcox commented 10 years ago

It would be nice to abstract away the GLFW window handler and GLEW init. Additionally, cleanup for both can be handled by wrapper classes tied to smart pointers. Create a single class called WindowContext that handles the creation of both of these and calls the init functions of both as necessary (only first instantiation). Make sure to look at Graphics/main.cpp and create wrapper functions for the GLFW processes in the main loop. GLFW doesn't need to be abstracted away in all of Rocket at this time, only at the main.cpp level.