Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00031
00032 #pragma once
00033
00034 #include "api_gl.h"
00035 #include "../Core/System/sharedptr.h"
00036 #include "../Display/Render/graphic_context.h"
00037
00038 class CL_GraphicContext_GL_Impl;
00039
00043 class CL_API_GL CL_GraphicContext_GL : public CL_GraphicContext
00044 {
00046 public:
00047
00048 CL_GraphicContext_GL() {}
00049
00051 CL_GraphicContext_GL(CL_GraphicContext &gc);
00052
00053 ~CL_GraphicContext_GL();
00054
00056 public:
00058 bool is_null() const { return !impl; }
00059
00061 void throw_if_null() const;
00062
00067 void get_opengl_version(int &version_major, int &version_minor);
00068
00073 void get_opengl_shading_language_version(int &version_major, int &version_minor);
00074
00076 CL_String get_renderer_string();
00077
00079 CL_String get_vendor_string();
00080
00082 std::vector<CL_String> get_extensions();
00083
00085 public:
00089 void set_active();
00090
00092 private:
00093 CL_SharedPtr<CL_GraphicContext_GL_Impl> impl;
00094 };
00095