//in linux
#include <GL/gl.h>
#include <GL/glu.h>
#include<windows.h>
class OpenGLGraphicsContext : public IGraphicsContext
{
public:
OpenGLGraphicsContext(const Size& size,HDC hdc);
virtual ~OpenGLGraphicsContext();
// path primitive
…
…
}
here “HDC” is unresolved if i add windows.h than it shows error in _mingw.h what shoud i have to do?
Such things tend to happen when you try to use Win32-specific code on Linux.
Look here.
if u know how to write simple onengl code without X windows then please post here.
And any one know how to initialize opengl function??
Define «without».
What GUI toolkit do you want to use? Is it GTK+ or Qt?
Is there any graphic environment at all? If no, then use OpenGL ES over DRI.