OpenGLView separating functions [Solved]

Can I have methods/functions like:

squareTextureCoordBuffer = GL.createBuffer();
GL.bindBuffer(GL.ARRAY_BUFFER, squareTextureCoordBuffer);
GL.bufferData(GL.ARRAY_BUFFER, new Float32Array(cast textureCoords), GL.STATIC_DRAW);

in separate classes like a Quad.hx class and call the method or does the every gl function have to be in the main class.


You can put these calls in a seperate class.