mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0032145: Coding Rules - move GL functions loading to OpenGl_GlFunctions.cxx
This commit is contained in:
parent
a13df0fee0
commit
e44b849de9
@ -79,6 +79,7 @@ OpenGl_DepthPeeling.cxx
|
|||||||
OpenGl_DepthPeeling.hxx
|
OpenGl_DepthPeeling.hxx
|
||||||
OpenGl_ExtGS.hxx
|
OpenGl_ExtGS.hxx
|
||||||
OpenGl_GLESExtensions.hxx
|
OpenGl_GLESExtensions.hxx
|
||||||
|
OpenGl_GlFunctions.cxx
|
||||||
OpenGl_GlFunctions.hxx
|
OpenGl_GlFunctions.hxx
|
||||||
OpenGl_Flipper.cxx
|
OpenGl_Flipper.cxx
|
||||||
OpenGl_Flipper.hxx
|
OpenGl_Flipper.hxx
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -211,6 +211,7 @@ class OpenGl_Context : public Standard_Transient
|
|||||||
{
|
{
|
||||||
DEFINE_STANDARD_RTTIEXT(OpenGl_Context, Standard_Transient)
|
DEFINE_STANDARD_RTTIEXT(OpenGl_Context, Standard_Transient)
|
||||||
friend class OpenGl_Window;
|
friend class OpenGl_Window;
|
||||||
|
friend struct OpenGl_GlFunctions;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef NCollection_Shared< NCollection_DataMap<TCollection_AsciiString, Handle(OpenGl_Resource)> > OpenGl_ResourcesMap;
|
typedef NCollection_Shared< NCollection_DataMap<TCollection_AsciiString, Handle(OpenGl_Resource)> > OpenGl_ResourcesMap;
|
||||||
|
1711
src/OpenGl/OpenGl_GlFunctions.cxx
Normal file
1711
src/OpenGl/OpenGl_GlFunctions.cxx
Normal file
File diff suppressed because it is too large
Load Diff
@ -96,6 +96,8 @@
|
|||||||
#include <glext.h>
|
#include <glext.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
class OpenGl_Context;
|
||||||
|
|
||||||
//! Mega structure defines the complete list of OpenGL functions.
|
//! Mega structure defines the complete list of OpenGL functions.
|
||||||
struct OpenGl_GlFunctions
|
struct OpenGl_GlFunctions
|
||||||
{
|
{
|
||||||
@ -104,6 +106,10 @@ struct OpenGl_GlFunctions
|
|||||||
//! @return TRUE on error
|
//! @return TRUE on error
|
||||||
Standard_EXPORT bool debugPrintError (const char* theName) const;
|
Standard_EXPORT bool debugPrintError (const char* theName) const;
|
||||||
|
|
||||||
|
//! Load functions.
|
||||||
|
Standard_EXPORT void load (OpenGl_Context& theCtx,
|
||||||
|
Standard_Boolean theIsCoreProfile);
|
||||||
|
|
||||||
// This debug macros can be enabled to help debugging OpenGL implementations
|
// This debug macros can be enabled to help debugging OpenGL implementations
|
||||||
// without solid / working debugging capabilities.
|
// without solid / working debugging capabilities.
|
||||||
//#define OpenGl_TRACE(theName) {OpenGl_GlFunctions::debugPrintError(#theName);}
|
//#define OpenGl_TRACE(theName) {OpenGl_GlFunctions::debugPrintError(#theName);}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user