Split the private block in a class for readability
Seeing what state gets incapsulated is helpful
This commit is contained in:
@@ -16,6 +16,13 @@ namespace Gloom
|
||||
{
|
||||
class Shader
|
||||
{
|
||||
private:
|
||||
|
||||
// Private member variables
|
||||
GLuint mProgram;
|
||||
GLint mStatus;
|
||||
GLint mLength;
|
||||
|
||||
public:
|
||||
Shader() {
|
||||
mProgram = glCreateProgram();
|
||||
@@ -144,10 +151,6 @@ namespace Gloom
|
||||
Shader(Shader const &) = delete;
|
||||
Shader & operator =(Shader const &) = delete;
|
||||
|
||||
// Private member variables
|
||||
GLuint mProgram;
|
||||
GLint mStatus;
|
||||
GLint mLength;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user