No, you can have OpenGL code in a class, but you can't redefine the same functions.

Can you post your code?