Sha256: b639d824ea4cf3ae70f17a2eee4cfad139bef2ac8172f6497752346e48bbe9a8

Contents?: true

Size: 564 Bytes

Versions: 4

Compression:

Stored size: 564 Bytes

Contents

// -*- c++ -*-
#pragma once
#ifndef __REFLEX_SRC_WIN32_OPENGL_H__
#define __REFLEX_SRC_WIN32_OPENGL_H__


#include <GL/glew.h>
#include <xot/windows.h>


namespace Reflex
{


	class OpenGLContext
	{

		public:

			OpenGLContext ();

			~OpenGLContext ();

			void init (HWND hwnd);

			void fin ();

			void make_current ();

			void swap_buffers ();

			bool is_active () const;

			operator bool () const;

			bool operator ! () const;

		private:

			HWND hwnd = NULL;

			HDC hdc   = NULL;

			HGLRC hrc = NULL;

	};// OpenGLContext


}// Reflex


#endif//EOH

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
reflexion-0.3.3 src/win32/opengl.h
reflexion-0.3.2 src/win32/opengl.h
reflexion-0.3.1 src/win32/opengl.h
reflexion-0.3 src/win32/opengl.h