mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0028806: Coding Rules - remove not implemented method OpenGl_ShaderObject::Initialize()
This commit is contained in:
parent
b7a71e36aa
commit
d4e12f61be
@ -20,13 +20,11 @@
|
|||||||
#include <OpenGl_GlCore20.hxx>
|
#include <OpenGl_GlCore20.hxx>
|
||||||
#include <OpenGl_Resource.hxx>
|
#include <OpenGl_Resource.hxx>
|
||||||
|
|
||||||
class OpenGl_ShaderObject;
|
|
||||||
DEFINE_STANDARD_HANDLE(OpenGl_ShaderObject, OpenGl_Resource)
|
|
||||||
|
|
||||||
//! Wrapper for OpenGL shader object.
|
//! Wrapper for OpenGL shader object.
|
||||||
class OpenGl_ShaderObject : public OpenGl_Resource
|
class OpenGl_ShaderObject : public OpenGl_Resource
|
||||||
{
|
{
|
||||||
|
DEFINE_STANDARD_RTTIEXT(OpenGl_ShaderObject, OpenGl_Resource)
|
||||||
|
friend class OpenGl_ShaderProgram;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! Non-valid shader name.
|
//! Non-valid shader name.
|
||||||
@ -47,10 +45,6 @@ public:
|
|||||||
//! Compiles the shader object.
|
//! Compiles the shader object.
|
||||||
Standard_EXPORT Standard_Boolean Compile (const Handle(OpenGl_Context)& theCtx);
|
Standard_EXPORT Standard_Boolean Compile (const Handle(OpenGl_Context)& theCtx);
|
||||||
|
|
||||||
//! Initializes (loads and compiles) shader object with the specified description.
|
|
||||||
Standard_EXPORT Standard_Boolean Initialize (const Handle(OpenGl_Context)& theCtx,
|
|
||||||
const Handle(Graphic3d_ShaderObject)& theShader);
|
|
||||||
|
|
||||||
//! Fetches information log of the last compile operation.
|
//! Fetches information log of the last compile operation.
|
||||||
Standard_EXPORT Standard_Boolean FetchInfoLog (const Handle(OpenGl_Context)& theCtx,
|
Standard_EXPORT Standard_Boolean FetchInfoLog (const Handle(OpenGl_Context)& theCtx,
|
||||||
TCollection_AsciiString& theLog);
|
TCollection_AsciiString& theLog);
|
||||||
@ -69,11 +63,8 @@ protected:
|
|||||||
GLenum myType; //!< Type of OpenGL shader object
|
GLenum myType; //!< Type of OpenGL shader object
|
||||||
GLuint myShaderID; //!< Handle of OpenGL shader object
|
GLuint myShaderID; //!< Handle of OpenGL shader object
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
DEFINE_STANDARD_RTTIEXT(OpenGl_ShaderObject,OpenGl_Resource)
|
|
||||||
friend class OpenGl_ShaderProgram;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
DEFINE_STANDARD_HANDLE(OpenGl_ShaderObject, OpenGl_Resource)
|
||||||
|
|
||||||
#endif // _OpenGl_ShaderObject_Header
|
#endif // _OpenGl_ShaderObject_Header
|
||||||
|
Loading…
x
Reference in New Issue
Block a user